sqllogictest
Artifact Content
Not logged in

Artifact ca29176ca5f0c15010d28aad0d0b275a2f4e5dc6:


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 # CAST syntax: SIGNED type: 
query III rowsort label-0
SELECT * FROM tab2 WHERE NOT - col1 >= - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-0
SELECT * FROM tab2 WHERE NOT - col1 >= - CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 = + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL >= + col0
----

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4
SELECT COUNT( * ) DIV + 71 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
0

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 45 + + col2 + - col1 col2, col0 AS col2 FROM tab0 AS cor0
----
11
15
143
97
34
87

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

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

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

query II rowsort
SELECT - 70 AS col2, - ( + + ( - - ( + col1 ) ) ) FROM tab1 AS cor0
----
-70
-14
-70
-47
-70
-5

query II rowsort
SELECT 83 AS col2, col1 + col2 + + - 15 AS col0 FROM tab2 AS cor0
----
83
102
83
110
83
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-12
SELECT - - col0 * - col1 * + CAST( col1 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-201019
-2125
-9996

skipif mysql # not compatible
query I rowsort label-12
SELECT - - col0 * - col1 * + CAST ( col1 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-201019
-2125
-9996

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col1, 98 * + col1 * + col1 col0 FROM tab2 AS cor0
----
-51
254898
-67
439922
-77
581042

query I rowsort
SELECT ALL + - col0 + + - 6 AS col1 FROM tab1 AS cor0
----
-57
-91
-97

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

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

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

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

query I rowsort
SELECT + 89 + + + col1 * - - 28 * - + ( - col0 ) FROM tab2 AS cor0
----
138073
140789
65777

onlyif mysql # aggregate syntax: 
query I rowsort label-18
SELECT ALL - ( + COUNT( * ) ) * - 7 FROM tab1 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-18
SELECT ALL - ( + COUNT ( * ) ) * - 7 FROM tab1 AS cor0
----
21

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

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

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

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

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

query I rowsort
SELECT + col0 * 77 AS col1 FROM tab1 AS cor0
----
3927
6545
7007

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

onlyif mysql # aggregate syntax: 
query I rowsort label-25
SELECT - COUNT( * ) * + 30 AS col1 FROM tab0 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-25
SELECT - COUNT ( * ) * + 30 AS col1 FROM tab0 AS cor0
----
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-26
SELECT + - 66 + + - MIN( DISTINCT + 47 ) + - 33 * - COUNT( CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0 WHERE NOT col0 + - ( + - col2 ) * + col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-26
SELECT + - 66 + + - MIN ( DISTINCT + 47 ) + - 33 * - COUNT ( CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0 WHERE NOT col0 + - ( + - col2 ) * + col2 IS NOT NULL
----
NULL

query II rowsort
SELECT DISTINCT + col2 * + col1 * 46 * col1, col2 AS col2 FROM tab2
----
10909360
40
11976652
58
2751858
23

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

query I rowsort
SELECT ALL + - col1 + - col0 + - col0 + col0 * + col0 FROM tab1 AS cor0
----
2485
7050
8052

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-33
SELECT DISTINCT - MIN( DISTINCT - col0 ) FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-33
SELECT DISTINCT - MIN ( DISTINCT - col0 ) FROM tab1
----
91

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

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

query I rowsort
SELECT ALL + 68 * col0 FROM tab1
----
3468
5780
6188

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-36
SELECT DISTINCT + 9 * ( CAST( COUNT( * ) AS SIGNED ) ) FROM tab1 WHERE NOT + col2 BETWEEN ( + col1 ) AND ( 99 / col0 )
----
27

skipif mysql # not compatible
query I rowsort label-36
SELECT DISTINCT + 9 * ( CAST ( COUNT ( * ) AS INTEGER ) ) FROM tab1 WHERE NOT + col2 BETWEEN ( + col1 ) AND ( 99 / col0 )
----
27

query III rowsort
SELECT * FROM tab1 WHERE NOT - 23 + + col2 IS NOT NULL
----

query I rowsort
SELECT + 2 * col1 + 46 AS col1 FROM tab0 WHERE col2 NOT IN ( col0 )
----
208
48
88

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-40
SELECT - COUNT( * ) * 70 AS col2 FROM tab0 WHERE + ( + col1 ) IS NOT NULL
----
-210

skipif mysql # not compatible
query I rowsort label-40
SELECT - COUNT ( * ) * 70 AS col2 FROM tab0 WHERE + ( + col1 ) IS NOT NULL
----
-210

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-42
SELECT ALL * FROM tab1 WHERE NOT ( col0 ) < + CAST( NULL AS SIGNED ) / ( - 25 )
----

skipif mysql # not compatible
query III rowsort label-42
SELECT ALL * FROM tab1 WHERE NOT ( col0 ) < + CAST ( NULL AS INTEGER ) / ( - 25 )
----

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab1 WHERE NOT col1 / col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-44
SELECT ALL CAST( 37 AS SIGNED ) FROM tab1
----
37
37
37

skipif mysql # not compatible
query I rowsort label-44
SELECT ALL CAST ( 37 AS INTEGER ) FROM tab1
----
37
37
37

onlyif mysql # aggregate syntax: 
query I rowsort label-45
SELECT DISTINCT 58 * COUNT( * ) FROM tab2
----
174

skipif mysql # not compatible
query I rowsort label-45
SELECT DISTINCT 58 * COUNT ( * ) FROM tab2
----
174

onlyif mysql # aggregate syntax: 
query I rowsort label-46
SELECT ALL 76 * COUNT( - 20 ) AS col1 FROM tab1
----
228

skipif mysql # not compatible
query I rowsort label-46
SELECT ALL 76 * COUNT ( - 20 ) AS col1 FROM tab1
----
228

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab1 WHERE 7 NOT IN ( col1 * - col2 + + 2 )
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-48
SELECT 49 * CAST( - col2 AS SIGNED ) FROM tab2
----
-1127
-1960
-2842

skipif mysql # not compatible
query I rowsort label-48
SELECT 49 * CAST ( - col2 AS INTEGER ) FROM tab2
----
-1127
-1960
-2842

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-52
SELECT ALL * FROM tab2 WHERE ( col0 * - col2 + + 61 ) <= ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-52
SELECT ALL * FROM tab2 WHERE ( col0 * - col2 + + 61 ) <= ( - CAST ( NULL AS INTEGER ) )
----

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

skipif mysql # not compatible
query I rowsort label-53
SELECT + MAX ( ALL col2 ) * - COUNT ( * ) FROM tab2
----
-174

query I rowsort
SELECT ALL - col1 * - 18 + 45 FROM tab1
----
135
297
891

query I rowsort
SELECT DISTINCT col1 + - col1 FROM tab1 WHERE NOT ( NULL ) BETWEEN ( - 53 ) AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - col1 * + 63 col2 FROM tab0
----
-1313
-5056
36

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

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

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

query I rowsort
SELECT col0 AS col1 FROM tab1 WHERE NOT col0 NOT BETWEEN col0 AND 76
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-60
SELECT DISTINCT CAST( - 71 AS SIGNED ) + 9 AS col1 FROM tab2 cor0
----
-62

skipif mysql # not compatible
query I rowsort label-60
SELECT DISTINCT CAST ( - 71 AS INTEGER ) + 9 AS col1 FROM tab2 cor0
----
-62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-61
SELECT COUNT( * ) DIV + 43 - - COUNT( * ) FROM tab1 AS cor0
----
3

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

query I rowsort
SELECT - 67 * 73 - col2 AS col1 FROM tab2 AS cor0
----
-4914
-4931
-4949

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

query I rowsort
SELECT 35 AS col1 FROM tab2 WHERE NOT ( NULL ) = ( NULL )
----

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

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

skipif mysql # not compatible
query I rowsort label-66
SELECT DISTINCT + COUNT ( * ) * COUNT ( * ) AS col0 FROM tab2 cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-67
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( - col0 / CAST( col0 AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-67
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( - col0 / CAST ( col0 AS INTEGER ) ) IS NOT NULL
----

query I rowsort
SELECT - ( - col0 ) AS col0 FROM tab1 AS cor0 WHERE NOT + 93 - + col0 IS NULL
----
51
85
91

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-70
SELECT ALL * FROM tab1 AS cor0 WHERE + 23 / + 15 + - CAST( NULL AS SIGNED ) BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-70
SELECT ALL * FROM tab1 AS cor0 WHERE + 23 / + 15 + - CAST ( NULL AS INTEGER ) BETWEEN NULL AND NULL
----

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-74
SELECT MAX( - col1 ) DIV 25 AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-74
SELECT MAX ( - col1 ) / 25 AS col2 FROM tab0 AS cor0
----
0

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

query I rowsort
SELECT 45 * + 82 FROM tab1 AS cor0
----
3690
3690
3690

onlyif mysql # aggregate syntax: 
query I rowsort label-77
SELECT + MIN( ALL 21 ) * COUNT( * ) AS col2 FROM tab0 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-77
SELECT + MIN ( ALL 21 ) * COUNT ( * ) AS col2 FROM tab0 AS cor0
----
63

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

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

query I rowsort
SELECT 7 * - col2 FROM tab2
----
-161
-280
-406

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-81
SELECT + CAST( NULL AS SIGNED ) + 6 AS col2 FROM tab1 WHERE NOT NULL < ( NULL )
----

skipif mysql # not compatible
query I rowsort label-81
SELECT + CAST ( NULL AS INTEGER ) + 6 AS col2 FROM tab1 WHERE NOT NULL < ( NULL )
----

query I rowsort
SELECT col2 * + ( col0 ) AS col2 FROM tab2
----
1058
2560
4350

onlyif mysql # DIV for integer division: 
query I rowsort label-83
SELECT ( + - col2 ) DIV - col1 AS col2 FROM tab1
----
1
11
6

skipif mysql # not compatible
query I rowsort label-83
SELECT ( + - col2 ) / - col1 AS col2 FROM tab1
----
1
11
6

query I rowsort
SELECT DISTINCT ( - col2 ) * - col2 AS col2 FROM tab1
----
3481
4624
9216

query III rowsort
SELECT * FROM tab1 WHERE NOT 96 > NULL
----

query I rowsort
SELECT 48 * - col1 * col1 AS col0 FROM tab2
----
-124848
-215472
-284592

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-87
SELECT ALL - CAST( NULL AS SIGNED ) * + + 29 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-87
SELECT ALL - CAST ( NULL AS INTEGER ) * + + 29 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-88
SELECT DISTINCT COUNT( col1 ) DIV - COUNT( * ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-88
SELECT DISTINCT COUNT ( col1 ) / - COUNT ( * ) FROM tab0
----
-1

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

skipif mysql # not compatible
query I rowsort label-89
SELECT CAST ( ( col1 ) AS INTEGER ) FROM tab2 WHERE NOT col0 BETWEEN col0 - + col1 AND col2 * 46
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-90
SELECT ALL + 51 DIV - COUNT( col0 ) FROM tab2
----
-17

skipif mysql # not compatible
query I rowsort label-90
SELECT ALL + 51 / - COUNT ( col0 ) FROM tab2
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-91
SELECT ALL 42 * + - COUNT( * ) FROM tab2
----
-126

skipif mysql # not compatible
query I rowsort label-91
SELECT ALL 42 * + - COUNT ( * ) FROM tab2
----
-126

query I rowsort
SELECT DISTINCT + col0 * + 85 FROM tab2
----
3910
5440
6375

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

query I rowsort
SELECT DISTINCT - + col2 + + 68 FROM tab2 cor0
----
10
28
45

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

skipif mysql # not compatible
query I rowsort label-95
SELECT - COUNT ( - 0 ) FROM tab1 AS cor0
----
-3

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-98
SELECT ALL - - CAST( ( col1 ) AS SIGNED ) DIV col1 + - ( 39 ) FROM tab1 AS cor0
----
-38
-38
-38

skipif mysql # not compatible
query I rowsort label-98
SELECT ALL - - CAST ( ( col1 ) AS INTEGER ) / col1 + - ( 39 ) FROM tab1 AS cor0
----
-38
-38
-38

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-100
SELECT DISTINCT - COUNT( * ) * + MIN( ALL + 74 ) + 13 FROM tab0 AS cor0
----
-209

skipif mysql # not compatible
query I rowsort label-100
SELECT DISTINCT - COUNT ( * ) * + MIN ( ALL + 74 ) + 13 FROM tab0 AS cor0
----
-209

query I rowsort
SELECT - 40 + ( 22 ) FROM tab1
----
-18
-18
-18

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-102
SELECT - COUNT ( * ) + - COUNT ( * ) col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-103
SELECT + 7 + COUNT( * ) AS col2 FROM tab2
----
10

skipif mysql # not compatible
query I rowsort label-103
SELECT + 7 + COUNT ( * ) AS col2 FROM tab2
----
10

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

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

query II rowsort
SELECT DISTINCT - col1, - col0 AS col2 FROM tab1 AS cor0
----
-14
-51
-47
-91
-5
-85

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

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

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

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

query I rowsort
SELECT ALL - - 0 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + col2 * + 36 AS col0 FROM tab1 AS cor0
----
2124
2448
3456

query I rowsort
SELECT col1 - 17 FROM tab0
----
-16
4
64

query I rowsort
SELECT - col1 * col0 FROM tab2 WHERE - 10 IN ( - 18 )
----

query I rowsort
SELECT ALL 33 - + col2 + - col0 FROM tab1
----
-111
-114
-126

onlyif mysql # DIV for integer division: 
query I rowsort label-113
SELECT ALL - 46 DIV ( + + col1 ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-2
-46
0

skipif mysql # not compatible
query I rowsort label-113
SELECT ALL - 46 / ( + + col1 ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-2
-46
0

query I rowsort
SELECT col1 * + col2 * + col2 * ( - 35 ) + + col2 + + col1 * + col0 AS col2 FROM tab0 AS cor0
----
-342839
-6261253
-71663

query I rowsort
SELECT DISTINCT - + 28 + + - col0 AS col2 FROM tab0 AS cor0 WHERE NOT - 46 IS NULL
----
-115
-125
-43

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - 37 * - 20 * col0 ) <> ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-118
SELECT ALL + 0 * + col2 DIV + 49 col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-118
SELECT ALL + 0 * + col2 / + 49 col2 FROM tab0
----
0
0
0

query I rowsort
SELECT + - 99 AS col0 FROM tab2 AS cor0
----
-99
-99
-99

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 19 NOT IN ( - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-122
SELECT - MAX( DISTINCT - col0 ) AS col1 FROM tab1 cor0
----
51

skipif mysql # not compatible
query I rowsort label-122
SELECT - MAX ( DISTINCT - col0 ) AS col1 FROM tab1 cor0
----
51

query I rowsort
SELECT + col1 * - + ( + ( - 45 ) ) AS col0 FROM tab2 AS cor0
----
2295
3015
3465

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

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

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

query II rowsort
SELECT + col0 AS col0, 16 FROM tab0 AS cor0
----
15
16
87
16
97
16

query I rowsort
SELECT + 45 * col0 - col2 * - col2 AS col2 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN 6 AND ( + col2 * col2 )
----

query I rowsort
SELECT DISTINCT - - 75 AS col1 FROM tab1 AS cor0
----
75

query I rowsort
SELECT DISTINCT 4 FROM tab0 AS cor0 WHERE NOT + col1 > col2
----
4

query II rowsort
SELECT ALL - - col0, ( - col1 ) + - col0 AS col1 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND + col1
----

query I rowsort
SELECT - 5 * - col1 AS col1 FROM tab0
----
105
405
5

query I rowsort
SELECT 38 * - 47 AS col1 FROM tab2
----
-1786
-1786
-1786

onlyif mysql # aggregate syntax: 
query I rowsort label-133
SELECT + 71 * + ( - + ( + - MAX( ALL + + col2 ) ) ) col1 FROM tab0
----
7029

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-133
SELECT + 71 * + ( - + ( + - MAX ( ALL + + col2 ) ) ) col1 FROM tab0
----
7029

query I rowsort
SELECT col0 + 8 * + + 95 * ( - col1 ) FROM tab0
----
-15873
-61545
-663

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-136
SELECT ALL * FROM tab0 WHERE NULL IN ( - + CAST( NULL AS SIGNED ), col0 )
----

skipif mysql # not compatible
query III rowsort label-136
SELECT ALL * FROM tab0 WHERE NULL IN ( - + CAST ( NULL AS INTEGER ), col0 )
----

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

query I rowsort
SELECT col1 * + - col0 + ( ( 73 ) ) FROM tab1
----
-352
-4204
-641

onlyif mysql # aggregate syntax: 
query II rowsort label-139
SELECT DISTINCT COUNT( * ) AS col2, + ( - + 91 ) + + + 4 AS col1 FROM tab1 AS cor0
----
3
-87

skipif mysql # not compatible
query II rowsort label-139
SELECT DISTINCT COUNT ( * ) AS col2, + ( - + 91 ) + + + 4 AS col1 FROM tab1 AS cor0
----
3
-87

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 46 * - - 6 * - col2 NOT BETWEEN ( 38 ) AND ( NULL )
----

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

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

query I rowsort
SELECT ALL - col2 AS col2 FROM tab1 AS cor0 WHERE + col1 * - 66 * + col0 / - 46 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-144
SELECT MAX( DISTINCT - col0 ) * ( SUM( - col1 ) ) * + - COUNT( * ) FROM tab1
----
-10098

skipif mysql # not compatible
query I rowsort label-144
SELECT MAX ( DISTINCT - col0 ) * ( SUM ( - col1 ) ) * + - COUNT ( * ) FROM tab1
----
-10098

query II rowsort
SELECT DISTINCT - 94, col2 AS col0 FROM tab2 WHERE NOT col2 NOT IN ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-146
SELECT ALL - - MAX( 93 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
93

skipif mysql # not compatible
query I rowsort label-146
SELECT ALL - - MAX ( 93 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
93

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-150
SELECT DISTINCT + ( - col2 ) * - - 32 col1, - CAST( + col2 AS SIGNED ) * - col2 FROM tab1 AS cor0
----
-1888
3481
-2176
4624
-3072
9216

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-150
SELECT DISTINCT + ( - col2 ) * - - 32 col1, - CAST ( + col2 AS INTEGER ) * - col2 FROM tab1 AS cor0
----
-1888
3481
-2176
4624
-3072
9216

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - 93 col0 FROM tab2 AS cor0
----
-18
-29
-47

query III rowsort
SELECT * FROM tab0 WHERE col2 / - col2 IS NULL
----

query I rowsort
SELECT DISTINCT col2 * col1 * + - col2 + col2 * + - col1 FROM tab2
----
-126280
-229274
-28152

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-159
SELECT - MAX( - + col0 ) FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-159
SELECT - MAX ( - + col0 ) FROM tab1
----
51

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

skipif mysql # not compatible
query I rowsort label-160
SELECT ALL COUNT ( * ) + + - COUNT ( * ) AS col1 FROM tab1
----
0

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

query I rowsort
SELECT DISTINCT col1 + 44 * col0 + - - 72 + + + 97 - - 80 * - + 39 FROM tab1
----
-693
1100
794

query II rowsort
SELECT ALL - col1 - - 11 * + 62 AS col1, col2 FROM tab2
----
605
40
615
58
631
23

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-164
SELECT ALL * FROM tab0 WHERE - CAST( NULL AS SIGNED ) IN ( col2 + + - CAST( col1 AS SIGNED ) + - - 61 )
----

skipif mysql # not compatible
query III rowsort label-164
SELECT ALL * FROM tab0 WHERE - CAST ( NULL AS INTEGER ) IN ( col2 + + - CAST ( col1 AS INTEGER ) + - - 61 )
----

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

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

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

query II rowsort
SELECT - 74 AS col0, + col1 + + - 9 * 98 FROM tab2
----
-74
-805
-74
-815
-74
-831

query I rowsort
SELECT + col1 * - - col2 * + - 19 FROM tab1
----
-25536
-5605
-60724

query I rowsort
SELECT DISTINCT - col1 * col1 * - col1 * + col2 * col1 FROM tab1
----
331818308
36875
3687936

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-171
SELECT DISTINCT + - COUNT( * ) * - 14 col2 FROM tab2 AS cor0
----
42

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

query I rowsort
SELECT ALL - 73 * - 56 + - col0 FROM tab1 cor0
----
3997
4003
4037

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-173
SELECT + CAST( NULL AS SIGNED ) AS col1, 8 + + + ( col0 ) * + col2 FROM tab0 AS cor0
----
NULL
713
NULL
878
NULL
9611

skipif mysql # not compatible
query II rowsort label-173
SELECT + CAST ( NULL AS INTEGER ) AS col1, 8 + + + ( col0 ) * + col2 FROM tab0 AS cor0
----
NULL
713
NULL
878
NULL
9611

query I rowsort
SELECT ALL col2 FROM tab0 WHERE 4 <= - + 53
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-176
SELECT DISTINCT + SUM( ALL - - 94 ) FROM tab2 AS cor0
----
282

skipif mysql # not compatible
query I rowsort label-176
SELECT DISTINCT + SUM ( ALL - - 94 ) FROM tab2 AS cor0
----
282

onlyif mysql # DIV for integer division: 
query I rowsort label-177
SELECT ALL - + col2 DIV col2 FROM tab1 cor0 WHERE + col1 > - 36 - col2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-177
SELECT ALL - + col2 / col2 FROM tab1 cor0 WHERE + col1 > - 36 - col2
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-178
SELECT ALL COUNT( * ) + - 8 FROM tab2 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-178
SELECT ALL COUNT ( * ) + - 8 FROM tab2 AS cor0
----
-5

query I rowsort
SELECT + col2 + - - col2 FROM tab1 cor0 WHERE NOT ( + + col2 ) IS NULL
----
118
136
192

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

query II rowsort
SELECT col1 AS col0, col1 AS col2 FROM tab1
----
14
14
47
47
5
5

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - 98 col2 FROM tab2
----
4998
6566
7546

query I rowsort
SELECT + col0 * - 90 FROM tab0
----
-1350
-7830
-8730

onlyif mysql # aggregate syntax: 
query I rowsort label-185
SELECT DISTINCT - SUM( ALL 43 ) FROM tab0
----
-129

skipif mysql # not compatible
query I rowsort label-185
SELECT DISTINCT - SUM ( ALL 43 ) FROM tab0
----
-129

query I rowsort
SELECT - 25 * ( col2 ) AS col1 FROM tab0 AS cor0
----
-1175
-2475
-250

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

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

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

query I rowsort
SELECT col2 + - 50 FROM tab0 cor0
----
-3
-40
49

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

query I rowsort
SELECT - 20 * + col2 FROM tab2
----
-1160
-460
-800

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( 59 ) * col2 col2 FROM tab2 AS cor0
----
-1357
-2360
-3422

onlyif mysql # aggregate syntax: 
query I rowsort label-193
SELECT ALL COUNT( * ) * + MIN( ALL - + 91 ) * - COUNT( * ) AS col2 FROM tab1 AS cor0
----
819

skipif mysql # not compatible
query I rowsort label-193
SELECT ALL COUNT ( * ) * + MIN ( ALL - + 91 ) * - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
819

onlyif mysql # DIV for integer division: 
query I rowsort label-194
SELECT DISTINCT col2 - - + col2 DIV 7 FROM tab1 AS cor0
----
109
67
77

skipif mysql # not compatible
query I rowsort label-194
SELECT DISTINCT col2 - - + col2 / 7 FROM tab1 AS cor0
----
109
67
77

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-196
SELECT ALL COUNT( * ), + SUM( - 72 ) AS col1 FROM tab1 AS cor0
----
3
-216

skipif mysql # not compatible
query II rowsort label-196
SELECT ALL COUNT ( * ), + SUM ( - 72 ) AS col1 FROM tab1 AS cor0
----
3
-216

onlyif mysql # DIV for integer division: 
query I rowsort label-197
SELECT ALL + col1 * - + col2 + col1 + - + col0 DIV 74 col0 FROM tab0 cor0
----
-190
-3726
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-197
SELECT ALL + col1 * - + col2 + col1 + - + col0 / 74 col0 FROM tab0 cor0
----
-190
-3726
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-198
SELECT DISTINCT - 51 * - MAX( DISTINCT col2 ) AS col0 FROM tab2 AS cor0
----
2958

skipif mysql # not compatible
query I rowsort label-198
SELECT DISTINCT - 51 * - MAX ( DISTINCT col2 ) AS col0 FROM tab2 AS cor0
----
2958

query I rowsort
SELECT + col2 - 36 + + col2 FROM tab0 AS cor0
----
-16
162
58

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

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

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

query I rowsort
SELECT ALL - col1 AS col2 FROM tab0 WHERE NULL NOT IN ( - col0, 70 )
----

query I rowsort
SELECT - ( + + 97 ) AS col2 FROM tab0, tab2 cor0
----
9 values hashing to e4a6bd848a69226cbb7ad3d154be321b

query I rowsort
SELECT DISTINCT 39 * + + col2 FROM tab0
----
1833
3861
390

query I rowsort
SELECT ALL 76 AS col2 FROM tab2 AS cor0
----
76
76
76

onlyif mysql # aggregate syntax: 
query II rowsort label-206
SELECT 51 * COUNT( * ) AS col1, + 52 * + MIN( col1 ) FROM tab0 AS cor0
----
153
52

skipif mysql # not compatible
query II rowsort label-206
SELECT 51 * COUNT ( * ) AS col1, + 52 * + MIN ( col1 ) FROM tab0 AS cor0
----
153
52

query II rowsort
SELECT + col1 * + 5 AS col2, - 20 FROM tab0 AS cor0
----
105
-20
405
-20
5
-20

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

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

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

query I rowsort
SELECT + col2 * - 41 FROM tab1
----
-2419
-2788
-3936

onlyif mysql # aggregate syntax: 
query II rowsort label-211
SELECT COUNT( * ), MIN( ALL col1 ) col2 FROM tab2
----
3
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-211
SELECT COUNT ( * ), MIN ( ALL col1 ) col2 FROM tab2
----
3
51

onlyif mysql # DIV for integer division: 
query I rowsort label-212
SELECT - 25 DIV + col1 AS col0 FROM tab0
----
-1
-25
0

skipif mysql # not compatible
query I rowsort label-212
SELECT - 25 / + col1 AS col0 FROM tab0
----
-1
-25
0

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - + col2 col0 FROM tab1 AS cor0 WHERE NOT - col2 BETWEEN col0 AND col1
----
-21
-54
-82

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-218
SELECT 68 + - + COUNT( * ) FROM tab2
----
65

skipif mysql # not compatible
query I rowsort label-218
SELECT 68 + - + COUNT ( * ) FROM tab2
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-219
SELECT - COUNT( * ) + - - 58 AS col2 FROM tab0
----
55

skipif mysql # not compatible
query I rowsort label-219
SELECT - COUNT ( * ) + - - 58 AS col2 FROM tab0
----
55

query I rowsort
SELECT - col1 + 28 FROM tab2
----
-23
-39
-49

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

skipif mysql # not compatible
query I rowsort label-221
SELECT 9 + - + COUNT ( * ) AS col1 FROM tab2
----
6

query III rowsort
SELECT * FROM tab0 WHERE + col1 > col0 + - col1
----
15
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-223
SELECT MAX( ALL - + 7 ) + - 62 AS col0 FROM tab1
----
-69

skipif mysql # not compatible
query I rowsort label-223
SELECT MAX ( ALL - + 7 ) + - 62 AS col0 FROM tab1
----
-69

query III rowsort
SELECT * FROM tab2 WHERE + 68 NOT BETWEEN - ( - col0 ) AND ( + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 / col1 * - + col2 + + col2 FROM tab0 cor0 WHERE ( NULL ) IS NOT NULL
----

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-227
SELECT DISTINCT - COUNT( * ) * CAST( 29 AS SIGNED ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-261

skipif mysql # not compatible
query I rowsort label-227
SELECT DISTINCT - COUNT ( * ) * CAST ( 29 AS INTEGER ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-261

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-228
SELECT - - COUNT( * ) + COUNT( ALL + 20 ) * + + COUNT( DISTINCT - CAST( 78 AS SIGNED ) ) FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-228
SELECT - - COUNT ( * ) + COUNT ( ALL + 20 ) * + + COUNT ( DISTINCT - CAST ( 78 AS INTEGER ) ) FROM tab1 AS cor0
----
6

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 50 NOT IN ( + col0, col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

query I rowsort
SELECT ALL 85 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-233
SELECT ALL COUNT( * ) * - + 5 FROM tab1 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-233
SELECT ALL COUNT ( * ) * - + 5 FROM tab1 AS cor0
----
-15

query I rowsort
SELECT DISTINCT + - col0 - + - 4 FROM tab1 AS cor0
----
-47
-81
-87

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

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

query I rowsort
SELECT + - 39 * + + 11 AS col1 FROM tab1 AS cor0
----
-429
-429
-429

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-239
SELECT - MAX( DISTINCT + CAST( + col1 AS SIGNED ) ) FROM tab0 WHERE NOT + col2 < - col1 * col1 * + 57
----
-81

skipif mysql # not compatible
query I rowsort label-239
SELECT - MAX ( DISTINCT + CAST ( + col1 AS INTEGER ) ) FROM tab0 WHERE NOT + col2 < - col1 * col1 * + 57
----
-81

onlyif mysql # DIV for integer division: 
query II rowsort label-240
SELECT - col1 AS col1, 7 DIV + col0 * 93 col2 FROM tab0
----
-1
0
-21
0
-81
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-240
SELECT - col1 AS col1, 7 / + col0 * 93 col2 FROM tab0
----
-1
0
-21
0
-81
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-241
SELECT 0 DIV - COUNT( * ) AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-241
SELECT 0 / - COUNT ( * ) AS col1 FROM tab2
----
0

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 51 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + + 47 col2 FROM tab2 AS cor0
----
2397
3149
3619

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

skipif mysql # not compatible
query I rowsort label-245
SELECT - - MAX ( - col2 ) AS col1 FROM tab0 AS cor0
----
-10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 50 col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52

query I rowsort
SELECT - 41 + + ( - 75 ) FROM ( tab1 cor0 CROSS JOIN tab0 cor1 )
----
9 values hashing to f3d4bda483c78f538b28a9f609440927

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 43 + + ( + col1 ) col1 FROM tab2 AS cor0
----
24
34
8

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

query I rowsort
SELECT ALL + 89 + 26 + + - col2 AS col0 FROM tab2 AS cor0
----
57
75
92

query I rowsort
SELECT - - 61 AS col1 FROM tab2 AS cor0
----
61
61
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-253
SELECT + SUM( CAST( + - col1 AS SIGNED ) ) FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-253
SELECT + SUM ( CAST ( + - col1 AS INTEGER ) ) FROM tab1 AS cor0
----
-66

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

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

query I rowsort
SELECT ALL + ( + - ( + + col0 ) ) + + 9 AS col0 FROM tab1 AS cor0
----
-42
-76
-82

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

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

query I rowsort
SELECT col2 * - - ( - + col2 ) AS col2 FROM tab1
----
-3481
-4624
-9216

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

query I rowsort
SELECT col1 * - 86 * - col0 AS col2 FROM tab0
----
104490
157122
8342

query I rowsort
SELECT + col2 FROM tab2 WHERE - - col0 > col1
----
58

query III rowsort
SELECT * FROM tab0 WHERE - - 47 <> + ( col2 )
----
87
21
10
97
1
99

onlyif mysql # DIV for integer division: 
query I rowsort label-262
SELECT DISTINCT + 60 DIV + + ( + - col1 ) AS col2 FROM tab0
----
-2
-60
0

skipif mysql # not compatible
query I rowsort label-262
SELECT DISTINCT + 60 / + + ( + - col1 ) AS col2 FROM tab0
----
-2
-60
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-263
SELECT ALL - CAST( NULL AS SIGNED ) / + 88 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-263
SELECT ALL - CAST ( NULL AS INTEGER ) / + 88 FROM tab0
----
NULL
NULL
NULL

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

query I rowsort
SELECT - 66 + col0 * col0 * 51 AS col1 FROM tab0 AS cor0
----
11409
385953
479793

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

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

skipif mysql # not compatible
query I rowsort label-267
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - 89 - + MAX ( DISTINCT - - ( + col0 ) ) FROM tab1
----
NULL

query I rowsort
SELECT ALL + 19 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11

onlyif mysql # aggregate syntax: 
query I rowsort label-269
SELECT DISTINCT COUNT( * ) - 74 FROM tab2
----
-71

skipif mysql # not compatible
query I rowsort label-269
SELECT DISTINCT COUNT ( * ) - 74 FROM tab2
----
-71

query I rowsort
SELECT + 16 * - 24 AS col1 FROM tab0 AS cor0
----
-384
-384
-384

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-271
SELECT ALL + CAST( + + 15 AS SIGNED ) FROM tab0 AS cor0
----
15
15
15

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

onlyif mysql # aggregate syntax: 
query II rowsort label-272
SELECT + SUM( DISTINCT + col1 ) col1, - COUNT( * ) AS col1 FROM tab1 cor0
----
66
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-272
SELECT + SUM ( DISTINCT + col1 ) col1, - COUNT ( * ) AS col1 FROM tab1 cor0
----
66
-3

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-273
SELECT DISTINCT MIN ( ALL col1 ) col1 FROM tab0
----
1

query I rowsort
SELECT ALL 58 * + 57 * + 99 FROM tab1
----
327294
327294
327294

onlyif mysql # aggregate syntax: 
query I rowsort label-275
SELECT DISTINCT SUM( ALL ( 54 ) ) * + 67 FROM tab1
----
10854

skipif mysql # not compatible
query I rowsort label-275
SELECT DISTINCT SUM ( ALL ( 54 ) ) * + 67 FROM tab1
----
10854

onlyif mysql # DIV for integer division: 
query I rowsort label-276
SELECT + 49 DIV 70 + col2 FROM tab0 WHERE NOT - col1 - - + 4 * + - col0 IS NULL
----
10
47
99

skipif mysql # not compatible
query I rowsort label-276
SELECT + 49 / 70 + col2 FROM tab0 WHERE NOT - col1 - - + 4 * + - col0 IS NULL
----
10
47
99

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-280
SELECT 10 DIV 85 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-280
SELECT 10 / 85 AS col1 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-281
SELECT ALL * FROM tab0 cor0 WHERE NULL BETWEEN col1 + + + 5 * - CAST( col1 AS SIGNED ) AND - ( - - col2 )
----

skipif mysql # not compatible
query III rowsort label-281
SELECT ALL * FROM tab0 cor0 WHERE NULL BETWEEN col1 + + + 5 * - CAST ( col1 AS INTEGER ) AND - ( - - col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 60 * 36 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-283
SELECT DISTINCT + CAST( + + col0 AS SIGNED ) AS col1 FROM tab0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-283
SELECT DISTINCT + CAST ( + + col0 AS INTEGER ) AS col1 FROM tab0
----
15
87
97

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-285
SELECT + + COUNT( * ), MIN( DISTINCT - - col0 ) AS col1 FROM tab1 AS cor0
----
3
51

skipif mysql # not compatible
query II rowsort label-285
SELECT + + COUNT ( * ), MIN ( DISTINCT - - col0 ) AS col1 FROM tab1 AS cor0
----
3
51

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-288
SELECT ALL - - MAX( - 29 ) + + 8 FROM tab2 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-288
SELECT ALL - - MAX ( - 29 ) + + 8 FROM tab2 AS cor0
----
-21

query I rowsort
SELECT col2 + - 32 AS col0 FROM tab2
----
-9
26
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + + col1 col1 FROM tab1
----
10
28
94

query I rowsort
SELECT 72 AS col1 FROM tab1 WHERE NULL <> NULL
----

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

query I rowsort
SELECT + col2 + + - 82 FROM tab1
----
-14
-23
14

query I rowsort
SELECT 68 + col1 FROM tab1
----
115
73
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 7 col2 FROM tab0
----
105
609
679

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

skipif mysql # not compatible
query I rowsort label-296
SELECT SUM ( - col2 ) AS col0 FROM tab1
----
-223

query I rowsort
SELECT 9 * - 26 AS col2 FROM tab1
----
-234
-234
-234

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-298
SELECT CAST( - COUNT( * ) AS SIGNED ) * - COUNT( * ) * CAST( - - 60 AS SIGNED ) + + - 99 * + - ( - COUNT( * ) ) FROM tab1
----
243

skipif mysql # not compatible
query I rowsort label-298
SELECT CAST ( - COUNT ( * ) AS INTEGER ) * - COUNT ( * ) * CAST ( - - 60 AS INTEGER ) + + - 99 * + - ( - COUNT ( * ) ) FROM tab1
----
243

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 35 AS col2, 1 col2 FROM tab2
----
35
1
35
1
35
1

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

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

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

query I rowsort
SELECT + col2 * col0 + col2 + + - ( - + col2 ) FROM tab0 AS cor0
----
799
890
9801

onlyif mysql # aggregate syntax: 
query I rowsort label-307
SELECT MAX( 89 ) * 97 FROM tab1 AS cor0
----
8633

skipif mysql # not compatible
query I rowsort label-307
SELECT MAX ( 89 ) * 97 FROM tab1 AS cor0
----
8633

query I rowsort
SELECT - 85 AS col2 FROM tab2 AS cor0 WHERE NOT NULL >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-309
SELECT ALL SUM( - - 96 ) FROM tab2 AS cor0
----
288

skipif mysql # not compatible
query I rowsort label-309
SELECT ALL SUM ( - - 96 ) FROM tab2 AS cor0
----
288

query I rowsort
SELECT ALL + - ( 72 ) FROM tab1 cor0
----
-72
-72
-72

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

skipif mysql # not compatible
query I rowsort label-311
SELECT ( SUM ( - - ( 55 ) ) ) FROM tab1 AS cor0
----
165

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-312
SELECT - COUNT( * ) DIV + MAX( DISTINCT - col1 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-312
SELECT - COUNT ( * ) / + MAX ( DISTINCT - col1 ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-313
SELECT DISTINCT + MAX( - + col0 ) FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-313
SELECT DISTINCT + MAX ( - + col0 ) FROM tab2
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-314
SELECT DISTINCT + CAST( - AVG ( DISTINCT + 98 ) AS SIGNED ) AS col2 FROM tab2
----
-98

skipif mysql # not compatible
query I rowsort label-314
SELECT DISTINCT + CAST ( - AVG ( DISTINCT + 98 ) AS INTEGER ) AS col2 FROM tab2
----
-98

onlyif mysql # aggregate syntax: 
query II rowsort label-315
SELECT ALL MAX( DISTINCT + 33 ) AS col1, - 71 AS col0 FROM tab2
----
33
-71

skipif mysql # not compatible
query II rowsort label-315
SELECT ALL MAX ( DISTINCT + 33 ) AS col1, - 71 AS col0 FROM tab2
----
33
-71

query I rowsort
SELECT - 70 * + 94 * + - 6 AS col2 FROM tab2
----
39480
39480
39480

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

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

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

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

skipif mysql # not compatible
query I rowsort label-319
SELECT - + MIN ( DISTINCT 31 ) FROM tab0 cor0
----
-31

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-320
SELECT ( + col1 ) + - 61 AS col1, - 44 * CAST( NULL AS SIGNED ) FROM tab0
----
-40
NULL
-60
NULL
20
NULL

skipif mysql # not compatible
query II rowsort label-320
SELECT ( + col1 ) + - 61 AS col1, - 44 * CAST ( NULL AS INTEGER ) FROM tab0
----
-40
NULL
-60
NULL
20
NULL

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

query I rowsort
SELECT DISTINCT - col0 FROM tab2 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT DISTINCT - ( + - col2 ) AS col2 FROM tab2
----
23
40
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-324
SELECT ALL COUNT( * ) DIV + COUNT( * ) AS col0 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-324
SELECT ALL COUNT ( * ) / + COUNT ( * ) AS col0 FROM tab2
----
1

query I rowsort
SELECT ALL - 98 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f17b7008a7deae1eb5a2e707ec237638

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-326
SELECT col0 * 67 FROM tab1 AS cor0 WHERE - col2 + + + col2 - CAST( + - 67 AS SIGNED ) > + 30
----
3417
5695
6097

skipif mysql # not compatible
query I rowsort label-326
SELECT col0 * 67 FROM tab1 AS cor0 WHERE - col2 + + + col2 - CAST ( + - 67 AS INTEGER ) > + 30
----
3417
5695
6097

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

query I rowsort
SELECT DISTINCT - + 57 AS col0 FROM tab0 AS cor0
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-329
SELECT - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE - col1 / 64 >= col0
----
0

skipif mysql # not compatible
query I rowsort label-329
SELECT - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE - col1 / 64 >= col0
----
0

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

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

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

query I rowsort
SELECT DISTINCT - ( col0 ) + + + col2 AS col1 FROM tab2
----
-17
-23
-24

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - ( + 28 ) > NULL
----

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col1 * 86 IS NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-337
SELECT ALL + COUNT( DISTINCT + 73 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-337
SELECT ALL + COUNT ( DISTINCT + 73 ) FROM tab2
----
1

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 IN ( col1 * 98 * - col1 * ( + 67 ), col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

skipif mysql # not compatible
query I rowsort label-339
SELECT DISTINCT - - COUNT ( * ) * COUNT ( * ) AS col1 FROM tab2 AS cor0
----
9

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-342
SELECT ALL 35 DIV - MIN( - + col2 ) AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-342
SELECT ALL 35 / - MIN ( - + col2 ) AS col0 FROM tab0
----
0

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 JOIN tab0 AS cor1 ON ( NULL ) NOT BETWEEN + 85 - + 99 AND NULL
----

query II rowsort
SELECT + col1 * - 25 * - - col1 AS col1, 89 AS col2 FROM tab2 AS cor0
----
-112225
89
-148225
89
-65025
89

query I rowsort
SELECT col2 * - col1 - + col0 FROM tab2 AS cor0
----
-1219
-3144
-3961

query I rowsort
SELECT ALL col2 AS col2 FROM tab0 AS cor0 WHERE NOT 14 IS NULL
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-347
SELECT + CAST( NULL AS SIGNED ) AS col0, - col0 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
NULL
-15
NULL
-87
NULL
-97

skipif mysql # not compatible
query II rowsort label-347
SELECT + CAST ( NULL AS INTEGER ) AS col0, - col0 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
NULL
-15
NULL
-87
NULL
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 col2, - col1 FROM tab0
----
10
-21
47
-81
99
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-349
SELECT col2 + col1 + - + col2 DIV - col2 AS col2 FROM tab1
----
111
116
65

skipif mysql # not compatible
query I rowsort label-349
SELECT col2 + col1 + - + col2 / - col2 AS col2 FROM tab1
----
111
116
65

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

onlyif mysql # aggregate syntax: 
query I rowsort label-351
SELECT 69 + COUNT( ALL col2 ) AS col0 FROM tab1
----
72

skipif mysql # not compatible
query I rowsort label-351
SELECT 69 + COUNT ( ALL col2 ) AS col0 FROM tab1
----
72

query I rowsort
SELECT + col0 + + col2 + col2 + - col0 + - + 40 * - 86 * + col1 + 10 * - col0 FROM tab1
----
160906
16468
47842

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-355
SELECT ALL + col1, CAST( NULL AS DECIMAL ) AS col2 FROM tab0 AS cor0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-355
SELECT ALL + col1, CAST ( NULL AS REAL ) AS col2 FROM tab0 AS cor0
----
1
NULL
21
NULL
81
NULL

query I rowsort
SELECT ALL 91 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

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

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

query I rowsort
SELECT DISTINCT + 89 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
89

query II rowsort
SELECT - col2 * + 57, + 99 + + col0 AS col2 FROM tab0
----
-2679
114
-5643
196
-570
186

onlyif mysql # aggregate syntax: 
query I rowsort label-360
SELECT - COUNT( * ) + + - 81 + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-360
SELECT - COUNT ( * ) + + - 81 + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-81

query I rowsort
SELECT + col0 + + 10 AS col0 FROM tab2 AS cor0
----
56
74
85

query I rowsort
SELECT col2 + col0 * 99 FROM tab0 AS cor0
----
1532
8623
9702

query I rowsort
SELECT ALL - 83 * + + 27 * + col0 + col0 AS col1 FROM tab0 AS cor0
----
-194880
-217280
-33600

query I rowsort
SELECT ALL - + col2 + - + ( col1 ) AS col2 FROM tab2 cor0
----
-117
-125
-74

query I rowsort
SELECT DISTINCT 33 * + 88 * + col0 FROM tab0 cor0
----
252648
281688
43560

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-367
SELECT + 80 AS col0 FROM tab0 cor0 WHERE CAST( NULL AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-367
SELECT + 80 AS col0 FROM tab0 cor0 WHERE CAST ( NULL AS REAL ) IS NOT NULL
----

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

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

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

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

query II rowsort
SELECT + col1 AS col0, 62 FROM tab2
----
51
62
67
62
77
62

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-373
SELECT COUNT( * ) DIV - + SUM( DISTINCT - - col1 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-373
SELECT COUNT ( * ) / - + SUM ( DISTINCT - - col1 ) FROM tab0
----
0

query II rowsort
SELECT ALL + col0 AS col2, + col0 FROM tab0 WHERE NOT + 59 IS NULL
----
15
15
87
87
97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-375
SELECT DISTINCT COUNT( * ) * 87 * - COUNT( * ) col0 FROM tab2
----
-783

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-375
SELECT DISTINCT COUNT ( * ) * 87 * - COUNT ( * ) col0 FROM tab2
----
-783

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-377
SELECT ALL + col1 AS col1, - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-377
SELECT ALL + col1 AS col1, - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

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

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

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

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

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

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

query I rowsort
SELECT 3 * + - col0 FROM tab0 AS cor0
----
-261
-291
-45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - 4 col1, col2 * - + col0 col2 FROM tab2 AS cor0
----
-4
-1058
-4
-2560
-4
-4350

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-385
SELECT CAST( + 65 AS SIGNED ) * + col0 col1 FROM tab1
----
3315
5525
5915

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-385
SELECT CAST ( + 65 AS INTEGER ) * + col0 col1 FROM tab1
----
3315
5525
5915

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

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

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

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

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

query III rowsort
SELECT * FROM tab0 WHERE NOT 26 < 26 + + col1 + 32 / + - col2
----

query I rowsort
SELECT + ( 8 ) FROM tab0
----
8
8
8

query III rowsort
SELECT * FROM tab1 WHERE NOT + 8 - + col0 * + col0 <> NULL
----

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

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

query II rowsort
SELECT col1 + col1 AS col2, - col1 AS col2 FROM tab1 cor0
----
10
-5
28
-14
94
-47

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

onlyif mysql # aggregate syntax: 
query I rowsort label-395
SELECT 26 + - 75 + + - 86 * - + COUNT( * ) FROM tab0 AS cor0
----
209

skipif mysql # not compatible
query I rowsort label-395
SELECT 26 + - 75 + + - 86 * - + COUNT ( * ) FROM tab0 AS cor0
----
209

query I rowsort
SELECT ALL + 47 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-398
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN col0 AND + - CAST( NULL AS SIGNED ) + - 41 + col0
----

skipif mysql # not compatible
query III rowsort label-398
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN col0 AND + - CAST ( NULL AS INTEGER ) + - 41 + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-399
SELECT - + CAST( NULL AS SIGNED ) / - 14 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-399
SELECT - + CAST ( NULL AS INTEGER ) / - 14 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-400
SELECT - col2 * - 21 * + col2 AS col0, - col1 DIV - 35 FROM tab2 AS cor0
----
11109
1
33600
2
70644
1

skipif mysql # not compatible
query II rowsort label-400
SELECT - col2 * - 21 * + col2 AS col0, - col1 / - 35 FROM tab2 AS cor0
----
11109
1
33600
2
70644
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-402
SELECT COUNT( * ) * 11 * + 68 - - + 78 AS col1 FROM tab1
----
2322

skipif mysql # not compatible
query I rowsort label-402
SELECT COUNT ( * ) * 11 * + 68 - - + 78 AS col1 FROM tab1
----
2322

query I rowsort
SELECT 4 + - col0 AS col2 FROM tab1
----
-47
-81
-87

query I rowsort
SELECT - 87 + + + 4 * - col0 AS col0 FROM tab1 WHERE + 44 + col0 = + 39 + 71 * 62 + + col1
----

query I rowsort
SELECT ALL col1 + 86 FROM tab0
----
107
167
87

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-406
SELECT DISTINCT * FROM tab1 WHERE NOT + - 19 * + col2 * + col0 + - 22 + - CAST( + 79 AS SIGNED ) NOT BETWEEN NULL AND 0
----

skipif mysql # not compatible
query III rowsort label-406
SELECT DISTINCT * FROM tab1 WHERE NOT + - 19 * + col2 * + col0 + - 22 + - CAST ( + 79 AS INTEGER ) NOT BETWEEN NULL AND 0
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-408
SELECT ALL - SUM( ALL - 19 ) AS col0 FROM tab1
----
57

skipif mysql # not compatible
query I rowsort label-408
SELECT ALL - SUM ( ALL - 19 ) AS col0 FROM tab1
----
57

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

query I rowsort
SELECT 20 FROM tab0 AS cor0 WHERE NOT ( 69 ) IS NOT NULL
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-412
SELECT DISTINCT - col2 DIV - + col2 + - col1 FROM tab1 AS cor0
----
-13
-4
-46

skipif mysql # not compatible
query I rowsort label-412
SELECT DISTINCT - col2 / - + col2 + - col1 FROM tab1 AS cor0
----
-13
-4
-46

query I rowsort
SELECT - col1 * + 29 + - col0 * col0 - 47 FROM tab1 AS cor0
----
-3054
-7417
-9691

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

onlyif mysql # aggregate syntax: 
query I rowsort label-415
SELECT - MAX( ALL + col1 ) AS col0 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-415
SELECT - MAX ( ALL + col1 ) AS col0 FROM tab0 AS cor0
----
-81

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

query I rowsort
SELECT - - col0 * + col0 + + + 69 FROM tab0 AS cor0
----
294
7638
9478

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

query I rowsort
SELECT ALL - col1 + - 96 * - - col0 + + col2 AS col1 FROM tab2
----
-4444
-6181
-7209

onlyif mysql # DIV for integer division: 
query I rowsort label-420
SELECT ALL 46 * + col1 DIV - col1 FROM tab1
----
-46
-46
-46

skipif mysql # not compatible
query I rowsort label-420
SELECT ALL 46 * + col1 / - col1 FROM tab1
----
-46
-46
-46

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-422
SELECT + CAST( NULL AS SIGNED ) + col1, 28 AS col1 FROM tab1
----
NULL
28
NULL
28
NULL
28

skipif mysql # not compatible
query II rowsort label-422
SELECT + CAST ( NULL AS INTEGER ) + col1, 28 AS col1 FROM tab1
----
NULL
28
NULL
28
NULL
28

query I rowsort
SELECT col2 * col0 AS col1 FROM tab2 WHERE - - col1 IS NOT NULL
----
1058
2560
4350

query I rowsort
SELECT + col0 + - 48 AS col1 FROM tab0
----
-33
39
49

onlyif mysql # aggregate syntax: 
query I rowsort label-425
SELECT + SUM( 58 ) + - 29 FROM tab1
----
145

skipif mysql # not compatible
query I rowsort label-425
SELECT + SUM ( 58 ) + - 29 FROM tab1
----
145

onlyif mysql # DIV for integer division: 
query I rowsort label-426
SELECT col2 DIV + col0 + - 62 FROM tab0
----
-59
-61
-62

skipif mysql # not compatible
query I rowsort label-426
SELECT col2 / + col0 + - 62 FROM tab0
----
-59
-61
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-427
SELECT DISTINCT col1 col0 FROM tab0 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) IS NOT NULL
----
1
21
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-427
SELECT DISTINCT col1 col0 FROM tab0 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) IS NOT NULL
----
1
21
81

onlyif mysql # DIV for integer division: 
query I rowsort label-428
SELECT ALL 17 DIV + col0 AS col0 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-428
SELECT ALL 17 / + col0 AS col0 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT DISTINCT - + col2 + + - col2 AS col1 FROM tab1 AS cor0
----
-118
-136
-192

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

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

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

query I rowsort
SELECT ALL - col2 + + 19 AS col2 FROM tab0
----
-28
-80
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-433
SELECT COUNT( * ) * + + SUM( ALL - + CAST( - col1 AS SIGNED ) ) * + COUNT( * ) AS col2 FROM tab2
----
1755

skipif mysql # not compatible
query I rowsort label-433
SELECT COUNT ( * ) * + + SUM ( ALL - + CAST ( - col1 AS INTEGER ) ) * + COUNT ( * ) AS col2 FROM tab2
----
1755

onlyif mysql # aggregate syntax: 
query II rowsort label-434
SELECT COUNT( * ) AS col2, + 98 FROM tab0
----
3
98

skipif mysql # not compatible
query II rowsort label-434
SELECT COUNT ( * ) AS col2, + 98 FROM tab0
----
3
98

query II rowsort
SELECT ALL + col1, + col0 * 57 AS col0 FROM tab0
----
1
5529
21
4959
81
855

query I rowsort
SELECT col1 * + 99 AS col1 FROM tab0
----
2079
8019
99

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

skipif mysql # not compatible
query II rowsort label-437
SELECT 64 AS col1, + COUNT ( * ) FROM tab1
----
64
3

query I rowsort
SELECT DISTINCT 73 + + col1 AS col1 FROM tab2 cor0 WHERE NULL IS NULL
----
124
140
150

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

query I rowsort
SELECT 29 AS col1 FROM tab0 AS cor0 WHERE NOT ( 98 ) <= ( NULL )
----

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

skipif mysql # not compatible
query I rowsort label-441
SELECT - COUNT ( * ) / + 77 FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-442
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN - + CAST( NULL AS DECIMAL ) * - + 78 AND - + 19
----

skipif mysql # not compatible
query III rowsort label-442
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN - + CAST ( NULL AS REAL ) * - + 78 AND - + 19
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-443
SELECT ALL + CAST( + - 23 AS SIGNED ) * - 24 FROM tab0
----
552
552
552

skipif mysql # not compatible
query I rowsort label-443
SELECT ALL + CAST ( + - 23 AS INTEGER ) * - 24 FROM tab0
----
552
552
552

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-445
SELECT ALL + - CAST( col2 AS SIGNED ) + - + col2 FROM tab1 AS cor0
----
-118
-136
-192

skipif mysql # not compatible
query I rowsort label-445
SELECT ALL + - CAST ( col2 AS INTEGER ) + - + col2 FROM tab1 AS cor0
----
-118
-136
-192

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-446
SELECT ALL + - CAST( NULL AS SIGNED ) AS col0, - col1 AS col0 FROM tab0 WHERE NOT - ( + col1 ) * - + 45 < + col1 * - 52
----
NULL
-1
NULL
-21
NULL
-81

skipif mysql # not compatible
query II rowsort label-446
SELECT ALL + - CAST ( NULL AS INTEGER ) AS col0, - col1 AS col0 FROM tab0 WHERE NOT - ( + col1 ) * - + 45 < + col1 * - 52
----
NULL
-1
NULL
-21
NULL
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-447
SELECT ALL - COUNT( * ) * 97 AS col2 FROM tab0
----
-291

skipif mysql # not compatible
query I rowsort label-447
SELECT ALL - COUNT ( * ) * 97 AS col2 FROM tab0
----
-291

query I rowsort
SELECT + 66 FROM tab1 WHERE col0 * - col1 - - col2 * + col1 + - col1 + + 77 IS NOT NULL
----
66
66
66

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

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

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

query I rowsort
SELECT - 40 + 39 - 95 AS col1 FROM tab2 AS cor0
----
-96
-96
-96

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

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

query I rowsort
SELECT + - 70 AS col2 FROM tab0 WHERE NULL BETWEEN NULL AND NULL
----

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

query I rowsort
SELECT ALL col1 + + + 4 * 56 FROM tab0
----
225
245
305

query I rowsort
SELECT - col2 + ( - col1 ) * col0 AS col2 FROM tab0 WHERE - 88 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-457
SELECT ALL - + ( + + MAX( DISTINCT + + 82 ) ) AS col0 FROM tab2 cor0 CROSS JOIN tab2 cor1
----
-82

skipif mysql # not compatible
query I rowsort label-457
SELECT ALL - + ( + + MAX ( DISTINCT + + 82 ) ) AS col0 FROM tab2 cor0 CROSS JOIN tab2 cor1
----
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 75 col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
75

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

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

query I rowsort
SELECT DISTINCT + ( + col0 ) - + - col2 FROM tab1 AS cor0
----
144
147
159

onlyif mysql # aggregate syntax: 
query I rowsort label-462
SELECT DISTINCT 56 + + - ( - COUNT( * ) ) FROM tab0 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-462
SELECT DISTINCT 56 + + - ( - COUNT ( * ) ) FROM tab0 AS cor0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-463
SELECT - + 37 - + 70 + + SUM( + col2 ) FROM tab0 AS cor0
----
49

skipif mysql # not compatible
query I rowsort label-463
SELECT - + 37 - + 70 + + SUM ( + col2 ) FROM tab0 AS cor0
----
49

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-466
SELECT SUM( DISTINCT - 92 ) * + ( - 13 ) AS col2, 77 FROM tab0 AS cor0
----
1196
77

skipif mysql # not compatible
query II rowsort label-466
SELECT SUM ( DISTINCT - 92 ) * + ( - 13 ) AS col2, 77 FROM tab0 AS cor0
----
1196
77

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col0 * + col0 * + 49 <= col0 + - ( + - 16 )
----

query I rowsort
SELECT ALL - + col1 * + - 37 - + 74 FROM tab2 AS cor0 WHERE NOT 5 BETWEEN + - col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-470
SELECT DISTINCT 47 * + COUNT( * ) * 56 col0 FROM tab1
----
7896

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-470
SELECT DISTINCT 47 * + COUNT ( * ) * 56 col0 FROM tab1
----
7896

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

onlyif mysql # aggregate syntax: 
query I rowsort label-472
SELECT ALL + MAX( DISTINCT - col0 ) AS col1 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-472
SELECT ALL + MAX ( DISTINCT - col0 ) AS col1 FROM tab1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-473
SELECT ALL ( - COUNT( 70 ) ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-473
SELECT ALL ( - COUNT ( 70 ) ) FROM tab1
----
-3

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

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

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-480
SELECT + - 81 + - CAST( NULL AS SIGNED ) / - 26 / + col2 - + + 33 FROM tab0 AS cor0 WHERE col2 = NULL
----

skipif mysql # not compatible
query I rowsort label-480
SELECT + - 81 + - CAST ( NULL AS INTEGER ) / - 26 / + col2 - + + 33 FROM tab0 AS cor0 WHERE col2 = NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL = - 95
----

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

query II rowsort
SELECT - col1 + + - col1 AS col2, 38 FROM tab1
----
-10
38
-28
38
-94
38

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

query I rowsort
SELECT - col1 * + col0 * - 51 * + 24 + col1 FROM tab0
----
118729
1487241
2236269

onlyif mysql # aggregate syntax: 
query I rowsort label-486
SELECT SUM( ALL + + ( - + col2 ) ) + - - 39 FROM tab2
----
-82

skipif mysql # not compatible
query I rowsort label-486
SELECT SUM ( ALL + + ( - + col2 ) ) + - - 39 FROM tab2
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-487
SELECT - 33 + 22 * + + col0 - CAST( - col1 AS SIGNED ) AS col2 FROM tab2
----
1030
1452
1684

skipif mysql # not compatible
query I rowsort label-487
SELECT - 33 + 22 * + + col0 - CAST ( - col1 AS INTEGER ) AS col2 FROM tab2
----
1030
1452
1684

onlyif mysql # aggregate syntax: 
query II rowsort label-488
SELECT COUNT( * ) + - COUNT( * ), - 67 * - + COUNT( * ) AS col1 FROM tab1
----
0
201

skipif mysql # not compatible
query II rowsort label-488
SELECT COUNT ( * ) + - COUNT ( * ), - 67 * - + COUNT ( * ) AS col1 FROM tab1
----
0
201

onlyif mysql # DIV for integer division: 
query I rowsort label-489
SELECT + col0 + col2 DIV - ( 61 ) FROM tab0
----
15
87
96

skipif mysql # not compatible
query I rowsort label-489
SELECT + col0 + col2 / - ( 61 ) FROM tab0
----
15
87
96

query I rowsort
SELECT DISTINCT col1 - - + col0 FROM tab0
----
108
96
98

query I rowsort
SELECT DISTINCT + col1 * - ( col1 ) FROM tab2
----
-2601
-4489
-5929

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

skipif mysql # not compatible
query I rowsort label-492
SELECT - ( + MAX ( - - CAST ( NULL AS INTEGER ) ) ) - - - 24 * 84 FROM tab2 cor0
----
NULL

query I rowsort
SELECT DISTINCT + 8 - col1 + - - col2 * - col0 AS col1 FROM tab2
----
-1101
-2629
-4409

onlyif mysql # aggregate syntax: 
query II rowsort label-494
SELECT DISTINCT - - COUNT( * ), + 47 AS col2 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9
47

skipif mysql # not compatible
query II rowsort label-494
SELECT DISTINCT - - COUNT ( * ), + 47 AS col2 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9
47

onlyif mysql # aggregate syntax: 
query I rowsort label-495
SELECT ALL + MIN( + - 21 ) FROM tab0 cor0 WHERE NOT NULL <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-495
SELECT ALL + MIN ( + - 21 ) FROM tab0 cor0 WHERE NOT NULL <= NULL
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-498
SELECT - COUNT( * ) * + + 98 AS col0 FROM tab0 AS cor0
----
-294

skipif mysql # not compatible
query I rowsort label-498
SELECT - COUNT ( * ) * + + 98 AS col0 FROM tab0 AS cor0
----
-294

onlyif mysql # aggregate syntax: 
query I rowsort label-499
SELECT 95 * COUNT( * ) AS col2 FROM tab0 AS cor0
----
285

skipif mysql # not compatible
query I rowsort label-499
SELECT 95 * COUNT ( * ) AS col2 FROM tab0 AS cor0
----
285

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

query I rowsort
SELECT + 44 * - - 36 AS col1 FROM tab1 AS cor0
----
1584
1584
1584

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 95 > col1
----

query II rowsort
SELECT 20, + col0 FROM tab0
----
20
15
20
87
20
97

query I rowsort
SELECT - 40 * col2 FROM tab1
----
-2360
-2720
-3840

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + + 13 <> NULL
----

query II rowsort
SELECT DISTINCT col0, col2 AS col1 FROM tab2
----
46
23
64
40
75
58

onlyif mysql # DIV for integer division: 
query I rowsort label-508
SELECT DISTINCT - col2 DIV - col2 FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-508
SELECT DISTINCT - col2 / - col2 FROM tab0 cor0
----
1

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

skipif mysql # not compatible
query I rowsort label-509
SELECT MAX ( DISTINCT - - 30 ) FROM tab1 AS cor0
----
30

query I rowsort
SELECT - col0 FROM tab0 AS cor0 WHERE NOT NULL >= col2
----

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

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

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

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

query II rowsort
SELECT ALL 26 * - col0 AS col2, col1 FROM tab1 AS cor0
----
-1326
14
-2210
5
-2366
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 7 + col0 * - 57 col2 FROM tab0 AS cor0
----
-4952
-5522
-848

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

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

query I rowsort
SELECT DISTINCT + col0 + - col0 * + col0 + + col2 AS col0 FROM tab1 AS cor0
----
-2454
-7081
-8122

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-520
SELECT DISTINCT - CAST( + - col1 AS SIGNED ) + - 94 AS col1 FROM tab1
----
-47
-80
-89

skipif mysql # not compatible
query I rowsort label-520
SELECT DISTINCT - CAST ( + - col1 AS INTEGER ) + - 94 AS col1 FROM tab1
----
-47
-80
-89

query I rowsort
SELECT ALL col1 FROM tab2 WHERE col1 * - ( col2 ) + + - 80 IS NOT NULL
----
51
67
77

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

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

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

query I rowsort
SELECT DISTINCT - + 51 + + col1 FROM tab2 AS cor0
----
0
16
26

onlyif mysql # aggregate syntax: 
query I rowsort label-525
SELECT - + COUNT( * ) + + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE col0 > + 54
----
0

skipif mysql # not compatible
query I rowsort label-525
SELECT - + COUNT ( * ) + + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE col0 > + 54
----
0

query I rowsort
SELECT - - col2 + + 11 FROM tab1 AS cor0
----
107
70
79

query I rowsort
SELECT ALL - + col1 * + ( - + 29 ) + 88 + - 34 FROM tab1 AS cor0
----
1417
199
460

query I rowsort
SELECT DISTINCT - col0 + - + col1 FROM tab1 AS cor0
----
-138
-65
-90

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-532
SELECT CAST( - 45 AS SIGNED ) FROM tab2
----
-45
-45
-45

skipif mysql # not compatible
query I rowsort label-532
SELECT CAST ( - 45 AS INTEGER ) FROM tab2
----
-45
-45
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-533
SELECT - COUNT( * ) AS col2 FROM tab1 WHERE NOT ( 43 * - 75 ) < NULL
----
0

skipif mysql # not compatible
query I rowsort label-533
SELECT - COUNT ( * ) AS col2 FROM tab1 WHERE NOT ( 43 * - 75 ) < NULL
----
0

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

query I rowsort
SELECT - 60 AS col1 FROM tab1
----
-60
-60
-60

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-538
SELECT DISTINCT 35 * COUNT( * ) AS col1 FROM tab1 WHERE ( NULL ) NOT IN ( col1 )
----
0

skipif mysql # not compatible
query I rowsort label-538
SELECT DISTINCT 35 * COUNT ( * ) AS col1 FROM tab1 WHERE ( NULL ) NOT IN ( col1 )
----
0

query I rowsort
SELECT ALL 11 * col2 AS col2 FROM tab0 WHERE ( - 68 ) >= - col0
----
1089
110

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-541
SELECT + MAX( col0 ) AS col0 FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-541
SELECT + MAX ( col0 ) AS col0 FROM tab0
----
97

query I rowsort
SELECT ALL 80 / + col2 FROM tab2 WHERE NOT NULL >= - 26 + - col0 / + col0
----

query I rowsort
SELECT DISTINCT col1 + col1 FROM tab1 WHERE NOT col0 + 88 IS NOT NULL
----

query I rowsort
SELECT - 6 AS col2 FROM tab2 WHERE NOT - 39 - - 58 * - ( col2 ) IS NULL
----
-6
-6
-6

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

query I rowsort
SELECT - ( - 93 ) + + 97 FROM tab2
----
190
190
190

query I rowsort
SELECT - 55 * 0 + - col2 AS col2 FROM tab0
----
-10
-47
-99

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL = ( 58 )
----

query I rowsort
SELECT - ( + col0 ) AS col1 FROM tab1 WHERE col2 > - col2
----
-51
-85
-91

query I rowsort
SELECT ALL 83 + ( - col1 + col1 * col0 ) FROM tab0
----
1217
179
1889

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-553
SELECT DISTINCT + CAST( col1 AS SIGNED ) DIV 15 AS col1 FROM tab1 cor0
----
0
3

skipif mysql # not compatible
query I rowsort label-553
SELECT DISTINCT + CAST ( col1 AS INTEGER ) / 15 AS col1 FROM tab1 cor0
----
0
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-554
SELECT ALL - col2 / + CAST( NULL AS DECIMAL ) + col0 FROM tab0 AS cor0 WHERE ( 93 ) NOT BETWEEN col0 AND 12
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-554
SELECT ALL - col2 / + CAST ( NULL AS REAL ) + col0 FROM tab0 AS cor0 WHERE ( 93 ) NOT BETWEEN col0 AND 12
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 + 76 * col1 FROM tab0 AS cor0
----
1683
173
6171

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

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

skipif mysql # not compatible
query I rowsort label-557
SELECT ( 60 ) * + COUNT ( * ) FROM tab2
----
180

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

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

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

skipif mysql # not compatible
query I rowsort label-559
SELECT 44 - COUNT ( * ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
44

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-563
SELECT 14 * + 3 + + SUM( 91 + col0 ) AS col2 FROM tab1 AS cor0
----
542

skipif mysql # not compatible
query I rowsort label-563
SELECT 14 * + 3 + + SUM ( 91 + col0 ) AS col2 FROM tab1 AS cor0
----
542

onlyif mysql # aggregate syntax: 
query I rowsort label-564
SELECT DISTINCT - MIN( + 45 ) col0 FROM tab1 AS cor0
----
-45

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-564
SELECT DISTINCT - MIN ( + 45 ) col0 FROM tab1 AS cor0
----
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-565
SELECT ALL - col0 + + col2 DIV 13 AS col2 FROM tab0 cor0
----
-12
-87
-90

skipif mysql # not compatible
query I rowsort label-565
SELECT ALL - col0 + + col2 / 13 AS col2 FROM tab0 cor0
----
-12
-87
-90

query I rowsort
SELECT col2 * - + col2 + + 47 FROM tab0
----
-2162
-53
-9754

query I rowsort
SELECT col1 + - col2 FROM tab2 WHERE ( col1 + col2 / + col2 ) <= ( 52 )
----
28

query I rowsort
SELECT DISTINCT - 91 + col2 + - col0 FROM tab1
----
-114
-117
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-569
SELECT ALL SUM( - col0 ) - - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-570
SELECT + MIN( - 66 ) FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-570
SELECT + MIN ( - 66 ) FROM tab1
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-571
SELECT DISTINCT - CAST( + col2 AS SIGNED ) - 30 col1 FROM tab2
----
-53
-70
-88

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-571
SELECT DISTINCT - CAST ( + col2 AS INTEGER ) - 30 col1 FROM tab2
----
-53
-70
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-572
SELECT + 25 DIV + 33 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-572
SELECT + 25 / + 33 FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col1 FROM tab0 WHERE NOT NULL = ( NULL )
----

query II rowsort
SELECT 9 AS col0, + col1 FROM tab2
----
9
51
9
67
9
77

query I rowsort
SELECT ( + 70 ) FROM tab2
----
70
70
70

onlyif mysql # aggregate syntax: 
query I rowsort label-576
SELECT + MIN( ALL - 33 ) AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-33

skipif mysql # not compatible
query I rowsort label-576
SELECT + MIN ( ALL - 33 ) AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-33

query I rowsort
SELECT ALL col1 * col2 + + - col2 + 65 * 32 AS col0 FROM tab0 AS cor0
----
2080
2280
5840

onlyif mysql # aggregate syntax: 
query I rowsort label-578
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE NOT + ( - col1 ) * - 43 - 8 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-578
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT + ( - col1 ) * - 43 - 8 IS NULL
----
3

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

query I rowsort
SELECT - + 45 * + - col0 - - + col0 FROM tab2 AS cor0
----
2116
2944
3450

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-581
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col0 * CAST( NULL AS SIGNED ) + + 87 BETWEEN col2 + 62 AND col2
----

skipif mysql # not compatible
query III rowsort label-581
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col0 * CAST ( NULL AS INTEGER ) + + 87 BETWEEN col2 + 62 AND col2
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col1 * - - col0 / + 62 <> ( - 97 * col2 )
----

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

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

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

query II rowsort
SELECT ALL + col1, + col2 + col2 - - col2 AS col0 FROM tab2 AS cor0
----
51
69
67
174
77
120

onlyif mysql # aggregate syntax: 
query I rowsort label-586
SELECT - + COUNT( * ) * + 49 FROM tab0 AS cor0
----
-147

skipif mysql # not compatible
query I rowsort label-586
SELECT - + COUNT ( * ) * + 49 FROM tab0 AS cor0
----
-147

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL < + col2 / col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-588
SELECT col2 * ( - - 2 ) DIV - 4 AS col0 FROM tab2
----
-11
-20
-29

skipif mysql # not compatible
query I rowsort label-588
SELECT col2 * ( - - 2 ) / - 4 AS col0 FROM tab2
----
-11
-20
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-589
SELECT + COUNT( DISTINCT + col2 ) AS col2 FROM tab2 WHERE NOT + 66 * col1 * col2 NOT BETWEEN ( col1 / - col1 + col2 ) AND col1 / 22
----
0

skipif mysql # not compatible
query I rowsort label-589
SELECT + COUNT ( DISTINCT + col2 ) AS col2 FROM tab2 WHERE NOT + 66 * col1 * col2 NOT BETWEEN ( col1 / - col1 + col2 ) AND col1 / 22
----
0

query I rowsort
SELECT ALL + 90 * ( + col1 ) FROM tab2
----
4590
6030
6930

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

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

query I rowsort
SELECT ALL 79 * 0 * col1 AS col2 FROM tab1
----
0
0
0

query II rowsort
SELECT ALL 18 * col2, 59 AS col2 FROM tab2
----
1044
59
414
59
720
59

query I rowsort
SELECT - 36 * col1 AS col2 FROM tab0 AS cor0 WHERE NOT - col0 + - ( + - col2 ) + col1 IS NULL
----
-2916
-36
-756

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

skipif mysql # not compatible
query I rowsort label-595
SELECT DISTINCT + COUNT ( * ) / MIN ( DISTINCT - + 88 ) AS col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL 8 * col1 + - 66 FROM tab1 cor0 WHERE 71 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-597
SELECT DISTINCT ( 21 ) DIV + CAST( - - 66 AS SIGNED ) - col2 * col2 + col2 * + col1 FROM tab1 cor0
----
-1428
-3186
-7872

skipif mysql # not compatible
query I rowsort label-597
SELECT DISTINCT ( 21 ) / + CAST ( - - 66 AS INTEGER ) - col2 * col2 + col2 * + col1 FROM tab1 cor0
----
-1428
-3186
-7872

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

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

query I rowsort
SELECT ( col2 ) + - 39 * 53 * + col2 FROM tab2 AS cor0
----
-119828
-47518
-82640

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

query I rowsort
SELECT - 10 AS col1 FROM tab2 cor0 WHERE + col1 * + 24 IS NOT NULL
----
-10
-10
-10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 + - + col2 + + col1 + + 81 col2 FROM tab0 AS cor0
----
102
162
82

query I rowsort
SELECT ALL - + 43 AS col1 FROM tab0 AS cor0 WHERE NOT 3 + col0 + - - col0 IS NOT NULL
----

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

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

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

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

query I rowsort
SELECT DISTINCT - - col0 + + 66 + col0 * + col0 * + 79 FROM tab1 AS cor0
----
205596
570926
654356

query I rowsort
SELECT 38 - + ( - col2 ) FROM tab2
----
61
78
96

query I rowsort
SELECT 87 + 11 FROM tab1
----
98
98
98

query I rowsort
SELECT 50 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52

query II rowsort
SELECT DISTINCT + col1 AS col1, col1 * - + 5 FROM tab0
----
1
-5
21
-105
81
-405

query I rowsort
SELECT + + 82 * - ( - 76 ) FROM tab1 WHERE NULL IS NULL
----
6232
6232
6232

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-612
SELECT DISTINCT - COUNT( * ) DIV + SUM( ALL col2 ) - + COUNT( * ) + + MIN( - col1 ) FROM tab1
----
-50

skipif mysql # not compatible
query I rowsort label-612
SELECT DISTINCT - COUNT ( * ) / + SUM ( ALL col2 ) - + COUNT ( * ) + + MIN ( - col1 ) FROM tab1
----
-50

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 43 + col1 * - - 75 * 89 + + - 81 < 42
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 68 IS NOT NULL OR + - col1 * + col2 + col1 + 24 = ( + col2 )
----

query I rowsort
SELECT - + col1 * - ( - col2 ) * + + 69 + + col2 AS col2 FROM tab0 AS cor0
----
-14480
-262636
-6732

query IIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) IS NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

query II rowsort
SELECT - ( + - col1 ) AS col2, - 35 * - 3 FROM tab1 AS cor0
----
14
105
47
105
5
105

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

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

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - 52 - + + col0 <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + + ( + 31 ) <= col1 + - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - 29 * - col2 * col2 FROM tab1
----
100949
134096
267264

onlyif mysql # aggregate syntax: 
query I rowsort label-622
SELECT 93 + + COUNT( * ) AS col0 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-622
SELECT 93 + + COUNT ( * ) AS col0 FROM tab1
----
96

query II rowsort
SELECT 94 * + col0 + + 80, - col1 AS col2 FROM tab0
----
1490
-81
8258
-21
9198
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-624
SELECT + CAST( + - 76 AS SIGNED ) + 1 + + + COUNT( * ) + - ( 99 ) AS col0 FROM tab2
----
-171

skipif mysql # not compatible
query I rowsort label-624
SELECT + CAST ( + - 76 AS INTEGER ) + 1 + + + COUNT ( * ) + - ( 99 ) AS col0 FROM tab2
----
-171

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-625
SELECT + COUNT( * ) * COUNT( DISTINCT 77 ) FROM tab0 WHERE NOT ( col0 * col0 / CAST( NULL AS DECIMAL ) * + 87 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-625
SELECT + COUNT ( * ) * COUNT ( DISTINCT 77 ) FROM tab0 WHERE NOT ( col0 * col0 / CAST ( NULL AS REAL ) * + 87 ) IS NOT NULL
----
3

query I rowsort
SELECT ALL - col0 AS col1 FROM tab0 AS cor0 WHERE 45 - - - col1 * - 76 IS NULL
----

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL > 37 * 36 + + - 37
----

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

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 57 > - ( col2 ) + + - col1 + - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col2 FROM tab1 cor0 WHERE NULL < col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 / 87 + - 8 < 10
----

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 - + 16 IN ( - - col0, 46 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-636
SELECT ALL 44 + + + CAST( NULL AS SIGNED ) + CAST( col2 AS SIGNED ), col2 * - 25 AS col0 FROM tab2 AS cor0
----
NULL
-1000
NULL
-1450
NULL
-575

skipif mysql # not compatible
query II rowsort label-636
SELECT ALL 44 + + + CAST ( NULL AS INTEGER ) + CAST ( col2 AS INTEGER ), col2 * - 25 AS col0 FROM tab2 AS cor0
----
NULL
-1000
NULL
-1450
NULL
-575

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

query I rowsort
SELECT ALL - - col2 * + 20 AS col2 FROM tab2 AS cor0
----
1160
460
800

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

query II rowsort
SELECT col0 AS col2, - col0 * col2 + + 16 AS col2 FROM tab0
----
15
-689
87
-854
97
-9587

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

query III rowsort
SELECT * FROM tab1 WHERE - ( - 37 ) IN ( - - col1 * - - 68 * col1 - - + 34 + + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-643
SELECT DISTINCT - COUNT( * ) - 63 FROM tab2
----
-66

skipif mysql # not compatible
query I rowsort label-643
SELECT DISTINCT - COUNT ( * ) - 63 FROM tab2
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-644
SELECT ALL MIN( - - 29 ) col0 FROM tab1
----
29

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

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

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

query I rowsort
SELECT - 95 * - 94 FROM tab0 cor0
----
8930
8930
8930

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL ) IS NOT NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-648
SELECT 22 DIV - MAX( + + col0 ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-648
SELECT 22 / - MAX ( + + col0 ) AS col2 FROM tab2
----
0

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT + 46 IS NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query I rowsort
SELECT ALL + 61 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 07149905a72bd87553381f34d19ed290

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT IN ( 82, - 49 )
----

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

query I rowsort
SELECT DISTINCT col1 + + - 42 AS col0 FROM tab0 cor0
----
-21
-41
39

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 62 BETWEEN col0 AND + + 6
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col0 * col2 * 60 AS col0 FROM tab2 AS cor0
----
153600
261000
63480

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-659
SELECT ALL + MIN( col0 ) + + 23 AS col1 FROM tab1 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-659
SELECT ALL + MIN ( col0 ) + + 23 AS col1 FROM tab1 AS cor0
----
74

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

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT + - col2 * - col1 + - col2 * - col2 + - + 17 - col1 + + col2 - - ( - col1 ) / - 71 * col1 BETWEEN col2 * col2 AND col0 + - col0 * + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col0 + 57 * - 94 FROM tab1
----
-5409
-5443
-5449

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-666
SELECT DISTINCT - MAX( DISTINCT - col0 ) AS col0 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-666
SELECT DISTINCT - MAX ( DISTINCT - col0 ) AS col0 FROM tab2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-667
SELECT + ( + SUM( ALL - 98 ) ) FROM tab2
----
-294

skipif mysql # not compatible
query I rowsort label-667
SELECT + ( + SUM ( ALL - 98 ) ) FROM tab2
----
-294

query I rowsort
SELECT + - col1 + - + col1 + - 11 * - - col2 AS col2 FROM tab2 cor0
----
-355
-594
-772

onlyif mysql # aggregate syntax: 
query I rowsort label-669
SELECT + 91 + + COUNT( - + col0 ) FROM tab1
----
94

skipif mysql # not compatible
query I rowsort label-669
SELECT + 91 + + COUNT ( - + col0 ) FROM tab1
----
94

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

query I rowsort
SELECT DISTINCT + col1 * 90 + + - col2 FROM tab0 AS cor0
----
-9
1880
7243

query I rowsort
SELECT - + col1 - - + col0 FROM tab1 AS cor0
----
37
44
80

onlyif mysql # aggregate syntax: 
query I rowsort label-673
SELECT + COUNT( ALL col0 ) - - 2 AS col0 FROM tab0 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-673
SELECT + COUNT ( ALL col0 ) - - 2 AS col0 FROM tab0 AS cor0
----
5

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

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

query I rowsort
SELECT + col1 - - 5 AS col1 FROM tab1 AS cor0
----
10
19
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-677
SELECT ALL CAST( ( - + 96 ) AS SIGNED ) * + 76 AS col0, MAX( + + 73 ) FROM tab0
----
-7296
73

skipif mysql # not compatible
query II rowsort label-677
SELECT ALL CAST ( ( - + 96 ) AS INTEGER ) * + 76 AS col0, MAX ( + + 73 ) FROM tab0
----
-7296
73

onlyif mysql # DIV for integer division: 
query I rowsort label-678
SELECT DISTINCT 77 DIV col2 FROM tab2
----
1
3

skipif mysql # not compatible
query I rowsort label-678
SELECT DISTINCT 77 / col2 FROM tab2
----
1
3

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-682
SELECT ALL + COUNT ( * ) FROM tab1 WHERE NOT - - col0 <= + col0
----
0

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

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

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

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL >= NULL
----

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-688
SELECT - ( 83 ) DIV - 38 AS col2, + SUM( DISTINCT - 52 ) * - + 27 FROM tab2 AS cor0
----
2
1404

skipif mysql # not compatible
query II rowsort label-688
SELECT - ( 83 ) / - 38 AS col2, + SUM ( DISTINCT - 52 ) * - + 27 FROM tab2 AS cor0
----
2
1404

query II rowsort
SELECT + col0 AS col1, - col2 FROM tab1 AS cor0
----
51
-96
85
-59
91
-68

query I rowsort
SELECT DISTINCT - col2 FROM tab2 AS cor0 WHERE ( NULL ) > ( NULL )
----

query I rowsort
SELECT ALL - 69 + col0 FROM tab1 AS cor0
----
-18
16
22

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

onlyif mysql # aggregate syntax: 
query I rowsort label-693
SELECT DISTINCT + SUM( - col0 ) + - + 40 AS col0 FROM tab0 AS cor0
----
-239

skipif mysql # not compatible
query I rowsort label-693
SELECT DISTINCT + SUM ( - col0 ) + - + 40 AS col0 FROM tab0 AS cor0
----
-239

query I rowsort
SELECT col0 + - 98 AS col0 FROM tab1
----
-13
-47
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-695
SELECT - COUNT( * ) + MAX( col2 ) AS col1 FROM tab0
----
96

skipif mysql # not compatible
query I rowsort label-695
SELECT - COUNT ( * ) + MAX ( col2 ) AS col1 FROM tab0
----
96

query I rowsort
SELECT + 1 + + - col1 AS col1 FROM tab0
----
-20
-80
0

query I rowsort
SELECT ALL 49 * + ( + 67 ) AS col2 FROM tab2
----
3283
3283
3283

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-699
SELECT DISTINCT + MAX( - + col2 ) AS col0 FROM tab2 WHERE NOT - + col1 IS NULL
----
-23

skipif mysql # not compatible
query I rowsort label-699
SELECT DISTINCT + MAX ( - + col2 ) AS col0 FROM tab2 WHERE NOT - + col1 IS NULL
----
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-700
SELECT + ( - col2 ) * 90 + + col0 + 31 + - - 67 * col2 * - + col2 DIV col2 FROM tab0
----
-1452
-15415
-7333

skipif mysql # not compatible
query I rowsort label-700
SELECT + ( - col2 ) * 90 + + col0 + 31 + - - 67 * col2 * - + col2 / col2 FROM tab0
----
-1452
-15415
-7333

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL NOT IN ( - 77 )
----

query II rowsort
SELECT ALL + col0, col0 + 19 FROM tab1 AS cor0
----
51
70
85
104
91
110

query II rowsort
SELECT 58 + + ( col0 ) + - col2, - col0 FROM tab0 AS cor0 WHERE + ( 39 ) + + + col2 IN ( - - col0 * - col0 + + 50 + + - col1 + - col0 * - + col2 )
----

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

query I rowsort
SELECT ALL + + col2 * + 5 FROM tab1 AS cor0
----
295
340
480

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

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

query I rowsort
SELECT DISTINCT col2 + + + col1 FROM tab2
----
117
125
74

query III rowsort
SELECT ALL * FROM tab1 WHERE + col0 * 3 IS NULL
----

query I rowsort
SELECT ALL col2 + - + col0 AS col0 FROM tab1
----
-23
-26
45

query I rowsort
SELECT 69 + + + 1 AS col1 FROM tab0
----
70
70
70

onlyif mysql # aggregate syntax: 
query II rowsort label-712
SELECT COUNT( * ) + - 46, 45 * - - COUNT( * ) AS col2 FROM tab1
----
-43
135

skipif mysql # not compatible
query II rowsort label-712
SELECT COUNT ( * ) + - 46, 45 * - - COUNT ( * ) AS col2 FROM tab1
----
-43
135

onlyif mysql # aggregate syntax: 
query I rowsort label-713
SELECT ALL - SUM( + + 54 ) * + 57 AS col1 FROM tab1 cor0
----
-9234

skipif mysql # not compatible
query I rowsort label-713
SELECT ALL - SUM ( + + 54 ) * + 57 AS col1 FROM tab1 cor0
----
-9234

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-714
SELECT - CAST( NULL AS DECIMAL ) + col1 / - 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-714
SELECT - CAST ( NULL AS REAL ) + col1 / - col0 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-715
SELECT DISTINCT + col1 DIV col0 - + + 10 AS col0 FROM tab2 AS cor0
----
-10
-9

skipif mysql # not compatible
query I rowsort label-715
SELECT DISTINCT + col1 / col0 - + + 10 AS col0 FROM tab2 AS cor0
----
-10
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 25 * 78 * - col2 * col1 + + col1 * + + col2 col2 FROM tab0 AS cor0
----
193149
409710
7427457

query II rowsort
SELECT DISTINCT - - ( - + col1 ) * 42 * - - 27 * - 55 AS col0, - col2 - col2 FROM tab0 cor0
----
1309770
-20
5051970
-94
62370
-198

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( + 19, - 92 + 51, + col2 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-720
SELECT COUNT( - - 64 ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-720
SELECT COUNT ( - - 64 ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-721
SELECT ALL MIN( + 93 ) + - 86 FROM tab1 AS cor0 WHERE NOT NULL < col2 + col0 * col1
----
NULL

skipif mysql # not compatible
query I rowsort label-721
SELECT ALL MIN ( + 93 ) + - 86 FROM tab1 AS cor0 WHERE NOT NULL < col2 + col0 * col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-722
SELECT ALL - MIN( DISTINCT 53 ) FROM tab1
----
-53

skipif mysql # not compatible
query I rowsort label-722
SELECT ALL - MIN ( DISTINCT 53 ) FROM tab1
----
-53

query II rowsort
SELECT col1 AS col0, col0 + - col2 FROM tab2
----
51
23
67
17
77
24

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-725
SELECT COUNT( * ) AS col2, 45 AS col1 FROM tab1
----
3
45

skipif mysql # not compatible
query II rowsort label-725
SELECT COUNT ( * ) AS col2, 45 AS col1 FROM tab1
----
3
45

onlyif mysql # aggregate syntax: 
query I rowsort label-726
SELECT ALL + COUNT( * ) * - 86 AS col1 FROM tab2
----
-258

skipif mysql # not compatible
query I rowsort label-726
SELECT ALL + COUNT ( * ) * - 86 AS col1 FROM tab2
----
-258

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-727
SELECT - 40 DIV COUNT( * ) FROM tab0
----
-13

skipif mysql # not compatible
query I rowsort label-727
SELECT - 40 / COUNT ( * ) FROM tab0
----
-13

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-732
SELECT + col2 DIV 67 + + col2 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-732
SELECT + col2 / 67 + + col2 FROM tab2
----
23
40
58

query I rowsort
SELECT - 61 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 51f53697966a79d306a4570537cd91a1

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-736
SELECT 24 DIV + - col0 AS col0 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-736
SELECT 24 / + - col0 AS col0 FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT - 56 AS col2 FROM tab2 AS cor0 WHERE 42 IS NOT NULL
----
-56
-56
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-738
SELECT DISTINCT - + COUNT( * ) + - MAX( ALL - - col1 ) AS col2 FROM tab0 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-738
SELECT DISTINCT - + COUNT ( * ) + - MAX ( ALL - - col1 ) AS col2 FROM tab0 AS cor0
----
-84

query III rowsort
SELECT ALL * FROM tab0 WHERE - 71 NOT BETWEEN + 86 AND + + col0 + - - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

query I rowsort
SELECT DISTINCT - col2 FROM tab1 WHERE NOT - 4 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-742
SELECT - CAST( + COUNT( * ) AS SIGNED ) * + + 62 + - 53 AS col1 FROM tab1
----
-239

skipif mysql # not compatible
query I rowsort label-742
SELECT - CAST ( + COUNT ( * ) AS INTEGER ) * + + 62 + - 53 AS col1 FROM tab1
----
-239

query I rowsort
SELECT - - col2 FROM tab1 WHERE - + col0 * - col2 < - + col1
----

query I rowsort
SELECT - 78 * + + col0 AS col2 FROM tab0
----
-1170
-6786
-7566

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

query I rowsort
SELECT DISTINCT + col2 + - 47 - + + col0 * col0 + - col0 + - - col1 AS col2 FROM tab1
----
-2589
-7293
-8304

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-749
SELECT ALL - 34 * 47 DIV 83 - 23 + col1 * + ( - col1 ) AS col0 FROM tab1
----
-2251
-238
-67

skipif mysql # not compatible
query I rowsort label-749
SELECT ALL - 34 * 47 / 83 - 23 + col1 * + ( - col1 ) AS col0 FROM tab1
----
-2251
-238
-67

query IIIIII rowsort
SELECT ALL * FROM tab1 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 15 + 73 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-751
SELECT - SUM( ALL + col2 ) * 32 AS col1 FROM tab0 AS cor0
----
-4992

skipif mysql # not compatible
query I rowsort label-751
SELECT - SUM ( ALL + col2 ) * 32 AS col1 FROM tab0 AS cor0
----
-4992

onlyif mysql # aggregate syntax: 
query I rowsort label-752
SELECT DISTINCT + - SUM( + 48 ) FROM tab0 AS cor0
----
-144

skipif mysql # not compatible
query I rowsort label-752
SELECT DISTINCT + - SUM ( + 48 ) FROM tab0 AS cor0
----
-144

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

query I rowsort
SELECT - col0 * + col2 - - col2 + 81 * 11 FROM tab1 AS cor0
----
-3909
-4065
-5229

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-755
SELECT DISTINCT + + 20 AS col1 FROM tab2 AS cor0 WHERE - ( - + CAST( + 11 AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-755
SELECT DISTINCT + + 20 AS col1 FROM tab2 AS cor0 WHERE - ( - + CAST ( + 11 AS INTEGER ) ) IS NULL
----

query II rowsort
SELECT DISTINCT - col0 AS col0, + 28 + + - 90 FROM tab2 AS cor0
----
-46
-62
-64
-62
-75
-62

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-758
SELECT + + 59 DIV - col0 FROM tab1 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-758
SELECT + + 59 / - col0 FROM tab1 cor0
----
-1
0
0

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-759
SELECT ALL - ( - MAX ( DISTINCT + col0 ) ) col2 FROM tab1 AS cor0
----
91

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

query III rowsort
SELECT * FROM tab0 WHERE NOT - - 4 * + + 21 <= - ( + + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 50 * + ( + 27 ) AS col1 FROM tab2
----
1350

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-763
SELECT DISTINCT - col2 FROM tab2 WHERE NOT NULL = - col2 * - 33 + - 55 + CAST( NULL AS SIGNED ) / 87 * - - 46
----

skipif mysql # not compatible
query I rowsort label-763
SELECT DISTINCT - col2 FROM tab2 WHERE NOT NULL = - col2 * - 33 + - 55 + CAST ( NULL AS INTEGER ) / 87 * - - 46
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 23 * 94 col0 FROM tab2
----
2162
2162
2162

onlyif mysql # aggregate syntax: 
query I rowsort label-765
SELECT - 70 * + + COUNT( * ) FROM tab2
----
-210

skipif mysql # not compatible
query I rowsort label-765
SELECT - 70 * + + COUNT ( * ) FROM tab2
----
-210

onlyif mysql # aggregate syntax: 
query I rowsort label-766
SELECT + 36 * + COUNT( * ) FROM tab0
----
108

skipif mysql # not compatible
query I rowsort label-766
SELECT + 36 * + COUNT ( * ) FROM tab0
----
108

query I rowsort
SELECT DISTINCT - col1 + + - 8 FROM tab1 cor0
----
-13
-22
-55

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

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

query II rowsort
SELECT ALL - 9 AS col1, + col0 + + - ( col1 ) FROM tab1 AS cor0
----
-9
37
-9
44
-9
80

onlyif mysql # DIV for integer division: 
query II rowsort label-770
SELECT DISTINCT - 24 AS col2, col0 DIV + - ( + col1 ) FROM tab0 AS cor0
----
-24
-4
-24
-97
-24
0

skipif mysql # not compatible
query II rowsort label-770
SELECT DISTINCT - 24 AS col2, col0 / + - ( + col1 ) FROM tab0 AS cor0
----
-24
-4
-24
-97
-24
0

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

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

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

skipif mysql # not compatible
query III rowsort label-772
SELECT * FROM tab2 AS cor0 WHERE NULL >= CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT - + 21 + - col2 AS col0 FROM tab0 AS cor0
----
-120
-31
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-774
SELECT DISTINCT - - COUNT( * ) FROM tab1 AS cor0 WHERE NULL <= col1
----
0

skipif mysql # not compatible
query I rowsort label-774
SELECT DISTINCT - - COUNT ( * ) FROM tab1 AS cor0 WHERE NULL <= col1
----
0

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

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

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

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

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

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

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

query I rowsort
SELECT ALL - ( col0 ) - col0 AS col0 FROM tab1
----
-102
-170
-182

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-782
SELECT ALL + col2 AS col0, 90 AS col2 FROM tab1 WHERE ( NOT - col1 IN ( 8, - CAST( + + col0 AS DECIMAL ) + - + 51 ) )
----
59
90
68
90
96
90

skipif mysql # not compatible
query II rowsort label-782
SELECT ALL + col2 AS col0, 90 AS col2 FROM tab1 WHERE ( NOT - col1 IN ( 8, - CAST ( + + col0 AS REAL ) + - + 51 ) )
----
59
90
68
90
96
90

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

query I rowsort
SELECT ALL - col0 * - - col2 FROM tab0
----
-705
-870
-9603

query I rowsort
SELECT ALL - col0 * 68 AS col0 FROM tab0 AS cor0 WHERE col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 col0, 5 * + 0 AS col0 FROM tab0 cor0
----
15
0
87
0
97
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-788
SELECT MAX( - 0 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-788
SELECT MAX ( - 0 ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT ( - - col1 ) FROM tab1 AS cor0
----
14
47
5

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

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

query I rowsort
SELECT col0 * - + ( + col1 ) AS col0 FROM tab0
----
-1215
-1827
-97

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-794
SELECT - COUNT( ALL + col1 ) * + 83 AS col2 FROM tab2 AS cor0
----
-249

skipif mysql # not compatible
query I rowsort label-794
SELECT - COUNT ( ALL + col1 ) * + 83 AS col2 FROM tab2 AS cor0
----
-249

query II rowsort
SELECT + 75, col0 AS col1 FROM tab1 AS cor0
----
75
51
75
85
75
91

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 14 + col2 col0 FROM tab1
----
110
73
82

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

query I rowsort
SELECT DISTINCT col1 * + - col2 * col1 FROM tab2
----
-237160
-260362
-59823

query I rowsort
SELECT DISTINCT + 19 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-801
SELECT - 52 DIV - 66 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-801
SELECT - 52 / - 66 FROM tab0 AS cor0
----
0
0
0

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

query III rowsort
SELECT ALL + 93 + col0, 99 AS col0, col1 AS col0 FROM tab1 AS cor0
----
9 values hashing to f80daddb6455655e4ad84e40751ffb37

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

query I rowsort
SELECT DISTINCT col1 + + col1 * + 2 FROM tab0 AS cor0
----
243
3
63

query I rowsort
SELECT ALL + - 1 - + col2 AS col2 FROM tab2 AS cor0
----
-24
-41
-59

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

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

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

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

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

query I rowsort
SELECT 21 - + - col0 + + col2 FROM tab0
----
118
217
83

query I rowsort
SELECT DISTINCT - col2 * ( col2 ) + + - col2 * - col1 * + - col0 FROM tab1
----
-28556
-295460
-77760

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

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

query I rowsort
SELECT - col1 * col0 + - col0 * 50 + - + col1 AS col2 FROM tab0
----
-2046
-4948
-6198

query I rowsort
SELECT - + 57 * - 91 + col2 AS col0 FROM tab0 AS cor0
----
5197
5234
5286

query I rowsort
SELECT DISTINCT 95 * col0 - ( col2 ) FROM tab0 AS cor0
----
1378
8255
9116

query I rowsort
SELECT ALL col0 + col2 * + - col0 AS col0 FROM tab1 AS cor0
----
-4845
-4930
-6097

query I rowsort
SELECT - col0 * - 39 FROM tab1 AS cor0
----
1989
3315
3549

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-821
SELECT COUNT( * ) + + 79 AS col2 FROM tab2 AS cor0 WHERE NOT ( + col0 ) <> col0 * - col2
----
79

skipif mysql # not compatible
query I rowsort label-821
SELECT COUNT ( * ) + + 79 AS col2 FROM tab2 AS cor0 WHERE NOT ( + col0 ) <> col0 * - col2
----
79

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-823
SELECT ALL + ( + 54 ) / - CAST( NULL AS SIGNED ) * + col2 AS col0, 31 * 10 FROM tab2 AS cor0
----
NULL
310
NULL
310
NULL
310

skipif mysql # not compatible
query II rowsort label-823
SELECT ALL + ( + 54 ) / - CAST ( NULL AS INTEGER ) * + col2 AS col0, 31 * 10 FROM tab2 AS cor0
----
NULL
310
NULL
310
NULL
310

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

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

query II rowsort
SELECT DISTINCT + 63 AS col2, col1 * + col0 * - col2 AS col1 FROM tab1
----
63
-25075
63
-290836
63
-68544

onlyif mysql # aggregate syntax: 
query I rowsort label-827
SELECT 85 - 33 - 10 * + COUNT( * ) FROM tab0, tab0 cor0
----
-38

skipif mysql # not compatible
query I rowsort label-827
SELECT 85 - 33 - 10 * + COUNT ( * ) FROM tab0, tab0 cor0
----
-38

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-831
SELECT MAX( DISTINCT + 16 ) AS col0, COUNT( DISTINCT - 93 ) / + CAST( NULL AS DECIMAL ) FROM tab2
----
16
NULL

skipif mysql # not compatible
query II rowsort label-831
SELECT MAX ( DISTINCT + 16 ) AS col0, COUNT ( DISTINCT - 93 ) / + CAST ( NULL AS REAL ) FROM tab2
----
16
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-832
SELECT COUNT( * ) AS col1 FROM tab2 WHERE 56 / - + 10 + col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-832
SELECT COUNT ( * ) AS col1 FROM tab2 WHERE 56 / - + 10 + col0 IS NULL
----
0

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

query I rowsort
SELECT + col2 + + col0 + col2 * + col1 * - + col1 FROM tab0
----
-308305
-4313
97

query I rowsort
SELECT - col0 + + 82 AS col0 FROM tab2 AS cor0
----
18
36
7

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-837
SELECT DISTINCT - - SUM ( - ( col0 ) ) col2 FROM tab0 AS cor0
----
-199

query I rowsort
SELECT + col0 * - + col2 * col1 * - col2 * + 60 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
1186610880
394813440
88765500

query I rowsort
SELECT DISTINCT 15 + - col1 FROM tab0 AS cor0
----
-6
-66
14

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

onlyif mysql # DIV for integer division: 
query II rowsort label-841
SELECT col0 * - - 68 col2, - 9 DIV 8 FROM tab0
----
1020
-1
5916
-1
6596
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-841
SELECT col0 * - - 68 col2, - 9 / 8 FROM tab0
----
1020
-1
5916
-1
6596
-1

query I rowsort
SELECT DISTINCT + col2 + + 65 FROM tab0
----
112
164
75

query I rowsort
SELECT DISTINCT col2 + + 25 AS col2 FROM tab2
----
48
65
83

onlyif mysql # aggregate syntax: 
query I rowsort label-844
SELECT + MAX( - + col1 ) FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-844
SELECT + MAX ( - + col1 ) FROM tab2
----
-51

query I rowsort
SELECT ALL + ( col1 ) + + 99 AS col1 FROM tab2
----
150
166
176

query II rowsort
SELECT DISTINCT 63 * - col1, + col1 FROM tab0
----
-1323
21
-5103
81
-63
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 98 * 63 * + col2 col1 FROM tab1
----
364266
419832
592704

query I rowsort
SELECT ALL col0 * 57 + - col2 - - col1 + col1 FROM tab0 WHERE 94 IS NOT NULL
----
4991
5432
970

query II rowsort
SELECT DISTINCT col1 * - col2, + col2 FROM tab2
----
-1173
23
-3080
40
-3886
58

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

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

query I rowsort
SELECT 79 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

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

onlyif mysql # aggregate syntax: 
query I rowsort label-853
SELECT DISTINCT - SUM( DISTINCT 63 ) FROM tab0
----
-63

skipif mysql # not compatible
query I rowsort label-853
SELECT DISTINCT - SUM ( DISTINCT 63 ) FROM tab0
----
-63

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

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

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

query I rowsort
SELECT + col1 + - 23 / - - 22 FROM tab0 cor0 WHERE NOT ( + 0 ) NOT BETWEEN NULL AND NULL
----

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-858
SELECT ALL - 97 DIV - + COUNT( ALL + col0 ) AS col1 FROM tab1 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-858
SELECT ALL - 97 / - + COUNT ( ALL + col0 ) AS col1 FROM tab1 AS cor0
----
32

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

query I rowsort
SELECT DISTINCT - col1 * - - 47 * ( 16 ) AS col2 FROM tab1 AS cor0
----
-10528
-35344
-3760

onlyif mysql # aggregate syntax: 
query I rowsort label-861
SELECT DISTINCT - - SUM( ALL col1 ) AS col2 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-861
SELECT DISTINCT - - SUM ( ALL col1 ) AS col2 FROM tab0 AS cor0
----
103

query I rowsort
SELECT + col1 * - col1 + + 42 * col0 AS col2 FROM tab1 cor0
----
1613
1946
3545

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

onlyif mysql # aggregate syntax: 
query I rowsort label-864
SELECT DISTINCT MIN( 63 ) AS col1 FROM tab1
----
63

skipif mysql # not compatible
query I rowsort label-864
SELECT DISTINCT MIN ( 63 ) AS col1 FROM tab1
----
63

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-867
SELECT MAX( DISTINCT + 85 ) DIV COUNT( * ) * - CAST( MAX( DISTINCT + col0 ) AS SIGNED ) AS col1 FROM tab2
----
-2100

skipif mysql # not compatible
query I rowsort label-867
SELECT MAX ( DISTINCT + 85 ) / COUNT ( * ) * - CAST ( MAX ( DISTINCT + col0 ) AS INTEGER ) AS col1 FROM tab2
----
-2100

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-870
SELECT ALL + MIN( ALL 78 ) + ( + 48 ) * - 66 AS col1 FROM tab1 AS cor0
----
-3090

skipif mysql # not compatible
query I rowsort label-870
SELECT ALL + MIN ( ALL 78 ) + ( + 48 ) * - 66 AS col1 FROM tab1 AS cor0
----
-3090

query II rowsort
SELECT 71 * col0 AS col0, 0 AS col1 FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
3621
0
6035
0
6461
0

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

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

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

skipif mysql # not compatible
query I rowsort label-873
SELECT MAX ( + col2 ) AS col2 FROM tab1
----
96

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

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

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

skipif mysql # not compatible
query I rowsort label-875
SELECT MIN ( DISTINCT - ( - col2 ) ) AS col2 FROM tab2 AS cor0
----
23

query I rowsort
SELECT + - ( 40 ) * + + col2 AS col2 FROM tab1 AS cor0
----
-2360
-2720
-3840

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

query I rowsort
SELECT DISTINCT + 53 + - col2 AS col1 FROM tab0 AS cor0
----
-46
43
6

query I rowsort
SELECT + 97 - + col0 * - col2 FROM tab0 AS cor0
----
802
967
9700

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-880
SELECT DISTINCT - CAST( NULL AS DECIMAL ), + col2 AS col2 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
query II rowsort label-880
SELECT DISTINCT - CAST ( NULL AS REAL ), + col2 AS col2 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

query I rowsort
SELECT + - col2 - - col2 AS col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-882
SELECT + - MIN( - - col2 ) * - + COUNT( * ) - - + 62 FROM tab1 AS cor0
----
239

skipif mysql # not compatible
query I rowsort label-882
SELECT + - MIN ( - - col2 ) * - + COUNT ( * ) - - + 62 FROM tab1 AS cor0
----
239

onlyif mysql # aggregate syntax: 
query I rowsort label-883
SELECT ( 71 ) + + + COUNT( * ) AS col2 FROM tab2
----
74

skipif mysql # not compatible
query I rowsort label-883
SELECT ( 71 ) + + + COUNT ( * ) AS col2 FROM tab2
----
74

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab1 WHERE - col0 - - - ( + 1 ) < col1
----
14
47
5

query I rowsort
SELECT ALL + col1 * - 54 + + 84 * + + 71 FROM tab0
----
1590
4830
5910

query I rowsort
SELECT DISTINCT - 77 AS col1 FROM tab2, tab0 AS cor0
----
-77

query I rowsort
SELECT 70 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

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

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

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-891
SELECT ALL + - COUNT( * ) DIV + - COUNT( - + col2 ) AS col0 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-891
SELECT ALL + - COUNT ( * ) / + - COUNT ( - + col2 ) AS col0 FROM tab2 AS cor0
----
1

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

onlyif mysql # DIV for integer division: 
query II rowsort label-893
SELECT + 52 DIV 98, + col0 AS col0 FROM tab0
----
0
15
0
87
0
97

skipif mysql # not compatible
query II rowsort label-893
SELECT + 52 / 98, + col0 AS col0 FROM tab0
----
0
15
0
87
0
97

query I rowsort
SELECT ALL + + col1 FROM tab0 WHERE 79 <= - col0 * - - col1 + - col1
----

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

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

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

query II rowsort
SELECT DISTINCT + col0 * - 14 AS col0, col0 - + col2 FROM tab2 AS cor0
----
-1050
17
-644
23
-896
24

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

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

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

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

query II rowsort
SELECT col0, col0 FROM tab1 AS cor0 WHERE NOT - col0 + + 83 * 81 * col2 - col2 IS NULL
----
51
51
85
85
91
91

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

query I rowsort
SELECT + 70 + + 65 AS col2 FROM tab2
----
135
135
135

onlyif mysql # aggregate syntax: 
query I rowsort label-903
SELECT DISTINCT 38 * - + SUM( - col2 ) AS col2 FROM tab1
----
8474

skipif mysql # not compatible
query I rowsort label-903
SELECT DISTINCT 38 * - + SUM ( - col2 ) AS col2 FROM tab1
----
8474

query I rowsort
SELECT + ( + col2 ) + 53 FROM tab0
----
100
152
63

onlyif mysql # DIV for integer division: 
query I rowsort label-905
SELECT DISTINCT 65 DIV + col0 FROM tab0
----
0
4

skipif mysql # not compatible
query I rowsort label-905
SELECT DISTINCT 65 / + col0 FROM tab0
----
0
4

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

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

query I rowsort
SELECT - col0 * + col0 * - col1 + + col0 - 3 AS col2 FROM tab0
----
159033
18237
9503

onlyif mysql # DIV for integer division: 
query I rowsort label-908
SELECT ALL col2 DIV + + 99 AS col2 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-908
SELECT ALL col2 / + + 99 AS col2 FROM tab0
----
0
0
1

query I rowsort
SELECT DISTINCT + 90 + + + 47 AS col1 FROM tab0 WHERE NOT + col0 IS NULL
----
137

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

query I rowsort
SELECT - col2 + - - 80 * + 24 + - 30 FROM tab1
----
1794
1822
1831

query I rowsort
SELECT col2 * - col0 + + 37 AS col0 FROM tab2 cor0
----
-1021
-2523
-4313

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

onlyif mysql # DIV for integer division: 
query I rowsort label-914
SELECT col1 DIV 13 FROM tab1 AS cor0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-914
SELECT col1 / 13 FROM tab1 AS cor0
----
0
1
3

onlyif mysql # DIV for integer division: 
query I rowsort label-915
SELECT + + col0 * - col0 DIV - col0 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-915
SELECT + + col0 * - col0 / - col0 FROM tab2 AS cor0
----
46
64
75

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

onlyif mysql # aggregate syntax: 
query I rowsort label-917
SELECT DISTINCT 56 * - COUNT( * ) AS col2 FROM tab0
----
-168

skipif mysql # not compatible
query I rowsort label-917
SELECT DISTINCT 56 * - COUNT ( * ) AS col2 FROM tab0
----
-168

query I rowsort
SELECT ALL 40 * - - 68 AS col0 FROM tab2
----
2720
2720
2720

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

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

query I rowsort
SELECT + + ( + 9 ) FROM tab2 cor0
----
9
9
9

query II rowsort
SELECT - 10 AS col1, - 9 AS col2 FROM tab1 AS cor0 WHERE NOT - 35 + + col2 <> - + col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col2 * 21 BETWEEN col0 AND NULL
----

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-924
SELECT ALL - COUNT( col1 ) col0, - 10 FROM tab1
----
-3
-10

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-926
SELECT ALL - - COUNT( * ) * + COUNT( * ) * + + MAX( + CAST( + col0 AS SIGNED ) ) + + COUNT( * ), ( - - ( + MIN( - - col1 ) ) ) AS col2 FROM tab0 AS cor0
----
876
1

skipif mysql # not compatible
query II rowsort label-926
SELECT ALL - - COUNT ( * ) * + COUNT ( * ) * + + MAX ( + CAST ( + col0 AS INTEGER ) ) + + COUNT ( * ), ( - - ( + MIN ( - - col1 ) ) ) AS col2 FROM tab0 AS cor0
----
876
1

onlyif mysql # aggregate syntax: 
query I rowsort label-927
SELECT - COUNT( * ) * - - ( 42 ) AS col1 FROM tab1 AS cor0
----
-126

skipif mysql # not compatible
query I rowsort label-927
SELECT - COUNT ( * ) * - - ( 42 ) AS col1 FROM tab1 AS cor0
----
-126

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 65 + + col0 + + 31 <= 87
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-929
SELECT DISTINCT - 19 * - 16 - - COUNT( * ) FROM tab1 AS cor0
----
307

skipif mysql # not compatible
query I rowsort label-929
SELECT DISTINCT - 19 * - 16 - - COUNT ( * ) FROM tab1 AS cor0
----
307

onlyif mysql # aggregate syntax: 
query I rowsort label-930
SELECT DISTINCT - COUNT( - 54 ) + 95 FROM tab2 AS cor0
----
92

skipif mysql # not compatible
query I rowsort label-930
SELECT DISTINCT - COUNT ( - 54 ) + 95 FROM tab2 AS cor0
----
92

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

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

query I rowsort
SELECT ALL - 92 + + col1 AS col1 FROM tab1
----
-45
-78
-87

query III rowsort
SELECT * FROM tab0 WHERE - ( + col0 ) NOT BETWEEN - 17 AND - 39 - - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

query I rowsort
SELECT + + 29 + - - col2 AS col1 FROM tab0 AS cor0
----
128
39
76

query I rowsort
SELECT + + col2 * - 99 + - - 30 * - ( + 49 ) + + col1 * col0 + 17 FROM tab2 AS cor0
----
-1384
-2170
-485

query I rowsort
SELECT ALL + col1 + col0 * + 27 * + col1 FROM tab2 AS cor0
----
133133
135742
63393

query I rowsort
SELECT DISTINCT + 82 * - + 41 + 52 FROM tab2
----
-3310

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

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

query I rowsort
SELECT col2 * + + col0 FROM tab0 WHERE NULL IS NULL
----
705
870
9603

query I rowsort
SELECT + col0 - + ( + col2 ) AS col0 FROM tab0 AS cor0
----
-2
-32
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + 57 col2, col1 + - + ( 32 ) AS col0 FROM tab0 AS cor0
----
57
-11
57
-31
57
49

query II rowsort
SELECT - col0 AS col2, col0 * 46 FROM tab2 AS cor0
----
-46
2116
-64
2944
-75
3450

query I rowsort
SELECT - 33 * - - col2 FROM tab1 AS cor0
----
-1947
-2244
-3168

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col0 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-948
SELECT ( + CAST( - col2 AS SIGNED ) ) * 52 + - col2 FROM tab0 WHERE NOT - col2 IS NULL
----
-2491
-5247
-530

skipif mysql # not compatible
query I rowsort label-948
SELECT ( + CAST ( - col2 AS INTEGER ) ) * 52 + - col2 FROM tab0 WHERE NOT - col2 IS NULL
----
-2491
-5247
-530

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

query I rowsort
SELECT DISTINCT + col2 * - + col2 AS col1 FROM tab1 AS cor0
----
-3481
-4624
-9216

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-952
SELECT DISTINCT COUNT( ALL - 26 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-952
SELECT DISTINCT COUNT ( ALL - 26 ) FROM tab0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-953
SELECT ( ( + + 30 ) ) DIV - + COUNT( * ) - - COUNT( * ) + 80 + - 52 AS col0 FROM tab0
----
21

skipif mysql # not compatible
query I rowsort label-953
SELECT ( ( + + 30 ) ) / - + COUNT ( * ) - - COUNT ( * ) + 80 + - 52 AS col0 FROM tab0
----
21

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

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

query I rowsort
SELECT DISTINCT - + 91 FROM tab2 AS cor0 WHERE NULL = col1 / + + ( 2 )
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( NULL ) NOT BETWEEN + 39 * 58 / col2 AND - col2 + - 78
----

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

query I rowsort
SELECT - 45 + + col0 + - + col1 AS col2 FROM tab1
----
-1
-8
35

query I rowsort
SELECT ALL col1 FROM tab0 WHERE NULL IS NULL
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-960
SELECT ( CAST( + col1 AS SIGNED ) ) + - col0 + - 82 FROM tab2
----
-69
-77
-90

skipif mysql # not compatible
query I rowsort label-960
SELECT ( CAST ( + col1 AS INTEGER ) ) + - col0 + - 82 FROM tab2
----
-69
-77
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-961
SELECT ALL COUNT( * ) + 23 AS col1 FROM tab2
----
26

skipif mysql # not compatible
query I rowsort label-961
SELECT ALL COUNT ( * ) + 23 AS col1 FROM tab2
----
26

query I rowsort
SELECT 29 * + col0 + col1 FROM tab0
----
2544
2814
516

onlyif mysql # DIV for integer division: 
query I rowsort label-963
SELECT 23 DIV - col1 + - col0 AS col0 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-963
SELECT 23 / - col1 + - col0 AS col0 FROM tab2
----
-46
-64
-75

query I rowsort
SELECT ALL + col1 + + - col0 AS col0 FROM tab1
----
-37
-44
-80

query I rowsort
SELECT DISTINCT col0 + - 25 AS col1 FROM tab1
----
26
60
66

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-968
SELECT DISTINCT - 1 AS col1, COUNT( * ) - + COUNT( * ) * + + 35 AS col0 FROM tab2
----
-1
-102

skipif mysql # not compatible
query II rowsort label-968
SELECT DISTINCT - 1 AS col1, COUNT ( * ) - + COUNT ( * ) * + + 35 AS col0 FROM tab2
----
-1
-102

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - - 27 IS NULL )
----

query I rowsort
SELECT - - col2 - + ( + 26 ) FROM tab1 AS cor0
----
33
42
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 30 + + col1 col1 FROM tab0
----
111
31
51

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

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

query I rowsort
SELECT ALL 78 * - + col0 AS col2 FROM tab0
----
-1170
-6786
-7566

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

query I rowsort
SELECT DISTINCT - - 66 * + col1 * col0 + col2 * - col2 FROM tab0 AS cor0
----
-3399
120482
77981

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + 51 col1 FROM tab2 AS cor0
----
2601
3417
3927

query I rowsort
SELECT ( + col0 ) * - + 63 FROM tab0
----
-5481
-6111
-945

query I rowsort
SELECT 34 * - - col2 FROM tab0
----
1598
3366
340

onlyif mysql # aggregate syntax: 
query II rowsort label-980
SELECT ALL 51 AS col1, + 9 + - + ( + COUNT( * ) ) * - + COUNT( * ) * + COUNT( * ) FROM tab2
----
51
36

skipif mysql # not compatible
query II rowsort label-980
SELECT ALL 51 AS col1, + 9 + - + ( + COUNT ( * ) ) * - + COUNT ( * ) * + COUNT ( * ) FROM tab2
----
51
36

query I rowsort
SELECT DISTINCT - 92 AS col1 FROM tab1, tab1 AS cor0
----
-92

query II rowsort
SELECT 82, - 12 AS col2 FROM tab0 AS cor0
----
82
-12
82
-12
82
-12

onlyif mysql # aggregate syntax: 
query II rowsort label-983
SELECT - COUNT( * ) + - + 95, + COUNT( - col2 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
-95
0

skipif mysql # not compatible
query II rowsort label-983
SELECT - COUNT ( * ) + - + 95, + COUNT ( - col2 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
-95
0

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

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE 10 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

query I rowsort
SELECT ALL + 53 - col2 * col2 AS col0 FROM tab2
----
-1547
-3311
-476

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

onlyif mysql # aggregate syntax: 
query I rowsort label-990
SELECT - 36 * - ( + COUNT( * ) ) FROM tab2
----
108

skipif mysql # not compatible
query I rowsort label-990
SELECT - 36 * - ( + COUNT ( * ) ) FROM tab2
----
108

onlyif mysql # DIV for integer division: 
query I rowsort label-991
SELECT 66 DIV - 1 - col2 AS col2 FROM tab0
----
-113
-165
-76

skipif mysql # not compatible
query I rowsort label-991
SELECT 66 / - 1 - col2 AS col2 FROM tab0
----
-113
-165
-76

query I rowsort
SELECT ALL 22 FROM tab2 WHERE 7 IS NOT NULL
----
22
22
22

onlyif mysql # aggregate syntax: 
query I rowsort label-993
SELECT + MIN( DISTINCT 14 ) FROM tab0
----
14

skipif mysql # not compatible
query I rowsort label-993
SELECT + MIN ( DISTINCT 14 ) FROM tab0
----
14

query I rowsort
SELECT - 25 - - col1 FROM tab2
----
26
42
52

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

skipif mysql # not compatible
query I rowsort label-995
SELECT ALL - SUM ( ALL col2 ) FROM tab1 WHERE NOT 78 IS NOT NULL
----
NULL

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

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

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

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

query I rowsort
SELECT ALL - 73 * + col2 FROM tab0
----
-3431
-7227
-730

query I rowsort
SELECT ALL 56 * col1 FROM tab1
----
2632
280
784

query I rowsort
SELECT ALL + 43 FROM tab1 WHERE NOT NULL NOT IN ( 74 - 30 * + 30 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col2 = + col0 * col0 + 41
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1002
SELECT DISTINCT COUNT( * ) - + MIN( - 38 + + CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1002
SELECT DISTINCT COUNT ( * ) - + MIN ( - 38 + + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1003
SELECT + COUNT( * ) + 71 FROM tab2
----
74

skipif mysql # not compatible
query I rowsort label-1003
SELECT + COUNT ( * ) + 71 FROM tab2
----
74

query I rowsort
SELECT DISTINCT - col0 + - col1 * - 92 AS col2 FROM tab2
----
4646
6089
7020

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1005
SELECT + 35 DIV COUNT( ALL + col0 ) col1 FROM tab0
----
11

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1005
SELECT + 35 / COUNT ( ALL + col0 ) col1 FROM tab0
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1006
SELECT - CAST( + 75 AS SIGNED ) + - col2 AS col0 FROM tab0
----
-122
-174
-85

skipif mysql # not compatible
query I rowsort label-1006
SELECT - CAST ( + 75 AS INTEGER ) + - col2 AS col0 FROM tab0
----
-122
-174
-85

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

skipif mysql # not compatible
query I rowsort label-1007
SELECT + COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab2
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-1008
SELECT + 36 DIV 51 AS col1 FROM tab0 WHERE col2 IS NOT NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1008
SELECT + 36 / 51 AS col1 FROM tab0 WHERE col2 IS NOT NULL
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1009
SELECT + COUNT( ALL - col0 ) DIV 75 FROM tab1 WHERE NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1009
SELECT + COUNT ( ALL - col0 ) / 75 FROM tab1 WHERE NULL IS NULL
----
0

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

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 50 IN ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1014
SELECT - COUNT( * ) * 59 AS col0 FROM tab1 cor0 WHERE 31 IN ( col1 )
----
0

skipif mysql # not compatible
query I rowsort label-1014
SELECT - COUNT ( * ) * 59 AS col0 FROM tab1 cor0 WHERE 31 IN ( col1 )
----
0

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1017
SELECT DISTINCT COUNT( * ) * - 62 AS col0 FROM tab0 AS cor0
----
-186

skipif mysql # not compatible
query I rowsort label-1017
SELECT DISTINCT COUNT ( * ) * - 62 AS col0 FROM tab0 AS cor0
----
-186

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

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

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

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

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NULL <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1022
SELECT - MAX( 12 ) FROM tab0 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-1022
SELECT - MAX ( 12 ) FROM tab0 AS cor0
----
-12

query I rowsort
SELECT DISTINCT - 79 * + 29 FROM tab0 AS cor0
----
-2291

onlyif mysql # aggregate syntax: 
query I rowsort label-1024
SELECT ALL - + MIN( col1 ) * - 35 AS col0 FROM tab2 AS cor0
----
1785

skipif mysql # not compatible
query I rowsort label-1024
SELECT ALL - + MIN ( col1 ) * - 35 AS col0 FROM tab2 AS cor0
----
1785

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1025
SELECT * FROM tab2 AS cor0 WHERE NOT ( - CAST( NULL AS SIGNED ) ) + 69 * - 91 IS NULL
----

skipif mysql # not compatible
query III rowsort label-1025
SELECT * FROM tab2 AS cor0 WHERE NOT ( - CAST ( NULL AS INTEGER ) ) + 69 * - 91 IS NULL
----

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1027
SELECT DISTINCT + + COUNT( ALL - 32 ) DIV 17 AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1027
SELECT DISTINCT + + COUNT ( ALL - 32 ) / 17 AS col1 FROM tab2 AS cor0
----
0

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1029
SELECT MIN( ALL + 97 ) + CAST( + COUNT( * ) AS SIGNED ) FROM tab0 AS cor0 WHERE NOT col0 NOT IN ( - 8 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1029
SELECT MIN ( ALL + 97 ) + CAST ( + COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0 WHERE NOT col0 NOT IN ( - 8 )
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1031
SELECT 3 * + COUNT( * ) AS col0 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-1031
SELECT 3 * + COUNT ( * ) AS col0 FROM tab0
----
9

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

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

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

query I rowsort
SELECT ALL + col2 * + 66 AS col0 FROM tab0
----
3102
6534
660

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1036
SELECT ALL + MAX( - 43 ) FROM tab0 WHERE ( - col0 + col0 ) NOT BETWEEN ( col2 ) AND + ( col2 ) OR ( + 5 ) IN ( + col1 + 27 * 28 )
----
-43

skipif mysql # not compatible
query I rowsort label-1036
SELECT ALL + MAX ( - 43 ) FROM tab0 WHERE ( - col0 + col0 ) NOT BETWEEN ( col2 ) AND + ( col2 ) OR ( + 5 ) IN ( + col1 + 27 * 28 )
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-1037
SELECT 51 * + + COUNT( * ) * 85 FROM tab1
----
13005

skipif mysql # not compatible
query I rowsort label-1037
SELECT 51 * + + COUNT ( * ) * 85 FROM tab1
----
13005

query I rowsort
SELECT - col2 AS col0 FROM tab0 WHERE NOT - col1 + col0 > col0
----
-10
-47
-99

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE ( + 27 ) = NULL
----

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1043
SELECT CAST( 13 AS SIGNED ) * + MAX( ALL col0 ) AS col2 FROM tab1
----
1183

skipif mysql # not compatible
query I rowsort label-1043
SELECT CAST ( 13 AS INTEGER ) * + MAX ( ALL col0 ) AS col2 FROM tab1
----
1183

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE 0 IS NOT NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query I rowsort
SELECT col1 * + 61 FROM tab1
----
2867
305
854

query I rowsort
SELECT + col2 FROM tab2 AS cor0 WHERE col1 * + + 74 IN ( + 17 * 60 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1047
SELECT col2 + - col0 DIV col0 AS col1 FROM tab0 AS cor0
----
46
9
98

skipif mysql # not compatible
query I rowsort label-1047
SELECT col2 + - col0 / col0 AS col1 FROM tab0 AS cor0
----
46
9
98

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1048
SELECT ALL + CAST( NULL AS DECIMAL ) - - col2 FROM tab1 AS cor0 WHERE - 41 NOT BETWEEN ( - 21 * CAST( NULL AS SIGNED ) ) AND NULL OR NOT ( - 52 ) IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1048
SELECT ALL + CAST ( NULL AS REAL ) - - col2 FROM tab1 AS cor0 WHERE - 41 NOT BETWEEN ( - 21 * CAST ( NULL AS INTEGER ) ) AND NULL OR NOT ( - 52 ) IS NULL
----
NULL
NULL
NULL

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

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

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

query I rowsort
SELECT ALL + - 99 FROM tab1 cor0
----
-99
-99
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-1052
SELECT ALL - - SUM( DISTINCT - + 39 ) + COUNT( * ) FROM tab0 cor0
----
-36

skipif mysql # not compatible
query I rowsort label-1052
SELECT ALL - - SUM ( DISTINCT - + 39 ) + COUNT ( * ) FROM tab0 cor0
----
-36

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 51 + col1 col1 FROM tab1 AS cor0
----
-37
-4
-46

query I rowsort
SELECT ALL col2 + - 65 * - 48 FROM tab1 WHERE ( - col1 ) IS NOT NULL
----
3179
3188
3216

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

query III rowsort
SELECT * FROM tab1 WHERE 51 + - col2 * 45 BETWEEN - 70 * 79 AND col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col2 FROM tab0 WHERE NULL > ( col0 * - 71 * col1 + col0 )
----

query I rowsort
SELECT DISTINCT + col1 - ( - col2 ) + - col1 - 13 FROM tab0
----
-3
34
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1061
SELECT CAST( NULL AS SIGNED ) * - COUNT( * ) + CAST( NULL AS SIGNED ) FROM tab0 WHERE col1 BETWEEN - 1 * col1 + + 92 * 13 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1061
SELECT CAST ( NULL AS INTEGER ) * - COUNT ( * ) + CAST ( NULL AS INTEGER ) FROM tab0 WHERE col1 BETWEEN - 1 * col1 + + 92 * 13 AND NULL
----
NULL

query I rowsort
SELECT DISTINCT 37 - - col2 * + 16 AS col2 FROM tab2
----
405
677
965

onlyif mysql # DIV for integer division: 
query I rowsort label-1063
SELECT DISTINCT + col1 * 51 DIV 76 FROM tab1
----
3
31
9

skipif mysql # not compatible
query I rowsort label-1063
SELECT DISTINCT + col1 * 51 / 76 FROM tab1
----
3
31
9

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 84 * ( col0 ) IS NULL
----

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

skipif mysql # not compatible
query I rowsort label-1065
SELECT ALL CAST ( 65 AS INTEGER ) FROM tab2
----
65
65
65

onlyif mysql # aggregate syntax: 
query I rowsort label-1066
SELECT ALL ( MAX( col0 ) ) FROM tab0 WHERE NOT 67 NOT IN ( + col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1066
SELECT ALL ( MAX ( col0 ) ) FROM tab0 WHERE NOT 67 NOT IN ( + col0 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1067
SELECT DISTINCT SUM( col2 ) * 55 FROM tab1
----
12265

skipif mysql # not compatible
query I rowsort label-1067
SELECT DISTINCT SUM ( col2 ) * 55 FROM tab1
----
12265

query I rowsort
SELECT + 63 - + 85 * + 90 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( 43 ) IS NOT NULL
----
9 values hashing to 1d6c8a2b2de84e69d6cfe6a49f5fbe1b

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 23 * - col1 col0 FROM tab1 AS cor0
----
-1081
-115
-322

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1074
SELECT - CAST ( - - col1 AS INTEGER ) col0 FROM tab0 cor0
----
-1
-21
-81

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

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

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

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

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

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

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

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

query I rowsort
SELECT ALL 43 * ( + col2 ) AS col0 FROM tab2
----
1720
2494
989

query I rowsort
SELECT ALL col2 * - - 5 * - - col2 AS col2 FROM tab1
----
17405
23120
46080

query I rowsort
SELECT ALL 10 * - col0 * 50 FROM tab2
----
-23000
-32000
-37500

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

query I rowsort
SELECT ALL - 38 * + 72 AS col0 FROM tab1
----
-2736
-2736
-2736

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

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

skipif mysql # not compatible
query I rowsort label-1086
SELECT col0 AS col2 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND + 84 + + CAST ( col1 AS INTEGER )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1087
SELECT - col1 FROM tab0 AS cor0 WHERE ( 64 * + CAST( NULL AS DECIMAL ) ) NOT IN ( - col1 )
----

skipif mysql # not compatible
query I rowsort label-1087
SELECT - col1 FROM tab0 AS cor0 WHERE ( 64 * + CAST ( NULL AS REAL ) ) NOT IN ( - col1 )
----

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

skipif mysql # not compatible
query I rowsort label-1088
SELECT - 23 * - 3 + - COUNT ( * ) + + MAX ( DISTINCT col0 ) AS col2 FROM tab1 AS cor0
----
157

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1089
SELECT ALL + 26 * + 12 + + 33 - - 18 + + - 64 * - CAST( NULL AS SIGNED ) * COUNT( * ) * COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1089
SELECT ALL + 26 * + 12 + + 33 - - 18 + + - 64 * - CAST ( NULL AS INTEGER ) * COUNT ( * ) * COUNT ( * ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - 16 + + col1 FROM tab1
----
-11
-2
31

query III rowsort
SELECT * FROM tab0 WHERE - + col1 + - - ( - - col2 ) * + 1 * - col2 IN ( + ( col2 ) * + 21 )
----

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

query I rowsort
SELECT + 92 * - + 20 + + 1 FROM tab0 cor0
----
-1839
-1839
-1839

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

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

query I rowsort
SELECT DISTINCT col2 FROM tab1 cor0 WHERE - 21 * + col1 IN ( - 11 * 50 + - + col0 + - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col1 - + - 56 col0 FROM tab0 cor0
----
-1159
-1771
-41

query I rowsort
SELECT DISTINCT - 36 + - - col1 FROM tab0 AS cor0
----
-15
-35
45

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1100
SELECT 59 * + - col0 - + col0 DIV - col0 FROM tab0
----
-5132
-5722
-884

skipif mysql # not compatible
query I rowsort label-1100
SELECT 59 * + - col0 - + col0 / - col0 FROM tab0
----
-5132
-5722
-884

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1102
SELECT DISTINCT + CAST( col1 AS SIGNED ) + 64 col0, col0 * - CAST( ( + col1 ) AS SIGNED ) * col2 DIV col2 - + 9 * col0 + + col2 col0 FROM tab2
----
115
-2737
131
-5642
141
-5464

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1102
SELECT DISTINCT + CAST ( col1 AS INTEGER ) + 64 col0, col0 * - CAST ( ( + col1 ) AS INTEGER ) * col2 / col2 - + 9 * col0 + + col2 col0 FROM tab2
----
115
-2737
131
-5642
141
-5464

query I rowsort
SELECT ALL - 71 + col1 AS col1 FROM tab2
----
-20
-4
6

query III rowsort
SELECT * FROM tab1 WHERE - 97 - + col0 < NULL
----

query I rowsort
SELECT + col2 * col0 + + + 3 AS col1 FROM tab0
----
708
873
9606

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1107
SELECT DISTINCT - col0 - col2 - - 2 + col2 DIV - col0 + 57 + + + 72 DIV col1 DIV 37 AS col0 FROM tab2
----
-10
-45
-74

skipif mysql # not compatible
query I rowsort label-1107
SELECT DISTINCT - col0 - col2 - - 2 + col2 / - col0 + 57 + + + 72 / col1 / 37 AS col0 FROM tab2
----
-10
-45
-74

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

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

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

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

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

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

query I rowsort
SELECT - + col1 * + col1 * + 44 + + + 22 AS col0 FROM tab1 AS cor0
----
-1078
-8602
-97174

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT + ( + 94 ) + - 1 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde

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

query I rowsort
SELECT ALL - col2 * - + col2 FROM tab1
----
3481
4624
9216

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1118
SELECT DISTINCT COUNT( * ) FROM tab2 AS cor0 WHERE - 60 BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-1118
SELECT DISTINCT COUNT ( * ) FROM tab2 AS cor0 WHERE - 60 BETWEEN NULL AND NULL
----
0

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

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

query I rowsort
SELECT + col2 * + col0 + + 23 AS col1 FROM tab0
----
728
893
9626

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

skipif mysql # not compatible
query I rowsort label-1122
SELECT ALL - COUNT ( * ) * 12 FROM tab1
----
-36

query I rowsort
SELECT - col1 + + 55 AS col1 FROM tab1
----
41
50
8

query I rowsort
SELECT DISTINCT + col1 FROM tab0 WHERE NOT - col0 IN ( - col1 * col1 )
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1125
SELECT - COUNT( DISTINCT + 18 ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
-1

skipif mysql # not compatible
query I rowsort label-1125
SELECT - COUNT ( DISTINCT + 18 ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
-1

query I rowsort
SELECT ALL + col0 * - - 80 AS col0 FROM tab0
----
1200
6960
7760

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1128
SELECT col2 DIV + - 16 AS col1 FROM tab1
----
-3
-4
-6

skipif mysql # not compatible
query I rowsort label-1128
SELECT col2 / + - 16 AS col1 FROM tab1
----
-3
-4
-6

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT ( + col0 ) = col2 / + 19 + - + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL 91 AS col2, col0 FROM tab2 AS cor0
----
91
46
91
64
91
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1133
SELECT DISTINCT - + SUM( + col1 ) * + + 86 col2 FROM tab1 AS cor0 WHERE - col2 / col2 IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1133
SELECT DISTINCT - + SUM ( + col1 ) * + + 86 col2 FROM tab1 AS cor0 WHERE - col2 / col2 IS NULL
----
NULL

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + + 36 col2 FROM tab2
----
103
113
87

onlyif mysql # aggregate syntax: 
query I rowsort label-1137
SELECT - COUNT( * ) + + 53 + - + COUNT( * ) AS col1 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-1137
SELECT - COUNT ( * ) + + 53 + - + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
47

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) <> + + col0 - - - col1
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1142
SELECT ALL - + col1 - col0 DIV 99 FROM tab1 cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-1142
SELECT ALL - + col1 - col0 / 99 FROM tab1 cor0
----
-14
-47
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-1143
SELECT + ( 59 ) DIV + - col0 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1143
SELECT + ( 59 ) / + - col0 FROM tab1
----
-1
0
0

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

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

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

skipif mysql # not compatible
query I rowsort label-1145
SELECT - 9 * + - COUNT ( * ) FROM tab2, tab2 AS cor0
----
81

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

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

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

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1149
SELECT DISTINCT - - col0 AS col1 FROM tab0 WHERE - col0 = - 0 + - CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-1149
SELECT DISTINCT - - col0 AS col1 FROM tab0 WHERE - col0 = - 0 + - CAST ( NULL AS REAL )
----

query I rowsort
SELECT ALL - + col2 * + col0 / + - col0 + - 91 - - - 45 + - col1 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) < + col2
----

query I rowsort
SELECT 50 * + + col0 FROM tab1 AS cor0
----
2550
4250
4550

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

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

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

query I rowsort
SELECT DISTINCT - - col0 + - + 45 AS col0 FROM tab2 AS cor0
----
1
19
30

query I rowsort
SELECT ALL + col1 + - 1 AS col0 FROM tab1 AS cor0
----
13
4
46

query I rowsort
SELECT - col1 * + + col2 * + 78 FROM tab1 AS cor0
----
-104832
-23010
-249288

query I rowsort
SELECT 40 + - 67 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col1 NOT BETWEEN + + 31 AND NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1161
SELECT + 28 * + MAX( ALL col0 ) AS col2 FROM tab0
----
2716

skipif mysql # not compatible
query I rowsort label-1161
SELECT + 28 * + MAX ( ALL col0 ) AS col2 FROM tab0
----
2716

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

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

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

query I rowsort
SELECT + 57 + - 32 AS col2 FROM tab0 AS cor0
----
25
25
25

query I rowsort
SELECT + 77 * + col2 + 3 FROM tab0 AS cor0
----
3622
7626
773

onlyif mysql # DIV for integer division: 
query I rowsort label-1166
SELECT ALL col0 + - + col2 DIV + + col1 FROM tab1 AS cor0
----
45
74
90

skipif mysql # not compatible
query I rowsort label-1166
SELECT ALL col0 + - + col2 / + + col1 FROM tab1 AS cor0
----
45
74
90

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

skipif mysql # not compatible
query I rowsort label-1167
SELECT DISTINCT + COUNT ( * ) * + COUNT ( * ) FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
81

query I rowsort
SELECT DISTINCT - col1 FROM tab2 WHERE + 77 * + col2 * - col0 > - 77
----

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

query I rowsort
SELECT + + ( - col0 ) - 64 + + col1 AS col1 FROM tab2 AS cor0
----
-51
-59
-72

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col0 * + + ( + - 77 ) <= - + col0
----

query I rowsort
SELECT DISTINCT col1 * - 64 + + 46 AS col1 FROM tab1 AS cor0
----
-274
-2962
-850

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1173
SELECT 17 - 23 + - 4 AS col2, + MIN( ALL + ( + CAST( NULL AS SIGNED ) ) ) AS col0 FROM tab2 AS cor0
----
-10
NULL

skipif mysql # not compatible
query II rowsort label-1173
SELECT 17 - 23 + - 4 AS col2, + MIN ( ALL + ( + CAST ( NULL AS INTEGER ) ) ) AS col0 FROM tab2 AS cor0
----
-10
NULL

query I rowsort
SELECT - - 36 - - ( - + 24 ) + - + col2 FROM tab2 cor0
----
-11
-28
-46

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

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

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

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE - 53 IS NULL
----

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

query I rowsort
SELECT col0 - col0 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
0
0
0

query I rowsort
SELECT DISTINCT - ( - 89 ) FROM tab1
----
89

query I rowsort
SELECT DISTINCT + 29 AS col2 FROM tab1
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-1182
SELECT ALL COUNT( + 73 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-1182
SELECT ALL COUNT ( + 73 ) AS col1 FROM tab0
----
3

query I rowsort
SELECT ALL + 37 * + - col0 AS col2 FROM tab2
----
-1702
-2368
-2775

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

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

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

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NULL > ( - 91 / + 93 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + 19 col1 FROM tab0 cor0
----
1539
19
399

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

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

query I rowsort
SELECT - - 65 * + + 57 + + - col2 FROM tab0 AS cor0 WHERE NOT ( col1 IS NOT NULL )
----

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1191
SELECT ALL + COUNT( * ) DIV - 57 FROM tab2 AS cor0 WHERE NOT col0 NOT IN ( col2 + 66, 37 * - col1, - col0 * + CAST( - - col0 AS SIGNED ) * + ( - - col2 ) + ( col2 ) )
----
0

skipif mysql # not compatible
query I rowsort label-1191
SELECT ALL + COUNT ( * ) / - 57 FROM tab2 AS cor0 WHERE NOT col0 NOT IN ( col2 + 66, 37 * - col1, - col0 * + CAST ( - - col0 AS INTEGER ) * + ( - - col2 ) + ( col2 ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1192
SELECT MIN( col0 ) FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-1192
SELECT MIN ( col0 ) FROM tab1 AS cor0
----
51

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1194
SELECT DISTINCT 28 + + COUNT( ALL col2 ) * - 33 FROM tab1 AS cor0
----
-71

skipif mysql # not compatible
query I rowsort label-1194
SELECT DISTINCT 28 + + COUNT ( ALL col2 ) * - 33 FROM tab1 AS cor0
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1195
SELECT COUNT( * ) + CAST( SUM( ALL - 50 ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-147

skipif mysql # not compatible
query I rowsort label-1195
SELECT COUNT ( * ) + CAST ( SUM ( ALL - 50 ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-147

query II rowsort
SELECT - - col2 + col0 AS col1, 3 AS col1 FROM tab2 AS cor0
----
104
3
133
3
69
3

query I rowsort
SELECT ALL + - ( + 85 ) + - - col1 * - 30 + + 39 AS col2 FROM tab1 cor0
----
-1456
-196
-466

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

query I rowsort
SELECT + col0 FROM tab2 WHERE + 28 * + ( col0 ) * - ( - + 58 ) + + col2 + - 79 * + + col2 IS NOT NULL
----
46
64
75

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1202
SELECT + col0 DIV 15 + col2 AS col0 FROM tab2
----
26
44
63

skipif mysql # not compatible
query I rowsort label-1202
SELECT + col0 / 15 + col2 AS col0 FROM tab2
----
26
44
63

query II rowsort
SELECT col0, ( col1 ) * + col2 FROM tab1
----
51
1344
85
295
91
3196

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1206
SELECT DISTINCT - - col1 * + CAST( - - col2 AS SIGNED ) + + col2 - - 32 - + col1 * - col2 AS col2 FROM tab2 AS cor0
----
2401
6232
7862

skipif mysql # not compatible
query I rowsort label-1206
SELECT DISTINCT - - col1 * + CAST ( - - col2 AS INTEGER ) + + col2 - - 32 - + col1 * - col2 AS col2 FROM tab2 AS cor0
----
2401
6232
7862

query I rowsort
SELECT DISTINCT + - col2 + + + 28 + col1 AS col1 FROM tab0 AS cor0
----
-70
39
62

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1209
SELECT ALL - ( - - COUNT( DISTINCT - + col2 ) ) * + - 88 - + 41 FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-1209
SELECT ALL - ( - - COUNT ( DISTINCT - + col2 ) ) * + - 88 - + 41 FROM tab1
----
223

query I rowsort
SELECT ALL - ( 45 ) - + - col0 AS col2 FROM tab1
----
40
46
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 - - col1 col0 FROM tab0
----
162
2
42

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

query I rowsort
SELECT ALL + ( col1 ) - - - 85 * col2 * - 36 AS col0 FROM tab2
----
122477
177547
70431

query I rowsort
SELECT - - 27 + col1 AS col0 FROM tab2 AS cor0
----
104
78
94

query III rowsort
SELECT DISTINCT - col2 AS col2, col2, 69 * - + 50 FROM tab0 AS cor0 WHERE NOT ( NOT NULL IS NULL )
----
9 values hashing to e6377ff84cc84f58486bbcc288b843dc

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL <= - col1
----

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1218
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 18 * CAST( NULL AS DECIMAL ) NOT IN ( ( + 12 ), + col0, ( - - col0 ) )
----

skipif mysql # not compatible
query III rowsort label-1218
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 18 * CAST ( NULL AS REAL ) NOT IN ( ( + 12 ), + col0, ( - - col0 ) )
----

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1220
SELECT DISTINCT + 64 DIV 1 + + col0 + CAST( - 55 AS SIGNED ) + + 0 AS col2 FROM tab2 AS cor0
----
55
73
84

skipif mysql # not compatible
query I rowsort label-1220
SELECT DISTINCT + 64 / 1 + + col0 + CAST ( - 55 AS INTEGER ) + + 0 AS col2 FROM tab2 AS cor0
----
55
73
84

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col1 + col1 + + col0 > - 8
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1222
SELECT DISTINCT + + CAST( NULL AS SIGNED ) / - col1 col1, col1 AS col0 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1222
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) / - col1 col1, col1 AS col0 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * - - col2 + - - col0 col0 FROM tab2 AS cor0
----
-1127
-3016
-3811

onlyif mysql # DIV for integer division: 
query I rowsort label-1226
SELECT col0 DIV - 26 AS col2 FROM tab1
----
-1
-3
-3

skipif mysql # not compatible
query I rowsort label-1226
SELECT col0 / - 26 AS col2 FROM tab1
----
-1
-3
-3

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1228
SELECT 24 DIV + col1 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1228
SELECT 24 / + col1 AS col2 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1229
SELECT - 45 * - - COUNT( * ) AS col0 FROM tab0
----
-135

skipif mysql # not compatible
query I rowsort label-1229
SELECT - 45 * - - COUNT ( * ) AS col0 FROM tab0
----
-135

onlyif mysql # aggregate syntax: 
query I rowsort label-1230
SELECT DISTINCT - 93 * - - COUNT( * ) * + + 61 FROM tab0
----
-17019

skipif mysql # not compatible
query I rowsort label-1230
SELECT DISTINCT - 93 * - - COUNT ( * ) * + + 61 FROM tab0
----
-17019

onlyif mysql # aggregate syntax: 
query I rowsort label-1231
SELECT DISTINCT COUNT( * ) * - MIN( DISTINCT - + ( col0 ) ) FROM tab2 AS cor0
----
225

skipif mysql # not compatible
query I rowsort label-1231
SELECT DISTINCT COUNT ( * ) * - MIN ( DISTINCT - + ( col0 ) ) FROM tab2 AS cor0
----
225

onlyif mysql # aggregate syntax: 
query I rowsort label-1232
SELECT - 51 * + COUNT( * ) AS col1 FROM tab1 cor0
----
-153

skipif mysql # not compatible
query I rowsort label-1232
SELECT - 51 * + COUNT ( * ) AS col1 FROM tab1 cor0
----
-153

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 36 * + col1 * + 66 * 56 + 43 col2 FROM tab1 WHERE NOT ( ( col1 ) NOT BETWEEN + + col1 * - col2 AND - ( - + col1 ) )
----
-1862741
-6253589
-665237

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1235
SELECT MIN( ALL + col0 ) + 89 FROM tab2
----
135

skipif mysql # not compatible
query I rowsort label-1235
SELECT MIN ( ALL + col0 ) + 89 FROM tab2
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-1236
SELECT + + MAX( - 13 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-13

skipif mysql # not compatible
query I rowsort label-1236
SELECT + + MAX ( - 13 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-13

query II rowsort
SELECT ALL + col0 AS col1, col0 AS col1 FROM tab0 AS cor0 WHERE col2 * - 43 IS NOT NULL
----
15
15
87
87
97
97

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col0 <= + - 67
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1240
SELECT + SUM( - col1 ), + 4 AS col0 FROM tab1 AS cor0
----
-66
4

skipif mysql # not compatible
query II rowsort label-1240
SELECT + SUM ( - col1 ), + 4 AS col0 FROM tab1 AS cor0
----
-66
4

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

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1244
SELECT ALL + col0, col1 + + - col2 DIV + + col1 AS col2 FROM tab1 AS cor0
----
51
8
85
-6
91
46

skipif mysql # not compatible
query II rowsort label-1244
SELECT ALL + col0, col1 + + - col2 / + + col1 AS col2 FROM tab1 AS cor0
----
51
8
85
-6
91
46

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

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

query II rowsort
SELECT ALL - 20, 84 + + + 59 AS col1 FROM tab2 AS cor0
----
-20
143
-20
143
-20
143

onlyif mysql # DIV for integer division: 
query I rowsort label-1248
SELECT DISTINCT - 41 DIV col2 + col1 FROM tab2
----
50
67
76

skipif mysql # not compatible
query I rowsort label-1248
SELECT DISTINCT - 41 / col2 + col1 FROM tab2
----
50
67
76

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * - ( col1 ) * - + ( col0 ) + col1 col2 FROM tab0 AS cor0
----
38388
98
98496

query III rowsort
SELECT * FROM tab0 WHERE - + 7 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1252
SELECT 80 * - COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1252
SELECT 80 * - COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT + - col0 * + 29 AS col1 FROM tab2 AS cor0
----
-1334
-1856
-2175

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

query I rowsort
SELECT ALL col0 * - - 21 AS col1 FROM tab1 AS cor0 WHERE NOT - 66 IS NULL
----
1071
1785
1911

query I rowsort
SELECT - - ( - col1 ) * - 68 * + - col0 * + col2 FROM tab2 cor0
----
-13404160
-19818600
-3669144

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

query I rowsort
SELECT DISTINCT col2 * - 47 FROM tab1 AS cor0
----
-2773
-3196
-4512

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

query I rowsort
SELECT + - 44 + + col1 FROM tab2 WHERE NOT - col1 BETWEEN + col0 AND NULL
----
23
33
7

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1262
SELECT DISTINCT + + COUNT( * ) AS col1 FROM tab1 WHERE - + 80 + - 97 IN ( + + col0, + 62 )
----
0

skipif mysql # not compatible
query I rowsort label-1262
SELECT DISTINCT + + COUNT ( * ) AS col1 FROM tab1 WHERE - + 80 + - 97 IN ( + + col0, + 62 )
----
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-1263
SELECT * FROM tab0 AS cor0 WHERE NOT CAST( - col1 AS DECIMAL ) * + col2 + - 94 + + CAST( NULL AS SIGNED ) + col1 - + col0 * - ( col2 ) + + col1 IS NULL
----

skipif mysql # not compatible
query III rowsort label-1263
SELECT * FROM tab0 AS cor0 WHERE NOT CAST ( - col1 AS REAL ) * + col2 + - 94 + + CAST ( NULL AS INTEGER ) + col1 - + col0 * - ( col2 ) + + col1 IS NULL
----

query I rowsort
SELECT + 78 + - col1 FROM tab1 AS cor0
----
31
64
73

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

skipif mysql # not compatible
query II rowsort label-1265
SELECT DISTINCT + COUNT ( * ), - 13 * + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
3
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1266
SELECT ALL + + 76 DIV COUNT( * ) FROM tab2 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-1266
SELECT ALL + + 76 / COUNT ( * ) FROM tab2 AS cor0
----
25

query I rowsort
SELECT ALL - col1 + + - col1 * - col2 AS col1 FROM tab0 AS cor0
----
189
3726
98

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE + col1 NOT BETWEEN ( + + 43 ) AND + 95
----
87
21
10
97
1
99

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1270
SELECT + col1 col0, col0 AS col2 FROM tab0 cor0 WHERE NULL <= 71 * CAST( - col2 AS SIGNED )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1270
SELECT + col1 col0, col0 AS col2 FROM tab0 cor0 WHERE NULL <= 71 * CAST ( - col2 AS INTEGER )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1272
SELECT 74 + - - COUNT( * ) AS col1 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-1272
SELECT 74 + - - COUNT ( * ) AS col1 FROM tab2
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-1273
SELECT DISTINCT + MAX( ALL col1 ) + - + 32 FROM tab2
----
45

skipif mysql # not compatible
query I rowsort label-1273
SELECT DISTINCT + MAX ( ALL col1 ) + - + 32 FROM tab2
----
45

onlyif mysql # aggregate syntax: 
query II rowsort label-1274
SELECT 75 AS col0, + SUM( + col2 ) * + - 98 AS col1 FROM tab0
----
75
-15288

skipif mysql # not compatible
query II rowsort label-1274
SELECT 75 AS col0, + SUM ( + col2 ) * + - 98 AS col1 FROM tab0
----
75
-15288

query I rowsort
SELECT DISTINCT col1 + + col2 + 75 FROM tab2
----
149
192
200

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1276
SELECT ALL + ( - 11 ) DIV 40 + + - MIN( + + col0 ) FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-1276
SELECT ALL + ( - 11 ) / 40 + + - MIN ( + + col0 ) FROM tab2
----
-46

query I rowsort
SELECT 23 * 75 FROM tab0
----
1725
1725
1725

query I rowsort
SELECT col2 * + - 67 FROM tab0
----
-3149
-6633
-670

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1280
SELECT + - 29 + - 3 + - - MIN( - 92 ) AS col1 FROM tab1 AS cor0 WHERE + col2 / 11 IS NOT NULL
----
-124

skipif mysql # not compatible
query I rowsort label-1280
SELECT + - 29 + - 3 + - - MIN ( - 92 ) AS col1 FROM tab1 AS cor0 WHERE + col2 / 11 IS NOT NULL
----
-124

onlyif mysql # aggregate syntax: 
query I rowsort label-1281
SELECT 84 * COUNT( * ) * COUNT( * ) FROM tab1, tab1 AS cor0
----
6804

skipif mysql # not compatible
query I rowsort label-1281
SELECT 84 * COUNT ( * ) * COUNT ( * ) FROM tab1, tab1 AS cor0
----
6804

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 78 col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b6e4cc21599216686f0cf45b85668b2c

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

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

skipif mysql # not compatible
query I rowsort label-1284
SELECT DISTINCT COUNT ( * ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
3

query I rowsort
SELECT DISTINCT - - 46 * 49 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
2254

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col1 >= - - 29
----

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

query I rowsort
SELECT - ( - - col0 ) * + col2 FROM tab1
----
-4896
-5015
-6188

onlyif mysql # DIV for integer division: 
query I rowsort label-1289
SELECT - 71 DIV - + col1 FROM tab1
----
1
14
5

skipif mysql # not compatible
query I rowsort label-1289
SELECT - 71 / - + col1 FROM tab1
----
1
14
5

query I rowsort
SELECT DISTINCT col1 * - 28 AS col1 FROM tab1
----
-1316
-140
-392

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - + 11 col2 FROM tab1
----
-154
-517
-55

onlyif mysql # aggregate syntax: 
query II rowsort label-1292
SELECT COUNT( * ), + 55 col1 FROM tab1
----
3
55

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1293
SELECT + col2 DIV + 31 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-1293
SELECT + col2 / + 31 FROM tab2
----
0
1
1

query I rowsort
SELECT - 88 + col0 + - col0 FROM tab0 AS cor0
----
-88
-88
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-1295
SELECT col1 DIV - + 97 + + + col0 FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-1295
SELECT col1 / - + 97 + + + col0 FROM tab0 AS cor0
----
15
87
97

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

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

query II rowsort
SELECT 89, col0 AS col0 FROM tab0 AS cor0 WHERE - col1 / - col1 IS NOT NULL
----
89
15
89
87
89
97

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

query I rowsort
SELECT ALL + + 1 * col2 FROM tab2 cor0
----
23
40
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1300
SELECT ALL + SUM( + + CAST( NULL AS SIGNED ) ) + - 12 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1300
SELECT ALL + SUM ( + + CAST ( NULL AS INTEGER ) ) + - 12 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - col0 * + 13 + col0 + + col0 + + col2 FROM tab0 AS cor0
----
-118
-947
-968

query II rowsort
SELECT + 9 * ( + 55 ) + - col2, col0 AS col0 FROM tab0 AS cor0
----
396
97
448
15
485
87

onlyif mysql # aggregate syntax: 
query I rowsort label-1303
SELECT + 17 - - MIN( DISTINCT - col2 ) FROM tab1 AS cor0
----
-79

skipif mysql # not compatible
query I rowsort label-1303
SELECT + 17 - - MIN ( DISTINCT - col2 ) FROM tab1 AS cor0
----
-79

query I rowsort
SELECT ALL 44 - - 37 AS col1 FROM tab2
----
81
81
81

query I rowsort
SELECT + 83 + - + col2 AS col2 FROM tab1
----
-13
15
24

query I rowsort
SELECT DISTINCT - ( 57 ) AS col0 FROM tab1
----
-57

query I rowsort
SELECT ALL - - col1 * + - 47 FROM tab0 AS cor0
----
-3807
-47
-987

query I rowsort
SELECT + - col0 + + - col1 FROM tab0 AS cor0
----
-108
-96
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1309
SELECT + CAST( + + AVG ( col1 ) AS SIGNED ) FROM tab1 cor0
----
22

skipif mysql # not compatible
query I rowsort label-1309
SELECT + CAST ( + + AVG ( col1 ) AS INTEGER ) FROM tab1 cor0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-1310
SELECT ALL + SUM( - - 40 ) FROM tab1 cor0
----
120

skipif mysql # not compatible
query I rowsort label-1310
SELECT ALL + SUM ( - - 40 ) FROM tab1 cor0
----
120

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 19 * - + col0 + - col0 + - + col1 col2 FROM tab2 AS cor0
----
-1357
-1567
-971

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

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

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

query I rowsort
SELECT - 24 * - + col2 AS col0 FROM tab1 AS cor0
----
1416
1632
2304

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1316
SELECT DISTINCT - COUNT( ALL - CAST( - ( + 71 ) AS SIGNED ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1316
SELECT DISTINCT - COUNT ( ALL - CAST ( - ( + 71 ) AS INTEGER ) ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT 58 * - 43 FROM tab0 AS cor0
----
-2494
-2494
-2494

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1320
SELECT DISTINCT + CAST( col0 AS SIGNED ) * + col2 FROM tab0
----
705
870
9603

skipif mysql # not compatible
query I rowsort label-1320
SELECT DISTINCT + CAST ( col0 AS INTEGER ) * + col2 FROM tab0
----
705
870
9603

query I rowsort
SELECT ALL + 53 AS col0 FROM tab2 WHERE NOT NULL NOT BETWEEN - 96 AND col1
----

query II rowsort
SELECT ALL + ( - col1 ) AS col0, - 12 FROM tab1
----
-14
-12
-47
-12
-5
-12

query I rowsort
SELECT - AVG ( ALL + + 29 ) / - - 23 FROM tab2 WHERE NOT + + col2 IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-1324
SELECT - 54 DIV - - 3, - col0 AS col1 FROM tab0
----
-18
-15
-18
-87
-18
-97

skipif mysql # not compatible
query II rowsort label-1324
SELECT - 54 / - - 3, - col0 AS col1 FROM tab0
----
-18
-15
-18
-87
-18
-97

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 + - col1 * - col2 col2 FROM tab1 AS cor0
----
1440
3264
354

onlyif mysql # DIV for integer division: 
query II rowsort label-1329
SELECT ALL col2 DIV - - 59 + + col1, + col2 FROM tab2 AS cor0
----
51
23
67
58
77
40

skipif mysql # not compatible
query II rowsort label-1329
SELECT ALL col2 / - - 59 + + col1, + col2 FROM tab2 AS cor0
----
51
23
67
58
77
40

onlyif mysql # DIV for integer division: 
query I rowsort label-1330
SELECT 77 DIV - - col2 AS col0 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-1330
SELECT 77 / - - col2 AS col0 FROM tab1
----
0
1
1

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

query I rowsort
SELECT ( col2 ) - - + 22 FROM tab2
----
45
62
80

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1334
SELECT * FROM tab2 WHERE NOT + - col0 * + ( - 80 ) < CAST( col1 AS SIGNED )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-1334
SELECT * FROM tab2 WHERE NOT + - col0 * + ( - 80 ) < CAST ( col1 AS INTEGER )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - + ( 51 ) * col0 AS col2 FROM tab1 cor0
----
-2601
-4335
-4641

query I rowsort
SELECT 72 * - col1 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND + col1
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1338
SELECT DISTINCT 32 * + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-1338
SELECT DISTINCT 32 * + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
96

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

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

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

query I rowsort
SELECT ALL - col2 * - 44 + + 95 FROM tab0 AS cor0
----
2163
4451
535

onlyif mysql # DIV for integer division: 
query I rowsort label-1342
SELECT ALL col0 DIV - col0 AS col2 FROM tab1 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1342
SELECT ALL col0 / - col0 AS col2 FROM tab1 cor0
----
-1
-1
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-1343
SELECT DISTINCT + col2 DIV 29 * - col2, col1 FROM tab1 AS cor0
----
-118
5
-136
47
-288
14

skipif mysql # not compatible
query II rowsort label-1343
SELECT DISTINCT + col2 / 29 * - col2, col1 FROM tab1 AS cor0
----
-118
5
-136
47
-288
14

query II rowsort
SELECT ALL - col2 AS col0, ( 67 ) AS col0 FROM tab1 AS cor0
----
-59
67
-68
67
-96
67

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

skipif mysql # not compatible
query I rowsort label-1345
SELECT + MAX ( + 13 ) FROM tab0 AS cor0 WHERE NOT - col2 + col1 IS NULL
----
13

query II rowsort
SELECT - - col1, - col1 * col0 + + col1 + - + col2 AS col0 FROM tab1 cor0
----
14
-796
47
-4298
5
-479

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

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

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

query II rowsort
SELECT ALL 73, - col1 * 12 AS col2 FROM tab2 AS cor0 WHERE NOT NULL >= col2
----

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

query I rowsort
SELECT DISTINCT + 4 * + - col1 AS col2 FROM tab0
----
-324
-4
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-1352
SELECT col2 DIV + - col2 col0 FROM tab1
----
-1
-1
-1

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

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

query II rowsort
SELECT ALL col0 AS col1, col0 FROM tab2
----
46
46
64
64
75
75

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1355
SELECT COUNT ( ALL + 46 ) + + COUNT ( * ) col1 FROM tab0 AS cor0
----
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0, col2 / col0 col0 FROM tab1 AS cor0 WHERE - col2 * 13 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1357
SELECT + COUNT( * ) + 5 AS col2 FROM tab1 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-1357
SELECT + COUNT ( * ) + 5 AS col2 FROM tab1 AS cor0
----
8

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1361
SELECT + - COUNT( * ) AS col1, 62 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9
62

skipif mysql # not compatible
query II rowsort label-1361
SELECT + - COUNT ( * ) AS col1, 62 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1362
SELECT DISTINCT + COUNT( * ) * 17 + CAST( NULL AS SIGNED ) AS col1, - 3 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL
-3

skipif mysql # not compatible
query II rowsort label-1362
SELECT DISTINCT + COUNT ( * ) * 17 + CAST ( NULL AS INTEGER ) AS col1, - 3 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL
-3

query I rowsort
SELECT - col1 - - + col2 * - + 9 * col1 FROM tab1 AS cor0
----
-12110
-2660
-28811

query I rowsort
SELECT DISTINCT - col1 * + - 40 + - - col0 + + + col0 FROM tab0 AS cor0
----
1014
234
3270

query II rowsort
SELECT - - col2 - - ( - - col1 ) AS col1, + 79 FROM tab2 AS cor0
----
117
79
125
79
74
79

query I rowsort
SELECT ALL 79 + + 76 FROM tab2 cor0
----
155
155
155

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

skipif mysql # not compatible
query I rowsort label-1367
SELECT ALL MAX ( col2 ) FROM tab1
----
96

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1369
SELECT ALL + ( col2 ) - + + col1 + - 3 + 54 * + - CAST( NULL AS SIGNED ) + col1 * 7 * 18 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1369
SELECT ALL + ( col2 ) - + + col1 + - 3 + 54 * + - CAST ( NULL AS INTEGER ) + col1 * 7 * 18 AS col0 FROM tab2
----
NULL
NULL
NULL

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

skipif mysql # not compatible
query I rowsort label-1370
SELECT ALL COUNT ( * ) AS col1 FROM tab1 WHERE NULL IS NOT NULL
----
0

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1372
SELECT col2, CAST( NULL AS DECIMAL ) AS col1 FROM tab2
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
query II rowsort label-1372
SELECT col2, CAST ( NULL AS REAL ) AS col1 FROM tab2
----
23
NULL
40
NULL
58
NULL

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

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

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

query I rowsort
SELECT DISTINCT - col0 * 45 + 74 + + 12 * - ( 90 ) AS col1 FROM tab2 AS cor0
----
-3076
-3886
-4381

onlyif mysql # DIV for integer division: 
query I rowsort label-1376
SELECT ALL - col2 DIV + 13 + + col0 AS col1 FROM tab2 AS cor0
----
45
61
71

skipif mysql # not compatible
query I rowsort label-1376
SELECT ALL - col2 / + 13 + + col0 AS col1 FROM tab2 AS cor0
----
45
61
71

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

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

query I rowsort
SELECT + 97 FROM tab1 AS cor0 WHERE NOT - col1 + + col0 IS NULL
----
97
97
97

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1380
SELECT + COUNT( * ) * 84 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
756

skipif mysql # not compatible
query I rowsort label-1380
SELECT + COUNT ( * ) * 84 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
756

onlyif mysql # aggregate syntax: 
query I rowsort label-1381
SELECT + COUNT( DISTINCT + + 93 ) * + 62 * COUNT( * ) AS col2 FROM tab2
----
186

skipif mysql # not compatible
query I rowsort label-1381
SELECT + COUNT ( DISTINCT + + 93 ) * + 62 * COUNT ( * ) AS col2 FROM tab2
----
186

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1382
SELECT DISTINCT - - CAST( col0 AS SIGNED ) * + 35 AS col2 FROM tab1 AS cor0
----
1785
2975
3185

skipif mysql # not compatible
query I rowsort label-1382
SELECT DISTINCT - - CAST ( col0 AS INTEGER ) * + 35 AS col2 FROM tab1 AS cor0
----
1785
2975
3185

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

skipif mysql # not compatible
query I rowsort label-1383
SELECT col1 / + ( col2 ) AS col2 FROM tab2 AS cor0
----
1
1
2

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1385
SELECT - CAST( col2 AS SIGNED ) AS col1 FROM tab2 cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-1385
SELECT - CAST ( col2 AS INTEGER ) AS col1 FROM tab2 cor0
----
-23
-40
-58

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

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

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

query I rowsort
SELECT DISTINCT col2 * - + col2 * - - col1 * - 24 FROM tab2
----
2956800
5409312
647496

onlyif mysql # DIV for integer division: 
query I rowsort label-1389
SELECT ALL col0 + + col0 + - ( + + 54 ) DIV col0 AS col2 FROM tab2
----
128
150
91

skipif mysql # not compatible
query I rowsort label-1389
SELECT ALL col0 + + col0 + - ( + + 54 ) / col0 AS col2 FROM tab2
----
128
150
91

query I rowsort
SELECT DISTINCT col0 * 57 AS col1 FROM tab2
----
2622
3648
4275

query II rowsort
SELECT col2 AS col2, - 40 + + col0 + - - ( + - 34 ) + - + col1 FROM tab1
----
59
6
68
-30
96
-37

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

query II rowsort
SELECT DISTINCT - col0 + 98 - + col1, col2 AS col2 FROM tab1 AS cor0 WHERE - col2 + 2 + + col1 + + - 97 IS NULL
----

query I rowsort
SELECT DISTINCT + 28 + + 30 AS col1 FROM tab0 AS cor0
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1395
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-1395
SELECT ALL - col1 + + col1 - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1396
SELECT ALL - + CAST( - CAST( 26 AS DECIMAL ) AS SIGNED ) col0 FROM tab2 AS cor0 WHERE col0 < + 94 + + + col0
----
26
26
26

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1396
SELECT ALL - + CAST ( - CAST ( 26 AS REAL ) AS INTEGER ) col0 FROM tab2 AS cor0 WHERE col0 < + 94 + + + col0
----
26
26
26

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1397
SELECT - col1 + + col1 AS col0, CAST( - - col1 AS SIGNED ) * - col0 * - 55 FROM tab1
----
0
23375
0
235235
0
39270

skipif mysql # not compatible
query II rowsort label-1397
SELECT - col1 + + col1 AS col0, CAST ( - - col1 AS INTEGER ) * - col0 * - 55 FROM tab1
----
0
23375
0
235235
0
39270

query I rowsort
SELECT - - 86 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1400
SELECT MIN( ALL + - col2 ) + - + 83 FROM tab0
----
-182

skipif mysql # not compatible
query I rowsort label-1400
SELECT MIN ( ALL + - col2 ) + - + 83 FROM tab0
----
-182

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

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

query I rowsort
SELECT ALL 83 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) <> - 42
----

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

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

query II rowsort
SELECT DISTINCT - + 38 AS col1, + 4 AS col2 FROM tab1 AS cor0
----
-38
4

onlyif mysql # aggregate syntax: 
query I rowsort label-1407
SELECT - 75 * COUNT( * ) * + 87 FROM tab1 AS cor0
----
-19575

skipif mysql # not compatible
query I rowsort label-1407
SELECT - 75 * COUNT ( * ) * + 87 FROM tab1 AS cor0
----
-19575

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col2, 98 * - + col1 - col0 FROM tab2 AS cor0
----
23
-5044
40
-7610
58
-6641

query I rowsort
SELECT 51 * + 97 AS col2 FROM tab0
----
4947
4947
4947

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

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

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

query II rowsort
SELECT - + ( - 25 ), + col0 + + 49 * - - col1 AS col1 FROM tab1 AS cor0
----
25
2394
25
330
25
737

query I rowsort
SELECT ALL 5 * + col1 FROM tab2
----
255
335
385

query II rowsort
SELECT ALL + 95, col1 AS col2 FROM tab1 AS cor0 WHERE 73 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1416
SELECT ALL MIN( - - 72 ) col1 FROM tab2 AS cor0
----
72

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1416
SELECT ALL MIN ( - - 72 ) col1 FROM tab2 AS cor0
----
72

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 NOT BETWEEN col2 + 71 - col1 AND - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 51 + + 32 FROM tab2 cor0
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1420
SELECT - + CAST( NULL AS SIGNED ) AS col1, CAST( NULL AS DECIMAL ) + + 10 * CAST( NULL AS SIGNED ) * + MIN( - col1 ) FROM tab2 AS cor0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-1420
SELECT - + CAST ( NULL AS INTEGER ) AS col1, CAST ( NULL AS REAL ) + + 10 * CAST ( NULL AS INTEGER ) * + MIN ( - col1 ) FROM tab2 AS cor0
----
NULL
NULL

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

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

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE ( NULL ) <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1423
SELECT ALL - col0 DIV + 5 AS col1 FROM tab0
----
-17
-19
-3

skipif mysql # not compatible
query I rowsort label-1423
SELECT ALL - col0 / + 5 AS col1 FROM tab0
----
-17
-19
-3

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1425
SELECT ALL * FROM tab2 WHERE NOT - + ( - col1 ) * - 59 + + - CAST( - 78 AS SIGNED ) < col0
----

skipif mysql # not compatible
query III rowsort label-1425
SELECT ALL * FROM tab2 WHERE NOT - + ( - col1 ) * - 59 + + - CAST ( - 78 AS INTEGER ) < col0
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( 10 ) NOT IN ( - - ( - - 9 ) * + col0 )
----

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

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

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

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

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

query II rowsort
SELECT + col0 + + col0, col0 + col0 AS col0 FROM tab0 AS cor0
----
174
174
194
194
30
30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 25 col1 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN + 68 * + col1 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1432
SELECT DISTINCT 48 * - - 41 * + + CAST( - 27 AS SIGNED ) - + 80 + 41 AS col2 FROM tab1 AS cor0
----
-53175

skipif mysql # not compatible
query I rowsort label-1432
SELECT DISTINCT 48 * - - 41 * + + CAST ( - 27 AS INTEGER ) - + 80 + 41 AS col2 FROM tab1 AS cor0
----
-53175

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

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

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

query I rowsort
SELECT - 33 * col0 AS col0 FROM tab2 AS cor0
----
-1518
-2112
-2475

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 19 <> 92
----

query I rowsort
SELECT + col1 * col0 - + 89 FROM tab2 AS cor0
----
2257
4839
4936

query II rowsort
SELECT col0 * - 61 * + col0 * - col0, + col1 FROM tab0
----
205875
81
40168683
21
55673053
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1440
SELECT DISTINCT + 34 * + - COUNT( * ) AS col1 FROM tab2
----
-102

skipif mysql # not compatible
query I rowsort label-1440
SELECT DISTINCT + 34 * + - COUNT ( * ) AS col1 FROM tab2
----
-102

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1442
SELECT DISTINCT + COUNT( - 81 ) AS col2, 58 * + - 7 FROM tab0
----
3
-406

skipif mysql # not compatible
query II rowsort label-1442
SELECT DISTINCT + COUNT ( - 81 ) AS col2, 58 * + - 7 FROM tab0
----
3
-406

query II rowsort
SELECT ( + - col2 ) * - 78 + - 15, col1 FROM tab2 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 - + 62 * - + ( - col0 ) + - col1 - + - col0 <> NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 NOT BETWEEN 89 AND 15
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1446
SELECT ALL - SUM( ALL - 72 ) AS col1 FROM tab2 AS cor0 WHERE col0 / col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1446
SELECT ALL - SUM ( ALL - 72 ) AS col1 FROM tab2 AS cor0 WHERE col0 / col1 IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1447
SELECT * FROM tab0 WHERE NOT - - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-1447
SELECT * FROM tab0 WHERE NOT - - CAST ( NULL AS INTEGER ) IS NULL
----

query II rowsort
SELECT 22 * 2, col1 AS col0 FROM tab1
----
44
14
44
47
44
5

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1450
SELECT - + 40 * COUNT( * ) + + - COUNT( * ) col0 FROM tab0 AS cor0
----
-123

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1450
SELECT - + 40 * COUNT ( * ) + + - COUNT ( * ) col0 FROM tab0 AS cor0
----
-123

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1454
SELECT DISTINCT ( - MIN( - col0 ) ) FROM tab1 AS cor0 WHERE 33 NOT BETWEEN NULL AND - 94
----
91

skipif mysql # not compatible
query I rowsort label-1454
SELECT DISTINCT ( - MIN ( - col0 ) ) FROM tab1 AS cor0 WHERE 33 NOT BETWEEN NULL AND - 94
----
91

onlyif mysql # DIV for integer division: 
query II rowsort label-1455
SELECT ALL - col0 + + col0 * - col1, col0 DIV col1 AS col1 FROM tab0 AS cor0
----
-1230
0
-1914
4
-194
97

skipif mysql # not compatible
query II rowsort label-1455
SELECT ALL - col0 + + col0 * - col1, col0 / col1 AS col1 FROM tab0 AS cor0
----
-1230
0
-1914
4
-194
97

onlyif mysql # DIV for integer division: 
query II rowsort label-1456
SELECT - - 35 + + 96 DIV ( - 36 ) + col2 AS col2, - 63 AS col0 FROM tab0 AS cor0
----
132
-63
43
-63
80
-63

skipif mysql # not compatible
query II rowsort label-1456
SELECT - - 35 + + 96 / ( - 36 ) + col2 AS col2, - 63 AS col0 FROM tab0 AS cor0
----
132
-63
43
-63
80
-63

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1458
SELECT DISTINCT col0 * + 68 + + col2 DIV - + col0, + 88 AS col0 FROM tab0
----
1017
88
5916
88
6595
88

skipif mysql # not compatible
query II rowsort label-1458
SELECT DISTINCT col0 * + 68 + + col2 / - + col0, + 88 AS col0 FROM tab0
----
1017
88
5916
88
6595
88

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

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

query I rowsort
SELECT - 82 * 60 FROM tab0
----
-4920
-4920
-4920

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

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

query I rowsort
SELECT DISTINCT - - 79 * + 20 FROM tab2 cor0
----
1580

query I rowsort
SELECT col1 FROM tab0 WHERE - 96 >= 72
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1465
SELECT DISTINCT - ( 14 ) * + COUNT( * ) + 59 AS col1 FROM tab0
----
17

skipif mysql # not compatible
query I rowsort label-1465
SELECT DISTINCT - ( 14 ) * + COUNT ( * ) + 59 AS col1 FROM tab0
----
17

query I rowsort
SELECT - col2 * 18 AS col1 FROM tab1
----
-1062
-1224
-1728

onlyif mysql # aggregate syntax: 
query I rowsort label-1467
SELECT - 15 * MIN( - col1 ) FROM tab2
----
1155

skipif mysql # not compatible
query I rowsort label-1467
SELECT - 15 * MIN ( - col1 ) FROM tab2
----
1155

query I rowsort
SELECT 29 * - col2 FROM tab2
----
-1160
-1682
-667

onlyif mysql # DIV for integer division: 
query I rowsort label-1469
SELECT DISTINCT col2 DIV 97 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1469
SELECT DISTINCT col2 / 97 AS col2 FROM tab1
----
0

query III rowsort
SELECT * FROM tab2 WHERE ( - 27 ) IN ( 61 )
----

query I rowsort
SELECT ALL col1 + + col1 * 89 AS col1 FROM tab1
----
1260
4230
450

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN ( col0 / - col0 ) AND col0
----

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

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

query I rowsort
SELECT 50 FROM tab2 WHERE NULL NOT IN ( col1 + + 21 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 91 col2 FROM tab2 WHERE NOT NULL < NULL
----

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

skipif mysql # not compatible
query I rowsort label-1476
SELECT DISTINCT MIN ( + 12 ) AS col2 FROM tab2
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1477
SELECT CAST( 0 AS SIGNED ) FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1477
SELECT CAST ( 0 AS INTEGER ) FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1478
SELECT ALL - SUM( 74 ) FROM tab2
----
-222

skipif mysql # not compatible
query I rowsort label-1478
SELECT ALL - SUM ( 74 ) FROM tab2
----
-222

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1480
SELECT ALL 9 + + COUNT( * ) * - COUNT( * ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1480
SELECT ALL 9 + + COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab2
----
0

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1483
SELECT DISTINCT CAST( NULL AS SIGNED ) * ( 31 ) AS col2 FROM tab0 WHERE CAST( 46 AS SIGNED ) NOT BETWEEN NULL AND + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1483
SELECT DISTINCT CAST ( NULL AS INTEGER ) * ( 31 ) AS col2 FROM tab0 WHERE CAST ( 46 AS INTEGER ) NOT BETWEEN NULL AND + col0
----
NULL

query I rowsort
SELECT - 22 + + col1 * 39 AS col1 FROM tab0
----
17
3137
797

onlyif mysql # aggregate syntax: 
query I rowsort label-1485
SELECT + COUNT( * ) + 72 AS col0 FROM tab0
----
75

skipif mysql # not compatible
query I rowsort label-1485
SELECT + COUNT ( * ) + 72 AS col0 FROM tab0
----
75

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( 96 * col0 ) > ( col1 )
----

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 * 73 + 54 * col0 BETWEEN ( col0 ) AND - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1489
SELECT ALL + COUNT( * ) FROM tab1 AS cor0 WHERE - col2 * - 33 NOT IN ( + 52 * - col1 - col1 / CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-1489
SELECT ALL + COUNT ( * ) FROM tab1 AS cor0 WHERE - col2 * - 33 NOT IN ( + 52 * - col1 - col1 / CAST ( NULL AS INTEGER ) )
----
0

query I rowsort
SELECT ALL + 16 * 41 + col1 FROM tab1 AS cor0
----
661
670
703

onlyif mysql # DIV for integer division: 
query I rowsort label-1491
SELECT ALL + col1 DIV - ( 46 ) + col1 AS col0 FROM tab0 AS cor0
----
1
21
80

skipif mysql # not compatible
query I rowsort label-1491
SELECT ALL + col1 / - ( 46 ) + col1 AS col0 FROM tab0 AS cor0
----
1
21
80

onlyif mysql # DIV for integer division: 
query I rowsort label-1492
SELECT 86 + + col0 DIV + col2 FROM tab0 AS cor0
----
86
86
94

skipif mysql # not compatible
query I rowsort label-1492
SELECT 86 + + col0 / + col2 FROM tab0 AS cor0
----
86
86
94

query I rowsort
SELECT col1 + - 97 FROM tab0
----
-16
-76
-96

query I rowsort
SELECT col1 * - 83 + col0 FROM tab2
----
-4187
-5486
-6327

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

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

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

query I rowsort
SELECT DISTINCT + 7 * 1 AS col2 FROM tab2 AS cor0
----
7

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1499
SELECT - ( - COUNT( * ) ) - - MIN( col0 - - 21 ) FROM tab0 cor0
----
39

skipif mysql # not compatible
query I rowsort label-1499
SELECT - ( - COUNT ( * ) ) - - MIN ( col0 - - 21 ) FROM tab0 cor0
----
39

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

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

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

query I rowsort
SELECT - ( col2 ) - col2 * + col2 AS col0 FROM tab2
----
-1640
-3422
-552

onlyif mysql # DIV for integer division: 
query I rowsort label-1503
SELECT DISTINCT col0 - 12 + + ( + col0 + + 1 DIV + col0 ) AS col2 FROM tab2
----
116
138
80

skipif mysql # not compatible
query I rowsort label-1503
SELECT DISTINCT col0 - 12 + + ( + col0 + + 1 / + col0 ) AS col2 FROM tab2
----
116
138
80

query I rowsort
SELECT ALL + col2 * 88 AS col1 FROM tab2 WHERE NULL IS NULL
----
2024
3520
5104

query I rowsort
SELECT - col1 + - - col0 + 6 AS col0 FROM tab1
----
43
50
86

query I rowsort
SELECT ALL - ( ( col2 ) ) - 80 * col0 FROM tab1
----
-4176
-6859
-7348

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN ( - col0 ) AND 96
----

query I rowsort
SELECT DISTINCT - col2 + col1 * + 31 AS col1 FROM tab2 WHERE NOT ( ( 91 ) ) IN ( 72 )
----
1558
2019
2347

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1511
SELECT ALL + COUNT( DISTINCT - col1 ) * SUM( DISTINCT + col1 ) AS col2 FROM tab1 cor0
----
198

skipif mysql # not compatible
query I rowsort label-1511
SELECT ALL + COUNT ( DISTINCT - col1 ) * SUM ( DISTINCT + col1 ) AS col2 FROM tab1 cor0
----
198

onlyif mysql # aggregate syntax: 
query I rowsort label-1512
SELECT - COUNT( * ) + + - MAX( ALL col2 ) AS col1 FROM tab2 AS cor0
----
-61

skipif mysql # not compatible
query I rowsort label-1512
SELECT - COUNT ( * ) + + - MAX ( ALL col2 ) AS col1 FROM tab2 AS cor0
----
-61

query I rowsort
SELECT + col0 + - + col1 * 70 FROM tab0 AS cor0
----
-1383
-5655
27

query I rowsort
SELECT DISTINCT ( - 2 ) * col1 FROM tab1 AS cor0
----
-10
-28
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-1515
SELECT - 49 DIV - - 15 - - col0 DIV col1 FROM tab1 cor0
----
-2
0
14

skipif mysql # not compatible
query I rowsort label-1515
SELECT - 49 / - - 15 - - col0 / col1 FROM tab1 cor0
----
-2
0
14

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

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

query I rowsort
SELECT DISTINCT - + col1 + + col1 * col1 AS col2 FROM tab2 AS cor0
----
2550
4422
5852

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-1518
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IN ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query IIIIII rowsort label-1518
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IN ( CAST ( NULL AS INTEGER ) )
----

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

skipif mysql # not compatible
query I rowsort label-1519
SELECT DISTINCT COUNT ( - - 27 ) * - + SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1520
SELECT - col2, CAST( NULL AS SIGNED ) col0 FROM tab0 AS cor0
----
-10
NULL
-47
NULL
-99
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1520
SELECT - col2, CAST ( NULL AS INTEGER ) col0 FROM tab0 AS cor0
----
-10
NULL
-47
NULL
-99
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1522
SELECT + ( ( MIN( DISTINCT col0 ) ) ) FROM tab1 AS cor0 WHERE NOT col1 + - 3 NOT IN ( + col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1522
SELECT + ( ( MIN ( DISTINCT col0 ) ) ) FROM tab1 AS cor0 WHERE NOT col1 + - 3 NOT IN ( + col0 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1523
SELECT - 89 * COUNT( * ) FROM tab2 AS cor0
----
-267

skipif mysql # not compatible
query I rowsort label-1523
SELECT - 89 * COUNT ( * ) FROM tab2 AS cor0
----
-267

onlyif mysql # aggregate syntax: 
query I rowsort label-1524
SELECT ALL MIN( ALL - 51 ) * - ( - COUNT( * ) ) AS col1 FROM tab2 AS cor0
----
-153

skipif mysql # not compatible
query I rowsort label-1524
SELECT ALL MIN ( ALL - 51 ) * - ( - COUNT ( * ) ) AS col1 FROM tab2 AS cor0
----
-153

query I rowsort
SELECT DISTINCT + + col1 * - col2 - + 26 FROM tab0 AS cor0
----
-125
-236
-3833

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1528
SELECT - + COUNT( * ) * + - 73 + 85 FROM tab1 cor0
----
304

skipif mysql # not compatible
query I rowsort label-1528
SELECT - + COUNT ( * ) * + - 73 + 85 FROM tab1 cor0
----
304

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1531
SELECT CAST( NULL AS SIGNED ) col2, + 32 FROM tab2 AS cor0
----
NULL
32
NULL
32
NULL
32

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1531
SELECT CAST ( NULL AS INTEGER ) col2, + 32 FROM tab2 AS cor0
----
NULL
32
NULL
32
NULL
32

query I rowsort
SELECT - col1 * - + col1 * - col2 AS col2 FROM tab0 AS cor0
----
-308367
-4410
-99

query I rowsort
SELECT + + 79 * col1 AS col2 FROM tab2 AS cor0
----
4029
5293
6083

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1534
SELECT - CAST( + COUNT( * ) AS SIGNED ) * 92 * 70 + MIN( - col2 ) FROM tab0 AS cor0
----
-19419

skipif mysql # not compatible
query I rowsort label-1534
SELECT - CAST ( + COUNT ( * ) AS INTEGER ) * 92 * 70 + MIN ( - col2 ) FROM tab0 AS cor0
----
-19419

onlyif mysql # aggregate syntax: 
query I rowsort label-1535
SELECT DISTINCT - COUNT( 81 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-1535
SELECT DISTINCT - COUNT ( 81 ) FROM tab2
----
-3

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1539
SELECT DISTINCT - CAST( NULL AS SIGNED ) * MAX( DISTINCT 38 ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1539
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * MAX ( DISTINCT 38 ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT + ( col2 ) * + + col2 FROM tab0
----
100
2209
9801

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col2 / - 64 - + ( + col2 ) * col1 < col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 FROM tab0 WHERE NOT + + ( + - col0 ) >= ( NULL )
----

query I rowsort
SELECT ALL col2 AS col1 FROM tab2 WHERE NOT ( 58 * - 84 ) BETWEEN ( col1 + - 41 ) AND ( NULL )
----
23
40
58

query I rowsort
SELECT ALL + 25 * - col1 AS col1 FROM tab1 WHERE - col1 NOT IN ( + - col2 )
----
-1175
-125
-350

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1546
SELECT ALL - 89 + - COUNT( * ) FROM tab2 AS cor0
----
-92

skipif mysql # not compatible
query I rowsort label-1546
SELECT ALL - 89 + - COUNT ( * ) FROM tab2 AS cor0
----
-92

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

query I rowsort
SELECT + col0 AS col0 FROM tab0 AS cor0 WHERE 71 IN ( + col0 + + col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1549
SELECT ALL COUNT( - CAST( + + 70 AS SIGNED ) ) + + - 43 FROM tab1 AS cor0
----
-40

skipif mysql # not compatible
query I rowsort label-1549
SELECT ALL COUNT ( - CAST ( + + 70 AS INTEGER ) ) + + - 43 FROM tab1 AS cor0
----
-40

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1553
SELECT COUNT( * ) DIV - 57 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1553
SELECT COUNT ( * ) / - 57 AS col1 FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 * + - col1 * + col1, + col1 + - + col0 * 37 col2 FROM tab0
----
38367
-3198
97
-3588
98415
-474

query I rowsort
SELECT - 54 + + - col0 * + col0 AS col2 FROM tab1
----
-2655
-7279
-8335

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1556
SELECT + 57 * + CAST( NULL AS SIGNED ) + + 3 AS col2, 31 - - - 26 col0 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-1556
SELECT + 57 * + CAST ( NULL AS INTEGER ) + + 3 AS col2, 31 - - - 26 col0 FROM tab2
----
NULL
5
NULL
5
NULL
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 98 + 32 + + + col2 + col1 * + 28 col1 FROM tab1 AS cor0
----
1318
133
422

query I rowsort
SELECT DISTINCT ( + col0 ) + + 69 FROM tab1 AS cor0
----
120
154
160

query I rowsort
SELECT + + 29 + - col0 + - 26 AS col1 FROM tab1 AS cor0
----
-48
-82
-88

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1561
SELECT ALL - COUNT( * ) + 31 AS col0 FROM tab0 AS cor0
----
28

skipif mysql # not compatible
query I rowsort label-1561
SELECT ALL - COUNT ( * ) + 31 AS col0 FROM tab0 AS cor0
----
28

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

query II rowsort
SELECT DISTINCT + 16 + - 49 * - col1 AS col0, - col0 FROM tab2 AS cor0
----
2515
-46
3299
-75
3789
-64

query III rowsort
SELECT ALL * FROM tab1 WHERE + col1 - 84 = - col0 - col1
----

onlyif mysql # DIV for integer division: 
query II rowsort label-1565
SELECT - col0, + 34 DIV + col2 * + col0 AS col2 FROM tab1
----
-51
0
-85
0
-91
0

skipif mysql # not compatible
query II rowsort label-1565
SELECT - col0, + 34 / + col2 * + col0 AS col2 FROM tab1
----
-51
0
-85
0
-91
0

query I rowsort
SELECT DISTINCT col0 + - col2 + col1 * + 94 AS col1 FROM tab0
----
2051
7582
92

query I rowsort
SELECT DISTINCT 92 * + col0 AS col0 FROM tab2 WHERE col2 NOT BETWEEN - + col2 AND - col2 - + + col2
----
4232
5888
6900

onlyif mysql # aggregate syntax: 
query I rowsort label-1568
SELECT ALL MAX( DISTINCT + ( + 88 ) ) AS col0 FROM tab2
----
88

skipif mysql # not compatible
query I rowsort label-1568
SELECT ALL MAX ( DISTINCT + ( + 88 ) ) AS col0 FROM tab2
----
88

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

query II rowsort
SELECT DISTINCT - col0 * + - col1 AS col0, + 47 FROM tab1
----
425
47
4277
47
714
47

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1572
SELECT DISTINCT SUM( ALL + col0 ) - - - COUNT( + col2 ) AS col2 FROM tab1
----
224

skipif mysql # not compatible
query I rowsort label-1572
SELECT DISTINCT SUM ( ALL + col0 ) - - - COUNT ( + col2 ) AS col2 FROM tab1
----
224

query I rowsort
SELECT - col1 - + + 37 * + 2 FROM tab1
----
-121
-79
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-1574
SELECT COUNT( * ) + 88 FROM tab2 WHERE - ( + - 95 ) IN ( + + col0 )
----
88

skipif mysql # not compatible
query I rowsort label-1574
SELECT COUNT ( * ) + 88 FROM tab2 WHERE - ( + - 95 ) IN ( + + col0 )
----
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - - 76 * + col1 col2 FROM tab2
----
3927
5159
5929

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

query I rowsort
SELECT col1 * col1 AS col2 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col2 + + 33 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 9 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col2 col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-705
-870
-9603

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

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

query II rowsort
SELECT + + col2 * - col0 AS col0, + 69 FROM tab0 AS cor0
----
-705
69
-870
69
-9603
69

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

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

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

query I rowsort
SELECT ALL col1 * - - col0 FROM tab2
----
2346
4928
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-1585
SELECT + 14 * - - MAX( ALL - + col2 ) AS col2 FROM tab1
----
-826

skipif mysql # not compatible
query I rowsort label-1585
SELECT + 14 * - - MAX ( ALL - + col2 ) AS col2 FROM tab1
----
-826

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1586
SELECT ALL + CAST( NULL AS DECIMAL ), + col0 FROM tab2 WHERE NOT ( NULL ) IN ( + col0, + col2, col2 )
----

skipif mysql # not compatible
query II rowsort label-1586
SELECT ALL + CAST ( NULL AS REAL ), + col0 FROM tab2 WHERE NOT ( NULL ) IN ( + col0, + col2, col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1587
SELECT DISTINCT CAST( 90 AS SIGNED ) * - col2 AS col0 FROM tab2
----
-2070
-3600
-5220

skipif mysql # not compatible
query I rowsort label-1587
SELECT DISTINCT CAST ( 90 AS INTEGER ) * - col2 AS col0 FROM tab2
----
-2070
-3600
-5220

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

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

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

query I rowsort
SELECT DISTINCT - 96 * - - 89 AS col1 FROM tab2
----
-8544

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1592
SELECT DISTINCT col2 * + col0 * - CAST( - col0 AS SIGNED ) FROM tab2 AS cor0
----
163840
326250
48668

skipif mysql # not compatible
query I rowsort label-1592
SELECT DISTINCT col2 * + col0 * - CAST ( - col0 AS INTEGER ) FROM tab2 AS cor0
----
163840
326250
48668

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

query I rowsort
SELECT col2 * - 59 + - col1 FROM tab0 AS cor0
----
-2854
-5842
-611

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

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

query I rowsort
SELECT DISTINCT + + 49 + col2 FROM tab2 AS cor0
----
107
72
89

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

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

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( 38 IS NULL )
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1600
SELECT MIN( + - ( col2 ) ) AS col0, SUM( + col2 ) FROM tab1 cor0 WHERE col2 IS NULL
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-1600
SELECT MIN ( + - ( col2 ) ) AS col0, SUM ( + col2 ) FROM tab1 cor0 WHERE col2 IS NULL
----
NULL
NULL

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

query I rowsort
SELECT DISTINCT ( ( + col2 ) ) FROM tab2 cor0
----
23
40
58

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

skipif mysql # not compatible
query I rowsort label-1603
SELECT ALL - MAX ( DISTINCT col0 ) AS col1 FROM tab2 AS cor0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-1604
SELECT DISTINCT + COUNT( * ) + + MIN( col2 ) * - MAX( ALL + - col1 ) FROM tab1 AS cor0
----
298

skipif mysql # not compatible
query I rowsort label-1604
SELECT DISTINCT + COUNT ( * ) + + MIN ( col2 ) * - MAX ( ALL + - col1 ) FROM tab1 AS cor0
----
298

onlyif mysql # DIV for integer division: 
query I rowsort label-1605
SELECT ALL + + col0 + - 74 DIV + col1 + - - ( ( col2 ) ) FROM tab0 AS cor0
----
122
62
94

skipif mysql # not compatible
query I rowsort label-1605
SELECT ALL + + col0 + - 74 / + col1 + - - ( ( col2 ) ) FROM tab0 AS cor0
----
122
62
94

query I rowsort
SELECT ALL - col1 FROM tab0 AS cor0 WHERE NOT + col0 IS NULL
----
-1
-21
-81

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1608
SELECT ALL - COUNT( * ) + - + 36 AS col1 FROM tab0
----
-39

skipif mysql # not compatible
query I rowsort label-1608
SELECT ALL - COUNT ( * ) + - + 36 AS col1 FROM tab0
----
-39

query I rowsort
SELECT col1 + - 46 * - 59 AS col2 FROM tab2
----
2765
2781
2791

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT NULL IN ( + col1 * - 68 * + - 37, 41 + - - col1 + - 93 * - ( - col0 ) )
----

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

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

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

query I rowsort
SELECT DISTINCT 11 * + 58 FROM tab0
----
638

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

skipif mysql # not compatible
query I rowsort label-1615
SELECT DISTINCT COUNT ( * ) FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9

query I rowsort
SELECT ALL - col0 AS col2 FROM tab1 AS cor0 WHERE - 24 IS NOT NULL
----
-51
-85
-91

query I rowsort
SELECT DISTINCT - - ( 33 ) FROM tab2 AS cor0
----
33

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1620
SELECT 82 * - col2 DIV - col2 AS col2 FROM tab1 AS cor0
----
82
82
82

skipif mysql # not compatible
query I rowsort label-1620
SELECT 82 * - col2 / - col2 AS col2 FROM tab1 AS cor0
----
82
82
82

onlyif mysql # aggregate syntax: 
query I rowsort label-1621
SELECT ALL - MIN( DISTINCT - + col0 ) AS col2 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-1621
SELECT ALL - MIN ( DISTINCT - + col0 ) AS col2 FROM tab0 AS cor0
----
97

onlyif mysql # aggregate syntax: 
query II rowsort label-1622
SELECT 51 * - 30, COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL <> ( 18 / - col0 - + - col1 )
----
-1530
0

skipif mysql # not compatible
query II rowsort label-1622
SELECT 51 * - 30, COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL <> ( 18 / - col0 - + - col1 )
----
-1530
0

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

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

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

query II rowsort
SELECT 2 * col0, col2 AS col2 FROM tab2
----
128
40
150
58
92
23

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

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

skipif mysql # not compatible
query I rowsort label-1627
SELECT DISTINCT CAST ( NULL AS REAL ) + col0 - col1 / ( - ( + col1 ) ) AS col1 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 94 + col2 * - col0 col2 FROM tab1 cor0
----
-4802
-4921
-6094

query I rowsort
SELECT ALL + 24 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( - col2, col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1630
SELECT DISTINCT - 67 DIV col1 + + col0 AS col2 FROM tab1 AS cor0
----
47
72
90

skipif mysql # not compatible
query I rowsort label-1630
SELECT DISTINCT - 67 / col1 + + col0 AS col2 FROM tab1 AS cor0
----
47
72
90

query I rowsort
SELECT ALL - ( + - col2 ) + + 68 * - col0 * - 37 * col0 AS col2 FROM tab0 AS cor0
----
19043614
23673143
566147

onlyif mysql # aggregate syntax: 
query I rowsort label-1632
SELECT ALL COUNT( * ) + COUNT( * ) AS col0 FROM tab1 cor0
----
6

skipif mysql # not compatible
query I rowsort label-1632
SELECT ALL COUNT ( * ) + COUNT ( * ) AS col0 FROM tab1 cor0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1633
SELECT DISTINCT - ( + - CAST( NULL AS SIGNED ) ) * + - 75 + col0 + - - col2 * - - col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1633
SELECT DISTINCT - ( + - CAST ( NULL AS INTEGER ) ) * + - 75 + col0 + - - col2 * - - col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL 44 * col1 - - 39 * col1 FROM tab2
----
4233
5561
6391

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1635
SELECT CAST( NULL AS SIGNED ) + - - col2 - + ( - col2 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1635
SELECT CAST ( NULL AS INTEGER ) + - - col2 - + ( - col2 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 21 + - col2 AS col0 FROM tab0 AS cor0
----
-120
-31
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-1637
SELECT DISTINCT - COUNT( ALL - col0 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1637
SELECT DISTINCT - COUNT ( ALL - col0 ) FROM tab1 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( 20 ) IS NULL
----

query I rowsort
SELECT + - col2 * + col1 - col0 AS col1 FROM tab0 AS cor0 WHERE + 81 < + col1
----

query I rowsort
SELECT DISTINCT - col1 + - col1 * - col2 AS col0 FROM tab1
----
1330
290
3149

onlyif mysql # aggregate syntax: 
query I rowsort label-1641
SELECT ALL COUNT( * ) + + 28 col1 FROM tab0
----
31

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1641
SELECT ALL COUNT ( * ) + + 28 col1 FROM tab0
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1642
SELECT 49 / CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1642
SELECT 49 / CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1643
SELECT + COUNT( * ) * - - COUNT( * ), - 82 AS col2 FROM tab2
----
9
-82

skipif mysql # not compatible
query II rowsort label-1643
SELECT + COUNT ( * ) * - - COUNT ( * ), - 82 AS col2 FROM tab2
----
9
-82

query I rowsort
SELECT ALL - ( + + 51 ) AS col1 FROM tab1
----
-51
-51
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-1645
SELECT DISTINCT - 33 DIV - - col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1645
SELECT DISTINCT - 33 / - - col1 FROM tab2
----
0

query I rowsort
SELECT + ( + 91 ) AS col1 FROM tab2
----
91
91
91

query III rowsort
SELECT * FROM tab1 WHERE NOT - + col2 / + col0 + - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - col2 ) col2 FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-1649
SELECT ALL - SUM( + 24 ), + 1 AS col0 FROM tab2 cor0
----
-72
1

skipif mysql # not compatible
query II rowsort label-1649
SELECT ALL - SUM ( + 24 ), + 1 AS col0 FROM tab2 cor0
----
-72
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1650
SELECT + MAX( ALL 31 ) col1 FROM tab1
----
31

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1650
SELECT + MAX ( ALL 31 ) col1 FROM tab1
----
31

query II rowsort
SELECT - col1, col1 FROM tab0
----
-1
1
-21
21
-81
81

query I rowsort
SELECT ALL + 70 FROM tab1 WHERE + 39 NOT BETWEEN + - col2 + col1 AND - - col2
----

query I rowsort
SELECT 88 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37

query I rowsort
SELECT ALL + - col2 + - 46 FROM tab2 AS cor0 WHERE col0 IN ( + - 77, col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1655
SELECT - MIN( DISTINCT col0 ) AS col2 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-1655
SELECT - MIN ( DISTINCT col0 ) AS col2 FROM tab1 AS cor0
----
-51

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1656
SELECT CAST( NULL AS DECIMAL ), + col2 AS col1 FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-1656
SELECT CAST ( NULL AS REAL ), + col2 AS col1 FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1657
SELECT DISTINCT + + CAST( - + 64 AS SIGNED ) * - col2 * + 69 + + 43 AS col2, col1 * - 72 * + col1 FROM tab2 AS cor0
----
101611
-187272
176683
-426888
256171
-323208

skipif mysql # not compatible
query II rowsort label-1657
SELECT DISTINCT + + CAST ( - + 64 AS INTEGER ) * - col2 * + 69 + + 43 AS col2, col1 * - 72 * + col1 FROM tab2 AS cor0
----
101611
-187272
176683
-426888
256171
-323208

query I rowsort
SELECT - - col0 * - - col2 * + + col1 * - col0 AS col1 FROM tab1 AS cor0
----
-2131375
-26466076
-3495744

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 + + 56 - - col2 * - col0 AS col0, + col2 col2 FROM tab0
----
-664
47
-901
10
-9644
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1660
SELECT 30 * + + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1660
SELECT 30 * + + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1661
SELECT MAX( - 63 ) col0 FROM tab2
----
-63

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1661
SELECT MAX ( - 63 ) col0 FROM tab2
----
-63

query II rowsort
SELECT ALL col0 AS col2, + col1 + + col1 + + ( - col0 ) * + 33 AS col1 FROM tab1
----
51
-1655
85
-2795
91
-2909

query III rowsort
SELECT ALL * FROM tab2 WHERE + ( + - col1 ) IS NULL
----

query I rowsort
SELECT ALL ( - + col1 ) AS col1 FROM tab0
----
-1
-21
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1665
SELECT DISTINCT ( - CAST( col0 AS SIGNED ) ) AS col0 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-1665
SELECT DISTINCT ( - CAST ( col0 AS INTEGER ) ) AS col0 FROM tab2
----
-46
-64
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1666
SELECT ALL CAST( NULL AS SIGNED ), - COUNT( DISTINCT - col0 ) * - MAX( col2 ) AS col1 FROM tab2 cor0
----
NULL
174

skipif mysql # not compatible
query II rowsort label-1666
SELECT ALL CAST ( NULL AS INTEGER ), - COUNT ( DISTINCT - col0 ) * - MAX ( col2 ) AS col1 FROM tab2 cor0
----
NULL
174

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL >= + 20
----

query I rowsort
SELECT ALL 48 + - col2 * + 65 - - - col0 AS col0 FROM tab0 cor0
----
-3022
-6484
-689

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 + + 55 <> + 68
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + 25 + - - col0 * - 74 * + col1 AS col1, col2 FROM tab0 AS cor0
----
-135173
10
-7153
99
-89885
47

query I rowsort
SELECT ALL + 93 + col2 + - col2 FROM tab1 AS cor0
----
93
93
93

query I rowsort
SELECT + 29 + col1 AS col2 FROM tab2 AS cor0
----
106
80
96

query I rowsort
SELECT DISTINCT + + col1 + - + 22 + 0 * - col0 AS col1 FROM tab1 AS cor0
----
-17
-8
25

query I rowsort
SELECT + 31 * 38 - + - col1 AS col0 FROM tab1 AS cor0
----
1183
1192
1225

query I rowsort
SELECT DISTINCT + - 18 AS col0 FROM tab2 AS cor0
----
-18

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1676
SELECT CAST( col0 AS SIGNED ) DIV + + ( + col1 ) - 37 AS col0 FROM tab2 AS cor0
----
-36
-37
-37

skipif mysql # not compatible
query I rowsort label-1676
SELECT CAST ( col0 AS INTEGER ) / + + ( + col1 ) - 37 AS col0 FROM tab2 AS cor0
----
-36
-37
-37

query I rowsort
SELECT ALL + 13 + - col0 - + col2 * - + col2 AS col1 FROM tab0 AS cor0
----
2207
26
9717

query I rowsort
SELECT + + col1 - - col0 AS col1 FROM tab0 cor0
----
108
96
98

onlyif mysql # aggregate syntax: 
query I rowsort label-1679
SELECT ALL + COUNT( * ) * - SUM( ALL + 75 ) AS col1 FROM tab0 AS cor0
----
-675

skipif mysql # not compatible
query I rowsort label-1679
SELECT ALL + COUNT ( * ) * - SUM ( ALL + 75 ) AS col1 FROM tab0 AS cor0
----
-675

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL BETWEEN - + 86 AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - 27 * + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1682
SELECT ALL + SUM( col1 ) col2 FROM tab0
----
103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1682
SELECT ALL + SUM ( col1 ) col2 FROM tab0
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-1683
SELECT DISTINCT COUNT( * ) * 16 col0 FROM tab1
----
48

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1683
SELECT DISTINCT COUNT ( * ) * 16 col0 FROM tab1
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-1684
SELECT DISTINCT - col2 DIV 5 FROM tab1 AS cor0
----
-11
-13
-19

skipif mysql # not compatible
query I rowsort label-1684
SELECT DISTINCT - col2 / 5 FROM tab1 AS cor0
----
-11
-13
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-1685
SELECT - MIN( col0 ) FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-1685
SELECT - MIN ( col0 ) FROM tab2 AS cor0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-1686
SELECT ALL COUNT( - 60 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-1686
SELECT ALL COUNT ( - 60 ) AS col0 FROM tab2
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1687
SELECT DISTINCT - - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0 WHERE + col2 > + ( + + col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1687
SELECT DISTINCT - - CAST ( NULL AS REAL ) FROM tab1 AS cor0 WHERE + col2 > + ( + + col1 )
----
NULL

query I rowsort
SELECT DISTINCT - + ( + 80 ) AS col2 FROM tab1 AS cor0
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-1689
SELECT ALL - ( + 37 ) + - SUM( ALL + + col2 ) FROM tab0 AS cor0 WHERE NULL < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1689
SELECT ALL - ( + 37 ) + - SUM ( ALL + + col2 ) FROM tab0 AS cor0 WHERE NULL < NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1690
SELECT DISTINCT + 0 + - - COUNT( * ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1690
SELECT DISTINCT + 0 + - - COUNT ( * ) FROM tab2 AS cor0
----
3

query II rowsort
SELECT ALL col2 + + - 51 AS col2, + col0 AS col0 FROM tab1 AS cor0
----
17
91
45
51
8
85

onlyif mysql # aggregate syntax: 
query I rowsort label-1692
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab0 WHERE NOT - col0 + - 12 * - + col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1692
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab0 WHERE NOT - col0 + - 12 * - + col0 IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1693
SELECT + col2 * + col1 * - - ( - CAST( + - col0 AS SIGNED ) ) FROM tab2
----
197120
291450
53958

skipif mysql # not compatible
query I rowsort label-1693
SELECT + col2 * + col1 * - - ( - CAST ( + - col0 AS INTEGER ) ) FROM tab2
----
197120
291450
53958

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col1 + col1 IS NOT NULL
----

query I rowsort
SELECT ALL col1 + - col0 + - 16 - + - col0 AS col1 FROM tab2
----
35
51
61

query I rowsort
SELECT + ( - 30 ) FROM tab0
----
-30
-30
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1697
SELECT 32 DIV - COUNT( * ) FROM tab2
----
-10

skipif mysql # not compatible
query I rowsort label-1697
SELECT 32 / - COUNT ( * ) FROM tab2
----
-10

query II rowsort
SELECT ALL - col0, col2 AS col1 FROM tab0
----
-15
47
-87
10
-97
99

query I rowsort
SELECT + ( - 76 ) FROM tab0
----
-76
-76
-76

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 * - 66 <> + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1701
SELECT - 44 DIV - - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-14

skipif mysql # not compatible
query I rowsort label-1701
SELECT - 44 / - - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-1702
SELECT ALL + COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( + + col1 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1702
SELECT ALL + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( + + col1 ) IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1703
SELECT ALL + 34 * 79 * CAST( NULL AS SIGNED ) AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-1703
SELECT ALL + 34 * 79 * CAST ( NULL AS INTEGER ) AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-1704
SELECT 29 + MAX( DISTINCT - - 4 ) col2 FROM tab0
----
33

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1704
SELECT 29 + MAX ( DISTINCT - - 4 ) col2 FROM tab0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-1705
SELECT ALL - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-1705
SELECT ALL - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

query I rowsort
SELECT ALL - col0 - + col1 AS col1 FROM tab0
----
-108
-96
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-1707
SELECT ( + COUNT( * ) ) + - 18 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-1707
SELECT ( + COUNT ( * ) ) + - 18 FROM tab0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-1708
SELECT DISTINCT + 35 - + ( - COUNT( * ) ) col1 FROM tab1 AS cor0
----
38

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1708
SELECT DISTINCT + 35 - + ( - COUNT ( * ) ) col1 FROM tab1 AS cor0
----
38

onlyif mysql # DIV for integer division: 
query I rowsort label-1709
SELECT ALL 97 DIV + 37 FROM tab2 cor0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-1709
SELECT ALL 97 / + 37 FROM tab2 cor0
----
2
2
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1710
SELECT DISTINCT COUNT( * ) * - 63 AS col0 FROM tab1 cor0
----
-189

skipif mysql # not compatible
query I rowsort label-1710
SELECT DISTINCT COUNT ( * ) * - 63 AS col0 FROM tab1 cor0
----
-189

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1711
SELECT - CAST( col2 AS SIGNED ) AS col0, - CAST( NULL AS SIGNED ) FROM tab0
----
-10
NULL
-47
NULL
-99
NULL

skipif mysql # not compatible
query II rowsort label-1711
SELECT - CAST ( col2 AS INTEGER ) AS col0, - CAST ( NULL AS INTEGER ) FROM tab0
----
-10
NULL
-47
NULL
-99
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1712
SELECT MAX( ALL - - 91 ) AS col1 FROM tab2
----
91

skipif mysql # not compatible
query I rowsort label-1712
SELECT MAX ( ALL - - 91 ) AS col1 FROM tab2
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-1713
SELECT DISTINCT + MAX( 77 ) AS col2 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-1713
SELECT DISTINCT + MAX ( 77 ) AS col2 FROM tab2
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-1714
SELECT MAX( col2 ) FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-1714
SELECT MAX ( col2 ) FROM tab2
----
58

query I rowsort
SELECT - col1 * - col0 * + 28 AS col2 FROM tab2 AS cor0
----
137984
140700
65688

query I rowsort
SELECT col1 + 53 FROM tab2
----
104
120
130

query I rowsort
SELECT - 10 * - + 40 + 35 AS col1 FROM tab0 cor0 WHERE 22 BETWEEN NULL AND 37
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 22 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1719
SELECT ALL - COUNT( * ) + - 16 + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1719
SELECT ALL - COUNT ( * ) + - 16 + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1720
SELECT ALL COUNT( * ) + - COUNT( - + col0 ) col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1720
SELECT ALL COUNT ( * ) + - COUNT ( - + col0 ) col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - + col2 * + + col2 FROM tab2 AS cor0
----
-1600
-3364
-529

query I rowsort
SELECT DISTINCT - 8 + - 61 AS col2 FROM tab2 AS cor0
----
-69

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 69 * + + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL ( - col0 ) + 27 FROM tab1
----
-24
-58
-64

query II rowsort
SELECT ALL + col0 - - 85, col0 AS col0 FROM tab2
----
131
46
149
64
160
75

query I rowsort
SELECT col2 + + - 92 AS col2 FROM tab1
----
-24
-33
4

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 8 * - 59 * + 70 + - col1 - 84 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col2 + 44 AS col0 FROM tab1
----
103
112
140

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1729
SELECT ALL + CAST( NULL AS SIGNED ) + + - COUNT( * ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1729
SELECT ALL + CAST ( NULL AS INTEGER ) + + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 90 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1731
SELECT col1 / + CAST( - col1 AS SIGNED ) FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND - col0
----

skipif mysql # not compatible
query I rowsort label-1731
SELECT col1 / + CAST ( - col1 AS INTEGER ) FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1732
SELECT COUNT( DISTINCT + 77 ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-1732
SELECT COUNT ( DISTINCT + 77 ) FROM tab1 AS cor0
----
1

query I rowsort
SELECT + col2 * 96 * + col1 + 30 FROM tab1 cor0
----
129054
28350
306846

query I rowsort
SELECT + - 19 AS col1 FROM tab0 AS cor0
----
-19
-19
-19

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1735
SELECT col1 / - col2 + - CAST( NULL AS DECIMAL ) AS col1, ( + col0 ) col2 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1735
SELECT col1 / - col2 + - CAST ( NULL AS REAL ) AS col1, ( + col0 ) col2 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 col2, col0 / + 2 * + 76 AS col0 FROM tab2 AS cor0 WHERE NOT + 19 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1737
SELECT + - ( COUNT( * ) ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1737
SELECT + - ( COUNT ( * ) ) AS col2 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1738
SELECT ALL + COUNT( DISTINCT + - col1 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1738
SELECT ALL + COUNT ( DISTINCT + - col1 ) FROM tab1 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - + 39 ) col2 FROM tab1 WHERE NOT + col0 + col2 NOT IN ( + + 45 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1740
SELECT ALL + COUNT( DISTINCT - 60 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-1740
SELECT ALL + COUNT ( DISTINCT - 60 ) FROM tab1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1741
SELECT 44 * - 67 + + col1 - + + col0 DIV col2 * + col1 FROM tab1 WHERE NOT - 93 > col2
----
-2934
-2948
-2948

skipif mysql # not compatible
query I rowsort label-1741
SELECT 44 * - 67 + + col1 - + + col0 / col2 * + col1 FROM tab1 WHERE NOT - 93 > col2
----
-2934
-2948
-2948

query I rowsort
SELECT ALL - col0 * - + 35 * col2 * + col2 AS col0 FROM tab2
----
3584000
851690
8830500

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1743
SELECT DISTINCT * FROM tab1 WHERE + col2 BETWEEN NULL AND + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1743
SELECT DISTINCT * FROM tab1 WHERE + col2 BETWEEN NULL AND + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT + col2 * col0 * + col0 AS col0 FROM tab2
----
163840
326250
48668

onlyif mysql # DIV for integer division: 
query I rowsort label-1745
SELECT ( - col2 ) DIV + 48 FROM tab1
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-1745
SELECT ( - col2 ) / + 48 FROM tab1
----
-1
-1
-2

query I rowsort
SELECT ALL 50 * + 97 FROM tab0
----
4850
4850
4850

onlyif mysql # aggregate syntax: 
query II rowsort label-1747
SELECT + COUNT( * ), + 93 AS col2 FROM tab1
----
3
93

skipif mysql # not compatible
query II rowsort label-1747
SELECT + COUNT ( * ), + 93 AS col2 FROM tab1
----
3
93

onlyif mysql # aggregate syntax: 
query I rowsort label-1748
SELECT SUM( - 23 ) FROM tab1 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-1748
SELECT SUM ( - 23 ) FROM tab1 AS cor0
----
-69

query I rowsort
SELECT DISTINCT - - 90 FROM tab1 cor0
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1750
SELECT ALL - CAST( NULL AS SIGNED ) + col2, + col2 AS col0 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
query II rowsort label-1750
SELECT ALL - CAST ( NULL AS INTEGER ) + col2, + col2 AS col0 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col2 / - + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1752
SELECT DISTINCT + COUNT( * ) * - 58 AS col1, + 83 AS col0 FROM tab1
----
-174
83

skipif mysql # not compatible
query II rowsort label-1752
SELECT DISTINCT + COUNT ( * ) * - 58 AS col1, + 83 AS col0 FROM tab1
----
-174
83

query I rowsort
SELECT + 4 + col2 + - col0 FROM tab2
----
-13
-19
-20

query I rowsort
SELECT col0 + - 65 - + 88 * - 64 AS col0 FROM tab1 AS cor0
----
5618
5652
5658

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1755
SELECT DISTINCT * FROM tab2 cor0 WHERE 96 + + col2 + 35 + - CAST( - col0 AS SIGNED ) >= NULL
----

skipif mysql # not compatible
query III rowsort label-1755
SELECT DISTINCT * FROM tab2 cor0 WHERE 96 + + col2 + 35 + - CAST ( - col0 AS INTEGER ) >= NULL
----

query I rowsort
SELECT - - col1 + + 51 * - col2 + + col0 AS col2 FROM tab1 AS cor0
----
-2919
-3330
-4831

query II rowsort
SELECT col2, col2 + - - 51 FROM tab1
----
59
110
68
119
96
147

query I rowsort
SELECT DISTINCT col2 + + + col2 AS col2 FROM tab2
----
116
46
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1759
SELECT CAST( - - col2 AS SIGNED ) FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-1759
SELECT CAST ( - - col2 AS INTEGER ) FROM tab1
----
59
68
96

query I rowsort
SELECT DISTINCT - col0 + + col2 FROM tab1 WHERE - col1 + - ( + + col1 ) < - 80
----
-23

query II rowsort
SELECT 96 AS col0, + col2 + - - 69 FROM tab2
----
96
109
96
127
96
92

query I rowsort
SELECT - col1 * + 13 AS col0 FROM tab1
----
-182
-611
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1763
SELECT DISTINCT - 89 DIV ( + COUNT( * ) ) * - 66 + - COUNT( * ) AS col1 FROM tab0
----
1911

skipif mysql # not compatible
query I rowsort label-1763
SELECT DISTINCT - 89 / ( + COUNT ( * ) ) * - 66 + - COUNT ( * ) AS col1 FROM tab0
----
1911

query I rowsort
SELECT - col0 * + - col2 FROM tab1
----
4896
5015
6188

query I rowsort
SELECT + col1 FROM tab2 AS cor0 WHERE ( NOT + col0 IS NULL )
----
51
67
77

onlyif mysql # DIV for integer division: 
query I rowsort label-1766
SELECT + col1 DIV + 68 * - col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1766
SELECT + col1 / + 68 * - col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1767
SELECT ALL 86 AS col2, + COUNT( * ) + - 59 FROM tab2 AS cor0
----
86
-56

skipif mysql # not compatible
query II rowsort label-1767
SELECT ALL 86 AS col2, + COUNT ( * ) + - 59 FROM tab2 AS cor0
----
86
-56

query III rowsort
SELECT ALL * FROM tab0 WHERE + col0 / + ( + 49 ) > NULL
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1770
SELECT ALL + col2 * + col1 AS col1 FROM tab2 WHERE + - 56 * - CAST( + col2 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-1770
SELECT ALL + col2 * + col1 AS col1 FROM tab2 WHERE + - 56 * - CAST ( + col2 AS INTEGER ) IS NULL
----

query I rowsort
SELECT DISTINCT 38 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
38

query I rowsort
SELECT ALL ( + - 49 ) FROM tab2 AS cor0
----
-49
-49
-49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + ( - col2 ) NOT BETWEEN - col0 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1774
SELECT ALL + 6 DIV 29 FROM tab2 AS cor0 WHERE NOT col1 BETWEEN - + 47 * - col0 * col1 + + col1 AND + + col2 * - - ( - col2 )
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1774
SELECT ALL + 6 / 29 FROM tab2 AS cor0 WHERE NOT col1 BETWEEN - + 47 * - col0 * col1 + + col1 AND + + col2 * - - ( - col2 )
----
0
0
0

query I rowsort
SELECT 43 * 52 * - 86 FROM tab0 AS cor0
----
-192296
-192296
-192296

onlyif mysql # aggregate syntax: 
query I rowsort label-1776
SELECT DISTINCT COUNT( * ) * + 16 * + - MAX( ALL col0 ) * + 42 AS col2 FROM tab2
----
-151200

skipif mysql # not compatible
query I rowsort label-1776
SELECT DISTINCT COUNT ( * ) * + 16 * + - MAX ( ALL col0 ) * + 42 AS col2 FROM tab2
----
-151200

query I rowsort
SELECT ALL col1 * - + 99 FROM tab1
----
-1386
-4653
-495

query I rowsort
SELECT + col1 * - - 15 AS col2 FROM tab1
----
210
705
75

onlyif mysql # DIV for integer division: 
query I rowsort label-1779
SELECT col0 DIV - + col2 AS col1 FROM tab0
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-1779
SELECT col0 / - + col2 AS col1 FROM tab0
----
-8
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1780
SELECT 3 DIV col0 col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1780
SELECT 3 / col0 col0 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1781
SELECT - - COUNT( * ) + - 21 col2 FROM tab0 AS cor0
----
-18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1781
SELECT - - COUNT ( * ) + - 21 col2 FROM tab0 AS cor0
----
-18

query II rowsort
SELECT + + 5 * - + col0 + 85 + - 99 * - - col0, col1 AS col0 FROM tab1 AS cor0
----
-5219
14
-8755
5
-9379
47

query I rowsort
SELECT - 38 * - 15 - - col2 + col2 AS col0 FROM tab2 AS cor0
----
616
650
686

onlyif mysql # DIV for integer division: 
query I rowsort label-1784
SELECT DISTINCT 47 DIV + - col1 AS col2 FROM tab1
----
-1
-3
-9

skipif mysql # not compatible
query I rowsort label-1784
SELECT DISTINCT 47 / + - col1 AS col2 FROM tab1
----
-1
-3
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-1785
SELECT DISTINCT - COUNT( * ) + - COUNT( * ) FROM tab0 WHERE NOT + col2 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-1785
SELECT DISTINCT - COUNT ( * ) + - COUNT ( * ) FROM tab0 WHERE NOT + col2 > NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1786
SELECT DISTINCT + COUNT( ALL - 4 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1786
SELECT DISTINCT + COUNT ( ALL - 4 ) FROM tab2 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-1787
SELECT 6 * col2 DIV + 65 FROM tab0 AS cor0
----
0
4
9

skipif mysql # not compatible
query I rowsort label-1787
SELECT 6 * col2 / + 65 FROM tab0 AS cor0
----
0
4
9

query I rowsort
SELECT - 24 FROM tab2 AS cor0 WHERE NULL <> 96 * + 20 * col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1789
SELECT MIN( - - col2 ) AS col1 FROM tab0 cor0
----
10

skipif mysql # not compatible
query I rowsort label-1789
SELECT MIN ( - - col2 ) AS col1 FROM tab0 cor0
----
10

query I rowsort
SELECT ALL - col0 AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-15
-87
-97

query I rowsort
SELECT col2 * - col2 * - col0 - - col1 FROM tab2 cor0 WHERE ( ( NULL IS NULL ) )
----
102477
24385
252367

onlyif mysql # aggregate syntax: 
query I rowsort label-1792
SELECT ALL + MIN( - col1 ) AS col0 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-1792
SELECT ALL + MIN ( - col1 ) AS col0 FROM tab0 AS cor0
----
-81

query I rowsort
SELECT ALL 9 + + col2 AS col1 FROM tab2 AS cor0
----
32
49
67

query I rowsort
SELECT + col2 - - col1 * + col0 AS col1 FROM tab1 AS cor0
----
4345
484
810

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1795
SELECT - - CAST( + + 32 AS SIGNED ) - - col2 AS col0 FROM tab1 AS cor0
----
100
128
91

skipif mysql # not compatible
query I rowsort label-1795
SELECT - - CAST ( + + 32 AS INTEGER ) - - col2 AS col0 FROM tab1 AS cor0
----
100
128
91

query I rowsort
SELECT col1 + - 92 AS col1 FROM tab1
----
-45
-78
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-1797
SELECT ALL - 64 - - ( - COUNT( * ) ) + + + 50 col0 FROM tab0
----
-17

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1797
SELECT ALL - 64 - - ( - COUNT ( * ) ) + + + 50 col0 FROM tab0
----
-17

query I rowsort
SELECT DISTINCT 95 * + 44 - - col1 FROM tab0
----
4181
4201
4261

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col1 <> - + col0 * col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col1 FROM tab0 WHERE NOT NULL >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND col1
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col1 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT BETWEEN + 26 AND col2
----

query II rowsort
SELECT - 2 AS col2, + 56 AS col1 FROM tab1 AS cor0
----
-2
56
-2
56
-2
56

onlyif mysql # aggregate syntax: 
query I rowsort label-1805
SELECT + MAX( - - 77 ) AS col2 FROM tab1 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-1805
SELECT + MAX ( - - 77 ) AS col2 FROM tab1 AS cor0
----
77

query II rowsort
SELECT - 2, + ( 39 ) AS col0 FROM tab2 AS cor0
----
-2
39
-2
39
-2
39

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - col2 * - col1 / - col0 > NULL
----

query I rowsort
SELECT - + 66 FROM tab0 cor0
----
-66
-66
-66

query I rowsort
SELECT ALL + - col1 * + col2 * + + ( - col0 ) * 67 FROM tab0 AS cor0 WHERE + col0 >= - - col0
----
1224090
3826035
643401

query II rowsort
SELECT ALL 87, col2 * col1 * + col0 * col1 AS col0 FROM tab0 AS cor0
----
87
383670
87
4625505
87
9603

query II rowsort
SELECT DISTINCT - - 0, + col1 FROM tab0 AS cor0
----
0
1
0
21
0
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1812
SELECT ALL + + MIN( DISTINCT col0 ) AS col1 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-1812
SELECT ALL + + MIN ( DISTINCT col0 ) AS col1 FROM tab2 AS cor0
----
46

query II rowsort
SELECT ALL - + col0, col0 AS col0 FROM tab2 AS cor0
----
-46
46
-64
64
-75
75

query I rowsort
SELECT + + 82 AS col0 FROM tab2 AS cor0
----
82
82
82

query II rowsort
SELECT col2, 44 + - 52 * - col0 AS col1 FROM tab1 AS cor0
----
59
4464
68
4776
96
2696

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1816
SELECT DISTINCT - col1 * 11 + + CAST( NULL AS SIGNED ), col2 * - - col1 AS col0 FROM tab1 AS cor0
----
NULL
1344
NULL
295
NULL
3196

skipif mysql # not compatible
query II rowsort label-1816
SELECT DISTINCT - col1 * 11 + + CAST ( NULL AS INTEGER ), col2 * - - col1 AS col0 FROM tab1 AS cor0
----
NULL
1344
NULL
295
NULL
3196

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1817
SELECT ( + CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1817
SELECT ( + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col2 + - - col2 BETWEEN + col1 * 64 - + 51 - - col1 * - 60 * - 96 * - + 30 - col1 AND - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 44 + + - col0 AS col0 FROM tab2
----
-2
-20
-31

query III rowsort
SELECT * FROM tab1 WHERE NOT + ( 10 ) IS NOT NULL
----

query I rowsort
SELECT + col1 + 64 FROM tab1
----
111
69
78

query I rowsort
SELECT - col0 * - ( - 51 ) AS col0 FROM tab1
----
-2601
-4335
-4641

query I rowsort
SELECT - 59 * + + col0 * - col0 AS col0 FROM tab2
----
124844
241664
331875

query II rowsort
SELECT + col0 * 18 AS col0, col0 + + col2 FROM tab0
----
1566
97
1746
196
270
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 36 col2 FROM tab1 AS cor0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-1826
SELECT ALL - COUNT( * ) * + COUNT( * ) + 16 FROM tab0 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-1826
SELECT ALL - COUNT ( * ) * + COUNT ( * ) + 16 FROM tab0 AS cor0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-1827
SELECT SUM( ALL + 33 ) AS col0 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-1827
SELECT SUM ( ALL + 33 ) AS col0 FROM tab0 AS cor0
----
99

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 7 * + 17 + - col2 IN ( + + col1, + col1, + col1 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1829
SELECT ALL + COUNT( * ) DIV - - 53 + + + 12 + ( COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-1829
SELECT ALL + COUNT ( * ) / - - 53 + + + 12 + ( COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
15

onlyif mysql # DIV for integer division: 
query II rowsort label-1830
SELECT 47 * + - 55 + + + col2 AS col2, col1 DIV - ( ( + 64 ) ) FROM tab1
----
-2489
0
-2517
0
-2526
0

skipif mysql # not compatible
query II rowsort label-1830
SELECT 47 * + - 55 + + + col2 AS col2, col1 / - ( ( + 64 ) ) FROM tab1
----
-2489
0
-2517
0
-2526
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1831
SELECT col1 * - - col2 + - col1 DIV - 23 + + 73 AS col0 FROM tab2
----
1248
3156
3961

skipif mysql # not compatible
query I rowsort label-1831
SELECT col1 * - - col2 + - col1 / - 23 + + 73 AS col0 FROM tab2
----
1248
3156
3961

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1832
SELECT DISTINCT + col1 AS col1 FROM tab1 WHERE NOT - CAST( NULL AS DECIMAL ) < NULL
----

skipif mysql # not compatible
query I rowsort label-1832
SELECT DISTINCT + col1 AS col1 FROM tab1 WHERE NOT - CAST ( NULL AS REAL ) < NULL
----

query I rowsort
SELECT col0 + - 4 AS col1 FROM tab2 AS cor0
----
42
60
71

query I rowsort
SELECT ALL + col2 AS col1 FROM tab0 AS cor0 WHERE NOT NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1835
SELECT ALL - - 59 + - - SUM( + ( - 63 ) ) FROM tab0 AS cor0
----
-130

skipif mysql # not compatible
query I rowsort label-1835
SELECT ALL - - 59 + - - SUM ( + ( - 63 ) ) FROM tab0 AS cor0
----
-130

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + 49 ) * col2 + - ( - col0 ) IS NULL
----

query I rowsort
SELECT col0 * - - 33 * + + col1 AS col2 FROM tab0
----
3201
40095
60291

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - + col0 ) col0 FROM tab2
----
-46
-64
-75

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1839
SELECT + CAST( NULL AS DECIMAL ), col1 FROM tab0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-1839
SELECT + CAST ( NULL AS REAL ), col1 FROM tab0
----
NULL
1
NULL
21
NULL
81

query I rowsort
SELECT + col0 - + 18 AS col0 FROM tab2
----
28
46
57

onlyif mysql # aggregate syntax: 
query I rowsort label-1841
SELECT DISTINCT - ( - 31 ) + COUNT( * ) FROM tab1
----
34

skipif mysql # not compatible
query I rowsort label-1841
SELECT DISTINCT - ( - 31 ) + COUNT ( * ) FROM tab1
----
34

query I rowsort
SELECT col1 * - - col2 AS col1 FROM tab1
----
1344
295
3196

query II rowsort
SELECT DISTINCT 55 AS col2, 84 * 64 AS col1 FROM tab2
----
55
5376

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - 4 col0 FROM tab2
----
-184
-256
-300

query I rowsort
SELECT col0 FROM tab2 cor0 WHERE NOT NULL BETWEEN NULL AND - col1
----

onlyif mysql # DIV for integer division: 
query II rowsort label-1846
SELECT ALL + col0 AS col0, 6 + + col1 + col1 DIV + col0 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
46
58
64
84
75
73

skipif mysql # not compatible
query II rowsort label-1846
SELECT ALL + col0 AS col0, 6 + + col1 + col1 / + col0 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
46
58
64
84
75
73

query I rowsort
SELECT ALL 79 + + - ( + - 2 ) + - col0 FROM tab2 AS cor0
----
17
35
6

query II rowsort
SELECT - + ( - - col1 ), - col0 AS col1 FROM tab0 AS cor0
----
-1
-97
-21
-87
-81
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-1849
SELECT + + 59 DIV + 97 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1849
SELECT + + 59 / + 97 FROM tab2 AS cor0
----
0
0
0

query II rowsort
SELECT + col1 AS col1, col1 + - - 52 - + 3 - + + col1 FROM tab2
----
51
49
67
49
77
49

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL <> NULL
----

query II rowsort
SELECT ALL + col0, col1 FROM tab2 AS cor0
----
46
51
64
77
75
67

query I rowsort
SELECT DISTINCT + col0 + + col2 * 78 FROM tab1 AS cor0
----
4687
5395
7539

onlyif mysql # aggregate syntax: 
query II rowsort label-1854
SELECT ALL COUNT( ALL 43 ) + - + COUNT( * ), ( + 96 ) AS col2 FROM tab0 AS cor0
----
0
96

skipif mysql # not compatible
query II rowsort label-1854
SELECT ALL COUNT ( ALL 43 ) + - + COUNT ( * ), ( + 96 ) AS col2 FROM tab0 AS cor0
----
0
96

query I rowsort
SELECT DISTINCT ( + + 66 ) FROM tab0
----
66

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1856
SELECT DISTINCT * FROM tab1 WHERE NOT - col0 NOT BETWEEN col1 + - + 52 * CAST( ( - 12 ) AS DECIMAL ) AND - col1 * 13 + - col0
----

skipif mysql # not compatible
query III rowsort label-1856
SELECT DISTINCT * FROM tab1 WHERE NOT - col0 NOT BETWEEN col1 + - + 52 * CAST ( ( - 12 ) AS REAL ) AND - col1 * 13 + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1857
SELECT ALL - COUNT( * ) * + 80 FROM tab1 AS cor0
----
-240

skipif mysql # not compatible
query I rowsort label-1857
SELECT ALL - COUNT ( * ) * + 80 FROM tab1 AS cor0
----
-240

query I rowsort
SELECT DISTINCT col0 - 95 * + col2 FROM tab1 AS cor0
----
-5520
-6369
-9069

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1859
SELECT + + COUNT( * ) - + - 68 DIV COUNT( * ) + + COUNT( * ) * + 98 FROM tab1 AS cor0
----
319

skipif mysql # not compatible
query I rowsort label-1859
SELECT + + COUNT ( * ) - + - 68 / COUNT ( * ) + + COUNT ( * ) * + 98 FROM tab1 AS cor0
----
319

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1860
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT NULL BETWEEN NULL AND col0 - + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1860
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT NULL BETWEEN NULL AND col0 - + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT - 73 - - col1 AS col2 FROM tab2 AS cor0
----
-22
-6
4

onlyif mysql # aggregate syntax: 
query I rowsort label-1862
SELECT COUNT( * ) * + 31 + - + 98 AS col0 FROM tab2 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-1862
SELECT COUNT ( * ) * + 31 + - + 98 AS col0 FROM tab2 AS cor0
----
-5

query I rowsort
SELECT DISTINCT - 95 + + 99 AS col2 FROM tab1 AS cor0
----
4

query I rowsort
SELECT ALL - col2 * + - col0 * + col1 + - 84 FROM tab0
----
18186
57021
9519

onlyif mysql # aggregate syntax: 
query II rowsort label-1865
SELECT ALL 79 AS col0, + MAX( col0 ) AS col2 FROM tab2
----
79
75

skipif mysql # not compatible
query II rowsort label-1865
SELECT ALL 79 AS col0, + MAX ( col0 ) AS col2 FROM tab2
----
79
75

onlyif mysql # aggregate syntax: 
query II rowsort label-1866
SELECT + COUNT( * ) AS col1, MIN( DISTINCT - - col1 ) * + COUNT( * ) FROM tab1 WHERE NOT col1 = - - ( + + col0 ) * + col0 * + col2
----
3
15

skipif mysql # not compatible
query II rowsort label-1866
SELECT + COUNT ( * ) AS col1, MIN ( DISTINCT - - col1 ) * + COUNT ( * ) FROM tab1 WHERE NOT col1 = - - ( + + col0 ) * + col0 * + col2
----
3
15

query I rowsort
SELECT ALL 60 * col1 FROM tab1
----
2820
300
840

query I rowsort
SELECT DISTINCT - 92 * - - col0 FROM tab0
----
-1380
-8004
-8924

onlyif mysql # aggregate syntax: 
query II rowsort label-1869
SELECT COUNT( * ) AS col0, + 21 AS col0 FROM tab1
----
3
21

skipif mysql # not compatible
query II rowsort label-1869
SELECT COUNT ( * ) AS col0, + 21 AS col0 FROM tab1
----
3
21

query I rowsort
SELECT ALL 75 FROM tab2 AS cor0 WHERE ( NOT NULL <= + col2 )
----

query I rowsort
SELECT ALL - col0 * - 34 * col2 - - 26 AS col2 FROM tab1 AS cor0
----
166490
170536
210418

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1872
SELECT - col1 * - + CAST( - col2 AS SIGNED ) * + + col1 * 42 FROM tab1 cor0
----
-61950
-6308904
-790272

skipif mysql # not compatible
query I rowsort label-1872
SELECT - col1 * - + CAST ( - col2 AS INTEGER ) * + + col1 * 42 FROM tab1 cor0
----
-61950
-6308904
-790272

query I rowsort
SELECT DISTINCT - - col1 * - - col2 FROM tab1 AS cor0
----
1344
295
3196

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1874
SELECT * FROM tab1 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-1874
SELECT * FROM tab1 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT col1 * 96 * - ( - col0 ) FROM tab1
----
40800
410592
68544

query I rowsort
SELECT ALL - - 7 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

query I rowsort
SELECT DISTINCT 24 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
24

query I rowsort
SELECT ALL + col2 + col2 FROM tab2 WHERE + col2 IS NOT NULL
----
116
46
80

onlyif mysql # aggregate syntax: 
query I rowsort label-1879
SELECT ( COUNT( - - 82 ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-1879
SELECT ( COUNT ( - - 82 ) ) FROM tab1
----
3

query I rowsort
SELECT ( + 96 ) AS col2 FROM tab0 AS cor0
----
96
96
96

query I rowsort
SELECT - + col1 * - - col2 + col0 * + 92 + - + col1 FROM tab0 AS cor0 WHERE NOT 85 IS NOT NULL
----

query II rowsort
SELECT DISTINCT + 26 AS col0, col0 AS col0 FROM tab2 AS cor0
----
26
46
26
64
26
75

query I rowsort
SELECT DISTINCT 34 FROM tab2 cor0 WHERE 86 / - - 24 * - 27 + + col1 IS NULL
----

query I rowsort
SELECT ALL - + ( col2 ) + - + col1 AS col2 FROM tab2 AS cor0
----
-117
-125
-74

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 - + 86 + - 21 * - + 50 * + + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + + ( 77 ) + col1 * - col2 AS col2 FROM tab2 cor0
----
-1096
-3003
-3809

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1887
SELECT DISTINCT SUM( + CAST( NULL AS SIGNED ) ) AS col2, CAST( NULL AS SIGNED ) - - - SUM( + 86 ) FROM tab0 AS cor0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-1887
SELECT DISTINCT SUM ( + CAST ( NULL AS INTEGER ) ) AS col2, CAST ( NULL AS INTEGER ) - - - SUM ( + 86 ) FROM tab0 AS cor0
----
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1888
SELECT ALL col0 AS col2 FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) IS NULL
----
51
85
91

skipif mysql # not compatible
query I rowsort label-1888
SELECT ALL col0 AS col2 FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) IS NULL
----
51
85
91

query II rowsort
SELECT + col2 + + col0 AS col1, 53 * + col2 FROM tab2
----
104
2120
133
3074
69
1219

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1890
SELECT ALL + ( - col2 ) + - + CAST( NULL AS DECIMAL ) - col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1890
SELECT ALL + ( - col2 ) + - + CAST ( NULL AS REAL ) - col1 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL = + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - + col1 col2 FROM tab2 AS cor0
----
-2346
-4928
-5025

query I rowsort
SELECT + 32 + - col1 AS col2 FROM tab2 cor0 WHERE - 3 IS NOT NULL
----
-19
-35
-45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 92 + 30 AS col2, col1 col2 FROM tab1 AS cor0
----
122
14
122
47
122
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1895
SELECT + - ( - MIN( CAST( - + col0 AS SIGNED ) ) ) AS col0 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-1895
SELECT + - ( - MIN ( CAST ( - + col0 AS INTEGER ) ) ) AS col0 FROM tab2 AS cor0
----
-75

query II rowsort
SELECT ALL + + col1, 92 + col0 * + col0 * - col2 AS col2 FROM tab1 AS cor0
----
14
-249604
47
-563016
5
-426183

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1897
SELECT DISTINCT + COUNT( * ) + + 46 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN - ( - 89 ) * - CAST( NULL AS SIGNED ) - - col2 AND + col2 / - col2 + - 31 + + 85 * 68 * + col0 + + + 98
----
46

skipif mysql # not compatible
query I rowsort label-1897
SELECT DISTINCT + COUNT ( * ) + + 46 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN - ( - 89 ) * - CAST ( NULL AS INTEGER ) - - col2 AND + col2 / - col2 + - 31 + + 85 * 68 * + col0 + + + 98
----
46

query I rowsort
SELECT + col2 * + col1 * + - col0 AS col0 FROM tab0
----
-18270
-57105
-9603

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 57 * + + col1 col1 FROM tab0
----
-1197
-4617
-57

query I rowsort
SELECT + col2 * 90 FROM tab0
----
4230
8910
900

query I rowsort
SELECT ALL col2 * + - col0 AS col0 FROM tab0
----
-705
-870
-9603

query I rowsort
SELECT DISTINCT col1 * + - 60 * - + 98 FROM tab2
----
299880
393960
452760

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1903
SELECT ALL + CAST( NULL AS SIGNED ) AS col2 FROM tab1 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1903
SELECT ALL + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 WHERE NULL IS NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1904
SELECT ALL - + col0 * + col2 + + col2 - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL = col0
----

skipif mysql # not compatible
query I rowsort label-1904
SELECT ALL - + col0 * + col2 + + col2 - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL = col0
----

query I rowsort
SELECT 19 * - 86 FROM tab0
----
-1634
-1634
-1634

onlyif mysql # aggregate syntax: 
query I rowsort label-1906
SELECT COUNT( * ) AS col1 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-1906
SELECT COUNT ( * ) AS col1 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1907
SELECT DISTINCT - MAX( + col1 ) AS col0 FROM tab2 WHERE NOT ( NOT 2 > + + col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1907
SELECT DISTINCT - MAX ( + col1 ) AS col0 FROM tab2 WHERE NOT ( NOT 2 > + + col2 )
----
NULL

query II rowsort
SELECT ALL col1, + col2 AS col1 FROM tab2 AS cor0 WHERE NOT + col2 <> NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 6 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1910
SELECT DISTINCT + SUM( - + ( + + CAST( + + col2 AS SIGNED ) ) ) FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-1910
SELECT DISTINCT + SUM ( - + ( + + CAST ( + + col2 AS INTEGER ) ) ) FROM tab0 AS cor0
----
-156

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col2 + + + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1912
SELECT + COUNT( * ) * - MIN( DISTINCT col2 ) col1 FROM tab2 AS cor0
----
-69

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1912
SELECT + COUNT ( * ) * - MIN ( DISTINCT col2 ) col1 FROM tab2 AS cor0
----
-69

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) >= + + 26
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 + - ( + + col2 ) col1, 42 AS col1 FROM tab1 AS cor0
----
0
42
0
42
0
42

onlyif mysql # aggregate syntax: 
query I rowsort label-1915
SELECT + COUNT( col1 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1915
SELECT + COUNT ( col1 ) AS col1 FROM tab0 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col2 ) * - col1 * + 77 * 46 col1 FROM tab2 AS cor0
----
-10909360
-13764212
-4154766

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 + - - 42 + col1 IS NULL
----

query I rowsort
SELECT ALL - 25 + - + col0 AS col1 FROM tab0
----
-112
-122
-40

query III rowsort
SELECT * FROM tab0 WHERE col2 NOT BETWEEN + col0 * - col0 + - col2 AND - col0 + + - 86
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1920
SELECT SUM( - 55 ) FROM tab2
----
-165

skipif mysql # not compatible
query I rowsort label-1920
SELECT SUM ( - 55 ) FROM tab2
----
-165

onlyif mysql # aggregate syntax: 
query I rowsort label-1921
SELECT - 87 * - + COUNT( * ) * - COUNT( * ) FROM tab2 WHERE - 12 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1921
SELECT - 87 * - + COUNT ( * ) * - COUNT ( * ) FROM tab2 WHERE - 12 IS NULL
----
0

query I rowsort
SELECT DISTINCT + col1 FROM tab2 WHERE NOT + - col0 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1923
SELECT - + ( + + ( + 69 ) ) * + COUNT( * ) FROM tab0 AS cor0 WHERE ( NULL = - 53 * + 23 )
----
0

skipif mysql # not compatible
query I rowsort label-1923
SELECT - + ( + + ( + 69 ) ) * + COUNT ( * ) FROM tab0 AS cor0 WHERE ( NULL = - 53 * + 23 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1924
SELECT ALL + + col1 DIV + col2 + - + 39 col2 FROM tab0 cor0
----
-37
-38
-39

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1924
SELECT ALL + + col1 / + col2 + - + 39 col2 FROM tab0 cor0
----
-37
-38
-39

query I rowsort
SELECT DISTINCT 59 + col1 FROM tab2 AS cor0
----
110
126
136

query I rowsort
SELECT DISTINCT + - col2 - - - col1 FROM tab1 AS cor0
----
-110
-115
-64

query II rowsort
SELECT 68, + 3 AS col0 FROM tab0 AS cor0
----
68
3
68
3
68
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT NULL BETWEEN NULL AND NULL )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-1929
SELECT DISTINCT - col0, 22 + - col1 AS col1 FROM tab1 WHERE - col2 + + col2 = col1 DIV + col2
----
-51
8
-85
17
-91
-25

skipif mysql # not compatible
query II rowsort label-1929
SELECT DISTINCT - col0, 22 + - col1 AS col1 FROM tab1 WHERE - col2 + + col2 = col1 / + col2
----
-51
8
-85
17
-91
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-1930
SELECT + - MIN( - 2 ) AS col1 FROM tab2 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-1930
SELECT + - MIN ( - 2 ) AS col1 FROM tab2 AS cor0
----
2

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col1 * + 42 IS NULL
----

query II rowsort
SELECT DISTINCT ( + col1 ), col1 + - + col2 AS col2 FROM tab1 AS cor0
----
14
-82
47
-21
5
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-1933
SELECT ALL ( + + SUM( ALL 98 ) ) FROM tab0
----
294

skipif mysql # not compatible
query I rowsort label-1933
SELECT ALL ( + + SUM ( ALL 98 ) ) FROM tab0
----
294

onlyif mysql # aggregate syntax: 
query I rowsort label-1934
SELECT DISTINCT SUM( + col1 ) FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-1934
SELECT DISTINCT SUM ( + col1 ) FROM tab2
----
195

query I rowsort
SELECT ALL col1 * - 99 FROM tab2
----
-5049
-6633
-7623

onlyif mysql # aggregate syntax: 
query I rowsort label-1936
SELECT ALL + MIN( ALL + 47 ) AS col1 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-1936
SELECT ALL + MIN ( ALL + 47 ) AS col1 FROM tab1
----
47

query II rowsort
SELECT - 53, col1 FROM tab0
----
-53
1
-53
21
-53
81

onlyif mysql # DIV for integer division: 
query II rowsort label-1938
SELECT - - col1 * + col1 + + 85 AS col2, col0 DIV - col2 AS col0 FROM tab2 AS cor0
----
2686
-2
4574
-1
6014
-1

skipif mysql # not compatible
query II rowsort label-1938
SELECT - - col1 * + col1 + + 85 AS col2, col0 / - col2 AS col0 FROM tab2 AS cor0
----
2686
-2
4574
-1
6014
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 61 col1 FROM tab2 AS cor0
----
61
61
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1940
SELECT + CAST( - COUNT( * ) AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE NOT + 49 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-1940
SELECT + CAST ( - COUNT ( * ) AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE NOT + 49 >= NULL
----
0

query III rowsort
SELECT * FROM tab1 WHERE col0 * + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1942
SELECT COUNT( - col0 ) + - 73 FROM tab0 WHERE col0 * - col1 IS NOT NULL
----
-70

skipif mysql # not compatible
query I rowsort label-1942
SELECT COUNT ( - col0 ) + - 73 FROM tab0 WHERE col0 * - col1 IS NOT NULL
----
-70

query III rowsort
SELECT * FROM tab0 WHERE NOT - 17 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE - 48 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( col0 * col2 ) < + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1946
SELECT DISTINCT - CAST( - 70 AS SIGNED ) AS col1 FROM tab0
----
70

skipif mysql # not compatible
query I rowsort label-1946
SELECT DISTINCT - CAST ( - 70 AS INTEGER ) AS col1 FROM tab0
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1947
SELECT ALL - CAST( COUNT( * ) AS SIGNED ) col0 FROM tab1 WHERE NOT - col0 + col2 NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1947
SELECT ALL - CAST ( COUNT ( * ) AS INTEGER ) col0 FROM tab1 WHERE NOT - col0 + col2 NOT BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT + 89 FROM tab1 WHERE NOT ( col2 + + col0 ) IS NOT NULL
----

query I rowsort
SELECT col2 * col0 + col2 FROM tab0 WHERE ( col2 - 44 * 43 ) <= col0
----
752
880
9702

onlyif mysql # aggregate syntax: 
query I rowsort label-1950
SELECT - SUM( col2 ) * COUNT( * ) FROM tab0
----
-468

skipif mysql # not compatible
query I rowsort label-1950
SELECT - SUM ( col2 ) * COUNT ( * ) FROM tab0
----
-468

onlyif mysql # aggregate syntax: 
query I rowsort label-1951
SELECT ALL - COUNT( * ) FROM tab1 WHERE ( - col2 * + col0 ) <= ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-1951
SELECT ALL - COUNT ( * ) FROM tab1 WHERE ( - col2 * + col0 ) <= ( NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1952
SELECT + COUNT( DISTINCT + col2 ) * + 9 FROM tab2
----
27

skipif mysql # not compatible
query I rowsort label-1952
SELECT + COUNT ( DISTINCT + col2 ) * + 9 FROM tab2
----
27

query I rowsort
SELECT ALL + 36 + - ( 22 ) * 50 AS col0 FROM tab2
----
-1064
-1064
-1064

onlyif mysql # aggregate syntax: 
query I rowsort label-1954
SELECT - COUNT( * ) * 82 FROM tab1
----
-246

skipif mysql # not compatible
query I rowsort label-1954
SELECT - COUNT ( * ) * 82 FROM tab1
----
-246

query III rowsort
SELECT ALL * FROM tab1 WHERE + 92 NOT BETWEEN ( + col0 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1956
SELECT 94 * - SUM( DISTINCT + ( 89 ) ) FROM tab2
----
-8366

skipif mysql # not compatible
query I rowsort label-1956
SELECT 94 * - SUM ( DISTINCT + ( 89 ) ) FROM tab2
----
-8366

query I rowsort
SELECT ALL + col1 + - 12 AS col0 FROM tab2
----
39
55
65

onlyif mysql # aggregate syntax: 
query I rowsort label-1958
SELECT + COUNT( * ) AS col0 FROM tab1 WHERE col2 * + col0 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-1958
SELECT + COUNT ( * ) AS col0 FROM tab1 WHERE col2 * + col0 <= NULL
----
0

query I rowsort
SELECT col1 + 74 FROM tab0
----
155
75
95

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col2 + 1 * + col1 IN ( - col2 * col1 + ( ( 43 ) ) * + ( 47 ) )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1961
SELECT ALL CAST( NULL AS DECIMAL ) - + col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1961
SELECT ALL CAST ( NULL AS REAL ) - + col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT 49 FROM tab1 WHERE NOT NULL NOT BETWEEN + 13 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1963
SELECT + 42 * col2 + col2 AS col1 FROM tab0 WHERE + col2 * CAST( + 61 * ( - col0 ) AS SIGNED ) + - 76 IS NOT NULL
----
2021
4257
430

skipif mysql # not compatible
query I rowsort label-1963
SELECT + 42 * col2 + col2 AS col1 FROM tab0 WHERE + col2 * CAST ( + 61 * ( - col0 ) AS INTEGER ) + - 76 IS NOT NULL
----
2021
4257
430

onlyif mysql # aggregate syntax: 
query I rowsort label-1964
SELECT ALL - COUNT( * ) AS col0 FROM tab2 WHERE NOT col1 + col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1964
SELECT ALL - COUNT ( * ) AS col0 FROM tab2 WHERE NOT col1 + col2 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1965
SELECT ALL - COUNT( DISTINCT 33 ) FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-1965
SELECT ALL - COUNT ( DISTINCT 33 ) FROM tab1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-1966
SELECT ALL col0 DIV col2 - - 85 FROM tab1 AS cor0
----
85
86
86

skipif mysql # not compatible
query I rowsort label-1966
SELECT ALL col0 / col2 - - 85 FROM tab1 AS cor0
----
85
86
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + 3 col0 FROM tab0 AS cor0
----
102
13
50

query I rowsort
SELECT DISTINCT - 69 * + col1 FROM tab1 AS cor0
----
-3243
-345
-966

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1969
SELECT CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN - col0 AND 56
----

skipif mysql # not compatible
query I rowsort label-1969
SELECT CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN - col0 AND 56
----

query IIIIII rowsort
SELECT ALL * FROM tab2 cor0 CROSS JOIN tab0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 7 IN ( - 72 )
----

query I rowsort
SELECT DISTINCT 77 * - col1 FROM tab1
----
-1078
-3619
-385

query I rowsort
SELECT - 95 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0
----
9 values hashing to 1c7934db0632c123332c43f17b661d6c

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - col1 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1975
SELECT ALL + ( - COUNT( * ) ) AS col1 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1975
SELECT ALL + ( - COUNT ( * ) ) AS col1 FROM tab1 cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1976
SELECT ALL - CAST( - col1 AS SIGNED ) AS col2 FROM tab2 cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-1976
SELECT ALL - CAST ( - col1 AS INTEGER ) AS col2 FROM tab2 cor0
----
51
67
77

query I rowsort
SELECT ALL col0 AS col1 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( 13 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1978
SELECT COUNT( * ) * + 5 col2 FROM tab1 AS cor0
----
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1978
SELECT COUNT ( * ) * + 5 col2 FROM tab1 AS cor0
----
15

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( + 42 * + col2 ) IN ( 67 + 17 * 42 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN ( - col1 ) AND ( NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + 49 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1982
SELECT + 84 DIV + 88 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1982
SELECT + 84 / + 88 AS col1 FROM tab1
----
0
0
0

query III rowsort
SELECT * FROM tab1 WHERE NOT 25 IN ( - col0 + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query III rowsort label-1984
SELECT DISTINCT * FROM tab0 WHERE NOT ( - 74 ) DIV col1 <> + CAST( col0 AS SIGNED ) + - col0
----
15
81
47

skipif mysql # not compatible
query III rowsort label-1984
SELECT DISTINCT * FROM tab0 WHERE NOT ( - 74 ) / col1 <> + CAST ( col0 AS INTEGER ) + - col0
----
15
81
47

query I rowsort
SELECT 88 * col2 * col2 FROM tab0
----
194392
862488
8800

query I rowsort
SELECT col2 AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + 8 - col2 * col2 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE NOT + 49 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 WHERE ( - col2 * col1 ) < ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1990
SELECT DISTINCT COUNT( + ( col1 ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-1990
SELECT DISTINCT COUNT ( + ( col1 ) ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1991
SELECT + + COUNT( * ) + - 62 AS col0 FROM tab2 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-1991
SELECT + + COUNT ( * ) + - 62 AS col0 FROM tab2 AS cor0
----
-59

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - + 56 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col2 * col2 + col1 AS col2 FROM tab0 WHERE NOT - 66 NOT BETWEEN NULL AND - ( + col1 ) * col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1994
SELECT ALL SUM( 6 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
54

skipif mysql # not compatible
query I rowsort label-1994
SELECT ALL SUM ( 6 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
54

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 45 * - col2 NOT BETWEEN - 12 AND - 68
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1996
SELECT ALL - + MIN( DISTINCT - ( - + ( + col0 ) ) ) + + 0 AS col1 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-1996
SELECT ALL - + MIN ( DISTINCT - ( - + ( + col0 ) ) ) + + 0 AS col1 FROM tab2 AS cor0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-1997
SELECT COUNT( * ) + + 14 FROM tab1 AS cor0 WHERE ( 63 ) <> ( col2 )
----
17

skipif mysql # not compatible
query I rowsort label-1997
SELECT COUNT ( * ) + + 14 FROM tab1 AS cor0 WHERE ( 63 ) <> ( col2 )
----
17

query I rowsort
SELECT ALL - col2 * - 85 AS col2 FROM tab2 AS cor0
----
1955
3400
4930

query I rowsort
SELECT ALL + 31 / col0 AS col0 FROM tab1 AS cor0 WHERE NULL BETWEEN ( - + 65 ) * col0 AND + col0
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 69 <= - col2 - col0 / + 78
----

query I rowsort
SELECT + 48 * + 68 AS col1 FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
3264
3264
3264

onlyif mysql # DIV for integer division: 
query I rowsort label-2002
SELECT + + 73 * - col1 + + col1 - - 2 DIV col1 FROM tab2 cor0
----
-3672
-4824
-5544

skipif mysql # not compatible
query I rowsort label-2002
SELECT + + 73 * - col1 + + col1 - - 2 / col1 FROM tab2 cor0
----
-3672
-4824
-5544

query I rowsort
SELECT DISTINCT - + col0 + + + 64 * col2 FROM tab2 AS cor0
----
1426
2496
3637

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2004
SELECT col0 + CAST( NULL AS SIGNED ) + - - 70 * - + 31 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2004
SELECT col0 + CAST ( NULL AS INTEGER ) + - - 70 * - + 31 AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 - + ( ( - - col2 ) ) * 87 FROM tab2
----
-1955
-3416
-4971

onlyif mysql # DIV for integer division: 
query I rowsort label-2006
SELECT DISTINCT 22 * - 89 + + 34 - + - col0 DIV 79 FROM tab2
----
-1924

skipif mysql # not compatible
query I rowsort label-2006
SELECT DISTINCT 22 * - 89 + + 34 - + - col0 / 79 FROM tab2
----
-1924

query I rowsort
SELECT - col2 * col1 + ( - - col1 ) AS col1 FROM tab2
----
-1122
-3003
-3819

onlyif mysql # aggregate syntax: 
query I rowsort label-2008
SELECT DISTINCT COUNT( * ) - - ( - + COUNT( * ) ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2008
SELECT DISTINCT COUNT ( * ) - - ( - + COUNT ( * ) ) FROM tab1
----
0

query I rowsort
SELECT ( - 1 ) + - - col1 FROM tab2
----
50
66
76

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2010
SELECT DISTINCT col0 * + CAST( NULL AS DECIMAL ) - + + 3 * + 56 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2010
SELECT DISTINCT col0 * + CAST ( NULL AS REAL ) - + + 3 * + 56 FROM tab1
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT IN ( - col2 )
----

query I rowsort
SELECT - col1 + - 69 + col2 AS col0 FROM tab2
----
-106
-78
-97

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab1 cor0 WHERE NOT - col2 NOT BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2014
SELECT + col1 * col1 DIV col1 AS col2 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-2014
SELECT + col1 * col1 / col1 AS col2 FROM tab1 AS cor0
----
14
47
5

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 85 - + 62 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( NOT ( NULL ) IS NOT NULL )
----

query I rowsort
SELECT col1 * + + col0 AS col0 FROM tab0 AS cor0
----
1215
1827
97

query I rowsort
SELECT DISTINCT col1 FROM tab2 AS cor0 WHERE NOT ( NOT + col2 + - col2 IS NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2019
SELECT - SUM( ALL + 98 ) * COUNT( * ) FROM tab2 WHERE NOT + CAST( NULL AS SIGNED ) + col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2019
SELECT - SUM ( ALL + 98 ) * COUNT ( * ) FROM tab2 WHERE NOT + CAST ( NULL AS INTEGER ) + col1 IS NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 46 + - 70 IS NULL
----

query I rowsort
SELECT DISTINCT + + col0 * ( - col2 ) FROM tab0 AS cor0
----
-705
-870
-9603

query I rowsort
SELECT ALL + col0 / col2 AS col0 FROM tab1 AS cor0 WHERE NOT ( col1 + 84 ) IS NOT NULL
----

query I rowsort
SELECT - col2 * + col2 + + col1 AS col2 FROM tab1 cor0
----
-3476
-4577
-9202

query I rowsort
SELECT + 91 AS col0 FROM tab2 cor0
----
91
91
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2025
SELECT DISTINCT COUNT( * ) DIV + - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2025
SELECT DISTINCT COUNT ( * ) / + - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT 39 * + + 30 + - col0 FROM tab2 AS cor0
----
1095
1106
1124

query IIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0 WHERE ( NULL ) IS NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

onlyif mysql # aggregate syntax: 
query II rowsort label-2028
SELECT DISTINCT COUNT( * ), COUNT( * ) AS col2 FROM tab0
----
3
3

skipif mysql # not compatible
query II rowsort label-2028
SELECT DISTINCT COUNT ( * ), COUNT ( * ) AS col2 FROM tab0
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2029
SELECT 85 + COUNT( * ) FROM tab1 WHERE NOT ( ( NOT - col0 - - 22 <= col2 ) )
----
88

skipif mysql # not compatible
query I rowsort label-2029
SELECT 85 + COUNT ( * ) FROM tab1 WHERE NOT ( ( NOT - col0 - - 22 <= col2 ) )
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-2030
SELECT + COUNT( ALL col2 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2030
SELECT + COUNT ( ALL col2 ) AS col0 FROM tab2
----
3

query III rowsort
SELECT * FROM tab2 WHERE NOT 58 + + col1 NOT BETWEEN NULL AND col0
----

query I rowsort
SELECT ALL col1 * + col1 * + col0 AS col2 FROM tab0 AS cor0
----
38367
97
98415

query II rowsort
SELECT col0, 16 AS col2 FROM tab0 AS cor0
----
15
16
87
16
97
16

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2034
SELECT - 19 - - - col2 + 33 AS col1, + col0 * CAST( NULL AS DECIMAL ) * + col1 - 16 * - col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query II rowsort label-2034
SELECT - 19 - - - col2 + 33 AS col1, + col0 * CAST ( NULL AS REAL ) * + col1 - 16 * - col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - ( - 88 ) AS col0 FROM tab2 cor0 WHERE col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2036
SELECT ALL - SUM( ALL + 90 ) AS col2, 23 AS col0 FROM tab2
----
-270
23

skipif mysql # not compatible
query II rowsort label-2036
SELECT ALL - SUM ( ALL + 90 ) AS col2, 23 AS col0 FROM tab2
----
-270
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2037
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - col1 + - 54 FROM tab0 WHERE NULL = NULL
----

skipif mysql # not compatible
query I rowsort label-2037
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - col1 + - 54 FROM tab0 WHERE NULL = NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2038
SELECT col1 + + - CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2038
SELECT col1 + + - CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + 52 + + 23 AS col2 FROM tab2 AS cor0
----
75
75
75

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT - ( + col0 ) >= NULL )
----

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab1 AS cor0 WHERE NOT - 40 * - + 3 IS NULL
----
59
68
96

query I rowsort
SELECT col2 + col1 * + 35 AS col2 FROM tab0 AS cor0
----
134
2882
745

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2043
SELECT * FROM tab1 AS cor0 WHERE + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2043
SELECT * FROM tab1 AS cor0 WHERE + CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2044
SELECT + COUNT( * ) + 6 FROM tab1 AS cor0 WHERE NULL IS NULL
----
9

skipif mysql # not compatible
query I rowsort label-2044
SELECT + COUNT ( * ) + 6 FROM tab1 AS cor0 WHERE NULL IS NULL
----
9

query I rowsort
SELECT DISTINCT + 26 AS col2 FROM tab0 AS cor0
----
26

query I rowsort
SELECT - + col2 FROM tab1 AS cor0 WHERE + 48 IS NULL
----

query I rowsort
SELECT DISTINCT - col2 + - + col0 AS col0 FROM tab1
----
-144
-147
-159

query III rowsort
SELECT ALL * FROM tab0 WHERE - - 6 * - - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2049
SELECT DISTINCT ( + 60 ) + - CAST( + col1 AS SIGNED ) * - col2 FROM tab1
----
1404
3256
355

skipif mysql # not compatible
query I rowsort label-2049
SELECT DISTINCT ( + 60 ) + - CAST ( + col1 AS INTEGER ) * - col2 FROM tab1
----
1404
3256
355

query III rowsort
SELECT ALL * FROM tab0 WHERE - col0 NOT BETWEEN 9 * + col1 * + 93 AND + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + 87 + - 72 FROM tab0
----
15
15
15

query I rowsort
SELECT ALL - 22 FROM tab2 WHERE col2 <> NULL
----

query II rowsort
SELECT col2 * + + col2 - + col1 * - col2 * - - 75 - + 91, + col1 AS col2 FROM tab1
----
109925
14
244233
47
25515
5

query III rowsort
SELECT * FROM tab0 WHERE + - ( + + col0 ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2055
SELECT DISTINCT CAST( NULL AS SIGNED ), col0 col1 FROM tab0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2055
SELECT DISTINCT CAST ( NULL AS INTEGER ), col0 col1 FROM tab0
----
NULL
15
NULL
87
NULL
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2056
SELECT - 66 - - + ( - MIN( + col0 ) ) FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-2056
SELECT - 66 - - + ( - MIN ( + col0 ) ) FROM tab0
----
-81

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + + 16 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col0 * + ( - - col2 ) * + 6 FROM tab2 AS cor0
----
15360
26100
6348

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2059
SELECT ALL - - col0 AS col1, + col0 * CAST( NULL AS SIGNED ) / - - col2 AS col1 FROM tab1 cor0
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-2059
SELECT ALL - - col0 AS col1, + col0 * CAST ( NULL AS INTEGER ) / - - col2 AS col1 FROM tab1 cor0
----
51
NULL
85
NULL
91
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2060
SELECT ALL - + col1 AS col2, - col2 DIV + - 37 FROM tab0 AS cor0
----
-1
2
-21
0
-81
1

skipif mysql # not compatible
query II rowsort label-2060
SELECT ALL - + col1 AS col2, - col2 / + - 37 FROM tab0 AS cor0
----
-1
2
-21
0
-81
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2061
SELECT ALL CAST( NULL AS SIGNED ) / col2 + + - col1, - 9 + + 52 + + CAST( + + ( + - 29 ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
14
NULL
14
NULL
14

skipif mysql # not compatible
query II rowsort label-2061
SELECT ALL CAST ( NULL AS INTEGER ) / col2 + + - col1, - 9 + + 52 + + CAST ( + + ( + - 29 ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
14
NULL
14
NULL
14

query I rowsort
SELECT - col0 * - 0 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL col2 AS col1 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 * + col0 * + - 92 AS col1 FROM tab2
----
-215832
-453376
-462300

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2065
SELECT DISTINCT + CAST( - - col0 AS SIGNED ) DIV 65 * - 25 * + 45 FROM tab0 AS cor0
----
-1125
0

skipif mysql # not compatible
query I rowsort label-2065
SELECT DISTINCT + CAST ( - - col0 AS INTEGER ) / 65 * - 25 * + 45 FROM tab0 AS cor0
----
-1125
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2066
SELECT - CAST( NULL AS SIGNED ) + + + CAST( - 56 AS SIGNED ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-2066
SELECT - CAST ( NULL AS INTEGER ) + + + CAST ( - 56 AS INTEGER ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + col0 * - + col2 + + - 89 AS col1 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN + col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2068
SELECT ( - - COUNT( * ) ) + - - MIN( - + 39 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IN ( col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2068
SELECT ( - - COUNT ( * ) ) + - - MIN ( - + 39 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IN ( col2 )
----
NULL

query II rowsort
SELECT DISTINCT - col1 AS col2, - col0 AS col0 FROM tab0
----
-1
-97
-21
-87
-81
-15

query I rowsort
SELECT 47 * col1 AS col1 FROM tab1
----
2209
235
658

query II rowsort
SELECT 57 AS col1, - col2 * - col1 AS col2 FROM tab2
----
57
1173
57
3080
57
3886

query II rowsort
SELECT ALL + - 78, 17 FROM tab0 WHERE - col1 / - col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2073
SELECT DISTINCT + col0 DIV col0 * + - 44 + + + col0 AS col2 FROM tab1 cor0
----
41
47
7

skipif mysql # not compatible
query I rowsort label-2073
SELECT DISTINCT + col0 / col0 * + - 44 + + + col0 AS col2 FROM tab1 cor0
----
41
47
7

query I rowsort
SELECT DISTINCT ( - + col2 ) AS col2 FROM tab0 AS cor0
----
-10
-47
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-2075
SELECT ALL - col0 DIV + + ( 32 ) + - col0 AS col0 FROM tab0
----
-100
-15
-89

skipif mysql # not compatible
query I rowsort label-2075
SELECT ALL - col0 / + + ( 32 ) + - col0 AS col0 FROM tab0
----
-100
-15
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-2076
SELECT DISTINCT - COUNT( * ) * - - COUNT( * ) + + - 23 col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-104

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2076
SELECT DISTINCT - COUNT ( * ) * - - COUNT ( * ) + + - 23 col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-104

onlyif mysql # aggregate syntax: 
query I rowsort label-2077
SELECT MAX( ALL + + col0 ) AS col1 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-2077
SELECT MAX ( ALL + + col0 ) AS col1 FROM tab1 AS cor0
----
91

query I rowsort
SELECT col0 - - + 37 FROM tab1 cor0
----
122
128
88

query I rowsort
SELECT ALL - 91 * + col2 - + - 20 * - col0 + 19 FROM tab0 AS cor0
----
-10930
-2631
-4558

query I rowsort
SELECT ALL - + 40 AS col2 FROM tab1 AS cor0
----
-40
-40
-40

query I rowsort
SELECT ALL - 61 + 69 * - 67 + - col2 AS col2 FROM tab0 AS cor0
----
-4694
-4731
-4783

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 - col2 AS col2, - col2 * 81 * - col0 col2 FROM tab2 AS cor0
----
0
207360
0
352350
0
85698

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + - col1 * - col0 + col2 + col1 <> + 4
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 col1 FROM tab1 WHERE + 87 NOT IN ( + + 81, - col0, - col1, 66 )
----
-14
-47
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-2085
SELECT ALL 29 - + col0 DIV 8 col0 FROM tab0
----
17
19
28

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2085
SELECT ALL 29 - + col0 / 8 col0 FROM tab0
----
17
19
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2086
SELECT DISTINCT CAST( - 86 AS SIGNED ) * + col0 * 39 - + col2 FROM tab0
----
-291808
-325437
-50357

skipif mysql # not compatible
query I rowsort label-2086
SELECT DISTINCT CAST ( - 86 AS INTEGER ) * + col0 * 39 - + col2 FROM tab0
----
-291808
-325437
-50357

query III rowsort
SELECT ALL * FROM tab2 WHERE + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2088
SELECT DISTINCT - + SUM( ALL ( + + col2 ) ) FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-2088
SELECT DISTINCT - + SUM ( ALL ( + + col2 ) ) FROM tab0 AS cor0
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-2089
SELECT DISTINCT SUM( ALL 21 ) AS col1 FROM tab2
----
63

skipif mysql # not compatible
query I rowsort label-2089
SELECT DISTINCT SUM ( ALL 21 ) AS col1 FROM tab2
----
63

query I rowsort
SELECT - + col2 * col1 * - 41 FROM tab0 AS cor0
----
156087
4059
8610

onlyif mysql # aggregate syntax: 
query I rowsort label-2091
SELECT DISTINCT COUNT( DISTINCT + col2 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2091
SELECT DISTINCT COUNT ( DISTINCT + col2 ) AS col0 FROM tab2 AS cor0
----
3

query II rowsort
SELECT + - 44 AS col0, col2 FROM tab1 AS cor0
----
-44
59
-44
68
-44
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2093
SELECT DISTINCT - + CAST( NULL AS SIGNED ) * col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2093
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2094
SELECT ALL 6, MIN( + col1 ) AS col1 FROM tab1 AS cor0
----
6
5

skipif mysql # not compatible
query II rowsort label-2094
SELECT ALL 6, MIN ( + col1 ) AS col1 FROM tab1 AS cor0
----
6
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2095
SELECT ALL - ( + COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2095
SELECT ALL - ( + COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab0 AS cor0 WHERE col2 IS NULL
----

query I rowsort
SELECT - - 2 + + - 93 AS col2 FROM tab2 AS cor0
----
-91
-91
-91

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 56 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL >= 33 + + col2 * + col1 + + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2100
SELECT ALL 40 * COUNT( * ) + - COUNT( * ) + + 10 FROM tab2 AS cor0
----
127

skipif mysql # not compatible
query I rowsort label-2100
SELECT ALL 40 * COUNT ( * ) + - COUNT ( * ) + + 10 FROM tab2 AS cor0
----
127

query I rowsort
SELECT DISTINCT - - 40 * + - col1 AS col0 FROM tab1 AS cor0
----
-1880
-200
-560

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2102
SELECT DISTINCT 20 DIV + col0 AS col2, CAST( - 95 AS SIGNED ) FROM tab2
----
0
-95

skipif mysql # not compatible
query II rowsort label-2102
SELECT DISTINCT 20 / + col0 AS col2, CAST ( - 95 AS INTEGER ) FROM tab2
----
0
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-2103
SELECT - ( ( - MAX( DISTINCT col2 ) ) ) + MIN( - col2 ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2103
SELECT - ( ( - MAX ( DISTINCT col2 ) ) ) + MIN ( - col2 ) AS col1 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2104
SELECT + COUNT( * ) FROM tab1 WHERE - - ( col2 ) <= + col0 - + col0
----
0

skipif mysql # not compatible
query I rowsort label-2104
SELECT + COUNT ( * ) FROM tab1 WHERE - - ( col2 ) <= + col0 - + col0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * - 85 * - 13 col1 FROM tab2
----
-50830
-70720
-82875

query I rowsort
SELECT DISTINCT col1 * + ( - 52 ) AS col0 FROM tab2
----
-2652
-3484
-4004

query III rowsort
SELECT * FROM tab0 WHERE NULL IN ( - + 79 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2108
SELECT + + SUM( ALL + col1 ), 51 AS col0 FROM tab0 AS cor0
----
103
51

skipif mysql # not compatible
query II rowsort label-2108
SELECT + + SUM ( ALL + col1 ), 51 AS col0 FROM tab0 AS cor0
----
103
51

query I rowsort
SELECT + 10 - col1 FROM tab0 AS cor0 WHERE - col1 + - - 68 + - 89 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col2 >= NULL
----

query I rowsort
SELECT ALL col2 * + ( - 25 ) + - - col0 * - col0 FROM tab0 AS cor0
----
-11884
-1400
-7819

query I rowsort
SELECT ALL col2 - + 73 AS col2 FROM tab1
----
-14
-5
23

query I rowsort
SELECT + 86 + - + 25 FROM tab2
----
61
61
61

query IIIIII rowsort
SELECT ALL * FROM ( tab2 AS cor0 CROSS JOIN tab0 cor1 ) WHERE 7 < - + 48
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2115
SELECT DISTINCT CAST( + 36 AS SIGNED ) FROM tab1
----
36

skipif mysql # not compatible
query I rowsort label-2115
SELECT DISTINCT CAST ( + 36 AS INTEGER ) FROM tab1
----
36

query I rowsort
SELECT 69 + - col2 AS col2 FROM tab1 cor0
----
-27
1
10

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2117
SELECT ALL - 27 DIV col2 AS col2 FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) IS NOT NULL
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-2117
SELECT ALL - 27 / col2 AS col2 FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL
----
-2
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2118
SELECT - 55 AS col0, - ( - 58 ) + COUNT( * ) + + 94 AS col0 FROM tab0 AS cor0
----
-55
155

skipif mysql # not compatible
query II rowsort label-2118
SELECT - 55 AS col0, - ( - 58 ) + COUNT ( * ) + + 94 AS col0 FROM tab0 AS cor0
----
-55
155

query I rowsort
SELECT + - col2 * + col0 * - col2 AS col2 FROM tab2 AS cor0
----
102400
24334
252300

onlyif mysql # aggregate syntax: 
query I rowsort label-2120
SELECT DISTINCT SUM( ALL col0 ) + MIN( col0 ) FROM tab1 cor0
----
278

skipif mysql # not compatible
query I rowsort label-2120
SELECT DISTINCT SUM ( ALL col0 ) + MIN ( col0 ) FROM tab1 cor0
----
278

query I rowsort
SELECT ALL + 84 + - 88 AS col0 FROM tab0 AS cor0
----
-4
-4
-4

query I rowsort
SELECT - + 69 AS col0 FROM tab0 AS cor0
----
-69
-69
-69

query II rowsort
SELECT ( + - col2 ), col1 AS col1 FROM tab0
----
-10
21
-47
81
-99
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2124
SELECT DISTINCT ( + 20 ) DIV col0 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2124
SELECT DISTINCT ( + 20 ) / col0 AS col2 FROM tab2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2125
SELECT - 25 DIV + COUNT( * ) AS col0 FROM tab1
----
-8

skipif mysql # not compatible
query I rowsort label-2125
SELECT - 25 / + COUNT ( * ) AS col0 FROM tab1
----
-8

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2127
SELECT DISTINCT - MAX( ALL + col0 ) AS col2 FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-2127
SELECT DISTINCT - MAX ( ALL + col0 ) AS col2 FROM tab2
----
-75

query II rowsort
SELECT DISTINCT + col0 AS col1, - col1 FROM tab1
----
51
-14
85
-5
91
-47

query II rowsort
SELECT DISTINCT + col2 AS col0, + col2 FROM tab1
----
59
59
68
68
96
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2130
SELECT ALL + CAST( - - col2 AS SIGNED ) AS col1 FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-2130
SELECT ALL + CAST ( - - col2 AS INTEGER ) AS col1 FROM tab0
----
10
47
99

query I rowsort
SELECT 8 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
8
8
8

query II rowsort
SELECT ALL + col0, col1 * + ( - 1 ) * - col2 - - 72 + + 85 + + 30 AS col2 FROM tab0
----
15
3994
87
397
97
286

query I rowsort
SELECT ALL + ( - 34 ) FROM tab1 cor0
----
-34
-34
-34

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND - col1 * + - 87 + + 69 * - + col0
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 53 >= ( 24 ) * - - 19
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2136
SELECT - CAST( - col2 AS SIGNED ) * + col1 - - col0 + + - col2 + - - ( 70 ) - - - col1 * + col2 AS col1 FROM tab2 AS cor0
----
87
93
94

skipif mysql # not compatible
query I rowsort label-2136
SELECT - CAST ( - col2 AS INTEGER ) * + col1 - - col0 + + - col2 + - - ( 70 ) - - - col1 * + col2 AS col1 FROM tab2 AS cor0
----
87
93
94

query II rowsort
SELECT + col0 AS col1, col0 AS col0 FROM tab2 cor0
----
46
46
64
64
75
75

query III rowsort
SELECT ALL * FROM tab0 WHERE - col0 * - col1 - - - col1 >= + 33 + + + 2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 93 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL < col0 * col1
----

query I rowsort
SELECT DISTINCT ( + col1 ) + + col1 FROM tab0 AS cor0
----
162
2
42

query I rowsort
SELECT DISTINCT 12 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2143
SELECT COUNT( * ) FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN NULL AND 20
----
0

skipif mysql # not compatible
query I rowsort label-2143
SELECT COUNT ( * ) FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN NULL AND 20
----
0

query I rowsort
SELECT - col0 * 90 AS col2 FROM tab2 AS cor0
----
-4140
-5760
-6750

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 BETWEEN + 99 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2146
SELECT COUNT( * ) * + 15 * + + ( + COUNT( * ) ) FROM tab2 AS cor0
----
135

skipif mysql # not compatible
query I rowsort label-2146
SELECT COUNT ( * ) * + 15 * + + ( + COUNT ( * ) ) FROM tab2 AS cor0
----
135

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2147
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + ( + - ( - + 14 ) ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2147
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + ( + - ( - + 14 ) ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col1 * 77 AS col2 FROM tab1
----
1078
3619
385

query I rowsort
SELECT ALL 31 * col2 FROM tab0
----
1457
3069
310

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 - - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2151
SELECT COUNT( * ) + + SUM( ALL - col2 ) AS col1 FROM tab0 AS cor0
----
-153

skipif mysql # not compatible
query I rowsort label-2151
SELECT COUNT ( * ) + + SUM ( ALL - col2 ) AS col1 FROM tab0 AS cor0
----
-153

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2152
SELECT + + CAST( NULL AS SIGNED ) + - + AVG ( ALL - col0 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2152
SELECT + + CAST ( NULL AS INTEGER ) + - + AVG ( ALL - col0 ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - 24 + + col2 FROM tab1 AS cor0
----
35
44
72

query I rowsort
SELECT - - 66 * col2 + + - col1 FROM tab0 AS cor0
----
3021
639
6533

query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT - 74 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2156
SELECT ALL - - 7 * - - 11 * + + MAX( - 61 ) + + 39 FROM tab1 AS cor0
----
-4658

skipif mysql # not compatible
query I rowsort label-2156
SELECT ALL - - 7 * - - 11 * + + MAX ( - 61 ) + + 39 FROM tab1 AS cor0
----
-4658

query I rowsort
SELECT DISTINCT + 75 * col1 AS col2 FROM tab1 AS cor0
----
1050
3525
375

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2158
SELECT DISTINCT + col1 * + col0 + col2 * CAST( + col0 AS SIGNED ) + - - CAST( - 69 AS SIGNED ), col2 AS col1 FROM tab0 AS cor0
----
1851
47
2628
10
9631
99

skipif mysql # not compatible
query II rowsort label-2158
SELECT DISTINCT + col1 * + col0 + col2 * CAST ( + col0 AS INTEGER ) + - - CAST ( - 69 AS INTEGER ), col2 AS col1 FROM tab0 AS cor0
----
1851
47
2628
10
9631
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2159
SELECT + + COUNT( * ) * + + ( + 9 ) + COUNT( * ) FROM tab0 cor0
----
30

skipif mysql # not compatible
query I rowsort label-2159
SELECT + + COUNT ( * ) * + + ( + 9 ) + COUNT ( * ) FROM tab0 cor0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-2160
SELECT + 74 * + COUNT( * ) AS col1 FROM tab0 AS cor0
----
222

skipif mysql # not compatible
query I rowsort label-2160
SELECT + 74 * + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
222

query I rowsort
SELECT DISTINCT + 52 * + col1 * + col0 * + col2 + - 31 AS col2 FROM tab2 AS cor0
----
10250209
15155369
2805785

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2162
SELECT DISTINCT - CAST( NULL AS DECIMAL ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2162
SELECT DISTINCT - CAST ( NULL AS REAL ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2163
SELECT 10 DIV - 46 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2163
SELECT 10 / - 46 AS col1 FROM tab1
----
0
0
0

query II rowsort
SELECT DISTINCT col1 AS col2, col2 FROM tab0
----
1
99
21
10
81
47

query III rowsort
SELECT * FROM tab2 WHERE NOT + 74 < col1
----
46
51
23
75
67
58

query I rowsort
SELECT + col2 * + + col1 AS col1 FROM tab2
----
1173
3080
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-2167
SELECT - + 31 * + + COUNT( * ) * ( + 3 ) * - 38 * - + COUNT( * ) FROM tab0 AS cor0
----
-31806

skipif mysql # not compatible
query I rowsort label-2167
SELECT - + 31 * + + COUNT ( * ) * ( + 3 ) * - 38 * - + COUNT ( * ) FROM tab0 AS cor0
----
-31806

query I rowsort
SELECT col0 AS col2 FROM tab1 AS cor0 WHERE NOT NULL < ( NULL )
----

query I rowsort
SELECT + + col2 * - 91 FROM tab0 cor0
----
-4277
-9009
-910

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab2 AS cor0 WHERE NOT 35 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 col1, col0 + + + col0 AS col2 FROM tab2
----
-23
92
-40
128
-58
150

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2172
SELECT + CAST( - 74 AS SIGNED ) FROM tab0
----
-74
-74
-74

skipif mysql # not compatible
query I rowsort label-2172
SELECT + CAST ( - 74 AS INTEGER ) FROM tab0
----
-74
-74
-74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 23 col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-23

query II rowsort
SELECT - col0 AS col0, ( + col2 ) AS col0 FROM tab0 AS cor0
----
-15
47
-87
10
-97
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 + - - col1 AS col2, + col1 col1 FROM tab2 cor0
----
102
51
134
67
154
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2176
SELECT + COUNT( * ) + + + SUM( + col2 ) FROM tab2 AS cor0
----
124

skipif mysql # not compatible
query I rowsort label-2176
SELECT + COUNT ( * ) + + + SUM ( + col2 ) FROM tab2 AS cor0
----
124

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2177
SELECT DISTINCT CAST( NULL AS DECIMAL ), 2 * - col0 AS col2 FROM tab0 AS cor0
----
NULL
-174
NULL
-194
NULL
-30

skipif mysql # not compatible
query II rowsort label-2177
SELECT DISTINCT CAST ( NULL AS REAL ), 2 * - col0 AS col2 FROM tab0 AS cor0
----
NULL
-174
NULL
-194
NULL
-30

query I rowsort
SELECT + col0 + - 91 * - - col2 FROM tab1 AS cor0
----
-5284
-6097
-8685

onlyif mysql # DIV for integer division: 
query I rowsort label-2179
SELECT DISTINCT - col2 + col2 DIV - col2 FROM tab2 AS cor0
----
-24
-41
-59

skipif mysql # not compatible
query I rowsort label-2179
SELECT DISTINCT - col2 + col2 / - col2 FROM tab2 AS cor0
----
-24
-41
-59

query I rowsort
SELECT ALL - col2 + - - col1 * 96 * + - 66 FROM tab2 AS cor0
----
-323159
-424570
-487912

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2181
SELECT ALL * FROM tab2 cor0 WHERE CAST( NULL AS SIGNED ) + - + col2 * 77 + + 78 * col0 * 82 / - - col0 + + + 43 > NULL
----

skipif mysql # not compatible
query III rowsort label-2181
SELECT ALL * FROM tab2 cor0 WHERE CAST ( NULL AS INTEGER ) + - + col2 * 77 + + 78 * col0 * 82 / - - col0 + + + 43 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2182
SELECT ALL - COUNT( * ) + + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-2182
SELECT ALL - COUNT ( * ) + + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-6

query I rowsort
SELECT ALL - + col0 + + col1 AS col0 FROM tab1 cor0
----
-37
-44
-80

query I rowsort
SELECT - 80 + + + 67 + col1 + col0 AS col1 FROM tab0 cor0
----
83
85
95

query II rowsort
SELECT DISTINCT - + col0, col2 AS col1 FROM tab0 AS cor0
----
-15
47
-87
10
-97
99

query I rowsort
SELECT ALL + + col1 * + - 32 + + ( + col0 ) * - col1 AS col0 FROM tab1 AS cor0
----
-1162
-5781
-585

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 + + + 97, col2 + - + col0 * + - ( + - col2 ) col1 FROM tab0
----
118
-860
178
-658
98
-9504

query I rowsort
SELECT ALL + col1 + + col1 * - ( + + 18 ) FROM tab2 WHERE NULL > ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2189
SELECT DISTINCT MIN( - 68 ) AS col1 FROM tab0
----
-68

skipif mysql # not compatible
query I rowsort label-2189
SELECT DISTINCT MIN ( - 68 ) AS col1 FROM tab0
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-2190
SELECT + ( - + ( MAX( + 46 ) ) ) FROM tab0
----
-46

skipif mysql # not compatible
query I rowsort label-2190
SELECT + ( - + ( MAX ( + 46 ) ) ) FROM tab0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-2191
SELECT - COUNT( + ( + + ( col2 ) ) ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-2191
SELECT - COUNT ( + ( + + ( col2 ) ) ) FROM tab0
----
-3

query II rowsort
SELECT DISTINCT - 98 + + + col1 AS col1, col0 * + col2 * 26 FROM tab0 AS cor0
----
-17
18330
-77
22620
-97
249678

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2193
SELECT ALL CAST( NULL AS SIGNED ) + 70 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2193
SELECT ALL CAST ( NULL AS INTEGER ) + 70 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 + 88 + + - col0 * - ( + col2 ) * - col2 * + - col0 AS col1 FROM tab2
----
1119406
18922513
6553624

query I rowsort
SELECT ALL col1 - col2 + + + 31 + - + col1 FROM tab2
----
-27
-9
8

query I rowsort
SELECT - - ( ( 6 ) ) * + col1 * - + 72 FROM tab1 AS cor0
----
-20304
-2160
-6048

query I rowsort
SELECT DISTINCT - + col0 * + - 16 FROM tab0 cor0
----
1392
1552
240

onlyif mysql # aggregate syntax: 
query I rowsort label-2198
SELECT DISTINCT - COUNT( * ) * - 85 AS col2 FROM tab0 AS cor0
----
255

skipif mysql # not compatible
query I rowsort label-2198
SELECT DISTINCT - COUNT ( * ) * - 85 AS col2 FROM tab0 AS cor0
----
255

query I rowsort
SELECT ALL + + 36 * + ( + 16 ) + - col1 AS col2 FROM tab2 AS cor0
----
499
509
525

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2200
SELECT CAST( ( 10 ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
10
10
10

skipif mysql # not compatible
query I rowsort label-2200
SELECT CAST ( ( 10 ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
10
10
10

onlyif mysql # aggregate syntax: 
query I rowsort label-2201
SELECT ALL COUNT( * ) * + 51 * + + COUNT( - col1 ) FROM tab0 AS cor0
----
459

skipif mysql # not compatible
query I rowsort label-2201
SELECT ALL COUNT ( * ) * + 51 * + + COUNT ( - col1 ) FROM tab0 AS cor0
----
459

query I rowsort
SELECT - col2 + + col2 FROM tab0 WHERE NOT ( NULL IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2203
SELECT + MAX( + - col0 ) FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-2203
SELECT + MAX ( + - col0 ) FROM tab2
----
-46

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col0 + - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2205
SELECT DISTINCT COUNT( ALL + - col1 ) * - - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2205
SELECT DISTINCT COUNT ( ALL + - col1 ) * - - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query II rowsort
SELECT DISTINCT - + 81 * col2, + col2 AS col2 FROM tab1 AS cor0
----
-4779
59
-5508
68
-7776
96

query I rowsort
SELECT - - col1 * + + 8 FROM tab0 AS cor0
----
168
648
8

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 86 + + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2209
SELECT + SUM( DISTINCT - 31 ) col2 FROM tab1 AS cor0
----
-31

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2209
SELECT + SUM ( DISTINCT - 31 ) col2 FROM tab1 AS cor0
----
-31

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2210
SELECT + col2 + - col0 + + CAST( - col2 AS SIGNED ) DIV 8 DIV - col0 AS col2 FROM tab2
----
-17
-23
-24

skipif mysql # not compatible
query I rowsort label-2210
SELECT + col2 + - col0 + + CAST ( - col2 AS INTEGER ) / 8 / - col0 AS col2 FROM tab2
----
-17
-23
-24

query I rowsort
SELECT DISTINCT 38 FROM tab1 WHERE NOT - - 51 IS NULL
----
38

query I rowsort
SELECT DISTINCT - + 55 AS col0 FROM tab2 AS cor0
----
-55

query I rowsort
SELECT col2 * 58 AS col0 FROM tab0 AS cor0
----
2726
5742
580

onlyif mysql # aggregate syntax: 
query I rowsort label-2214
SELECT - COUNT( * ) col0 FROM tab1 AS cor0 WHERE - ( + col2 ) - - col1 IN ( - col1 + - - ( + - 99 ) )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2214
SELECT - COUNT ( * ) col0 FROM tab1 AS cor0 WHERE - ( + col2 ) - - col1 IN ( - col1 + - - ( + - 99 ) )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2215
SELECT * FROM tab0 AS cor0 WHERE - 68 IN ( - 27 * - col2 * + - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-2215
SELECT * FROM tab0 AS cor0 WHERE - 68 IN ( - 27 * - col2 * + - CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 * + 26 + - 44 IS NULL
----

query I rowsort
SELECT ALL ( - col2 ) + - col2 AS col2 FROM tab2 AS cor0
----
-116
-46
-80

query I rowsort
SELECT ALL + - col1 + + 6 * + col2 * col1 * - - 83 + + col1 FROM tab2 AS cor0
----
1533840
1935228
584154

onlyif mysql # aggregate syntax: 
query I rowsort label-2219
SELECT DISTINCT - COUNT( DISTINCT - 63 ) AS col2 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2219
SELECT DISTINCT - COUNT ( DISTINCT - 63 ) AS col2 FROM tab1 AS cor0
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2220
SELECT ALL col1 * - - ( + 13 ) + - CAST( NULL AS DECIMAL ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2220
SELECT ALL col1 * - - ( + 13 ) + - CAST ( NULL AS REAL ) AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 + + 87 AS col1 FROM tab0
----
102
174
184

onlyif mysql # DIV for integer division: 
query I rowsort label-2222
SELECT ALL 62 * 50 + col1 - - col0 DIV + + ( col0 ) FROM tab0
----
3102
3122
3182

skipif mysql # not compatible
query I rowsort label-2222
SELECT ALL 62 * 50 + col1 - - col0 / + + ( col0 ) FROM tab0
----
3102
3122
3182

query I rowsort
SELECT - col2 + - - ( - col0 ) FROM tab0
----
-196
-62
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2224
SELECT ALL COUNT( * ) FROM tab2 WHERE NOT - col2 / col0 * - col1 + col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2224
SELECT ALL COUNT ( * ) FROM tab2 WHERE NOT - col2 / col0 * - col1 + col2 IS NOT NULL
----
0

query II rowsort
SELECT DISTINCT 68, + col0 AS col0 FROM tab2
----
68
46
68
64
68
75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2226
SELECT ALL CAST( NULL AS SIGNED ) AS col2, col1 FROM tab1 cor0
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-2226
SELECT ALL CAST ( NULL AS INTEGER ) AS col2, col1 FROM tab1 cor0
----
NULL
14
NULL
47
NULL
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 50 + col2 + - 93 col1 FROM tab0 AS cor0
----
-133
-44
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-2228
SELECT ALL COUNT( * ) * - 15 * + 29 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1305

skipif mysql # not compatible
query I rowsort label-2228
SELECT ALL COUNT ( * ) * - 15 * + 29 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1305

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 14 col0, + 23 col1 FROM tab1 AS cor0
----
14
23
14
23
14
23

query I rowsort
SELECT DISTINCT - - col2 + + col2 + col0 FROM tab0 AS cor0
----
107
109
295

query I rowsort
SELECT + ( + - col2 ) FROM tab2 AS cor0 WHERE + col1 * + col0 + 63 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2232
SELECT COUNT( * ) - 81 FROM tab1
----
-78

skipif mysql # not compatible
query I rowsort label-2232
SELECT COUNT ( * ) - 81 FROM tab1
----
-78

query III rowsort
SELECT ALL * FROM tab0 WHERE 2 <> - 74 + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col1 * - + col0 - col0 FROM tab2 AS cor0
----
-2392
-4992
-5100

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 96 col1 FROM tab1 AS cor0
----
96
96
96

query I rowsort
SELECT - 19 FROM tab2 cor0 WHERE NOT col0 IS NOT NULL
----

query I rowsort
SELECT ALL ( + col1 ) * + col2 - ( + 25 ) + - col0 * - - col0 + + col0 FROM tab0 AS cor0
----
-7297
-9238
3572

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 - + + col0 / - + 77 + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2239
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2239
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2240
SELECT + COUNT( * ) * - COUNT( * ) FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-2240
SELECT + COUNT ( * ) * - COUNT ( * ) FROM tab0 AS cor0
----
-9

query I rowsort
SELECT DISTINCT col1 + - col0 FROM tab1 cor0 WHERE NOT ( NULL ) <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2242
SELECT ALL + 83 DIV col1 AS col1 FROM tab1
----
1
16
5

skipif mysql # not compatible
query I rowsort label-2242
SELECT ALL + 83 / col1 AS col1 FROM tab1
----
1
16
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 54 * - - 83 col2 FROM tab0
----
4482
4482
4482

query I rowsort
SELECT + 96 * - 72 AS col2 FROM tab1
----
-6912
-6912
-6912

onlyif mysql # aggregate syntax: 
query II rowsort label-2245
SELECT + - 76 * - 14 + + COUNT( * ) AS col0, + 48 AS col2 FROM tab0 AS cor0
----
1067
48

skipif mysql # not compatible
query II rowsort label-2245
SELECT + - 76 * - 14 + + COUNT ( * ) AS col0, + 48 AS col2 FROM tab0 AS cor0
----
1067
48

query II rowsort
SELECT - - col0 AS col1, - col1 FROM tab0 AS cor0
----
15
-81
87
-21
97
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2247
SELECT + 70 + + + COUNT( * ) * - + 24 - + CAST( NULL AS SIGNED ) AS col0, 2 * - 65 AS col1 FROM tab1 WHERE - col2 NOT BETWEEN NULL AND NULL
----
NULL
-130

skipif mysql # not compatible
query II rowsort label-2247
SELECT + 70 + + + COUNT ( * ) * - + 24 - + CAST ( NULL AS INTEGER ) AS col0, 2 * - 65 AS col1 FROM tab1 WHERE - col2 NOT BETWEEN NULL AND NULL
----
NULL
-130

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 86 + - col0 col1 FROM tab2
----
11
22
40

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL BETWEEN col0 AND + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2250
SELECT DISTINCT - - col2 DIV + col2 AS col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2250
SELECT DISTINCT - - col2 / + col2 AS col1 FROM tab0 AS cor0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2251
SELECT ALL - 22 DIV + + 92 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2251
SELECT ALL - 22 / + + 92 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + 46 * + col2 AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
2714
3128
4416

onlyif mysql # aggregate syntax: 
query I rowsort label-2253
SELECT + MAX( DISTINCT + 41 ) AS col2 FROM tab2
----
41

skipif mysql # not compatible
query I rowsort label-2253
SELECT + MAX ( DISTINCT + 41 ) AS col2 FROM tab2
----
41

query III rowsort
SELECT ALL * FROM tab1 WHERE ( col2 * + ( - - ( 82 ) ) * + 51 = col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2255
SELECT ALL * FROM tab1 WHERE NULL <= + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2255
SELECT ALL * FROM tab1 WHERE NULL <= + - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT - ( + 97 ) - - + 93 * 60 FROM tab0
----
5483

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL <= 29
----

query I rowsort
SELECT DISTINCT 76 + + col0 AS col1 FROM tab0 AS cor0
----
163
173
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0, 36 col2 FROM tab2 AS cor0
----
-46
36
-64
36
-75
36

query I rowsort
SELECT 19 * + col1 AS col0 FROM tab1 AS cor0
----
266
893
95

query I rowsort
SELECT ALL col1 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2262
SELECT ALL - + col2 AS col0, col1 * CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-59
NULL
-68
NULL
-96
NULL

skipif mysql # not compatible
query II rowsort label-2262
SELECT ALL - + col2 AS col0, col1 * CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-59
NULL
-68
NULL
-96
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE - col0 < NULL
----

query I rowsort
SELECT ALL ( + - 17 ) FROM tab2
----
-17
-17
-17

query I rowsort
SELECT DISTINCT - col1 * + + 69 * col0 AS col2 FROM tab0
----
-126063
-6693
-83835

query I rowsort
SELECT ALL 76 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - 8 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2268
SELECT DISTINCT + + COUNT( + 86 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2268
SELECT DISTINCT + + COUNT ( + 86 ) FROM tab2 AS cor0
----
3

query II rowsort
SELECT + - 2 AS col2, 12 FROM tab2 AS cor0
----
-2
12
-2
12
-2
12

query II rowsort
SELECT ALL col0 AS col1, + col2 * - - col1 FROM tab1 cor0
----
51
1344
85
295
91
3196

query II rowsort
SELECT ALL 99 AS col1, + col2 * + col0 FROM tab1 AS cor0
----
99
4896
99
5015
99
6188

query I rowsort
SELECT DISTINCT 56 AS col1 FROM tab0 cor0
----
56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 * - 55 col1 FROM tab2 AS cor0
----
-2805
-3685
-4235

query II rowsort
SELECT ALL + - col1, - 77 * col0 AS col2 FROM tab2 AS cor0
----
-51
-3542
-67
-5775
-77
-4928

onlyif mysql # aggregate syntax: 
query I rowsort label-2275
SELECT + - ( COUNT( * ) ) * + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-2275
SELECT + - ( COUNT ( * ) ) * + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2276
SELECT DISTINCT + MAX( - col0 ) AS col1 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-2276
SELECT DISTINCT + MAX ( - col0 ) AS col1 FROM tab1
----
-51

query I rowsort
SELECT DISTINCT + col0 * + + 43 AS col0 FROM tab0
----
3741
4171
645

onlyif mysql # DIV for integer division: 
query I rowsort label-2278
SELECT - col1 DIV 36 * 96 AS col2 FROM tab2
----
-192
-96
-96

skipif mysql # not compatible
query I rowsort label-2278
SELECT - col1 / 36 * 96 AS col2 FROM tab2
----
-192
-96
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-2279
SELECT ALL + COUNT( * ) * - + MIN( DISTINCT + + 47 ) FROM tab2
----
-141

skipif mysql # not compatible
query I rowsort label-2279
SELECT ALL + COUNT ( * ) * - + MIN ( DISTINCT + + 47 ) FROM tab2
----
-141

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2280
SELECT DISTINCT + CAST( NULL AS SIGNED ) / + + col2, + col1 FROM tab1
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-2280
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / + + col2, + col1 FROM tab1
----
NULL
14
NULL
47
NULL
5

query I rowsort
SELECT ALL + ( - - ( col2 ) ) + col2 + col0 FROM tab1 AS cor0
----
203
227
243

query I rowsort
SELECT + 55 + - 97 + + col2 + + col1 * 64 + col0 AS col0 FROM tab1 AS cor0
----
1001
3125
422

query I rowsort
SELECT ALL - + col2 + + col2 * + col0 AS col0 FROM tab1 AS cor0
----
4800
4956
6120

onlyif mysql # DIV for integer division: 
query I rowsort label-2284
SELECT ALL - col1 * col0 + col1 DIV - col2 + - + col2 AS col0 FROM tab0 AS cor0
----
-1263
-1839
-196

skipif mysql # not compatible
query I rowsort label-2284
SELECT ALL - col1 * col0 + col1 / - col2 + - + col2 AS col0 FROM tab0 AS cor0
----
-1263
-1839
-196

query I rowsort
SELECT DISTINCT + col2 * 41 + + col2 FROM tab2 AS cor0
----
1680
2436
966

query II rowsort
SELECT - + col2 AS col0, + col0 FROM tab1 WHERE NULL < + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2287
SELECT ALL 72 * - + ( - ( COUNT( DISTINCT - 40 ) ) ) * - + COUNT( + + 0 ) AS col2 FROM tab2
----
-216

skipif mysql # not compatible
query I rowsort label-2287
SELECT ALL 72 * - + ( - ( COUNT ( DISTINCT - 40 ) ) ) * - + COUNT ( + + 0 ) AS col2 FROM tab2
----
-216

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2288
SELECT DISTINCT - CAST( NULL AS SIGNED ) / - + col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2288
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / - + col1 FROM tab1
----
NULL

query II rowsort
SELECT DISTINCT - + 61, 51 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-61
51

query I rowsort
SELECT col0 * - ( col0 ) FROM tab0 WHERE ( ( NOT NULL < - 68 ) )
----

query I rowsort
SELECT 68 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 53 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2293
SELECT ALL + COUNT( * ) col0 FROM tab1 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2293
SELECT ALL + COUNT ( * ) col0 FROM tab1 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2294
SELECT MIN( DISTINCT + 19 ) - - COUNT( * ) AS col2 FROM tab2 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-2294
SELECT MIN ( DISTINCT + 19 ) - - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
22

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2295
SELECT - + 67 + - + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2295
SELECT - + 67 + - + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2296
SELECT - 86 + - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-89

skipif mysql # not compatible
query I rowsort label-2296
SELECT - 86 + - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-2297
SELECT DISTINCT - COUNT( * ) - - 77 FROM tab2
----
74

skipif mysql # not compatible
query I rowsort label-2297
SELECT DISTINCT - COUNT ( * ) - - 77 FROM tab2
----
74

onlyif mysql # DIV for integer division: 
query II rowsort label-2298
SELECT - 58 + + col1 - + + col0 + - + col2 AS col1, 48 + + col1 * - - 55 + 93 + - + col1 + + col2 DIV - col1 FROM tab2
----
-124
3759
-76
2895
-85
4299

skipif mysql # not compatible
query II rowsort label-2298
SELECT - 58 + + col1 - + + col0 + - + col2 AS col1, 48 + + col1 * - - 55 + 93 + - + col1 + + col2 / - col1 FROM tab2
----
-124
3759
-76
2895
-85
4299

query II rowsort
SELECT ALL 30 - - 22 AS col2, - 82 + + col2 + col2 * 66 - + col2 + - - col2 * - + 4 * + 2 AS col0 FROM tab1
----
52
3340
52
3862
52
5486

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2300
SELECT DISTINCT - ( + CAST( col1 AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-2300
SELECT DISTINCT - ( + CAST ( col1 AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-2301
SELECT - - COUNT( * ) AS col0 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2301
SELECT - - COUNT ( * ) AS col0 FROM tab2 cor0
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 63 < - col0 + + col1 * - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2303
SELECT CAST( NULL AS SIGNED ) * - - col2 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2303
SELECT CAST ( NULL AS INTEGER ) * - - col2 AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2304
SELECT - COUNT( * ) FROM tab2 WHERE NOT col0 * 56 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2304
SELECT - COUNT ( * ) FROM tab2 WHERE NOT col0 * 56 IS NOT NULL
----
0

query II rowsort
SELECT DISTINCT col2 AS col1, - col2 FROM tab2
----
23
-23
40
-40
58
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-2306
SELECT + COUNT( ALL 15 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2306
SELECT + COUNT ( ALL 15 ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2307
SELECT ALL + - MIN( ALL - ( 60 ) ) AS col2 FROM tab1 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-2307
SELECT ALL + - MIN ( ALL - ( 60 ) ) AS col2 FROM tab1 AS cor0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-2308
SELECT - + COUNT( - col0 ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2308
SELECT - + COUNT ( - col0 ) FROM tab1 cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col1, col1 AS col1 FROM tab1 AS cor0
----
51
14
85
5
91
47

query I rowsort
SELECT DISTINCT - + 68 AS col1 FROM tab2 AS cor0
----
-68

query I rowsort
SELECT - + 47 FROM tab2 AS cor0
----
-47
-47
-47

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 8 + + + col1 <> - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2313
SELECT ALL + - MIN( - col0 ) * + + 8 + 90 FROM tab0 AS cor0
----
866

skipif mysql # not compatible
query I rowsort label-2313
SELECT ALL + - MIN ( - col0 ) * + + 8 + 90 FROM tab0 AS cor0
----
866

query I rowsort
SELECT ALL col1 AS col0 FROM tab0 AS cor0 WHERE NOT - col2 IS NOT NULL
----

query I rowsort
SELECT + col1 + - + 30 + - 45 FROM tab2 AS cor0
----
-24
-8
2

query I rowsort
SELECT ALL + 36 * 83 + 0 AS col2 FROM tab0 AS cor0
----
2988
2988
2988

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NOT col0 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 91 col0 FROM tab2
----
91
91
91

query I rowsort
SELECT - col2 AS col2 FROM tab1 WHERE NOT col2 * + col2 IS NULL
----
-59
-68
-96

query II rowsort
SELECT DISTINCT + col1 * + col1, + col0 FROM tab1
----
196
51
2209
91
25
85

query I rowsort
SELECT 32 * + col1 * - col1 AS col2 FROM tab0
----
-14112
-209952
-32

query I rowsort
SELECT - ( 39 ) AS col1 FROM tab2
----
-39
-39
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-2323
SELECT + - SUM( ALL + col2 ) AS col2 FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-2323
SELECT + - SUM ( ALL + col2 ) AS col2 FROM tab2 AS cor0
----
-121

query I rowsort
SELECT ALL + 48 + + 1 FROM tab2 AS cor0
----
49
49
49

onlyif mysql # aggregate syntax: 
query I rowsort label-2325
SELECT DISTINCT + MIN( ALL ( - - 92 ) ) FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2325
SELECT DISTINCT + MIN ( ALL ( - - 92 ) ) FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----
NULL

query I rowsort
SELECT - + 58 + + col2 FROM tab1 AS cor0
----
1
10
38

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2327
SELECT DISTINCT - col1 * - col0 + - + col2 + - CAST( NULL AS DECIMAL ) * col0 + + - 53 * - col2 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2327
SELECT DISTINCT - col1 * - col0 + - + col2 + - CAST ( NULL AS REAL ) * col0 + + - 53 * - col2 AS col2 FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT DISTINCT - ( + + col1 ) + - - 44, - 22 AS col2 FROM tab0 AS cor0
----
-37
-22
23
-22
43
-22

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NOT ( NOT 95 IS NOT NULL ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col0 - + - col1 FROM tab1
----
138
65
90

query I rowsort
SELECT col0 FROM tab0 WHERE NULL IS NULL
----
15
87
97

onlyif mysql # DIV for integer division: 
query I rowsort label-2332
SELECT DISTINCT + 43 DIV - col2 + - col2 * - - ( - + ( - col0 ) ) + + col2 DIV - - 1 FROM tab1
----
-4800
-4956
-6120

skipif mysql # not compatible
query I rowsort label-2332
SELECT DISTINCT + 43 / - col2 + - col2 * - - ( - + ( - col0 ) ) + + col2 / - - 1 FROM tab1
----
-4800
-4956
-6120

query I rowsort
SELECT 13 - + col2 FROM tab0
----
-34
-86
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2334
SELECT ALL + COUNT( * ) - - 22 FROM tab0
----
25

skipif mysql # not compatible
query I rowsort label-2334
SELECT ALL + COUNT ( * ) - - 22 FROM tab0
----
25

query I rowsort
SELECT + 60 * + - col1 * col2 AS col0 FROM tab2
----
-184800
-233160
-70380

query II rowsort
SELECT DISTINCT - col2 AS col2, col1 AS col2 FROM tab1
----
-59
5
-68
47
-96
14

onlyif mysql # aggregate syntax: 
query I rowsort label-2337
SELECT DISTINCT + + MAX( ALL + col2 ) - COUNT( * ) FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
96

skipif mysql # not compatible
query I rowsort label-2337
SELECT DISTINCT + + MAX ( ALL + col2 ) - COUNT ( * ) FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
96

query I rowsort
SELECT DISTINCT + 42 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
42

query III rowsort
SELECT ALL * FROM tab2 WHERE + 69 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2340
SELECT - + MIN( DISTINCT - col2 ) AS col2 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-2340
SELECT - + MIN ( DISTINCT - col2 ) AS col2 FROM tab1 AS cor0
----
96

query I rowsort
SELECT DISTINCT 65 AS col2 FROM tab0 AS cor0
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2342
SELECT ALL - COUNT( * ) + + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2342
SELECT ALL - COUNT ( * ) + + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + - 45 FROM tab2 AS cor0
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-2344
SELECT ALL + + COUNT( * ) + + - COUNT( * ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2344
SELECT ALL + + COUNT ( * ) + + - COUNT ( * ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT + col1 * col2 + 47 AS col2 FROM tab1 cor0 WHERE NOT + ( + + 33 ) IS NULL
----
1391
3243
342

query I rowsort
SELECT DISTINCT col2 + - + col1 AS col1 FROM tab1 AS cor0
----
21
54
82

query I rowsort
SELECT + ( ( + col0 ) ) FROM tab2
----
46
64
75

onlyif mysql # DIV for integer division: 
query I rowsort label-2348
SELECT 12 DIV col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2348
SELECT 12 / col0 FROM tab1
----
0
0
0

query I rowsort
SELECT 30 * - - 66 AS col2 FROM tab2
----
1980
1980
1980

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2350
SELECT DISTINCT - CAST( - - col2 AS SIGNED ) FROM tab0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-2350
SELECT DISTINCT - CAST ( - - col2 AS INTEGER ) FROM tab0
----
-10
-47
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2351
SELECT ALL ( + 1 ) * + col0 + col2 + ( - CAST( NULL AS SIGNED ) ) + - - col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2351
SELECT ALL ( + 1 ) * + col0 + col2 + ( - CAST ( NULL AS INTEGER ) ) + - - col0 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 + - - col1 AS col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2353
SELECT ALL - COUNT( * ) * SUM( - 97 ) + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
870

skipif mysql # not compatible
query I rowsort label-2353
SELECT ALL - COUNT ( * ) * SUM ( - 97 ) + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
870

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 - - + 38 col1 FROM tab2 AS cor0
----
-13
-29
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-2355
SELECT - MIN( - 67 ) FROM tab0
----
67

skipif mysql # not compatible
query I rowsort label-2355
SELECT - MIN ( - 67 ) FROM tab0
----
67

query II rowsort
SELECT + col2, col0 FROM tab0
----
10
87
47
15
99
97

query III rowsort
SELECT * FROM tab2 WHERE - col1 / + col2 = col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2358
SELECT DISTINCT COUNT( * ) * - MIN( - col2 ) FROM tab1
----
288

skipif mysql # not compatible
query I rowsort label-2358
SELECT DISTINCT COUNT ( * ) * - MIN ( - col2 ) FROM tab1
----
288

onlyif mysql # aggregate syntax: 
query I rowsort label-2359
SELECT DISTINCT + - COUNT( DISTINCT col1 ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2359
SELECT DISTINCT + - COUNT ( DISTINCT col1 ) AS col0 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2360
SELECT ( COUNT( * ) ) + MAX( DISTINCT + col1 ) DIV 19 FROM tab0 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-2360
SELECT ( COUNT ( * ) ) + MAX ( DISTINCT + col1 ) / 19 FROM tab0 AS cor0
----
7

query I rowsort
SELECT DISTINCT - 27 * - 78 FROM tab2 AS cor0
----
2106

query I rowsort
SELECT ALL col0 + + - 27 AS col0 FROM tab0 AS cor0
----
-12
60
70

query I rowsort
SELECT ALL + + col0 * - - col2 AS col2 FROM tab1 AS cor0
----
4896
5015
6188

query I rowsort
SELECT DISTINCT + 88 + + - col0 AS col0 FROM tab0 AS cor0
----
-9
1
73

onlyif mysql # aggregate syntax: 
query I rowsort label-2365
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE + col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2365
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE + col2 IS NULL
----
0

query I rowsort
SELECT + 29 FROM tab1 AS cor0 WHERE NOT NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2367
SELECT + MIN( 15 ) FROM tab1 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-2367
SELECT + MIN ( 15 ) FROM tab1 AS cor0
----
15

onlyif mysql # aggregate syntax: 
query II rowsort label-2368
SELECT ALL MAX( DISTINCT - ( - col0 ) ) AS col1, - COUNT( * ) AS col0 FROM tab0 AS cor0
----
97
-3

skipif mysql # not compatible
query II rowsort label-2368
SELECT ALL MAX ( DISTINCT - ( - col0 ) ) AS col1, - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
97
-3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) <> - 78 + + + col0 + - col0
----

query I rowsort
SELECT DISTINCT + col0 * + - 62 AS col2 FROM tab2
----
-2852
-3968
-4650

query I rowsort
SELECT ALL - 21 * - col1 FROM tab2
----
1071
1407
1617

query I rowsort
SELECT + 27 + 18 - col1 * - 30 FROM tab0 AS cor0
----
2475
675
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2373
SELECT ALL - col0 * + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2373
SELECT ALL - col0 * + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2374
SELECT + + CAST( NULL AS SIGNED ) * - - CAST( - 77 AS DECIMAL ) * - - 93 - MAX( - col2 ) FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( + col2, col2, 46 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2374
SELECT + + CAST ( NULL AS INTEGER ) * - - CAST ( - 77 AS REAL ) * - - 93 - MAX ( - col2 ) FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( + col2, col2, 46 )
----
NULL

query I rowsort
SELECT ALL + 27 * 65 + + - col0 FROM tab1 AS cor0
----
1664
1670
1704

query I rowsort
SELECT col1 + + - 49 FROM tab0 AS cor0
----
-28
-48
32

query I rowsort
SELECT ALL - + col1 + + col2 AS col1 FROM tab1 cor0
----
21
54
82

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 63 * - col1 / 4 IS NULL
----

query II rowsort
SELECT - col2 + - + 31 + + 29 AS col0, + 93 AS col0 FROM tab0 AS cor0
----
-101
93
-12
93
-49
93

onlyif mysql # aggregate syntax: 
query I rowsort label-2380
SELECT DISTINCT + + MIN( + 12 ) + - - 69 AS col2 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-2380
SELECT DISTINCT + + MIN ( + 12 ) + - - 69 AS col2 FROM tab0 AS cor0
----
81

query II rowsort
SELECT ALL + + 22, + col2 - - + 99 AS col2 FROM tab2 AS cor0
----
22
122
22
139
22
157

onlyif mysql # DIV for integer division: 
query I rowsort label-2382
SELECT col2 DIV + - col2 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2382
SELECT col2 / + - col2 FROM tab2
----
-1
-1
-1

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - ( - col2 ) IS NOT NULL
----

query I rowsort
SELECT - ( + col1 ) * + + col1 + + 95 - col2 * + col2 AS col1 FROM tab0
----
-446
-8675
-9707

onlyif mysql # aggregate syntax: 
query I rowsort label-2385
SELECT + MAX( 72 ) * 56 FROM tab0
----
4032

skipif mysql # not compatible
query I rowsort label-2385
SELECT + MAX ( 72 ) * 56 FROM tab0
----
4032

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2386
SELECT + CAST( NULL AS SIGNED ) * - 38 AS col1, - col2 AS col0 FROM tab1
----
NULL
-59
NULL
-68
NULL
-96

skipif mysql # not compatible
query II rowsort label-2386
SELECT + CAST ( NULL AS INTEGER ) * - 38 AS col1, - col2 AS col0 FROM tab1
----
NULL
-59
NULL
-68
NULL
-96

query I rowsort
SELECT + + col2 FROM tab0 AS cor0 WHERE - 1 IS NULL
----

query I rowsort
SELECT ALL - ( - col2 ) + - col0 * col1 AS col0 FROM tab1 AS cor0
----
-366
-4209
-618

onlyif mysql # aggregate syntax: 
query I rowsort label-2389
SELECT - COUNT( * ) FROM tab2 WHERE - col0 <= + col0 + - col0 / - - ( + + col2 )
----
-3

skipif mysql # not compatible
query I rowsort label-2389
SELECT - COUNT ( * ) FROM tab2 WHERE - col0 <= + col0 + - col0 / - - ( + + col2 )
----
-3

query I rowsort
SELECT ALL col0 + - - ( + - 65 ) AS col0 FROM tab2
----
-1
-19
10

query III rowsort
SELECT ALL * FROM tab1 WHERE + 2 < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2392
SELECT col2 DIV - - col1 + - - col1 * 48 AS col1 FROM tab2
----
2448
3216
3696

skipif mysql # not compatible
query I rowsort label-2392
SELECT col2 / - - col1 + - - col1 * 48 AS col1 FROM tab2
----
2448
3216
3696

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2393
SELECT DISTINCT col2 * col2 FROM tab1 AS cor0 WHERE NOT col2 NOT BETWEEN + CAST( NULL AS SIGNED ) AND 36 * 41
----

skipif mysql # not compatible
query I rowsort label-2393
SELECT DISTINCT col2 * col2 FROM tab1 AS cor0 WHERE NOT col2 NOT BETWEEN + CAST ( NULL AS INTEGER ) AND 36 * 41
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 53 col0 FROM tab0 AS cor0
----
-53
-53
-53

query I rowsort
SELECT ALL col2 * col0 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN - col0 AND ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2396
SELECT DISTINCT - SUM( + + col1 ) AS col0 FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-2396
SELECT DISTINCT - SUM ( + + col1 ) AS col0 FROM tab0 AS cor0
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-2397
SELECT COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT 13 + - col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2397
SELECT COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT 13 + - col2 IS NOT NULL
----
0

query I rowsort
SELECT ALL - col1 FROM tab0 AS cor0 WHERE NOT 70 - col1 >= + 70 + + 76
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-2399
SELECT - ( - MAX( ALL ( - col0 ) ) ) AS col2 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-2399
SELECT - ( - MAX ( ALL ( - col0 ) ) ) AS col2 FROM tab2 AS cor0
----
-46

query I rowsort
SELECT ( + col2 ) * 15 AS col1 FROM tab1
----
1020
1440
885

query I rowsort
SELECT DISTINCT 16 * + 65 FROM tab0
----
1040

query I rowsort
SELECT ALL + - ( - - col2 ) / - ( + col2 ) FROM tab0 WHERE - - col1 - + + col0 <= NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 >= - + col1
----

query II rowsort
SELECT col2, col2 * - col1 + + col1 AS col1 FROM tab1
----
59
-290
68
-3149
96
-1330

query I rowsort
SELECT ALL 80 * col0 AS col1 FROM tab1
----
4080
6800
7280

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE col1 = NULL
----

query I rowsort
SELECT ALL - - 19 * 44 FROM tab0 cor0
----
836
836
836

query I rowsort
SELECT DISTINCT + col1 FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
14
47
5

query II rowsort
SELECT DISTINCT - col0 AS col2, + col2 * - col0 * + col1 AS col2 FROM tab0 AS cor0
----
-15
-57105
-87
-18270
-97
-9603

query III rowsort
SELECT * FROM tab2 WHERE NOT 84 + - col2 * + - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( 62 ) + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 22 + + col2 IS NULL
----

query I rowsort
SELECT ALL + 58 * - + col2 + + col1 + + ( + 17 ) - + - col1 AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL ( - 67 ) AS col2 FROM tab1 AS cor0 WHERE 26 IN ( col1, col0 + 67, - col2 + - + 28, - - 92, 37 * col0, col0 )
----

query I rowsort
SELECT DISTINCT + col1 + + - 81 FROM tab0
----
-60
-80
0

query II rowsort
SELECT + 34 + col0 * 97 AS col0, - 36 + - 74 AS col0 FROM tab1
----
4981
-110
8279
-110
8861
-110

query I rowsort
SELECT 12 + - ( 19 ) + - 2 - + col1 * col1 FROM tab0
----
-10
-450
-6570

onlyif mysql # aggregate syntax: 
query I rowsort label-2418
SELECT - 52 + COUNT( * ) FROM tab1
----
-49

skipif mysql # not compatible
query I rowsort label-2418
SELECT - 52 + COUNT ( * ) FROM tab1
----
-49

query III rowsort
SELECT * FROM tab2 WHERE - - 78 > - col1 * col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col1 + - - 26 FROM tab1
----
-21
12
21

query III rowsort
SELECT * FROM tab2 WHERE - col1 * - + col0 + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2422
SELECT DISTINCT - CAST( NULL AS DECIMAL ), 59 + - col1 AS col2 FROM tab0
----
NULL
-22
NULL
38
NULL
58

skipif mysql # not compatible
query II rowsort label-2422
SELECT DISTINCT - CAST ( NULL AS REAL ), 59 + - col1 AS col2 FROM tab0
----
NULL
-22
NULL
38
NULL
58

query I rowsort
SELECT ALL - + col0 + + col0 FROM tab2 WHERE NOT + - col0 IS NOT NULL
----

query II rowsort
SELECT ALL col1, - col2 * - col1 FROM tab0
----
1
99
21
210
81
3807

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col1 * - + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2426
SELECT DISTINCT + COUNT( * ) AS col2, COUNT( * ) AS col0 FROM tab0 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-2426
SELECT DISTINCT + COUNT ( * ) AS col2, COUNT ( * ) AS col0 FROM tab0 AS cor0
----
3
3

query I rowsort
SELECT - col1 - 22 AS col1 FROM tab1 WHERE 8 - ( ( col1 ) ) <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 col2 FROM tab1 WHERE NOT col2 NOT BETWEEN col2 AND ( col0 + col0 / - 35 )
----
-85
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2429
SELECT 44 FROM tab0 WHERE NOT 60 * CAST( - 83 AS SIGNED ) BETWEEN NULL AND ( col2 )
----

skipif mysql # not compatible
query I rowsort label-2429
SELECT 44 FROM tab0 WHERE NOT 60 * CAST ( - 83 AS INTEGER ) BETWEEN NULL AND ( col2 )
----

query I rowsort
SELECT - col1 FROM tab1 WHERE + 39 BETWEEN ( + col1 ) AND ( + col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2431
SELECT 33 DIV col2 FROM tab0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-2431
SELECT 33 / col2 FROM tab0
----
0
0
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2432
SELECT ALL 66 * - COUNT( * ) - 76 AS col0 FROM tab0
----
-274

skipif mysql # not compatible
query I rowsort label-2432
SELECT ALL 66 * - COUNT ( * ) - 76 AS col0 FROM tab0
----
-274

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2433
SELECT 39 DIV - MIN( DISTINCT col1 * col1 ) col0 FROM tab1
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2433
SELECT 39 / - MIN ( DISTINCT col1 * col1 ) col0 FROM tab1
----
-1

query I rowsort
SELECT 45 - + 84 AS col2 FROM tab0
----
-39
-39
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-2435
SELECT DISTINCT + 1 * + COUNT( * ) + 2 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-2435
SELECT DISTINCT + 1 * + COUNT ( * ) + 2 FROM tab1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2436
SELECT + SUM( - col2 ) AS col0 FROM tab0 WHERE NOT + col0 NOT IN ( col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2436
SELECT + SUM ( - col2 ) AS col0 FROM tab0 WHERE NOT + col0 NOT IN ( col1 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2437
SELECT - MAX( + 90 ) FROM tab1 WHERE ( NULL ) IS NULL
----
-90

skipif mysql # not compatible
query I rowsort label-2437
SELECT - MAX ( + 90 ) FROM tab1 WHERE ( NULL ) IS NULL
----
-90

query I rowsort
SELECT + col1 + col1 FROM tab2 WHERE col1 IN ( col1 + ( + col2 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2439
SELECT CAST( + col2 AS SIGNED ) * col1 AS col2 FROM tab0 WHERE ( + 91 + + 65 * col1 ) IN ( 89 )
----

skipif mysql # not compatible
query I rowsort label-2439
SELECT CAST ( + col2 AS INTEGER ) * col1 AS col2 FROM tab0 WHERE ( + 91 + + 65 * col1 ) IN ( 89 )
----

query I rowsort
SELECT - ( 69 ) AS col1 FROM tab2
----
-69
-69
-69

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 99 + col2 BETWEEN + col0 AND - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 55 col0 FROM tab1
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-2443
SELECT DISTINCT - MAX( col0 ) FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-2443
SELECT DISTINCT - MAX ( col0 ) FROM tab1
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-2444
SELECT + COUNT( col0 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2444
SELECT + COUNT ( col0 ) AS col2 FROM tab2
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col2 - - 97 * + col2 NOT IN ( col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2446
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab0 WHERE NOT ( 73 * CAST( col0 AS SIGNED ) ) IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2446
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab0 WHERE NOT ( 73 * CAST ( col0 AS INTEGER ) ) IS NULL
----
-3

query I rowsort
SELECT - col1 * 89 + - 97 AS col2 FROM tab0
----
-186
-1966
-7306

query I rowsort
SELECT DISTINCT + col1 + col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
141
142
97

query I rowsort
SELECT + col1 FROM tab1 WHERE - col0 / col2 >= - col2
----
14
47
5

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( col0 ) BETWEEN ( col0 ) AND + 40
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 / - col1 > NULL
----

query I rowsort
SELECT DISTINCT col1 - 86 FROM tab2
----
-19
-35
-9

query I rowsort
SELECT ( - 36 ) + 88 FROM tab2
----
52
52
52

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE col0 + + ( ( - 98 ) ) < col1 + - 16 * col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2455
SELECT - SUM( - col2 ) FROM tab2 cor0
----
121

skipif mysql # not compatible
query I rowsort label-2455
SELECT - SUM ( - col2 ) FROM tab2 cor0
----
121

query I rowsort
SELECT ALL + 42 FROM tab0 AS cor0 WHERE col2 * + col0 IS NOT NULL
----
42
42
42

query I rowsort
SELECT ( col1 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2458
SELECT DISTINCT - CAST( NULL AS DECIMAL ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2458
SELECT DISTINCT - CAST ( NULL AS REAL ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2459
SELECT + col0 * CAST( + col1 * CAST( - col2 * CAST( - 73 AS SIGNED ) AS SIGNED ) AS SIGNED ) + + col0 * col2 AS col2 FROM tab1 WHERE NULL BETWEEN + 18 AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-2459
SELECT + col0 * CAST ( + col1 * CAST ( - col2 * CAST ( - 73 AS INTEGER ) AS INTEGER ) AS INTEGER ) + + col0 * col2 AS col2 FROM tab1 WHERE NULL BETWEEN + 18 AND ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL >= col2 + + col2 * col2
----

query I rowsort
SELECT col2 * - col2 + + col0 AS col2 FROM tab2
----
-1536
-3289
-483

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2462
SELECT ALL + ( + CAST( col1 AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-2462
SELECT ALL + ( + CAST ( col1 AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
1
21
81

onlyif mysql # DIV for integer division: 
query I rowsort label-2463
SELECT col1 DIV - col2 + col2 FROM tab1 cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-2463
SELECT col1 / - col2 + col2 FROM tab1 cor0
----
59
68
96

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab0 AS cor0 WHERE - col0 * + 40 + 53 NOT BETWEEN ( NULL ) AND ( NULL )
----

query I rowsort
SELECT ALL + + 17 + col1 AS col1 FROM tab0 AS cor0
----
18
38
98

query I rowsort
SELECT ALL - + 70 + 88 * - col0 AS col1 FROM tab2 AS cor0
----
-4118
-5702
-6670

query III rowsort
SELECT ALL * FROM tab0 WHERE col1 IN ( - col1 / + 32 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 17 + col0 * + 9 col1 FROM tab0
----
152
800
890

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2469
SELECT - col0 FROM tab2 WHERE col2 IN ( col0 * CAST( - col2 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-2469
SELECT - col0 FROM tab2 WHERE col2 IN ( col0 * CAST ( - col2 AS INTEGER ) )
----

query III rowsort
SELECT * FROM tab2 WHERE col1 IN ( - col2 + - 50 )
----

query I rowsort
SELECT col1 * + 88 * - col1 AS col2 FROM tab0
----
-38808
-577368
-88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2472
SELECT + 2 DIV - + COUNT( * ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2472
SELECT + 2 / - + COUNT ( * ) AS col0 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2473
SELECT ALL COUNT( * ) - - + 68 * SUM( DISTINCT col2 ) AS col0 FROM tab1
----
15167

skipif mysql # not compatible
query I rowsort label-2473
SELECT ALL COUNT ( * ) - - + 68 * SUM ( DISTINCT col2 ) AS col0 FROM tab1
----
15167

onlyif mysql # aggregate syntax: 
query I rowsort label-2474
SELECT + 21 * COUNT( * ) - 90 AS col2 FROM tab2
----
-27

skipif mysql # not compatible
query I rowsort label-2474
SELECT + 21 * COUNT ( * ) - 90 AS col2 FROM tab2
----
-27

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2475
SELECT + CAST( - + col2 AS SIGNED ) + - col1 DIV - col2 AS col1 FROM tab2 cor0
----
-21
-39
-57

skipif mysql # not compatible
query I rowsort label-2475
SELECT + CAST ( - + col2 AS INTEGER ) + - col1 / - col2 AS col1 FROM tab2 cor0
----
-21
-39
-57

query I rowsort
SELECT ALL - - col2 * 56 + col2 FROM tab1 AS cor0
----
3363
3876
5472

query I rowsort
SELECT DISTINCT 49 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-2478
SELECT COUNT( * ) * + MAX( ALL + 50 ) AS col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2478
SELECT COUNT ( * ) * + MAX ( ALL + 50 ) AS col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2479
SELECT MIN( ALL + 85 ) FROM tab2 WHERE NOT - col2 BETWEEN NULL AND ( col0 * - 64 )
----
85

skipif mysql # not compatible
query I rowsort label-2479
SELECT MIN ( ALL + 85 ) FROM tab2 WHERE NOT - col2 BETWEEN NULL AND ( col0 * - 64 )
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-2480
SELECT ALL - - MIN( DISTINCT + - ( - 32 ) ) AS col0 FROM tab1 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-2480
SELECT ALL - - MIN ( DISTINCT + - ( - 32 ) ) AS col0 FROM tab1 AS cor0
----
32

query I rowsort
SELECT + col0 FROM tab0 AS cor0 WHERE NOT ( + col2 ) > ( col1 )
----
15
87

onlyif mysql # aggregate syntax: 
query I rowsort label-2482
SELECT - + MAX( - 65 ) AS col0 FROM tab0 cor0
----
65

skipif mysql # not compatible
query I rowsort label-2482
SELECT - + MAX ( - 65 ) AS col0 FROM tab0 cor0
----
65

query I rowsort
SELECT ( - 59 ) FROM tab0 AS cor0 WHERE NOT ( col0 * col1 ) < col0 + col0
----
-59
-59

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( + col1 ) NOT IN ( 29 * + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2485
SELECT - MIN( ALL + 11 ) * ( + COUNT( * ) ) AS col2 FROM tab0 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-2485
SELECT - MIN ( ALL + 11 ) * ( + COUNT ( * ) ) AS col2 FROM tab0 AS cor0
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-2486
SELECT DISTINCT COUNT( * ) AS col1 FROM tab1 cor0 WHERE NOT - 3 NOT IN ( - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-2486
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab1 cor0 WHERE NOT - 3 NOT IN ( - col2 )
----
0

query I rowsort
SELECT - 55 * col0 FROM tab2
----
-2530
-3520
-4125

query I rowsort
SELECT 72 * + 65 * col0 FROM tab0
----
407160
453960
70200

query I rowsort
SELECT + ( + col1 ) + + col1 AS col1 FROM tab0 WHERE NOT - 43 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL BETWEEN + col2 AND col2 / col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2491
SELECT ( MAX( + col2 ) ) * CAST( 6 AS SIGNED ) FROM tab1
----
576

skipif mysql # not compatible
query I rowsort label-2491
SELECT ( MAX ( + col2 ) ) * CAST ( 6 AS INTEGER ) FROM tab1
----
576

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2492
SELECT CAST( NULL AS SIGNED ) / - - col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2492
SELECT CAST ( NULL AS INTEGER ) / - - col1 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - + col1 col1 FROM tab2
----
2346
4928
5025

query I rowsort
SELECT 43 + - col2 AS col1 FROM tab2 WHERE NOT ( + col0 ) IS NULL
----
-15
20
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2495
SELECT ALL * FROM tab0 WHERE - col1 BETWEEN + - col2 * CAST( NULL AS SIGNED ) AND ( col0 )
----

skipif mysql # not compatible
query III rowsort label-2495
SELECT ALL * FROM tab0 WHERE - col1 BETWEEN + - col2 * CAST ( NULL AS INTEGER ) AND ( col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2496
SELECT DISTINCT + MIN( DISTINCT CAST( + 29 AS SIGNED ) ) + - COUNT( * ) * + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND ( + col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2496
SELECT DISTINCT + MIN ( DISTINCT CAST ( + 29 AS INTEGER ) ) + - COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND ( + col0 )
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 * + 6 * + 1 = - col2 * col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 + col2 >= - 55
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2499
SELECT + 20 + + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2499
SELECT + 20 + + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - ( - + ( 70 ) ) col2 FROM tab2 AS cor0
----
116
134
145

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2501
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NOT 16 * col2 + col0 NOT IN ( CAST( - 47 AS SIGNED ) * col0 + 56 ) )
----

skipif mysql # not compatible
query III rowsort label-2501
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NOT 16 * col2 + col0 NOT IN ( CAST ( - 47 AS INTEGER ) * col0 + 56 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2502
SELECT - col2 + ( - col0 ) DIV + col2 AS col1 FROM tab1 AS cor0
----
-60
-69
-96

skipif mysql # not compatible
query I rowsort label-2502
SELECT - col2 + ( - col0 ) / + col2 AS col1 FROM tab1 AS cor0
----
-60
-69
-96

query I rowsort
SELECT - 40 + - - 78 AS col0 FROM tab1
----
38
38
38

query I rowsort
SELECT 41 + - col1 AS col1 FROM tab2
----
-10
-26
-36

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 30 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2506
SELECT COUNT( * ) - - - 30 FROM tab2 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-2506
SELECT COUNT ( * ) - - - 30 FROM tab2 AS cor0
----
-27

query I rowsort
SELECT + 71 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) = NULL
----

query I rowsort
SELECT ALL col2 * + 28 - + col2 + - col0 FROM tab1 AS cor0
----
1508
1745
2541

onlyif mysql # aggregate syntax: 
query I rowsort label-2509
SELECT COUNT( - - col0 ) * - 97 + - MIN( - col0 ) FROM tab2 AS cor0
----
-216

skipif mysql # not compatible
query I rowsort label-2509
SELECT COUNT ( - - col0 ) * - 97 + - MIN ( - col0 ) FROM tab2 AS cor0
----
-216

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2510
SELECT DISTINCT - CAST( - - COUNT( * ) AS SIGNED ) * COUNT( * ) + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2510
SELECT DISTINCT - CAST ( - - COUNT ( * ) AS INTEGER ) * COUNT ( * ) + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + + col1 + + - 34 AS col1 FROM tab2 AS cor0
----
17
33
43

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( ( ( NULL ) IS NOT NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2513
SELECT 27 + + MIN( - col1 ) + - - MIN( - - col2 ) FROM tab0
----
-44

skipif mysql # not compatible
query I rowsort label-2513
SELECT 27 + + MIN ( - col1 ) + - - MIN ( - - col2 ) FROM tab0
----
-44

query II rowsort
SELECT ALL + 68, + 4 + col0 AS col0 FROM tab0
----
68
101
68
19
68
91

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col0 + + 46 IS NULL
----

query I rowsort
SELECT DISTINCT + 93 - - - col2 + 19 FROM tab0
----
102
13
65

query I rowsort
SELECT DISTINCT - col1 FROM tab1 WHERE NOT + col2 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 * + - col0 col2, + ( - col2 ) AS col2 FROM tab0 cor0
----
-1215
-47
-1827
-10
-97
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2519
SELECT - SUM( ALL + col0 ) * - - SUM( - - ( - col0 ) ) * + 69 + 25 * 9 FROM tab1 AS cor0
----
3555726

skipif mysql # not compatible
query I rowsort label-2519
SELECT - SUM ( ALL + col0 ) * - - SUM ( - - ( - col0 ) ) * + 69 + 25 * 9 FROM tab1 AS cor0
----
3555726

query IIIIII rowsort
SELECT * FROM ( tab0 cor0 CROSS JOIN tab0 cor1 ) WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL <> - 82 / col1 * - col0 * col2 - - - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 72 col0 FROM tab0
----
72
72
72

onlyif mysql # aggregate syntax: 
query I rowsort label-2523
SELECT DISTINCT MAX( DISTINCT + 15 ) AS col2 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-2523
SELECT DISTINCT MAX ( DISTINCT + 15 ) AS col2 FROM tab0
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2524
SELECT ALL - col0 * + col1 - - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE col0 + 78 + + 76 * - + col1 = + ( + col1 ) / + 87
----

skipif mysql # not compatible
query I rowsort label-2524
SELECT ALL - col0 * + col1 - - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE col0 + 78 + + 76 * - + col1 = + ( + col1 ) / + 87
----

query I rowsort
SELECT 41 * - + 28 FROM tab2 AS cor0
----
-1148
-1148
-1148

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2526
SELECT DISTINCT - MIN( + col1 ) DIV ( + - COUNT( * ) ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2526
SELECT DISTINCT - MIN ( + col1 ) / ( + - COUNT ( * ) ) FROM tab0 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2527
SELECT ALL ( col2 ) DIV + + 69 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2527
SELECT ALL ( col2 ) / + + 69 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1, col1 col0 FROM tab1
----
-14
14
-47
47
-5
5

query I rowsort
SELECT col0 AS col0 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab2 WHERE NOT + col2 IS NULL
----
51
67
77

query I rowsort
SELECT + 72 * + 30 AS col2 FROM tab0
----
2160
2160
2160

query II rowsort
SELECT + col0 AS col2, - 45 AS col0 FROM tab2
----
46
-45
64
-45
75
-45

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( + col0 ) AND ( col0 )
----

query I rowsort
SELECT ALL - col1 + - 22 + - 91 AS col2 FROM tab2 AS cor0
----
-164
-180
-190

onlyif mysql # aggregate syntax: 
query I rowsort label-2535
SELECT COUNT( col0 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2535
SELECT COUNT ( col0 ) AS col1 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2536
SELECT DISTINCT - CAST( + col0 AS SIGNED ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-2536
SELECT DISTINCT - CAST ( + col0 AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( NULL )
----

query II rowsort
SELECT ALL + 99, col1 FROM tab0 AS cor0
----
99
1
99
21
99
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2538
SELECT + - CAST( NULL AS SIGNED ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2538
SELECT + - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE col1 + + col2 < NULL
----

query I rowsort
SELECT ALL 37 + 91 AS col1 FROM tab2
----
128
128
128

query I rowsort
SELECT - col0 + - 33 + + 51 AS col0 FROM tab2
----
-28
-46
-57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 67 / col0 * - col0 + + col0 col1 FROM tab0 WHERE - col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2544
SELECT + 5 DIV - + col0 + ( - 81 ) FROM tab2
----
-81
-81
-81

skipif mysql # not compatible
query I rowsort label-2544
SELECT + 5 / - + col0 + ( - 81 ) FROM tab2
----
-81
-81
-81

query I rowsort
SELECT DISTINCT + 91 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
91

query I rowsort
SELECT col2 + col1 * col0 AS col2 FROM tab1
----
4345
484
810

query I rowsort
SELECT + 53 + + col2 + col0 FROM tab0 AS cor0
----
115
150
249

query II rowsort
SELECT DISTINCT + + 31, 97 - + + ( - col0 ) * - col1 + + - col0 AS col2 FROM tab1 AS cor0 WHERE NOT NULL > - 94 + - + 39
----

query I rowsort
SELECT DISTINCT - + 29 AS col2 FROM tab0 AS cor0
----
-29

query I rowsort
SELECT DISTINCT - 20 + + - col2 FROM tab2 cor0
----
-43
-60
-78

query I rowsort
SELECT ALL + - col0 + - col0 + - col0 * + + col1 * + col0 FROM tab2 AS cor0
----
-108008
-315520
-377025

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( + col2 + + - col1 + - + col1, + col1, + 28 )
----

query II rowsort
SELECT DISTINCT 23 * 64 + col2 + - + col2 AS col2, + col0 + + 66 * - 99 AS col0 FROM tab1 cor0
----
1472
-6443
1472
-6449
1472
-6483

onlyif mysql # aggregate syntax: 
query I rowsort label-2554
SELECT DISTINCT + + 1 * - - COUNT( * ) - - 8 FROM tab0 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-2554
SELECT DISTINCT + + 1 * - - COUNT ( * ) - - 8 FROM tab0 AS cor0
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2555
SELECT - CAST( - COUNT( * ) AS SIGNED ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2555
SELECT - CAST ( - COUNT ( * ) AS INTEGER ) AS col0 FROM tab2
----
3

query I rowsort
SELECT + 76 - + col0 FROM tab1
----
-15
-9
25

query I rowsort
SELECT DISTINCT col1 - + + col2 AS col1 FROM tab0
----
-98
11
34

query I rowsort
SELECT col0 * + col1 - - col2 AS col0 FROM tab2
----
2369
4968
5083

onlyif mysql # aggregate syntax: 
query I rowsort label-2559
SELECT DISTINCT - ( - COUNT( * ) ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NOT NULL IS NULL )
----
3

skipif mysql # not compatible
query I rowsort label-2559
SELECT DISTINCT - ( - COUNT ( * ) ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NOT NULL IS NULL )
----
3

query I rowsort
SELECT + col0 AS col1 FROM tab0 AS cor0 WHERE NOT col0 * col0 + - - 82 * + - 98 IS NULL
----
15
87
97

onlyif mysql # DIV for integer division: 
query I rowsort label-2561
SELECT 52 DIV + - col2 * + 86 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2561
SELECT 52 / + - col2 * + 86 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0, - 80 col2 FROM tab0
----
15
-80
87
-80
97
-80

query II rowsort
SELECT DISTINCT 83, 82 AS col0 FROM tab1
----
83
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2564
SELECT DISTINCT + - COUNT( DISTINCT + + col1 ) * + - CAST( NULL AS SIGNED ) / + + ( + 97 ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2564
SELECT DISTINCT + - COUNT ( DISTINCT + + col1 ) * + - CAST ( NULL AS INTEGER ) / + + ( + 97 ) AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2565
SELECT ALL COUNT( DISTINCT col0 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2565
SELECT ALL COUNT ( DISTINCT col0 ) AS col0 FROM tab2 AS cor0
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL IS NOT NULL AND - 66 + + col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( NULL ) > - 6
----

query II rowsort
SELECT DISTINCT - col0 * + - col2 AS col0, + 94 FROM tab0 AS cor0
----
705
94
870
94
9603
94

onlyif mysql # DIV for integer division: 
query I rowsort label-2569
SELECT ALL + col0 DIV + - col2 + + 94 AS col2 FROM tab2 AS cor0
----
92
93
93

skipif mysql # not compatible
query I rowsort label-2569
SELECT ALL + col0 / + - col2 + + 94 AS col2 FROM tab2 AS cor0
----
92
93
93

onlyif mysql # aggregate syntax: 
query I rowsort label-2570
SELECT COUNT( - - col1 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2570
SELECT COUNT ( - - col1 ) AS col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT col2 - + col0 FROM tab2 cor0 WHERE NOT + col1 / - + col0 IS NULL
----
-17
-23
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-2572
SELECT ALL - MIN( DISTINCT - 77 ) AS col1 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-2572
SELECT ALL - MIN ( DISTINCT - 77 ) AS col1 FROM tab2 AS cor0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2573
SELECT DISTINCT 60 + - + COUNT( * ) AS col2 FROM tab0
----
57

skipif mysql # not compatible
query I rowsort label-2573
SELECT DISTINCT 60 + - + COUNT ( * ) AS col2 FROM tab0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-2574
SELECT ALL - ( - + COUNT( * ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2574
SELECT ALL - ( - + COUNT ( * ) ) FROM tab2
----
3

query II rowsort
SELECT ALL 62 * + 72 AS col0, col0 FROM tab0
----
4464
15
4464
87
4464
97

query I rowsort
SELECT - col0 * + 90 AS col0 FROM tab0
----
-1350
-7830
-8730

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2577
SELECT ALL ( - SUM( DISTINCT + 91 ) ) DIV 45 AS col1 FROM tab2
----
-2

skipif mysql # not compatible
query I rowsort label-2577
SELECT ALL ( - SUM ( DISTINCT + 91 ) ) / 45 AS col1 FROM tab2
----
-2

query I rowsort
SELECT col0 + + - col1 FROM tab0 AS cor0
----
-66
66
96

onlyif mysql # DIV for integer division: 
query I rowsort label-2579
SELECT ALL col0 * + col1 - + 59 DIV col2 + + + col2 + + 85 * + + col2 AS col1 FROM tab0 AS cor0
----
2682
5256
8611

skipif mysql # not compatible
query I rowsort label-2579
SELECT ALL col0 * + col1 - + 59 / col2 + + + col2 + + 85 * + + col2 AS col1 FROM tab0 AS cor0
----
2682
5256
8611

query I rowsort
SELECT - + col1 * col1 + - + col1 + + + ( - col1 ) AS col1 FROM tab1 AS cor0
----
-224
-2303
-35

query I rowsort
SELECT 42 * - col0 + + 42 - - + col2 * + 47 AS col1 FROM tab2 AS cor0
----
-382
-766
-809

onlyif mysql # aggregate syntax: 
query I rowsort label-2582
SELECT DISTINCT + + MAX( - 70 ) FROM tab2 AS cor0
----
-70

skipif mysql # not compatible
query I rowsort label-2582
SELECT DISTINCT + + MAX ( - 70 ) FROM tab2 AS cor0
----
-70

query I rowsort
SELECT 9 - col1 FROM tab0 AS cor0
----
-12
-72
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2584
SELECT - - CAST( + COUNT( * ) AS SIGNED ) AS col1 FROM tab1 AS cor0 WHERE - 30 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2584
SELECT - - CAST ( + COUNT ( * ) AS INTEGER ) AS col1 FROM tab1 AS cor0 WHERE - 30 IS NULL
----
0

query I rowsort
SELECT - ( + col0 ) FROM tab2 cor0 WHERE ( + col1 * + col2 IS NULL )
----

query I rowsort
SELECT + 34 * col0 * + col2 * + + 46 * - + 37 + col1 * col1 + - 28 AS col1 FROM tab2 AS cor0
----
-148136179
-251721339
-61221771

query I rowsort
SELECT 45 + + + 8 FROM tab1 AS cor0
----
53
53
53

query I rowsort
SELECT + ( + 81 ) + + + col1 AS col2 FROM tab2 AS cor0
----
132
148
158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 + + 29 * - col2 + - col0 col1, col2 FROM tab2 AS cor0
----
-1147
40
-1690
58
-662
23

onlyif mysql # aggregate syntax: 
query I rowsort label-2590
SELECT - - COUNT( * ) + + 79 * + COUNT( * ) FROM tab0 AS cor0
----
240

skipif mysql # not compatible
query I rowsort label-2590
SELECT - - COUNT ( * ) + + 79 * + COUNT ( * ) FROM tab0 AS cor0
----
240

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col1 IN ( ( col0 ) * + ( - 87 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - - col1 * col2 * + col1 AS col1 FROM tab0 WHERE NULL <= + col1
----

query I rowsort
SELECT ALL - AVG ( ALL col1 ) AS col1 FROM tab1 WHERE - + 6 = - + 70
----
NULL

query I rowsort
SELECT 35 + - + col1 * - col1 FROM tab0
----
36
476
6596

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2595
SELECT + + col2, CAST( NULL AS SIGNED ) FROM tab2 WHERE NOT NULL >= + + 54
----

skipif mysql # not compatible
query II rowsort label-2595
SELECT + + col2, CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT NULL >= + + 54
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2596
SELECT DISTINCT CAST( - - SUM( - col0 ) AS SIGNED ) * - MAX( - col2 ) AS col1 FROM tab1
----
-13393

skipif mysql # not compatible
query I rowsort label-2596
SELECT DISTINCT CAST ( - - SUM ( - col0 ) AS INTEGER ) * - MAX ( - col2 ) AS col1 FROM tab1
----
-13393

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2597
SELECT ALL COUNT( * ) * CAST( + - COUNT( * ) AS SIGNED ) - + SUM( + 90 ) FROM tab1 WHERE col1 <> - 65
----
-279

skipif mysql # not compatible
query I rowsort label-2597
SELECT ALL COUNT ( * ) * CAST ( + - COUNT ( * ) AS INTEGER ) - + SUM ( + 90 ) FROM tab1 WHERE col1 <> - 65
----
-279

onlyif mysql # aggregate syntax: 
query II rowsort label-2598
SELECT - 0 AS col2, ( COUNT( * ) ) AS col2 FROM tab2 WHERE NOT + 78 IS NULL
----
0
3

skipif mysql # not compatible
query II rowsort label-2598
SELECT - 0 AS col2, ( COUNT ( * ) ) AS col2 FROM tab2 WHERE NOT + 78 IS NULL
----
0
3

query II rowsort
SELECT DISTINCT col0 * - col2 AS col1, 53 FROM tab1
----
-4896
53
-5015
53
-6188
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2600
SELECT + col0 * CAST( + col2 AS SIGNED ) + col1 * 20 AS col2 FROM tab0 AS cor0 WHERE NOT - 94 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2600
SELECT + col0 * CAST ( + col2 AS INTEGER ) + col1 * 20 AS col2 FROM tab0 AS cor0 WHERE NOT - 94 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2601
SELECT ALL + ( - MIN( - + 33 ) ) FROM tab0 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-2601
SELECT ALL + ( - MIN ( - + 33 ) ) FROM tab0 AS cor0
----
33

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 20 IN ( - + col2 / + 37, col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-2603
SELECT DISTINCT 39 DIV col2 FROM tab0
----
0
3

skipif mysql # not compatible
query I rowsort label-2603
SELECT DISTINCT 39 / col2 FROM tab0
----
0
3

query IIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

query III rowsort
SELECT * FROM tab1 WHERE NOT - 54 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 73 col2 FROM tab0 AS cor0
----
-73
-73
-73

query I rowsort
SELECT ALL + 98 * + col1 FROM tab2 AS cor0
----
4998
6566
7546

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2608
SELECT DISTINCT CAST( - 37 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-37

skipif mysql # not compatible
query I rowsort label-2608
SELECT DISTINCT CAST ( - 37 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-37

query I rowsort
SELECT + - 79 + + + col2 * + + col1 - 42 FROM tab0 AS cor0
----
-22
3686
89

query I rowsort
SELECT ALL col2 + ( + 29 ) FROM tab0 AS cor0
----
128
39
76

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( 97 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2612
SELECT DISTINCT - col2 DIV 49 AS col1, - 87 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-1
-87
0
-87

skipif mysql # not compatible
query II rowsort label-2612
SELECT DISTINCT - col2 / 49 AS col1, - 87 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-1
-87
0
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2613
SELECT 26 + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2613
SELECT 26 + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 + + col1 AS col1 FROM tab0 WHERE NOT - 97 <> NULL
----

query I rowsort
SELECT ALL + 77 * - - 71 * + 97 AS col1 FROM tab2
----
530299
530299
530299

query I rowsort
SELECT DISTINCT - col1 * - ( + 88 ) AS col2 FROM tab1
----
1232
4136
440

query I rowsort
SELECT ALL + + 58 FROM tab1 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT ALL col1 * + col1, col0 AS col0 FROM tab2
----
2601
46
4489
75
5929
64

query III rowsort
SELECT * FROM tab1 WHERE - - 28 * col1 + + ( - - 7 ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2620
SELECT DISTINCT + MAX( + col2 ) * - 1 FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-2620
SELECT DISTINCT + MAX ( + col2 ) * - 1 FROM tab1
----
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2621
SELECT - 25 DIV + + COUNT( * ) FROM tab2
----
-8

skipif mysql # not compatible
query I rowsort label-2621
SELECT - 25 / + + COUNT ( * ) FROM tab2
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-2622
SELECT COUNT( + + col0 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2622
SELECT COUNT ( + + col0 ) AS col1 FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2623
SELECT DISTINCT - - col1 col0, CAST( NULL AS SIGNED ) col2 FROM tab0 AS cor0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2623
SELECT DISTINCT - - col1 col0, CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0
----
1
NULL
21
NULL
81
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2624
SELECT DISTINCT + COUNT( ALL + - 89 ) AS col1 FROM tab0 AS cor0 WHERE NOT ( ( NULL > + CAST( 12 AS SIGNED ) + + col2 ) )
----
0

skipif mysql # not compatible
query I rowsort label-2624
SELECT DISTINCT + COUNT ( ALL + - 89 ) AS col1 FROM tab0 AS cor0 WHERE NOT ( ( NULL > + CAST ( 12 AS INTEGER ) + + col2 ) )
----
0

query I rowsort
SELECT + + col1 + - 98 + - - ( + 50 ) * - col0 AS col2 FROM tab2 AS cor0 WHERE ( NOT ( NOT col1 - + + col2 IS NULL ) )
----

query I rowsort
SELECT ALL + col2 + + + 27 * + col1 * + col1 AS col0 FROM tab0 AS cor0
----
11917
126
177194

query I rowsort
SELECT ALL col1 * col2 + + 87 FROM tab2 cor0
----
1260
3167
3973

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND col1
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 + - 16 + col1 * - 68 NOT BETWEEN - col1 AND 62
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 7 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ba940cd66e21e94e95aada5f28e1faf5

onlyif mysql # aggregate syntax: 
query I rowsort label-2631
SELECT + 93 * MAX( ALL col2 ) col0 FROM tab1 AS cor0
----
8928

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2631
SELECT + 93 * MAX ( ALL col2 ) col0 FROM tab1 AS cor0
----
8928

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col0 FROM tab1 AS cor0 WHERE col2 * - col1 IS NOT NULL
----
59
68
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2633
SELECT + COUNT( - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2633
SELECT + COUNT ( - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2634
SELECT ALL ( - MAX( ALL - + col2 ) ) FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-2634
SELECT ALL ( - MAX ( ALL - + col2 ) ) FROM tab2
----
23

query I rowsort
SELECT ( - 92 ) FROM tab0
----
-92
-92
-92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col2, col1 FROM tab2
----
23
51
40
77
58
67

onlyif mysql # aggregate syntax: 
query I rowsort label-2637
SELECT MAX( ALL - 35 ) FROM tab0
----
-35

skipif mysql # not compatible
query I rowsort label-2637
SELECT MAX ( ALL - 35 ) FROM tab0
----
-35

query II rowsort
SELECT col0 AS col2, - 98 * 60 * + col1 AS col2 FROM tab1
----
51
-82320
85
-29400
91
-276360

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2639
SELECT ALL ( - - CAST( - - COUNT( * ) AS SIGNED ) ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2639
SELECT ALL ( - - CAST ( - - COUNT ( * ) AS INTEGER ) ) AS col2 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2640
SELECT + MAX( + col2 ) AS col0 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-2640
SELECT + MAX ( + col2 ) AS col0 FROM tab2 AS cor0
----
58

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col1 * - + 21 IS NOT NULL
----

query II rowsort
SELECT ALL + col1 AS col1, 59 AS col1 FROM tab0 AS cor0
----
1
59
21
59
81
59

onlyif mysql # aggregate syntax: 
query I rowsort label-2643
SELECT + - 17 * + + COUNT( * ) - - 66 + + ( COUNT( * ) ) col0 FROM tab0 AS cor0
----
18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2643
SELECT + - 17 * + + COUNT ( * ) - - 66 + + ( COUNT ( * ) ) col0 FROM tab0 AS cor0
----
18

onlyif mysql # DIV for integer division: 
query II rowsort label-2644
SELECT col2 DIV - 10 AS col1, + 83 - - ( + col1 ) col0 FROM tab1
----
-5
88
-6
130
-9
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2644
SELECT col2 / - 10 AS col1, + 83 - - ( + col1 ) col0 FROM tab1
----
-5
88
-6
130
-9
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - AVG ( + ( - col1 ) ) col0 FROM tab2 AS cor0 WHERE + col0 <= + 20
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2646
SELECT ALL + - COUNT( * ) AS col1 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2646
SELECT ALL + - COUNT ( * ) AS col1 FROM tab1 cor0
----
-3

query I rowsort
SELECT DISTINCT - col2 + - + col1 AS col1 FROM tab1 AS cor0
----
-110
-115
-64

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 BETWEEN NULL AND + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2649
SELECT + + col0 AS col0 FROM tab2 WHERE - CAST( NULL AS SIGNED ) * 74 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2649
SELECT + + col0 AS col0 FROM tab2 WHERE - CAST ( NULL AS INTEGER ) * 74 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2650
SELECT - AVG ( DISTINCT - - col2 ) + + - CAST( NULL AS SIGNED ) * COUNT( * ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2650
SELECT - AVG ( DISTINCT - - col2 ) + + - CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT 41 * + + col0 FROM tab0
----
3567
3977
615

query I rowsort
SELECT + col0 + - 54 AS col0 FROM tab1
----
-3
31
37

query I rowsort
SELECT DISTINCT - col1 + - col0 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2654
SELECT ALL + COUNT( DISTINCT col1 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2654
SELECT ALL + COUNT ( DISTINCT col1 ) AS col2 FROM tab1
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 37 + + ( - ( + + ( + col0 ) ) ) * + ( col1 ) col0 FROM tab2 AS cor0
----
-2309
-4891
-4988

query I rowsort
SELECT - ( - - 51 ) AS col0 FROM tab0 AS cor0
----
-51
-51
-51

query I rowsort
SELECT DISTINCT 0 FROM tab1 cor0 WHERE NULL IS NULL
----
0

query I rowsort
SELECT DISTINCT col1 * + col2 - - col0 FROM tab1 AS cor0
----
1395
3287
380

query I rowsort
SELECT - - ( - col2 ) + - 56 FROM tab1 AS cor0 WHERE ( - 97 ) NOT BETWEEN ( NULL ) AND - + 30
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - - col2 col1 FROM tab0 AS cor0
----
-210
-3807
-99

query I rowsort
SELECT 94 AS col0 FROM tab1 AS cor0
----
94
94
94

onlyif mysql # aggregate syntax: 
query I rowsort label-2662
SELECT + 62 * - MIN( ALL + + 52 ) AS col1 FROM tab2 cor0
----
-3224

skipif mysql # not compatible
query I rowsort label-2662
SELECT + 62 * - MIN ( ALL + + 52 ) AS col1 FROM tab2 cor0
----
-3224

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2663
SELECT DISTINCT + CAST( NULL AS SIGNED ), + col2 * - + 58 * - col0 AS col1 FROM tab0 AS cor0
----
NULL
40890
NULL
50460
NULL
556974

skipif mysql # not compatible
query II rowsort label-2663
SELECT DISTINCT + CAST ( NULL AS INTEGER ), + col2 * - + 58 * - col0 AS col1 FROM tab0 AS cor0
----
NULL
40890
NULL
50460
NULL
556974

query I rowsort
SELECT DISTINCT + col0 * ( col0 ) AS col2 FROM tab2 AS cor0
----
2116
4096
5625

query I rowsort
SELECT ALL 42 * - + col1 FROM tab0 AS cor0
----
-3402
-42
-882

query I rowsort
SELECT col2 + + col2 AS col0 FROM tab1 AS cor0 WHERE NOT + col2 * - col1 <> + 11
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col1, col2 * - col0 * - - col0 AS col1 FROM tab0 AS cor0
----
-1
-931491
-21
-75690
-81
-10575

query I rowsort
SELECT DISTINCT - ( - 36 ) FROM tab0
----
36

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col2 / - col2 IS NULL
----

query I rowsort
SELECT DISTINCT + col0 * 84 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT col0 * - 25 FROM tab1
----
-1275
-2125
-2275

onlyif mysql # aggregate syntax: 
query I rowsort label-2672
SELECT SUM( col0 ) FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-2672
SELECT SUM ( col0 ) FROM tab2 AS cor0
----
185

query I rowsort
SELECT + ( 12 ) AS col2 FROM tab1 AS cor0
----
12
12
12

query I rowsort
SELECT DISTINCT 87 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
87

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col1 * - - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 24 AS col1 FROM tab0 AS cor0
----
24
24
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 28 col0, + col0 + col0 AS col0 FROM tab0 AS cor0
----
28
174
28
194
28
30

onlyif mysql # aggregate syntax: 
query I rowsort label-2678
SELECT ALL + COUNT( - col1 ) + + 16 col1 FROM tab1 AS cor0
----
19

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2678
SELECT ALL + COUNT ( - col1 ) + + 16 col1 FROM tab1 AS cor0
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-2679
SELECT ALL + COUNT( col0 ) * - 24 + + MIN( + col1 ) - 17 AS col0 FROM tab2 cor0 WHERE - col2 + col2 + + + col2 >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2679
SELECT ALL + COUNT ( col0 ) * - 24 + + MIN ( + col1 ) - 17 AS col0 FROM tab2 cor0 WHERE - col2 + col2 + + + col2 >= NULL
----
NULL

query II rowsort
SELECT DISTINCT - col0 + - 13 + col2 AS col1, 79 FROM tab2 AS cor0
----
-30
79
-36
79
-37
79

query I rowsort
SELECT + 47 + - col1 + - 75 FROM tab2 cor0
----
-105
-79
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-2682
SELECT DISTINCT - MAX( ALL col0 ) FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-2682
SELECT DISTINCT - MAX ( ALL col0 ) FROM tab2 AS cor0
----
-75

query I rowsort
SELECT DISTINCT - 29 * col1 + - + col1 + col1 * col0 FROM tab0
----
-1215
1197
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2684
SELECT - CAST( NULL AS SIGNED ) * + - col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2684
SELECT - CAST ( NULL AS INTEGER ) * + - col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2685
SELECT ALL CAST( NULL AS SIGNED ) + COUNT( * ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2685
SELECT ALL CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col0 FROM tab1
----
NULL

query II rowsort
SELECT - 52 * - col1 AS col2, ( - col2 ) + - col2 FROM tab2
----
2652
-46
3484
-116
4004
-80

query III rowsort
SELECT * FROM tab1 WHERE ( NOT - 36 = - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2688
SELECT ALL - CAST( col0 AS SIGNED ), - col1 AS col0 FROM tab2
----
-46
-51
-64
-77
-75
-67

skipif mysql # not compatible
query II rowsort label-2688
SELECT ALL - CAST ( col0 AS INTEGER ), - col1 AS col0 FROM tab2
----
-46
-51
-64
-77
-75
-67

query I rowsort
SELECT DISTINCT + - col0 FROM tab2 WHERE NOT col2 + + + 75 + - 82 * 25 BETWEEN - col2 AND - + col1
----
-46
-64
-75

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2690
SELECT + CAST( + col0 AS SIGNED ), + CAST( NULL AS DECIMAL ) AS col2 FROM tab1
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-2690
SELECT + CAST ( + col0 AS INTEGER ), + CAST ( NULL AS REAL ) AS col2 FROM tab1
----
51
NULL
85
NULL
91
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2691
SELECT ALL - ( + + 42 ) DIV - col1 + 40 AS col2 FROM tab0 cor0
----
40
42
82

skipif mysql # not compatible
query I rowsort label-2691
SELECT ALL - ( + + 42 ) / - col1 + 40 AS col2 FROM tab0 cor0
----
40
42
82

query I rowsort
SELECT + col0 + 65 FROM tab0 AS cor0
----
152
162
80

query I rowsort
SELECT + 96 AS col0 FROM tab2 cor0 WHERE NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2694
SELECT MAX( - - col2 ) + + - 39 AS col2 FROM tab1
----
57

skipif mysql # not compatible
query I rowsort label-2694
SELECT MAX ( - - col2 ) + + - 39 AS col2 FROM tab1
----
57

query I rowsort
SELECT - col0 * - 23 AS col1 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2696
SELECT ( - - COUNT( * ) ) + - COUNT( * ) + - 24 FROM tab1
----
-24

skipif mysql # not compatible
query I rowsort label-2696
SELECT ( - - COUNT ( * ) ) + - COUNT ( * ) + - 24 FROM tab1
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2697
SELECT 9 * CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2697
SELECT 9 * CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - 95 * col0 AS col0 FROM tab0 AS cor0
----
-1425
-8265
-9215

query I rowsort
SELECT DISTINCT - 16 * + - col0 * - + col0 AS col0 FROM tab2 AS cor0
----
-33856
-65536
-90000

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2700
SELECT - - col2 FROM tab2 AS cor0 WHERE NOT CAST( - col1 AS SIGNED ) BETWEEN - + 50 + 39 / + 65 AND + CAST( NULL AS SIGNED ) * - - ( - col2 )
----
23
40
58

skipif mysql # not compatible
query I rowsort label-2700
SELECT - - col2 FROM tab2 AS cor0 WHERE NOT CAST ( - col1 AS INTEGER ) BETWEEN - + 50 + 39 / + 65 AND + CAST ( NULL AS INTEGER ) * - - ( - col2 )
----
23
40
58

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( ( NOT - ( + 36 ) BETWEEN col0 AND 90 + col1 * - + col0 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2702
SELECT ALL col2 DIV + - 4 + - col1 DIV + col0 FROM tab0 AS cor0
----
-16
-2
-24

skipif mysql # not compatible
query I rowsort label-2702
SELECT ALL col2 / + - 4 + - col1 / + col0 FROM tab0 AS cor0
----
-16
-2
-24

query I rowsort
SELECT DISTINCT + col0 * + 21 FROM tab1 AS cor0
----
1071
1785
1911

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2704
SELECT ALL 16 DIV + COUNT( * ) AS col0 FROM tab0 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-2704
SELECT ALL 16 / + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2705
SELECT DISTINCT - COUNT( + col0 ) FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2705
SELECT DISTINCT - COUNT ( + col0 ) FROM tab2 cor0
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2706
SELECT - + COUNT( * ) DIV + 59 AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2706
SELECT - + COUNT ( * ) / + 59 AS col0 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2707
SELECT + COUNT( DISTINCT - + col2 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2707
SELECT + COUNT ( DISTINCT - + col2 ) FROM tab1
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0, + col1 col2 FROM tab0
----
15
81
87
21
97
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2709
SELECT - COUNT( * ), CAST( NULL AS SIGNED ) / + 45 AS col2 FROM tab1
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-2709
SELECT - COUNT ( * ), CAST ( NULL AS INTEGER ) / + 45 AS col2 FROM tab1
----
-3
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 * - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + + 11 AS col0 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT col0 * - 36 FROM tab1
----
-1836
-3060
-3276

query II rowsort
SELECT DISTINCT + col0, col0 + col1 AS col1 FROM tab0
----
15
96
87
108
97
98

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2714
SELECT - col1 AS col2, 73 + + ( col1 ) - + - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
-51
NULL
-67
NULL
-77
NULL

skipif mysql # not compatible
query II rowsort label-2714
SELECT - col1 AS col2, 73 + + ( col1 ) - + - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
-51
NULL
-67
NULL
-77
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2715
SELECT - + COUNT( * ), - COUNT( * ) FROM tab2 AS cor0 WHERE NOT ( + 57 ) < - ( - - col1 )
----
-3
-3

skipif mysql # not compatible
query II rowsort label-2715
SELECT - + COUNT ( * ), - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( + 57 ) < - ( - - col1 )
----
-3
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2716
SELECT + 66 + + - COUNT( * ) FROM tab0 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-2716
SELECT + 66 + + - COUNT ( * ) FROM tab0 AS cor0
----
63

query I rowsort
SELECT DISTINCT 68 AS col2 FROM tab2, tab0 AS cor0
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2718
SELECT ALL CAST( + 21 AS SIGNED ) AS col0 FROM tab0
----
21
21
21

skipif mysql # not compatible
query I rowsort label-2718
SELECT ALL CAST ( + 21 AS INTEGER ) AS col0 FROM tab0
----
21
21
21

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2720
SELECT ALL - MAX( ALL - col1 ) AS col2 FROM tab1 cor0
----
5

skipif mysql # not compatible
query I rowsort label-2720
SELECT ALL - MAX ( ALL - col1 ) AS col2 FROM tab1 cor0
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2721
SELECT col0 AS col0 FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) > col1 + + - col0 - 91
----

skipif mysql # not compatible
query I rowsort label-2721
SELECT col0 AS col0 FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) > col1 + + - col0 - 91
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2722
SELECT DISTINCT + col0 + + + CAST( + + 22 AS SIGNED ) AS col0 FROM tab2 cor0
----
68
86
97

skipif mysql # not compatible
query I rowsort label-2722
SELECT DISTINCT + col0 + + + CAST ( + + 22 AS INTEGER ) AS col0 FROM tab2 cor0
----
68
86
97

query I rowsort
SELECT ALL + + 14 * + col1 + col0 + + 60 * + - col2 + + col0 FROM tab2 AS cor0
----
-1194
-2392
-574

onlyif mysql # aggregate syntax: 
query I rowsort label-2724
SELECT - COUNT( * ) + + 73 AS col0 FROM tab1 AS cor0
----
70

skipif mysql # not compatible
query I rowsort label-2724
SELECT - COUNT ( * ) + + 73 AS col0 FROM tab1 AS cor0
----
70

query I rowsort
SELECT - - 94 + + 43 FROM tab1 AS cor0
----
137
137
137

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2726
SELECT ALL - CAST( col2 AS SIGNED ) + col1 + col2 * col1 * + + 6, + col0 FROM tab1
----
1716
85
19155
91
7982
51

skipif mysql # not compatible
query II rowsort label-2726
SELECT ALL - CAST ( col2 AS INTEGER ) + col1 + col2 * col1 * + + 6, + col0 FROM tab1
----
1716
85
19155
91
7982
51

query II rowsort
SELECT DISTINCT col1, col1 FROM tab0
----
1
1
21
21
81
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2728
SELECT DISTINCT 15 + CAST( NULL AS SIGNED ) * - 51 + - - col1 - - - col2 + + ( + col2 ) * - + 88 + - 58 * - col1 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2728
SELECT DISTINCT 15 + CAST ( NULL AS INTEGER ) * - 51 + - - col1 - - - col2 + + ( + col2 ) * - + 88 + - 58 * - col1 AS col2 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT + 72 - - + 42 AS col1 FROM tab0
----
114

query I rowsort
SELECT ALL 42 - + - 36 + + 66 AS col2 FROM tab2
----
144
144
144

onlyif mysql # DIV for integer division: 
query I rowsort label-2731
SELECT DISTINCT col0 DIV - col2 - - col0 FROM tab1
----
51
84
90

skipif mysql # not compatible
query I rowsort label-2731
SELECT DISTINCT col0 / - col2 - - col0 FROM tab1
----
51
84
90

query II rowsort
SELECT ALL + 43 AS col0, col0 * - + col0 + - - col1 * + + col1 + - 75 AS col0 FROM tab0
----
43
-7203
43
-9483
43
6261

query III rowsort
SELECT * FROM tab0 WHERE + 59 = NULL
----

query I rowsort
SELECT ALL col0 * - 1 AS col1 FROM tab0 AS cor0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2735
SELECT DISTINCT - 15 * - COUNT( * ) + 18 FROM tab0 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-2735
SELECT DISTINCT - 15 * - COUNT ( * ) + 18 FROM tab0 AS cor0
----
63

query I rowsort
SELECT + 85 * 10 FROM tab1 cor0
----
850
850
850

query II rowsort
SELECT DISTINCT + 77 * - col2 + - 98, + col1 AS col2 FROM tab0 AS cor0
----
-3717
81
-7721
1
-868
21

query I rowsort
SELECT ALL + ( + col0 ) + col1 + + - 78 * + 65 AS col0 FROM tab2 AS cor0
----
-4928
-4929
-4973

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 4 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2740
SELECT + COUNT( * ) - - 59 AS col2 FROM tab0 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-2740
SELECT + COUNT ( * ) - - 59 AS col2 FROM tab0 AS cor0
----
62

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2741
SELECT DISTINCT 72 + + - col2 / + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2741
SELECT DISTINCT 72 + + - col2 / + CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 15 * - - 26 - 17 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2743
SELECT ALL ( SUM( - + col1 ) ) col0 FROM tab1
----
-66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2743
SELECT ALL ( SUM ( - + col1 ) ) col0 FROM tab1
----
-66

query I rowsort
SELECT DISTINCT - col1 * col1 * - 1 AS col1 FROM tab2
----
2601
4489
5929

query I rowsort
SELECT ALL + + 71 * - + 57 * + col2 * - 7 + - 95 FROM tab0 AS cor0
----
1331368
2804476
283195

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT 26 NOT IN ( 61 )
----

query I rowsort
SELECT ALL col1 * col0 + + - col0 AS col0 FROM tab2 AS cor0
----
2300
4864
4950

query I rowsort
SELECT + col2 AS col1 FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2749
SELECT 33 DIV + - col0 + col0 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-2749
SELECT 33 / + - col0 + col0 FROM tab1 AS cor0
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2750
SELECT DISTINCT - COUNT( 3 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2750
SELECT DISTINCT - COUNT ( 3 ) FROM tab1 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-2751
SELECT 60 DIV ( col2 ) AS col1 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2751
SELECT 60 / ( col2 ) AS col1 FROM tab1
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2752
SELECT DISTINCT ( - ( - MIN( ALL + 17 ) ) ) FROM tab0
----
17

skipif mysql # not compatible
query I rowsort label-2752
SELECT DISTINCT ( - ( - MIN ( ALL + 17 ) ) ) FROM tab0
----
17

query I rowsort
SELECT ALL - 98 AS col1 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2754
SELECT ALL SUM( col1 ) * + COUNT( * ) - - COUNT( * ) AS col2 FROM tab0
----
312

skipif mysql # not compatible
query I rowsort label-2754
SELECT ALL SUM ( col1 ) * + COUNT ( * ) - - COUNT ( * ) AS col2 FROM tab0
----
312

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - ( - col2 ) / + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2756
SELECT DISTINCT + col1 * - - CAST( NULL AS SIGNED ) * col2 AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2756
SELECT DISTINCT + col1 * - - CAST ( NULL AS INTEGER ) * col2 AS col0 FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT ( 73 + + 71 NOT BETWEEN + - col2 AND + col2 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2758
SELECT COUNT( * ) DIV COUNT( * ) AS col2 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-2758
SELECT COUNT ( * ) / COUNT ( * ) AS col2 FROM tab1
----
1

query I rowsort
SELECT 23 AS col0 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - + 43 + + - 78 * + col2 + - col2 FROM tab2 AS cor0
----
-1860
-3203
-4625

query I rowsort
SELECT - + 35 AS col0 FROM tab2 AS cor0
----
-35
-35
-35

query I rowsort
SELECT ALL + 26 + - 2 AS col2 FROM tab0 AS cor0
----
24
24
24

onlyif mysql # aggregate syntax: 
query I rowsort label-2763
SELECT MIN( ALL col1 ) AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-2763
SELECT MIN ( ALL col1 ) AS col1 FROM tab0
----
1

query I rowsort
SELECT - col2 AS col0 FROM tab0 WHERE + + col0 + + col1 IS NOT NULL
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2765
SELECT DISTINCT - 74 + - MAX( + + col1 ) + 58 + COUNT( * ) FROM tab2 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-2765
SELECT DISTINCT - 74 + - MAX ( + + col1 ) + 58 + COUNT ( * ) FROM tab2 AS cor0
----
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2766
SELECT - + col0 + + + CAST( NULL AS SIGNED ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2766
SELECT - + col0 + + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2767
SELECT + 35 * - COUNT( * ) * + COUNT( * ) FROM tab0 cor0 WHERE 70 / + col1 BETWEEN - + col0 AND - - 55
----
-140

skipif mysql # not compatible
query I rowsort label-2767
SELECT + 35 * - COUNT ( * ) * + COUNT ( * ) FROM tab0 cor0 WHERE 70 / + col1 BETWEEN - + col0 AND - - 55
----
-140

onlyif mysql # aggregate syntax: 
query I rowsort label-2768
SELECT - MIN( DISTINCT + col2 ) + 95 AS col1 FROM tab1 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-2768
SELECT - MIN ( DISTINCT + col2 ) + 95 AS col1 FROM tab1 AS cor0
----
36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 20 * - - 80 + - - 12 col1 FROM tab0 AS cor0
----
1612
1612
1612

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2770
SELECT - + 92 AS col1, - 78 DIV - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-92
26

skipif mysql # not compatible
query II rowsort label-2770
SELECT - + 92 AS col1, - 78 / - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-92
26

query III rowsort
SELECT ALL * FROM tab2 WHERE - - 40 <> + + ( + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2772
SELECT DISTINCT COUNT( DISTINCT - col1 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2772
SELECT DISTINCT COUNT ( DISTINCT - col1 ) AS col0 FROM tab1
----
3

query I rowsort
SELECT DISTINCT + + 55 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
55

query I rowsort
SELECT - col1 * - 38 AS col1 FROM tab0
----
3078
38
798

query II rowsort
SELECT col1 AS col1, + 56 + + + col2 AS col0 FROM tab1
----
14
152
47
124
5
115

onlyif mysql # aggregate syntax: 
query I rowsort label-2776
SELECT DISTINCT - COUNT( * ) + - - COUNT( * ) + - - 13 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
13

skipif mysql # not compatible
query I rowsort label-2776
SELECT DISTINCT - COUNT ( * ) + - - COUNT ( * ) + - - 13 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
13

query I rowsort
SELECT DISTINCT - col0 + + 3 FROM tab2 AS cor0 WHERE col1 * - + col1 + - 69 <= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2778
SELECT + COUNT( * ) AS col1, + 63 FROM tab0 AS cor0
----
3
63

skipif mysql # not compatible
query II rowsort label-2778
SELECT + COUNT ( * ) AS col1, + 63 FROM tab0 AS cor0
----
3
63

onlyif mysql # aggregate syntax: 
query I rowsort label-2779
SELECT ALL MIN( DISTINCT + + 57 ) FROM tab1 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-2779
SELECT ALL MIN ( DISTINCT + + 57 ) FROM tab1 AS cor0
----
57

query I rowsort
SELECT DISTINCT 23 AS col0 FROM tab0 AS cor0
----
23

query I rowsort
SELECT - + 50 AS col2 FROM tab0 cor0
----
-50
-50
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-2782
SELECT ALL COUNT( + col0 ) col2 FROM tab0 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2782
SELECT ALL COUNT ( + col0 ) col2 FROM tab0 cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2783
SELECT col0 DIV - + col2 FROM tab0
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-2783
SELECT col0 / - + col2 FROM tab0
----
-8
0
0

query I rowsort
SELECT + 21 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT 85 + col2 FROM tab1
----
144
153
181

query I rowsort
SELECT - col0 * col0 + + 57 - + col2 AS col0 FROM tab2 AS cor0
----
-2082
-4079
-5626

query I rowsort
SELECT ALL - 28 + col0 AS col2 FROM tab1 cor0
----
23
57
63

query I rowsort
SELECT + col0 + - 11 * 18 FROM tab2 AS cor0
----
-123
-134
-152

onlyif mysql # DIV for integer division: 
query I rowsort label-2789
SELECT DISTINCT - - col2 DIV + 20 AS col1 FROM tab2 AS cor0
----
1
2

skipif mysql # not compatible
query I rowsort label-2789
SELECT DISTINCT - - col2 / + 20 AS col1 FROM tab2 AS cor0
----
1
2

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 84 - + 82 * + ( - - col0 ) + + - col2 + + ( - 67 ) + 37 * - + 15 NOT BETWEEN - col1 AND - ( - + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2791
SELECT + SUM( + col0 ) FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-2791
SELECT + SUM ( + col0 ) FROM tab0
----
199

query I rowsort
SELECT - 63 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5a7845ef6e239561caf9a17a28e274b5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2793
SELECT ALL - + MIN( ALL - - CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2793
SELECT ALL - + MIN ( ALL - - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2794
SELECT DISTINCT - COUNT( * ) + MAX( - col2 ) FROM tab2 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-2794
SELECT DISTINCT - COUNT ( * ) + MAX ( - col2 ) FROM tab2 AS cor0
----
-26

query I rowsort
SELECT col0 + - + col2 AS col1 FROM tab2 AS cor0
----
17
23
24

onlyif mysql # aggregate syntax: 
query II rowsort label-2796
SELECT 99 + COUNT( - col1 ), + COUNT( * ) AS col2 FROM tab0 AS cor0
----
102
3

skipif mysql # not compatible
query II rowsort label-2796
SELECT 99 + COUNT ( - col1 ), + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
102
3

query I rowsort
SELECT DISTINCT - ( - 60 ) AS col2 FROM tab2 AS cor0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-2798
SELECT ALL + + COUNT( * ) - - 82 FROM tab0 AS cor0
----
85

skipif mysql # not compatible
query I rowsort label-2798
SELECT ALL + + COUNT ( * ) - - 82 FROM tab0 AS cor0
----
85

onlyif mysql # DIV for integer division: 
query II rowsort label-2799
SELECT - + 75 + - ( + col0 ), col0 DIV - col0 AS col0 FROM tab0 cor0
----
-162
-1
-172
-1
-90
-1

skipif mysql # not compatible
query II rowsort label-2799
SELECT - + 75 + - ( + col0 ), col0 / - col0 AS col0 FROM tab0 cor0
----
-162
-1
-172
-1
-90
-1

query I rowsort
SELECT DISTINCT - col0 + + + col2 + + - col1 FROM tab0 AS cor0
----
-49
-98
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + ( + col1 ) col0 FROM tab0
----
108
96
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2802
SELECT DISTINCT + CAST( 50 AS SIGNED ) + - - COUNT( ALL + col1 ) col1 FROM tab0
----
53

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2802
SELECT DISTINCT + CAST ( 50 AS INTEGER ) + - - COUNT ( ALL + col1 ) col1 FROM tab0
----
53

query I rowsort
SELECT col0 + col1 + col0 - col1 AS col2 FROM tab0
----
174
194
30

query I rowsort
SELECT DISTINCT + - col0 FROM tab0 WHERE NOT 8 > col2 / - ( + col1 )
----

query I rowsort
SELECT + + 70 + + col2 AS col1 FROM tab1 WHERE NOT 90 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2806
SELECT DISTINCT - 49 + SUM( + + col0 ) * 1 FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2806
SELECT DISTINCT - 49 + SUM ( + + col0 ) * 1 FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 >= - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 5 col2 FROM tab0 AS cor0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-2809
SELECT + COUNT( DISTINCT + col0 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2809
SELECT + COUNT ( DISTINCT + col0 ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2810
SELECT DISTINCT COUNT( * ) + - - 27 AS col0 FROM tab0 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-2810
SELECT DISTINCT COUNT ( * ) + - - 27 AS col0 FROM tab0 AS cor0
----
30

query I rowsort
SELECT DISTINCT - ( - 13 ) * + + col2 FROM tab2
----
299
520
754

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col0 * + col2 - - col2 * 59 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2813
SELECT ALL 13 * + SUM( col0 ) col1 FROM tab1
----
2951

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2813
SELECT ALL 13 * + SUM ( col0 ) col1 FROM tab1
----
2951

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 * 93 - + col1 * - 67 + - ( - col1 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 61 * - ( + ( - + 95 ) ) FROM tab1
----
5795
5795
5795

query I rowsort
SELECT ALL - col0 * + 93 AS col2 FROM tab1
----
-4743
-7905
-8463

query I rowsort
SELECT DISTINCT + col2 FROM tab2 WHERE NOT + - col0 / 41 IS NULL
----
23
40
58

query I rowsort
SELECT - 35 AS col1 FROM tab1 WHERE NULL IS NULL
----
-35
-35
-35

query I rowsort
SELECT - 27 * - 71 FROM tab2
----
1917
1917
1917

query III rowsort
SELECT * FROM tab0 WHERE - 44 IS NULL
----

query I rowsort
SELECT DISTINCT ( + - col1 ) + + 93 + - - 64 * ( col2 ) * - + ( + + 63 ) FROM tab1
----
-237800
-274130
-386993

onlyif mysql # DIV for integer division: 
query II rowsort label-2822
SELECT - col2, + 12 DIV + 62 col0 FROM tab0
----
-10
0
-47
0
-99
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2822
SELECT - col2, + 12 / + 62 col0 FROM tab0
----
-10
0
-47
0
-99
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2823
SELECT - col2 DIV 62 * - col2 FROM tab1 AS cor0
----
0
68
96

skipif mysql # not compatible
query I rowsort label-2823
SELECT - col2 / 62 * - col2 FROM tab1 AS cor0
----
0
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2824
SELECT + COUNT( * ) col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2824
SELECT + COUNT ( * ) col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + ( - col0 ) col1, - col0 - col1 AS col1 FROM tab2 AS cor0
----
-46
-97
-64
-141
-75
-142

query I rowsort
SELECT - + 66 * + col0 AS col1 FROM tab0 AS cor0
----
-5742
-6402
-990

query III rowsort
SELECT * FROM tab1 cor0 WHERE col0 * - col2 + + - col1 < + - 37 + - - 7
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 67 * col2 + + ( - col0 ) + + + col1 * 55 AS col1 FROM tab0 cor0
----
-6675
1291
398

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + + col0 + + 0 + + - 23 + + - ( + 21 ) col0 FROM tab2 AS cor0
----
2302
4884
4981

onlyif mysql # aggregate syntax: 
query I rowsort label-2830
SELECT DISTINCT - MIN( + + 9 ) AS col0 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-2830
SELECT DISTINCT - MIN ( + + 9 ) AS col0 FROM tab0
----
-9

query I rowsort
SELECT ALL - col1 FROM tab1 WHERE - - 90 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2832
SELECT 13 * + + col2 * + - col1 * - col2 AS col0 FROM tab0 WHERE NOT ( - 4 ) * + CAST( NULL AS SIGNED ) + CAST( - col1 AS SIGNED ) IS NOT NULL
----
127413
2326077
27300

skipif mysql # not compatible
query I rowsort label-2832
SELECT 13 * + + col2 * + - col1 * - col2 AS col0 FROM tab0 WHERE NOT ( - 4 ) * + CAST ( NULL AS INTEGER ) + CAST ( - col1 AS INTEGER ) IS NOT NULL
----
127413
2326077
27300

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2833
SELECT ALL CAST( NULL AS SIGNED ) * + - 37 col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2833
SELECT ALL CAST ( NULL AS INTEGER ) * + - 37 col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2834
SELECT ALL + 87 AS col1, + MAX( + + 33 ) FROM tab1 cor0
----
87
33

skipif mysql # not compatible
query II rowsort label-2834
SELECT ALL + 87 AS col1, + MAX ( + + 33 ) FROM tab1 cor0
----
87
33

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 / 24 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 27 col2, 95 FROM tab0
----
-27
95
-27
95
-27
95

query II rowsort
SELECT - 61 AS col2, col2 * + col2 FROM tab1
----
-61
3481
-61
4624
-61
9216

query I rowsort
SELECT DISTINCT - - col1 * + col1 + + 74 + col2 AS col0 FROM tab0 AS cor0
----
174
525
6682

query I rowsort
SELECT DISTINCT + - 41 AS col0 FROM tab2 AS cor0
----
-41

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL = - col0 * col2 + - col1 / col1 * col2 + + 54
----

query I rowsort
SELECT DISTINCT + col0 FROM tab1 cor0 WHERE col1 < ( NULL )
----

query I rowsort
SELECT - col2 * - + 96 AS col2 FROM tab0
----
4512
9504
960

query I rowsort
SELECT - col2 + col1 - - + 63 FROM tab1
----
-19
42
9

query II rowsort
SELECT - col2 AS col0, - col2 FROM tab0
----
-10
-10
-47
-47
-99
-99

query I rowsort
SELECT - 91 * 87 AS col0 FROM tab0 WHERE col2 <> + 0
----
-7917
-7917
-7917

query I rowsort
SELECT 17 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 43298e43365fccb5146ea32003753c92

query I rowsort
SELECT + 28 + - col1 FROM tab0 AS cor0
----
-53
27
7

query I rowsort
SELECT + 31 + - - ( - 62 ) + 19 AS col0 FROM tab1 AS cor0
----
-12
-12
-12

query I rowsort
SELECT - - 89 + - col1 FROM tab1 AS cor0
----
42
75
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 * + - col2 col1 FROM tab2 AS cor0
----
1600
3364
529

query I rowsort
SELECT ALL - + col2 + - col0 + + - col1 * - 71 FROM tab1 AS cor0
----
211
3178
847

onlyif mysql # aggregate syntax: 
query I rowsort label-2852
SELECT + + COUNT( * ) + + COUNT( * ) FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-2852
SELECT + + COUNT ( * ) + + COUNT ( * ) FROM tab1 AS cor0
----
6

query II rowsort
SELECT - + 38, + col2 AS col1 FROM tab0 AS cor0
----
-38
10
-38
47
-38
99

query II rowsort
SELECT DISTINCT - + 79 * 42 + + 11 AS col0, - 15 FROM tab1 cor0
----
-3307
-15

query I rowsort
SELECT + 38 AS col2 FROM tab2
----
38
38
38

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN - col0 AND col1 * col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 8 * + col0 * - ( - + col0 ) col0 FROM tab2
----
16928
32768
45000

onlyif mysql # aggregate syntax: 
query I rowsort label-2858
SELECT - MIN( + 53 ) AS col0 FROM tab1
----
-53

skipif mysql # not compatible
query I rowsort label-2858
SELECT - MIN ( + 53 ) AS col0 FROM tab1
----
-53

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2860
SELECT MAX( DISTINCT - 44 ), - 85 * + + COUNT( * ) AS col2 FROM tab0
----
-44
-255

skipif mysql # not compatible
query II rowsort label-2860
SELECT MAX ( DISTINCT - 44 ), - 85 * + + COUNT ( * ) AS col2 FROM tab0
----
-44
-255

onlyif mysql # aggregate syntax: 
query II rowsort label-2861
SELECT ALL - 7 * + 78 AS col1, - COUNT( * ) FROM tab2
----
-546
-3

skipif mysql # not compatible
query II rowsort label-2861
SELECT ALL - 7 * + 78 AS col1, - COUNT ( * ) FROM tab2
----
-546
-3

query II rowsort
SELECT ALL col2 * - col2, + 59 * col0 AS col2 FROM tab1 AS cor0
----
-3481
5015
-4624
5369
-9216
3009

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col0 + - 94 + + + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2864
SELECT ALL COUNT( * ) * MIN( col2 ) AS col1 FROM tab2 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-2864
SELECT ALL COUNT ( * ) * MIN ( col2 ) AS col1 FROM tab2 AS cor0
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2865
SELECT - 71 * - CAST( + col2 AS SIGNED ) AS col2 FROM tab1 cor0
----
4189
4828
6816

skipif mysql # not compatible
query I rowsort label-2865
SELECT - 71 * - CAST ( + col2 AS INTEGER ) AS col2 FROM tab1 cor0
----
4189
4828
6816

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT ( NULL ) NOT BETWEEN - - col1 AND - 65 - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2867
SELECT DISTINCT col1 * col0 / CAST( NULL AS DECIMAL ), CAST( + 59 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
59

skipif mysql # not compatible
query II rowsort label-2867
SELECT DISTINCT col1 * col0 / CAST ( NULL AS REAL ), CAST ( + 59 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
59

query I rowsort
SELECT + 27 + - 64 + 67 FROM tab2 AS cor0
----
30
30
30

onlyif mysql # DIV for integer division: 
query II rowsort label-2869
SELECT + ( col0 ) * - + col0 * col0 + + col0, - col2 + + 52 DIV - col0 AS col0 FROM tab0 AS cor0
----
-3360
-50
-658416
-10
-912576
-99

skipif mysql # not compatible
query II rowsort label-2869
SELECT + ( col0 ) * - + col0 * col0 + + col0, - col2 + + 52 / - col0 AS col0 FROM tab0 AS cor0
----
-3360
-50
-658416
-10
-912576
-99

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE - col0 * + - col1 + col2 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 BETWEEN col1 / - col1 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2872
SELECT + CAST( NULL AS SIGNED ) + - - col1 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2872
SELECT + CAST ( NULL AS INTEGER ) + - - col1 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 52 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2874
SELECT ALL - ( CAST( col0 AS SIGNED ) ), + col2 AS col2 FROM tab1 AS cor0
----
-51
96
-85
59
-91
68

skipif mysql # not compatible
query II rowsort label-2874
SELECT ALL - ( CAST ( col0 AS INTEGER ) ), + col2 AS col2 FROM tab1 AS cor0
----
-51
96
-85
59
-91
68

query I rowsort
SELECT ALL + col1 + - 42 + + col2 FROM tab1
----
22
68
73

query II rowsort
SELECT + 91 AS col2, - col1 AS col0 FROM tab0
----
91
-1
91
-21
91
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-2877
SELECT DISTINCT COUNT( * ) AS col1, 45 FROM tab0
----
3
45

skipif mysql # not compatible
query II rowsort label-2877
SELECT DISTINCT COUNT ( * ) AS col1, 45 FROM tab0
----
3
45

query II rowsort
SELECT - col1, col1 AS col0 FROM tab1
----
-14
14
-47
47
-5
5

onlyif mysql # aggregate syntax: 
query II rowsort label-2879
SELECT - COUNT( * ) AS col0, 3 col1 FROM tab1
----
-3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2879
SELECT - COUNT ( * ) AS col0, 3 col1 FROM tab1
----
-3
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 25 col0, - col2 FROM tab2
----
25
-23
25
-40
25
-58

query II rowsort
SELECT DISTINCT col2 AS col2, - 35 AS col0 FROM tab1
----
59
-35
68
-35
96
-35

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col0 * + col0 + + - col0 + + 7 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2883
SELECT ALL - col2 * - 53 / + 81 + + col0 + + - col0 + - CAST( NULL AS SIGNED ) + + col0 / - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2883
SELECT ALL - col2 * - 53 / + 81 + + col0 + + - col0 + - CAST ( NULL AS INTEGER ) + + col0 / - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 86 * - col1 FROM tab0 AS cor0
----
-1806
-6966
-86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - + + col2 col1 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab0 WHERE - col0 + - - ( + 80 ) + - 4 * - + 84 * + - 70 * + 32 < - 67 * - 14
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 91 * + + 90 + col0 * col1 AS col1 FROM tab2 WHERE NULL IS NULL
----
10536
13118
13215

query I rowsort
SELECT DISTINCT - ( - 82 ) * col1 * - col2 AS col2 FROM tab1 cor0
----
-110208
-24190
-262072

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2889
SELECT DISTINCT - CAST( - col0 AS SIGNED ) AS col0, 72 * - + col0 col1 FROM tab2 AS cor0
----
46
-3312
64
-4608
75
-5400

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2889
SELECT DISTINCT - CAST ( - col0 AS INTEGER ) AS col0, 72 * - + col0 col1 FROM tab2 AS cor0
----
46
-3312
64
-4608
75
-5400

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2890
SELECT DISTINCT * FROM tab2 WHERE NULL <> + - CAST( NULL AS SIGNED ) + + + 8
----

skipif mysql # not compatible
query III rowsort label-2890
SELECT DISTINCT * FROM tab2 WHERE NULL <> + - CAST ( NULL AS INTEGER ) + + + 8
----

query I rowsort
SELECT - col0 AS col1 FROM tab0 WHERE NOT ( 6 NOT BETWEEN ( + col2 + - 21 ) AND ( NULL ) )
----

query I rowsort
SELECT - + 92 AS col0 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL ( + col0 ) * 56 FROM tab1
----
2856
4760
5096

query I rowsort
SELECT col0 AS col0 FROM tab1 WHERE NOT - + col0 IN ( - - 5, col0 )
----
51
85
91

query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND NULL OR NOT - 22 IS NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

query II rowsort
SELECT + + col2, - col0 FROM tab0 AS cor0
----
10
-87
47
-15
99
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2897
SELECT + ( - MAX( DISTINCT 11 ) ) FROM tab1
----
-11

skipif mysql # not compatible
query I rowsort label-2897
SELECT + ( - MAX ( DISTINCT 11 ) ) FROM tab1
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2898
SELECT ALL CAST( COUNT( * ) AS SIGNED ) DIV - 93 FROM tab0 WHERE 16 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2898
SELECT ALL CAST ( COUNT ( * ) AS INTEGER ) / - 93 FROM tab0 WHERE 16 IS NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 43 * + ( + col2 ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 36 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2901
SELECT ALL - COUNT( * ) FROM tab1 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2901
SELECT ALL - COUNT ( * ) FROM tab1 WHERE ( NULL ) IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2902
SELECT ALL COUNT( * ) + 72 * + 14 AS col2 FROM tab2
----
1011

skipif mysql # not compatible
query I rowsort label-2902
SELECT ALL COUNT ( * ) + 72 * + 14 AS col2 FROM tab2
----
1011

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2903
SELECT COUNT( DISTINCT - col1 ) + - COUNT( * ) FROM tab1 WHERE NULL BETWEEN NULL AND ( - CAST( NULL AS SIGNED ) + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-2903
SELECT COUNT ( DISTINCT - col1 ) + - COUNT ( * ) FROM tab1 WHERE NULL BETWEEN NULL AND ( - CAST ( NULL AS INTEGER ) + col2 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2904
SELECT + COUNT( * ) + 55 AS col0 FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-2904
SELECT + COUNT ( * ) + 55 AS col0 FROM tab2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2905
SELECT DISTINCT MIN( DISTINCT 6 ) * - 40 FROM tab1
----
-240

skipif mysql # not compatible
query I rowsort label-2905
SELECT DISTINCT MIN ( DISTINCT 6 ) * - 40 FROM tab1
----
-240

query I rowsort
SELECT ALL col1 * - 10 FROM tab2
----
-510
-670
-770

query I rowsort
SELECT DISTINCT - 87 * AVG ( 74 / 38 ) FROM tab2 WHERE NOT col0 / - 55 <= col2
----
NULL

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2909
SELECT ALL 69 * + COUNT( * ) FROM tab1
----
207

skipif mysql # not compatible
query I rowsort label-2909
SELECT ALL 69 * + COUNT ( * ) FROM tab1
----
207

query I rowsort
SELECT col0 AS col1 FROM tab0 WHERE ( ( + col1 ) ) NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT ALL col1 + ( col2 ) FROM tab0
----
100
128
31

query III rowsort
SELECT * FROM tab2 WHERE + 47 - - col1 NOT BETWEEN ( + col0 ) AND ( - col1 / - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2913
SELECT - COUNT( * ) * 47 AS col0 FROM tab1
----
-141

skipif mysql # not compatible
query I rowsort label-2913
SELECT - COUNT ( * ) * 47 AS col0 FROM tab1
----
-141

onlyif mysql # aggregate syntax: 
query I rowsort label-2914
SELECT MAX( + 3 ) * 84 AS col2 FROM tab2
----
252

skipif mysql # not compatible
query I rowsort label-2914
SELECT MAX ( + 3 ) * 84 AS col2 FROM tab2
----
252

query I rowsort
SELECT ALL 47 / + col0 AS col1 FROM tab1 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2916
SELECT DISTINCT + SUM( col1 ) + 12 AS col1 FROM tab0
----
115

skipif mysql # not compatible
query I rowsort label-2916
SELECT DISTINCT + SUM ( col1 ) + 12 AS col1 FROM tab0
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-2917
SELECT - MIN( 16 ) + + COUNT( * ) FROM tab1
----
-13

skipif mysql # not compatible
query I rowsort label-2917
SELECT - MIN ( 16 ) + + COUNT ( * ) FROM tab1
----
-13

query I rowsort
SELECT + 86 FROM tab1 WHERE NOT 43 * + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2919
SELECT COUNT( * ) * MIN( DISTINCT + ( + col0 ) ) FROM tab2
----
138

skipif mysql # not compatible
query I rowsort label-2919
SELECT COUNT ( * ) * MIN ( DISTINCT + ( + col0 ) ) FROM tab2
----
138

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( + 42 ) NOT IN ( col0 + 44 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2921
SELECT DISTINCT ( col1 ) + + CAST( + col2 AS SIGNED ) FROM tab0 AS cor0
----
100
128
31

skipif mysql # not compatible
query I rowsort label-2921
SELECT DISTINCT ( col1 ) + + CAST ( + col2 AS INTEGER ) FROM tab0 AS cor0
----
100
128
31

query I rowsort
SELECT ALL + 55 * 19 + + col1 * - 42 AS col1 FROM tab1 AS cor0
----
-929
457
835

query I rowsort
SELECT ALL 45 + 76 FROM tab1 AS cor0
----
121
121
121

query I rowsort
SELECT 64 - col0 FROM tab0
----
-23
-33
49

query I rowsort
SELECT ALL + 40 * + col2 - - col2 FROM tab2
----
1640
2378
943

query I rowsort
SELECT + 55 + + 80 FROM tab1 AS cor0 CROSS JOIN tab2 WHERE ( 87 ) IS NOT NULL
----
9 values hashing to 17b10acf07e16d67b01bcec56d331023

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col0 - 77 ) IS NOT NULL
----

query I rowsort
SELECT col0 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2929
SELECT - ( COUNT( * ) ) + 87 DIV 54 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col0 )
----
1

skipif mysql # not compatible
query I rowsort label-2929
SELECT - ( COUNT ( * ) ) + 87 / 54 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col0 )
----
1

query I rowsort
SELECT - col0 * - 51 AS col0 FROM tab1 cor0
----
2601
4335
4641

onlyif mysql # DIV for integer division: 
query I rowsort label-2931
SELECT - + 50 DIV - 51 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2931
SELECT - + 50 / - 51 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - ( 87 ) * col2 FROM tab1 AS cor0 WHERE NOT + col1 NOT BETWEEN ( NULL ) AND + col1
----

query I rowsort
SELECT 17 FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2934
SELECT DISTINCT col1 DIV - 32 AS col0 FROM tab1 AS cor0 WHERE col0 > - col1 * col1
----
-1
0

skipif mysql # not compatible
query I rowsort label-2934
SELECT DISTINCT col1 / - 32 AS col0 FROM tab1 AS cor0 WHERE col0 > - col1 * col1
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2935
SELECT + MIN( DISTINCT 30 ) col1 FROM tab2 cor0
----
30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2935
SELECT + MIN ( DISTINCT 30 ) col1 FROM tab2 cor0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-2936
SELECT + 77 * - MIN( ALL col2 ) AS col2 FROM tab1 AS cor0
----
-4543

skipif mysql # not compatible
query I rowsort label-2936
SELECT + 77 * - MIN ( ALL col2 ) AS col2 FROM tab1 AS cor0
----
-4543

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT ( - 2 * + 75 ) BETWEEN NULL AND 73
----

query I rowsort
SELECT - ( + col2 ) * + 82 FROM tab2 AS cor0
----
-1886
-3280
-4756

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 53 col2 FROM tab2 AS cor0
----
-53

query III rowsort
SELECT * FROM tab0 WHERE NOT + ( - col1 ) <= col1 * 23
----

query I rowsort
SELECT + col2 + col1 AS col1 FROM tab2 WHERE NOT + col2 BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT ALL col1 * col2 * + 53 FROM tab2
----
163240
205958
62169

onlyif mysql # aggregate syntax: 
query I rowsort label-2943
SELECT - MIN( - - 91 ) AS col0 FROM tab0 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-2943
SELECT - MIN ( - - 91 ) AS col0 FROM tab0 AS cor0
----
-91

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 * - 83 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 75 * col2 FROM tab2 AS cor0 WHERE NOT - col2 + + 30 IS NULL
----
1725
3000
4350

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 37 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 21 * + - col2 AS col0 FROM tab1 AS cor0
----
1239
1428
2016

query I rowsort
SELECT - 83 AS col0 FROM tab1 cor0 WHERE NOT NULL <> NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL BETWEEN ( - 43 * - 12 ) AND ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2950
SELECT - + COUNT( ALL - col2 ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2950
SELECT - + COUNT ( ALL - col2 ) AS col2 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2951
SELECT COUNT( * ) * 99 AS col1 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-2951
SELECT COUNT ( * ) * 99 AS col1 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND ( NULL )
----
0

query I rowsort
SELECT ALL col1 * col1 * + col0 * + col2 + + 46 FROM tab0
----
383716
4625551
9649

onlyif mysql # aggregate syntax: 
query I rowsort label-2953
SELECT ALL COUNT( - col2 ) FROM tab1 WHERE NOT ( + 44 - 63 ) <> - 57
----
0

skipif mysql # not compatible
query I rowsort label-2953
SELECT ALL COUNT ( - col2 ) FROM tab1 WHERE NOT ( + 44 - 63 ) <> - 57
----
0

query I rowsort
SELECT DISTINCT 62 + 65 * col1 FROM tab1 WHERE NOT - - col2 IS NOT NULL
----

query I rowsort
SELECT - + col0 AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2956
SELECT - COUNT( * ) + MIN( - col2 ) FROM tab2
----
-61

skipif mysql # not compatible
query I rowsort label-2956
SELECT - COUNT ( * ) + MIN ( - col2 ) FROM tab2
----
-61

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 JOIN tab1 cor1 ON NULL <= + ( - 74 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - col0 col1 FROM tab1 cor0
----
-23
-26
45

query II rowsort
SELECT DISTINCT + col0 AS col1, 83 FROM tab1 AS cor0
----
51
83
85
83
91
83

query I rowsort
SELECT DISTINCT + 70 * + + col2 + col1 FROM tab0 AS cor0
----
3371
6931
721

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col2 col0, + ( - col2 ) FROM tab2 cor0
----
23
-23
40
-40
58
-58

query I rowsort
SELECT - 98 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) <= NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 61 * - + col0 = NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL = col0
----

query I rowsort
SELECT DISTINCT 54 + + + col1 FROM tab2 AS cor0
----
105
121
131

query I rowsort
SELECT DISTINCT - col1 FROM tab1 AS cor0 WHERE 18 - col1 NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT ALL - col2 + + - col1 FROM tab1
----
-110
-115
-64

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) >= col0
----

query I rowsort
SELECT DISTINCT col0 + - + 62 AS col0 FROM tab0
----
-47
25
35

onlyif mysql # aggregate syntax: 
query I rowsort label-2970
SELECT ALL 27 - + COUNT( * ) FROM tab0
----
24

skipif mysql # not compatible
query I rowsort label-2970
SELECT ALL 27 - + COUNT ( * ) FROM tab0
----
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 49 * + + 85 col2, + col1 AS col0 FROM tab0
----
4165
1
4165
21
4165
81

query I rowsort
SELECT DISTINCT + AVG ( 57 ) AS col2 FROM tab2 WHERE NULL IN ( + col0 - + + col2 * + col1 )
----
NULL

query I rowsort
SELECT - 73 - - + ( 91 ) AS col2 FROM tab2
----
18
18
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 22 - - col1 * - col0 col0 FROM tab0
----
-1193
-1805
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2975
SELECT - 90 * + CAST( NULL AS SIGNED ) - - - ( COUNT( * ) ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2975
SELECT - 90 * + CAST ( NULL AS INTEGER ) - - - ( COUNT ( * ) ) AS col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2976
SELECT ALL + + SUM( - col0 ) FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-2976
SELECT ALL + + SUM ( - col0 ) FROM tab2 AS cor0
----
-185

query I rowsort
SELECT + 14 + - + col2 FROM tab0 AS cor0
----
-33
-85
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2978
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - + 50 + col0 + + - 94 * col0 * col2 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2978
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - + 50 + col0 + + - 94 * col0 * col2 AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL ( + col2 ) + 21 - - col1 AS col1 FROM tab2 AS cor0
----
138
146
95

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( 82 NOT BETWEEN 96 * col1 AND NULL )
----

query I rowsort
SELECT + 63 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to c3eea92c46f2c49716f386a58b575025

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - - col0 * - 3 < + col2 + - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2983
SELECT DISTINCT + CAST( - col0 AS SIGNED ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-2983
SELECT DISTINCT + CAST ( - col0 AS INTEGER ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-51
-85
-91

query I rowsort
SELECT - 56 * + - 51 AS col1 FROM tab1 AS cor0
----
2856
2856
2856

query I rowsort
SELECT + col2 FROM tab1 AS cor0 WHERE NOT NULL <= ( NULL )
----

query IIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2987
SELECT MIN( DISTINCT 92 ) col2 FROM tab1
----
92

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2987
SELECT MIN ( DISTINCT 92 ) col2 FROM tab1
----
92

query II rowsort
SELECT col0 * + - col1, 33 + col1 AS col2 FROM tab0
----
-1215
114
-1827
54
-97
34

query II rowsort
SELECT ALL + 38, + col1 AS col2 FROM tab1
----
38
14
38
47
38
5

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( + ( - - col1 ) ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 AS col2, col0 col2 FROM tab0
----
-10
87
-47
15
-99
97

onlyif mysql # DIV for integer division: 
query II rowsort label-2992
SELECT DISTINCT col0, + col0 DIV - + col1 FROM tab0
----
15
0
87
-4
97
-97

skipif mysql # not compatible
query II rowsort label-2992
SELECT DISTINCT col0, + col0 / - + col1 FROM tab0
----
15
0
87
-4
97
-97

query II rowsort
SELECT ALL col2 AS col2, - ( - col1 ) FROM tab1 AS cor0
----
59
5
68
47
96
14

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 80 + - 78 * 55 - - 57 * + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( NULL ) = + - col0 + - + col1
----

query I rowsort
SELECT - + 14 + col2 FROM tab0 AS cor0
----
-4
33
85

query II rowsort
SELECT - 14 AS col1, col0 AS col0 FROM tab2 AS cor0
----
-14
46
-14
64
-14
75

onlyif mysql # aggregate syntax: 
query II rowsort label-2998
SELECT DISTINCT 64 + - ( + MIN( ALL col1 ) ) + + 54 AS col1, ( + - 34 ) FROM tab0
----
117
-34

skipif mysql # not compatible
query II rowsort label-2998
SELECT DISTINCT 64 + - ( + MIN ( ALL col1 ) ) + + 54 AS col1, ( + - 34 ) FROM tab0
----
117
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-2999
SELECT DISTINCT COUNT( * ) AS col1 FROM tab2 WHERE NOT - - 88 NOT IN ( 71 * + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-2999
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab2 WHERE NOT - - 88 NOT IN ( 71 * + col2 )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3000
SELECT DISTINCT SUM( col1 ) AS col1, + MIN( DISTINCT - + col2 ) * + 21 AS col0 FROM tab0 AS cor0
----
103
-2079

skipif mysql # not compatible
query II rowsort label-3000
SELECT DISTINCT SUM ( col1 ) AS col1, + MIN ( DISTINCT - + col2 ) * + 21 AS col0 FROM tab0 AS cor0
----
103
-2079

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col0 AND 44
----

query I rowsort
SELECT DISTINCT + - 52 + - 58 AS col0 FROM tab1 AS cor0
----
-110

query I rowsort
SELECT - col1 AS col1 FROM tab1 AS cor0 WHERE col1 > + + col2 * + col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3004
SELECT + COUNT( * ) + - + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3004
SELECT + COUNT ( * ) + - + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - + col2 + - - 9 FROM tab0 AS cor0
----
-1
-38
-90

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT ALL 23 + - col1 FROM tab0 AS cor0
----
-58
2
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3008
SELECT DISTINCT 78 / - 65 * - + CAST( NULL AS SIGNED ) + + col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3008
SELECT DISTINCT 78 / - 65 * - + CAST ( NULL AS INTEGER ) + + col1 FROM tab2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3009
SELECT - 83 + - + COUNT( * ) / + + CAST( NULL AS SIGNED ) * - 27 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3009
SELECT - 83 + - + COUNT ( * ) / + + CAST ( NULL AS INTEGER ) * - 27 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3010
SELECT DISTINCT - CAST( NULL AS SIGNED ) - + 24 AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3010
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - + 24 AS col1 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-3011
SELECT DISTINCT * FROM tab0 WHERE CAST( NULL AS DECIMAL ) + CAST( 96 AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3011
SELECT DISTINCT * FROM tab0 WHERE CAST ( NULL AS REAL ) + CAST ( 96 AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 NOT BETWEEN NULL AND ( + + col0 + - col1 )
----

query I rowsort
SELECT ALL - 18 - + - col2 AS col1 FROM tab2
----
22
40
5

query III rowsort
SELECT * FROM tab0 WHERE - 31 IS NULL
----

query I rowsort
SELECT DISTINCT col0 * + col0 - col1 AS col1 FROM tab2 AS cor0
----
2065
4019
5558

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL > - 48 - - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3017
SELECT COUNT( DISTINCT + + col0 ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3017
SELECT COUNT ( DISTINCT + + col0 ) FROM tab2 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3018
SELECT ALL + + SUM( ALL - col2 ) AS col0 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-3018
SELECT ALL + + SUM ( ALL - col2 ) AS col0 FROM tab1 AS cor0
----
-223

onlyif mysql # DIV for integer division: 
query I rowsort label-3019
SELECT 28 DIV - col2 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3019
SELECT 28 / - col2 AS col2 FROM tab1
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + 87 ) > NULL
----

query II rowsort
SELECT ALL + - col0 * - - ( + col2 ) * - col0 * - - 71, col2 * + ( + - col1 ) AS col1 FROM tab2 AS cor0
----
11632640
-3080
23163750
-3886
3455428
-1173

query I rowsort
SELECT DISTINCT + 95 * + 75 FROM tab1 AS cor0
----
7125

query I rowsort
SELECT - col1 * 83 FROM tab0 AS cor0
----
-1743
-6723
-83

query I rowsort
SELECT ALL - - col1 AS col2 FROM tab2 cor0 WHERE - + 78 IS NOT NULL OR NOT NULL IS NULL
----
51
67
77

query I rowsort
SELECT + 17 * col2 * + + col1 + col2 FROM tab2 AS cor0
----
19964
52400
66120

onlyif mysql # aggregate syntax: 
query I rowsort label-3026
SELECT + 22 * + COUNT( ALL + + 69 ) AS col1 FROM tab1 cor0
----
66

skipif mysql # not compatible
query I rowsort label-3026
SELECT + 22 * + COUNT ( ALL + + 69 ) AS col1 FROM tab1 cor0
----
66

query I rowsort
SELECT + ( + + col1 ) * ( 89 ) + - col0 FROM tab2
----
4493
5888
6789

query I rowsort
SELECT DISTINCT - + col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-1
-21
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-3029
SELECT DISTINCT col0 DIV - - 73 AS col1 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-3029
SELECT DISTINCT col0 / - - 73 AS col1 FROM tab0
----
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3030
SELECT + CAST( NULL AS SIGNED ), + col1 FROM tab0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-3030
SELECT + CAST ( NULL AS INTEGER ), + col1 FROM tab0
----
NULL
1
NULL
21
NULL
81

onlyif mysql # DIV for integer division: 
query I rowsort label-3031
SELECT col0 DIV + + col1 AS col0 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3031
SELECT col0 / + + col1 AS col0 FROM tab2
----
0
0
1

query II rowsort
SELECT - col2 AS col2, + 53 FROM tab0 AS cor0
----
-10
53
-47
53
-99
53

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE ( - 34 ) + + col1 + - ( + + col2 ) IS NULL
----

query I rowsort
SELECT ALL col0 + - 69 FROM tab0
----
-54
18
28

query I rowsort
SELECT 64 + - col1 AS col1 FROM tab0 AS cor0
----
-17
43
63

onlyif mysql # aggregate syntax: 
query I rowsort label-3036
SELECT ALL - COUNT( DISTINCT + 27 ) FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3036
SELECT ALL - COUNT ( DISTINCT + 27 ) FROM tab1 AS cor0
----
-1

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE - 91 IN ( - + ( - - col1 ) * col1 - - - 7 + - col2 + + col0 / - - col1, col0 * - col1 )
----

query I rowsort
SELECT + col0 * + 74 + col1 FROM tab2 cor0
----
3455
4813
5617

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3039
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - CAST( - 52 AS SIGNED ) >= NULL
----

skipif mysql # not compatible
query III rowsort label-3039
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - CAST ( - 52 AS INTEGER ) >= NULL
----

query I rowsort
SELECT col2 * + + col2 AS col0 FROM tab0 AS cor0
----
100
2209
9801

onlyif mysql # DIV for integer division: 
query II rowsort label-3041
SELECT DISTINCT 15 AS col2, 34 DIV + 89 FROM tab0 cor0
----
15
0

skipif mysql # not compatible
query II rowsort label-3041
SELECT DISTINCT 15 AS col2, 34 / + 89 FROM tab0 cor0
----
15
0

query I rowsort
SELECT DISTINCT - - 81 * - 77 AS col1 FROM tab2 AS cor0
----
-6237

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 NOT IN ( - + col0 + 60 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-3044
SELECT ALL * FROM tab0, tab1 AS cor0 WHERE NOT NULL <> - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query IIIIII rowsort label-3044
SELECT ALL * FROM tab0, tab1 AS cor0 WHERE NOT NULL <> - - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3045
SELECT ALL + COUNT( * ) - COUNT( * ) * 26 FROM tab1
----
-75

skipif mysql # not compatible
query I rowsort label-3045
SELECT ALL + COUNT ( * ) - COUNT ( * ) * 26 FROM tab1
----
-75

query I rowsort
SELECT col2 * - 13 - + + ( col0 ) AS col2 FROM tab0
----
-1384
-217
-626

onlyif mysql # aggregate syntax: 
query I rowsort label-3047
SELECT ALL 47 - - MAX( DISTINCT + col2 ) + COUNT( DISTINCT col2 ) * + COUNT( * ) - + COUNT( * ) col1 FROM tab1
----
149

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3047
SELECT ALL 47 - - MAX ( DISTINCT + col2 ) + COUNT ( DISTINCT col2 ) * + COUNT ( * ) - + COUNT ( * ) col1 FROM tab1
----
149

onlyif mysql # aggregate syntax: 
query I rowsort label-3048
SELECT - COUNT( * ) * + + COUNT( DISTINCT + 98 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3048
SELECT - COUNT ( * ) * + + COUNT ( DISTINCT + 98 ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT ALL + col2 * + - col2 AS col0 FROM tab1 AS cor0
----
-3481
-4624
-9216

query I rowsort
SELECT DISTINCT - col2 FROM tab2 WHERE NOT + + col2 IN ( - 5 - - + col1 * - - col1 * col1, ( + - 33 ) )
----
-23
-40
-58

onlyif mysql # DIV for integer division: 
query II rowsort label-3051
SELECT - col0 AS col2, + col0 DIV + - col1 AS col1 FROM tab1
----
-51
-3
-85
-17
-91
-1

skipif mysql # not compatible
query II rowsort label-3051
SELECT - col0 AS col2, + col0 / + - col1 AS col1 FROM tab1
----
-51
-3
-85
-17
-91
-1

query I rowsort
SELECT ALL + 41 AS col1 FROM tab2
----
41
41
41

query II rowsort
SELECT 4, col2 AS col1 FROM tab2
----
4
23
4
40
4
58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3054
SELECT - 45 * + 79 * + col1 AS col1, CAST( NULL AS SIGNED ) * + 89 + - + 77 + + + 68 FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( + 20 )
----

skipif mysql # not compatible
query II rowsort label-3054
SELECT - 45 * + 79 * + col1 AS col1, CAST ( NULL AS INTEGER ) * + 89 + - + 77 + + + 68 FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( + 20 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( col2 + - 44 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + - 15 AS col1 FROM tab0 cor0
----
-15
-15
-15

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 43 / + + col2 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3058
SELECT + - CAST( - ( col1 ) AS SIGNED ) * ( - 10 ) + - col0 col1 FROM tab2 AS cor0
----
-556
-745
-834

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3058
SELECT + - CAST ( - ( col1 ) AS INTEGER ) * ( - 10 ) + - col0 col1 FROM tab2 AS cor0
----
-556
-745
-834

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + - col2 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3060
SELECT + COUNT( ALL + col0 ) FROM tab1 WHERE NOT - - ( - 75 ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-3060
SELECT + COUNT ( ALL + col0 ) FROM tab1 WHERE NOT - - ( - 75 ) IS NULL
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-3061
SELECT col0 DIV col2 AS col0, col1 AS col2 FROM tab1
----
0
14
1
47
1
5

skipif mysql # not compatible
query II rowsort label-3061
SELECT col0 / col2 AS col0, col1 AS col2 FROM tab1
----
0
14
1
47
1
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3062
SELECT ALL - 68 * - 22 * - COUNT( * ) FROM tab1
----
-4488

skipif mysql # not compatible
query I rowsort label-3062
SELECT ALL - 68 * - 22 * - COUNT ( * ) FROM tab1
----
-4488

query II rowsort
SELECT + col2 * - col1 AS col0, col0 FROM tab2
----
-1173
46
-3080
64
-3886
75

query II rowsort
SELECT + col0 + - - col0 AS col2, 27 AS col1 FROM tab0
----
174
27
194
27
30
27

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 88 + ( + - col2 ) + - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - + 91 + - 67 AS col2 FROM tab0 AS cor0
----
-158

query I rowsort
SELECT - col1 FROM tab2 AS cor0 WHERE + col1 IS NOT NULL
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-3068
SELECT ALL + 5 + - COUNT( * ) FROM tab1 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-3068
SELECT ALL + 5 + - COUNT ( * ) FROM tab1 AS cor0
----
2

query II rowsort
SELECT DISTINCT col0 * - col0 * 64 + - col1 + + + col0, 56 AS col0 FROM tab0 AS cor0
----
-14466
56
-484350
56
-602080
56

onlyif mysql # aggregate syntax: 
query I rowsort label-3070
SELECT ALL SUM( + 56 ) col1 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
504

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3070
SELECT ALL SUM ( + 56 ) col1 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
504

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( col0 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3072
SELECT - + CAST( NULL AS SIGNED ) * 27 + - 50 - - 92 + + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3072
SELECT - + CAST ( NULL AS INTEGER ) * 27 + - 50 - - 92 + + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( + + col1 ) * col0 + + col0 AS col0 FROM tab0 AS cor0 WHERE - 30 BETWEEN + + col2 AND NULL
----

query I rowsort
SELECT + - col2 * col0 + - col1 * - 45 FROM tab1 AS cor0
----
-4073
-4266
-4790

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + col0 col0 FROM tab0 cor0
----
108
96
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3076
SELECT ALL - COUNT( * ) + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-3076
SELECT ALL - COUNT ( * ) + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-6

query I rowsort
SELECT - col2 + + + 74 + + - col1 * + - col0 FROM tab1 AS cor0
----
4283
440
692

onlyif mysql # DIV for integer division: 
query III rowsort label-3078
SELECT DISTINCT + col0 AS col0, col1 AS col1, + - col1 - + + 79 DIV - 11 AS col1 FROM tab0
----
9 values hashing to 3f1de134b708d826da2b28a54c4e7fd0

skipif mysql # not compatible
query III rowsort label-3078
SELECT DISTINCT + col0 AS col0, col1 AS col1, + - col1 - + + 79 / - 11 AS col1 FROM tab0
----
9 values hashing to 3f1de134b708d826da2b28a54c4e7fd0

query II rowsort
SELECT DISTINCT - col0 AS col1, col2 FROM tab2
----
-46
23
-64
40
-75
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3080
SELECT ALL ( + - COUNT( * ) ) * 30 * ( + 45 ) FROM tab1
----
-4050

skipif mysql # not compatible
query I rowsort label-3080
SELECT ALL ( + - COUNT ( * ) ) * 30 * ( + 45 ) FROM tab1
----
-4050

query I rowsort
SELECT ALL + ( + col0 ) * - col1 FROM tab1
----
-425
-4277
-714

query I rowsort
SELECT col0 * 53 * + col0 FROM tab0 AS cor0
----
11925
401157
498677

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3083
SELECT + ( - - MIN( + CAST( + 87 AS SIGNED ) ) ) + + CAST( NULL AS SIGNED ) AS col2 FROM tab1 cor0 WHERE NOT + 63 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3083
SELECT + ( - - MIN ( + CAST ( + 87 AS INTEGER ) ) ) + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 cor0 WHERE NOT + 63 IS NOT NULL
----
NULL

query I rowsort
SELECT ALL + col1 * + col0 * - + col1 FROM tab2
----
-119646
-336675
-379456

query II rowsort
SELECT DISTINCT - ( + + 25 ) + + 12, + ( + col2 ) * - col0 AS col2 FROM tab2 AS cor0
----
-13
-1058
-13
-2560
-13
-4350

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3086
SELECT col0 * + CAST( NULL AS SIGNED ) + col2 + - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3086
SELECT col0 * + CAST ( NULL AS INTEGER ) + col2 + - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3087
SELECT DISTINCT - COUNT( * ) FROM tab0 AS cor0 WHERE NOT + 42 > - - 17
----
0

skipif mysql # not compatible
query I rowsort label-3087
SELECT DISTINCT - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT + 42 > - - 17
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - col0 ) + - ( - col2 ) col2 FROM tab0
----
-77
2
32

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NOT col2 * + 95 + - + col1 IN ( - + col0 * 79 - col2 ) )
----

query II rowsort
SELECT col2, col2 + - - col1 FROM tab0
----
10
31
47
128
99
100

query I rowsort
SELECT + 88 * + col1 FROM tab1
----
1232
4136
440

query I rowsort
SELECT DISTINCT + ( + 51 ) FROM tab0
----
51

query I rowsort
SELECT + 15 * col0 FROM tab1
----
1275
1365
765

query I rowsort
SELECT DISTINCT - 40 * + + col1 AS col2 FROM tab0
----
-3240
-40
-840

query I rowsort
SELECT + 87 + + + col1 FROM tab0
----
108
168
88

query I rowsort
SELECT DISTINCT + 35 - col0 + - - 80 FROM tab2
----
40
51
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3097
SELECT + CAST( NULL AS SIGNED ) * + COUNT( * ) AS col1, 22 AS col0 FROM tab1
----
NULL
22

skipif mysql # not compatible
query II rowsort label-3097
SELECT + CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col1, 22 AS col0 FROM tab1
----
NULL
22

onlyif mysql # CAST syntax: DECIMAL type: 
query IIIIII rowsort label-3098
SELECT * FROM tab1 AS cor0 JOIN tab2 AS cor1 ON NOT 46 + - 75 >= - CAST( + - 24 AS DECIMAL )
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

skipif mysql # not compatible
query IIIIII rowsort label-3098
SELECT * FROM tab1 AS cor0 JOIN tab2 AS cor1 ON NOT 46 + - 75 >= - CAST ( + - 24 AS REAL )
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT 84 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 50 * - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT 70 AS col2, ( 44 ) FROM tab0
----
70
44
70
44
70
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3102
SELECT ALL - MAX( DISTINCT - CAST( - 64 AS SIGNED ) ) AS col0 FROM tab2
----
-64

skipif mysql # not compatible
query I rowsort label-3102
SELECT ALL - MAX ( DISTINCT - CAST ( - 64 AS INTEGER ) ) AS col0 FROM tab2
----
-64

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3103
SELECT DISTINCT - col1 * + CAST( NULL AS DECIMAL ) * col2 AS col2 FROM tab0 AS cor0 WHERE 65 NOT IN ( - 98, col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3103
SELECT DISTINCT - col1 * + CAST ( NULL AS REAL ) * col2 AS col2 FROM tab0 AS cor0 WHERE 65 NOT IN ( - 98, col1 )
----
NULL

query I rowsort
SELECT ALL - col0 * + + col1 FROM tab0 AS cor0
----
-1215
-1827
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3105
SELECT DISTINCT + + COUNT( * ) - - + 12 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
21

skipif mysql # not compatible
query I rowsort label-3105
SELECT DISTINCT + + COUNT ( * ) - - + 12 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
21

query I rowsort
SELECT DISTINCT - 51 AS col0 FROM tab2 AS cor0
----
-51

query I rowsort
SELECT - col0 * + col1 + + col2 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-1168
-1817
2

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col0 * + col1 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 * - col0 BETWEEN + col1 AND NULL
----

query II rowsort
SELECT + col1 AS col1, + col2 FROM tab0 AS cor0
----
1
99
21
10
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3111
SELECT DISTINCT - - MIN( DISTINCT - col2 ) + + 90 AS col2 FROM tab2 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-3111
SELECT DISTINCT - - MIN ( DISTINCT - col2 ) + + 90 AS col2 FROM tab2 AS cor0
----
32

onlyif mysql # DIV for integer division: 
query I rowsort label-3112
SELECT DISTINCT ( - + 76 ) DIV col0 FROM tab0
----
-5
0

skipif mysql # not compatible
query I rowsort label-3112
SELECT DISTINCT ( - + 76 ) / col0 FROM tab0
----
-5
0

query I rowsort
SELECT ( - + col1 ) + col1 + - col1 AS col0 FROM tab2
----
-51
-67
-77

query I rowsort
SELECT ( + + col2 ) + + col1 - col1 AS col2 FROM tab2
----
23
40
58

query I rowsort
SELECT ALL - 79 - col2 AS col2 FROM tab2
----
-102
-119
-137

query I rowsort
SELECT DISTINCT ( - col2 ) * + + col1 FROM tab1
----
-1344
-295
-3196

onlyif mysql # DIV for integer division: 
query I rowsort label-3117
SELECT + col1 DIV - - col0 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-3117
SELECT + col1 / - - col0 FROM tab2 AS cor0
----
0
1
1

query I rowsort
SELECT DISTINCT + ( + ( - - col1 ) ) + col0 * + col1 FROM tab1 AS cor0
----
430
4324
728

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT IN ( 91, + ( + col1 ) + - 9 - - col1 * + 90 * + 18, col0 + - col0 / - col0, + 64 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3120
SELECT - + 86 * - col2 - - CAST( NULL AS SIGNED ) * ( + + 51 ) AS col0, - 11 FROM tab1 cor0
----
NULL
-11
NULL
-11
NULL
-11

skipif mysql # not compatible
query II rowsort label-3120
SELECT - + 86 * - col2 - - CAST ( NULL AS INTEGER ) * ( + + 51 ) AS col0, - 11 FROM tab1 cor0
----
NULL
-11
NULL
-11
NULL
-11

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL < - 64
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3122
SELECT CAST( MAX( + col2 ) AS SIGNED ) FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-3122
SELECT CAST ( MAX ( + col2 ) AS INTEGER ) FROM tab0 AS cor0
----
99

query II rowsort
SELECT ALL + + 54 AS col2, col2 + col0 FROM tab1 AS cor0
----
54
144
54
147
54
159

onlyif mysql # aggregate syntax: 
query I rowsort label-3124
SELECT ALL + COUNT( * ) * + 28 AS col0 FROM tab0 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-3124
SELECT ALL + COUNT ( * ) * + 28 AS col0 FROM tab0 AS cor0
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3125
SELECT DISTINCT - - col2 col1, + 44 / - CAST( NULL AS SIGNED ) AS col0 FROM tab1 cor0
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3125
SELECT DISTINCT - - col2 col1, + 44 / - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 cor0
----
59
NULL
68
NULL
96
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3126
SELECT ALL - 6 * SUM( DISTINCT + col1 ) DIV COUNT( * ) AS col0 FROM tab2 AS cor0
----
-390

skipif mysql # not compatible
query I rowsort label-3126
SELECT ALL - 6 * SUM ( DISTINCT + col1 ) / COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-390

onlyif mysql # DIV for integer division: 
query I rowsort label-3127
SELECT - 42 DIV - col0 * col0 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-3127
SELECT - 42 / - col0 * col0 col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3128
SELECT 45 + - 9 + CAST( + col0 AS SIGNED ) FROM tab2 AS cor0 WHERE NOT NULL < col2 + + col2
----

skipif mysql # not compatible
query I rowsort label-3128
SELECT 45 + - 9 + CAST ( + col0 AS INTEGER ) FROM tab2 AS cor0 WHERE NOT NULL < col2 + + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1, - 84 col0 FROM tab1 cor0
----
-14
-84
-47
-84
-5
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-3130
SELECT + MIN( ALL - col0 ) FROM tab2 cor0
----
-75

skipif mysql # not compatible
query I rowsort label-3130
SELECT + MIN ( ALL - col0 ) FROM tab2 cor0
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3131
SELECT col0 / + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3131
SELECT col0 / + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3132
SELECT + - ( - - COUNT( * ) ) FROM tab0 WHERE NOT col2 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3132
SELECT + - ( - - COUNT ( * ) ) FROM tab0 WHERE NOT col2 IS NULL
----
-3

query III rowsort
SELECT ALL * FROM tab0 WHERE ( - - col2 ) NOT IN ( + col2, - col0 * - + col1, + - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3134
SELECT ALL - MAX( - - 79 ) FROM tab2 AS cor0
----
-79

skipif mysql # not compatible
query I rowsort label-3134
SELECT ALL - MAX ( - - 79 ) FROM tab2 AS cor0
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-3135
SELECT + SUM( DISTINCT - col1 ) AS col0 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-3135
SELECT + SUM ( DISTINCT - col1 ) AS col0 FROM tab1 AS cor0
----
-66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * - col1 * - col1 col0 FROM tab2 AS cor0
----
-119646
-336675
-379456

query II rowsort
SELECT - + 42 * + 72, 74 AS col1 FROM tab0 cor0
----
-3024
74
-3024
74
-3024
74

onlyif mysql # aggregate syntax: 
query I rowsort label-3138
SELECT ALL + - COUNT( * ) * + - COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
81

skipif mysql # not compatible
query I rowsort label-3138
SELECT ALL + - COUNT ( * ) * + - COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
81

query II rowsort
SELECT ALL 68, col2 + col2 AS col0 FROM tab0
----
68
198
68
20
68
94

onlyif mysql # aggregate syntax: 
query I rowsort label-3140
SELECT DISTINCT ( + - COUNT( * ) ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-3140
SELECT DISTINCT ( + - COUNT ( * ) ) AS col0 FROM tab2
----
-3

query I rowsort
SELECT + 33 + 40 * - col0 AS col2 FROM tab0 AS cor0
----
-3447
-3847
-567

query I rowsort
SELECT + col0 + 68 * col1 FROM tab1 AS cor0
----
1003
3287
425

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3143
SELECT DISTINCT + ( - + 39 ) + CAST( NULL AS SIGNED ), - COUNT( * ) AS col1 FROM tab1 AS cor0
----
NULL
-3

skipif mysql # not compatible
query II rowsort label-3143
SELECT DISTINCT + ( - + 39 ) + CAST ( NULL AS INTEGER ), - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
NULL
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3144
SELECT + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab1 AS cor0 WHERE - 54 <> NULL
----

skipif mysql # not compatible
query I rowsort label-3144
SELECT + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab1 AS cor0 WHERE - 54 <> NULL
----

query I rowsort
SELECT - 38 + + col2 + - 55 + - 71 FROM tab2 AS cor0
----
-106
-124
-141

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3146
SELECT + CAST( + col0 AS SIGNED ) + - - col2 + - col0 + + col2 FROM tab1 AS cor0 WHERE NULL < NULL
----

skipif mysql # not compatible
query I rowsort label-3146
SELECT + CAST ( + col0 AS INTEGER ) + - - col2 + - col0 + + col2 FROM tab1 AS cor0 WHERE NULL < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3147
SELECT DISTINCT + CAST( - ( 71 ) AS SIGNED ) + - col1 - - - col1 + - - col2 + + 50 * col1 * col0 FROM tab0 AS cor0
----
4876
60564
91247

skipif mysql # not compatible
query I rowsort label-3147
SELECT DISTINCT + CAST ( - ( 71 ) AS INTEGER ) + - col1 - - - col1 + - - col2 + + 50 * col1 * col0 FROM tab0 AS cor0
----
4876
60564
91247

query I rowsort
SELECT ALL - 63 + - + col2 AS col2 FROM tab0 AS cor0
----
-110
-162
-73

query I rowsort
SELECT ALL col0 + + 18 AS col2 FROM tab1 AS cor0
----
103
109
69

onlyif mysql # DIV for integer division: 
query I rowsort label-3150
SELECT ALL col0 + 23 DIV col0 FROM tab0 AS cor0
----
16
87
97

skipif mysql # not compatible
query I rowsort label-3150
SELECT ALL col0 + 23 / col0 FROM tab0 AS cor0
----
16
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3151
SELECT + + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3151
SELECT + + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT - col1 FROM tab2 WHERE - + col1 * + col1 * + col1 IS NULL
----

query I rowsort
SELECT ALL 43 + + 88 FROM tab2
----
131
131
131

onlyif mysql # aggregate syntax: 
query I rowsort label-3154
SELECT COUNT( + - col0 ) FROM tab1 WHERE col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3154
SELECT COUNT ( + - col0 ) FROM tab1 WHERE col2 IS NULL
----
0

query I rowsort
SELECT 63 * col1 FROM tab1
----
2961
315
882

query I rowsort
SELECT col1 * ( + + col1 ) - - - ( col0 ) FROM tab0
----
-96
354
6546

query II rowsort
SELECT 4 - + col0 AS col2, - col2 AS col2 FROM tab1
----
-47
-96
-81
-59
-87
-68

query I rowsort
SELECT - - ( + col0 ) - + + col1 FROM tab2 AS cor0
----
-13
-5
8

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + - col2 IS NULL AND col2 - - col2 + - col1 IS NULL
----

query I rowsort
SELECT 22 FROM ( tab1 AS cor0 CROSS JOIN tab1 cor1 )
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

onlyif mysql # aggregate syntax: 
query II rowsort label-3161
SELECT 91 col1, - COUNT( DISTINCT 50 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
91
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3161
SELECT 91 col1, - COUNT ( DISTINCT 50 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
91
-1

query II rowsort
SELECT DISTINCT ( - col2 ), col0 FROM tab0
----
-10
87
-47
15
-99
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3163
SELECT - - ( - MAX( col1 ) ) AS col0 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-3163
SELECT - - ( - MAX ( col1 ) ) AS col0 FROM tab0 AS cor0
----
-81

query I rowsort
SELECT 51 * + - 34 FROM tab1 AS cor0
----
-1734
-1734
-1734

onlyif mysql # DIV for integer division: 
query I rowsort label-3165
SELECT ALL - - col0 * col1 DIV col1 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-3165
SELECT ALL - - col0 * col1 / col1 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT DISTINCT 27 * - + col0 * + col0 AS col0 FROM tab1 AS cor0
----
-195075
-223587
-70227

onlyif mysql # DIV for integer division: 
query I rowsort label-3167
SELECT ALL col1 DIV - - col0 AS col0 FROM tab0 AS cor0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-3167
SELECT ALL col1 / - - col0 AS col0 FROM tab0 AS cor0
----
0
0
5

query I rowsort
SELECT DISTINCT + - col0 + col0 AS col2 FROM tab0 AS cor0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3169
SELECT - MIN( DISTINCT - col1 ) AS col1 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-3169
SELECT - MIN ( DISTINCT - col1 ) AS col1 FROM tab0 AS cor0
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-3170
SELECT ALL col0 DIV + - 1 AS col0 FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-3170
SELECT ALL col0 / + - 1 AS col0 FROM tab1
----
-51
-85
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-3171
SELECT ( + - col0 ) DIV - ( col0 ) col2 FROM tab1
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3171
SELECT ( + - col0 ) / - ( col0 ) col2 FROM tab1
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3172
SELECT DISTINCT - COUNT( * ) * + + MIN( DISTINCT 33 ) FROM tab1
----
-99

skipif mysql # not compatible
query I rowsort label-3172
SELECT DISTINCT - COUNT ( * ) * + + MIN ( DISTINCT 33 ) FROM tab1
----
-99

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN + - col2 AND - 20 + col2
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 93 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 85 FROM tab0 AS cor0 WHERE col1 BETWEEN + col0 + col2 * + + col1 * col2 AND ( - - col0 - - 75 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( + col2 <= NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3177
SELECT ALL - ( 93 ) DIV + col1 + + col1 AS col0 FROM tab0 AS cor0
----
-92
17
80

skipif mysql # not compatible
query I rowsort label-3177
SELECT ALL - ( 93 ) / + col1 + + col1 AS col0 FROM tab0 AS cor0
----
-92
17
80

onlyif mysql # aggregate syntax: 
query I rowsort label-3178
SELECT - SUM( DISTINCT - ( col0 ) ) FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-3178
SELECT - SUM ( DISTINCT - ( col0 ) ) FROM tab2
----
185

query I rowsort
SELECT DISTINCT 34 * - - col0 AS col2 FROM tab0
----
2958
3298
510

onlyif mysql # aggregate syntax: 
query I rowsort label-3180
SELECT DISTINCT COUNT( * ) col0 FROM tab2 WHERE NOT + - 22 NOT BETWEEN NULL AND - 74
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3180
SELECT DISTINCT COUNT ( * ) col0 FROM tab2 WHERE NOT + - 22 NOT BETWEEN NULL AND - 74
----
0

query I rowsort
SELECT DISTINCT + 54 + - 28 FROM tab1 AS cor0
----
26

query I rowsort
SELECT ALL col1 + - col2 * - 81 FROM tab0 AS cor0
----
3888
8020
831

query I rowsort
SELECT 60 + + + col2 AS col0 FROM tab0 AS cor0
----
107
159
70

query I rowsort
SELECT ALL + - col2 + - col0 * 51 AS col1 FROM tab1 AS cor0
----
-2697
-4394
-4709

query II rowsort
SELECT DISTINCT - 6 + + col0 * col2 + - + 20, col0 AS col0 FROM tab1 AS cor0
----
4870
51
4989
85
6162
91

query I rowsort
SELECT - col2 * 77 + 31 AS col2 FROM tab2 AS cor0
----
-1740
-3049
-4435

query II rowsort
SELECT ALL + col1 * col1 * + + 78 * - ( + + col1 ) * - 42 + + col0 AS col2, - col2 * col2 AS col1 FROM tab1 AS cor0
----
340124239
-4624
409585
-3481
8989395
-9216

onlyif mysql # aggregate syntax: 
query I rowsort label-3188
SELECT - SUM( DISTINCT 57 ) + + COUNT( * ) FROM tab2 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-3188
SELECT - SUM ( DISTINCT 57 ) + + COUNT ( * ) FROM tab2 AS cor0
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3189
SELECT ALL CAST( NULL AS SIGNED ) - col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3189
SELECT ALL CAST ( NULL AS INTEGER ) - col1 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + col1 * + col1 * + 2 * - - ( + ( + + 35 ) ) col2 FROM tab0
----
2685690
6790
6889050

query I rowsort
SELECT DISTINCT + - 84 * - col0 AS col0 FROM tab2 AS cor0
----
3864
5376
6300

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 + - col1 - - col0 NOT BETWEEN col1 AND - + 36
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col2 * + col2 FROM tab0 AS cor0 WHERE ( + col1 ) <> - col2 * 0
----
100
2209
9801

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3194
SELECT + - 46 DIV - COUNT( * ) + - + COUNT( * ) * 53 AS col0 FROM tab2 AS cor0
----
-144

skipif mysql # not compatible
query I rowsort label-3194
SELECT + - 46 / - COUNT ( * ) + - + COUNT ( * ) * 53 AS col0 FROM tab2 AS cor0
----
-144

onlyif mysql # aggregate syntax: 
query I rowsort label-3195
SELECT DISTINCT COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT NULL IS NOT NULL
----
9

skipif mysql # not compatible
query I rowsort label-3195
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT NULL IS NOT NULL
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3196
SELECT ALL * FROM tab0 WHERE CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3196
SELECT ALL * FROM tab0 WHERE CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT 52 * + 79 FROM tab1
----
4108

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 56 col0, col2 AS col0 FROM tab1 WHERE + 78 * + + col1 NOT IN ( + col2 )
----
56
59
56
68
56
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3199
SELECT - CAST( NULL AS SIGNED ) * - + ( + 49 ) * COUNT( * ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3199
SELECT - CAST ( NULL AS INTEGER ) * - + ( + 49 ) * COUNT ( * ) AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3200
SELECT DISTINCT + MIN( + col0 ) FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-3200
SELECT DISTINCT + MIN ( + col0 ) FROM tab1 AS cor0
----
51

query I rowsort
SELECT ALL + col2 * + + 12 AS col0 FROM tab1
----
1152
708
816

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3202
SELECT + CAST( + col0 AS SIGNED ) DIV col1 AS col0 FROM tab0
----
0
4
97

skipif mysql # not compatible
query I rowsort label-3202
SELECT + CAST ( + col0 AS INTEGER ) / col1 AS col0 FROM tab0
----
0
4
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3203
SELECT DISTINCT ( - + COUNT( * ) ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3203
SELECT DISTINCT ( - + COUNT ( * ) ) AS col0 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3204
SELECT 75 / + 19 - - MAX( ALL - col1 ) AS col1 FROM tab2 AS cor0 WHERE NOT + 23 + - 4 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3204
SELECT 75 / + 19 - - MAX ( ALL - col1 ) AS col1 FROM tab2 AS cor0 WHERE NOT + 23 + - 4 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3205
SELECT ALL + 98 + - COUNT( * ) FROM tab2 AS cor0
----
95

skipif mysql # not compatible
query I rowsort label-3205
SELECT ALL + 98 + - COUNT ( * ) FROM tab2 AS cor0
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-3206
SELECT ALL + COUNT( ALL + + col0 ) AS col2 FROM tab0 AS cor0 WHERE NOT col0 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-3206
SELECT ALL + COUNT ( ALL + + col0 ) AS col2 FROM tab0 AS cor0 WHERE NOT col0 < NULL
----
0

query I rowsort
SELECT 17 + + - 33 + - col0 + + col0 * col1 FROM tab0
----
-16
1184
1724

query II rowsort
SELECT - col2 AS col1, 22 AS col2 FROM tab0 AS cor0
----
-10
22
-47
22
-99
22

onlyif mysql # aggregate syntax: 
query I rowsort label-3209
SELECT - - MAX( ALL + 42 ) FROM tab2 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-3209
SELECT - - MAX ( ALL + 42 ) FROM tab2 AS cor0
----
42

query I rowsort
SELECT DISTINCT 4 + + - col2 FROM tab1 AS cor0
----
-55
-64
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-3211
SELECT - - MIN( ALL + 56 ) AS col0 FROM tab2 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-3211
SELECT - - MIN ( ALL + 56 ) AS col0 FROM tab2 AS cor0
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3212
SELECT ALL + col0 * - col1 * + + ( + CAST( NULL AS SIGNED ) ) + + + col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3212
SELECT ALL + col0 * - col1 * + + ( + CAST ( NULL AS INTEGER ) ) + + + col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 AS col0, + col0 + + col1 col1 FROM tab1 AS cor0 WHERE NULL = - 13
----

query III rowsort
SELECT * FROM tab0 WHERE - col1 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3215
SELECT DISTINCT - col2 * - col0 DIV - col0 + + col1 + - 38 * - 14 AS col1 FROM tab0
----
434
543
566

skipif mysql # not compatible
query I rowsort label-3215
SELECT DISTINCT - col2 * - col0 / - col0 + + col1 + - 38 * - 14 AS col1 FROM tab0
----
434
543
566

query I rowsort
SELECT + 15 - - 81 FROM tab2
----
96
96
96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3217
SELECT DISTINCT + CAST( NULL AS SIGNED ) - + 5 AS col2, 78 AS col1 FROM tab2
----
NULL
78

skipif mysql # not compatible
query II rowsort label-3217
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - + 5 AS col2, 78 AS col1 FROM tab2
----
NULL
78

query I rowsort
SELECT 55 + + col0 AS col0 FROM tab0
----
142
152
70

onlyif mysql # aggregate syntax: 
query I rowsort label-3219
SELECT ALL COUNT( + 20 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3219
SELECT ALL COUNT ( + 20 ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3220
SELECT COUNT( + + ( 43 ) ) + + 47 + - 22 FROM tab1
----
28

skipif mysql # not compatible
query I rowsort label-3220
SELECT COUNT ( + + ( 43 ) ) + + 47 + - 22 FROM tab1
----
28

query I rowsort
SELECT - col1 * + 50 + - col2 AS col0 FROM tab0 AS cor0
----
-1060
-149
-4097

query I rowsort
SELECT 40 AS col1 FROM tab1 cor0
----
40
40
40

query I rowsort
SELECT DISTINCT - ( + 52 ) AS col2 FROM tab1 cor0
----
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3224
SELECT col1 * CAST( col0 AS SIGNED ) AS col0 FROM tab2
----
2346
4928
5025

skipif mysql # not compatible
query I rowsort label-3224
SELECT col1 * CAST ( col0 AS INTEGER ) AS col0 FROM tab2
----
2346
4928
5025

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE ( NULL ) >= NULL
----

query I rowsort
SELECT col2 * + 23 AS col1 FROM tab0
----
1081
2277
230

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col1 BETWEEN + - ( 57 ) AND - 32
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - + ( - col2 ) col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
100
2209
9801

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - ( + - col2 ) >= + + col2
----

query II rowsort
SELECT + col1 AS col2, + col0 * - col2 * + col0 FROM tab0 AS cor0
----
1
-931491
21
-75690
81
-10575

query I rowsort
SELECT ALL 56 * - col0 FROM tab0
----
-4872
-5432
-840

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
1
21
81

query I rowsort
SELECT DISTINCT - col1 * - - 18 FROM tab0
----
-1458
-18
-378

onlyif mysql # DIV for integer division: 
query II rowsort label-3234
SELECT - col2 DIV + + col2 col0, col0 AS col0 FROM tab2
----
-1
46
-1
64
-1
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3234
SELECT - col2 / + + col2 col0, col0 AS col0 FROM tab2
----
-1
46
-1
64
-1
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3235
SELECT DISTINCT 40 * + + COUNT( * ) AS col0 FROM tab2
----
120

skipif mysql # not compatible
query I rowsort label-3235
SELECT DISTINCT 40 * + + COUNT ( * ) AS col0 FROM tab2
----
120

onlyif mysql # aggregate syntax: 
query II rowsort label-3236
SELECT 34 AS col2, 69 * - MIN( ALL + col0 ) AS col2 FROM tab0
----
34
-1035

skipif mysql # not compatible
query II rowsort label-3236
SELECT 34 AS col2, 69 * - MIN ( ALL + col0 ) AS col2 FROM tab0
----
34
-1035

onlyif mysql # DIV for integer division: 
query I rowsort label-3237
SELECT DISTINCT 67 DIV col1 * - 93 FROM tab1
----
-1209
-372
-93

skipif mysql # not compatible
query I rowsort label-3237
SELECT DISTINCT 67 / col1 * - 93 FROM tab1
----
-1209
-372
-93

query I rowsort
SELECT - col1 + + - col2 FROM tab1
----
-110
-115
-64

query I rowsort
SELECT ALL - 89 * col1 FROM tab0 cor0
----
-1869
-7209
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-3240
SELECT COUNT( ALL + - col0 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3240
SELECT COUNT ( ALL + - col0 ) AS col0 FROM tab2 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3241
SELECT DISTINCT + 64 DIV + 80 * - col0 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3241
SELECT DISTINCT + 64 / + 80 * - col0 AS col0 FROM tab2
----
0

query III rowsort
SELECT * FROM tab2 cor0 WHERE + 74 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 59 - ( + col0 ) AS col1 FROM tab1 AS cor0
----
-110
-144
-150

onlyif mysql # aggregate syntax: 
query I rowsort label-3244
SELECT DISTINCT COUNT( * ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-3244
SELECT DISTINCT COUNT ( * ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
3

query I rowsort
SELECT + col2 * - + col0 + - col1 * + + col2 FROM tab1 AS cor0
----
-5310
-6240
-9384

query I rowsort
SELECT ALL + - col2 * - col0 + - + col2 * - 95 + col2 FROM tab1 AS cor0
----
10679
12716
14112

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3247
SELECT - 99 DIV - 65 + - + COUNT( * ) DIV 52 AS col0 FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-3247
SELECT - 99 / - 65 + - + COUNT ( * ) / 52 AS col0 FROM tab0 cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3248
SELECT DISTINCT SUM( col0 ) - + + COUNT( * ) FROM tab2 AS cor0
----
182

skipif mysql # not compatible
query I rowsort label-3248
SELECT DISTINCT SUM ( col0 ) - + + COUNT ( * ) FROM tab2 AS cor0
----
182

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3249
SELECT - col2 * 13 + + + 62 + - 54 * + col1 + col1 * - col1 FROM tab0 cor0 WHERE col0 > + CAST( col1 AS SIGNED )
----
-1280
-1643

skipif mysql # not compatible
query I rowsort label-3249
SELECT - col2 * 13 + + + 62 + - 54 * + col1 + col1 * - col1 FROM tab0 cor0 WHERE col0 > + CAST ( col1 AS INTEGER )
----
-1280
-1643

query I rowsort
SELECT DISTINCT - + 87 / col1 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3251
SELECT + 25 + - + 30 + - COUNT( * ) + COUNT( * ) FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-3251
SELECT + 25 + - + 30 + - COUNT ( * ) + COUNT ( * ) FROM tab1
----
-5

query I rowsort
SELECT ALL + col0 * col1 + - 44 AS col2 FROM tab0
----
1171
1783
53

onlyif mysql # aggregate syntax: 
query I rowsort label-3253
SELECT DISTINCT 13 + - - COUNT( DISTINCT - col1 ) FROM tab2
----
16

skipif mysql # not compatible
query I rowsort label-3253
SELECT DISTINCT 13 + - - COUNT ( DISTINCT - col1 ) FROM tab2
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3254
SELECT + col2 + + CAST( NULL AS SIGNED ) * - + col2 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3254
SELECT + col2 + + CAST ( NULL AS INTEGER ) * - + col2 AS col0 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT - - 36 AS col2, + col0 AS col2 FROM tab0 WHERE NULL IS NULL
----
36
15
36
87
36
97

query I rowsort
SELECT ALL col2 * + + col0 * - col0 + + 59 * + 66 FROM tab1
----
-245802
-422381
-559214

query I rowsort
SELECT - col2 FROM tab2 WHERE NOT + col1 + + - 92 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col2, - col0 - + - col0 FROM tab0 AS cor0
----
15
0
87
0
97
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3259
SELECT ALL - COUNT( + + 38 ) AS col1 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-3259
SELECT ALL - COUNT ( + + 38 ) AS col1 FROM tab2
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-3260
SELECT + 63 + - + 54 DIV + - 74 FROM tab0 AS cor0
----
63
63
63

skipif mysql # not compatible
query I rowsort label-3260
SELECT + 63 + - + 54 / + - 74 FROM tab0 AS cor0
----
63
63
63

query I rowsort
SELECT + + ( - + col1 ) + - + col2 FROM tab1 AS cor0
----
-110
-115
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-3262
SELECT SUM( ALL - + col2 ) AS col2 FROM tab1 cor0
----
-223

skipif mysql # not compatible
query I rowsort label-3262
SELECT SUM ( ALL - + col2 ) AS col2 FROM tab1 cor0
----
-223

query I rowsort
SELECT DISTINCT + - 62 * + 85 + - - 12 FROM tab2 AS cor0
----
-5258

onlyif mysql # aggregate syntax: 
query I rowsort label-3264
SELECT ALL + 84 * + - MIN( col1 ) AS col2 FROM tab2 cor0
----
-4284

skipif mysql # not compatible
query I rowsort label-3264
SELECT ALL + 84 * + - MIN ( col1 ) AS col2 FROM tab2 cor0
----
-4284

onlyif mysql # DIV for integer division: 
query II rowsort label-3265
SELECT DISTINCT col2 * + + col1 DIV + col1 AS col0, 54 * - 62 col0 FROM tab2
----
23
-3348
40
-3348
58
-3348

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3265
SELECT DISTINCT col2 * + + col1 / + col1 AS col0, 54 * - 62 col0 FROM tab2
----
23
-3348
40
-3348
58
-3348

query II rowsort
SELECT DISTINCT + 90, 12 * - - 82 * col2 * + - 24 AS col2 FROM tab1
----
90
-1393344
90
-1605888
90
-2267136

query I rowsort
SELECT - 34 * col1 + + col0 AS col2 FROM tab0 WHERE - + col1 IS NOT NULL
----
-2739
-627
63

query I rowsort
SELECT DISTINCT 11 AS col1 FROM tab1 cor0
----
11

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col0 <= NULL
----

query I rowsort
SELECT DISTINCT col2 + + + col1 AS col0 FROM tab1 AS cor0
----
110
115
64

onlyif mysql # aggregate syntax: 
query I rowsort label-3271
SELECT DISTINCT MAX( - + 88 ) + 26 AS col2 FROM tab2
----
-62

skipif mysql # not compatible
query I rowsort label-3271
SELECT DISTINCT MAX ( - + 88 ) + 26 AS col2 FROM tab2
----
-62

query I rowsort
SELECT col2 + + 82 FROM tab1 WHERE 38 IS NOT NULL
----
141
150
178

query II rowsort
SELECT DISTINCT 78 AS col0, + col2 + + 26 AS col1 FROM tab2 AS cor0
----
78
49
78
66
78
84

query I rowsort
SELECT col2 * - 64 * + + col0 AS col0 FROM tab2 cor0
----
-163840
-278400
-67712

onlyif mysql # aggregate syntax: 
query I rowsort label-3275
SELECT ALL ( SUM( ALL + 74 ) ) FROM tab1 AS cor0
----
222

skipif mysql # not compatible
query I rowsort label-3275
SELECT ALL ( SUM ( ALL + 74 ) ) FROM tab1 AS cor0
----
222

query I rowsort
SELECT ALL 40 * - 65 - + + col0 AS col0 FROM tab0 cor0
----
-2615
-2687
-2697

query I rowsort
SELECT ALL col1 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3278
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - CAST( - col1 AS SIGNED ) IS NOT NULL AND NOT NULL NOT IN ( 94 / ( col0 ) + + col0, CAST( NULL AS SIGNED ), + 92 )
----

skipif mysql # not compatible
query III rowsort label-3278
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - CAST ( - col1 AS INTEGER ) IS NOT NULL AND NOT NULL NOT IN ( 94 / ( col0 ) + + col0, CAST ( NULL AS INTEGER ), + 92 )
----

query I rowsort
SELECT ALL + + 63 * - + col0 * col0 + 68 + + 54 + + col1 AS col1 FROM tab1 AS cor0
----
-163727
-455048
-521534

onlyif mysql # DIV for integer division: 
query I rowsort label-3280
SELECT ALL - ( + col2 ) DIV + 22 AS col2 FROM tab0
----
-2
-4
0

skipif mysql # not compatible
query I rowsort label-3280
SELECT ALL - ( + col2 ) / + 22 AS col2 FROM tab0
----
-2
-4
0

query III rowsort
SELECT * FROM tab2 WHERE NOT 91 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 3 col0 FROM tab1
----
-3
-3
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-3283
SELECT DISTINCT - 81 DIV - col2 FROM tab2
----
1
2
3

skipif mysql # not compatible
query I rowsort label-3283
SELECT DISTINCT - 81 / - col2 FROM tab2
----
1
2
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + 91 col2 FROM tab0
----
1911
7371
91

query I rowsort
SELECT DISTINCT col0 FROM tab2 WHERE NOT NULL > - + ( 6 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3286
SELECT DISTINCT COUNT( - col0 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3286
SELECT DISTINCT COUNT ( - col0 ) FROM tab0
----
3

query I rowsort
SELECT - col1 FROM tab1 AS cor0 WHERE NOT - 39 = + + col2
----
-14
-47
-5

query I rowsort
SELECT DISTINCT + 55 * + + 32 AS col1 FROM tab0 cor0
----
1760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1, - 35 col2 FROM tab0
----
1
-35
21
-35
81
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-3290
SELECT ALL - - COUNT( ALL + col0 ) AS col0 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3290
SELECT ALL - - COUNT ( ALL + col0 ) AS col0 FROM tab0 cor0
----
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NOT ( NOT + 46 <= NULL ) )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3292
SELECT col0 col1, - 28 DIV col1 - col2 FROM tab2 cor0
----
46
-23
64
-40
75
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3292
SELECT col0 col1, - 28 / col1 - col2 FROM tab2 cor0
----
46
-23
64
-40
75
-58

query II rowsort
SELECT DISTINCT + col1, 28 AS col2 FROM tab2 AS cor0
----
51
28
67
28
77
28

query III rowsort
SELECT * FROM tab0 WHERE 71 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3295
SELECT 69 + + + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3295
SELECT 69 + + + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3296
SELECT COUNT( * ) + + - COUNT( * ), - 38 + - + COUNT( * ) AS col2 FROM tab1
----
0
-41

skipif mysql # not compatible
query II rowsort label-3296
SELECT COUNT ( * ) + + - COUNT ( * ), - 38 + - + COUNT ( * ) AS col2 FROM tab1
----
0
-41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - + col1 * + + col0 col0 FROM tab0
----
-1134
-1806
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3298
SELECT COUNT( * ) + - + COUNT( - 28 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3298
SELECT COUNT ( * ) + - + COUNT ( - 28 ) FROM tab1
----
0

query I rowsort
SELECT 56 FROM tab2 WHERE NULL IS NULL
----
56
56
56

query I rowsort
SELECT + col2 * + + 7 + + - 40 AS col0 FROM tab2
----
121
240
366

query III rowsort
SELECT * FROM tab2 WHERE + - 72 NOT BETWEEN + 65 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3302
SELECT - ( + - COUNT( * ) ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3302
SELECT - ( + - COUNT ( * ) ) AS col2 FROM tab2
----
3

query II rowsort
SELECT - col0 AS col1, - col2 FROM tab1
----
-51
-96
-85
-59
-91
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-3304
SELECT DISTINCT + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9

skipif mysql # not compatible
query I rowsort label-3304
SELECT DISTINCT + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9

query I rowsort
SELECT DISTINCT - + 57 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-57

query III rowsort
SELECT ALL * FROM tab2 WHERE - + 83 * col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + - col1 + - 81 AS col1 FROM tab1 WHERE NOT + col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 - + 78 FROM tab0 cor0
----
-57
-77
3

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3309
SELECT * FROM tab2 AS cor0 WHERE + col1 <= - + ( - - 58 ) * - + 14 * + 97 + + + CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-3309
SELECT * FROM tab2 AS cor0 WHERE + col1 <= - + ( - - 58 ) * - + 14 * + 97 + + + CAST ( NULL AS REAL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3310
SELECT ALL - MIN( ALL + - 29 ) AS col1 FROM tab0 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-3310
SELECT ALL - MIN ( ALL + - 29 ) AS col1 FROM tab0 AS cor0
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3311
SELECT DISTINCT - 2 * - CAST( ( - col2 ) AS SIGNED ) FROM tab1 cor0
----
-118
-136
-192

skipif mysql # not compatible
query I rowsort label-3311
SELECT DISTINCT - 2 * - CAST ( ( - col2 ) AS INTEGER ) FROM tab1 cor0
----
-118
-136
-192

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 + + col1 + - col0, + col2 col0 FROM tab2 AS cor0
----
-46
23
-64
40
-75
58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3313
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col2, - col2 * col0 * + + 43 / - col2 - CAST( NULL AS SIGNED ), - - col2 * 53 )
----

skipif mysql # not compatible
query III rowsort label-3313
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col2, - col2 * col0 * + + 43 / - col2 - CAST ( NULL AS INTEGER ), - - col2 * 53 )
----

query I rowsort
SELECT + 88 * - 8 AS col0 FROM tab1 AS cor0
----
-704
-704
-704

onlyif mysql # aggregate syntax: 
query II rowsort label-3315
SELECT - + 18 AS col2, + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-18
3

skipif mysql # not compatible
query II rowsort label-3315
SELECT - + 18 AS col2, + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-18
3

query I rowsort
SELECT DISTINCT + - ( - 94 ) FROM tab2 AS cor0
----
94

query I rowsort
SELECT - 93 * col2 AS col2 FROM tab1 AS cor0
----
-5487
-6324
-8928

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 44 AS col0, col0 col2 FROM tab2
----
44
46
44
64
44
75

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 74 IS NOT NULL
----

query I rowsort
SELECT ALL 90 FROM tab0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 9 col1, + col2 FROM tab0
----
-9
10
-9
47
-9
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3322
SELECT ( - ( - SUM( - col1 ) ) ) AS col1 FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-3322
SELECT ( - ( - SUM ( - col1 ) ) ) AS col1 FROM tab0
----
-103

query II rowsort
SELECT ALL + - col1, ( col2 ) AS col1 FROM tab1 AS cor0
----
-14
96
-47
68
-5
59

onlyif mysql # aggregate syntax: 
query II rowsort label-3324
SELECT + 62 AS col1, COUNT( * ) * ( MIN( DISTINCT - + col2 ) ) AS col1 FROM tab1 AS cor0
----
62
-288

skipif mysql # not compatible
query II rowsort label-3324
SELECT + 62 AS col1, COUNT ( * ) * ( MIN ( DISTINCT - + col2 ) ) AS col1 FROM tab1 AS cor0
----
62
-288

onlyif mysql # aggregate syntax: 
query I rowsort label-3325
SELECT - COUNT( * ) * + - 64 * MIN( ALL + ( + 93 ) ) FROM tab0 AS cor0
----
17856

skipif mysql # not compatible
query I rowsort label-3325
SELECT - COUNT ( * ) * + - 64 * MIN ( ALL + ( + 93 ) ) FROM tab0 AS cor0
----
17856

query I rowsort
SELECT col1 * - - col1 AS col0 FROM tab1 AS cor0
----
196
2209
25

onlyif mysql # DIV for integer division: 
query I rowsort label-3327
SELECT - 34 DIV + 85 * 52 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3327
SELECT - 34 / + 85 * 52 FROM tab2 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3328
SELECT COUNT( * ) + 4 * + COUNT( * ) AS col2 FROM tab1 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-3328
SELECT COUNT ( * ) + 4 * + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
15

query I rowsort
SELECT DISTINCT - - 94 + + col1 + + 76 * - ( - 51 ) - - col1 FROM tab1 AS cor0
----
3980
3998
4064

onlyif mysql # aggregate syntax: 
query I rowsort label-3330
SELECT + 95 + 54 + + SUM( - 2 ) FROM tab2 AS cor0
----
143

skipif mysql # not compatible
query I rowsort label-3330
SELECT + 95 + 54 + + SUM ( - 2 ) FROM tab2 AS cor0
----
143

query I rowsort
SELECT DISTINCT - col2 * - 88 FROM tab1 cor0 WHERE ( NULL ) BETWEEN NULL AND + 47 - + col0
----

query I rowsort
SELECT DISTINCT + 38 + - - 36 FROM tab2 AS cor0
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3333
SELECT CAST( 87 AS SIGNED ) + - col1 AS col1 FROM tab1 AS cor0
----
40
73
82

skipif mysql # not compatible
query I rowsort label-3333
SELECT CAST ( 87 AS INTEGER ) + - col1 AS col1 FROM tab1 AS cor0
----
40
73
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - + col0 + + 41 col0 FROM tab2 AS cor0
----
-2305
-4887
-4984

onlyif mysql # aggregate syntax: 
query II rowsort label-3335
SELECT DISTINCT + + COUNT( * ) + + COUNT( * ) AS col2, 46 FROM tab2 AS cor0
----
6
46

skipif mysql # not compatible
query II rowsort label-3335
SELECT DISTINCT + + COUNT ( * ) + + COUNT ( * ) AS col2, 46 FROM tab2 AS cor0
----
6
46

query I rowsort
SELECT ALL - ( col2 ) * - - col2 + - 18 AS col0 FROM tab2 cor0
----
-1618
-3382
-547

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + - 72 col0 FROM tab1
----
1008
3384
360

onlyif mysql # DIV for integer division: 
query I rowsort label-3338
SELECT 15 DIV - - col2 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3338
SELECT 15 / - - col2 AS col1 FROM tab2
----
0
0
0

query II rowsort
SELECT ALL + col2 AS col1, col2 * + - 4 FROM tab0 WHERE NOT ( - col2 + + + col1 + + 72 ) NOT BETWEEN + 51 * col2 AND NULL
----

query II rowsort
SELECT DISTINCT + col0, 34 + col2 + + col2 + + col2 AS col2 FROM tab0 AS cor0
----
15
175
87
64
97
331

onlyif mysql # aggregate syntax: 
query I rowsort label-3341
SELECT ALL - COUNT( * ) * + COUNT( * ) + + 65 AS col2 FROM tab2 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-3341
SELECT ALL - COUNT ( * ) * + COUNT ( * ) + + 65 AS col2 FROM tab2 AS cor0
----
56

query I rowsort
SELECT + col0 - + col0 FROM tab2 AS cor0 WHERE ( col0 ) BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3343
SELECT + 25 + - - 15 * - + COUNT( * ) FROM tab0 AS cor0
----
-20

skipif mysql # not compatible
query I rowsort label-3343
SELECT + 25 + - - 15 * - + COUNT ( * ) FROM tab0 AS cor0
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-3344
SELECT 10 * + 50 * 97 + + MIN( + + 42 ) AS col0 FROM tab0 AS cor0
----
48542

skipif mysql # not compatible
query I rowsort label-3344
SELECT 10 * + 50 * 97 + + MIN ( + + 42 ) AS col0 FROM tab0 AS cor0
----
48542

onlyif mysql # aggregate syntax: 
query I rowsort label-3345
SELECT DISTINCT - COUNT( * ) - + 71 AS col1 FROM tab2 AS cor0
----
-74

skipif mysql # not compatible
query I rowsort label-3345
SELECT DISTINCT - COUNT ( * ) - + 71 AS col1 FROM tab2 AS cor0
----
-74

query III rowsort
SELECT ALL * FROM tab1 WHERE + ( col0 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3347
SELECT DISTINCT - col1 DIV 31 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-3347
SELECT DISTINCT - col1 / 31 FROM tab1
----
-1
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col1 <> + col1 / col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3349
SELECT - MAX( col2 ) + + COUNT( * ) col2 FROM tab2
----
-55

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3349
SELECT - MAX ( col2 ) + + COUNT ( * ) col2 FROM tab2
----
-55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 1 * 40 col1 FROM tab0
----
40
40
40

query I rowsort
SELECT ALL + 35 AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - col0 AS col0 FROM tab0 WHERE NOT ( + col0 ) IS NULL
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3353
SELECT DISTINCT COUNT( * ) * + SUM( DISTINCT col1 ) AS col1 FROM tab1
----
198

skipif mysql # not compatible
query I rowsort label-3353
SELECT DISTINCT COUNT ( * ) * + SUM ( DISTINCT col1 ) AS col1 FROM tab1
----
198

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3354
SELECT * FROM tab2 WHERE NOT - CAST( NULL AS SIGNED ) NOT BETWEEN CAST( col1 AS SIGNED ) AND col0
----

skipif mysql # not compatible
query III rowsort label-3354
SELECT * FROM tab2 WHERE NOT - CAST ( NULL AS INTEGER ) NOT BETWEEN CAST ( col1 AS INTEGER ) AND col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3355
SELECT DISTINCT + COUNT( * ) / MIN( ALL - CAST( NULL AS SIGNED ) * 18 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3355
SELECT DISTINCT + COUNT ( * ) / MIN ( ALL - CAST ( NULL AS INTEGER ) * 18 ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3356
SELECT DISTINCT - 73 DIV MIN( DISTINCT col2 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-3356
SELECT DISTINCT - 73 / MIN ( DISTINCT col2 ) FROM tab2
----
-3

query I rowsort
SELECT ALL - col2 AS col1 FROM tab2 WHERE NOT ( - 83 ) NOT IN ( ( - col0 ) - col2 )
----

query I rowsort
SELECT ALL + col0 AS col1 FROM tab1 WHERE NOT ( col0 ) < + 53
----
85
91

query I rowsort
SELECT DISTINCT col0 * col0 FROM tab1 WHERE NOT NULL < ( - col1 / col1 + + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3360
SELECT - MAX( 59 ) AS col1 FROM tab0 WHERE + col0 * - 18 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3360
SELECT - MAX ( 59 ) AS col1 FROM tab0 WHERE + col0 * - 18 IS NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) < + 47
----

query I rowsort
SELECT col2 * - col0 AS col2 FROM tab0 WHERE - col0 IN ( - col1 * - 56 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL IN ( + col1 / 61 )
----

query I rowsort
SELECT col2 AS col1 FROM tab2 WHERE NOT col0 - - col0 * + 4 NOT IN ( - col0 )
----

query I rowsort
SELECT DISTINCT - col2 + - col2 * col0 FROM tab2
----
-1081
-2600
-4408

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3366
SELECT - col1 FROM tab0 WHERE NOT CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-3366
SELECT - col1 FROM tab0 WHERE NOT CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3367
SELECT DISTINCT * FROM tab2 WHERE col1 * + col0 - 74 / + CAST( NULL AS SIGNED ) NOT BETWEEN + col1 AND NULL
----

skipif mysql # not compatible
query III rowsort label-3367
SELECT DISTINCT * FROM tab2 WHERE col1 * + col0 - 74 / + CAST ( NULL AS INTEGER ) NOT BETWEEN + col1 AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE col2 >= col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3369
SELECT ALL + ( + SUM( ALL + col2 ) ) AS col2 FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-3369
SELECT ALL + ( + SUM ( ALL + col2 ) ) AS col2 FROM tab2
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-3370
SELECT - COUNT( * ) + - 84 * - COUNT( * ) FROM tab2
----
249

skipif mysql # not compatible
query I rowsort label-3370
SELECT - COUNT ( * ) + - 84 * - COUNT ( * ) FROM tab2
----
249

query I rowsort
SELECT + ( + 69 ) FROM tab2
----
69
69
69

query I rowsort
SELECT ALL + col1 * 65 FROM tab0 WHERE 24 * 23 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3373
SELECT ALL MIN( - ( + col1 ) ) FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-3373
SELECT ALL MIN ( - ( + col1 ) ) FROM tab1
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-3374
SELECT ALL COUNT( * ) FROM tab2 WHERE NOT 81 + + 8 * + 26 NOT BETWEEN ( - col2 + + col1 ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-3374
SELECT ALL COUNT ( * ) FROM tab2 WHERE NOT 81 + + 8 * + 26 NOT BETWEEN ( - col2 + + col1 ) AND NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3375
SELECT * FROM tab2 WHERE CAST( + 12 AS SIGNED ) <> ( - col0 * 60 + + 84 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3375
SELECT * FROM tab2 WHERE CAST ( + 12 AS INTEGER ) <> ( - col0 * 60 + + 84 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3376
SELECT DISTINCT + MIN( ALL - col2 ) AS col0 FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-3376
SELECT DISTINCT + MIN ( ALL - col2 ) AS col0 FROM tab1
----
-96

query I rowsort
SELECT ( col0 ) * + col1 AS col1 FROM tab2 WHERE NOT NULL <> ( - col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( 39 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 10 FROM tab2 WHERE NOT ( - col2 + 9 ) IS NULL
----
10
10
10

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3380
SELECT ALL + CAST( NULL AS DECIMAL ) * - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3380
SELECT ALL + CAST ( NULL AS REAL ) * - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3381
SELECT DISTINCT - 60 FROM tab0 AS cor0 WHERE - 66 + - col0 BETWEEN CAST( + col2 AS SIGNED ) * col1 AND NULL
----

skipif mysql # not compatible
query I rowsort label-3381
SELECT DISTINCT - 60 FROM tab0 AS cor0 WHERE - 66 + - col0 BETWEEN CAST ( + col2 AS INTEGER ) * col1 AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 86 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 45 * + 16 >= 13
----

query I rowsort
SELECT ALL + col2 * + 98 AS col0 FROM tab0
----
4606
9702
980

query I rowsort
SELECT - col1 / + 64 + 99 * + 48 FROM tab2 WHERE NOT + col1 * ( col1 ) BETWEEN ( 69 + - col1 ) AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * ( + 16 * - col1 ) col0 FROM tab2
----
-37536
-78848
-80400

onlyif mysql # DIV for integer division: 
query I rowsort label-3387
SELECT DISTINCT col2 DIV 50 AS col0 FROM tab1 WHERE NOT + col0 <= ( + col0 * - 56 )
----
1

skipif mysql # not compatible
query I rowsort label-3387
SELECT DISTINCT col2 / 50 AS col0 FROM tab1 WHERE NOT + col0 <= ( + col0 * - 56 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3388
SELECT MIN( DISTINCT col2 ) + 37 / AVG ( DISTINCT col2 * - 54 ) AS col0 FROM tab2 AS cor0 WHERE col2 + - 30 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3388
SELECT MIN ( DISTINCT col2 ) + 37 / AVG ( DISTINCT col2 * - 54 ) AS col0 FROM tab2 AS cor0 WHERE col2 + - 30 IS NULL
----
NULL

query I rowsort
SELECT ALL 20 * - 48 + + col1 AS col0 FROM tab2 AS cor0
----
-883
-893
-909

onlyif mysql # aggregate syntax: 
query I rowsort label-3390
SELECT ALL - MAX( ALL + col2 ) AS col2 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-3390
SELECT ALL - MAX ( ALL + col2 ) AS col2 FROM tab2 AS cor0
----
-58

query I rowsort
SELECT DISTINCT - col0 + - 11 AS col2 FROM tab1 AS cor0
----
-102
-62
-96

query I rowsort
SELECT DISTINCT - col1 + 16 AS col0 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( + col2 ) AND col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 44 NOT BETWEEN 30 AND + 35
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3394
SELECT DISTINCT - COUNT( * ) + - COUNT( * ) AS col2 FROM tab1 cor0
----
-6

skipif mysql # not compatible
query I rowsort label-3394
SELECT DISTINCT - COUNT ( * ) + - COUNT ( * ) AS col2 FROM tab1 cor0
----
-6

query I rowsort
SELECT + - col1 + + col0 * 74 FROM tab2 AS cor0
----
3353
4659
5483

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3396
SELECT DISTINCT - CAST( - COUNT( * ) AS SIGNED ) + 52 FROM tab0 AS cor0 WHERE ( - CAST( + col2 AS SIGNED ) ) IS NULL
----
52

skipif mysql # not compatible
query I rowsort label-3396
SELECT DISTINCT - CAST ( - COUNT ( * ) AS INTEGER ) + 52 FROM tab0 AS cor0 WHERE ( - CAST ( + col2 AS INTEGER ) ) IS NULL
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-3397
SELECT - SUM( - col1 ) * AVG ( col1 + - ( - col2 ) * 1 ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3397
SELECT - SUM ( - col1 ) * AVG ( col1 + - ( - col2 ) * 1 ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3398
SELECT + + col1 + - 21 DIV + col2 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-3398
SELECT + + col1 + - 21 / + col2 FROM tab1 AS cor0
----
14
47
5

query III rowsort
SELECT ALL * FROM tab2 WHERE ( - 99 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 WHERE col0 NOT IN ( 7 + - 3 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 3 * col2 + 26 FROM tab2
----
146
200
95

onlyif mysql # DIV for integer division: 
query I rowsort label-3402
SELECT + col0 + 82 DIV 9 col2 FROM tab0
----
106
24
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3402
SELECT + col0 + 82 / 9 col2 FROM tab0
----
106
24
96

query III rowsort
SELECT * FROM tab2 WHERE - col1 NOT IN ( col0 * col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3404
SELECT ALL CAST( - col1 AS SIGNED ) AS col1 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-3404
SELECT ALL CAST ( - col1 AS INTEGER ) AS col1 FROM tab2
----
-51
-67
-77

query I rowsort
SELECT - col2 + 15 + col1 FROM tab2
----
24
43
52

query I rowsort
SELECT DISTINCT + col1 * + col0 * + col2 - 59 FROM tab0
----
18211
57046
9544

query I rowsort
SELECT DISTINCT + col2 * col1 + 19 * - col2 FROM tab1 WHERE NOT col0 >= col2
----
-480

query I rowsort
SELECT ALL - col1 FROM tab1 WHERE NOT ( ( 84 ) ) IS NULL
----
-14
-47
-5

query III rowsort
SELECT * FROM tab2 WHERE col1 * + col1 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3410
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT CAST( - col1 AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3410
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT CAST ( - col1 AS REAL ) IS NOT NULL
----

query I rowsort
SELECT col0 AS col0 FROM tab0 AS cor0 WHERE 38 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3412
SELECT col1 - - CAST( - 66 AS SIGNED ) FROM tab1
----
-19
-52
-61

skipif mysql # not compatible
query I rowsort label-3412
SELECT col1 - - CAST ( - 66 AS INTEGER ) FROM tab1
----
-19
-52
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-3413
SELECT ALL COUNT( * ) * - MAX( DISTINCT 78 ) + 43 * 20 col0 FROM tab2
----
626

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3413
SELECT ALL COUNT ( * ) * - MAX ( DISTINCT 78 ) + 43 * 20 col0 FROM tab2
----
626

onlyif mysql # aggregate syntax: 
query I rowsort label-3414
SELECT COUNT( ALL - col0 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3414
SELECT COUNT ( ALL - col0 ) FROM tab0
----
3

query I rowsort
SELECT + 47 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

query II rowsort
SELECT col2, - col2 FROM tab0
----
10
-10
47
-47
99
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 25 col2 FROM tab2 AS cor0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-3418
SELECT ALL 92 * + COUNT( * ) FROM tab2 AS cor0
----
276

skipif mysql # not compatible
query I rowsort label-3418
SELECT ALL 92 * + COUNT ( * ) FROM tab2 AS cor0
----
276

query I rowsort
SELECT col1 AS col1 FROM tab2 AS cor0 WHERE NOT col2 * - + col0 * + 71 IS NULL
----
51
67
77

query I rowsort
SELECT DISTINCT + + ( - ( + - 40 ) ) AS col0 FROM tab1 AS cor0
----
40

query I rowsort
SELECT DISTINCT + + 69 FROM tab0 AS cor0
----
69

query I rowsort
SELECT - + 58 * + col0 FROM tab2 AS cor0
----
-2668
-3712
-4350

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( 95 ) col2 FROM tab1 AS cor0
----
95
95
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3424
SELECT - 45 DIV - COUNT( * ) AS col2 FROM tab1 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-3424
SELECT - 45 / - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
15

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 81 * 51 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3426
SELECT * FROM tab2 AS cor0 WHERE NOT col2 + - 60 - CAST( + ( - 86 ) AS SIGNED ) / col2 <= + col2
----

skipif mysql # not compatible
query III rowsort label-3426
SELECT * FROM tab2 AS cor0 WHERE NOT col2 + - 60 - CAST ( + ( - 86 ) AS INTEGER ) / col2 <= + col2
----

query I rowsort
SELECT DISTINCT + ( - 17 ) AS col2 FROM tab2 AS cor0
----
-17

query I rowsort
SELECT - + ( - 78 ) * + col1 FROM tab0 AS cor0
----
1638
6318
78

query I rowsort
SELECT 63 * col1 FROM tab1 AS cor0 WHERE NOT col1 + - - ( - col0 ) < ( NULL )
----

query I rowsort
SELECT + col0 * + - col2 AS col0 FROM tab1
----
-4896
-5015
-6188

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 * - col1 BETWEEN ( + 93 ) AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col1 + - col2 + - col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-118
-143
-197

onlyif mysql # aggregate syntax: 
query I rowsort label-3433
SELECT DISTINCT - MIN( + 13 ) AS col0 FROM tab1 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-3433
SELECT DISTINCT - MIN ( + 13 ) AS col0 FROM tab1 AS cor0
----
-13

query I rowsort
SELECT col1 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
51
67
77

query I rowsort
SELECT - + col1 * 36 * 27 * + 74 AS col2 FROM tab2 AS cor0
----
-3668328
-4819176
-5538456

onlyif mysql # aggregate syntax: 
query I rowsort label-3436
SELECT DISTINCT - MAX( DISTINCT col0 ) AS col1 FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-3436
SELECT DISTINCT - MAX ( DISTINCT col0 ) AS col1 FROM tab2
----
-75

query I rowsort
SELECT - 87 + - col1 / - 54 FROM tab1 WHERE NULL BETWEEN NULL AND col0 + col1
----

query III rowsort
SELECT * FROM tab0 WHERE 38 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3439
SELECT + col1 DIV - CAST( col2 AS SIGNED ) + - + col0 FROM tab2
----
-48
-65
-76

skipif mysql # not compatible
query I rowsort label-3439
SELECT + col1 / - CAST ( col2 AS INTEGER ) + - + col0 FROM tab2
----
-48
-65
-76

query I rowsort
SELECT + col1 * ( + 58 ) + + col1 AS col2 FROM tab0 AS cor0
----
1239
4779
59

onlyif mysql # aggregate syntax: 
query I rowsort label-3441
SELECT + MAX( DISTINCT col1 ) FROM tab2 AS cor0 WHERE col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3441
SELECT + MAX ( DISTINCT col1 ) FROM tab2 AS cor0 WHERE col2 IS NULL
----
NULL

query I rowsort
SELECT - col1 AS col0 FROM tab0 cor0 WHERE + col0 * ( + col1 ) IS NOT NULL
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-3443
SELECT - + MAX( ALL col0 ) AS col2 FROM tab2 cor0
----
-75

skipif mysql # not compatible
query I rowsort label-3443
SELECT - + MAX ( ALL col0 ) AS col2 FROM tab2 cor0
----
-75

query I rowsort
SELECT ALL - + col0 AS col0 FROM tab2 AS cor0 WHERE - 57 + + - col1 IS NOT NULL
----
-46
-64
-75

query I rowsort
SELECT ALL - col2 + 4 FROM tab2 AS cor0
----
-19
-36
-54

onlyif mysql # DIV for integer division: 
query I rowsort label-3446
SELECT ALL + col1 DIV - - ( + 35 ) + + col1 + - - col1 FROM tab1 cor0
----
10
28
95

skipif mysql # not compatible
query I rowsort label-3446
SELECT ALL + col1 / - - ( + 35 ) + + col1 + - - col1 FROM tab1 cor0
----
10
28
95

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( NULL ) >= - + 23
----

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE + col1 NOT BETWEEN + + col2 AND 82
----

query I rowsort
SELECT ALL + 40 + ( - col0 ) FROM tab1 AS cor0
----
-11
-45
-51

query I rowsort
SELECT ALL - col2 * - col1 + - col2 FROM tab0 cor0
----
0
200
3760

query I rowsort
SELECT ALL - - 67 + + col1 FROM tab2 WHERE - ( 85 ) - + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3452
SELECT ALL + COUNT( * ) + + 74 AS col0 FROM tab0
----
77

skipif mysql # not compatible
query I rowsort label-3452
SELECT ALL + COUNT ( * ) + + 74 AS col0 FROM tab0
----
77

onlyif mysql # DIV for integer division: 
query I rowsort label-3453
SELECT ALL 23 DIV + + 25 * - + 86 - + col1 + - - col1 * + 78 FROM tab1
----
1078
3619
385

skipif mysql # not compatible
query I rowsort label-3453
SELECT ALL 23 / + + 25 * - + 86 - + col1 + - - col1 * + 78 FROM tab1
----
1078
3619
385

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN NULL AND + + col1
----

query I rowsort
SELECT DISTINCT ( 27 ) AS col2 FROM tab0
----
27

query II rowsort
SELECT ALL - col1 * - 91 - ( - + 82 ), col2 FROM tab1
----
1356
96
4359
68
537
59

query I rowsort
SELECT DISTINCT 81 * - 31 - - + 79 AS col2 FROM tab0
----
-2432

query I rowsort
SELECT DISTINCT + 54 * - col1 AS col1 FROM tab2
----
-2754
-3618
-4158

onlyif mysql # DIV for integer division: 
query I rowsort label-3459
SELECT DISTINCT + col0 DIV + col1 - - col2 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
23
40
59

skipif mysql # not compatible
query I rowsort label-3459
SELECT DISTINCT + col0 / + col1 - - col2 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
23
40
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 26 * - col1 col1 FROM tab2 AS cor0 WHERE NOT - col0 * + 1 + + col2 <> ( - + 77 )
----

query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query II rowsort
SELECT ( - + col2 ) * - 99, + 65 + - 90 * + col1 AS col1 FROM tab2
----
2277
-4525
3960
-6865
5742
-5965

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - 92 * - col2 * - 97 ) IN ( 17 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3464
SELECT DISTINCT + MAX( + - 79 ) AS col2, CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0
----
-79
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3464
SELECT DISTINCT + MAX ( + - 79 ) AS col2, CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
-79
NULL

query I rowsort
SELECT + - ( + col2 ) AS col2 FROM tab0 AS cor0
----
-10
-47
-99

query I rowsort
SELECT DISTINCT - 45 AS col1 FROM tab0 cor0
----
-45

query I rowsort
SELECT DISTINCT + 14 AS col1 FROM tab1 cor0
----
14

query I rowsort
SELECT ALL col2 * - + col2 FROM tab2
----
-1600
-3364
-529

query I rowsort
SELECT + col0 * - - col1 * col1 AS col2 FROM tab1
----
201019
2125
9996

query III rowsort
SELECT - col0 * + col0 * - 58, col1, + + 65 AS col1 FROM tab0
----
9 values hashing to 787b975c35814fd013bcf8b13855397e

query I rowsort
SELECT + ( 89 ) * + + 83 + 59 AS col2 FROM tab1
----
7446
7446
7446

query I rowsort
SELECT + 91 * + - 38 AS col1 FROM tab1
----
-3458
-3458
-3458

query II rowsort
SELECT col2 AS col0, col1 FROM tab0
----
10
21
47
81
99
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 65 col1 FROM tab0
----
65
65
65

query I rowsort
SELECT col1 * + - col1 + + col0 AS col2 FROM tab1
----
-145
-2118
60

query I rowsort
SELECT + col1 + - col2 * - + ( + 68 ) FROM tab2 AS cor0
----
1615
2797
4011

query I rowsort
SELECT DISTINCT - - 36 * col2 + + col1 * col0 AS col0 FROM tab0 AS cor0
----
2187
2907
3661

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( col0 + col2 ) <> - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3479
SELECT ALL - - COUNT( * ) * 52 AS col1 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-3479
SELECT ALL - - COUNT ( * ) * 52 AS col1 FROM tab0 AS cor0
----
156

query I rowsort
SELECT ( + 65 ) AS col1 FROM tab2 AS cor0
----
65
65
65

query I rowsort
SELECT DISTINCT - 99 * 62 FROM tab2
----
-6138

query III rowsort
SELECT * FROM tab1 WHERE col1 IN ( 11 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3483
SELECT ALL SUM( + col0 ) col2 FROM tab1
----
227

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3483
SELECT ALL SUM ( + col0 ) col2 FROM tab1
----
227

query I rowsort
SELECT ALL 20 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

query I rowsort
SELECT DISTINCT + + 28 FROM tab2 cor0
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3486
SELECT + - 62 + COUNT( * ) + + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3486
SELECT + - 62 + COUNT ( * ) + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - 51 * col0 + - col0 FROM tab0 AS cor0
----
-4524
-5044
-780

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col2 >= - - col2
----

query I rowsort
SELECT DISTINCT - col1 + 73 AS col1 FROM tab2 AS cor0
----
-4
22
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3490
SELECT CAST( NULL AS SIGNED ) + + - MAX( - 25 ) + - AVG ( ALL 87 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3490
SELECT CAST ( NULL AS INTEGER ) + + - MAX ( - 25 ) + - AVG ( ALL 87 ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 27 / 61 NOT BETWEEN ( col0 ) AND ( col1 - - + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 18 + ( - - col1 ) FROM tab1 AS cor0
----
23
32
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3493
SELECT DISTINCT + CAST( + + COUNT( * ) AS SIGNED ) FROM tab1 AS cor0 WHERE - 66 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3493
SELECT DISTINCT + CAST ( + + COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0 WHERE - 66 IS NULL
----
0

query II rowsort
SELECT + + 53 + 12 * col0 + + 47 + ( + 17 ) * - 56 AS col1, col2 + + 53 AS col0 FROM tab0 AS cor0
----
-672
100
192
63
312
152

onlyif mysql # aggregate syntax: 
query I rowsort label-3495
SELECT ALL + MAX( - col1 ) + - + 82 FROM tab1 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-3495
SELECT ALL + MAX ( - col1 ) + - + 82 FROM tab1 AS cor0
----
-87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 28 + + col0 col2 FROM tab1
----
23
57
63

query I rowsort
SELECT + col2 * - col2 + - - col0 AS col1 FROM tab0 WHERE - col2 + + col1 IS NOT NULL
----
-13
-2194
-9704

onlyif mysql # aggregate syntax: 
query I rowsort label-3498
SELECT DISTINCT COUNT( * ) AS col1 FROM tab1 WHERE NULL NOT BETWEEN - 98 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-3498
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab1 WHERE NULL NOT BETWEEN - 98 AND NULL
----
0

query I rowsort
SELECT + col1 * col2 + + + col2 FROM tab2
----
1196
3120
3944

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3500
SELECT * FROM tab1 WHERE col2 BETWEEN - col0 / CAST( NULL AS SIGNED ) * + col1 + - col1 AND + col0
----

skipif mysql # not compatible
query III rowsort label-3500
SELECT * FROM tab1 WHERE col2 BETWEEN - col0 / CAST ( NULL AS INTEGER ) * + col1 + - col1 AND + col0
----

query I rowsort
SELECT DISTINCT 90 - + ( - col1 ) FROM tab0
----
111
171
91

query I rowsort
SELECT DISTINCT 29 + col0 - + 50 * - col0 FROM tab1
----
2630
4364
4670

onlyif mysql # aggregate syntax: 
query I rowsort label-3503
SELECT DISTINCT - MAX( ALL 59 ) col0 FROM tab2
----
-59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3503
SELECT DISTINCT - MAX ( ALL 59 ) col0 FROM tab2
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3504
SELECT - CAST( NULL AS SIGNED ) FROM tab2 WHERE ( NULL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3504
SELECT - CAST ( NULL AS INTEGER ) FROM tab2 WHERE ( NULL ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - col1 col1 FROM tab1 WHERE NOT - col2 IS NOT NULL
----

query I rowsort
SELECT 7 * + col1 FROM tab1
----
329
35
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3507
SELECT col0 * - col2 + - CAST( + col1 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-1109
-2637
-4417

skipif mysql # not compatible
query I rowsort label-3507
SELECT col0 * - col2 + - CAST ( + col1 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-1109
-2637
-4417

query I rowsort
SELECT - + ( - + 31 ) AS col1 FROM tab1 AS cor0
----
31
31
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3509
SELECT CAST( + ( col0 ) AS SIGNED ) * + ( 50 ) * - col2 * col1 FROM tab1 AS cor0
----
-1253750
-14541800
-3427200

skipif mysql # not compatible
query I rowsort label-3509
SELECT CAST ( + ( col0 ) AS INTEGER ) * + ( 50 ) * - col2 * col1 FROM tab1 AS cor0
----
-1253750
-14541800
-3427200

query I rowsort
SELECT col2 + + 19 FROM tab2 cor0 WHERE NOT ( + col1 ) NOT BETWEEN + - col0 * + ( + - col2 ) - + col1 AND + 72 / col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3511
SELECT - SUM( DISTINCT col2 ) FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-3511
SELECT - SUM ( DISTINCT col2 ) FROM tab0 AS cor0
----
-156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3512
SELECT + COUNT( * ) DIV + CAST( + 88 AS SIGNED ), - 40 + SUM( ALL + 21 ) col1 FROM tab0 AS cor0
----
0
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3512
SELECT + COUNT ( * ) / + CAST ( + 88 AS INTEGER ), - 40 + SUM ( ALL + 21 ) col1 FROM tab0 AS cor0
----
0
23

query II rowsort
SELECT DISTINCT 15 AS col1, - col0 + + + col1 AS col0 FROM tab2
----
15
-8
15
13
15
5

query I rowsort
SELECT + - AVG ( + - 29 ) FROM tab0 AS cor0 WHERE NOT NULL <> - col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3515
SELECT ALL + COUNT( DISTINCT - - 74 ) AS col2 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3515
SELECT ALL + COUNT ( DISTINCT - - 74 ) AS col2 FROM tab1 AS cor0
----
1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN - 96 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 40 AS col2, col2 * 70 - col2 col1 FROM tab1 AS cor0
----
-40
4071
-40
4692
-40
6624

onlyif mysql # aggregate syntax: 
query I rowsort label-3518
SELECT DISTINCT - MAX( DISTINCT - 45 ) AS col0 FROM tab0 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-3518
SELECT DISTINCT - MAX ( DISTINCT - 45 ) AS col0 FROM tab0 AS cor0
----
45

query II rowsort
SELECT col2 AS col1, 96 AS col1 FROM tab0 AS cor0
----
10
96
47
96
99
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3520
SELECT ALL COUNT( + col2 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3520
SELECT ALL COUNT ( + col2 ) AS col1 FROM tab2 AS cor0
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + col1 - - + col0 * 34 * + 74 ) = NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col0 / + ( + + col0 ) * - col2 NOT IN ( + - col0 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 AS col2, 37 col2 FROM tab2 WHERE NOT + 74 + - col1 IS NULL
----
-46
37
-64
37
-75
37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col2 FROM tab2 WHERE NOT - + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3525
SELECT COUNT( ALL - - col2 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3525
SELECT COUNT ( ALL - - col2 ) AS col1 FROM tab1
----
3

query I rowsort
SELECT DISTINCT + col2 + + - 87 + - col2 * col1 FROM tab1 AS cor0
----
-1335
-3215
-323

query I rowsort
SELECT ALL + - 46 + 91 AS col0 FROM tab0 AS cor0
----
45
45
45

query I rowsort
SELECT - col1 * + + 97 AS col2 FROM tab2
----
-4947
-6499
-7469

onlyif mysql # aggregate syntax: 
query I rowsort label-3529
SELECT + ( + + 73 ) * - COUNT( * ) + - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE ( 64 * col1 + + col0 IS NULL )
----
0

skipif mysql # not compatible
query I rowsort label-3529
SELECT + ( + + 73 ) * - COUNT ( * ) + - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE ( 64 * col1 + + col0 IS NULL )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3530
SELECT 29 * - COUNT( * ) col0, - MAX( DISTINCT + 13 ) FROM tab2 AS cor0 WHERE - col0 + + 73 < ( col0 * col2 / - 50 )
----
0
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3530
SELECT 29 * - COUNT ( * ) col0, - MAX ( DISTINCT + 13 ) FROM tab2 AS cor0 WHERE - col0 + + 73 < ( col0 * col2 / - 50 )
----
0
NULL

query I rowsort
SELECT ALL + + col1 + + 88 AS col2 FROM tab2 AS cor0
----
139
155
165

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3532
SELECT DISTINCT - + col2 * + CAST( NULL AS SIGNED ) + + - 40 - + 62 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3532
SELECT DISTINCT - + col2 * + CAST ( NULL AS INTEGER ) + + - 40 - + 62 AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL - col1 * 75 AS col2 FROM tab2 AS cor0
----
-3825
-5025
-5775

query I rowsort
SELECT ALL - ( - col1 ) * + 46 FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT ALL - col1 * col1 + - col2 + - - 42 + col1 + - col2 FROM tab0 cor0
----
-156
-398
-6532

query I rowsort
SELECT DISTINCT - col2 * + 6 * - + col2 - + - ( - col0 ) FROM tab2 AS cor0
----
20109
3128
9536

query I rowsort
SELECT ALL + col1 + 2 * - + ( - col0 ) * - - col2 AS col2 FROM tab1
----
10035
12423
9806

query II rowsort
SELECT ALL col1 * - 97 AS col0, + 51 FROM tab0
----
-2037
51
-7857
51
-97
51

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <> ( col2 ) OR ( col1 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col2 * + - col1 FROM tab2
----
-1173
-3080
-3886

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3541
SELECT ( 91 ), CAST( NULL AS SIGNED ) * - col2 AS col2 FROM tab0 AS cor0
----
91
NULL
91
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-3541
SELECT ( 91 ), CAST ( NULL AS INTEGER ) * - col2 AS col2 FROM tab0 AS cor0
----
91
NULL
91
NULL
91
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL = + 0
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col1 * - - col1 * col1 * + + 5, 85, + + 52 * + + col0, - ( + + col2 ) * 26 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3544
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3544
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab0 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT DISTINCT + 96 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
96

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 68 / col1 + 88 + + 26 * + col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + + col0 * + col1 * - col1 + + 40 + + + 31 * col2 - - ( + - col0 ) + + 70 >= - + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-3548
SELECT DISTINCT - 90 DIV - 34 AS col0 FROM tab2 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-3548
SELECT DISTINCT - 90 / - 34 AS col0 FROM tab2 AS cor0
----
2

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND 89
----

query I rowsort
SELECT ALL - ( - - col1 ) * + 48 AS col2 FROM tab2 AS cor0 WHERE NOT + col1 >= + 80
----
-2448
-3216
-3696

query I rowsort
SELECT DISTINCT + ( - 44 ) * - - 30 + - col0 FROM tab2 AS cor0
----
-1366
-1384
-1395

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col1 * col0 * - col1 )
----

query I rowsort
SELECT - + col0 FROM tab2 WHERE NOT + col1 IS NULL
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-3554
SELECT DISTINCT COUNT( + + col2 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3554
SELECT DISTINCT COUNT ( + + col2 ) FROM tab1
----
3

query I rowsort
SELECT ( + - 35 ) * + 0 - 5 * 47 AS col0 FROM tab0
----
-235
-235
-235

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3556
SELECT + CAST( - COUNT( * ) AS SIGNED ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-3556
SELECT + CAST ( - COUNT ( * ) AS INTEGER ) AS col0 FROM tab1
----
-3

query II rowsort
SELECT DISTINCT - col2 AS col1, 26 FROM tab1
----
-59
26
-68
26
-96
26

query II rowsort
SELECT DISTINCT - col0, col0 * + col0 AS col1 FROM tab0
----
-15
225
-87
7569
-97
9409

onlyif mysql # aggregate syntax: 
query I rowsort label-3559
SELECT + COUNT( * ) + + COUNT( * ) col2 FROM tab0
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3559
SELECT + COUNT ( * ) + + COUNT ( * ) col2 FROM tab0
----
6

query II rowsort
SELECT DISTINCT + col1, 52 FROM tab2
----
51
52
67
52
77
52

query I rowsort
SELECT ALL + col0 * + + 70 AS col0 FROM tab1
----
3570
5950
6370

query I rowsort
SELECT + - 80 AS col2 FROM tab1 cor0
----
-80
-80
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-3563
SELECT + + COUNT( - - col2 ) AS col1 FROM tab2 WHERE - 13 * - col0 NOT BETWEEN ( + col1 ) AND col2
----
3

skipif mysql # not compatible
query I rowsort label-3563
SELECT + + COUNT ( - - col2 ) AS col1 FROM tab2 WHERE - 13 * - col0 NOT BETWEEN ( + col1 ) AND col2
----
3

query III rowsort
SELECT * FROM tab1 WHERE col2 > - 12 OR NOT - - 36 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - ( col0 ) AS col2 FROM tab2 WHERE NULL <= NULL
----

query I rowsort
SELECT ALL + 77 * - col1 FROM tab1 cor0
----
-1078
-3619
-385

query I rowsort
SELECT - col2 AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-59
-68
-96

query I rowsort
SELECT col1 * col2 + + + col1 + col0 + + - ( col0 ) FROM tab0 AS cor0
----
100
231
3888

query I rowsort
SELECT DISTINCT - ( col0 ) + - col0 * - col0 AS col1 FROM tab2 AS cor0
----
2070
4032
5550

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + col0 ) IN ( - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col1 + - 2 FROM tab0 AS cor0
----
-1
19
79

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL >= 41
----

query I rowsort
SELECT ALL + + col1 - - col2 AS col0 FROM tab0 AS cor0
----
100
128
31

onlyif mysql # aggregate syntax: 
query I rowsort label-3574
SELECT + MIN( ALL ( + col2 ) ) FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-3574
SELECT + MIN ( ALL ( + col2 ) ) FROM tab0
----
10

query I rowsort
SELECT DISTINCT ( - 39 ) AS col1 FROM tab2
----
-39

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NOT NULL > col2 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE 91 * + + col1 < NULL
----

query I rowsort
SELECT + 56 * 30 AS col0 FROM tab0
----
1680
1680
1680

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( col0, - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3580
SELECT DISTINCT + - MAX( col2 ) AS col1 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-3580
SELECT DISTINCT + - MAX ( col2 ) AS col1 FROM tab2 AS cor0
----
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-3581
SELECT DISTINCT + - 8 AS col1, COUNT( * ) col2 FROM tab2 AS cor0
----
-8
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3581
SELECT DISTINCT + - 8 AS col1, COUNT ( * ) col2 FROM tab2 AS cor0
----
-8
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3582
SELECT col0 DIV + + 79 * + 66 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3582
SELECT col0 / + + 79 * + 66 AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT + 16 AS col2 FROM tab2 WHERE NOT NULL <= NULL
----

query II rowsort
SELECT DISTINCT - 88 * col0 AS col1, col2 AS col0 FROM tab2
----
-4048
23
-5632
40
-6600
58

query I rowsort
SELECT DISTINCT col1 + - - col1 AS col0 FROM tab1 WHERE + + col2 < NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 59 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - ( - 66 ) + - col2 * 32 * col2 + - ( + ( - - 9 ) ) + - col0 AS col2, col2 col0 FROM tab0 AS cor0
----
-313672
99
-3230
10
-70646
47

query I rowsort
SELECT + + 54 + col1 AS col2 FROM tab2 AS cor0
----
105
121
131

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3589
SELECT - - col2 + - CAST( - ( + col0 ) AS SIGNED ) col0, col0 col0 FROM tab2 AS cor0
----
104
64
133
75
69
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3589
SELECT - - col2 + - CAST ( - ( + col0 ) AS INTEGER ) col0, col0 col0 FROM tab2 AS cor0
----
104
64
133
75
69
46

query I rowsort
SELECT - col1 FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3591
SELECT + COUNT( - + col1 ) AS col2, - ( COUNT( ALL - CAST( - + col1 AS SIGNED ) ) ) AS col1 FROM tab1 AS cor0
----
3
-3

skipif mysql # not compatible
query II rowsort label-3591
SELECT + COUNT ( - + col1 ) AS col2, - ( COUNT ( ALL - CAST ( - + col1 AS INTEGER ) ) ) AS col1 FROM tab1 AS cor0
----
3
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3592
SELECT COUNT( * ) * COUNT( * ) / CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3592
SELECT COUNT ( * ) * COUNT ( * ) / CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3593
SELECT DISTINCT SUM( DISTINCT 1 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-3593
SELECT DISTINCT SUM ( DISTINCT 1 ) FROM tab1
----
1

query III rowsort
SELECT * FROM tab2 WHERE + 69 * + 23 >= NULL
----

query I rowsort
SELECT ALL - col1 * - - 74 * + 3 + + col1 AS col1 FROM tab2
----
-11271
-14807
-17017

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 87 * col1 * - col2 - 14 - + + 27 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3597
SELECT DISTINCT MAX( DISTINCT + - 10 ) * COUNT( * ) AS col1 FROM tab1
----
-30

skipif mysql # not compatible
query I rowsort label-3597
SELECT DISTINCT MAX ( DISTINCT + - 10 ) * COUNT ( * ) AS col1 FROM tab1
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-3598
SELECT - 28 * COUNT( * ) AS col0 FROM tab0
----
-84

skipif mysql # not compatible
query I rowsort label-3598
SELECT - 28 * COUNT ( * ) AS col0 FROM tab0
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-3599
SELECT ALL - MIN( 44 ) * + 0 AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3599
SELECT ALL - MIN ( 44 ) * + 0 AS col0 FROM tab0
----
0

query I rowsort
SELECT ALL col1 * 92 AS col0 FROM tab0
----
1932
7452
92

query II rowsort
SELECT ALL + col1 + - col0 + col1 AS col1, 33 FROM tab0 AS cor0
----
-45
33
-95
33
147
33

query I rowsort
SELECT DISTINCT - - col2 + 79 * + + col2 FROM tab0 AS cor0
----
3760
7920
800

query III rowsort
SELECT * FROM tab0 WHERE - col1 * - + col0 * - col0 + + col1 = + col1
----

query I rowsort
SELECT ALL 0 * + + col1 - - col1 AS col2 FROM tab1
----
14
47
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 25 col1, + col1 + - - 99 FROM tab1
----
25
104
25
113
25
146

query I rowsort
SELECT + + col0 * 73 AS col1 FROM tab2 AS cor0
----
3358
4672
5475

onlyif mysql # aggregate syntax: 
query I rowsort label-3607
SELECT MIN( DISTINCT 35 ) AS col0 FROM tab2 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-3607
SELECT MIN ( DISTINCT 35 ) AS col0 FROM tab2 AS cor0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-3608
SELECT + COUNT( * ) * + 37 FROM tab1 AS cor0
----
111

skipif mysql # not compatible
query I rowsort label-3608
SELECT + COUNT ( * ) * + 37 FROM tab1 AS cor0
----
111

query II rowsort
SELECT DISTINCT + 73 AS col1, col1 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) = - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3610
SELECT COUNT( * ) - + + 91 col0 FROM tab1 AS cor0
----
-88

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3610
SELECT COUNT ( * ) - + + 91 col0 FROM tab1 AS cor0
----
-88

query II rowsort
SELECT DISTINCT col2, col1 AS col2 FROM tab2 AS cor0
----
23
51
40
77
58
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3612
SELECT ALL CAST( NULL AS SIGNED ) col0, - COUNT( * ) AS col0 FROM tab2 AS cor0
----
NULL
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3612
SELECT ALL CAST ( NULL AS INTEGER ) col0, - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
NULL
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3613
SELECT - COUNT( * ) DIV - COUNT( - col1 ) AS col2 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-3613
SELECT - COUNT ( * ) / - COUNT ( - col1 ) AS col2 FROM tab2
----
1

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL <= - + col2
----

query I rowsort
SELECT DISTINCT - col2 * - 63 FROM tab1
----
3717
4284
6048

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN + - ( col2 ) + + col2 AND + + ( - + col2 )
----

query I rowsort
SELECT ALL + col2 * ( + ( + + col1 ) ) FROM tab1
----
1344
295
3196

query I rowsort
SELECT - 64 * 59 AS col2 FROM tab1
----
-3776
-3776
-3776

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 3 * - col0 col2 FROM tab1
----
-153
-255
-273

query I rowsort
SELECT - 47 * 68 AS col2 FROM tab0 AS cor0
----
-3196
-3196
-3196

onlyif mysql # aggregate syntax: 
query I rowsort label-3621
SELECT ALL + COUNT( * ) + 80 FROM tab2 AS cor0
----
83

skipif mysql # not compatible
query I rowsort label-3621
SELECT ALL + COUNT ( * ) + 80 FROM tab2 AS cor0
----
83

query I rowsort
SELECT DISTINCT + - col0 * - + col1 FROM tab1 AS cor0
----
425
4277
714

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3623
SELECT ALL 27 DIV - COUNT( * ) FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3623
SELECT ALL 27 / - COUNT ( * ) FROM tab0 AS cor0
----
-9

query I rowsort
SELECT - col0 + + - 4 FROM tab0
----
-101
-19
-91

query I rowsort
SELECT col2 + + + col0 AS col1 FROM tab0
----
196
62
97

query II rowsort
SELECT - col1 + col2 AS col1, + 49 FROM tab1
----
21
49
54
49
82
49

query I rowsort
SELECT + ( 79 ) + + 57 + - col0 + + 25 - 10 * - 60 AS col2 FROM tab2
----
686
697
715

onlyif mysql # aggregate syntax: 
query I rowsort label-3628
SELECT - 37 + - COUNT( * ) FROM tab1
----
-40

skipif mysql # not compatible
query I rowsort label-3628
SELECT - 37 + - COUNT ( * ) FROM tab1
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-3629
SELECT ALL + 51 * + ( + SUM( + - 38 ) ) AS col1 FROM tab0, tab2 AS cor0
----
-17442

skipif mysql # not compatible
query I rowsort label-3629
SELECT ALL + 51 * + ( + SUM ( + - 38 ) ) AS col1 FROM tab0, tab2 AS cor0
----
-17442

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col2 * + + col1 < ( col2 * + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3631
SELECT ALL + - COUNT( ALL - + col2 ) + - 65 AS col2 FROM tab0 AS cor0
----
-68

skipif mysql # not compatible
query I rowsort label-3631
SELECT ALL + - COUNT ( ALL - + col2 ) + - 65 AS col2 FROM tab0 AS cor0
----
-68

query I rowsort
SELECT ALL - col2 + + col1 * col2 * col0 FROM tab0 AS cor0
----
18260
57058
9504

query II rowsort
SELECT ALL + 38, + col0 FROM tab1
----
38
51
38
85
38
91

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + col2 + 30 <= ( col2 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3635
SELECT - - CAST( + col1 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-3635
SELECT - - CAST ( + col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
51
67
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 4 col0 FROM tab2 AS cor0 WHERE NOT - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3637
SELECT 90 * - + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-270

skipif mysql # not compatible
query I rowsort label-3637
SELECT 90 * - + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-270

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 35 col2 FROM tab0 cor0
----
-35
-35
-35

onlyif mysql # aggregate syntax: 
query II rowsort label-3639
SELECT + 76 AS col0, + COUNT( * ) FROM tab1
----
76
3

skipif mysql # not compatible
query II rowsort label-3639
SELECT + 76 AS col0, + COUNT ( * ) FROM tab1
----
76
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3640
SELECT - 74 DIV + 9 AS col0 FROM tab2
----
-8
-8
-8

skipif mysql # not compatible
query I rowsort label-3640
SELECT - 74 / + 9 AS col0 FROM tab2
----
-8
-8
-8

query I rowsort
SELECT DISTINCT col1 * + - 99 * col1 AS col0 FROM tab0
----
-43659
-649539
-99

query I rowsort
SELECT ALL ( + - 26 ) FROM tab1
----
-26
-26
-26

query II rowsort
SELECT DISTINCT 10 AS col0, col2 + - col0 FROM tab2
----
10
-17
10
-23
10
-24

query I rowsort
SELECT DISTINCT + ( + + 33 ) AS col2 FROM tab1 WHERE NOT NULL NOT BETWEEN + - col2 AND + col1
----

query II rowsort
SELECT ALL + col2 AS col2, + 3 FROM tab1
----
59
3
68
3
96
3

query II rowsort
SELECT ALL col2, col0 - 49 FROM tab1
----
59
36
68
42
96
2

onlyif mysql # DIV for integer division: 
query II rowsort label-3647
SELECT - 90 AS col1, col1 DIV - col2 + - - 52 + col1 + ( + - ( + col0 ) ) - 72 DIV 20 AS col0 FROM tab2
----
-90
40
-90
52
-90
61

skipif mysql # not compatible
query II rowsort label-3647
SELECT - 90 AS col1, col1 / - col2 + - - 52 + col1 + ( + - ( + col0 ) ) - 72 / 20 AS col0 FROM tab2
----
-90
40
-90
52
-90
61

query II rowsort
SELECT + col0 * col0 AS col1, - col1 AS col2 FROM tab2 AS cor0
----
2116
-51
4096
-77
5625
-67

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND 65
----

query II rowsort
SELECT col2 AS col1, + col2 FROM tab0 AS cor0
----
10
10
47
47
99
99

query I rowsort
SELECT ALL + 21 AS col1 FROM tab1 AS cor0 WHERE NOT col0 + - + col0 * - - col2 IS NULL
----
21
21
21

query I rowsort
SELECT - col2 * - col0 FROM tab1 AS cor0 WHERE NOT 92 IS NULL
----
4896
5015
6188

query I rowsort
SELECT ALL + 64 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e

onlyif mysql # aggregate syntax: 
query II rowsort label-3654
SELECT DISTINCT + COUNT( * ) AS col1, 92 FROM tab0, tab0 AS cor0
----
9
92

skipif mysql # not compatible
query II rowsort label-3654
SELECT DISTINCT + COUNT ( * ) AS col1, 92 FROM tab0, tab0 AS cor0
----
9
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3655
SELECT - - 14 + + - CAST( COUNT( * ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-3655
SELECT - - 14 + + - CAST ( COUNT ( * ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-3656
SELECT - ( - COUNT( * ) ) + - + ( + - 44 ) FROM tab2 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-3656
SELECT - ( - COUNT ( * ) ) + - + ( + - 44 ) FROM tab2 AS cor0
----
47

query I rowsort
SELECT DISTINCT 26 + + - 80 AS col0 FROM tab2 AS cor0
----
-54

query I rowsort
SELECT + - 45 + + col2 AS col2 FROM tab0 AS cor0
----
-35
2
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3659
SELECT CAST( NULL AS SIGNED ) + + 17 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3659
SELECT CAST ( NULL AS INTEGER ) + + 17 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + AVG ( - col1 ) AS col2 FROM tab2 cor0 WHERE - col1 NOT BETWEEN NULL AND col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3661
SELECT DISTINCT + - 38 + - - COUNT( ALL + col0 ) AS col1 FROM tab1 AS cor0
----
-35

skipif mysql # not compatible
query I rowsort label-3661
SELECT DISTINCT + - 38 + - - COUNT ( ALL + col0 ) AS col1 FROM tab1 AS cor0
----
-35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - col1 ) + - col2 col2 FROM tab0 AS cor0
----
-98
11
34

onlyif mysql # aggregate syntax: 
query I rowsort label-3663
SELECT DISTINCT + + 45 * + COUNT( * ) + + COUNT( * ) FROM tab2 AS cor0
----
138

skipif mysql # not compatible
query I rowsort label-3663
SELECT DISTINCT + + 45 * + COUNT ( * ) + + COUNT ( * ) FROM tab2 AS cor0
----
138

query I rowsort
SELECT DISTINCT + + 5 * - - col2 + - + col1 - 78 FROM tab2 AS cor0
----
-14
145
45

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3665
SELECT DISTINCT CAST( NULL AS SIGNED ) + col1 AS col1, - ( - ( col1 ) ) + - + col2 + - 36 + + CAST( NULL AS SIGNED ) + + - 55 + col1 * - - CAST( col1 AS SIGNED ) + - col1 + col1 * + col1 * + + 75 * + ( - 85 ) * ( + + col0 ) FROM tab0 AS cor0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3665
SELECT DISTINCT CAST ( NULL AS INTEGER ) + col1 AS col1, - ( - ( col1 ) ) + - + col2 + - 36 + + CAST ( NULL AS INTEGER ) + + - 55 + col1 * - - CAST ( col1 AS INTEGER ) + - col1 + col1 * + col1 * + + 75 * + ( - 85 ) * ( + + col0 ) FROM tab0 AS cor0
----
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3666
SELECT ALL + 57 AS col1, + col2 + + CAST( NULL AS SIGNED ) FROM tab1
----
57
NULL
57
NULL
57
NULL

skipif mysql # not compatible
query II rowsort label-3666
SELECT ALL + 57 AS col1, + col2 + + CAST ( NULL AS INTEGER ) FROM tab1
----
57
NULL
57
NULL
57
NULL

query I rowsort
SELECT ALL 35 + col2 FROM tab2
----
58
75
93

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 25 + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT - 21, - ( - + col1 ) AS col1 FROM tab2
----
-21
51
-21
67
-21
77

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3670
SELECT + CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED ) - CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3670
SELECT + CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) - CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col0 - - 95 + + col1 AS col2 FROM tab2
----
192
236
237

query I rowsort
SELECT - col1 - 19 AS col0 FROM tab0
----
-100
-20
-40

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 > - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + + col2 + + + 18 * - 53 AS col0 FROM tab2 AS cor0
----
-896
-914
-931

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3675
SELECT DISTINCT + 78 AS col0, 6 FROM tab2 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) IN ( 15, 14, CAST( col1 AS DECIMAL ) + - 7, col0 )
----

skipif mysql # not compatible
query II rowsort label-3675
SELECT DISTINCT + 78 AS col0, 6 FROM tab2 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) IN ( 15, 14, CAST ( col1 AS REAL ) + - 7, col0 )
----

query I rowsort
SELECT ALL + + col1 AS col0 FROM tab1 AS cor0 WHERE ( NOT NULL IS NOT NULL )
----
14
47
5

query I rowsort
SELECT ALL + 21 AS col0 FROM tab1 AS cor0 WHERE NOT col0 IN ( + col2 + + - 32, + 98 )
----
21
21
21

onlyif mysql # aggregate syntax: 
query I rowsort label-3678
SELECT + + ( + COUNT( * ) ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9

skipif mysql # not compatible
query I rowsort label-3678
SELECT + + ( + COUNT ( * ) ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3679
SELECT DISTINCT - + MIN( ( - 19 ) ) AS col1 FROM tab1 WHERE CAST( NULL AS SIGNED ) IS NULL
----
19

skipif mysql # not compatible
query I rowsort label-3679
SELECT DISTINCT - + MIN ( ( - 19 ) ) AS col1 FROM tab1 WHERE CAST ( NULL AS INTEGER ) IS NULL
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-3680
SELECT ALL + COUNT( * ) col2 FROM tab0 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-3680
SELECT ALL + COUNT ( * ) col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query I rowsort
SELECT DISTINCT + 33 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
33

query I rowsort
SELECT DISTINCT - 91 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-3683
SELECT DISTINCT COUNT( * ) * + MAX( DISTINCT 74 ) FROM tab0
----
222

skipif mysql # not compatible
query I rowsort label-3683
SELECT DISTINCT COUNT ( * ) * + MAX ( DISTINCT 74 ) FROM tab0
----
222

query I rowsort
SELECT 64 * ( - col0 ) FROM tab2
----
-2944
-4096
-4800

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - + col2 * + col1 NOT IN ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3686
SELECT + ( - - 0 ) * - COUNT( * ) - + COUNT( * ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3686
SELECT + ( - - 0 ) * - COUNT ( * ) - + COUNT ( * ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE NOT NULL < col2
----

query I rowsort
SELECT + + ( col0 ) AS col2 FROM tab2 AS cor0 WHERE NOT - col0 NOT BETWEEN + col0 AND NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 + + 71 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query II rowsort label-3690
SELECT col1 DIV 33, + col2 FROM tab2 cor0
----
1
23
2
40
2
58

skipif mysql # not compatible
query II rowsort label-3690
SELECT col1 / 33, + col2 FROM tab2 cor0
----
1
23
2
40
2
58

query I rowsort
SELECT - ( + - 75 ) AS col0 FROM tab2
----
75
75
75

onlyif mysql # DIV for integer division: 
query I rowsort label-3692
SELECT 94 DIV + ( col2 ) AS col0 FROM tab0
----
0
2
9

skipif mysql # not compatible
query I rowsort label-3692
SELECT 94 / + ( col2 ) AS col0 FROM tab0
----
0
2
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3693
SELECT COUNT( * ) * + 53 AS col2 FROM tab2
----
159

skipif mysql # not compatible
query I rowsort label-3693
SELECT COUNT ( * ) * + 53 AS col2 FROM tab2
----
159

query I rowsort
SELECT + 83 FROM tab0, tab1 AS cor0
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3695
SELECT col2 * 67 / + CAST( NULL AS DECIMAL ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3695
SELECT col2 * 67 / + CAST ( NULL AS REAL ) AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3696
SELECT DISTINCT + 13 + - COUNT( * ) FROM ( tab1 AS cor0 CROSS JOIN tab1 cor1 )
----
4

skipif mysql # not compatible
query I rowsort label-3696
SELECT DISTINCT + 13 + - COUNT ( * ) FROM ( tab1 AS cor0 CROSS JOIN tab1 cor1 )
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-3697
SELECT ALL - SUM( ALL + col2 ) AS col0 FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-3697
SELECT ALL - SUM ( ALL + col2 ) AS col0 FROM tab0
----
-156

query III rowsort
SELECT * FROM tab0 WHERE + - col0 / + + col1 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 22 + - + 25 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - 23 * + 72 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-1656

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3701
SELECT DISTINCT + + ( + + CAST( - 30 AS SIGNED ) ) AS col0 FROM tab0 cor0
----
-30

skipif mysql # not compatible
query I rowsort label-3701
SELECT DISTINCT + + ( + + CAST ( - 30 AS INTEGER ) ) AS col0 FROM tab0 cor0
----
-30

query I rowsort
SELECT ALL + col1 + 33 * - 26 FROM tab2 AS cor0
----
-781
-791
-807

query I rowsort
SELECT - + 14 + col2 - - 56 FROM tab2 AS cor0
----
100
65
82

onlyif mysql # aggregate syntax: 
query II rowsort label-3704
SELECT - ( - - MAX( ALL col2 ) ) + - 21, + ( - + 66 ) AS col1 FROM tab0 AS cor0
----
-120
-66

skipif mysql # not compatible
query II rowsort label-3704
SELECT - ( - - MAX ( ALL col2 ) ) + - 21, + ( - + 66 ) AS col1 FROM tab0 AS cor0
----
-120
-66

query I rowsort
SELECT ALL + - col0 + - - 52 * - 46 FROM tab0 AS cor0
----
-2407
-2479
-2489

query I rowsort
SELECT + - col1 + + col1 + - col1 * 51 FROM tab2 cor0
----
-2601
-3417
-3927

onlyif mysql # aggregate syntax: 
query I rowsort label-3707
SELECT DISTINCT 44 - + MAX( - - col2 ) + - - COUNT( DISTINCT + col2 ) AS col1 FROM tab2
----
-11

skipif mysql # not compatible
query I rowsort label-3707
SELECT DISTINCT 44 - + MAX ( - - col2 ) + - - COUNT ( DISTINCT + col2 ) AS col1 FROM tab2
----
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-3708
SELECT ALL + ( col2 ) DIV - col0 * + col0 DIV + - col0 - + - col1 col2 FROM tab1
----
15
47
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3708
SELECT ALL + ( col2 ) / - col0 * + col0 / + - col0 - + - col1 col2 FROM tab1
----
15
47
5

query I rowsort
SELECT ALL + 62 * + - 50 FROM tab0
----
-3100
-3100
-3100

query I rowsort
SELECT DISTINCT col0 - 86 + + col1 FROM tab0
----
10
12
22

query I rowsort
SELECT DISTINCT + 12 * 86 FROM tab2
----
1032

query I rowsort
SELECT + + col1 * - 49 + - col2 - + col0 FROM tab2 AS cor0
----
-2568
-3416
-3877

onlyif mysql # aggregate syntax: 
query I rowsort label-3713
SELECT - SUM( 77 ) - COUNT( * ) FROM tab0 AS cor0
----
-234

skipif mysql # not compatible
query I rowsort label-3713
SELECT - SUM ( 77 ) - COUNT ( * ) FROM tab0 AS cor0
----
-234

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 5 col2 FROM tab0 AS cor0
----
-5
-5
-5

query I rowsort
SELECT - col1 * + 13 AS col1 FROM tab1
----
-182
-611
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-3716
SELECT - MAX( - + col0 ) AS col1 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-3716
SELECT - MAX ( - + col0 ) AS col1 FROM tab1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3717
SELECT + + COUNT( + - 18 ) AS col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-3717
SELECT + + COUNT ( + - 18 ) AS col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9

query II rowsort
SELECT + col0 * + col1 * + + col0, col2 FROM tab0 AS cor0
----
158949
10
18225
47
9409
99

onlyif mysql # aggregate syntax: 
query II rowsort label-3719
SELECT ALL + 83 AS col1, - ( COUNT( - + col2 ) ) FROM tab1 AS cor0
----
83
-3

skipif mysql # not compatible
query II rowsort label-3719
SELECT ALL + 83 AS col1, - ( COUNT ( - + col2 ) ) FROM tab1 AS cor0
----
83
-3

query II rowsort
SELECT col2, col2 FROM tab0 AS cor0
----
10
10
47
47
99
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3721
SELECT + + 9 * + - 63 + + COUNT( * ) * 36 FROM tab2 AS cor0
----
-459

skipif mysql # not compatible
query I rowsort label-3721
SELECT + + 9 * + - 63 + + COUNT ( * ) * 36 FROM tab2 AS cor0
----
-459

query II rowsort
SELECT - col2, + col1 FROM tab0 AS cor0
----
-10
21
-47
81
-99
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + col2 col1 FROM tab0 cor0 WHERE NOT col0 IS NULL
----
0

query I rowsort
SELECT 33 AS col1 FROM tab1 cor0
----
33
33
33

query II rowsort
SELECT + col0, + col1 + - + 61 + - 95 + + - col1 FROM tab0 AS cor0
----
15
-156
87
-156
97
-156

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3726
SELECT ALL + CAST( - col2 AS SIGNED ) col0, - col2 col0 FROM tab2
----
-23
-23
-40
-40
-58
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3726
SELECT ALL + CAST ( - col2 AS INTEGER ) col0, - col2 col0 FROM tab2
----
-23
-23
-40
-40
-58
-58

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col1 NOT BETWEEN col1 AND + 33
----

query I rowsort
SELECT DISTINCT - col0 * col0 * - col2 FROM tab1
----
249696
426275
563108

onlyif mysql # DIV for integer division: 
query I rowsort label-3729
SELECT col0 DIV - 33 AS col1 FROM tab2
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-3729
SELECT col0 / - 33 AS col1 FROM tab2
----
-1
-1
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3730
SELECT ALL + COUNT( + col1 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3730
SELECT ALL + COUNT ( + col1 ) FROM tab0
----
3

query I rowsort
SELECT DISTINCT + col0 * - + 6 * col2 FROM tab2
----
-15360
-26100
-6348

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3732
SELECT * FROM tab0 WHERE NOT + + col1 >= ( + col2 ) + + CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-3732
SELECT * FROM tab0 WHERE NOT + + col1 >= ( + col2 ) + + CAST ( NULL AS REAL )
----

query II rowsort
SELECT ALL 35 * - - col0 AS col2, col1 AS col2 FROM tab1
----
1785
14
2975
5
3185
47

onlyif mysql # DIV for integer division: 
query I rowsort label-3734
SELECT DISTINCT 53 DIV + + col0 AS col0 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-3734
SELECT DISTINCT 53 / + + col0 AS col0 FROM tab1
----
0
1

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( + - col2 IS NULL )
----

query II rowsort
SELECT DISTINCT + ( - + 57 ) + - 7, + col0 FROM tab0
----
-64
15
-64
87
-64
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 col0, - ( - col1 ) + + + 49 AS col2 FROM tab1
----
51
63
85
54
91
96

query II rowsort
SELECT ALL 3, 42 * - + col1 AS col2 FROM tab0
----
3
-3402
3
-42
3
-882

onlyif mysql # DIV for integer division: 
query I rowsort label-3739
SELECT - + 5 DIV + 24 * col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3739
SELECT - + 5 / + 24 * col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3740
SELECT + - COUNT( * ) col0 FROM tab0 cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3740
SELECT + - COUNT ( * ) col0 FROM tab0 cor0
----
-3

query I rowsort
SELECT ALL - col0 * + 78 * col0 * 41 FROM tab1 AS cor0
----
-23105550
-26482638
-8317998

onlyif mysql # aggregate syntax: 
query I rowsort label-3742
SELECT 0 * MIN( - col1 ) * + 53 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3742
SELECT 0 * MIN ( - col1 ) * + 53 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3743
SELECT COUNT( * ) * 37 FROM tab0 cor0
----
111

skipif mysql # not compatible
query I rowsort label-3743
SELECT COUNT ( * ) * 37 FROM tab0 cor0
----
111

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 * + col2 * col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col0 + + + col1 * - ( - col0 ) FROM tab0 AS cor0
----
1230
1914
194

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3746
SELECT DISTINCT + - 22 * + ( + CAST( + 79 AS SIGNED ) ) + col0 + + 87 FROM tab2 AS cor0
----
-1576
-1587
-1605

skipif mysql # not compatible
query I rowsort label-3746
SELECT DISTINCT + - 22 * + ( + CAST ( + 79 AS INTEGER ) ) + col0 + + 87 FROM tab2 AS cor0
----
-1576
-1587
-1605

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 54 col1, + 16 AS col1 FROM tab1 AS cor0 WHERE + col2 IS NULL
----

query I rowsort
SELECT + + 81 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) <= col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 * - col0, + col0 col1 FROM tab2
----
2346
46
4928
64
5025
75

query I rowsort
SELECT + 7 - ( - col1 ) FROM tab0
----
28
8
88

onlyif mysql # DIV for integer division: 
query I rowsort label-3751
SELECT - col0 DIV col1 - 55 + + col2 + + 86 AS col1 FROM tab1
----
124
73
98

skipif mysql # not compatible
query I rowsort label-3751
SELECT - col0 / col1 - 55 + + col2 + + 86 AS col1 FROM tab1
----
124
73
98

query II rowsort
SELECT ALL - 21, col2 AS col1 FROM tab1
----
-21
59
-21
68
-21
96

query III rowsort
SELECT * FROM tab1 WHERE col2 <= 22
----

query I rowsort
SELECT ALL col1 - 52 AS col0 FROM tab2
----
-1
15
25

query I rowsort
SELECT DISTINCT + - col0 * - ( + col2 ) AS col2 FROM tab1 WHERE ( NOT ( NOT + + col0 + - col2 IS NOT NULL ) )
----
4896
5015
6188

query I rowsort
SELECT col0 * + 96 * col0 + - + 90 AS col1 FROM tab1
----
249606
693510
794886

onlyif mysql # aggregate syntax: 
query I rowsort label-3757
SELECT ALL SUM( DISTINCT - - col2 ) AS col0 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
156

skipif mysql # not compatible
query I rowsort label-3757
SELECT ALL SUM ( DISTINCT - - col2 ) AS col0 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
156

query I rowsort
SELECT + col2 * + + col2 + - col0 - + col0 AS col2 FROM tab0 AS cor0
----
-74
2179
9607

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col0, + col2 AS col2 FROM tab0 AS cor0 WHERE NOT - col2 > col2
----
-10
10
-47
47
-99
99

query I rowsort
SELECT ALL 87 + - - 16 * - ( 79 ) FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 47f911e5e41399a4974cdcf9ddcba8a0

onlyif mysql # DIV for integer division: 
query I rowsort label-3761
SELECT ALL + + 34 DIV - col0 * 43 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3761
SELECT ALL + + 34 / - col0 * 43 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL col2 AS col2 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3763
SELECT DISTINCT * FROM tab1 cor0 WHERE + ( - + CAST( NULL AS SIGNED ) ) + - + 46 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3763
SELECT DISTINCT * FROM tab1 cor0 WHERE + ( - + CAST ( NULL AS INTEGER ) ) + - + 46 IS NOT NULL
----

query I rowsort
SELECT ALL - col2 * + + col2 FROM tab2 AS cor0 WHERE NOT ( + col0 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - ( + col2 ) col2, col2 + - 27 col2 FROM tab1 cor0
----
-59
32
-68
41
-96
69

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 - - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3767
SELECT + COUNT( * ) * - SUM( + col1 ) AS col1 FROM tab1
----
-198

skipif mysql # not compatible
query I rowsort label-3767
SELECT + COUNT ( * ) * - SUM ( + col1 ) AS col1 FROM tab1
----
-198

onlyif mysql # DIV for integer division: 
query I rowsort label-3768
SELECT col2 DIV + - col2 AS col2 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3768
SELECT col2 / + - col2 AS col2 FROM tab1
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3769
SELECT + 12 + + MAX( ALL 88 ) FROM tab0
----
100

skipif mysql # not compatible
query I rowsort label-3769
SELECT + 12 + + MAX ( ALL 88 ) FROM tab0
----
100

query I rowsort
SELECT ALL - col1 * - + 35 * - col1 * - - 98 AS col1 FROM tab0
----
-1512630
-22504230
-3430

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 51 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3772
SELECT ALL + col2 * - - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3772
SELECT ALL + col2 * - - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE - - 66 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3774
SELECT DISTINCT - ( + CAST( NULL AS SIGNED ) ) / - + 57 AS col1, + COUNT( * ) AS col0 FROM tab2
----
NULL
3

skipif mysql # not compatible
query II rowsort label-3774
SELECT DISTINCT - ( + CAST ( NULL AS INTEGER ) ) / - + 57 AS col1, + COUNT ( * ) AS col0 FROM tab2
----
NULL
3

query I rowsort
SELECT DISTINCT - ( - - 0 ) + - + col0 + - + col1 AS col1 FROM tab2 AS cor0
----
-141
-142
-97

query I rowsort
SELECT - 51 * 10 * - ( - col1 ) FROM tab0
----
-10710
-41310
-510

onlyif mysql # aggregate syntax: 
query I rowsort label-3777
SELECT COUNT( * ) + - 22 + - + COUNT( * ) * - 32 col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
275

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3777
SELECT COUNT ( * ) + - 22 + - + COUNT ( * ) * - 32 col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
275

query I rowsort
SELECT - ( 56 ) * - 41 * - 16 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e63d4a1575b1e938e6219b52caac06f8

query I rowsort
SELECT + ( col1 ) FROM tab0 AS cor0 WHERE 25 * - col2 + col2 / - ( + 9 ) IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 * - col2 + + col1 - + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3781
SELECT * FROM tab1 AS cor0 WHERE - col0 * + 56 + + 31 + 12 + + - 27 - - CAST( NULL AS DECIMAL ) = NULL
----

skipif mysql # not compatible
query III rowsort label-3781
SELECT * FROM tab1 AS cor0 WHERE - col0 * + 56 + + 31 + 12 + + - 27 - - CAST ( NULL AS REAL ) = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3782
SELECT - col1 DIV 46 + col0 + col2 FROM tab0
----
196
61
97

skipif mysql # not compatible
query I rowsort label-3782
SELECT - col1 / 46 + col0 + col2 FROM tab0
----
196
61
97

query I rowsort
SELECT ALL - 84 - - 22 - - - col1 FROM tab2
----
-113
-129
-139

query I rowsort
SELECT DISTINCT - - 90 + + - ( - 72 ) * - - col0 + - - 72 FROM tab2 WHERE NOT NULL IS NOT NULL
----
3474
4770
5562

onlyif mysql # aggregate syntax: 
query I rowsort label-3785
SELECT ALL + ( SUM( + 67 ) ) + + 89 + + + COUNT( * ) + + ( + 46 ) FROM tab2
----
339

skipif mysql # not compatible
query I rowsort label-3785
SELECT ALL + ( SUM ( + 67 ) ) + + 89 + + + COUNT ( * ) + + ( + 46 ) FROM tab2
----
339

query I rowsort
SELECT ALL - 93 - - + ( - 93 ) AS col2 FROM tab1
----
-186
-186
-186

query III rowsort
SELECT * FROM tab2 WHERE - + col0 * + col1 NOT BETWEEN NULL AND + - col2
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL = + 3
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 43 col2 FROM tab0 WHERE col2 = ( + col1 )
----

query II rowsort
SELECT DISTINCT col2 AS col1, - 24 FROM tab0
----
10
-24
47
-24
99
-24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 AS col1, + col1 col2 FROM tab2
----
51
51
67
67
77
77

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 3 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 col0 FROM tab2 AS cor0 WHERE NOT 89 NOT BETWEEN + col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3794
SELECT ALL - - MAX( - col2 ) FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-3794
SELECT ALL - - MAX ( - col2 ) FROM tab2 AS cor0
----
-23

query I rowsort
SELECT ALL - col0 AS col0 FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN col2 AND col0
----

query II rowsort
SELECT ALL 65 AS col1, - col2 FROM tab2
----
65
-23
65
-40
65
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3797
SELECT - SUM( 96 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-864

skipif mysql # not compatible
query I rowsort label-3797
SELECT - SUM ( 96 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-864

query I rowsort
SELECT ALL 23 * - ( - - 65 ) FROM tab1
----
-1495
-1495
-1495

query II rowsort
SELECT + col1, 1 FROM tab2
----
51
1
67
1
77
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3800
SELECT DISTINCT col0 DIV + 12 col1 FROM tab0 WHERE ( col1 * + ( + - 80 ) + + + col2 * - 90 - + col1 ) < + ( + col0 ) + - col1
----
1
7
8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3800
SELECT DISTINCT col0 / + 12 col1 FROM tab0 WHERE ( col1 * + ( + - 80 ) + + + col2 * - 90 - + col1 ) < + ( + col0 ) + - col1
----
1
7
8

onlyif mysql # aggregate syntax: 
query I rowsort label-3801
SELECT DISTINCT - + MAX( + 81 ) AS col0 FROM tab2 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-3801
SELECT DISTINCT - + MAX ( + 81 ) AS col0 FROM tab2 AS cor0
----
-81

query I rowsort
SELECT + 30 + 1 FROM tab2 cor0
----
31
31
31

query II rowsort
SELECT - - 70 + - col0 AS col0, 14 FROM tab0 AS cor0
----
-17
14
-27
14
55
14

onlyif mysql # aggregate syntax: 
query I rowsort label-3804
SELECT - + ( - + 58 ) + - MAX( + 64 ) AS col0 FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-3804
SELECT - + ( - + 58 ) + - MAX ( + 64 ) AS col0 FROM tab0 AS cor0
----
-6

query II rowsort
SELECT ALL + col1 * + col0 AS col2, 28 AS col2 FROM tab2 AS cor0
----
2346
28
4928
28
5025
28

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 29 < NULL
----

query II rowsort
SELECT 47, + col1 FROM tab0 AS cor0
----
47
1
47
21
47
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3808
SELECT COUNT( * ) AS col2 FROM tab1 WHERE - col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3808
SELECT COUNT ( * ) AS col2 FROM tab1 WHERE - col0 IS NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3809
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + 92, + COUNT( * ) AS col0 FROM tab2
----
NULL
3

skipif mysql # not compatible
query II rowsort label-3809
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + 92, + COUNT ( * ) AS col0 FROM tab2
----
NULL
3

query II rowsort
SELECT DISTINCT + 84 + 98 AS col2, - col1 AS col0 FROM tab0
----
182
-1
182
-21
182
-81

query IIIIII rowsort
SELECT ALL * FROM tab1, tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + 7 FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
7
7
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 + + + 83 col2 FROM tab1 cor0
----
130
88
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3814
SELECT ALL + col2 + + CAST( NULL AS SIGNED ) + - 87 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3814
SELECT ALL + col2 + + CAST ( NULL AS INTEGER ) + - 87 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3815
SELECT DISTINCT - - 88 + + - CAST( NULL AS SIGNED ) - + - SUM( ALL + col1 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3815
SELECT DISTINCT - - 88 + + - CAST ( NULL AS INTEGER ) - + - SUM ( ALL + col1 ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - 62 + + 68 + + col1 FROM tab2
----
57
73
83

query I rowsort
SELECT 70 + + + col0 FROM tab2
----
116
134
145

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3818
SELECT DISTINCT - SUM( - 14 ) + + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3818
SELECT DISTINCT - SUM ( - 14 ) + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 68 col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
68

query I rowsort
SELECT - 61 * - col0 * col0 AS col2 FROM tab2
----
129076
249856
343125

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 86 > + + 81
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3822
SELECT CAST( NULL AS SIGNED ) / - - col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3822
SELECT CAST ( NULL AS INTEGER ) / - - col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT col0 AS col2, col2 FROM tab0 AS cor0
----
15
47
87
10
97
99

query I rowsort
SELECT ALL 3 * + + ( - 76 ) FROM tab0 cor0
----
-228
-228
-228

query II rowsort
SELECT DISTINCT + - col0 AS col2, + 30 * + + 55 AS col2 FROM tab2 AS cor0
----
-46
1650
-64
1650
-75
1650

onlyif mysql # aggregate syntax: 
query I rowsort label-3826
SELECT - - 77 - - COUNT( + col1 ) FROM tab1 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-3826
SELECT - - 77 - - COUNT ( + col1 ) FROM tab1 AS cor0
----
80

onlyif mysql # DIV for integer division: 
query I rowsort label-3827
SELECT ALL - + col1 DIV + + 99 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3827
SELECT ALL - + col1 / + + 99 FROM tab0 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3828
SELECT - COUNT( + col0 ) AS col1, - COUNT( * ) AS col1 FROM tab0 WHERE NOT NULL <> col2
----
0
0

skipif mysql # not compatible
query II rowsort label-3828
SELECT - COUNT ( + col0 ) AS col1, - COUNT ( * ) AS col1 FROM tab0 WHERE NOT NULL <> col2
----
0
0

query I rowsort
SELECT - col1 * - + 49 FROM tab1
----
2303
245
686

onlyif mysql # aggregate syntax: 
query I rowsort label-3830
SELECT - SUM( - - col1 ) AS col1 FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-3830
SELECT - SUM ( - - col1 ) AS col1 FROM tab2
----
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-3831
SELECT - ( + - MAX( 61 ) ) AS col1 FROM tab0
----
61

skipif mysql # not compatible
query I rowsort label-3831
SELECT - ( + - MAX ( 61 ) ) AS col1 FROM tab0
----
61

query I rowsort
SELECT ALL - col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-23
-40
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 col2 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 NOT BETWEEN + col2 + + ( - col2 ) AND + 33
----
46
51
23

query I rowsort
SELECT DISTINCT 5 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3836
SELECT col2 + CAST( NULL AS SIGNED ) AS col0 FROM tab0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-3836
SELECT col2 + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3837
SELECT DISTINCT MIN( + CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3837
SELECT DISTINCT MIN ( + CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

query II rowsort
SELECT DISTINCT + + col1 + + - ( - 27 ) AS col2, ( 42 ) FROM tab1 AS cor0
----
32
42
41
42
74
42

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 NOT BETWEEN + 60 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - 55, + col0 FROM tab0 AS cor0
----
-55
15
-55
87
-55
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3841
SELECT + COUNT( * ) FROM tab2 WHERE NOT - CAST( - 22 AS SIGNED ) IS NULL AND NOT col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3841
SELECT + COUNT ( * ) FROM tab2 WHERE NOT - CAST ( - 22 AS INTEGER ) IS NULL AND NOT col0 IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT + col1 + 51 * + 59 FROM tab2
----
3060
3076
3086

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2, col1 col0 FROM tab1
----
59
5
68
47
96
14

query I rowsort
SELECT DISTINCT - 50 * - col1 * col0 * + col2 * col2 FROM tab0 WHERE NOT + 24 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3845
SELECT col0 DIV + + 44 + + + col0 FROM tab1
----
52
86
93

skipif mysql # not compatible
query I rowsort label-3845
SELECT col0 / + + 44 + + + col0 FROM tab1
----
52
86
93

onlyif mysql # aggregate syntax: 
query II rowsort label-3846
SELECT ALL + COUNT( * ) AS col0, COUNT( * ) FROM tab0
----
3
3

skipif mysql # not compatible
query II rowsort label-3846
SELECT ALL + COUNT ( * ) AS col0, COUNT ( * ) FROM tab0
----
3
3

query I rowsort
SELECT 94 + col0 FROM tab2
----
140
158
169

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3848
SELECT ALL MAX( + CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3848
SELECT ALL MAX ( + CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

query II rowsort
SELECT ALL col1 AS col1, 43 + - col2 AS col1 FROM tab2
----
51
20
67
-15
77
3

query I rowsort
SELECT DISTINCT 49 + + + col1 AS col0 FROM tab0 cor0
----
130
50
70

query II rowsort
SELECT DISTINCT - col1 AS col1, - col2 + col2 AS col1 FROM tab0 AS cor0
----
-1
0
-21
0
-81
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3852
SELECT + - MAX( ALL - col1 ) AS col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3852
SELECT + - MAX ( ALL - col1 ) AS col0 FROM tab0 AS cor0
----
1

query I rowsort
SELECT DISTINCT ( + ( - col2 ) ) - - col2 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3854
SELECT + - ( - - CAST( NULL AS SIGNED ) ) * 77 AS col0 FROM tab2 WHERE - ( + col1 ) IN ( 34, 16 )
----

skipif mysql # not compatible
query I rowsort label-3854
SELECT + - ( - - CAST ( NULL AS INTEGER ) ) * 77 AS col0 FROM tab2 WHERE - ( + col1 ) IN ( 34, 16 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3855
SELECT ALL 58 - - 88 + - COUNT( * ) AS col2 FROM tab2
----
143

skipif mysql # not compatible
query I rowsort label-3855
SELECT ALL 58 - - 88 + - COUNT ( * ) AS col2 FROM tab2
----
143

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3856
SELECT + - CAST( NULL AS SIGNED ) + + - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3856
SELECT + - CAST ( NULL AS INTEGER ) + + - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3857
SELECT DISTINCT + 75 / CAST( NULL AS SIGNED ), 41 AS col1 FROM tab0 AS cor0
----
NULL
41

skipif mysql # not compatible
query II rowsort label-3857
SELECT DISTINCT + 75 / CAST ( NULL AS INTEGER ), 41 AS col1 FROM tab0 AS cor0
----
NULL
41

onlyif mysql # DIV for integer division: 
query I rowsort label-3858
SELECT 45 DIV 31 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3858
SELECT 45 / 31 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT - - col2 * + ( 90 ) FROM tab1 AS cor0
----
5310
6120
8640

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3860
SELECT DISTINCT + - 61 * - col0 / - CAST( NULL AS SIGNED ) AS col1, col1 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-3860
SELECT DISTINCT + - 61 * - col0 / - CAST ( NULL AS INTEGER ) AS col1, col1 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

query I rowsort
SELECT ( + 12 ) FROM tab0 AS cor0
----
12
12
12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 66 col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3863
SELECT ALL + col0 DIV + CAST( col1 AS SIGNED ) AS col1 FROM tab1
----
1
17
3

skipif mysql # not compatible
query I rowsort label-3863
SELECT ALL + col0 / + CAST ( col1 AS INTEGER ) AS col1 FROM tab1
----
1
17
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3864
SELECT DISTINCT + MIN( + - 89 ) AS col0 FROM tab2 WHERE + ( + CAST( NULL AS SIGNED ) ) IS NULL
----
-89

skipif mysql # not compatible
query I rowsort label-3864
SELECT DISTINCT + MIN ( + - 89 ) AS col0 FROM tab2 WHERE + ( + CAST ( NULL AS INTEGER ) ) IS NULL
----
-89

query I rowsort
SELECT ALL + 51 FROM tab2, tab1 cor0
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752

query III rowsort
SELECT * FROM tab2 WHERE NOT - 55 < col0 * col1 / - col1
----
64
77
40
75
67
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + + 44 col1 FROM tab2 AS cor0
----
2024
2816
3300

onlyif mysql # DIV for integer division: 
query I rowsort label-3868
SELECT ALL - col1 DIV - col2 * - - 18 * - col2 * - col1 + 49 FROM tab1 AS cor0
----
49
49
49

skipif mysql # not compatible
query I rowsort label-3868
SELECT ALL - col1 / - col2 * - - 18 * - col2 * - col1 + 49 FROM tab1 AS cor0
----
49
49
49

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 13 / + + ( col0 ) / - + col2 + - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ( - 21 ) * + col1 - - 1 FROM tab0
----
-1700
-20
-440

query I rowsort
SELECT col2 FROM tab0 WHERE NOT + col1 + - 43 IS NULL
----
10
47
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3872
SELECT MIN( ALL 92 ) DIV - 36 - 52 AS col0 FROM tab1
----
-54

skipif mysql # not compatible
query I rowsort label-3872
SELECT MIN ( ALL 92 ) / - 36 - 52 AS col0 FROM tab1
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-3873
SELECT - ( MIN( col0 ) ) col2 FROM tab2
----
-46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3873
SELECT - ( MIN ( col0 ) ) col2 FROM tab2
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-3874
SELECT DISTINCT - MIN( ALL - 20 ) FROM tab2
----
20

skipif mysql # not compatible
query I rowsort label-3874
SELECT DISTINCT - MIN ( ALL - 20 ) FROM tab2
----
20

query I rowsort
SELECT DISTINCT - col2 + + 39 FROM tab0
----
-60
-8
29

onlyif mysql # aggregate syntax: 
query I rowsort label-3876
SELECT 10 * COUNT( - 96 ) AS col0 FROM tab1
----
30

skipif mysql # not compatible
query I rowsort label-3876
SELECT 10 * COUNT ( - 96 ) AS col0 FROM tab1
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-3877
SELECT DISTINCT COUNT( * ) * + COUNT( * ) col0 FROM tab1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3877
SELECT DISTINCT COUNT ( * ) * + COUNT ( * ) col0 FROM tab1
----
9

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 14 - + 39 NOT BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 + col2 = + 86
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col2 - col0 AS col2 FROM tab2 WHERE NOT NULL <> ( col2 )
----

query I rowsort
SELECT col2 + + 40 FROM tab2
----
63
80
98

query I rowsort
SELECT ALL - col2 * col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-1058
-2560
-4350

query I rowsort
SELECT DISTINCT col1 * col0 AS col2 FROM tab1 WHERE NOT NULL <= - 59
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col2 * 71 + - 73 * 47 IN ( - 90 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3885
SELECT + ( COUNT( * ) ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3885
SELECT + ( COUNT ( * ) ) AS col2 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3886
SELECT - MIN( 48 ) col1 FROM tab0
----
-48

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3886
SELECT - MIN ( 48 ) col1 FROM tab0
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3887
SELECT - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3887
SELECT - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - AVG ( + 53 ) AS col1 FROM tab1 WHERE NOT ( 29 ) IS NOT NULL
----
NULL

query I rowsort
SELECT ALL col0 AS col1 FROM tab1 WHERE NOT - col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE col0 - + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3891
SELECT COUNT( * ) + - 56 FROM tab0 AS cor0
----
-53

skipif mysql # not compatible
query I rowsort label-3891
SELECT COUNT ( * ) + - 56 FROM tab0 AS cor0
----
-53

query I rowsort
SELECT + col2 + 41 AS col0 FROM tab2 cor0
----
64
81
99

query I rowsort
SELECT 12 + col2 AS col1 FROM tab0 AS cor0
----
111
22
59

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL IN ( 70 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3895
SELECT DISTINCT + ( COUNT( * ) ) * - 8 + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-3895
SELECT DISTINCT + ( COUNT ( * ) ) * - 8 + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-21

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col2 * ( col1 ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3897
SELECT - MIN( col0 ) AS col1 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-3897
SELECT - MIN ( col0 ) AS col1 FROM tab0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-3898
SELECT - SUM( DISTINCT - col2 ) AS col1 FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-3898
SELECT - SUM ( DISTINCT - col2 ) AS col1 FROM tab2
----
121

query III rowsort
SELECT * FROM tab0 WHERE col1 > col0
----
15
81
47

query I rowsort
SELECT ALL - 81 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0
----
9 values hashing to 205b3ff2d7b1817c98d7980b8c17e6c1

query I rowsort
SELECT + col2 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
23
40
58

query I rowsort
SELECT + col0 * col0 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3903
SELECT DISTINCT * FROM tab2 WHERE NULL = ( - col2 + ( + CAST( NULL AS SIGNED ) ) )
----

skipif mysql # not compatible
query III rowsort label-3903
SELECT DISTINCT * FROM tab2 WHERE NULL = ( - col2 + ( + CAST ( NULL AS INTEGER ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3904
SELECT ALL COUNT( * ) * COUNT( * ) AS col2 FROM tab1 WHERE ( - 5 / + col2 ) IS NOT NULL
----
9

skipif mysql # not compatible
query I rowsort label-3904
SELECT ALL COUNT ( * ) * COUNT ( * ) AS col2 FROM tab1 WHERE ( - 5 / + col2 ) IS NOT NULL
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3905
SELECT + MAX( + col0 ) FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-3905
SELECT + MAX ( + col0 ) FROM tab0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3906
SELECT + COUNT( * ) AS col1 FROM tab0 WHERE NOT - col2 < col1
----
0

skipif mysql # not compatible
query I rowsort label-3906
SELECT + COUNT ( * ) AS col1 FROM tab0 WHERE NOT - col2 < col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3907
SELECT col1 * + + col0 * CAST( + 90 * 25 AS SIGNED ) FROM tab1
----
1606500
956250
9623250

skipif mysql # not compatible
query I rowsort label-3907
SELECT col1 * + + col0 * CAST ( + 90 * 25 AS INTEGER ) FROM tab1
----
1606500
956250
9623250

query III rowsort
SELECT * FROM tab1 WHERE NOT + 80 * + col1 <> NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 + - 79 * + col0 BETWEEN ( - 22 + col0 ) AND ( NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 30 col2 FROM tab2
----
-30
-30
-30

query I rowsort
SELECT DISTINCT col1 * + - 59 AS col1 FROM tab2
----
-3009
-3953
-4543

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 17 + col2 * + col1 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3913
SELECT * FROM tab2 WHERE NOT ( + CAST( + col2 AS SIGNED ) ) NOT BETWEEN 70 AND NULL
----

skipif mysql # not compatible
query III rowsort label-3913
SELECT * FROM tab2 WHERE NOT ( + CAST ( + col2 AS INTEGER ) ) NOT BETWEEN 70 AND NULL
----

query I rowsort
SELECT DISTINCT - col0 * + col2 * 59 FROM tab2
----
-151040
-256650
-62422

onlyif mysql # aggregate syntax: 
query I rowsort label-3915
SELECT + MIN( col2 ) FROM tab0 WHERE NOT ( - col1 ) <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3915
SELECT + MIN ( col2 ) FROM tab0 WHERE NOT ( - col1 ) <= NULL
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3916
SELECT DISTINCT + COUNT( * ) DIV - - ( - MAX( - 78 ) ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3916
SELECT DISTINCT + COUNT ( * ) / - - ( - MAX ( - 78 ) ) FROM tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 88 col1 FROM tab2 AS cor0
----
88
88
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 37 col0 FROM tab1 AS cor0 WHERE 68 <> - 22 - + col2 AND - ( 79 ) IS NULL
----

query I rowsort
SELECT + 74 * + + 38 FROM tab0
----
2812
2812
2812

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3920
SELECT - + CAST( 31 AS SIGNED ) + + 67 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752

skipif mysql # not compatible
query I rowsort label-3920
SELECT - + CAST ( 31 AS INTEGER ) + + 67 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( 8 + - + col1 ) NOT BETWEEN ( 98 * 40 ) AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + + col1 FROM tab2 AS cor0 WHERE - col2 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( - col0 * + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3924
SELECT COUNT( DISTINCT col0 ) col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3924
SELECT COUNT ( DISTINCT col0 ) col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3925
SELECT ALL + + 52 + - - COUNT( * ) AS col2 FROM tab2 AS cor0
----
55

skipif mysql # not compatible
query I rowsort label-3925
SELECT ALL + + 52 + - - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
55

onlyif mysql # DIV for integer division: 
query I rowsort label-3926
SELECT ALL 58 + 45 + - + col1 + - col2 DIV col2 FROM tab2 AS cor0
----
25
35
51

skipif mysql # not compatible
query I rowsort label-3926
SELECT ALL 58 + 45 + - + col1 + - col2 / col2 FROM tab2 AS cor0
----
25
35
51

query I rowsort
SELECT 84 + + ( - - col0 ) FROM tab0
----
171
181
99

query I rowsort
SELECT 27 + ( + col1 ) * - 64 AS col2 FROM tab1
----
-293
-2981
-869

onlyif mysql # aggregate syntax: 
query I rowsort label-3929
SELECT ALL - COUNT( * ) - COUNT( * ) + - MIN( 28 ) * + 2 AS col2 FROM tab1
----
-62

skipif mysql # not compatible
query I rowsort label-3929
SELECT ALL - COUNT ( * ) - COUNT ( * ) + - MIN ( 28 ) * + 2 AS col2 FROM tab1
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-3930
SELECT ALL - COUNT( DISTINCT + ( + col0 ) ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3930
SELECT ALL - COUNT ( DISTINCT + ( + col0 ) ) FROM tab0
----
-3

query I rowsort
SELECT col0 + - 67 + - - col1 * 60 FROM tab2
----
3039
4028
4617

query I rowsort
SELECT ALL 44 - - col0 * col1 * 1 + + col1 * 1 FROM tab0
----
1340
142
1892

query I rowsort
SELECT ( + col0 ) + + - col2 * + + col1 AS col1 FROM tab0
----
-123
-2
-3792

query III rowsort
SELECT ALL * FROM tab2 WHERE 93 IN ( + + col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3935
SELECT - col0 DIV + 97 - + col2 AS col1 FROM tab0 WHERE ( - + col2 ) IS NOT NULL
----
-10
-100
-47

skipif mysql # not compatible
query I rowsort label-3935
SELECT - col0 / + 97 - + col2 AS col1 FROM tab0 WHERE ( - + col2 ) IS NOT NULL
----
-10
-100
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-3936
SELECT DISTINCT COUNT( * ) + + 84 FROM tab1 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-3936
SELECT DISTINCT COUNT ( * ) + + 84 FROM tab1 AS cor0
----
87

query I rowsort
SELECT DISTINCT ( + 94 ) AS col2 FROM tab1
----
94

query I rowsort
SELECT DISTINCT 83 * 62 FROM tab2 WHERE NOT ( col2 ) - - col0 <> ( - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3939
SELECT DISTINCT ( + CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3939
SELECT DISTINCT ( + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 cor0
----
NULL

query I rowsort
SELECT ALL + 35 AS col1 FROM tab1 AS cor0
----
35
35
35

query I rowsort
SELECT - col2 * + 87 FROM tab0 AS cor0
----
-4089
-8613
-870

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE col2 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( + col1 ) IS NOT NULL
----

query I rowsort
SELECT - ( + + col0 ) AS col2 FROM tab0 AS cor0
----
-15
-87
-97

query I rowsort
SELECT col0 * - 57 FROM tab2 AS cor0
----
-2622
-3648
-4275

onlyif mysql # aggregate syntax: 
query I rowsort label-3946
SELECT - + COUNT( - - col2 ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3946
SELECT - + COUNT ( - - col2 ) AS col0 FROM tab0 AS cor0
----
-3

query II rowsort
SELECT DISTINCT 54 AS col0, + col2 FROM tab1 AS cor0
----
54
59
54
68
54
96

query I rowsort
SELECT ALL col0 AS col2 FROM tab1 WHERE + - col0 * + + ( + col2 ) + - - ( - 84 ) / - col2 + + col2 NOT IN ( col1 * col0 - + col1 )
----
51
85
91

query I rowsort
SELECT ALL ( - col1 ) * - 57 + + col0 AS col1 FROM tab2
----
2953
3894
4453

onlyif mysql # aggregate syntax: 
query I rowsort label-3950
SELECT COUNT( * ) AS col2 FROM tab0 WHERE NOT + 54 * - - 5 - + col0 <= - col2
----
3

skipif mysql # not compatible
query I rowsort label-3950
SELECT COUNT ( * ) AS col2 FROM tab0 WHERE NOT + 54 * - - 5 - + col0 <= - col2
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3951
SELECT ALL - 15 DIV + 99 * + col2 AS col1 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3951
SELECT ALL - 15 / + 99 * + col2 AS col1 FROM tab0 cor0
----
0
0
0

query II rowsort
SELECT ( - col2 ) AS col2, 6 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3953
SELECT + 37 AS col1, ( + - 50 ) DIV + col1 + + - col2 * + col1 FROM tab2 cor0
----
37
-1173
37
-3080
37
-3886

skipif mysql # not compatible
query II rowsort label-3953
SELECT + 37 AS col1, ( + - 50 ) / + col1 + + - col2 * + col1 FROM tab2 cor0
----
37
-1173
37
-3080
37
-3886

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 50 * col1 * 9 * + col1 BETWEEN - + col2 * col0 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3955
SELECT DISTINCT - ( + + col1 ) DIV - col0 AS col1 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-3955
SELECT DISTINCT - ( + + col1 ) / - col0 AS col1 FROM tab2 AS cor0
----
0
1

query II rowsort
SELECT DISTINCT + - 61, 96 AS col2 FROM tab0 AS cor0
----
-61
96

query I rowsort
SELECT ALL - + col2 + + ( + 15 ) + col0 + - col2 AS col0 FROM tab2 AS cor0
----
-1
-26
15

query I rowsort
SELECT DISTINCT + 90 * - 47 FROM tab1
----
-4230

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3959
SELECT DISTINCT col0 FROM tab0 WHERE NOT col0 * - - col2 * + CAST( CAST( - col1 AS SIGNED ) AS SIGNED ) + + col1 <= + 53
----

skipif mysql # not compatible
query I rowsort label-3959
SELECT DISTINCT col0 FROM tab0 WHERE NOT col0 * - - col2 * + CAST ( CAST ( - col1 AS INTEGER ) AS INTEGER ) + + col1 <= + 53
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3960
SELECT DISTINCT + + COUNT( * ) - + - COUNT( * ) FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
18

skipif mysql # not compatible
query I rowsort label-3960
SELECT DISTINCT + + COUNT ( * ) - + - COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 * + col1, + col1 col2 FROM tab1 AS cor0
----
-1344
14
-295
5
-3196
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3962
SELECT + + CAST( - + col2 AS SIGNED ) * + + 62 AS col0 FROM tab0 AS cor0
----
-2914
-6138
-620

skipif mysql # not compatible
query I rowsort label-3962
SELECT + + CAST ( - + col2 AS INTEGER ) * + + 62 AS col0 FROM tab0 AS cor0
----
-2914
-6138
-620

onlyif mysql # aggregate syntax: 
query I rowsort label-3963
SELECT - - MIN( DISTINCT + col2 ) AS col1 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-3963
SELECT - - MIN ( DISTINCT + col2 ) AS col1 FROM tab1 AS cor0
----
59

onlyif mysql # aggregate syntax: 
query II rowsort label-3964
SELECT ALL - - 80 + COUNT( * ), ( - + 1 ) - - COUNT( * ) AS col1 FROM tab0 AS cor0
----
83
2

skipif mysql # not compatible
query II rowsort label-3964
SELECT ALL - - 80 + COUNT ( * ), ( - + 1 ) - - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
83
2

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 70 BETWEEN + 89 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3966
SELECT DISTINCT 44 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN col1 AND ( + CAST( + col0 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-3966
SELECT DISTINCT 44 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN col1 AND ( + CAST ( + col0 AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3967
SELECT DISTINCT + 88 * + + CAST( + ( col1 ) AS SIGNED ) AS col1 FROM tab2
----
4488
5896
6776

skipif mysql # not compatible
query I rowsort label-3967
SELECT DISTINCT + 88 * + + CAST ( + ( col1 ) AS INTEGER ) AS col1 FROM tab2
----
4488
5896
6776

onlyif mysql # aggregate syntax: 
query I rowsort label-3968
SELECT ALL COUNT( * ) + + 90 AS col0 FROM tab2
----
93

skipif mysql # not compatible
query I rowsort label-3968
SELECT ALL COUNT ( * ) + + 90 AS col0 FROM tab2
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3969
SELECT - col0 * + + col2 - + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3969
SELECT - col0 * + + col2 - + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL col2 AS col1, + 34 + - 99 FROM tab0
----
10
-65
47
-65
99
-65

query I rowsort
SELECT + + 54 FROM tab2 WHERE 16 IS NOT NULL
----
54
54
54

query I rowsort
SELECT DISTINCT - 17 - + col1 FROM tab0
----
-18
-38
-98

onlyif mysql # aggregate syntax: 
query II rowsort label-3973
SELECT DISTINCT + COUNT( * ) AS col1, - 68 FROM tab2
----
3
-68

skipif mysql # not compatible
query II rowsort label-3973
SELECT DISTINCT + COUNT ( * ) AS col1, - 68 FROM tab2
----
3
-68

query I rowsort
SELECT 45 + col2 * - 74 FROM tab0
----
-3433
-695
-7281

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3975
SELECT DISTINCT + - COUNT( * ), - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-3975
SELECT DISTINCT + - COUNT ( * ), - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-3
NULL

query I rowsort
SELECT DISTINCT 57 * ( col0 ) * - 64 FROM tab0 AS cor0
----
-317376
-353856
-54720

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 / - col0 BETWEEN - col0 AND + - 99 * + + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3978
SELECT + COUNT( * ) col0 FROM tab2 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3978
SELECT + COUNT ( * ) col0 FROM tab2 WHERE NOT NULL IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3979
SELECT ALL - + 54 * col2 * - - CAST( + - col1 AS SIGNED ) + - 98 + + col0 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col2, col1 )
----

skipif mysql # not compatible
query I rowsort label-3979
SELECT ALL - + 54 * col2 * - - CAST ( + - col1 AS INTEGER ) + - 98 + + col0 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col2, col1 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) < - col2 * - 46
----

query I rowsort
SELECT + col0 FROM tab2 AS cor0 WHERE NOT col0 / + col0 >= - col0 * + + col0
----

query I rowsort
SELECT DISTINCT + ( col0 ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 col1, 86 * - 37 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
23
-3182
40
-3182
58
-3182

query I rowsort
SELECT ( - 53 ) FROM tab0
----
-53
-53
-53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3986
SELECT - SUM( + + 42 ) - + COUNT( * ) + 28 * MAX( col1 ) AS col1 FROM tab0 WHERE NOT + 46 NOT BETWEEN NULL AND + - col2 - + - col0 + - col2 * + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3986
SELECT - SUM ( + + 42 ) - + COUNT ( * ) + 28 * MAX ( col1 ) AS col1 FROM tab0 WHERE NOT + 46 NOT BETWEEN NULL AND + - col2 - + - col0 + - col2 * + col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3987
SELECT ALL - SUM( ALL col1 ) FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-3987
SELECT ALL - SUM ( ALL col1 ) FROM tab1
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-3988
SELECT + MAX( + 40 ) AS col2 FROM tab2
----
40

skipif mysql # not compatible
query I rowsort label-3988
SELECT + MAX ( + 40 ) AS col2 FROM tab2
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-3989
SELECT - COUNT( * ) + - COUNT( * ) + - 43 FROM tab1
----
-49

skipif mysql # not compatible
query I rowsort label-3989
SELECT - COUNT ( * ) + - COUNT ( * ) + - 43 FROM tab1
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-3990
SELECT ALL + MAX( DISTINCT 96 ) AS col1 FROM tab2
----
96

skipif mysql # not compatible
query I rowsort label-3990
SELECT ALL + MAX ( DISTINCT 96 ) AS col1 FROM tab2
----
96

query I rowsort
SELECT DISTINCT + 76 * - - col2 * 52 * + col0 FROM tab1 WHERE ( - + col0 ) >= + col1
----

query I rowsort
SELECT DISTINCT + - ( + + col0 ) FROM tab0 AS cor0
----
-15
-87
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + 58 col1, - col0 * + ( + col0 ) + - - col1 * + col0 AS col2 FROM tab2 cor0
----
58
-600
58
230
58
832

query I rowsort
SELECT - col2 FROM tab2 WHERE - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3995
SELECT ALL - + MAX( DISTINCT - col1 ) AS col1 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-3995
SELECT ALL - + MAX ( DISTINCT - col1 ) AS col1 FROM tab1 AS cor0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3996
SELECT ALL MAX( ALL + col2 ) AS col1 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-3996
SELECT ALL MAX ( ALL + col2 ) AS col1 FROM tab1 AS cor0
----
96

query I rowsort
SELECT DISTINCT + 25 * - + col2 FROM tab0 cor0
----
-1175
-2475
-250

onlyif mysql # DIV for integer division: 
query I rowsort label-3998
SELECT + col2 + 56 DIV - + col0 AS col1 FROM tab2 AS cor0
----
22
40
58

skipif mysql # not compatible
query I rowsort label-3998
SELECT + col2 + 56 / - + col0 AS col1 FROM tab2 AS cor0
----
22
40
58

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3999
SELECT 53 + col0 + col2 / + CAST( NULL AS DECIMAL ) * - col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3999
SELECT 53 + col0 + col2 / + CAST ( NULL AS REAL ) * - col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4000
SELECT + MIN( DISTINCT + col0 ) + - ( 41 ) AS col2 FROM tab0 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-4000
SELECT + MIN ( DISTINCT + col0 ) + - ( 41 ) AS col2 FROM tab0 AS cor0
----
-26

query I rowsort
SELECT - ( + 41 ) + + 64 AS col1 FROM tab1 AS cor0
----
23
23
23

query I rowsort
SELECT - col0 + - + col1 + - col1 FROM tab2 AS cor0
----
-148
-209
-218

query I rowsort
SELECT 79 * - - 86 * - + 90 AS col1 FROM tab0 AS cor0 WHERE 7 IS NULL
----

query II rowsort
SELECT - - col2 + - col1 AS col0, col2 AS col1 FROM tab1 AS cor0
----
21
68
54
59
82
96

query I rowsort
SELECT DISTINCT 95 + + col0 AS col2 FROM tab1 AS cor0
----
146
180
186

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 - + col0 col1, col1 AS col1 FROM tab0
----
-77
21
2
1
32
81

query I rowsort
SELECT ALL 71 * - 87 + + col1 FROM tab0
----
-6096
-6156
-6176

query I rowsort
SELECT - 51 * - + 95 AS col1 FROM tab0 AS cor0
----
4845
4845
4845

query I rowsort
SELECT DISTINCT 73 AS col1 FROM tab1 cor0 WHERE NOT ( NULL ) IN ( - col0 )
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-4011
SELECT DISTINCT + col0 DIV 92 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4011
SELECT DISTINCT + col0 / 92 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4012
SELECT ALL + - COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-4012
SELECT ALL + - COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4013
SELECT MAX( DISTINCT + col1 ) AS col2 FROM tab1 cor0
----
47

skipif mysql # not compatible
query I rowsort label-4013
SELECT MAX ( DISTINCT + col1 ) AS col2 FROM tab1 cor0
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4014
SELECT * FROM tab0 AS cor0 WHERE NOT NULL < CAST( - + col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4014
SELECT * FROM tab0 AS cor0 WHERE NOT NULL < CAST ( - + col2 AS INTEGER )
----

query I rowsort
SELECT DISTINCT + + 99 FROM tab0 AS cor0
----
99

onlyif mysql # aggregate syntax: 
query II rowsort label-4016
SELECT - COUNT( - ( + - col0 ) ) AS col2, - 90 AS col1 FROM tab1 AS cor0
----
-3
-90

skipif mysql # not compatible
query II rowsort label-4016
SELECT - COUNT ( - ( + - col0 ) ) AS col2, - 90 AS col1 FROM tab1 AS cor0
----
-3
-90

query I rowsort
SELECT ALL + - 4 AS col2 FROM tab2 AS cor0
----
-4
-4
-4

query I rowsort
SELECT ( 91 ) AS col0 FROM tab1 AS cor0
----
91
91
91

query I rowsort
SELECT - col1 * 43 AS col2 FROM tab0 AS cor0
----
-3483
-43
-903

query I rowsort
SELECT + - ( - col2 ) * - + col1 * col1 AS col2 FROM tab1 AS cor0
----
-1475
-150212
-18816

query I rowsort
SELECT ALL + col2 + - - col0 FROM tab1 AS cor0
----
144
147
159

onlyif mysql # aggregate syntax: 
query I rowsort label-4022
SELECT ALL - 24 * COUNT( * ) FROM tab2
----
-72

skipif mysql # not compatible
query I rowsort label-4022
SELECT ALL - 24 * COUNT ( * ) FROM tab2
----
-72

onlyif mysql # aggregate syntax: 
query II rowsort label-4023
SELECT + COUNT( ALL - + 37 ) AS col2, MAX( + - 59 ) col2 FROM tab0
----
3
-59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4023
SELECT + COUNT ( ALL - + 37 ) AS col2, MAX ( + - 59 ) col2 FROM tab0
----
3
-59

query I rowsort
SELECT - - 67 AS col1 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT ( + 71 ) AS col1 FROM tab0
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-4026
SELECT + COUNT( * ) + + 10 FROM tab2 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-4026
SELECT + COUNT ( * ) + + 10 FROM tab2 AS cor0
----
13

query I rowsort
SELECT 36 + + 11 FROM tab2 AS cor0
----
47
47
47

query I rowsort
SELECT ALL + 77 * col0 + + 65 - - 87 + + col1 AS col2 FROM tab0 AS cor0
----
1388
6872
7622

query I rowsort
SELECT DISTINCT - col1 * + + col1 + + + 34 AS col1 FROM tab2 AS cor0
----
-2567
-4455
-5895

query I rowsort
SELECT col0 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 29 + - col2 col0 FROM tab1 AS cor0
----
-30
-39
-67

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 63 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4033
SELECT ALL + COUNT( * ) * SUM( ALL + 44 ) FROM tab0
----
396

skipif mysql # not compatible
query I rowsort label-4033
SELECT ALL + COUNT ( * ) * SUM ( ALL + 44 ) FROM tab0
----
396

query I rowsort
SELECT DISTINCT col1 * 50 + + - 50 + 49 AS col1 FROM tab2
----
2549
3349
3849

onlyif mysql # aggregate syntax: 
query I rowsort label-4035
SELECT COUNT( * ) * + + 76 AS col1 FROM tab1 AS cor0
----
228

skipif mysql # not compatible
query I rowsort label-4035
SELECT COUNT ( * ) * + + 76 AS col1 FROM tab1 AS cor0
----
228

onlyif mysql # aggregate syntax: 
query I rowsort label-4036
SELECT - ( 76 ) * COUNT( * ) AS col1 FROM tab2 AS cor0
----
-228

skipif mysql # not compatible
query I rowsort label-4036
SELECT - ( 76 ) * COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-228

query I rowsort
SELECT ALL + 44 * + - col1 * col0 + - col2 FROM tab1 AS cor0
----
-18759
-188256
-31512

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 / + col1 + + - 70 BETWEEN 28 AND NULL
----

query I rowsort
SELECT ALL ( - 70 ) + + - 59 FROM tab2
----
-129
-129
-129

query I rowsort
SELECT DISTINCT 48 - + col0 FROM tab1
----
-3
-37
-43

query I rowsort
SELECT DISTINCT - col2 + + 74 AS col0 FROM tab1
----
-22
15
6

query II rowsort
SELECT 88 * - col2, col2 FROM tab1
----
-5192
59
-5984
68
-8448
96

query I rowsort
SELECT DISTINCT col1 * - col2 * + - col2 AS col0 FROM tab2
----
123200
225388
26979

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4044
SELECT ALL - col1 FROM tab2 WHERE 29 * + CAST( NULL AS SIGNED ) + 57 - 75 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4044
SELECT ALL - col1 FROM tab2 WHERE 29 * + CAST ( NULL AS INTEGER ) + 57 - 75 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4045
SELECT - COUNT( ALL + - col1 ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-4045
SELECT - COUNT ( ALL + - col1 ) AS col0 FROM tab2
----
-3

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT BETWEEN - col0 AND + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4047
SELECT CAST( NULL AS SIGNED ) AS col0, ( + 84 ) FROM tab1
----
NULL
84
NULL
84
NULL
84

skipif mysql # not compatible
query II rowsort label-4047
SELECT CAST ( NULL AS INTEGER ) AS col0, ( + 84 ) FROM tab1
----
NULL
84
NULL
84
NULL
84

query I rowsort
SELECT col2 * + 51 * col0 FROM tab2
----
130560
221850
53958

query I rowsort
SELECT ALL 37 * + + 31 - - - col0 FROM tab1 AS cor0
----
1056
1062
1096

query I rowsort
SELECT ALL col2 * + + col2 + + col0 AS col1 FROM tab2 cor0
----
1664
3439
575

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4051
SELECT DISTINCT - - SUM( DISTINCT - - 74 ) DIV COUNT( * ) AS col2 FROM tab2 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-4051
SELECT DISTINCT - - SUM ( DISTINCT - - 74 ) / COUNT ( * ) AS col2 FROM tab2 AS cor0
----
24

query II rowsort
SELECT ALL - col1, + col0 AS col2 FROM tab1 AS cor0
----
-14
51
-47
91
-5
85

query II rowsort
SELECT ALL col1 * + col1 AS col1, col1 FROM tab1
----
196
14
2209
47
25
5

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4054
SELECT ALL + 77 * - col0 * - CAST( NULL AS DECIMAL ) AS col0 FROM tab1 AS cor0 WHERE col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-4054
SELECT ALL + 77 * - col0 * - CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0 WHERE col2 IS NULL
----

query II rowsort
SELECT - col0 * - - col1 AS col1, 4 * - 73 AS col0 FROM tab1 AS cor0
----
-425
-292
-4277
-292
-714
-292

query I rowsort
SELECT ALL + 8 * 87 - + col1 AS col0 FROM tab1 AS cor0 WHERE NOT + 94 IS NULL
----
649
682
691

onlyif mysql # aggregate syntax: 
query I rowsort label-4057
SELECT ALL COUNT( * ) + + COUNT( * ) AS col1 FROM tab2 cor0
----
6

skipif mysql # not compatible
query I rowsort label-4057
SELECT ALL COUNT ( * ) + + COUNT ( * ) AS col1 FROM tab2 cor0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4058
SELECT col2 / - col0 * - + CAST( NULL AS SIGNED ) * ( + - col0 ) + + col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4058
SELECT col2 / - col0 * - + CAST ( NULL AS INTEGER ) * ( + - col0 ) + + col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 91 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-91

query I rowsort
SELECT - 54 + 53 AS col0 FROM tab0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 3 col2, - 9 FROM tab0
----
3
-9

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col1 < ( - 55 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 20 + 72 FROM tab1
----
92
92
92

query I rowsort
SELECT 67 + 7 AS col1 FROM tab2
----
74
74
74

query I rowsort
SELECT ALL - col2 * 84 * + 99 FROM tab1
----
-490644
-565488
-798336

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4066
SELECT ALL + AVG ( DISTINCT + 79 ) + + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4066
SELECT ALL + AVG ( DISTINCT + 79 ) + + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4067
SELECT + + 39 + + - MAX( ALL - 5 ) FROM tab0, tab1 AS cor0 WHERE NULL > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4067
SELECT + + 39 + + - MAX ( ALL - 5 ) FROM tab0, tab1 AS cor0 WHERE NULL > NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4068
SELECT 76 + 81 + + COUNT( * ) FROM tab2, tab2 AS cor0 WHERE NULL <= - 32
----
157

skipif mysql # not compatible
query I rowsort label-4068
SELECT 76 + 81 + + COUNT ( * ) FROM tab2, tab2 AS cor0 WHERE NULL <= - 32
----
157

onlyif mysql # DIV for integer division: 
query I rowsort label-4069
SELECT 8 DIV - 42 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4069
SELECT 8 / - 42 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4070
SELECT - - MIN( ALL col2 ) AS col1 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-4070
SELECT - - MIN ( ALL col2 ) AS col1 FROM tab2 AS cor0
----
23

query I rowsort
SELECT ALL - col2 + 24 FROM tab0 AS cor0
----
-23
-75
14

query I rowsort
SELECT DISTINCT - col0 - - ( + + 7 ) FROM tab1
----
-44
-78
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-4073
SELECT ALL COUNT( + col0 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4073
SELECT ALL COUNT ( + col0 ) AS col0 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4074
SELECT DISTINCT - - COUNT( * ) col2 FROM ( tab1 cor0 CROSS JOIN tab1 AS cor1 )
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4074
SELECT DISTINCT - - COUNT ( * ) col2 FROM ( tab1 cor0 CROSS JOIN tab1 AS cor1 )
----
9

query I rowsort
SELECT ALL + ( - 13 ) - col1 FROM tab0
----
-14
-34
-94

query I rowsort
SELECT DISTINCT col0 * - 98 + + col0 * + col0 FROM tab1 AS cor0
----
-1105
-2397
-637

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4077
SELECT 50 DIV - - ( - + COUNT( * ) ) FROM tab1
----
-16

skipif mysql # not compatible
query I rowsort label-4077
SELECT 50 / - - ( - + COUNT ( * ) ) FROM tab1
----
-16

query II rowsort
SELECT col1 AS col0, - ( + 9 ) * - col2 FROM tab2
----
51
207
67
522
77
360

query II rowsort
SELECT - col2 AS col1, 43 * + col2 * - col2 FROM tab2
----
-23
-22747
-40
-68800
-58
-144652

query I rowsort
SELECT 40 / col0 * + col1 AS col0 FROM tab1 WHERE NOT 42 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4081
SELECT DISTINCT + ( - SUM( - col0 ) ) FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-4081
SELECT DISTINCT + ( - SUM ( - col0 ) ) FROM tab1
----
227

query III rowsort
SELECT * FROM tab2 WHERE NOT - - 57 > NULL
----

query II rowsort
SELECT ALL + col0 AS col0, col2 FROM tab0
----
15
47
87
10
97
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4084
SELECT ( + - COUNT( DISTINCT - - col0 ) ) * - COUNT( * ) AS col1 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-4084
SELECT ( + - COUNT ( DISTINCT - - col0 ) ) * - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4085
SELECT DISTINCT + + COUNT( * ) DIV 21 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4085
SELECT DISTINCT + + COUNT ( * ) / 21 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - 96 * col1 AS col0 FROM tab2 AS cor0
----
-4896
-6432
-7392

query II rowsort
SELECT ALL + col2 AS col0, ( + + col1 ) * - + col0 - 3 FROM tab1
----
59
-428
68
-4280
96
-717

query I rowsort
SELECT DISTINCT + col0 - - col1 AS col1 FROM tab2 WHERE ( NOT NULL IS NOT NULL )
----
141
142
97

query I rowsort
SELECT DISTINCT col1 * 4 FROM tab0
----
324
4
84

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 3 IS NOT NULL
----

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NOT - + 86 IS NOT NULL )
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4092
SELECT ALL col2 AS col1, CAST( NULL AS SIGNED ) - - - 27 FROM tab0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-4092
SELECT ALL col2 AS col1, CAST ( NULL AS INTEGER ) - - - 27 FROM tab0
----
10
NULL
47
NULL
99
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4093
SELECT ALL - + CAST( NULL AS DECIMAL ) * + + 25 + + col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4093
SELECT ALL - + CAST ( NULL AS REAL ) * + + 25 + + col2 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 56 + - 27 - - 15 FROM tab2 cor0
----
44
44
44

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 + col1 NOT BETWEEN NULL AND - - col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4096
SELECT ALL + 61 DIV - COUNT( * ) FROM tab2 AS cor0
----
-20

skipif mysql # not compatible
query I rowsort label-4096
SELECT ALL + 61 / - COUNT ( * ) FROM tab2 AS cor0
----
-20

query I rowsort
SELECT + col1 * col2 + - - col1 FROM tab1 AS cor0
----
1358
300
3243

query II rowsort
SELECT - 21, col0 FROM tab1 AS cor0
----
-21
51
-21
85
-21
91

query II rowsort
SELECT - ( - 58 ) AS col2, - 62 FROM tab1 AS cor0
----
58
-62
58
-62
58
-62

query I rowsort
SELECT DISTINCT - 82 FROM tab0 WHERE NOT + + col0 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 14 NOT IN ( - + 53, col1, - 2 * col1 * col1, col0 )
----

query III rowsort
SELECT * FROM tab0 WHERE + + col0 BETWEEN - col2 AND col1
----
15
81
47

query I rowsort
SELECT ALL - - col1 FROM tab0 AS cor0 WHERE NOT + 23 + - 95 IS NULL
----
1
21
81

query I rowsort
SELECT - col1 * 13 * + col2 + 92 FROM tab0 AS cor0
----
-1195
-2638
-49399

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * col2 + + 92 col2 FROM tab1 AS cor0
----
-1252
-203
-3104

onlyif mysql # aggregate syntax: 
query I rowsort label-4106
SELECT ALL COUNT( * ) FROM tab2 WHERE NOT - + col1 + + col2 + - col1 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-4106
SELECT ALL COUNT ( * ) FROM tab2 WHERE NOT - + col1 + + col2 + - col1 IS NULL
----
3

query I rowsort
SELECT - 27 - + - col1 FROM tab1 AS cor0
----
-13
-22
20

onlyif mysql # aggregate syntax: 
query I rowsort label-4108
SELECT + MAX( - 93 ) AS col1 FROM tab0 cor0
----
-93

skipif mysql # not compatible
query I rowsort label-4108
SELECT + MAX ( - 93 ) AS col1 FROM tab0 cor0
----
-93

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 8 * + 56 IS NOT NULL
----

query II rowsort
SELECT - col1 AS col0, - 29 * ( 91 ) + - + col2 * + - 6 * + col2 AS col1 FROM tab0 AS cor0
----
-1
56167
-21
-2039
-81
10615

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4111
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 BETWEEN - col1 + + ( - + 80 ) * + - CAST( NULL AS SIGNED ) * - col1 AND - 47 / col2 + col0 - - col2
----

skipif mysql # not compatible
query III rowsort label-4111
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 BETWEEN - col1 + + ( - + 80 ) * + - CAST ( NULL AS INTEGER ) * - col1 AND - 47 / col2 + col0 - - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4112
SELECT ALL SUM( + + ( + ( + - col2 ) ) ) * + - 1 * - 42 AS col2 FROM tab1
----
-9366

skipif mysql # not compatible
query I rowsort label-4112
SELECT ALL SUM ( + + ( + ( + - col2 ) ) ) * + - 1 * - 42 AS col2 FROM tab1
----
-9366

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4113
SELECT + col0 * - CAST( col1 AS SIGNED ) * - ( + 9 ) AS col0, col0 * - - col1 AS col0 FROM tab1
----
3825
425
38493
4277
6426
714

skipif mysql # not compatible
query II rowsort label-4113
SELECT + col0 * - CAST ( col1 AS INTEGER ) * - ( + 9 ) AS col0, col0 * - - col1 AS col0 FROM tab1
----
3825
425
38493
4277
6426
714

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL = 82 / col0 )
----

query I rowsort
SELECT DISTINCT + 4 + - + col2 + + col2 * + col0 FROM tab0 cor0
----
662
864
9508

query III rowsort
SELECT * FROM tab0 cor0 WHERE - 23 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + + ( 63 ) + col1 AS col0 FROM tab0 AS cor0
----
144
64
84

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4118
SELECT DISTINCT - + CAST( + + 70 AS SIGNED ) DIV + col1 - col2 + + col2 + + 53 AS col0 FROM tab2 AS cor0
----
52
53

skipif mysql # not compatible
query I rowsort label-4118
SELECT DISTINCT - + CAST ( + + 70 AS INTEGER ) / + col1 - col2 + + col2 + + 53 AS col0 FROM tab2 AS cor0
----
52
53

query I rowsort
SELECT ALL 10 + 95 AS col0 FROM tab2 AS cor0
----
105
105
105

query I rowsort
SELECT + col1 + + 4 * - + ( + + col0 ) AS col1 FROM tab1 cor0
----
-190
-317
-335

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4121
SELECT ALL - ( + col2 ) * + CAST( 9 AS SIGNED ) * - col0 + + 16 - - col1 AS col0 FROM tab1 cor0
----
44094
45156
55755

skipif mysql # not compatible
query I rowsort label-4121
SELECT ALL - ( + col2 ) * + CAST ( 9 AS INTEGER ) * - col0 + + 16 - - col1 AS col0 FROM tab1 cor0
----
44094
45156
55755

query I rowsort
SELECT ALL + col0 + + col0 + - - col2 FROM tab0
----
184
293
77

query I rowsort
SELECT ALL 41 * 19 AS col1 FROM tab2
----
779
779
779

query I rowsort
SELECT + col0 + + 64 AS col2 FROM tab2
----
110
128
139

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4125
SELECT ALL - CAST( NULL AS SIGNED ) FROM tab1 WHERE col0 BETWEEN - - 18 AND - + col0
----

skipif mysql # not compatible
query I rowsort label-4125
SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab1 WHERE col0 BETWEEN - - 18 AND - + col0
----

query I rowsort
SELECT - - col1 + - col1 FROM tab2 WHERE - ( - + 37 ) / + - col2 * - col2 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL <= + + 6 + + 72
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 5 AS col1, col0 * 11 col2 FROM tab0
----
5
1067
5
165
5
957

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 44 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col0 - 38 FROM tab1 AS cor0
----
13
47
53

query I rowsort
SELECT 74 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

query I rowsort
SELECT - 84 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT + + 26 AS col1 FROM tab2 AS cor0
----
26

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( + 85 ) + 40 < + + ( col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4135
SELECT + - col0 DIV - col0 + col2 + - col2 AS col0 FROM tab0 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4135
SELECT + - col0 / - col0 + col2 + - col2 AS col0 FROM tab0 cor0
----
1
1
1

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 19 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4137
SELECT * FROM tab1 WHERE NOT NULL <> CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4137
SELECT * FROM tab1 WHERE NOT NULL <> CAST ( NULL AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + + 43 ) * + col2 col1 FROM tab0 WHERE NOT + + col1 IS NULL
----
2021
4257
430

query II rowsort
SELECT DISTINCT col1, - col0 AS col0 FROM tab1
----
14
-51
47
-91
5
-85

query I rowsort
SELECT DISTINCT + col2 * + col1 - - col0 FROM tab0 WHERE NOT - col2 / + - col0 IS NULL
----
196
297
3822

query I rowsort
SELECT ALL - col0 * 69 AS col1 FROM tab0
----
-1035
-6003
-6693

query I rowsort
SELECT + col1 AS col1 FROM tab1 WHERE NOT + + col1 IN ( + 50 / ( - 98 ), col2 + - 10, - 76, 32 + 3 )
----
14
47
5

query I rowsort
SELECT DISTINCT - col0 / ( col0 ) AS col1 FROM tab1 WHERE NULL <> ( NULL )
----

query I rowsort
SELECT - - col1 + - col1 AS col2 FROM tab2 WHERE NOT + - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4145
SELECT COUNT( * ) col0, + 24 FROM tab2 AS cor0
----
3
24

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4145
SELECT COUNT ( * ) col0, + 24 FROM tab2 AS cor0
----
3
24

query I rowsort
SELECT + col1 AS col2 FROM tab1 AS cor0 WHERE NOT ( NOT ( + ( col0 ) IS NOT NULL ) )
----
14
47
5

query I rowsort
SELECT ALL - col1 * ( 43 ) + + 74 FROM tab1 AS cor0
----
-141
-1947
-528

onlyif mysql # aggregate syntax: 
query I rowsort label-4148
SELECT MAX( 10 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
10

skipif mysql # not compatible
query I rowsort label-4148
SELECT MAX ( 10 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
10

query III rowsort
SELECT * FROM tab2 WHERE - col1 + + - 89 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4150
SELECT col1 * + + col0 - + - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4150
SELECT col1 * + + col0 - + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4151
SELECT ALL COUNT( * ) - - 11 AS col0 FROM tab0 cor0 WHERE col1 < NULL
----
11

skipif mysql # not compatible
query I rowsort label-4151
SELECT ALL COUNT ( * ) - - 11 AS col0 FROM tab0 cor0 WHERE col1 < NULL
----
11

query I rowsort
SELECT DISTINCT + - 78 AS col2 FROM tab1 AS cor0
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-4153
SELECT ALL - - COUNT( * ) * - 1 + MIN( DISTINCT 16 ) AS col0 FROM tab2 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-4153
SELECT ALL - - COUNT ( * ) * - 1 + MIN ( DISTINCT 16 ) AS col0 FROM tab2 AS cor0
----
13

query I rowsort
SELECT + ( + col0 ) FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4155
SELECT DISTINCT - COUNT( * ) col1 FROM tab0 WHERE NOT + 21 - + col2 IS NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4155
SELECT DISTINCT - COUNT ( * ) col1 FROM tab0 WHERE NOT + 21 - + col2 IS NULL
----
-3

query III rowsort
SELECT * FROM tab2 WHERE + 54 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4157
SELECT DISTINCT COUNT( DISTINCT + + 43 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-4157
SELECT DISTINCT COUNT ( DISTINCT + + 43 ) FROM tab1
----
1

query I rowsort
SELECT + - col1 * - col2 + - 46 + col1 AS col1 FROM tab1 AS cor0
----
1312
254
3197

query I rowsort
SELECT DISTINCT - + 68 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-68

query II rowsort
SELECT DISTINCT col1, 45 FROM tab1
----
14
45
47
45
5
45

query II rowsort
SELECT + col0, - 13 FROM tab1 AS cor0
----
51
-13
85
-13
91
-13

query I rowsort
SELECT - - 75 AS col1 FROM tab0 AS cor0
----
75
75
75

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN + - col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4164
SELECT DISTINCT - MAX( + + col2 ) FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-4164
SELECT DISTINCT - MAX ( + + col2 ) FROM tab1 AS cor0
----
-96

query II rowsort
SELECT ALL + col1, + col2 FROM tab2 AS cor0
----
51
23
67
58
77
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT - col2, + 67 col0, col1 FROM tab1 AS cor0
----
9 values hashing to 6d8423846b852646c8e11d6b98d44f7f

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4167
SELECT - SUM( + + col1 ) + + - MIN( DISTINCT + col2 ) + - - 86 AS col1 FROM tab1 AS cor0 WHERE NOT ( NOT NULL <= + CAST( - + 17 AS DECIMAL ) * - 42 / - col2 + + col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4167
SELECT - SUM ( + + col1 ) + + - MIN ( DISTINCT + col2 ) + - - 86 AS col1 FROM tab1 AS cor0 WHERE NOT ( NOT NULL <= + CAST ( - + 17 AS REAL ) * - 42 / - col2 + + col2 )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1, 13 + - - col0 col2 FROM tab1 cor0
----
14
64
47
104
5
98

query I rowsort
SELECT ALL AVG ( - 59 ) AS col2 FROM tab0 AS cor0 WHERE NOT ( col2 + col1 ) NOT BETWEEN col1 AND NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 56 col0 FROM tab1
----
56

query II rowsort
SELECT + ( + col2 ) AS col2, - 91 + col1 AS col0 FROM tab1
----
59
-86
68
-44
96
-77

query III rowsort
SELECT * FROM tab0 WHERE NOT + - 75 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 36 col1 FROM tab0
----
-36
-36
-36

onlyif mysql # aggregate syntax: 
query II rowsort label-4174
SELECT DISTINCT SUM( + 79 ), 50 AS col2 FROM tab0
----
237
50

skipif mysql # not compatible
query II rowsort label-4174
SELECT DISTINCT SUM ( + 79 ), 50 AS col2 FROM tab0
----
237
50

query I rowsort
SELECT col2 * + 0 + + 95 FROM tab2 WHERE NOT NULL >= + col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col1 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4177
SELECT DISTINCT MAX( - - 19 ) FROM tab2 cor0
----
19

skipif mysql # not compatible
query I rowsort label-4177
SELECT DISTINCT MAX ( - - 19 ) FROM tab2 cor0
----
19

query I rowsort
SELECT - - 55 * - + col1 * - 85 AS col2 FROM tab1 cor0
----
219725
23375
65450

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col1 col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
2601
4489
5929

query I rowsort
SELECT - col1 + + col1 AS col2 FROM tab0 AS cor0 WHERE col0 IS NULL
----

query II rowsort
SELECT col2 AS col2, - col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col0 + + - col0 * - col2 FROM tab2
----
1104
2624
4425

query I rowsort
SELECT DISTINCT - 58 AS col0 FROM tab0 WHERE ( ( - col2 IS NOT NULL ) )
----
-58

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab0 AS cor0 WHERE NOT - 70 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 94 IS NULL
----

query I rowsort
SELECT ALL - + 94 * + col2 FROM tab1 WHERE - + 88 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4187
SELECT - 68 + 46 * + + col2 * - CAST( col1 AS SIGNED ) AS col2 FROM tab2
----
-141748
-178824
-54026

skipif mysql # not compatible
query I rowsort label-4187
SELECT - 68 + 46 * + + col2 * - CAST ( col1 AS INTEGER ) AS col2 FROM tab2
----
-141748
-178824
-54026

onlyif mysql # aggregate syntax: 
query I rowsort label-4188
SELECT + SUM( + col0 ) col2 FROM tab0
----
199

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4188
SELECT + SUM ( + col0 ) col2 FROM tab0
----
199

query I rowsort
SELECT ALL + + 75 * col2 + 43 FROM tab1 AS cor0
----
4468
5143
7243

query I rowsort
SELECT + 12 - + - col0 + - 68 AS col2 FROM tab1 AS cor0
----
-5
29
35

query I rowsort
SELECT - col1 - - col1 AS col0 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( ( NOT - ( col2 ) BETWEEN NULL AND 75 - 19 ) )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT ( col0 IS NULL ) )
----

query I rowsort
SELECT - col1 / 32 FROM tab1 WHERE NOT NULL <> NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4195
SELECT - ( - MAX( + CAST( 28 AS SIGNED ) ) ) AS col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
28

skipif mysql # not compatible
query I rowsort label-4195
SELECT - ( - MAX ( + CAST ( 28 AS INTEGER ) ) ) AS col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
28

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <> col1 * col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4197
SELECT ALL - ( 89 ) * + CAST( + SUM( ALL + col0 ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-20203

skipif mysql # not compatible
query I rowsort label-4197
SELECT ALL - ( 89 ) * + CAST ( + SUM ( ALL + col0 ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-20203

onlyif mysql # aggregate syntax: 
query II rowsort label-4198
SELECT - COUNT( * ) AS col1, 44 AS col2 FROM tab1 AS cor0
----
-3
44

skipif mysql # not compatible
query II rowsort label-4198
SELECT - COUNT ( * ) AS col1, 44 AS col2 FROM tab1 AS cor0
----
-3
44

onlyif mysql # DIV for integer division: 
query I rowsort label-4199
SELECT DISTINCT 70 DIV col0 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-4199
SELECT DISTINCT 70 / col0 FROM tab1 AS cor0
----
0
1

query I rowsort
SELECT ALL - + col1 * + 60 AS col0 FROM tab1 AS cor0
----
-2820
-300
-840

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4201
SELECT ALL - - CAST( + COUNT( * ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4201
SELECT ALL - - CAST ( + COUNT ( * ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT + - col2 FROM tab2 AS cor0 WHERE NOT col0 >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4203
SELECT + col1 DIV + ( + + 34 ) FROM tab0 AS cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-4203
SELECT + col1 / + ( + + 34 ) FROM tab0 AS cor0
----
0
0
2

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4204
SELECT + col1 AS col1, + CAST( NULL AS DECIMAL ) AS col0 FROM tab0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-4204
SELECT + col1 AS col1, + CAST ( NULL AS REAL ) AS col0 FROM tab0
----
1
NULL
21
NULL
81
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4205
SELECT ALL - COUNT( * ) AS col1 FROM tab1, tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4205
SELECT ALL - COUNT ( * ) AS col1 FROM tab1, tab1 AS cor0
----
-9

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - - col0 < NULL
----

query I rowsort
SELECT ALL + + col1 FROM tab0 WHERE NOT col2 <> + 3
----

query I rowsort
SELECT + - col1 AS col2 FROM tab1 WHERE NOT - col0 <> - - 20 * + col1
----

query I rowsort
SELECT + 79 * + col1 FROM tab0
----
1659
6399
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4210
SELECT ALL CAST( NULL AS SIGNED ) * COUNT( + col1 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4210
SELECT ALL CAST ( NULL AS INTEGER ) * COUNT ( + col1 ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4211
SELECT DISTINCT COUNT( * ) * 21 AS col1 FROM tab1
----
63

skipif mysql # not compatible
query I rowsort label-4211
SELECT DISTINCT COUNT ( * ) * 21 AS col1 FROM tab1
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-4212
SELECT DISTINCT MAX( - col1 ) AS col2 FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-4212
SELECT DISTINCT MAX ( - col1 ) AS col2 FROM tab1
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4213
SELECT - MAX( - 10 ) FROM tab1 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-4213
SELECT - MAX ( - 10 ) FROM tab1 AS cor0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4214
SELECT DISTINCT COUNT( + + 96 ) + + MAX( ( + col2 ) ) FROM tab1 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-4214
SELECT DISTINCT COUNT ( + + 96 ) + + MAX ( ( + col2 ) ) FROM tab1 AS cor0
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4215
SELECT DISTINCT 69 / - - CAST( - + ( 79 ) AS SIGNED ) col0 FROM tab2 cor0 WHERE NOT col2 IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4215
SELECT DISTINCT 69 / - - CAST ( - + ( 79 ) AS INTEGER ) col0 FROM tab2 cor0 WHERE NOT col2 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 42 + - col2 <= col1
----

query III rowsort
SELECT ALL * FROM tab1 WHERE + col2 - + col0 <> + col1 * col1 * + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-4218
SELECT col2 DIV 46 FROM tab0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-4218
SELECT col2 / 46 FROM tab0
----
0
1
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4219
SELECT - CAST( NULL AS SIGNED ) + - - col0 * + 17 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4219
SELECT - CAST ( NULL AS INTEGER ) + - - col0 * + 17 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + 48 FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + ( + + 60 ) FROM tab2 AS cor0
----
60

query II rowsort
SELECT DISTINCT - col2 + + col0 - - col2 + - ( + + 63 ), col1 AS col2 FROM tab0 AS cor0
----
-48
81
24
21
34
1

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 * - + 47 * - col2 < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4224
SELECT DISTINCT CAST( + - COUNT( * ) AS SIGNED ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4224
SELECT DISTINCT CAST ( + - COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT ALL - + ( + col2 ) + + 30 FROM tab1 AS cor0
----
-29
-38
-66

query I rowsort
SELECT DISTINCT + + col1 * - 43 - + - 47 - - col2 FROM tab1 cor0
----
-109
-1906
-459

query I rowsort
SELECT ALL + col1 * col0 - - - 43 - + col2 * - - col0 FROM tab0 AS cor0
----
-9549
467
914

query I rowsort
SELECT DISTINCT 64 + - - col1 AS col2 FROM tab0
----
145
65
85

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col0 < - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4230
SELECT ALL COUNT( * ) - COUNT( * ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4230
SELECT ALL COUNT ( * ) - COUNT ( * ) FROM tab2
----
0

query I rowsort
SELECT DISTINCT - - col2 FROM tab1 WHERE NOT - col2 IS NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4232
SELECT DISTINCT - 91 - + COUNT( ALL - col1 ) + ( - - 50 ) AS col2 FROM tab1
----
-44

skipif mysql # not compatible
query I rowsort label-4232
SELECT DISTINCT - 91 - + COUNT ( ALL - col1 ) + ( - - 50 ) AS col2 FROM tab1
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-4233
SELECT COUNT( * ) + + 24 FROM tab2
----
27

skipif mysql # not compatible
query I rowsort label-4233
SELECT COUNT ( * ) + + 24 FROM tab2
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4234
SELECT * FROM tab0 WHERE - - col1 IN ( - + 55, col2 * col1, + col0, - CAST( + + 96 AS SIGNED ) * - + 88 * - - CAST( + - 27 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-4234
SELECT * FROM tab0 WHERE - - col1 IN ( - + 55, col2 * col1, + col0, - CAST ( + + 96 AS INTEGER ) * - + 88 * - - CAST ( + - 27 AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4235
SELECT - 51 * + - SUM( + col0 ) FROM tab1
----
11577

skipif mysql # not compatible
query I rowsort label-4235
SELECT - 51 * + - SUM ( + col0 ) FROM tab1
----
11577

onlyif mysql # aggregate syntax: 
query I rowsort label-4236
SELECT DISTINCT - SUM( + 35 ) AS col1 FROM tab2 AS cor0
----
-105

skipif mysql # not compatible
query I rowsort label-4236
SELECT DISTINCT - SUM ( + 35 ) AS col1 FROM tab2 AS cor0
----
-105

onlyif mysql # aggregate syntax: 
query I rowsort label-4237
SELECT ALL COUNT( * ) col2 FROM tab0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4237
SELECT ALL COUNT ( * ) col2 FROM tab0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4238
SELECT MIN( - ( + col0 ) ) AS col1 FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-4238
SELECT MIN ( - ( + col0 ) ) AS col1 FROM tab1
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4239
SELECT ALL + 65 + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-4239
SELECT ALL + 65 + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 17 col0 FROM tab1 cor0
----
17
17
17

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4241
SELECT DISTINCT - + ( - col1 ) * + - col1 + - col2 * - CAST( NULL AS DECIMAL ) - - col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4241
SELECT DISTINCT - + ( - col1 ) * + - col1 + - col2 * - CAST ( NULL AS REAL ) - - col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4242
SELECT DISTINCT + + MIN( ALL col0 ) FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-4242
SELECT DISTINCT + + MIN ( ALL col0 ) FROM tab0 AS cor0
----
15

query I rowsort
SELECT col0 * - col2 + 11 FROM tab1
----
-4885
-5004
-6177

query I rowsort
SELECT 30 * - col2 FROM tab1 WHERE NOT NULL < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4245
SELECT 70 + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4245
SELECT 70 + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + 88 + col1 - - col1 AS col0 FROM tab1
----
116
182
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4247
SELECT ALL - 57 * CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4247
SELECT ALL - 57 * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 92 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-4249
SELECT DISTINCT col2 DIV col2 * - - col1 * + col2 FROM tab2
----
1173
3080
3886

skipif mysql # not compatible
query I rowsort label-4249
SELECT DISTINCT col2 / col2 * - - col1 * + col2 FROM tab2
----
1173
3080
3886

query I rowsort
SELECT 19 + + + col1 AS col1 FROM tab1
----
24
33
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4251
SELECT ALL - MAX( DISTINCT + CAST( NULL AS SIGNED ) ) + - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4251
SELECT ALL - MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) + - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4252
SELECT - + MAX( ALL + 87 ) FROM tab2 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-4252
SELECT - + MAX ( ALL + 87 ) FROM tab2 AS cor0
----
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4253
SELECT DISTINCT - + CAST( NULL AS SIGNED ) / COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-4253
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) / COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4254
SELECT DISTINCT COUNT( * ) * COUNT( * ) AS col1 FROM ( tab0 cor0 CROSS JOIN tab2 AS cor1 )
----
81

skipif mysql # not compatible
query I rowsort label-4254
SELECT DISTINCT COUNT ( * ) * COUNT ( * ) AS col1 FROM ( tab0 cor0 CROSS JOIN tab2 AS cor1 )
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4255
SELECT DISTINCT - + SUM( + 64 ) AS col2 FROM tab2 AS cor0
----
-192

skipif mysql # not compatible
query I rowsort label-4255
SELECT DISTINCT - + SUM ( + 64 ) AS col2 FROM tab2 AS cor0
----
-192

query I rowsort
SELECT DISTINCT ( + + col2 ) AS col2 FROM tab2 AS cor0
----
23
40
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4257
SELECT ALL + - CAST( NULL AS SIGNED ), COUNT( * ) col2 FROM tab1 AS cor0
----
NULL
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4257
SELECT ALL + - CAST ( NULL AS INTEGER ), COUNT ( * ) col2 FROM tab1 AS cor0
----
NULL
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4258
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN + col2 + + col1 AND + + col1 / - CAST( + - 43 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4258
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN + col2 + + col1 AND + + col1 / - CAST ( + - 43 AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4259
SELECT DISTINCT - 22 + + col0 + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4259
SELECT DISTINCT - 22 + + col0 + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4260
SELECT - col1 * + ( + - CAST( NULL AS SIGNED ) ) + ( + col0 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4260
SELECT - col1 * + ( + - CAST ( NULL AS INTEGER ) ) + ( + col0 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - col2 + - + col0 FROM tab2 AS cor0
----
-17
-23
-24

query I rowsort
SELECT + + col1 FROM tab0 AS cor0 WHERE NULL = 36 - 6 - + col0 + - col2 / - + 18
----

query I rowsort
SELECT col1 FROM tab1 WHERE 69 >= + 15
----
14
47
5

query I rowsort
SELECT DISTINCT - ( - col1 ) + - col1 AS col2 FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 37, + 73 col0 FROM tab1 WHERE NOT col2 NOT BETWEEN + - 7 AND + col2 + - - col2
----
-37
73
-37
73
-37
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 88 col2 FROM tab0
----
88

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NOT NULL NOT BETWEEN NULL AND col1 )
----

query I rowsort
SELECT ALL 73 + + col0 FROM tab1 WHERE + 58 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4269
SELECT + + ( + COUNT( * ) ) AS col2 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4269
SELECT + + ( + COUNT ( * ) ) AS col2 FROM tab2 cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4270
SELECT ALL - MAX( + + 85 ) AS col2, CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
-85
NULL

skipif mysql # not compatible
query II rowsort label-4270
SELECT ALL - MAX ( + + 85 ) AS col2, CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
-85
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4271
SELECT ALL * FROM tab1 cor0 WHERE NOT + 43 * + 58 BETWEEN CAST( + 38 AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-4271
SELECT ALL * FROM tab1 cor0 WHERE NOT + 43 * + 58 BETWEEN CAST ( + 38 AS INTEGER ) AND NULL
----

query I rowsort
SELECT ALL + col1 FROM tab0 AS cor0 WHERE NOT NULL <> ( NULL )
----

query I rowsort
SELECT + 94 * - col1 FROM tab1
----
-1316
-4418
-470

query I rowsort
SELECT - 22 + - 51 AS col2 FROM tab2 AS cor0
----
-73
-73
-73

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN + col1 * 97 / - 91 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4276
SELECT - + CAST( + - col1 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-4276
SELECT - + CAST ( + - col1 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
14
47
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 AS col2, - 91 col1 FROM tab1 cor0
----
59
-91
68
-91
96
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 78 * - - col0 col0 FROM tab2 AS cor0
----
-3588
-4992
-5850

query I rowsort
SELECT + + col0 + col0 + + - ( + col0 ) / 4 * col0 FROM tab1 AS cor0 WHERE NOT NULL <> - col1
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4280
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN - - CAST( NULL AS DECIMAL ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-4280
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN - - CAST ( NULL AS REAL ) AND NULL
----

query I rowsort
SELECT ALL - + col1 * + - col2 + - 64 AS col0 FROM tab1 AS cor0
----
1280
231
3132

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 31 col1 FROM tab1 AS cor0
----
31
31
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 * - col2 + + - col0 + + 31 AS col0, - 89 * - col2 * - col1 col1 FROM tab1 AS cor0
----
-3535
-26255
-4684
-284444
-9236
-119616

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 26 col2 FROM tab1
----
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col2 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - col1 * - + col1 * col0 FROM tab2
----
119646
336675
379456

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4287
SELECT ( - 48 ) * + col2 * + 75 + - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4287
SELECT ( - 48 ) * + col2 * + 75 + - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4288
SELECT DISTINCT + COUNT( - col2 ) col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4288
SELECT DISTINCT + COUNT ( - col2 ) col0 FROM tab2 AS cor0
----
3

query I rowsort
SELECT - 96 AS col1 FROM tab0 AS cor0 WHERE + 35 IS NOT NULL
----
-96
-96
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4290
SELECT - COUNT( * ) + + 96 AS col0 FROM tab1 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-4290
SELECT - COUNT ( * ) + + 96 AS col0 FROM tab1 AS cor0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-4291
SELECT ALL - COUNT( * ) + 80 FROM tab1 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-4291
SELECT ALL - COUNT ( * ) + 80 FROM tab1 AS cor0
----
77

query II rowsort
SELECT DISTINCT + col1 + + col0 AS col0, - col1 FROM tab2 cor0
----
141
-77
142
-67
97
-51

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 + col0 + - 46 >= col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + + ( - - 43 ) + 40 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col1 + + 61 IS NOT NULL
----

query I rowsort
SELECT ALL - 63 + - 46 AS col1 FROM tab0 AS cor0
----
-109
-109
-109

query I rowsort
SELECT - col2 - + col2 * ( + - col2 ) FROM tab1 AS cor0
----
3422
4556
9120

query I rowsort
SELECT DISTINCT - col1 * + col1 + - col2 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - col1 FROM tab2 AS cor0 WHERE NOT NULL = + col1
----

query I rowsort
SELECT ALL + 40 + 48 FROM tab1 AS cor0
----
88
88
88

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT - col0 - - 8 IS NOT NULL
----

query I rowsort
SELECT ALL col0 * - 62 AS col0 FROM tab1 cor0
----
-3162
-5270
-5642

query I rowsort
SELECT DISTINCT - - col2 AS col0 FROM tab2 WHERE NULL NOT BETWEEN col1 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 5 col1, col2 * + + 46 FROM tab2
----
5
1058
5
1840
5
2668

onlyif mysql # aggregate syntax: 
query I rowsort label-4305
SELECT + MAX( 6 ) AS col1 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-4305
SELECT + MAX ( 6 ) AS col1 FROM tab1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4306
SELECT + MIN( - + col0 ) FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-4306
SELECT + MIN ( - + col0 ) FROM tab2
----
-75

query II rowsort
SELECT DISTINCT col1, col0 AS col1 FROM tab1
----
14
51
47
91
5
85

query II rowsort
SELECT DISTINCT col1 AS col2, + col1 FROM tab0
----
1
1
21
21
81
81

query I rowsort
SELECT - ( 76 ) AS col0 FROM tab0
----
-76
-76
-76

query II rowsort
SELECT DISTINCT col1, col2 AS col2 FROM tab2
----
51
23
67
58
77
40

onlyif mysql # DIV for integer division: 
query I rowsort label-4311
SELECT + + 16 DIV + 61 * + - col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4311
SELECT + + 16 / + 61 * + - col1 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 47 * - col2 col1 FROM tab0 AS cor0
----
-2209
-4653
-470

query II rowsort
SELECT col2 * 92 AS col1, - col2 AS col2 FROM tab0
----
4324
-47
9108
-99
920
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-4314
SELECT + 88 DIV + col0 AS col1 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4314
SELECT + 88 / + col0 AS col1 FROM tab2 AS cor0
----
1
1
1

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 - + - col1 - - + col2 + + + 83 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4316
SELECT DISTINCT + SUM( ALL + 90 ) AS col2 FROM tab2 cor0
----
270

skipif mysql # not compatible
query I rowsort label-4316
SELECT DISTINCT + SUM ( ALL + 90 ) AS col2 FROM tab2 cor0
----
270

query I rowsort
SELECT ALL - - 71 AS col1 FROM tab2 AS cor0
----
71
71
71

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4318
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) * + + 4 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4318
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) * + + 4 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4319
SELECT DISTINCT - + 46 + 99 FROM tab0 AS cor0 WHERE NOT 13 + - 65 > + col0 / CAST( + col0 AS SIGNED )
----
53

skipif mysql # not compatible
query I rowsort label-4319
SELECT DISTINCT - + 46 + 99 FROM tab0 AS cor0 WHERE NOT 13 + - 65 > + col0 / CAST ( + col0 AS INTEGER )
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4320
SELECT DISTINCT - CAST( + MAX( ALL + 60 ) AS SIGNED ) FROM tab2 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-4320
SELECT DISTINCT - CAST ( + MAX ( ALL + 60 ) AS INTEGER ) FROM tab2 AS cor0
----
-60

query I rowsort
SELECT 81 + + 77 + - + col0 AS col1 FROM tab2 AS cor0
----
112
83
94

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4322
SELECT 27 * - - col1 + col2 DIV + CAST( - 82 AS SIGNED ) col1 FROM tab1
----
1269
135
377

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4322
SELECT 27 * - - col1 + col2 / + CAST ( - 82 AS INTEGER ) col1 FROM tab1
----
1269
135
377

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 + - - col0 + + ( col2 ) AS col1, 23 col0 FROM tab2
----
144
23
191
23
92
23

query II rowsort
SELECT col0 + - + ( - + col2 ) AS col0, col2 FROM tab0
----
196
99
62
47
97
10

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4325
SELECT CAST( NULL AS DECIMAL ) + - - col1 - - col2 + - 8 + - col1 * + 56 + - col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4325
SELECT CAST ( NULL AS REAL ) + - - col1 - - col2 + - 8 + - col1 * + 56 + - col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4326
SELECT + COUNT( * ) * COUNT( * ) AS col1 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-4326
SELECT + COUNT ( * ) * COUNT ( * ) AS col1 FROM tab0
----
9

query I rowsort
SELECT col2 AS col1 FROM tab1 WHERE ( 47 IS NOT NULL )
----
59
68
96

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 = + 74 * + ( col2 ) + + ( - 89 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4329
SELECT MAX( ALL - - col1 ) FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-4329
SELECT MAX ( ALL - - col1 ) FROM tab0 AS cor0
----
81

query I rowsort
SELECT - ( + - 51 ) FROM tab2 AS cor0
----
51
51
51

query I rowsort
SELECT DISTINCT col2 - + ( - col1 ) * + 70 FROM tab0 AS cor0
----
1480
169
5717

onlyif mysql # aggregate syntax: 
query I rowsort label-4332
SELECT DISTINCT 7 + - COUNT( * ) FROM tab1 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-4332
SELECT DISTINCT 7 + - COUNT ( * ) FROM tab1 AS cor0
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-4333
SELECT + 36 DIV + 9 FROM tab1
----
4
4
4

skipif mysql # not compatible
query I rowsort label-4333
SELECT + 36 / + 9 FROM tab1
----
4
4
4

onlyif mysql # DIV for integer division: 
query I rowsort label-4334
SELECT ALL - 95 DIV + col0 FROM tab2
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-4334
SELECT ALL - 95 / + col0 FROM tab2
----
-1
-1
-2

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 69 >= ( col1 - ( col0 + + col1 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-4336
SELECT - 26 DIV 58 col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4336
SELECT - 26 / 58 col2 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4337
SELECT ALL COUNT( * ) + 1 FROM tab0
----
4

skipif mysql # not compatible
query I rowsort label-4337
SELECT ALL COUNT ( * ) + 1 FROM tab0
----
4

query III rowsort
SELECT * FROM tab1 WHERE - col2 + 31 * - 76 NOT BETWEEN + 61 AND ( - col0 * + col0 + col2 * + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 27 * - col0 AS col1 FROM tab1
----
1377
2295
2457

query I rowsort
SELECT DISTINCT ( col0 ) + + col1 FROM tab0
----
108
96
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4341
SELECT + SUM( DISTINCT + 4 ) * 24 FROM tab2
----
96

skipif mysql # not compatible
query I rowsort label-4341
SELECT + SUM ( DISTINCT + 4 ) * 24 FROM tab2
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4342
SELECT + SUM( ALL 73 ) * - 11 AS col0 FROM tab2
----
-2409

skipif mysql # not compatible
query I rowsort label-4342
SELECT + SUM ( ALL 73 ) * - 11 AS col0 FROM tab2
----
-2409

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4343
SELECT + CAST( NULL AS SIGNED ) - - 17 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4343
SELECT + CAST ( NULL AS INTEGER ) - - 17 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 28 AS col0 FROM tab1 WHERE NOT ( - col0 ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4345
SELECT ALL + COUNT( * ) AS col0 FROM tab0 WHERE NOT ( - CAST( col2 AS SIGNED ) ) > 5
----
3

skipif mysql # not compatible
query I rowsort label-4345
SELECT ALL + COUNT ( * ) AS col0 FROM tab0 WHERE NOT ( - CAST ( col2 AS INTEGER ) ) > 5
----
3

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 * col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 39 AS col0 FROM tab0
----
39
39
39

query I rowsort
SELECT col1 AS col2 FROM tab1 WHERE NOT ( + col0 ) IS NULL
----
14
47
5

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4349
SELECT ( COUNT( * ) ) + CAST( NULL AS DECIMAL ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4349
SELECT ( COUNT ( * ) ) + CAST ( NULL AS REAL ) FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 22 col2 FROM tab2
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-4351
SELECT + SUM( 38 ) AS col2 FROM tab0
----
114

skipif mysql # not compatible
query I rowsort label-4351
SELECT + SUM ( 38 ) AS col2 FROM tab0
----
114

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 <= ( col1 )
----
75
67
58

query I rowsort
SELECT DISTINCT - 31 AS col0 FROM tab0
----
-31

query III rowsort
SELECT ALL * FROM tab0 WHERE 37 + 10 * col1 < NULL
----

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab2 WHERE ( 9 * 93 + col0 ) IS NULL
----

query I rowsort
SELECT - 38 + - 19 AS col0 FROM tab1
----
-57
-57
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-4357
SELECT COUNT( - 11 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4357
SELECT COUNT ( - 11 ) FROM tab0
----
3

query I rowsort
SELECT + col2 FROM tab1 WHERE NULL IN ( col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4359
SELECT ALL + CAST( NULL AS SIGNED ) + + col1 * col1 col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4359
SELECT ALL + CAST ( NULL AS INTEGER ) + + col1 * col1 col2 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 84 * + 56 col2 FROM tab0 WHERE - ( - 87 ) NOT IN ( - 15 + + col2 )
----
-4704

onlyif mysql # aggregate syntax: 
query I rowsort label-4361
SELECT MAX( DISTINCT 0 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4361
SELECT MAX ( DISTINCT 0 ) FROM tab0 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NULL NOT IN ( - col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4363
SELECT ALL + col0 DIV - col2 AS col0 FROM tab2 cor0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-4363
SELECT ALL + col0 / - col2 AS col0 FROM tab2 cor0
----
-1
-1
-2

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - col2 AND - col0
----

query I rowsort
SELECT DISTINCT ( - col1 ) * 69 FROM tab1 WHERE NOT ( + col0 - col1 ) BETWEEN - 17 AND ( NULL )
----

query I rowsort
SELECT 15 + 92 AS col1 FROM tab1 AS cor0 WHERE - col0 - + col0 BETWEEN col1 / ( + col2 ) AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4367
SELECT MAX( DISTINCT - 55 ) + CAST( NULL AS SIGNED ) * - MAX( DISTINCT - col1 + + col1 ) col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4367
SELECT MAX ( DISTINCT - 55 ) + CAST ( NULL AS INTEGER ) * - MAX ( DISTINCT - col1 + + col1 ) col0 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( + col2 / + col2 )
----

query I rowsort
SELECT ALL + + col2 + ( - col0 ) AS col2 FROM tab2 AS cor0
----
-17
-23
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-4370
SELECT ALL + ( - COUNT( * ) ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4370
SELECT ALL + ( - COUNT ( * ) ) AS col0 FROM tab0 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) < - col2
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 * + 64 IN ( col0 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( + col1 * 59 - - col1 * 97 ) IN ( 72 + + col1 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <= col0 * 81
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4375
SELECT DISTINCT - COUNT( ALL col1 ) + - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-4375
SELECT DISTINCT - COUNT ( ALL col1 ) + - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4376
SELECT ALL col2 * CAST( NULL AS SIGNED ) FROM tab2 WHERE NOT - 82 - 39 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4376
SELECT ALL col2 * CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT - 82 - 39 IS NOT NULL
----

query I rowsort
SELECT ALL + 20 + - - ( 81 ) FROM tab2
----
101
101
101

query I rowsort
SELECT DISTINCT - col1 - + col0 * col0 FROM tab1
----
-2615
-7230
-8328

query I rowsort
SELECT DISTINCT ( + 88 ) FROM tab0
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4380
SELECT MIN( DISTINCT CAST( col2 AS SIGNED ) ) FROM tab2 WHERE NULL <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4380
SELECT MIN ( DISTINCT CAST ( col2 AS INTEGER ) ) FROM tab2 WHERE NULL <> NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4381
SELECT ALL SUM( - ( - col2 ) ) FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-4381
SELECT ALL SUM ( - ( - col2 ) ) FROM tab0
----
156

query I rowsort
SELECT DISTINCT col2 + + 52 AS col0 FROM tab2 AS cor0 WHERE col2 + - 55 * + col2 IN ( - col2 * col2 ) AND + col0 >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4383
SELECT ALL - col2 + + - col2 DIV - col2 FROM tab1 AS cor0
----
-58
-67
-95

skipif mysql # not compatible
query I rowsort label-4383
SELECT ALL - col2 + + - col2 / - col2 FROM tab1 AS cor0
----
-58
-67
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-4384
SELECT MIN( ALL - 2 ) + + 78 FROM tab0 AS cor0
----
76

skipif mysql # not compatible
query I rowsort label-4384
SELECT MIN ( ALL - 2 ) + + 78 FROM tab0 AS cor0
----
76

query III rowsort
SELECT * FROM tab2 cor0 WHERE - col0 * - col1 NOT IN ( col0 * - col0 + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col2 * col0 FROM tab2 AS cor0 WHERE ( col2 ) <> + col1 - col1
----
-1058
-2560
-4350

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4387
SELECT - + col2 + col2 + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4387
SELECT - + col2 + col2 + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + col1 + - + 22 FROM tab1 AS cor0
----
-27
-36
-69

query I rowsort
SELECT DISTINCT + col1 - ( + col2 ) AS col2 FROM tab0
----
-98
11
34

query IIIIII rowsort
SELECT ALL * FROM tab1, tab1 AS cor0 WHERE NOT 44 + 51 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE - col1 + + 83 BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT DISTINCT + ( 14 ) AS col2 FROM tab0 AS cor0
----
14

query I rowsort
SELECT - ( - 57 ) FROM tab0 AS cor0
----
57
57
57

query I rowsort
SELECT ALL 88 * col2 FROM tab2 cor0 WHERE col1 * 23 * - ( 55 * 2 ) IS NOT NULL
----
2024
3520
5104

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( col0 + col1 * 95 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4396
SELECT + ( COUNT( * ) ) * + + COUNT( * ) * + COUNT( * ) FROM tab2 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-4396
SELECT + ( COUNT ( * ) ) * + + COUNT ( * ) * + COUNT ( * ) FROM tab2 AS cor0
----
27

query I rowsort
SELECT ALL - 96 * - col2 * - col2 FROM tab1 AS cor0
----
-334176
-443904
-884736

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4398
SELECT DISTINCT + SUM( - col0 ) DIV + SUM( col1 ) AS col2 FROM tab0 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4398
SELECT DISTINCT + SUM ( - col0 ) / + SUM ( col1 ) AS col2 FROM tab0 cor0
----
-1

query I rowsort
SELECT + + ( + col0 ) * + 29 AS col2 FROM tab1 AS cor0
----
1479
2465
2639

onlyif mysql # aggregate syntax: 
query II rowsort label-4400
SELECT - COUNT( + + col2 ) AS col1, + 52 * - 46 AS col2 FROM tab0
----
-3
-2392

skipif mysql # not compatible
query II rowsort label-4400
SELECT - COUNT ( + + col2 ) AS col1, + 52 * - 46 AS col2 FROM tab0
----
-3
-2392

onlyif mysql # aggregate syntax: 
query I rowsort label-4401
SELECT ALL MIN( DISTINCT - col0 ) FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-4401
SELECT ALL MIN ( DISTINCT - col0 ) FROM tab1
----
-91

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 <= + col1
----

query I rowsort
SELECT ALL + col0 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4404
SELECT + CAST( - 91 AS SIGNED ) FROM tab0
----
-91
-91
-91

skipif mysql # not compatible
query I rowsort label-4404
SELECT + CAST ( - 91 AS INTEGER ) FROM tab0
----
-91
-91
-91

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( 80 ) = 8 * + 74
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4406
SELECT - MAX( DISTINCT + ( col0 ) ) FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-4406
SELECT - MAX ( DISTINCT + ( col0 ) ) FROM tab0
----
-97

query III rowsort
SELECT * FROM tab1 WHERE NOT + - col1 * - col2 >= col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4408
SELECT - COUNT( * ) FROM tab0 WHERE NOT NULL <> col1 + + + 13
----
0

skipif mysql # not compatible
query I rowsort label-4408
SELECT - COUNT ( * ) FROM tab0 WHERE NOT NULL <> col1 + + + 13
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4409
SELECT - SUM( ALL - col0 ) col2 FROM tab0
----
199

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4409
SELECT - SUM ( ALL - col0 ) col2 FROM tab0
----
199

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL IN ( + 34 )
----

query II rowsort
SELECT ALL + 36 * - 92 AS col0, + col2 * - col2 FROM tab1
----
-3312
-3481
-3312
-4624
-3312
-9216

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4412
SELECT CAST( - - 8 AS SIGNED ) col0 FROM tab1
----
8
8
8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4412
SELECT CAST ( - - 8 AS INTEGER ) col0 FROM tab1
----
8
8
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4413
SELECT ALL - COUNT( * ) * - + SUM( - col0 ) AS col0 FROM tab2
----
-555

skipif mysql # not compatible
query I rowsort label-4413
SELECT ALL - COUNT ( * ) * - + SUM ( - col0 ) AS col0 FROM tab2
----
-555

query I rowsort
SELECT DISTINCT 84 FROM tab2 WHERE NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4415
SELECT - ( + ( - MAX( - col2 ) ) ) col2 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4415
SELECT - ( + ( - MAX ( - col2 ) ) ) col2 FROM tab2 AS cor0
----
-23

query I rowsort
SELECT ALL - 62 + + col1 + + - col1 FROM tab2 AS cor0
----
-62
-62
-62

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 <= 66
----
97
1
99

query I rowsort
SELECT ALL + 32 + - col2 AS col1 FROM tab1 AS cor0
----
-27
-36
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-4419
SELECT + 75 * - + 27 * + - MAX( DISTINCT + + col0 ) FROM tab0 AS cor0
----
196425

skipif mysql # not compatible
query I rowsort label-4419
SELECT + 75 * - + 27 * + - MAX ( DISTINCT + + col0 ) FROM tab0 AS cor0
----
196425

query I rowsort
SELECT DISTINCT - 14 + + - col0 AS col1 FROM tab0
----
-101
-111
-29

query I rowsort
SELECT ALL col2 FROM tab1 WHERE NOT col0 <> ( NULL )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col1 BETWEEN ( - col2 ) AND + ( + col0 )
----
46
51
23
64
77
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4423
SELECT DISTINCT CAST( col1 AS SIGNED ) + - 71 FROM tab0 cor0
----
-50
-70
10

skipif mysql # not compatible
query I rowsort label-4423
SELECT DISTINCT CAST ( col1 AS INTEGER ) + - 71 FROM tab0 cor0
----
-50
-70
10

query I rowsort
SELECT ALL - col0 + + 28 AS col2 FROM tab0 AS cor0
----
-59
-69
13

onlyif mysql # aggregate syntax: 
query I rowsort label-4425
SELECT - + COUNT( * ) + - SUM( DISTINCT col2 ) FROM tab0 AS cor0
----
-159

skipif mysql # not compatible
query I rowsort label-4425
SELECT - + COUNT ( * ) + - SUM ( DISTINCT col2 ) FROM tab0 AS cor0
----
-159

query I rowsort
SELECT ALL 36 + + 99 AS col2 FROM tab1
----
135
135
135

query I rowsort
SELECT ALL 97 AS col2 FROM tab2
----
97
97
97

query I rowsort
SELECT ALL col1 - - + 69 FROM tab2
----
120
136
146

query I rowsort
SELECT ALL + - 78 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4430
SELECT DISTINCT * FROM tab0 WHERE NOT ( CAST( NULL AS SIGNED ) IS NULL )
----

skipif mysql # not compatible
query III rowsort label-4430
SELECT DISTINCT * FROM tab0 WHERE NOT ( CAST ( NULL AS INTEGER ) IS NULL )
----

query II rowsort
SELECT DISTINCT - + col2 AS col1, col0 + 21 AS col1 FROM tab2 AS cor0
----
-23
67
-40
85
-58
96

query I rowsort
SELECT 52 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
52
52
52

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( 44 * - col1 * + + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 - + col0 col1 FROM tab0 AS cor0
----
-66
-96
66

query I rowsort
SELECT ( - ( 48 ) ) AS col1 FROM tab1 WHERE NOT ( NULL ) IN ( + col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 col2, col0 * + 88 + 75 + + col0 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-51
4614
-85
7640
-91
8174

query II rowsort
SELECT DISTINCT - - col2, 65 + - - col0 + + 74 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN col1 * 86 AND 90
----

query I rowsort
SELECT ALL col0 - - 83 FROM tab1 AS cor0 WHERE col0 + - col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4439
SELECT * FROM tab0 cor0 WHERE NOT - CAST( col1 AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4439
SELECT * FROM tab0 cor0 WHERE NOT - CAST ( col1 AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - - col2 * + 25 * + col1 FROM tab0 AS cor0
----
2475
5250
95175

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 12 * + - 96 col1 FROM tab2 AS cor0
----
1152
1152
1152

onlyif mysql # DIV for integer division: 
query II rowsort label-4442
SELECT + - col1 DIV + + 71 AS col1, - col0 * - col2 FROM tab1 AS cor0
----
0
4896
0
5015
0
6188

skipif mysql # not compatible
query II rowsort label-4442
SELECT + - col1 / + + 71 AS col1, - col0 * - col2 FROM tab1 AS cor0
----
0
4896
0
5015
0
6188

query I rowsort
SELECT ALL 54 * - - col2 AS col2 FROM tab2
----
1242
2160
3132

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + + 70 IN ( + 39, col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE NOT - ( + + col1 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + ( + 35 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4448
SELECT ALL - MIN( - - col1 ) AS col2 FROM tab1 cor0
----
-5

skipif mysql # not compatible
query I rowsort label-4448
SELECT ALL - MIN ( - - col1 ) AS col2 FROM tab1 cor0
----
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-4449
SELECT + COUNT( * ) AS col2, + 71 AS col0 FROM tab1 AS cor0
----
3
71

skipif mysql # not compatible
query II rowsort label-4449
SELECT + COUNT ( * ) AS col2, + 71 AS col0 FROM tab1 AS cor0
----
3
71

query I rowsort
SELECT DISTINCT ( col0 ) + + + ( + 26 ) FROM tab0 AS cor0
----
113
123
41

query I rowsort
SELECT - - 65 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NOT + col1 BETWEEN ( NULL ) AND - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4453
SELECT - - CAST( col0 AS SIGNED ), - 80 AS col2 FROM tab0 AS cor0
----
15
-80
87
-80
97
-80

skipif mysql # not compatible
query II rowsort label-4453
SELECT - - CAST ( col0 AS INTEGER ), - 80 AS col2 FROM tab0 AS cor0
----
15
-80
87
-80
97
-80

query I rowsort
SELECT - + 19 * - - 18 AS col1 FROM tab1 AS cor0
----
-342
-342
-342

query I rowsort
SELECT DISTINCT - + 43 + 34 * col1 FROM tab0 AS cor0
----
-9
2711
671

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4456
SELECT + + CAST( - + col0 AS SIGNED ) FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-4456
SELECT + + CAST ( - + col0 AS INTEGER ) FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4457
SELECT ALL - - COUNT( * ) + + 4 AS col2 FROM tab0 cor0
----
7

skipif mysql # not compatible
query I rowsort label-4457
SELECT ALL - - COUNT ( * ) + + 4 AS col2 FROM tab0 cor0
----
7

query I rowsort
SELECT DISTINCT + 98 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) < - 85
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4460
SELECT ALL - - COUNT( * ) + - 56 DIV COUNT( * ) col1 FROM tab2 AS cor0
----
-15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4460
SELECT ALL - - COUNT ( * ) + - 56 / COUNT ( * ) col1 FROM tab2 AS cor0
----
-15

query I rowsort
SELECT DISTINCT - 69 - 97 * + col2 FROM tab1
----
-5792
-6665
-9381

query I rowsort
SELECT 44 - + col0 AS col1 FROM tab2
----
-2
-20
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-4463
SELECT - - ( COUNT( * ) ) AS col0 FROM tab0 WHERE - 97 + - col1 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-4463
SELECT - - ( COUNT ( * ) ) AS col0 FROM tab0 WHERE - 97 + - col1 > NULL
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-4464
SELECT - col1 + - + col2 - + col1 DIV + 36 + 67 AS col1, - col0 FROM tab1
----
-43
-51
-49
-91
3
-85

skipif mysql # not compatible
query II rowsort label-4464
SELECT - col1 + - + col2 - + col1 / + 36 + 67 AS col1, - col0 FROM tab1
----
-43
-51
-49
-91
3
-85

query I rowsort
SELECT DISTINCT + 42 - - col0 AS col0 FROM tab0
----
129
139
57

onlyif mysql # aggregate syntax: 
query I rowsort label-4466
SELECT DISTINCT + ( SUM( ALL + col0 ) ) - + 64 FROM tab0
----
135

skipif mysql # not compatible
query I rowsort label-4466
SELECT DISTINCT + ( SUM ( ALL + col0 ) ) - + 64 FROM tab0
----
135

query II rowsort
SELECT DISTINCT col0, col1 * - + col0 + + + col1 AS col2 FROM tab2
----
46
-2295
64
-4851
75
-4958

query I rowsort
SELECT ALL - - col1 FROM tab0 cor0 WHERE NOT - ( - + col2 ) IS NULL
----
1
21
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 AS col0, - 18 col1 FROM tab1 AS cor0
----
51
-18
85
-18
91
-18

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - 75 AND + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4471
SELECT COUNT( - + col0 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4471
SELECT COUNT ( - + col0 ) AS col0 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4472
SELECT DISTINCT - MAX( ALL + + 33 ) AS col2 FROM tab0
----
-33

skipif mysql # not compatible
query I rowsort label-4472
SELECT DISTINCT - MAX ( ALL + + 33 ) AS col2 FROM tab0
----
-33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0, col2 + - - 65 col0 FROM tab2 AS cor0
----
46
88
64
105
75
123

query II rowsort
SELECT - 97, 96 AS col2 FROM tab1 AS cor0
----
-97
96
-97
96
-97
96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4475
SELECT * FROM tab2 AS cor0 WHERE NOT CAST( - + col0 AS SIGNED ) BETWEEN + - 0 AND 64
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4475
SELECT * FROM tab2 AS cor0 WHERE NOT CAST ( - + col0 AS INTEGER ) BETWEEN + - 0 AND 64
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col2 FROM tab1 AS cor0 WHERE NOT + col0 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4477
SELECT + CAST( NULL AS SIGNED ) * + col2 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4477
SELECT + CAST ( NULL AS INTEGER ) * + col2 AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4478
SELECT - COUNT( * ) * + - 74 AS col1 FROM tab1
----
222

skipif mysql # not compatible
query I rowsort label-4478
SELECT - COUNT ( * ) * + - 74 AS col1 FROM tab1
----
222

query III rowsort
SELECT * FROM tab1 WHERE NOT - + 29 * + 63 + + - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab2 WHERE NOT ( NOT ( NOT ( - 88 ) < NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4481
SELECT + 18 + - + 88 + + - COUNT( * ) AS col1 FROM tab2
----
-73

skipif mysql # not compatible
query I rowsort label-4481
SELECT + 18 + - + 88 + + - COUNT ( * ) AS col1 FROM tab2
----
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4482
SELECT - CAST( NULL AS SIGNED ) * + 23 + + CAST( NULL AS SIGNED ) / 58 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4482
SELECT - CAST ( NULL AS INTEGER ) * + 23 + + CAST ( NULL AS INTEGER ) / 58 AS col0 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4484
SELECT ALL + - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN 89 * 20 AND 97
----
0

skipif mysql # not compatible
query I rowsort label-4484
SELECT ALL + - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN 89 * 20 AND 97
----
0

query I rowsort
SELECT DISTINCT - - 15 * + 48 + - col1 + - col1 AS col1 FROM tab0 AS cor0
----
558
678
718

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col2 + col2 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4487
SELECT CAST( NULL AS DECIMAL ), col1 col1 FROM tab2
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4487
SELECT CAST ( NULL AS REAL ), col1 col1 FROM tab2
----
NULL
51
NULL
67
NULL
77

query I rowsort
SELECT ALL + 13 * + col2 AS col1 FROM tab1
----
1248
767
884

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4489
SELECT + MIN( ALL - + CAST( NULL AS SIGNED ) ) * + MIN( ALL + col1 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4489
SELECT + MIN ( ALL - + CAST ( NULL AS INTEGER ) ) * + MIN ( ALL + col1 ) FROM tab2
----
NULL

query II rowsort
SELECT ALL col0, - col2 + + - col1 FROM tab2
----
46
-74
64
-117
75
-125

query III rowsort
SELECT * FROM tab2 WHERE NULL IS NULL AND - col2 + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4492
SELECT ALL + 39 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IN ( - CAST( NULL AS SIGNED ) + + col0 + + CAST( + - col2 AS DECIMAL ) * - col2 + + col0 )
----

skipif mysql # not compatible
query I rowsort label-4492
SELECT ALL + 39 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IN ( - CAST ( NULL AS INTEGER ) + + col0 + + CAST ( + - col2 AS REAL ) * - col2 + + col0 )
----

query I rowsort
SELECT + + 41 + - col1 FROM tab1 AS cor0
----
-6
27
36

query II rowsort
SELECT DISTINCT + col0 AS col1, - 7 FROM tab2 AS cor0
----
46
-7
64
-7
75
-7

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col0 <> + - col2
----

query I rowsort
SELECT + - 33 AS col1 FROM tab0 AS cor0 WHERE - 39 * + col0 BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + col2 + + 45 AS col2 FROM tab2 AS cor0
----
103
68
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4498
SELECT - - CAST( NULL AS SIGNED ) + 1 + - 88 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4498
SELECT - - CAST ( NULL AS INTEGER ) + 1 + - 88 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - - 59 * ( col2 ) + + 51 AS col2 FROM tab2 AS cor0
----
1408
2411
3473

onlyif mysql # aggregate syntax: 
query I rowsort label-4500
SELECT + + MAX( DISTINCT 83 ) + 1 AS col1 FROM tab1 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-4500
SELECT + + MAX ( DISTINCT 83 ) + 1 AS col1 FROM tab1 AS cor0
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4501
SELECT ALL 60 + + col0 + CAST( + - 92 AS SIGNED ) + + col2 * col0 AS col2 FROM tab1 AS cor0
----
4915
5068
6247

skipif mysql # not compatible
query I rowsort label-4501
SELECT ALL 60 + + col0 + CAST ( + - 92 AS INTEGER ) + + col2 * col0 AS col2 FROM tab1 AS cor0
----
4915
5068
6247

query I rowsort
SELECT ALL + - 75 / + + 67 * col0 * + col0 * - 17 AS col0 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - ( - col2 ) - + col0 AS col1 FROM tab2
----
-17
-23
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-4504
SELECT DISTINCT + COUNT( * ) - 65 * 55 FROM tab2
----
-3572

skipif mysql # not compatible
query I rowsort label-4504
SELECT DISTINCT + COUNT ( * ) - 65 * 55 FROM tab2
----
-3572

onlyif mysql # aggregate syntax: 
query I rowsort label-4505
SELECT ALL COUNT( * ) + MIN( ALL + 7 ) FROM tab2
----
10

skipif mysql # not compatible
query I rowsort label-4505
SELECT ALL COUNT ( * ) + MIN ( ALL + 7 ) FROM tab2
----
10

query I rowsort
SELECT + col1 FROM tab1 WHERE NOT col2 + - 7 IS NULL
----
14
47
5

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 2 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 63 col1 FROM tab0 AS cor0
----
63
63
63

query I rowsort
SELECT ALL - col1 FROM tab0 WHERE NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4510
SELECT ALL - ( + 41 ) + + + col1 + CAST( + + col1 AS SIGNED ) + + + col2 * + col0 + - col1 * + + col2 * + col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-194447
-287007
-52839

skipif mysql # not compatible
query I rowsort label-4510
SELECT ALL - ( + 41 ) + + + col1 + CAST ( + + col1 AS INTEGER ) + + + col2 * + col0 + - col1 * + + col2 * + col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-194447
-287007
-52839

onlyif mysql # aggregate syntax: 
query I rowsort label-4511
SELECT - SUM( col2 ) AS col0 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-4511
SELECT - SUM ( col2 ) AS col0 FROM tab1 AS cor0
----
-223

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( - 17 + 47 + - col0, col1, - 19 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4513
SELECT - + 15 * 82 * - col2 + - col2 + + 48 + + 12 * - 69 * 44 * - CAST( NULL AS SIGNED ) * col0 * + + CAST( - + 24 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4513
SELECT - + 15 * 82 * - col2 + - col2 + + 48 + + 12 * - 69 * 44 * - CAST ( NULL AS INTEGER ) * col0 * + + CAST ( - + 24 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 * - + col1 + + 45 * - col1 + + - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4515
SELECT ALL SUM( DISTINCT - col2 ) AS col0 FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-4515
SELECT ALL SUM ( DISTINCT - col2 ) AS col0 FROM tab1
----
-223

query II rowsort
SELECT ALL + col1 AS col2, 53 * - col0 + col1 AS col2 FROM tab1
----
14
-2689
47
-4776
5
-4500

query III rowsort
SELECT * FROM tab1 WHERE 15 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4518
SELECT - COUNT( * ) FROM tab0 WHERE + + col0 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4518
SELECT - COUNT ( * ) FROM tab0 WHERE + + col0 IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4519
SELECT + COUNT( DISTINCT col2 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4519
SELECT + COUNT ( DISTINCT col2 ) AS col1 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4520
SELECT DISTINCT - COUNT( - - col0 ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4520
SELECT DISTINCT - COUNT ( - - col0 ) AS col0 FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4521
SELECT ALL + 66 + - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4521
SELECT ALL + 66 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 88 * - 63 * col1 AS col2 FROM tab2
----
-282744
-371448
-426888

query I rowsort
SELECT + + 65 * col0 AS col1 FROM tab1 AS cor0
----
3315
5525
5915

query I rowsort
SELECT DISTINCT - + col1 + - 14 FROM tab1 AS cor0
----
-19
-28
-61

onlyif mysql # DIV for integer division: 
query I rowsort label-4525
SELECT + col1 - + col2 DIV - ( - + col2 ) FROM tab0 cor0
----
0
20
80

skipif mysql # not compatible
query I rowsort label-4525
SELECT + col1 - + col2 / - ( - + col2 ) FROM tab0 cor0
----
0
20
80

query I rowsort
SELECT + + col0 - ( + 78 ) FROM tab2 cor0
----
-14
-3
-32

query I rowsort
SELECT 37 - - 25 FROM tab0 AS cor0
----
62
62
62

query I rowsort
SELECT DISTINCT col0 * - col2 * - col1 FROM tab0 AS cor0
----
18270
57105
9603

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4529
SELECT DISTINCT + 79 * col2 * + col2 + + CAST( NULL AS SIGNED ) + + - col2 + - + col1 + + - 51 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4529
SELECT DISTINCT + 79 * col2 * + col2 + + CAST ( NULL AS INTEGER ) + + - col2 + - + col1 + + - 51 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - + ( - 56 ) - - col1 + - ( - 59 ) * + col0 FROM tab1 AS cor0
----
3079
5076
5472

query II rowsort
SELECT - 1 AS col1, - col2 AS col1 FROM tab1
----
-1
-59
-1
-68
-1
-96

query I rowsort
SELECT DISTINCT - 62 AS col1 FROM tab2
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-4533
SELECT ALL COUNT( - 38 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4533
SELECT ALL COUNT ( - 38 ) AS col1 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4534
SELECT ALL + 42 * COUNT( * ) col2 FROM tab1
----
126

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4534
SELECT ALL + 42 * COUNT ( * ) col2 FROM tab1
----
126

query II rowsort
SELECT 90 AS col2, - ( + 1 ) AS col1 FROM tab2 WHERE NOT - 61 + + col2 + ( - 1 ) * - col2 * - col1 < + 24 + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4536
SELECT + SUM( - - col1 ) FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-4536
SELECT + SUM ( - - col1 ) FROM tab1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4537
SELECT DISTINCT MAX( - col0 ) AS col2 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-4537
SELECT DISTINCT MAX ( - col0 ) AS col2 FROM tab1
----
-51

query I rowsort
SELECT ALL col2 * - + col2 AS col1 FROM tab1 AS cor0
----
-3481
-4624
-9216

query I rowsort
SELECT - 40 + - col2 + col2 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + 90 AS col2 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
90

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 > + + 54
----
51
14
96

query I rowsort
SELECT ALL - - col2 / - col2 FROM tab0 WHERE + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4543
SELECT DISTINCT + - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE + col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4543
SELECT DISTINCT + - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE + col0 IS NULL
----
0

query I rowsort
SELECT + col0 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND + + col1
----

query I rowsort
SELECT + col2 AS col2 FROM tab0 AS cor0 WHERE NOT + col0 IS NULL
----
10
47
99

query I rowsort
SELECT DISTINCT - 2 + col1 AS col2 FROM tab2 cor0
----
49
65
75

query I rowsort
SELECT - - col1 AS col2 FROM tab0 AS cor0 WHERE NOT - col0 NOT BETWEEN NULL AND + 32 * + - col2
----

query I rowsort
SELECT + 47 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN col2 AND + col0 * col1
----

query III rowsort
SELECT * FROM tab1 WHERE - col2 * - col0 + + col2 - - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT IN ( - col2, col2, + 81 / 66 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4551
SELECT ALL ( - + MAX( + col0 ) ) AS col2 FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-4551
SELECT ALL ( - + MAX ( + col0 ) ) AS col2 FROM tab0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4552
SELECT - COUNT( * ) + 80 FROM tab0
----
77

skipif mysql # not compatible
query I rowsort label-4552
SELECT - COUNT ( * ) + 80 FROM tab0
----
77

onlyif mysql # DIV for integer division: 
query II rowsort label-4553
SELECT + col2 + col0 + + col0 DIV - - ( + col0 ), - 47 col1 FROM tab1
----
145
-47
148
-47
160
-47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4553
SELECT + col2 + col0 + + col0 / - - ( + col0 ), - 47 col1 FROM tab1
----
145
-47
148
-47
160
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4554
SELECT DISTINCT - CAST( + col0 AS SIGNED ) FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-4554
SELECT DISTINCT - CAST ( + col0 AS INTEGER ) FROM tab1
----
-51
-85
-91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4555
SELECT DISTINCT 96 DIV 44 + - ( + SUM( col1 ) ) AS col0 FROM tab0
----
-101

skipif mysql # not compatible
query I rowsort label-4555
SELECT DISTINCT 96 / 44 + - ( + SUM ( col1 ) ) AS col0 FROM tab0
----
-101

onlyif mysql # DIV for integer division: 
query I rowsort label-4556
SELECT + col1 DIV - col1 col1 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4556
SELECT + col1 / - col1 col1 FROM tab2
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4557
SELECT DISTINCT CAST( NULL AS SIGNED ) + - col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4557
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - col1 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 * - - col0 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4559
SELECT + CAST( NULL AS SIGNED ) * COUNT( ALL + col0 ) - + + 24 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4559
SELECT + CAST ( NULL AS INTEGER ) * COUNT ( ALL + col0 ) - + + 24 AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4560
SELECT DISTINCT col2 FROM tab1 AS cor0 WHERE + 71 > CAST( - col2 AS DECIMAL )
----
59
68
96

skipif mysql # not compatible
query I rowsort label-4560
SELECT DISTINCT col2 FROM tab1 AS cor0 WHERE + 71 > CAST ( - col2 AS REAL )
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4561
SELECT ALL 16 * MAX( DISTINCT - 37 ) FROM tab2
----
-592

skipif mysql # not compatible
query I rowsort label-4561
SELECT ALL 16 * MAX ( DISTINCT - 37 ) FROM tab2
----
-592

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 14 NOT BETWEEN - - 2 AND + col1
----

query I rowsort
SELECT DISTINCT col2 * + col2 * - + 57 FROM tab2 AS cor0
----
-191748
-30153
-91200

query I rowsort
SELECT + col1 + - 56 FROM tab2 AS cor0
----
-5
11
21

onlyif mysql # aggregate syntax: 
query I rowsort label-4565
SELECT ALL - COUNT( * ) * + 75 AS col2 FROM tab0 cor0
----
-225

skipif mysql # not compatible
query I rowsort label-4565
SELECT ALL - COUNT ( * ) * + 75 AS col2 FROM tab0 cor0
----
-225

query I rowsort
SELECT ALL - 89 * - 59 * - col0 AS col0 FROM tab1 AS cor0
----
-267801
-446335
-477841

query II rowsort
SELECT DISTINCT - col2 AS col2, - col1 AS col1 FROM tab1 AS cor0
----
-59
-5
-68
-47
-96
-14

onlyif mysql # DIV for integer division: 
query II rowsort label-4568
SELECT ALL - 25 AS col1, + col2 DIV - col2 + + 67 * + - ( + col1 ) * - col0 + + - col1 + - 20 + - - 75 DIV col2 AS col0 FROM tab0 AS cor0
----
-25
122374
-25
6477
-25
81304

skipif mysql # not compatible
query II rowsort label-4568
SELECT ALL - 25 AS col1, + col2 / - col2 + + 67 * + - ( + col1 ) * - col0 + + - col1 + - 20 + - - 75 / col2 AS col0 FROM tab0 AS cor0
----
-25
122374
-25
6477
-25
81304

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col0 NOT BETWEEN + col1 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4570
SELECT DISTINCT + col0 * + 39 * + + col0 DIV col0 FROM tab2
----
1794
2496
2925

skipif mysql # not compatible
query I rowsort label-4570
SELECT DISTINCT + col0 * + 39 * + + col0 / col0 FROM tab2
----
1794
2496
2925

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4571
SELECT DISTINCT + CAST( - + MAX( 37 ) AS SIGNED ) FROM tab0
----
-37

skipif mysql # not compatible
query I rowsort label-4571
SELECT DISTINCT + CAST ( - + MAX ( 37 ) AS INTEGER ) FROM tab0
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4572
SELECT DISTINCT + CAST( - + COUNT( ALL 9 ) AS DECIMAL ) * - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4572
SELECT DISTINCT + CAST ( - + COUNT ( ALL 9 ) AS REAL ) * - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT ( 50 - col2 + + 63 * col1 + - col0 ) >= NULL
----

query I rowsort
SELECT + + col1 * - 13 - - col2 AS col2 FROM tab1 AS cor0
----
-543
-6
-86

query I rowsort
SELECT - 42 AS col0 FROM tab0 cor0
----
-42
-42
-42

query I rowsort
SELECT DISTINCT - col2 * + col1 - col0 * - + 90 AS col0 FROM tab0 AS cor0
----
-2457
7620
8631

onlyif mysql # aggregate syntax: 
query I rowsort label-4577
SELECT + MAX( - 68 ) * + + ( 95 ) * MAX( DISTINCT + 32 ) FROM tab2 AS cor0
----
-206720

skipif mysql # not compatible
query I rowsort label-4577
SELECT + MAX ( - 68 ) * + + ( 95 ) * MAX ( DISTINCT + 32 ) FROM tab2 AS cor0
----
-206720

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 col0 FROM tab1 AS cor0 WHERE NOT NULL > ( NULL )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col0 IN ( - 59, 64, + - 62 * + ( + 5 ), + - col2 - - col1 )
----
64
77
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4580
SELECT DISTINCT + MIN( + col0 ) AS col2 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-4580
SELECT DISTINCT + MIN ( + col0 ) AS col2 FROM tab0 AS cor0
----
15

query I rowsort
SELECT DISTINCT + 83 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-4582
SELECT - COUNT( * ) + - 95 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-104

skipif mysql # not compatible
query I rowsort label-4582
SELECT - COUNT ( * ) + - 95 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-104

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 24 * 34 col2 FROM tab0 cor0
----
-816
-816
-816

onlyif mysql # aggregate syntax: 
query I rowsort label-4584
SELECT ALL - COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL <= - ( col1 )
----
0

skipif mysql # not compatible
query I rowsort label-4584
SELECT ALL - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL <= - ( col1 )
----
0

query I rowsort
SELECT DISTINCT col1 + + + ( + col1 ) FROM tab1 AS cor0
----
10
28
94

onlyif mysql # DIV for integer division: 
query I rowsort label-4586
SELECT ALL - col2 DIV 37 FROM tab2 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-4586
SELECT ALL - col2 / 37 FROM tab2 AS cor0
----
-1
-1
0

query I rowsort
SELECT - 37 * 74 AS col1 FROM tab2 AS cor0
----
-2738
-2738
-2738

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 68 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4589
SELECT - + COUNT( * ) FROM tab2 WHERE ( NOT + 88 IS NULL )
----
-3

skipif mysql # not compatible
query I rowsort label-4589
SELECT - + COUNT ( * ) FROM tab2 WHERE ( NOT + 88 IS NULL )
----
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-4590
SELECT - col0 AS col2, + col1 DIV - 30 AS col2 FROM tab2 WHERE + - col2 < col1
----
-46
-1
-64
-2
-75
-2

skipif mysql # not compatible
query II rowsort label-4590
SELECT - col0 AS col2, + col1 / - 30 AS col2 FROM tab2 WHERE + - col2 < col1
----
-46
-1
-64
-2
-75
-2

query I rowsort
SELECT DISTINCT + + ( col2 ) + + + col2 FROM tab2 WHERE NOT - - col0 BETWEEN NULL AND NULL
----

query I rowsort
SELECT - 76 AS col2 FROM tab0 WHERE NULL = NULL
----

query I rowsort
SELECT 34 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4594
SELECT - + CAST( NULL AS DECIMAL ) col0 FROM tab0 WHERE ( ( NOT ( - col0 IS NULL ) ) )
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4594
SELECT - + CAST ( NULL AS REAL ) col0 FROM tab0 WHERE ( ( NOT ( - col0 IS NULL ) ) )
----
NULL
NULL
NULL

query I rowsort
SELECT + ( + col2 ) + + + col0 FROM tab1
----
144
147
159

query I rowsort
SELECT DISTINCT + + col1 FROM tab0 AS cor0 WHERE col0 IN ( + + 65, - col2 + + - col2, - - col2 + col2, + col1 + - - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4597
SELECT DISTINCT + COUNT( * ) + 48 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-4597
SELECT DISTINCT + COUNT ( * ) + 48 FROM tab2 AS cor0
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-4598
SELECT - col1 + + - col2 DIV col2 AS col1 FROM tab0 cor0
----
-2
-22
-82

skipif mysql # not compatible
query I rowsort label-4598
SELECT - col1 + + - col2 / col2 AS col1 FROM tab0 cor0
----
-2
-22
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4599
SELECT DISTINCT - COUNT( * ) * CAST( 63 AS SIGNED ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( + 10 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4599
SELECT DISTINCT - COUNT ( * ) * CAST ( 63 AS INTEGER ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( + 10 ) IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4600
SELECT DISTINCT - SUM( + - col2 ) AS col0 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-4600
SELECT DISTINCT - SUM ( + - col2 ) AS col0 FROM tab0
----
156

query I rowsort
SELECT - + ( - 72 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49

onlyif mysql # aggregate syntax: 
query II rowsort label-4602
SELECT + - 90 AS col0, - 36 + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-90
-33

skipif mysql # not compatible
query II rowsort label-4602
SELECT + - 90 AS col0, - 36 + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-90
-33

query I rowsort
SELECT ALL - 59 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-59
-59
-59

query II rowsort
SELECT + 15 AS col2, - 88 FROM tab2 AS cor0
----
15
-88
15
-88
15
-88

query I rowsort
SELECT DISTINCT - col2 * - - col2 * - 78 FROM tab1 AS cor0
----
271518
360672
718848

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 48 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4607
SELECT DISTINCT + + COUNT( DISTINCT - 8 ) AS col2 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4607
SELECT DISTINCT + + COUNT ( DISTINCT - 8 ) AS col2 FROM tab2 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 10 col2 FROM tab0 cor0
----
-10
-10
-10

query I rowsort
SELECT ALL 78 FROM tab1 cor0
----
78
78
78

onlyif mysql # aggregate syntax: 
query II rowsort label-4610
SELECT - + 53 AS col0, COUNT( * ) FROM tab1 WHERE NOT col1 > 15 + - ( - 83 )
----
-53
3

skipif mysql # not compatible
query II rowsort label-4610
SELECT - + 53 AS col0, COUNT ( * ) FROM tab1 WHERE NOT col1 > 15 + - ( - 83 )
----
-53
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4611
SELECT DISTINCT MAX( DISTINCT - 40 ) FROM tab0
----
-40

skipif mysql # not compatible
query I rowsort label-4611
SELECT DISTINCT MAX ( DISTINCT - 40 ) FROM tab0
----
-40

query I rowsort
SELECT ( - 2 ) AS col0 FROM tab1
----
-2
-2
-2

query II rowsort
SELECT + 12 AS col1, col2 * - + col1 FROM tab0
----
12
-210
12
-3807
12
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-4614
SELECT DISTINCT col1 * 66 DIV - col2 FROM tab1
----
-45
-5
-9

skipif mysql # not compatible
query I rowsort label-4614
SELECT DISTINCT col1 * 66 / - col2 FROM tab1
----
-45
-5
-9

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - ( + 48 ) IS NULL
----

query I rowsort
SELECT DISTINCT + 63 FROM tab2 WHERE NOT col2 IS NOT NULL
----

query II rowsort
SELECT + col2, - col2 FROM tab1
----
59
-59
68
-68
96
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4618
SELECT - ( - + COUNT( * ) ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4618
SELECT - ( - + COUNT ( * ) ) AS col1 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4619
SELECT + - ( - COUNT( * ) ) * - - ( - - COUNT( * ) ) AS col1 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-4619
SELECT + - ( - COUNT ( * ) ) * - - ( - - COUNT ( * ) ) AS col1 FROM tab0 AS cor0
----
9

query I rowsort
SELECT ALL - col0 FROM tab0 cor0 WHERE NOT + 51 >= NULL
----

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query II rowsort
SELECT ALL + col1 AS col0, - col2 AS col1 FROM tab1 AS cor0
----
14
-96
47
-68
5
-59

query I rowsort
SELECT - + ( - 13 ) AS col0 FROM tab1 cor0
----
13
13
13

query I rowsort
SELECT ALL col1 + col2 + + - col1 FROM tab2 AS cor0
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4625
SELECT DISTINCT COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NULL
----
9

skipif mysql # not compatible
query I rowsort label-4625
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NULL
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-4626
SELECT + 98 DIV - + ( col2 ) AS col2 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4626
SELECT + 98 / - + ( col2 ) AS col2 FROM tab1
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4627
SELECT DISTINCT - COUNT( + col0 ) * - - COUNT( * ) col2 FROM tab0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4627
SELECT DISTINCT - COUNT ( + col0 ) * - - COUNT ( * ) col2 FROM tab0
----
-9

query I rowsort
SELECT ALL col0 * - 95 AS col0 FROM tab2
----
-4370
-6080
-7125

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 5 col2 FROM tab2 AS cor0
----
5
5
5

query I rowsort
SELECT ALL + 87 + + col2 AS col1 FROM tab0 AS cor0
----
134
186
97

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab2 AS cor0 WHERE ( - - col2 ) - + + 52 IS NOT NULL
----
-23
-40
-58

query I rowsort
SELECT ALL + - 31 FROM tab2 AS cor0 WHERE col1 - col0 IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 >= + - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - + col2 FROM tab0 AS cor0 WHERE ( NULL ) < + col1
----

query I rowsort
SELECT ALL - col0 + + 8 AS col2 FROM tab1 AS cor0
----
-43
-77
-83

query I rowsort
SELECT ALL + col1 + - + col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col2 * - 75 + - col0 FROM tab1 AS cor0
----
4340
5009
7149

query II rowsort
SELECT ALL + - 14 * col2 * - 38 AS col1, - 47 AS col2 FROM tab2 AS cor0
----
12236
-47
21280
-47
30856
-47

query I rowsort
SELECT ALL - + 15 + col1 FROM tab0 AS cor0
----
-14
6
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4640
SELECT 58 + COUNT( * ) FROM tab2
----
61

skipif mysql # not compatible
query I rowsort label-4640
SELECT 58 + COUNT ( * ) FROM tab2
----
61

query I rowsort
SELECT ALL 65 + + 41 * + col2 AS col0 FROM tab2
----
1008
1705
2443

onlyif mysql # aggregate syntax: 
query I rowsort label-4642
SELECT + 5 + + COUNT( * ) AS col0 FROM tab0
----
8

skipif mysql # not compatible
query I rowsort label-4642
SELECT + 5 + + COUNT ( * ) AS col0 FROM tab0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4643
SELECT ALL MIN( ALL - col1 ) AS col1 FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-4643
SELECT ALL MIN ( ALL - col1 ) AS col1 FROM tab2
----
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4644
SELECT DISTINCT - + 95 DIV COUNT( * ) AS col0 FROM tab2 AS cor0
----
-31

skipif mysql # not compatible
query I rowsort label-4644
SELECT DISTINCT - + 95 / COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-31

query I rowsort
SELECT + 38 * 14 - + - col0 AS col2 FROM tab1
----
583
617
623

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + + col2 / - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4647
SELECT ALL + ( - COUNT( + col1 ) ) FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4647
SELECT ALL + ( - COUNT ( + col1 ) ) FROM tab2 cor0
----
-3

query I rowsort
SELECT ( + - col1 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4649
SELECT + + COUNT( * ) * COUNT( * ) FROM tab2 cor0
----
9

skipif mysql # not compatible
query I rowsort label-4649
SELECT + + COUNT ( * ) * COUNT ( * ) FROM tab2 cor0
----
9

query I rowsort
SELECT DISTINCT + + 62 * + col0 AS col1 FROM tab1 AS cor0
----
3162
5270
5642

query I rowsort
SELECT - - col1 * - 76 AS col2 FROM tab2 cor0
----
-3876
-5092
-5852

query I rowsort
SELECT DISTINCT 38 FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 32 AS col2 FROM tab2 AS cor0
----
32

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT BETWEEN + col0 AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4655
SELECT ALL CAST( NULL AS DECIMAL ) col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4655
SELECT ALL CAST ( NULL AS REAL ) col0 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT + 65 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 col0 FROM tab0 WHERE NOT - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4658
SELECT ( - MAX( + + 40 ) ) AS col0 FROM tab0 AS cor0
----
-40

skipif mysql # not compatible
query I rowsort label-4658
SELECT ( - MAX ( + + 40 ) ) AS col0 FROM tab0 AS cor0
----
-40

query I rowsort
SELECT ALL - ( ( + col0 ) ) AS col0 FROM tab2 AS cor0
----
-46
-64
-75

query I rowsort
SELECT col2 + + ( - - 35 ) AS col0 FROM tab0 AS cor0
----
134
45
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4661
SELECT DISTINCT COUNT( * ) + - + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4661
SELECT DISTINCT COUNT ( * ) + - + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4662
SELECT - COUNT( * ) DIV - + COUNT( * ) AS col0, 1 FROM tab2
----
1
1

skipif mysql # not compatible
query II rowsort label-4662
SELECT - COUNT ( * ) / - + COUNT ( * ) AS col0, 1 FROM tab2
----
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4663
SELECT ALL col0 AS col1, CAST( + 7 AS SIGNED ) + - 8 * - 42 FROM tab1 AS cor0
----
51
343
85
343
91
343

skipif mysql # not compatible
query II rowsort label-4663
SELECT ALL col0 AS col1, CAST ( + 7 AS INTEGER ) + - 8 * - 42 FROM tab1 AS cor0
----
51
343
85
343
91
343

query II rowsort
SELECT - 17 AS col0, 25 FROM tab1 cor0
----
-17
25
-17
25
-17
25

onlyif mysql # aggregate syntax: 
query I rowsort label-4665
SELECT DISTINCT + MAX( ALL + col0 ) FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-4665
SELECT DISTINCT + MAX ( ALL + col0 ) FROM tab1 AS cor0
----
91

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL >= ( ( + col1 ) ) + + + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4667
SELECT ALL - - col2 + ( - - col0 ) + + - col2 + + + col1 DIV col2 FROM tab0 cor0 WHERE ( NOT - col0 > - + col2 DIV col2 )
----
16
89
97

skipif mysql # not compatible
query I rowsort label-4667
SELECT ALL - - col2 + ( - - col0 ) + + - col2 + + + col1 / col2 FROM tab0 cor0 WHERE ( NOT - col0 > - + col2 / col2 )
----
16
89
97

query I rowsort
SELECT ALL col1 + + 45 FROM tab0 AS cor0
----
126
46
66

query I rowsort
SELECT DISTINCT - col1 * + 95 - - 96 AS col1 FROM tab0 AS cor0 WHERE col1 * + - ( col2 ) >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4670
SELECT DISTINCT - + col0 + - + ( - - 46 ) + col1 + col1 + - 70 DIV - col0 FROM tab2 AS cor0
----
11
13
45

skipif mysql # not compatible
query I rowsort label-4670
SELECT DISTINCT - + col0 + - + ( - - 46 ) + col1 + col1 + - 70 / - col0 FROM tab2 AS cor0
----
11
13
45

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col2 NOT IN ( - col0 / col0 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 90 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4674
SELECT ALL col1 * + col0 * 96 + 96 * 32 + CAST( + - col0 AS SIGNED ) FROM tab1
----
413573
43787
71565

skipif mysql # not compatible
query I rowsort label-4674
SELECT ALL col1 * + col0 * 96 + 96 * 32 + CAST ( + - col0 AS INTEGER ) FROM tab1
----
413573
43787
71565

onlyif mysql # aggregate syntax: 
query I rowsort label-4675
SELECT ALL - COUNT( 2 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-4675
SELECT ALL - COUNT ( 2 ) FROM tab0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4676
SELECT CAST( col1 AS SIGNED ) AS col1 FROM tab0 WHERE + - 18 * - - 31 IS NOT NULL
----
1
21
81

skipif mysql # not compatible
query I rowsort label-4676
SELECT CAST ( col1 AS INTEGER ) AS col1 FROM tab0 WHERE + - 18 * - - 31 IS NOT NULL
----
1
21
81

query I rowsort
SELECT ALL col0 FROM tab2 WHERE NOT + col1 IS NOT NULL
----

query I rowsort
SELECT 78 - + 26 FROM tab2
----
52
52
52

query I rowsort
SELECT 96 + 41 + col2 AS col0 FROM tab0
----
147
184
236

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 71 col0 FROM tab2 WHERE - 72 IS NULL
----

query I rowsort
SELECT ALL - col2 FROM tab0 WHERE NOT 56 + - col1 <> NULL
----

query I rowsort
SELECT col0 * - - col1 + + col1 + 40 AS col1 FROM tab1
----
4364
470
768

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4683
SELECT col1 + - col2 + ( - CAST( NULL AS SIGNED ) ) * - + 87 col0, col0 * col0 * + 65 AS col1 FROM tab1
----
NULL
169065
NULL
469625
NULL
538265

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4683
SELECT col1 + - col2 + ( - CAST ( NULL AS INTEGER ) ) * - + 87 col0, col0 * col0 * + 65 AS col1 FROM tab1
----
NULL
169065
NULL
469625
NULL
538265

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4684
SELECT 27 + + - 54, + CAST( - CAST( NULL AS DECIMAL ) AS SIGNED ) AS col2 FROM tab0
----
-27
NULL
-27
NULL
-27
NULL

skipif mysql # not compatible
query II rowsort label-4684
SELECT 27 + + - 54, + CAST ( - CAST ( NULL AS REAL ) AS INTEGER ) AS col2 FROM tab0
----
-27
NULL
-27
NULL
-27
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4685
SELECT + COUNT( * ) + + - 29 col2 FROM tab2 AS cor0
----
-26

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4685
SELECT + COUNT ( * ) + + - 29 col2 FROM tab2 AS cor0
----
-26

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 74 + - 48 * + col0 NOT BETWEEN NULL AND - col2 * + 22
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 32 * col0 + - col2 col2 FROM tab1 cor0
----
-1728
-2779
-2980

query II rowsort
SELECT 51 + + col0 AS col0, col2 AS col1 FROM tab0 AS cor0
----
138
10
148
99
66
47

query I rowsort
SELECT ALL + - col0 * + - col1 FROM tab2 AS cor0
----
2346
4928
5025

query I rowsort
SELECT DISTINCT 71 * + - col2 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4691
SELECT DISTINCT MAX( ALL col1 ) AS col0 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-4691
SELECT DISTINCT MAX ( ALL col1 ) AS col0 FROM tab1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4692
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-4692
SELECT DISTINCT COUNT ( * ) col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4693
SELECT ALL COUNT( + col0 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4693
SELECT ALL COUNT ( + col0 ) AS col0 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4694
SELECT ALL - SUM( ALL - 5 ) * COUNT( * ) FROM tab0 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-4694
SELECT ALL - SUM ( ALL - 5 ) * COUNT ( * ) FROM tab0 AS cor0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4695
SELECT + COUNT( * ) * - 86 FROM tab0 AS cor0
----
-258

skipif mysql # not compatible
query I rowsort label-4695
SELECT + COUNT ( * ) * - 86 FROM tab0 AS cor0
----
-258

onlyif mysql # aggregate syntax: 
query I rowsort label-4696
SELECT DISTINCT 64 * + COUNT( * ) FROM tab2 AS cor0
----
192

skipif mysql # not compatible
query I rowsort label-4696
SELECT DISTINCT 64 * + COUNT ( * ) FROM tab2 AS cor0
----
192

onlyif mysql # DIV for integer division: 
query II rowsort label-4697
SELECT + + 53 AS col2, col0 DIV - 62 FROM tab1 AS cor0
----
53
-1
53
-1
53
0

skipif mysql # not compatible
query II rowsort label-4697
SELECT + + 53 AS col2, col0 / - 62 FROM tab1 AS cor0
----
53
-1
53
-1
53
0

query I rowsort
SELECT DISTINCT - + col2 * - 4 AS col2 FROM tab2 AS cor0
----
160
232
92

query II rowsort
SELECT DISTINCT col1, - col2 - - 24 * - col1 * 37 FROM tab1 cor0
----
14
-12528
47
-41804
5
-4499

query II rowsort
SELECT ALL - + col1 AS col0, col2 FROM tab0 AS cor0
----
-1
99
-21
10
-81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4701
SELECT DISTINCT MAX( + - col2 ) FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-4701
SELECT DISTINCT MAX ( + - col2 ) FROM tab2
----
-23

query I rowsort
SELECT - col2 + + + col1 FROM tab0
----
-98
11
34

query I rowsort
SELECT 90 * + col2 + col1 + + col2 * - + col2 FROM tab0
----
-890
2102
821

onlyif mysql # DIV for integer division: 
query II rowsort label-4704
SELECT DISTINCT + 62 + + col1 DIV col2 + + 15, col1 AS col1 FROM tab1 AS cor0
----
77
14
77
47
77
5

skipif mysql # not compatible
query II rowsort label-4704
SELECT DISTINCT + 62 + + col1 / col2 + + 15, col1 AS col1 FROM tab1 AS cor0
----
77
14
77
47
77
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4705
SELECT - MIN( + col2 ) FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-4705
SELECT - MIN ( + col2 ) FROM tab2
----
-23

query I rowsort
SELECT ALL ( + - 31 ) FROM tab2 AS cor0
----
-31
-31
-31

query I rowsort
SELECT ALL ( - - 25 ) + - col0 FROM tab0 AS cor0
----
-62
-72
10

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4708
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 + + + col2 + - - col1 * + + CAST( NULL AS SIGNED ) BETWEEN NULL AND - col1
----

skipif mysql # not compatible
query III rowsort label-4708
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 + + + col2 + - - col1 * + + CAST ( NULL AS INTEGER ) BETWEEN NULL AND - col1
----

query II rowsort
SELECT - col2 AS col0, col1 FROM tab1 AS cor0 WHERE + col2 <> NULL
----

query I rowsort
SELECT 63 FROM tab1 AS cor0 WHERE NULL IS NULL
----
63
63
63

query I rowsort
SELECT DISTINCT - 30 + + 1 FROM tab2 AS cor0
----
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-4712
SELECT DISTINCT + 83 + + - 6 DIV - + col1 FROM tab2
----
83

skipif mysql # not compatible
query I rowsort label-4712
SELECT DISTINCT + 83 + + - 6 / - + col1 FROM tab2
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-4713
SELECT DISTINCT - ( COUNT( * ) ) + - COUNT( * ) FROM tab1
----
-6

skipif mysql # not compatible
query I rowsort label-4713
SELECT DISTINCT - ( COUNT ( * ) ) + - COUNT ( * ) FROM tab1
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4714
SELECT - COUNT( - 68 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-4714
SELECT - COUNT ( - 68 ) FROM tab2
----
-3

query I rowsort
SELECT ALL + col2 - + col2 AS col0 FROM tab1
----
0
0
0

query III rowsort
SELECT ALL * FROM tab0 WHERE col1 * + col0 + - 80 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 17 * - - col2 FROM tab1
----
1003
1156
1632

query III rowsort
SELECT * FROM tab1 WHERE 68 <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4719
SELECT ALL - 49 * col0 DIV col1 AS col0 FROM tab0 AS cor0
----
-203
-4753
-9

skipif mysql # not compatible
query I rowsort label-4719
SELECT ALL - 49 * col0 / col1 AS col0 FROM tab0 AS cor0
----
-203
-4753
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4720
SELECT + + 39 DIV - COUNT( DISTINCT col1 ) FROM tab0 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-4720
SELECT + + 39 / - COUNT ( DISTINCT col1 ) FROM tab0 AS cor0
----
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4721
SELECT ALL + CAST( 14 AS SIGNED ) * 67 AS col0 FROM tab2 AS cor0
----
938
938
938

skipif mysql # not compatible
query I rowsort label-4721
SELECT ALL + CAST ( 14 AS INTEGER ) * 67 AS col0 FROM tab2 AS cor0
----
938
938
938

query II rowsort
SELECT col2, + col2 FROM tab1 AS cor0
----
59
59
68
68
96
96

query II rowsort
SELECT + ( - 54 ) AS col1, 83 AS col2 FROM tab0
----
-54
83
-54
83
-54
83

query I rowsort
SELECT ( - 89 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NOT NULL
----
9 values hashing to 924a74d31360fa4301c953b423a4710e

query I rowsort
SELECT - ( - 93 ) * - col0 FROM tab1
----
-4743
-7905
-8463

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) <= col0 * + col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4727
SELECT ALL - 84 * MIN( col2 ) col0, - 69 FROM tab2 AS cor0
----
-1932
-69

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4727
SELECT ALL - 84 * MIN ( col2 ) col0, - 69 FROM tab2 AS cor0
----
-1932
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-4728
SELECT - COUNT( * ) * + - 89 AS col0 FROM tab1 AS cor0
----
267

skipif mysql # not compatible
query I rowsort label-4728
SELECT - COUNT ( * ) * + - 89 AS col0 FROM tab1 AS cor0
----
267

query I rowsort
SELECT + col2 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4730
SELECT col0 DIV - CAST( 18 AS SIGNED ) FROM tab2
----
-2
-3
-4

skipif mysql # not compatible
query I rowsort label-4730
SELECT col0 / - CAST ( 18 AS INTEGER ) FROM tab2
----
-2
-3
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-4731
SELECT DISTINCT COUNT( ALL + + col1 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4731
SELECT DISTINCT COUNT ( ALL + + col1 ) AS col2 FROM tab2
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4732
SELECT ( SUM( ALL + + CAST( 67 AS SIGNED ) ) ) FROM tab0
----
201

skipif mysql # not compatible
query I rowsort label-4732
SELECT ( SUM ( ALL + + CAST ( 67 AS INTEGER ) ) ) FROM tab0
----
201

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4733
SELECT ALL - CAST( - 7 AS SIGNED ) AS col0 FROM tab0 cor0
----
7
7
7

skipif mysql # not compatible
query I rowsort label-4733
SELECT ALL - CAST ( - 7 AS INTEGER ) AS col0 FROM tab0 cor0
----
7
7
7

query I rowsort
SELECT + - col1 + + ( ( ( col0 ) ) ) + + - col2 FROM tab2 AS cor0
----
-28
-50
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-4735
SELECT DISTINCT - SUM( DISTINCT + 34 ) + + 96 - + - ( COUNT( * ) ) + - - COUNT( * ) + + - COUNT( * ) col1 FROM tab1 AS cor0
----
65

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4735
SELECT DISTINCT - SUM ( DISTINCT + 34 ) + + 96 - + - ( COUNT ( * ) ) + - - COUNT ( * ) + + - COUNT ( * ) col1 FROM tab1 AS cor0
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4736
SELECT - + COUNT( * ) + 32 * - - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4736
SELECT - + COUNT ( * ) + 32 * - - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) > - + 19
----

query I rowsort
SELECT DISTINCT col1 - + col0 * + + col1 * ( + col2 ) * + col2 + 31 AS col0 FROM tab1 AS cor0
----
-1479389
-19776770
-6580179

query I rowsort
SELECT col1 - col1 + 46 AS col1 FROM tab2 AS cor0
----
46
46
46

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL > + 92 * + 18 + + col1
----

query I rowsort
SELECT - + 2 + + col2 AS col0 FROM tab2 WHERE NULL IS NULL
----
21
38
56

onlyif mysql # aggregate syntax: 
query I rowsort label-4742
SELECT ALL 22 + - COUNT( * ) FROM tab0
----
19

skipif mysql # not compatible
query I rowsort label-4742
SELECT ALL 22 + - COUNT ( * ) FROM tab0
----
19

query I rowsort
SELECT DISTINCT + ( col0 ) - - + col2 * - 39 * - - col2 AS col0 FROM tab2
----
-131121
-20585
-62336

query I rowsort
SELECT ALL + col0 - + - 45 FROM tab1
----
130
136
96

onlyif mysql # DIV for integer division: 
query I rowsort label-4745
SELECT - col0 + - col1 + - + 98 DIV + 93 FROM tab2
----
-142
-143
-98

skipif mysql # not compatible
query I rowsort label-4745
SELECT - col0 + - col1 + - + 98 / + 93 FROM tab2
----
-142
-143
-98

query III rowsort
SELECT ALL * FROM tab0 WHERE + 60 <> NULL
----

query II rowsort
SELECT col2 AS col0, + col2 FROM tab0
----
10
10
47
47
99
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4748
SELECT DISTINCT CAST( + col2 AS SIGNED ) * - col1 FROM tab0
----
-210
-3807
-99

skipif mysql # not compatible
query I rowsort label-4748
SELECT DISTINCT CAST ( + col2 AS INTEGER ) * - col1 FROM tab0
----
-210
-3807
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4749
SELECT - SUM( ALL col0 ) DIV - 43 + - - 79 AS col0 FROM tab2 cor0
----
83

skipif mysql # not compatible
query I rowsort label-4749
SELECT - SUM ( ALL col0 ) / - 43 + - - 79 AS col0 FROM tab2 cor0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-4750
SELECT + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT ( + 14 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4750
SELECT + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT ( + 14 ) IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col0, col0 * + ( + - col2 ) AS col0 FROM tab1
----
59
-5015
68
-6188
96
-4896

query II rowsort
SELECT col2, + col2 * + + 87 * + + 7 - - + 55 FROM tab2
----
23
14062
40
24415
58
35377

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 col0, + 24 FROM tab2
----
-46
24
-64
24
-75
24

query I rowsort
SELECT 65 * col0 * col0 FROM tab1
----
169065
469625
538265

onlyif mysql # aggregate syntax: 
query I rowsort label-4755
SELECT ALL - MAX( ALL - 72 ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4755
SELECT ALL - MAX ( ALL - 72 ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4756
SELECT 76 * COUNT( + col1 ) AS col1 FROM tab0 AS cor0
----
228

skipif mysql # not compatible
query I rowsort label-4756
SELECT 76 * COUNT ( + col1 ) AS col1 FROM tab0 AS cor0
----
228

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 11 + - - 41 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL col0, + col2 * - + ( - col1 ) AS col1 FROM tab2 cor0
----
46
1173
64
3080
75
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-4759
SELECT COUNT( DISTINCT 4 ) AS col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4759
SELECT COUNT ( DISTINCT 4 ) AS col0 FROM tab0 AS cor0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4760
SELECT DISTINCT - 27 DIV + 26 AS col1 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4760
SELECT DISTINCT - 27 / + 26 AS col1 FROM tab0 AS cor0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4761
SELECT + col2 + 1 + - col0 DIV + 10 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
3
47
91

skipif mysql # not compatible
query I rowsort label-4761
SELECT + col2 + 1 + - col0 / + 10 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
3
47
91

onlyif mysql # DIV for integer division: 
query I rowsort label-4762
SELECT ALL + + col1 DIV 1 AS col0 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-4762
SELECT ALL + + col1 / 1 AS col0 FROM tab2 AS cor0
----
51
67
77

onlyif mysql # aggregate syntax: 
query II rowsort label-4763
SELECT DISTINCT COUNT( ALL - col2 ) col2, - COUNT( * ) AS col0 FROM tab2 AS cor0
----
3
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4763
SELECT DISTINCT COUNT ( ALL - col2 ) col2, - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
3
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-4764
SELECT ALL - col0 * 54 DIV ( - 42 ), col1 FROM tab2 AS cor0
----
59
51
82
77
96
67

skipif mysql # not compatible
query II rowsort label-4764
SELECT ALL - col0 * 54 / ( - 42 ), col1 FROM tab2 AS cor0
----
59
51
82
77
96
67

query I rowsort
SELECT - 24 * - + col2 * - col1 + + - col2 AS col2 FROM tab1
----
-32352
-7139
-76772

query I rowsort
SELECT + col2 * + col2 + ( + col2 ) FROM tab1
----
3540
4692
9312

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4767
SELECT + 80 + 54 AS col0, - col2 - + - col2 - + - col0 / + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab2
----
134
NULL
134
NULL
134
NULL

skipif mysql # not compatible
query II rowsort label-4767
SELECT + 80 + 54 AS col0, - col2 - + - col2 - + - col0 / + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab2
----
134
NULL
134
NULL
134
NULL

query I rowsort
SELECT - 28 + - + ( + - col0 ) * + col2 FROM tab0
----
677
842
9575

onlyif mysql # aggregate syntax: 
query I rowsort label-4769
SELECT COUNT( ALL + 91 ) + + + 33 FROM tab2
----
36

skipif mysql # not compatible
query I rowsort label-4769
SELECT COUNT ( ALL + 91 ) + + + 33 FROM tab2
----
36

query II rowsort
SELECT DISTINCT col0 * + 87, col1 FROM tab1
----
4437
14
7395
5
7917
47

query I rowsort
SELECT + 26 + 73 FROM tab2
----
99
99
99

query I rowsort
SELECT + 7 * + + col0 + col2 AS col2 FROM tab1
----
453
654
705

onlyif mysql # aggregate syntax: 
query II rowsort label-4773
SELECT - COUNT( * ) * + - COUNT( * ), 60 AS col0 FROM tab2
----
9
60

skipif mysql # not compatible
query II rowsort label-4773
SELECT - COUNT ( * ) * + - COUNT ( * ), 60 AS col0 FROM tab2
----
9
60

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE - col1 * + col2 * + col2 + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT - + ( + col1 ) AS col2, + col2 AS col1 FROM tab0 AS cor0
----
-1
99
-21
10
-81
47

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 / + 19 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE + 43 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT 34 AS col2, + ( 98 ) AS col1 FROM tab2
----
34
98
34
98
34
98

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN + 82 AND col1
----

query I rowsort
SELECT col0 - 89 AS col0 FROM tab0
----
-2
-74
8

query I rowsort
SELECT col1 - - - col0 AS col0 FROM tab1
----
-37
-44
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-4782
SELECT ALL - SUM( + 68 ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4782
SELECT ALL - SUM ( + 68 ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4783
SELECT 14 DIV - 29 + - col1 - ( + - col0 ) FROM tab1 cor0
----
37
44
80

skipif mysql # not compatible
query I rowsort label-4783
SELECT 14 / - 29 + - col1 - ( + - col0 ) FROM tab1 cor0
----
37
44
80

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab0 AS cor0 WHERE NOT 52 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col0 FROM tab0 AS cor0 WHERE col0 BETWEEN 6 * + col2 AND + 78
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4786
SELECT ALL - 76, + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-76
3

skipif mysql # not compatible
query II rowsort label-4786
SELECT ALL - 76, + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-76
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT ( 43 IS NULL ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + 49 AS col0, col0 FROM tab1 AS cor0
----
49
51
49
85
49
91

query I rowsort
SELECT ALL + - 60 + 6 + 12 * + col0 * + 31 * + 90 * col1 FROM tab2 AS cor0
----
164989386
168236946
78544026

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4790
SELECT 95 col2, CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
95
NULL
95
NULL
95
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4790
SELECT 95 col2, CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
95
NULL
95
NULL
95
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4791
SELECT DISTINCT - COUNT( * ) + + 57 + COUNT( * ) col1 FROM tab1 AS cor0
----
57

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4791
SELECT DISTINCT - COUNT ( * ) + + 57 + COUNT ( * ) col1 FROM tab1 AS cor0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-4792
SELECT + COUNT( + col1 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4792
SELECT + COUNT ( + col1 ) FROM tab0
----
3

query I rowsort
SELECT DISTINCT - ( - - 16 ) FROM tab1
----
-16

query I rowsort
SELECT DISTINCT ( + - col1 ) * - col2 AS col1 FROM tab2
----
1173
3080
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-4795
SELECT DISTINCT MIN( 41 ) AS col2 FROM tab1
----
41

skipif mysql # not compatible
query I rowsort label-4795
SELECT DISTINCT MIN ( 41 ) AS col2 FROM tab1
----
41

onlyif mysql # DIV for integer division: 
query I rowsort label-4796
SELECT DISTINCT + col0 DIV - 62 + - col0 AS col0 FROM tab2 AS cor0 WHERE NOT - col0 * + - col0 IS NULL
----
-46
-65
-76

skipif mysql # not compatible
query I rowsort label-4796
SELECT DISTINCT + col0 / - 62 + - col0 AS col0 FROM tab2 AS cor0 WHERE NOT - col0 * + - col0 IS NULL
----
-46
-65
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-4797
SELECT ALL - MAX( + col2 ) AS col0 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-4797
SELECT ALL - MAX ( + col2 ) AS col0 FROM tab0 AS cor0
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4798
SELECT - CAST( + - 35 AS SIGNED ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

skipif mysql # not compatible
query I rowsort label-4798
SELECT - CAST ( + - 35 AS INTEGER ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

onlyif mysql # aggregate syntax: 
query I rowsort label-4799
SELECT ALL - COUNT( * ) + - COUNT( * ) + 50 AS col1 FROM tab1
----
44

skipif mysql # not compatible
query I rowsort label-4799
SELECT ALL - COUNT ( * ) + - COUNT ( * ) + 50 AS col1 FROM tab1
----
44

query I rowsort
SELECT - 98 * + 5 FROM tab1 AS cor0
----
-490
-490
-490

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col2 NOT BETWEEN NULL AND - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4802
SELECT DISTINCT CAST( NULL AS SIGNED ) + - 97 col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4802
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - 97 col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4803
SELECT ALL - COUNT( * ) AS col1 FROM tab0 cor0 WHERE NOT NULL >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-4803
SELECT ALL - COUNT ( * ) AS col1 FROM tab0 cor0 WHERE NOT NULL >= NULL
----
0

query I rowsort
SELECT DISTINCT + + 25 * col2 FROM tab0 AS cor0
----
1175
2475
250

query I rowsort
SELECT DISTINCT col1 + - + col2 * - col0 AS col0 FROM tab1
----
4910
5020
6235

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + ( + - col0 ) <> NULL
----

query I rowsort
SELECT + col2 * - 68 AS col1 FROM tab1
----
-4012
-4624
-6528

onlyif mysql # aggregate syntax: 
query I rowsort label-4808
SELECT COUNT( * ) FROM tab1 WHERE col2 IN ( - col1 + - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-4808
SELECT COUNT ( * ) FROM tab1 WHERE col2 IN ( - col1 + - col2 )
----
0

query I rowsort
SELECT - col1 + - 51 FROM tab2
----
-102
-118
-128

onlyif mysql # aggregate syntax: 
query II rowsort label-4810
SELECT DISTINCT - COUNT( * ), 91 col0 FROM tab2
----
-3
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4810
SELECT DISTINCT - COUNT ( * ), 91 col0 FROM tab2
----
-3
91

query I rowsort
SELECT + ( + col2 ) + col2 + col2 * + - col0 * + col2 FROM tab0
----
-33041
-8680
-950499

query I rowsort
SELECT DISTINCT + 96 + + ( ( + col0 ) ) + - col0 AS col1 FROM tab1 AS cor0
----
96

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 54 <> NULL
----

query I rowsort
SELECT + 67 * col2 + + col2 + + 12 FROM tab0 AS cor0
----
3208
6744
692

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4815
SELECT 59 + - col2 AS col1, + col1 * + 28 * - CAST( NULL AS SIGNED ) + + 77 + + col0 AS col2 FROM tab2 AS cor0
----
1
NULL
19
NULL
36
NULL

skipif mysql # not compatible
query II rowsort label-4815
SELECT 59 + - col2 AS col1, + col1 * + 28 * - CAST ( NULL AS INTEGER ) + + 77 + + col0 AS col2 FROM tab2 AS cor0
----
1
NULL
19
NULL
36
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4816
SELECT DISTINCT 8 + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-4816
SELECT DISTINCT 8 + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
5

query I rowsort
SELECT DISTINCT col1 + - 71 + + 26 FROM tab2 AS cor0
----
22
32
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4818
SELECT DISTINCT 14 - MIN( DISTINCT ( - 54 ) ) FROM tab1 cor0
----
68

skipif mysql # not compatible
query I rowsort label-4818
SELECT DISTINCT 14 - MIN ( DISTINCT ( - 54 ) ) FROM tab1 cor0
----
68

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4819
SELECT ALL col0 DIV CAST( col2 AS SIGNED ) AS col0 FROM tab0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-4819
SELECT ALL col0 / CAST ( col2 AS INTEGER ) AS col0 FROM tab0
----
0
0
8

query I rowsort
SELECT col0 AS col0 FROM tab0 WHERE + ( + 68 ) / - 33 + - - 45 > + col0
----
15

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4821
SELECT ALL - CAST( NULL AS DECIMAL ) - - + col1 - + col0 + - col1 * - col2 * col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4821
SELECT ALL - CAST ( NULL AS REAL ) - - + col1 - + col0 + - col1 * - col2 * col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4822
SELECT DISTINCT + col2 * - - CAST( 78 AS SIGNED ) FROM tab1 AS cor0
----
4602
5304
7488

skipif mysql # not compatible
query I rowsort label-4822
SELECT DISTINCT + col2 * - - CAST ( 78 AS INTEGER ) FROM tab1 AS cor0
----
4602
5304
7488

onlyif mysql # aggregate syntax: 
query I rowsort label-4823
SELECT SUM( - - 57 ) FROM tab0
----
171

skipif mysql # not compatible
query I rowsort label-4823
SELECT SUM ( - - 57 ) FROM tab0
----
171

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT 16 IS NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col1 NOT BETWEEN NULL AND + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 85 col1 FROM tab2
----
85
85
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col0, + 60 AS col1 FROM tab0
----
-15
60
-87
60
-97
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 col2 FROM tab1 AS cor0 WHERE NOT col2 + + - col2 + - col0 IS NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4829
SELECT ALL - COUNT( * ) * - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
9

skipif mysql # not compatible
query I rowsort label-4829
SELECT ALL - COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4830
SELECT ALL + MIN( + col1 ) AS col2 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-4830
SELECT ALL + MIN ( + col1 ) AS col2 FROM tab1 AS cor0
----
5

query I rowsort
SELECT ALL col2 + - col1 * col2 FROM tab0
----
-200
-3760
0

query I rowsort
SELECT ALL 22 * - col1 + + col1 FROM tab0
----
-1701
-21
-441

onlyif mysql # aggregate syntax: 
query I rowsort label-4833
SELECT ALL - SUM( col0 ) AS col0 FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-4833
SELECT ALL - SUM ( col0 ) AS col0 FROM tab1
----
-227

onlyif mysql # aggregate syntax: 
query I rowsort label-4834
SELECT ALL COUNT( * ) AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4834
SELECT ALL COUNT ( * ) AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
3

query I rowsort
SELECT DISTINCT col1 * ( col2 * col2 ) FROM tab2 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL <> - 27
----

query I rowsort
SELECT DISTINCT 93 * - 10 AS col0 FROM tab1
----
-930

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL BETWEEN NULL AND ( - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 91 - col0 col0 FROM tab1 WHERE NOT ( col1 ) IN ( + col0 )
----
0
40
6

query I rowsort
SELECT col2 AS col1 FROM tab1 WHERE NOT NULL BETWEEN col0 AND NULL
----

query I rowsort
SELECT ( col0 ) * 91 AS col0 FROM tab2
----
4186
5824
6825

query III rowsort
SELECT * FROM tab2 WHERE NOT 49 / col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - 50 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + 13 AS col0 FROM tab1 WHERE - col0 + - 66 * col0 > col1
----

query III rowsort
SELECT ALL * FROM tab0 WHERE col2 * col1 NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4846
SELECT - CAST( NULL AS SIGNED ) AS col0 FROM tab0 WHERE + col0 + 3 IS NULL
----

skipif mysql # not compatible
query I rowsort label-4846
SELECT - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 WHERE + col0 + 3 IS NULL
----

query I rowsort
SELECT DISTINCT 80 * col0 FROM tab0
----
1200
6960
7760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col2 col2 FROM tab2
----
-1173
-3080
-3886

onlyif mysql # aggregate syntax: 
query I rowsort label-4849
SELECT - 86 * + COUNT( DISTINCT 62 * ( col1 ) ) FROM tab1
----
-258

skipif mysql # not compatible
query I rowsort label-4849
SELECT - 86 * + COUNT ( DISTINCT 62 * ( col1 ) ) FROM tab1
----
-258

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + col0 col0 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4851
SELECT ALL - SUM( ALL 72 ) col1 FROM tab1
----
-216

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4851
SELECT ALL - SUM ( ALL 72 ) col1 FROM tab1
----
-216

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4852
SELECT DISTINCT + col0 + col0 FROM tab1 WHERE NOT col2 + - CAST( + col2 AS SIGNED ) >= - 25
----

skipif mysql # not compatible
query I rowsort label-4852
SELECT DISTINCT + col0 + col0 FROM tab1 WHERE NOT col2 + - CAST ( + col2 AS INTEGER ) >= - 25
----

query I rowsort
SELECT DISTINCT - ( 11 ) * - col0 FROM tab0 AS cor0 WHERE - 93 IS NOT NULL
----
1067
165
957

onlyif mysql # aggregate syntax: 
query I rowsort label-4854
SELECT COUNT( * ) - COUNT( * ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4854
SELECT COUNT ( * ) - COUNT ( * ) FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4855
SELECT DISTINCT col1 - CAST( + 2 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
49
65
75

skipif mysql # not compatible
query I rowsort label-4855
SELECT DISTINCT col1 - CAST ( + 2 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
49
65
75

query I rowsort
SELECT + 21 - + col0 FROM tab1
----
-30
-64
-70

query I rowsort
SELECT 76 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 WHERE NOT ( NULL ) IS NOT NULL
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

query I rowsort
SELECT DISTINCT - col1 * 16 - col1 AS col1 FROM tab1
----
-238
-799
-85

query III rowsort
SELECT * FROM tab2 WHERE 68 NOT IN ( - 42 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 39 - 56 * - col0 AS col0 FROM tab0
----
4911
5471
879

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4861
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4861
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4862
SELECT 42 + - CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0 WHERE NOT NULL > NULL
----

skipif mysql # not compatible
query I rowsort label-4862
SELECT 42 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0 WHERE NOT NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4863
SELECT + - COUNT( * ) * + 5 AS col0 FROM tab1 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-4863
SELECT + - COUNT ( * ) * + 5 AS col0 FROM tab1 AS cor0
----
-15

query I rowsort
SELECT DISTINCT - col1 * - 21 FROM tab1 AS cor0
----
105
294
987

onlyif mysql # aggregate syntax: 
query I rowsort label-4865
SELECT DISTINCT COUNT( * ) * + MIN( ALL col1 + + 78 * + 0 ) AS col0 FROM tab2 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-4865
SELECT DISTINCT COUNT ( * ) * + MIN ( ALL col1 + + 78 * + 0 ) AS col0 FROM tab2 AS cor0
----
153

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4866
SELECT + CAST( + ( col2 ) AS SIGNED ) * + col2 FROM tab0 AS cor0
----
100
2209
9801

skipif mysql # not compatible
query I rowsort label-4866
SELECT + CAST ( + ( col2 ) AS INTEGER ) * + col2 FROM tab0 AS cor0
----
100
2209
9801

query I rowsort
SELECT DISTINCT 9 + + 34 * + col2 FROM tab2 AS cor0 WHERE NOT - col1 * col1 >= + col2 / col2
----
1369
1981
791

onlyif mysql # DIV for integer division: 
query I rowsort label-4868
SELECT - + 5 DIV + col1 AS col0 FROM tab0 AS cor0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-4868
SELECT - + 5 / + col1 AS col0 FROM tab0 AS cor0
----
-5
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4869
SELECT + COUNT( * ) * - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4869
SELECT + COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4870
SELECT + COUNT( * ) * COUNT( * ) col0 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4870
SELECT + COUNT ( * ) * COUNT ( * ) col0 FROM tab0 AS cor0
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 0 col1 FROM tab1 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4872
SELECT - + COUNT( ALL - col2 ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4872
SELECT - + COUNT ( ALL - col2 ) FROM tab0 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4873
SELECT ALL MIN( + - 19 ) AS col0 FROM tab2
----
-19

skipif mysql # not compatible
query I rowsort label-4873
SELECT ALL MIN ( + - 19 ) AS col0 FROM tab2
----
-19

query I rowsort
SELECT 35 + + 98 FROM tab1 WHERE NOT NULL NOT IN ( col0 * + col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4875
SELECT ALL + 43 DIV - col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4875
SELECT ALL + 43 / - col0 FROM tab2
----
0
0
0

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + 83 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4877
SELECT DISTINCT COUNT( + 85 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4877
SELECT DISTINCT COUNT ( + 85 ) FROM tab2
----
3

query I rowsort
SELECT DISTINCT + 4 * - - col0 FROM tab0
----
348
388
60

query I rowsort
SELECT + + 81 * - - 13 AS col2 FROM tab1 cor0
----
1053
1053
1053

query I rowsort
SELECT + 25 * - col0 AS col0 FROM tab2
----
-1150
-1600
-1875

query I rowsort
SELECT DISTINCT 5 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
5

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab2 WHERE NOT - col0 + 28 IS NULL
----
-51
-67
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 7 col1, ( + col1 ) * col0 + - ( - 72 ) FROM tab1 AS cor0
----
7
4349
7
497
7
786

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <> 19
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4885
SELECT COUNT( + col0 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4885
SELECT COUNT ( + col0 ) AS col0 FROM tab2 AS cor0
----
3

query I rowsort
SELECT ( - + 52 ) FROM tab0 AS cor0
----
-52
-52
-52

query II rowsort
SELECT DISTINCT - + col0, col1 FROM tab0 AS cor0
----
-15
81
-87
21
-97
1

onlyif mysql # DIV for integer division: 
query II rowsort label-4888
SELECT col0, - col1 DIV - col1 AS col2 FROM tab0 AS cor0
----
15
1
87
1
97
1

skipif mysql # not compatible
query II rowsort label-4888
SELECT col0, - col1 / - col1 AS col2 FROM tab0 AS cor0
----
15
1
87
1
97
1

query II rowsort
SELECT col2 AS col1, col0 + + col2 FROM tab0 cor0
----
10
97
47
62
99
196

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 63 col2 FROM tab1 AS cor0
----
63
63
63

onlyif mysql # aggregate syntax: 
query I rowsort label-4891
SELECT + COUNT( DISTINCT + - col0 ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4891
SELECT + COUNT ( DISTINCT + - col0 ) FROM tab0 cor0
----
3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 34 IN ( - 70 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT - - col0 AS col2, - col2 * - col1 AS col1 FROM tab0 AS cor0
----
15
3807
87
210
97
99

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 17 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4895
SELECT * FROM tab2 cor0 WHERE NULL NOT IN ( + col2 + + ( CAST( NULL AS SIGNED ) ) + 30 )
----

skipif mysql # not compatible
query III rowsort label-4895
SELECT * FROM tab2 cor0 WHERE NULL NOT IN ( + col2 + + ( CAST ( NULL AS INTEGER ) ) + 30 )
----

query I rowsort
SELECT ALL col2 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT col1 AS col0 FROM tab1 WHERE - ( + col0 ) + + col2 / col1 IS NOT NULL
----
14
47
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4898
SELECT CAST( + + COUNT( * ) AS SIGNED ) + - - 3 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-4898
SELECT CAST ( + + COUNT ( * ) AS INTEGER ) + - - 3 FROM tab2
----
6

query I rowsort
SELECT DISTINCT col1 * - + ( + + 60 ) AS col2 FROM tab1
----
-2820
-300
-840

query II rowsort
SELECT - + col2 + - col0, + col1 FROM tab1 AS cor0
----
-144
5
-147
14
-159
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4901
SELECT + MAX( DISTINCT col0 ) + COUNT( * ) - + 86 * - COUNT( * ) FROM tab2 cor0
----
336

skipif mysql # not compatible
query I rowsort label-4901
SELECT + MAX ( DISTINCT col0 ) + COUNT ( * ) - + 86 * - COUNT ( * ) FROM tab2 cor0
----
336

query I rowsort
SELECT - - ( - col2 ) AS col0 FROM tab2 AS cor0
----
-23
-40
-58

query I rowsort
SELECT DISTINCT + + 11 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4904
SELECT ALL 81 * - CAST( + 15 AS SIGNED ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8dcc4f42ffaf6d6e76b05f04b624109a

skipif mysql # not compatible
query I rowsort label-4904
SELECT ALL 81 * - CAST ( + 15 AS INTEGER ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8dcc4f42ffaf6d6e76b05f04b624109a

onlyif mysql # aggregate syntax: 
query I rowsort label-4905
SELECT DISTINCT ( COUNT( * ) ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4905
SELECT DISTINCT ( COUNT ( * ) ) AS col2 FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4906
SELECT ALL * FROM tab0 WHERE + col2 + 10 + - col1 * - col2 * - col0 NOT BETWEEN col2 AND col0 + CAST( NULL AS SIGNED ) * - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4906
SELECT ALL * FROM tab0 WHERE + col2 + 10 + - col1 * - col2 * - col0 NOT BETWEEN col2 AND col0 + CAST ( NULL AS INTEGER ) * - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col2 * - 70 AS col1 FROM tab0 AS cor0
----
3290
6930
700

onlyif mysql # DIV for integer division: 
query I rowsort label-4908
SELECT DISTINCT ( + + col1 ) DIV - - col1 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4908
SELECT DISTINCT ( + + col1 ) / - - col1 FROM tab1 AS cor0
----
1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 99 NOT BETWEEN + 20 + + ( + + col0 ) + + col1 / ( - col2 ) AND - 18 + + col0
----

query I rowsort
SELECT + 38 * - - col0 + - 49 FROM tab0 AS cor0
----
3257
3637
521

query I rowsort
SELECT ALL col1 FROM tab1 AS cor0 WHERE 26 IS NOT NULL
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-4912
SELECT ALL * FROM tab0 AS cor0 WHERE NOT CAST( NULL AS DECIMAL ) * + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-4912
SELECT ALL * FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS REAL ) * + CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT - col1 * - ( + col1 ) * - + col0 + + col1 AS col1 FROM tab0 AS cor0
----
-38346
-96
-98334

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4914
SELECT DISTINCT COUNT( * ) DIV - - 93 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4914
SELECT DISTINCT COUNT ( * ) / - - 93 FROM tab1 AS cor0
----
0

query II rowsort
SELECT DISTINCT - col1 AS col2, - 96 AS col1 FROM tab0 cor0
----
-1
-96
-21
-96
-81
-96

query I rowsort
SELECT ALL + 11 * + - col0 + col1 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( 52 ) AND NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( NULL ) BETWEEN NULL AND ( - col0 + - col1 * - - col0 * col2 )
----

query I rowsort
SELECT DISTINCT + col1 + - col1 AS col0 FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col0 / col1 * col0 - - 11 )
----

query II rowsort
SELECT ALL - + 29, - col0 * + 89 AS col1 FROM tab1 cor0
----
-29
-4539
-29
-7565
-29
-8099

query III rowsort
SELECT ALL col0 AS col2, - col0 + col2 + - col0 AS col0, - 80 FROM tab1
----
9 values hashing to d1e76121e7c23ad20b42e6501719f6ee

query I rowsort
SELECT 1 * + col2 * - 64 FROM tab1
----
-3776
-4352
-6144

onlyif mysql # aggregate syntax: 
query I rowsort label-4923
SELECT + MIN( DISTINCT + col2 ) FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-4923
SELECT + MIN ( DISTINCT + col2 ) FROM tab2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-4924
SELECT - MIN( - col1 ) * - 73 AS col2 FROM tab2
----
-5621

skipif mysql # not compatible
query I rowsort label-4924
SELECT - MIN ( - col1 ) * - 73 AS col2 FROM tab2
----
-5621

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 + - col0 <> - 35 + - - col2
----

query II rowsort
SELECT - 16 AS col2, 49 AS col2 FROM tab1 AS cor0
----
-16
49
-16
49
-16
49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 IN ( col2 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4928
SELECT ALL col2 DIV + col0 + - col2 + + - col1, col2 FROM tab2 AS cor0
----
-117
40
-125
58
-74
23

skipif mysql # not compatible
query II rowsort label-4928
SELECT ALL col2 / + col0 + - col2 + + - col1, col2 FROM tab2 AS cor0
----
-117
40
-125
58
-74
23

onlyif mysql # aggregate syntax: 
query I rowsort label-4929
SELECT DISTINCT - + COUNT( ALL + col1 ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4929
SELECT DISTINCT - + COUNT ( ALL + col1 ) AS col0 FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4930
SELECT DISTINCT COUNT( + CAST( - col2 AS SIGNED ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4930
SELECT DISTINCT COUNT ( + CAST ( - col2 AS INTEGER ) ) FROM tab2
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 32 col0 FROM tab1 AS cor0
----
-32
-32
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-4932
SELECT DISTINCT MIN( DISTINCT + - ( - col0 ) ) + + ( 8 ) FROM tab0 cor0
----
23

skipif mysql # not compatible
query I rowsort label-4932
SELECT DISTINCT MIN ( DISTINCT + - ( - col0 ) ) + + ( 8 ) FROM tab0 cor0
----
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 col0 FROM tab2 AS cor0 WHERE ( col0 * - col1 ) IS NOT NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4934
SELECT DISTINCT COUNT( * ) * 62 AS col1 FROM tab1 AS cor0 WHERE col0 + 20 + - col0 = ( ( 59 ) )
----
0

skipif mysql # not compatible
query I rowsort label-4934
SELECT DISTINCT COUNT ( * ) * 62 AS col1 FROM tab1 AS cor0 WHERE col0 + 20 + - col0 = ( ( 59 ) )
----
0

query I rowsort
SELECT ALL + ( + 75 ) - + 15 + + col2 AS col1 FROM tab0 AS cor0
----
107
159
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4936
SELECT col1 + + col0 + - CAST( NULL AS SIGNED ) * + + 21 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4936
SELECT col1 + + col0 + - CAST ( NULL AS INTEGER ) * + + 21 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 / - col1 + 78 FROM tab2 WHERE col0 * col0 IS NULL
----

query I rowsort
SELECT ALL - 70 FROM tab1 WHERE NOT - + col0 + - col2 BETWEEN NULL AND col2
----

query II rowsort
SELECT DISTINCT 19 AS col1, ( + col1 ) FROM tab1 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT + col0 AS col2, - 75 + + - col0 AS col0 FROM tab2
----
46
-121
64
-139
75
-150

query I rowsort
SELECT + 40 * + + col2 * + 33 AS col1 FROM tab1
----
126720
77880
89760

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4942
SELECT DISTINCT * FROM tab0 WHERE NOT + col2 BETWEEN - + col0 + + - CAST( - - col2 AS SIGNED ) AND + col1 / col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4942
SELECT DISTINCT * FROM tab0 WHERE NOT + col2 BETWEEN - + col0 + + - CAST ( - - col2 AS INTEGER ) AND + col1 / col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4943
SELECT * FROM tab2 AS cor0 WHERE NULL IN ( - CAST( NULL AS SIGNED ) * + col0, + col2, 43 )
----

skipif mysql # not compatible
query III rowsort label-4943
SELECT * FROM tab2 AS cor0 WHERE NULL IN ( - CAST ( NULL AS INTEGER ) * + col0, + col2, 43 )
----

query I rowsort
SELECT DISTINCT 66 + + col0 * - col2 * - col0 + 62 FROM tab0 AS cor0
----
10703
75818
931619

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - ( 78 ) * - - 96 + + col0 + + - col2 + + + 92 * - - col2 + - col1 ) >= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4946
SELECT ALL + CAST( - + col1 AS SIGNED ) col2, col1 - col0 FROM tab2
----
-51
5
-67
-8
-77
13

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4946
SELECT ALL + CAST ( - + col1 AS INTEGER ) col2, col1 - col0 FROM tab2
----
-51
5
-67
-8
-77
13

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE + 15 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4948
SELECT - MAX( + - 43 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
43

skipif mysql # not compatible
query I rowsort label-4948
SELECT - MAX ( + - 43 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
43

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4949
SELECT ALL col1 * + CAST( NULL AS DECIMAL ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4949
SELECT ALL col1 * + CAST ( NULL AS REAL ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - - col1 * + 68 * + + col2 FROM tab0 AS cor0
----
14280
258876
6732

onlyif mysql # DIV for integer division: 
query II rowsort label-4951
SELECT DISTINCT + 20 DIV + col1, col2 + - - col0 col1 FROM tab0 AS cor0
----
0
62
0
97
20
196

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4951
SELECT DISTINCT + 20 / + col1, col2 + - - col0 col1 FROM tab0 AS cor0
----
0
62
0
97
20
196

onlyif mysql # aggregate syntax: 
query I rowsort label-4952
SELECT - SUM( - - col1 ) * + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
309

skipif mysql # not compatible
query I rowsort label-4952
SELECT - SUM ( - - col1 ) * + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
309

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4953
SELECT DISTINCT - 51 DIV + COUNT( * ) + 48 FROM tab0 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-4953
SELECT DISTINCT - 51 / + COUNT ( * ) + 48 FROM tab0 AS cor0
----
31

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 + - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 79 * col2 * - 98 + + col1 AS col2 FROM tab2 AS cor0
----
-178015
-309603
-448969

onlyif mysql # aggregate syntax: 
query I rowsort label-4956
SELECT ALL - MIN( - - col2 ) AS col0 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-4956
SELECT ALL - MIN ( - - col2 ) AS col0 FROM tab0 AS cor0
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4957
SELECT col0 * + col2, + CAST( NULL AS SIGNED ) * - col1 AS col0 FROM tab2 AS cor0
----
1058
NULL
2560
NULL
4350
NULL

skipif mysql # not compatible
query II rowsort label-4957
SELECT col0 * + col2, + CAST ( NULL AS INTEGER ) * - col1 AS col0 FROM tab2 AS cor0
----
1058
NULL
2560
NULL
4350
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4958
SELECT - - col1 DIV - col0 + - - col0 * + col2 col0, - col1 AS col2 FROM tab2 cor0
----
1057
-51
2559
-77
4350
-67

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4958
SELECT - - col1 / - col0 + - - col0 * + col2 col0, - col1 AS col2 FROM tab2 cor0
----
1057
-51
2559
-77
4350
-67

query I rowsort
SELECT ALL + + 93 AS col1 FROM tab0 AS cor0
----
93
93
93

query I rowsort
SELECT 78 * 36 * + 2 AS col1 FROM tab1 AS cor0
----
5616
5616
5616

query I rowsort
SELECT DISTINCT 46 * col2 FROM tab2
----
1058
1840
2668

query I rowsort
SELECT ALL ( 82 ) AS col2 FROM tab0
----
82
82
82

query I rowsort
SELECT DISTINCT + ( 22 ) AS col0 FROM tab2
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-4964
SELECT - + COUNT( * ) + - + 69 FROM tab1 WHERE NOT + - col0 >= NULL
----
-69

skipif mysql # not compatible
query I rowsort label-4964
SELECT - + COUNT ( * ) + - + 69 FROM tab1 WHERE NOT + - col0 >= NULL
----
-69

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col1 + + col2 = + col1 * - + col1 + - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col2 AS col0 FROM tab0 WHERE - 70 / - col0 <> ( col2 )
----
10
47
99

onlyif mysql # aggregate syntax: 
query II rowsort label-4967
SELECT 93 AS col0, COUNT( * ) AS col2 FROM tab0
----
93
3

skipif mysql # not compatible
query II rowsort label-4967
SELECT 93 AS col0, COUNT ( * ) AS col2 FROM tab0
----
93
3

query I rowsort
SELECT ALL 46 * 12 AS col1 FROM tab2
----
552
552
552

onlyif mysql # aggregate syntax: 
query I rowsort label-4969
SELECT - MAX( ALL - - 62 ) FROM tab1
----
-62

skipif mysql # not compatible
query I rowsort label-4969
SELECT - MAX ( ALL - - 62 ) FROM tab1
----
-62

query I rowsort
SELECT DISTINCT + + 96 + - + col0 FROM tab1 cor0
----
11
45
5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4971
SELECT * FROM tab2 WHERE ( NULL ) BETWEEN - CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-4971
SELECT * FROM tab2 WHERE ( NULL ) BETWEEN - CAST ( NULL AS INTEGER ) AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4972
SELECT ALL + COUNT( * ) col0, ( - 95 ) FROM tab0 AS cor0
----
3
-95

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4972
SELECT ALL + COUNT ( * ) col0, ( - 95 ) FROM tab0 AS cor0
----
3
-95

onlyif mysql # aggregate syntax: 
query II rowsort label-4973
SELECT - 58 AS col0, - COUNT( * ) * 64 * + 51 FROM tab1 AS cor0
----
-58
-9792

skipif mysql # not compatible
query II rowsort label-4973
SELECT - 58 AS col0, - COUNT ( * ) * 64 * + 51 FROM tab1 AS cor0
----
-58
-9792

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 * + col1 + - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-4975
SELECT - - col2 DIV - + 48 col2 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4975
SELECT - - col2 / - + 48 col2 FROM tab2 AS cor0
----
-1
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4976
SELECT DISTINCT 59 * + ( - CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0 WHERE ( 21 ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-4976
SELECT DISTINCT 59 * + ( - CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0 WHERE ( 21 ) IS NULL
----

query I rowsort
SELECT + - 53 AS col2 FROM tab2 cor0
----
-53
-53
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-4978
SELECT + + col0 DIV + + col2 AS col0 FROM tab0 AS cor0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-4978
SELECT + + col0 / + + col2 AS col0 FROM tab0 AS cor0
----
0
0
8

onlyif mysql # DIV for integer division: 
query I rowsort label-4979
SELECT - col0 DIV + - col1 AS col0 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4979
SELECT - col0 / + - col1 AS col0 FROM tab2 AS cor0
----
0
0
1

query I rowsort
SELECT + + col0 FROM tab1 AS cor0 WHERE 65 = + ( - 94 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4981
SELECT - + 59 - + COUNT( * ) FROM tab1 AS cor0
----
-62

skipif mysql # not compatible
query I rowsort label-4981
SELECT - + 59 - + COUNT ( * ) FROM tab1 AS cor0
----
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4982
SELECT DISTINCT + + CAST( - 13 AS SIGNED ) + + col1 FROM tab0 AS cor0
----
-12
68
8

skipif mysql # not compatible
query I rowsort label-4982
SELECT DISTINCT + + CAST ( - 13 AS INTEGER ) + + col1 FROM tab0 AS cor0
----
-12
68
8

query I rowsort
SELECT - col1 AS col0 FROM tab1 WHERE col2 > NULL
----

query II rowsort
SELECT DISTINCT 57 * + 75, + col0 FROM tab2
----
4275
46
4275
64
4275
75

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + col2 <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL = ( - col1 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4987
SELECT ALL - COUNT( + col0 ) col0, 54 FROM tab0 cor0
----
-3
54

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4987
SELECT ALL - COUNT ( + col0 ) col0, 54 FROM tab0 cor0
----
-3
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + ( col0 ) col2 FROM tab2
----
-1058
-2560
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-4989
SELECT + COUNT( - + 64 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4989
SELECT + COUNT ( - + 64 ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4990
SELECT ALL MAX( + ( + col1 ) ) FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-4990
SELECT ALL MAX ( + ( + col1 ) ) FROM tab1 AS cor0
----
47

query I rowsort
SELECT ALL - 34 + - 75 AS col1 FROM tab2 AS cor0 WHERE NOT 85 IS NULL
----
-109
-109
-109

query II rowsort
SELECT DISTINCT 91, + col1 * 16 + col2 AS col1 FROM tab0 cor0
----
91
115
91
1343
91
346

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 * - col1 >= col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 / + 68 + col1 < + + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4995
SELECT * FROM tab1 WHERE NOT - - col0 * - CAST( NULL AS SIGNED ) / col2 + - col2 < col1 + - + col2
----

skipif mysql # not compatible
query III rowsort label-4995
SELECT * FROM tab1 WHERE NOT - - col0 * - CAST ( NULL AS INTEGER ) / col2 + - col2 < col1 + - + col2
----

query I rowsort
SELECT + col2 + - 6 FROM tab2
----
17
34
52

query I rowsort
SELECT 60 + - - 76 * - - col2 FROM tab2
----
1808
3100
4468

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4998
SELECT ALL CAST( NULL AS SIGNED ) / - + col1 * - 91 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4998
SELECT ALL CAST ( NULL AS INTEGER ) / - + col1 * - 91 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 + - - col1 AS col1 FROM tab2
----
141
142
97

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 68 <> NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5001
SELECT ALL CAST( - 27 AS SIGNED ) * - - COUNT( * ) FROM tab1
----
-81

skipif mysql # not compatible
query I rowsort label-5001
SELECT ALL CAST ( - 27 AS INTEGER ) * - - COUNT ( * ) FROM tab1
----
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-5002
SELECT ALL 30 * + 97 + + 94 DIV col1 + + col2 + col1 + + 71 FROM tab0
----
3016
3110
3175

skipif mysql # not compatible
query I rowsort label-5002
SELECT ALL 30 * + 97 + + 94 / col1 + + col2 + col1 + + 71 FROM tab0
----
3016
3110
3175

query I rowsort
SELECT - + 38 AS col1 FROM tab0 cor0
----
-38
-38
-38

query I rowsort
SELECT DISTINCT col1 + + 27 - + col2 FROM tab0 AS cor0
----
-71
38
61

query I rowsort
SELECT ALL 58 AS col0 FROM tab0 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT ALL 49 + + col1 AS col0 FROM tab0
----
130
50
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + + - ( + col1 ) col1 FROM tab0 AS cor0
----
-66
66
96

query I rowsort
SELECT ALL col2 FROM tab2 AS cor0 WHERE + 95 NOT IN ( + - 63 )
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5009
SELECT - + 5 + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-5009
SELECT - + 5 + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-2

query I rowsort
SELECT ALL + col0 + - ( col0 ) + - col2 + - col2 * - - col1 * + - col2 * 92 * + col2 FROM tab2 AS cor0
----
1202670310
453375960
57087541

onlyif mysql # DIV for integer division: 
query I rowsort label-5011
SELECT - 48 + + col2 + + col2 DIV - col2 FROM tab2 AS cor0
----
-26
-9
9

skipif mysql # not compatible
query I rowsort label-5011
SELECT - 48 + + col2 + + col2 / - col2 FROM tab2 AS cor0
----
-26
-9
9

query I rowsort
SELECT - col1 + - + ( - - 7 ) FROM tab1 AS cor0
----
-12
-21
-54

onlyif mysql # DIV for integer division: 
query II rowsort label-5013
SELECT - ( col2 ) DIV - col2 AS col1, - 84 AS col0 FROM tab0 cor0
----
1
-84
1
-84
1
-84

skipif mysql # not compatible
query II rowsort label-5013
SELECT - ( col2 ) / - col2 AS col1, - 84 AS col0 FROM tab0 cor0
----
1
-84
1
-84
1
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5014
SELECT - ( AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5014
SELECT - ( AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) ) FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT col0, ( + col0 ) AS col2 FROM tab0
----
15
15
87
87
97
97

query I rowsort
SELECT ALL col1 + - col0 - 78 AS col2 FROM tab0
----
-12
-144
-174

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5017
SELECT COUNT( * ) AS col0, CAST( - + MIN( DISTINCT + + 27 ) AS SIGNED ) AS col2 FROM tab2
----
3
-27

skipif mysql # not compatible
query II rowsort label-5017
SELECT COUNT ( * ) AS col0, CAST ( - + MIN ( DISTINCT + + 27 ) AS INTEGER ) AS col2 FROM tab2
----
3
-27

query III rowsort
SELECT * FROM tab2 WHERE + 73 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + col0 * + 76 AS col0, col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
1140
15
6612
87
7372
97

query I rowsort
SELECT + col2 * - 81 * - col0 FROM tab0 cor0
----
57105
70470
777843

query II rowsort
SELECT ALL - col2 AS col1, + col0 FROM tab1 AS cor0
----
-59
85
-68
91
-96
51

onlyif mysql # DIV for integer division: 
query I rowsort label-5022
SELECT DISTINCT + col1 DIV - 22 - 8 FROM tab1 AS cor0
----
-10
-8

skipif mysql # not compatible
query I rowsort label-5022
SELECT DISTINCT + col1 / - 22 - 8 FROM tab1 AS cor0
----
-10
-8

query II rowsort
SELECT ALL - ( col0 ) AS col1, 8 * + 95 FROM tab2 AS cor0
----
-46
760
-64
760
-75
760

onlyif mysql # aggregate syntax: 
query I rowsort label-5024
SELECT - SUM( 9 ) FROM tab2 cor0
----
-27

skipif mysql # not compatible
query I rowsort label-5024
SELECT - SUM ( 9 ) FROM tab2 cor0
----
-27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 82 + - + col0 col0 FROM tab1 AS cor0
----
-3
-9
31

query II rowsort
SELECT - col0 * + col0 AS col2, + 90 AS col0 FROM tab0 AS cor0
----
-225
90
-7569
90
-9409
90

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5028
SELECT ALL + - 57 + + col0 * 96 * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5028
SELECT ALL + - 57 + + col0 * 96 * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 * - 44 * - col1 * col2 * + - ( - 39 ) + + + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL col0 AS col0, col1 AS col0 FROM tab0
----
15
81
87
21
97
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5031
SELECT DISTINCT - COUNT( * ) + - + COUNT( * ) AS col0 FROM tab1
----
-6

skipif mysql # not compatible
query I rowsort label-5031
SELECT DISTINCT - COUNT ( * ) + - + COUNT ( * ) AS col0 FROM tab1
----
-6

query I rowsort
SELECT DISTINCT + 95 AS col2 FROM tab2 AS cor0 WHERE NULL = NULL
----

query I rowsort
SELECT DISTINCT - 48 + - 79 FROM tab2 AS cor0
----
-127

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5034
SELECT - ( - CAST( COUNT( + - col1 ) AS SIGNED ) ) + COUNT( * ) + + MIN( + - col1 ) AS col2 FROM tab0 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-5034
SELECT - ( - CAST ( COUNT ( + - col1 ) AS INTEGER ) ) + COUNT ( * ) + + MIN ( + - col1 ) AS col2 FROM tab0 AS cor0
----
-75

query I rowsort
SELECT + col2 * 95 AS col2 FROM tab2
----
2185
3800
5510

query I rowsort
SELECT ALL + 27 + + col1 FROM tab1 AS cor0
----
32
41
74

onlyif mysql # DIV for integer division: 
query I rowsort label-5037
SELECT col2 DIV + col2 - - - col1 AS col1 FROM tab2 AS cor0
----
-50
-66
-76

skipif mysql # not compatible
query I rowsort label-5037
SELECT col2 / + col2 - - - col1 AS col1 FROM tab2 AS cor0
----
-50
-66
-76

query I rowsort
SELECT DISTINCT + - 7 + - col1 FROM tab0 AS cor0
----
-28
-8
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-5039
SELECT ALL + ( COUNT( * ) ) * + + 62 FROM tab1 AS cor0
----
186

skipif mysql # not compatible
query I rowsort label-5039
SELECT ALL + ( COUNT ( * ) ) * + + 62 FROM tab1 AS cor0
----
186

query I rowsort
SELECT DISTINCT col2 * - + col2 AS col1 FROM tab0 AS cor0
----
-100
-2209
-9801

query I rowsort
SELECT ALL col1 + + ( + 74 ) FROM tab2 AS cor0
----
125
141
151

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 BETWEEN + - 84 AND + 28 * col1
----
15
81
47
87
21
10

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col2 <= + 9
----

query II rowsort
SELECT - + col2 - + col0, - col1 AS col2 FROM tab0 AS cor0
----
-196
-1
-62
-81
-97
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5045
SELECT + + col2 + - col2 * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5045
SELECT + + col2 + - col2 * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE + col0 * + + 49 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + + col1 col1 FROM tab1
----
1344
295
3196

query I rowsort
SELECT + 82 - + col0 + + ( - col2 ) AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-114
-15
20

query I rowsort
SELECT ( + - 1 ) FROM tab2
----
-1
-1
-1

query I rowsort
SELECT ( - 4 ) * + - 60 FROM tab1
----
240
240
240

query II rowsort
SELECT DISTINCT - 43 AS col1, - col2 AS col1 FROM tab2
----
-43
-23
-43
-40
-43
-58

query I rowsort
SELECT DISTINCT 77 * + + col0 FROM tab0
----
1155
6699
7469

query II rowsort
SELECT 61 * ( 71 ) AS col1, - col0 AS col1 FROM tab2
----
4331
-46
4331
-64
4331
-75

query I rowsort
SELECT + ( - 14 ) AS col2 FROM tab2
----
-14
-14
-14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 33 col0 FROM tab2 cor0
----
33
33
33

query I rowsort
SELECT + 89 * - 58 FROM tab0 AS cor0
----
-5162
-5162
-5162

onlyif mysql # DIV for integer division: 
query I rowsort label-5057
SELECT ALL + - 66 DIV 64 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5057
SELECT ALL + - 66 / 64 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ( ( + 64 ) ) FROM tab1 AS cor0
----
64
64
64

onlyif mysql # DIV for integer division: 
query I rowsort label-5059
SELECT ALL - - col2 DIV + ( - 92 ) FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5059
SELECT ALL - - col2 / + ( - 92 ) FROM tab0 AS cor0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5060
SELECT - MAX( + col2 ) FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-5060
SELECT - MAX ( + col2 ) FROM tab1
----
-96

query I rowsort
SELECT ALL - 52 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 9500afe5646d620d5e8943351a29d082

query II rowsort
SELECT + col2, 16 + col2 - - + col0 * + + col2 * 54 AS col1 FROM tab1 AS cor0
----
59
270885
68
334236
96
264496

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 8 col2 FROM tab2 AS cor0
----
-8

query II rowsort
SELECT ALL - col1 - - - 87 AS col2, - 32 + - col1 FROM tab1 AS cor0 WHERE NOT 79 >= NULL
----

query I rowsort
SELECT DISTINCT + + col2 + + - col1 * - + col0 FROM tab1 cor0
----
4345
484
810

query I rowsort
SELECT ALL ( + + 80 ) AS col1 FROM tab0 AS cor0
----
80
80
80

query I rowsort
SELECT + + col0 + - 8 AS col2 FROM tab1 cor0
----
43
77
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5068
SELECT COUNT( * ) + SUM( + CAST( NULL AS SIGNED ) ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5068
SELECT COUNT ( * ) + SUM ( + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2
----
NULL

query I rowsort
SELECT 78 * + col1 + col2 FROM tab1
----
1188
3734
449

onlyif mysql # aggregate syntax: 
query II rowsort label-5070
SELECT - COUNT( * ) + - - 2 AS col0, - COUNT( * ) + SUM( - 66 ) FROM tab2
----
-1
-201

skipif mysql # not compatible
query II rowsort label-5070
SELECT - COUNT ( * ) + - - 2 AS col0, - COUNT ( * ) + SUM ( - 66 ) FROM tab2
----
-1
-201

query I rowsort
SELECT + col2 FROM tab1 WHERE + col1 * + col1 IS NOT NULL
----
59
68
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 49 + + + col2, + 50 * - col2 col2 FROM tab0
----
-2
-2350
-39
-500
50
-4950

onlyif mysql # DIV for integer division: 
query I rowsort label-5073
SELECT + col2 + + - col0 + - col2 * - col2 - 99 DIV + ( + 71 ) FROM tab0
----
22
2240
9802

skipif mysql # not compatible
query I rowsort label-5073
SELECT + col2 + + - col0 + - col2 * - col2 - 99 / + ( + 71 ) FROM tab0
----
22
2240
9802

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5074
SELECT ALL CAST( 59 AS SIGNED ) col0, + 31 FROM tab1
----
59
31
59
31
59
31

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5074
SELECT ALL CAST ( 59 AS INTEGER ) col0, + 31 FROM tab1
----
59
31
59
31
59
31

query I rowsort
SELECT DISTINCT 34 AS col2 FROM tab2 WHERE NOT NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL col2 + + + col2 FROM tab0 AS cor0
----
198
20
94

query I rowsort
SELECT - 53 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to fee5c00ad71c23e23683a32c71fe6e7d

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5078
SELECT ALL + CAST( NULL AS SIGNED ) * + - 28 * - + CAST( col2 AS SIGNED ) + + 4 + - col2 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5078
SELECT ALL + CAST ( NULL AS INTEGER ) * + - 28 * - + CAST ( col2 AS INTEGER ) + + 4 + - col2 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5079
SELECT - SUM( DISTINCT - 42 ) * - - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE 72 + + - col0 * + 36 + col1 * + + col0 * + 3 < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5079
SELECT - SUM ( DISTINCT - 42 ) * - - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE 72 + + - col0 * + 36 + col1 * + + col0 * + 3 < NULL
----
NULL

query I rowsort
SELECT DISTINCT 4 * 84 FROM tab2 AS cor0
----
336

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 IN ( col1 * - + col2, col0 + + ( - 58 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5082
SELECT + COUNT( + col1 ) DIV + COUNT( * ) col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5082
SELECT + COUNT ( + col1 ) / + COUNT ( * ) col1 FROM tab0 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 5 col1 FROM tab2 AS cor0
----
5
5
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 82 * col2 col1 FROM tab2
----
1886
3280
4756

onlyif mysql # aggregate syntax: 
query I rowsort label-5085
SELECT ALL SUM( DISTINCT 30 ) FROM tab1
----
30

skipif mysql # not compatible
query I rowsort label-5085
SELECT ALL SUM ( DISTINCT 30 ) FROM tab1
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-5086
SELECT + COUNT( * ) AS col2 FROM tab0, tab1 cor0
----
9

skipif mysql # not compatible
query I rowsort label-5086
SELECT + COUNT ( * ) AS col2 FROM tab0, tab1 cor0
----
9

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col0 + + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-5088
SELECT + col0 * col1 * - col0 + - col2 + - col1 DIV + col0 FROM tab0 AS cor0
----
-158959
-18277
-9508

skipif mysql # not compatible
query I rowsort label-5088
SELECT + col0 * col1 * - col0 + - col2 + - col1 / + col0 FROM tab0 AS cor0
----
-158959
-18277
-9508

query I rowsort
SELECT DISTINCT - col0 * - + col1 FROM tab0 cor0
----
1215
1827
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5090
SELECT ALL - - ( - + SUM( - col2 ) ) FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-5090
SELECT ALL - - ( - + SUM ( - col2 ) ) FROM tab2 AS cor0
----
121

query I rowsort
SELECT - 28 * - col1 * + col0 FROM tab2 AS cor0
----
137984
140700
65688

onlyif mysql # aggregate syntax: 
query I rowsort label-5092
SELECT COUNT( ALL col2 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5092
SELECT COUNT ( ALL col2 ) AS col2 FROM tab1 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-5093
SELECT ALL + col1 + - 78 DIV + 60 AS col0 FROM tab1 cor0
----
13
4
46

skipif mysql # not compatible
query I rowsort label-5093
SELECT ALL + col1 + - 78 / + 60 AS col0 FROM tab1 cor0
----
13
4
46

query I rowsort
SELECT + ( 56 ) FROM tab0 AS cor0
----
56
56
56

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5095
SELECT ALL COUNT( * ) * - - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE CAST( - 76 AS DECIMAL ) NOT BETWEEN NULL AND - col0 * 71 * + col1 + 46 + - col1
----
9

skipif mysql # not compatible
query I rowsort label-5095
SELECT ALL COUNT ( * ) * - - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE CAST ( - 76 AS REAL ) NOT BETWEEN NULL AND - col0 * 71 * + col1 + 46 + - col1
----
9

query I rowsort
SELECT ALL + - col1 + - + col1 * - - col2 AS col0 FROM tab0 AS cor0
----
-100
-231
-3888

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5097
SELECT ALL CAST( NULL AS SIGNED ) + - 61 / - col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5097
SELECT ALL CAST ( NULL AS INTEGER ) + - 61 / - col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1, col0 + + - ( + 37 ) col2 FROM tab1 AS cor0
----
14
14
47
54
5
48

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col2 = - 51
----

query I rowsort
SELECT DISTINCT - + ( - - col0 ) AS col1 FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-5101
SELECT ALL + col1 + + col1 + + 3 + + - col0 DIV - + ( - - 53 ) + + - col1 DIV col1 AS col0 FROM tab2
----
104
137
157

skipif mysql # not compatible
query I rowsort label-5101
SELECT ALL + col1 + + col1 + + 3 + + - col0 / - + ( - - 53 ) + + - col1 / col1 AS col0 FROM tab2
----
104
137
157

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5102
SELECT ALL * FROM tab0 WHERE NOT NULL NOT BETWEEN - CAST( NULL AS SIGNED ) + - col2 AND - + col2
----

skipif mysql # not compatible
query III rowsort label-5102
SELECT ALL * FROM tab0 WHERE NOT NULL NOT BETWEEN - CAST ( NULL AS INTEGER ) + - col2 AND - + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5103
SELECT DISTINCT col0 + 59 - + - col2 + 37 DIV - - 92 * - - col1 AS col2 FROM tab1
----
203
206
218

skipif mysql # not compatible
query I rowsort label-5103
SELECT DISTINCT col0 + 59 - + - col2 + 37 / - - 92 * - - col1 AS col2 FROM tab1
----
203
206
218

query I rowsort
SELECT 3 * - col1 AS col0 FROM tab2
----
-153
-201
-231

onlyif mysql # aggregate syntax: 
query I rowsort label-5105
SELECT 65 + COUNT( * ) FROM tab0 AS cor0
----
68

skipif mysql # not compatible
query I rowsort label-5105
SELECT 65 + COUNT ( * ) FROM tab0 AS cor0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5106
SELECT + COUNT( * ) + - + 30 FROM tab0 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-5106
SELECT + COUNT ( * ) + - + 30 FROM tab0 AS cor0
----
-27

query I rowsort
SELECT ALL + 93 + - col0 * + 71 FROM tab1 AS cor0
----
-3528
-5942
-6368

query I rowsort
SELECT - col0 * + col0 + + ( + 96 ) + + - col2 AS col0 FROM tab1 AS cor0
----
-2601
-7188
-8253

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 AS col1, 61 - ( + col2 ) col2 FROM tab0 cor0
----
-1
-38
-21
51
-81
14

query I rowsort
SELECT ALL - col2 - + + 68 * + + ( - col2 ) FROM tab2 AS cor0
----
1541
2680
3886

query III rowsort
SELECT * FROM tab1 WHERE col1 = - col1 - + - ( + col0 ) * col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5112
SELECT ALL - COUNT( * ), - 54 AS col0 FROM tab1, tab0 AS cor0
----
-9
-54

skipif mysql # not compatible
query II rowsort label-5112
SELECT ALL - COUNT ( * ), - 54 AS col0 FROM tab1, tab0 AS cor0
----
-9
-54

query I rowsort
SELECT - - col0 * - 84 FROM tab2 cor0
----
-3864
-5376
-6300

query I rowsort
SELECT + + col1 * - 22 FROM tab2 AS cor0
----
-1122
-1474
-1694

query I rowsort
SELECT DISTINCT + ( - col2 ) * 97 AS col1 FROM tab0 AS cor0
----
-4559
-9603
-970

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 - 69 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - - 89 AS col0 FROM tab1 AS cor0
----
89

onlyif mysql # aggregate syntax: 
query II rowsort label-5118
SELECT ALL - MAX( + col0 ), - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-91
-3

skipif mysql # not compatible
query II rowsort label-5118
SELECT ALL - MAX ( + col0 ), - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-91
-3

query III rowsort
SELECT * FROM tab2 WHERE NOT - - col0 + - col1 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5120
SELECT DISTINCT + 63 * COUNT( - + col0 ) FROM tab1
----
189

skipif mysql # not compatible
query I rowsort label-5120
SELECT DISTINCT + 63 * COUNT ( - + col0 ) FROM tab1
----
189

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5121
SELECT ALL - CAST( NULL AS DECIMAL ) / col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5121
SELECT ALL - CAST ( NULL AS REAL ) / col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5122
SELECT SUM( + 38 ) AS col1 FROM tab1
----
114

skipif mysql # not compatible
query I rowsort label-5122
SELECT SUM ( + 38 ) AS col1 FROM tab1
----
114

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5123
SELECT DISTINCT COUNT( * ) AS col1, 88 DIV + + ( MIN( col1 ) ) FROM tab0
----
3
88

skipif mysql # not compatible
query II rowsort label-5123
SELECT DISTINCT COUNT ( * ) AS col1, 88 / + + ( MIN ( col1 ) ) FROM tab0
----
3
88

onlyif mysql # aggregate syntax: 
query I rowsort label-5124
SELECT DISTINCT - SUM( + col0 ) AS col2 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-5124
SELECT DISTINCT - SUM ( + col0 ) AS col2 FROM tab0 AS cor0
----
-199

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5125
SELECT DISTINCT + col0 + - ( + col1 ) AS col1, - CAST( NULL AS SIGNED ) * + col1 FROM tab0 cor0
----
-66
NULL
66
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-5125
SELECT DISTINCT + col0 + - ( + col1 ) AS col1, - CAST ( NULL AS INTEGER ) * + col1 FROM tab0 cor0
----
-66
NULL
66
NULL
96
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - col0 NOT IN ( + col0 ) )
----

query II rowsort
SELECT DISTINCT - col1 * - col2, col1 AS col1 FROM tab2
----
1173
51
3080
77
3886
67

query I rowsort
SELECT 69 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

query I rowsort
SELECT DISTINCT col2 + + col0 - 53 + 24 + + col1 FROM tab0
----
114
168
89

onlyif mysql # aggregate syntax: 
query I rowsort label-5130
SELECT COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE - 90 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5130
SELECT COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE - 90 IS NULL
----
0

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab1 AS cor0 WHERE col2 IS NULL
----

query I rowsort
SELECT DISTINCT + 16 + - 70 * + + col0 AS col2 FROM tab1 AS cor0
----
-3554
-5934
-6354

onlyif mysql # DIV for integer division: 
query I rowsort label-5133
SELECT - 62 + + - col2 DIV 32 AS col1 FROM tab2 AS cor0
----
-62
-63
-63

skipif mysql # not compatible
query I rowsort label-5133
SELECT - 62 + + - col2 / 32 AS col1 FROM tab2 AS cor0
----
-62
-63
-63

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + ( - - 83 ) IN ( col0, - col0, - col1 * ( - - col1 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5135
SELECT * FROM tab2 WHERE ( NOT - col0 IN ( CAST( + 77 AS SIGNED ), - 56, - - col1 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5135
SELECT * FROM tab2 WHERE ( NOT - col0 IN ( CAST ( + 77 AS INTEGER ), - 56, - - col1 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5136
SELECT - 77 * + col0 / - col1 + + col2 + + ( + CAST( NULL AS SIGNED ) ) * col2 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5136
SELECT - 77 * + col0 / - col1 + + col2 + + ( + CAST ( NULL AS INTEGER ) ) * col2 AS col0 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT col2 AS col2, col2 - - + 56 * - - 62 AS col1 FROM tab1
----
59
3531
68
3540
96
3568

onlyif mysql # DIV for integer division: 
query I rowsort label-5138
SELECT ALL + col0 DIV - ( + ( + col2 ) ) FROM tab0
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-5138
SELECT ALL + col0 / - ( + ( + col2 ) ) FROM tab0
----
-8
0
0

query III rowsort
SELECT * FROM tab1 WHERE ( ( - 70 IS NOT NULL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5140
SELECT COUNT( ALL - 85 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5140
SELECT COUNT ( ALL - 85 ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5141
SELECT ALL MAX( 94 ) col2 FROM tab1 AS cor0
----
94

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5141
SELECT ALL MAX ( 94 ) col2 FROM tab1 AS cor0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-5142
SELECT DISTINCT - MIN( 17 ) * - COUNT( * ) + + - COUNT( * ) FROM tab0 cor0
----
48

skipif mysql # not compatible
query I rowsort label-5142
SELECT DISTINCT - MIN ( 17 ) * - COUNT ( * ) + + - COUNT ( * ) FROM tab0 cor0
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-5143
SELECT + + 77 DIV - 14 - - col2 * col2 AS col0 FROM tab2 AS cor0
----
1595
3359
524

skipif mysql # not compatible
query I rowsort label-5143
SELECT + + 77 / - 14 - - col2 * col2 AS col0 FROM tab2 AS cor0
----
1595
3359
524

onlyif mysql # DIV for integer division: 
query I rowsort label-5144
SELECT + col1 - + - col0 DIV + 95 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-5144
SELECT + col1 - + - col0 / + 95 FROM tab2 AS cor0
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5145
SELECT ALL - + 40 - COUNT( * ) col0 FROM tab0 AS cor0
----
-43

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5145
SELECT ALL - + 40 - COUNT ( * ) col0 FROM tab0 AS cor0
----
-43

query I rowsort
SELECT + 81 + - col1 AS col0 FROM tab1
----
34
67
76

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT 50 IS NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query III rowsort
SELECT * FROM tab2 WHERE NOT - - 89 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5149
SELECT DISTINCT + ( - - MIN( - + 90 ) ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-90

skipif mysql # not compatible
query I rowsort label-5149
SELECT DISTINCT + ( - - MIN ( - + 90 ) ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-90

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5150
SELECT DISTINCT - col2 AS col1, - CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
-23
NULL
-40
NULL
-58
NULL

skipif mysql # not compatible
query II rowsort label-5150
SELECT DISTINCT - col2 AS col1, - CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
-23
NULL
-40
NULL
-58
NULL

query I rowsort
SELECT col1 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + col0 FROM tab1 AS cor0 WHERE NULL = - col2
----

query II rowsort
SELECT + col2, + 32 AS col1 FROM tab2 AS cor0
----
23
32
40
32
58
32

onlyif mysql # aggregate syntax: 
query II rowsort label-5154
SELECT - - COUNT( * ) AS col0, 80 AS col2 FROM tab1 AS cor0
----
3
80

skipif mysql # not compatible
query II rowsort label-5154
SELECT - - COUNT ( * ) AS col0, 80 AS col2 FROM tab1 AS cor0
----
3
80

query II rowsort
SELECT + 98 AS col1, + col2 * 46 + + 22 FROM tab1 AS cor0
----
98
2736
98
3150
98
4438

query I rowsort
SELECT + - col2 * 27 FROM tab2 AS cor0 WHERE NOT - 29 * + col2 + 3 + + + col1 + + + col0 * col1 BETWEEN + + 53 AND col2
----
-1080
-1566
-621

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5157
SELECT ALL - col2 AS col2, + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
-23
NULL
-40
NULL
-58
NULL

skipif mysql # not compatible
query II rowsort label-5157
SELECT ALL - col2 AS col2, + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
-23
NULL
-40
NULL
-58
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 <> + - col2
----

query II rowsort
SELECT DISTINCT col1, 86 AS col2 FROM tab2 AS cor0
----
51
86
67
86
77
86

query II rowsort
SELECT ALL col0 * - + 9 * 27 AS col0, col2 FROM tab0
----
-21141
10
-23571
99
-3645
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5161
SELECT DISTINCT MAX( + col2 ) * CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5161
SELECT DISTINCT MAX ( + col2 ) * CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 49 * - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col1 * col0 FROM tab0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - 22 * - 63 * + 30 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 70 col1 FROM tab2 WHERE NOT - + col0 < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL = col1 + col2
----

query I rowsort
SELECT ALL + + 19 AS col0 FROM tab2 AS cor0
----
19
19
19

query I rowsort
SELECT + - col0 * + 32 + + 4 + - col1 + - col1 * - col0 AS col0 FROM tab0 cor0
----
-3004
-974
658

onlyif mysql # DIV for integer division: 
query I rowsort label-5169
SELECT ALL + ( + ( - + col1 ) ) DIV + - col0 + + 33 FROM tab0 AS cor0
----
33
33
38

skipif mysql # not compatible
query I rowsort label-5169
SELECT ALL + ( + ( - + col1 ) ) / + - col0 + + 33 FROM tab0 AS cor0
----
33
33
38

query I rowsort
SELECT ( - - col1 ) + - col2 FROM tab0
----
-98
11
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5171
SELECT ( + + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5171
SELECT ( + + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT 51 FROM tab0, tab2 cor0
----
51

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL ) <> NULL
----

query II rowsort
SELECT ALL + col1, ( + - col1 ) AS col2 FROM tab0 AS cor0
----
1
-1
21
-21
81
-81

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col0 > - + 15
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + - col2 col2 FROM tab2 AS cor0
----
-1600
-3364
-529

query I rowsort
SELECT ALL - col0 + 42 * - + col1 + ( - + col2 ) AS col1 FROM tab2 AS cor0
----
-2211
-2947
-3338

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 68, col1 col1 FROM tab1 AS cor0
----
-68
14
-68
47
-68
5

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5179
SELECT DISTINCT - CAST( NULL AS DECIMAL ) + - 44 AS col0 FROM tab2 AS cor0 WHERE - col2 * + col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-5179
SELECT DISTINCT - CAST ( NULL AS REAL ) + - 44 AS col0 FROM tab2 AS cor0 WHERE - col2 * + col0 IS NULL
----

query I rowsort
SELECT ALL + 79 - + ( - col1 ) FROM tab1 AS cor0
----
126
84
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5181
SELECT - + CAST( - AVG ( + col2 ) AS SIGNED ) - 68 AS col0 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-5181
SELECT - + CAST ( - AVG ( + col2 ) AS INTEGER ) - 68 AS col0 FROM tab1 AS cor0
----
6

query III rowsort
SELECT * FROM tab2 WHERE 58 * + col0 + 33 * col1 IS NOT NULL AND col2 IS NULL
----

query II rowsort
SELECT ALL col1 - - col0, col2 FROM tab1
----
138
68
65
96
90
59

query I rowsort
SELECT - 26 + + 69 AS col0 FROM tab1
----
43
43
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5185
SELECT DISTINCT - 16 DIV COUNT( * ) * MAX( 43 ) - - COUNT( * ) AS col1 FROM tab1
----
-212

skipif mysql # not compatible
query I rowsort label-5185
SELECT DISTINCT - 16 / COUNT ( * ) * MAX ( 43 ) - - COUNT ( * ) AS col1 FROM tab1
----
-212

onlyif mysql # aggregate syntax: 
query I rowsort label-5186
SELECT COUNT( * ) + - + SUM( + col2 ) FROM tab1
----
-220

skipif mysql # not compatible
query I rowsort label-5186
SELECT COUNT ( * ) + - + SUM ( + col2 ) FROM tab1
----
-220

query I rowsort
SELECT + ( + col0 ) + - + col0 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - 18 + + col2 + + - col2 * + + col2 AS col1 FROM tab2 AS cor0
----
-1578
-3324
-524

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 19 BETWEEN - 74 / + 97 AND - + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col2 / + + 74 + + 77 IS NOT NULL
----

query I rowsort
SELECT + col1 + ( col1 ) + - col0 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) <= NULL
----

query I rowsort
SELECT DISTINCT 18 FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN NULL AND col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5193
SELECT ALL col0 DIV + - col0 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5193
SELECT ALL col0 / + - col0 FROM tab2 AS cor0
----
-1
-1
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5194
SELECT DISTINCT ( + - ( - col1 ) ) * - 56 AS col0, + col1 * col1 * + + col1 + + - CAST( NULL AS DECIMAL ) FROM tab0 cor0
----
-1176
NULL
-4536
NULL
-56
NULL

skipif mysql # not compatible
query II rowsort label-5194
SELECT DISTINCT ( + - ( - col1 ) ) * - 56 AS col0, + col1 * col1 * + + col1 + + - CAST ( NULL AS REAL ) FROM tab0 cor0
----
-1176
NULL
-4536
NULL
-56
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 * - col0 BETWEEN col1 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5196
SELECT ALL - COUNT( + + col0 ) AS col1 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-5196
SELECT ALL - COUNT ( + + col0 ) AS col1 FROM tab2
----
-3

query I rowsort
SELECT 97 * + col2 FROM tab1
----
5723
6596
9312

query I rowsort
SELECT - ( + 22 ) FROM tab0
----
-22
-22
-22

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL >= - col0
----

query I rowsort
SELECT col0 * + - col2 AS col1 FROM tab2 AS cor0
----
-1058
-2560
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-5201
SELECT - - MAX( - col1 ) AS col1 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5201
SELECT - - MAX ( - col1 ) AS col1 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT DISTINCT - ( - + col0 ) AS col0 FROM tab2 AS cor0
----
46
64
75

onlyif mysql # aggregate syntax: 
query II rowsort label-5203
SELECT DISTINCT 39, COUNT( * ) AS col2 FROM tab1 cor0
----
39
3

skipif mysql # not compatible
query II rowsort label-5203
SELECT DISTINCT 39, COUNT ( * ) AS col2 FROM tab1 cor0
----
39
3

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5204
SELECT * FROM tab1 AS cor0 WHERE NOT CAST( + - 45 AS DECIMAL ) BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-5204
SELECT * FROM tab1 AS cor0 WHERE NOT CAST ( + - 45 AS REAL ) BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5205
SELECT ALL + CAST( NULL AS SIGNED ) / col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5205
SELECT ALL + CAST ( NULL AS INTEGER ) / col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5206
SELECT - COUNT( * ) FROM tab1, tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-5206
SELECT - COUNT ( * ) FROM tab1, tab1 AS cor0
----
-9

query I rowsort
SELECT + col2 + 29 AS col2 FROM tab1
----
125
88
97

query I rowsort
SELECT ALL ( + 24 ) FROM tab0
----
24
24
24

query II rowsort
SELECT col0 + col1 AS col0, - col0 AS col2 FROM tab1
----
138
-91
65
-51
90
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5210
SELECT DISTINCT - col2 + - CAST( + col2 AS SIGNED ) col0 FROM tab1
----
-118
-136
-192

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5210
SELECT DISTINCT - col2 + - CAST ( + col2 AS INTEGER ) col0 FROM tab1
----
-118
-136
-192

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5211
SELECT - COUNT( * ) DIV + SUM( + - col2 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5211
SELECT - COUNT ( * ) / + SUM ( + - col2 ) FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5212
SELECT COUNT( * ) * 48 FROM tab1
----
144

skipif mysql # not compatible
query I rowsort label-5212
SELECT COUNT ( * ) * 48 FROM tab1
----
144

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + 70 col2 FROM tab1 AS cor0
----
23
56
65

onlyif mysql # aggregate syntax: 
query I rowsort label-5214
SELECT - + ( + COUNT( * ) ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5214
SELECT - + ( + COUNT ( * ) ) AS col1 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT + - col2 AS col2 FROM tab1 WHERE NULL IS NULL
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-5216
SELECT ( + + 85 ) + MAX( ALL - 9 ) - - + ( COUNT( * ) ) * + 6 col2 FROM tab2
----
94

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5216
SELECT ( + + 85 ) + MAX ( ALL - 9 ) - - + ( COUNT ( * ) ) * + 6 col2 FROM tab2
----
94

query I rowsort
SELECT DISTINCT + 40 FROM tab2 AS cor0 WHERE NOT - col2 IS NULL
----
40

query I rowsort
SELECT + 51 FROM tab0 WHERE 23 * - col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5219
SELECT - 36 * - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5219
SELECT - 36 * - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ( - - 69 ) AS col0 FROM tab2
----
69
69
69

onlyif mysql # aggregate syntax: 
query II rowsort label-5221
SELECT + COUNT( * ) AS col2, 97 FROM tab1
----
3
97

skipif mysql # not compatible
query II rowsort label-5221
SELECT + COUNT ( * ) AS col2, 97 FROM tab1
----
3
97

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5222
SELECT DISTINCT CAST( NULL AS DECIMAL ) - col2 - + col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5222
SELECT DISTINCT CAST ( NULL AS REAL ) - col2 - + col2 FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE col0 * - col1 + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query II rowsort label-5224
SELECT DISTINCT col2 AS col0, col2 DIV + col1 + - col1 FROM tab2
----
23
-51
40
-77
58
-67

skipif mysql # not compatible
query II rowsort label-5224
SELECT DISTINCT col2 AS col0, col2 / + col1 + - col1 FROM tab2
----
23
-51
40
-77
58
-67

query I rowsort
SELECT DISTINCT - col0 - + 34 AS col0 FROM tab2
----
-109
-80
-98

query I rowsort
SELECT col0 - + 60 AS col0 FROM tab1
----
-9
25
31

onlyif mysql # aggregate syntax: 
query II rowsort label-5227
SELECT 19, COUNT( * ) col1 FROM tab1 AS cor0
----
19
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5227
SELECT 19, COUNT ( * ) col1 FROM tab1 AS cor0
----
19
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5228
SELECT - CAST( 84 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-84
-84
-84

skipif mysql # not compatible
query I rowsort label-5228
SELECT - CAST ( 84 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-84
-84
-84

query II rowsort
SELECT DISTINCT col2, col0 AS col1 FROM tab0 AS cor0
----
10
87
47
15
99
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5230
SELECT + ( + COUNT( * ) ) AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-5230
SELECT + ( + COUNT ( * ) ) AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5231
SELECT COUNT( * ) DIV + 81 + + 31 col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
31

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5231
SELECT COUNT ( * ) / + 81 + + 31 col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5232
SELECT DISTINCT + col1 AS col0 FROM tab2 WHERE + - ( ( + + CAST( NULL AS SIGNED ) ) ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5232
SELECT DISTINCT + col1 AS col0 FROM tab2 WHERE + - ( ( + + CAST ( NULL AS INTEGER ) ) ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NOT ( NULL ) IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + col0 ) col0 FROM tab1 AS cor0
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5235
SELECT + col2 * - CAST( - 90 AS SIGNED ) FROM tab2 AS cor0
----
2070
3600
5220

skipif mysql # not compatible
query I rowsort label-5235
SELECT + col2 * - CAST ( - 90 AS INTEGER ) FROM tab2 AS cor0
----
2070
3600
5220

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5236
SELECT ALL + CAST( 81 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
81
81
81

skipif mysql # not compatible
query I rowsort label-5236
SELECT ALL + CAST ( 81 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
81
81
81

query I rowsort
SELECT ALL - 23 - + + 55 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5238
SELECT + - 84 DIV col1 FROM tab0 AS cor0
----
-1
-4
-84

skipif mysql # not compatible
query I rowsort label-5238
SELECT + - 84 / col1 FROM tab0 AS cor0
----
-1
-4
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-5239
SELECT DISTINCT + COUNT( - col2 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5239
SELECT DISTINCT + COUNT ( - col2 ) AS col1 FROM tab1 AS cor0
----
3

query II rowsort
SELECT col0 * - - 9 AS col1, - 10 + + col0 AS col2 FROM tab1 cor0
----
459
41
765
75
819
81

onlyif mysql # DIV for integer division: 
query I rowsort label-5241
SELECT + col0 DIV - - col1 + + + col2 DIV - col1 FROM tab2 cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5241
SELECT + col0 / - - col1 + + + col2 / - col1 FROM tab2 cor0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5242
SELECT ALL + COUNT( * ) FROM tab0 WHERE NOT - ( - col0 ) + - col0 * + col1 = + col2
----
3

skipif mysql # not compatible
query I rowsort label-5242
SELECT ALL + COUNT ( * ) FROM tab0 WHERE NOT - ( - col0 ) + - col0 * + col1 = + col2
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-5243
SELECT DISTINCT col1 DIV + - 62 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5243
SELECT DISTINCT col1 / + - 62 FROM tab1
----
0

query I rowsort
SELECT + 21 * - 6 AS col2 FROM tab1
----
-126
-126
-126

onlyif mysql # aggregate syntax: 
query I rowsort label-5245
SELECT ALL - SUM( - col1 ) AS col0 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-5245
SELECT ALL - SUM ( - col1 ) AS col0 FROM tab1
----
66

query I rowsort
SELECT DISTINCT - col1 FROM tab0 WHERE col2 * + - 17 + col2 IS NOT NULL
----
-1
-21
-81

query I rowsort
SELECT ALL - col0 AS col2 FROM tab2 WHERE - - 13 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN col2 * + col2 + - + col1 AND - col1
----

query I rowsort
SELECT - col2 + - col2 + col1 * + + col2 + 74 + - 98 + col2 AS col0 FROM tab2 AS cor0
----
1126
3016
3804

query I rowsort
SELECT ALL + 93 + - + 93 + col2 AS col0 FROM tab0 AS cor0
----
10
47
99

query I rowsort
SELECT - col2 + + col1 + + 32 AS col2 FROM tab2 cor0
----
41
60
69

onlyif mysql # aggregate syntax: 
query I rowsort label-5252
SELECT COUNT( * ) + - + 64 FROM tab2 AS cor0
----
-61

skipif mysql # not compatible
query I rowsort label-5252
SELECT COUNT ( * ) + - + 64 FROM tab2 AS cor0
----
-61

query I rowsort
SELECT col0 + + ( col1 ) FROM tab0 AS cor0
----
108
96
98

query II rowsort
SELECT ALL + 14, col0 FROM tab1
----
14
51
14
85
14
91

query I rowsort
SELECT + col0 * + - 14 AS col1 FROM tab0
----
-1218
-1358
-210

query I rowsort
SELECT - - 3 * + col2 * col0 FROM tab2 AS cor0
----
13050
3174
7680

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5258
SELECT + COUNT( - 97 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5258
SELECT + COUNT ( - 97 ) FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5259
SELECT ALL - CAST( NULL AS SIGNED ) + + ( - col2 ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5259
SELECT ALL - CAST ( NULL AS INTEGER ) + + ( - col2 ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5260
SELECT DISTINCT + col1 * - CAST( + col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-210
-3807
-99

skipif mysql # not compatible
query I rowsort label-5260
SELECT DISTINCT + col1 * - CAST ( + col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-210
-3807
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-5261
SELECT DISTINCT + 30 DIV + + col2 * - col1 + - + col2 AS col0 FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-5261
SELECT DISTINCT + 30 / + + col2 * - col1 + - + col2 AS col0 FROM tab1 AS cor0
----
-59
-68
-96

query I rowsort
SELECT - - col2 - + col0 * - col0 AS col1 FROM tab1 AS cor0
----
2697
7284
8349

onlyif mysql # DIV for integer division: 
query I rowsort label-5263
SELECT col1 - col1 + - 51 DIV - 68 * col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5263
SELECT col1 - col1 + - 51 / - 68 * col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5264
SELECT + + 10 - + COUNT( * ) FROM tab0 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-5264
SELECT + + 10 - + COUNT ( * ) FROM tab0 AS cor0
----
7

query I rowsort
SELECT DISTINCT - 81 AS col2 FROM tab1 AS cor0
----
-81

query I rowsort
SELECT ALL 7 * + col1 + - col0 AS col1 FROM tab0 AS cor0
----
-90
552
60

onlyif mysql # aggregate syntax: 
query I rowsort label-5267
SELECT ALL + COUNT( * ) + - COUNT( * ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5267
SELECT ALL + COUNT ( * ) + - COUNT ( * ) FROM tab2
----
0

query I rowsort
SELECT DISTINCT col2 * - + col0 AS col2 FROM tab0 WHERE NOT NULL = - + col1
----

query I rowsort
SELECT DISTINCT col1 * - col1 * col1 AS col2 FROM tab0
----
-1
-531441
-9261

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5270
SELECT - CAST( NULL AS SIGNED ) * + - COUNT( * ), + MAX( - + col1 ) AS col0 FROM tab0
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-5270
SELECT - CAST ( NULL AS INTEGER ) * + - COUNT ( * ), + MAX ( - + col1 ) AS col0 FROM tab0
----
NULL
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5271
SELECT DISTINCT + COUNT( DISTINCT 42 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-5271
SELECT DISTINCT + COUNT ( DISTINCT 42 ) FROM tab2
----
1

query I rowsort
SELECT + ( ( col0 ) ) * + col0 + - col1 AS col2 FROM tab1
----
2587
7220
8234

query III rowsort
SELECT * FROM tab2 WHERE NOT - - col2 >= + col2
----

query II rowsort
SELECT DISTINCT - col0 * + col2 AS col2, col0 AS col0 FROM tab1
----
-4896
51
-5015
85
-6188
91

query I rowsort
SELECT DISTINCT - - col2 * + + 50 FROM tab1 AS cor0 WHERE NOT - col2 + + ( col2 ) BETWEEN NULL AND + - col2 - col0 + ( 12 ) - 84
----
2950
3400
4800

query I rowsort
SELECT + col1 * - col0 + - 87 FROM tab2 AS cor0
----
-2433
-5015
-5112

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col2 + + col1 < - col1
----
91
47
68

query I rowsort
SELECT ALL - col2 * - + col2 AS col0 FROM tab2
----
1600
3364
529

query II rowsort
SELECT col0 AS col0, - col0 + 5 AS col2 FROM tab2 AS cor0
----
46
-41
64
-59
75
-70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5280
SELECT DISTINCT + - 98 DIV - SUM( DISTINCT col0 ) - - + COUNT( * ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5280
SELECT DISTINCT + - 98 / - SUM ( DISTINCT col0 ) - - + COUNT ( * ) FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5281
SELECT + + col0 * - 85 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT - col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5281
SELECT + + col0 * - 85 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5282
SELECT - 68 AS col1, COUNT( * ) FROM tab2 AS cor0
----
-68
3

skipif mysql # not compatible
query II rowsort label-5282
SELECT - 68 AS col1, COUNT ( * ) FROM tab2 AS cor0
----
-68
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5283
SELECT COUNT( - + col2 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5283
SELECT COUNT ( - + col2 ) AS col2 FROM tab0 AS cor0
----
3

query II rowsort
SELECT DISTINCT col0 AS col1, - col1 AS col0 FROM tab0 cor0
----
15
-81
87
-21
97
-1

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL > 55
----

query I rowsort
SELECT 17 + - col1 + col1 + + ( - col0 ) + + col0 FROM tab1
----
17
17
17

onlyif mysql # aggregate syntax: 
query I rowsort label-5287
SELECT ALL - MAX( DISTINCT 38 ) FROM tab0
----
-38

skipif mysql # not compatible
query I rowsort label-5287
SELECT ALL - MAX ( DISTINCT 38 ) FROM tab0
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-5288
SELECT COUNT( DISTINCT - col1 ) + 34 col1 FROM tab2
----
37

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5288
SELECT COUNT ( DISTINCT - col1 ) + 34 col1 FROM tab2
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-5289
SELECT DISTINCT + 72 * COUNT( * ) AS col1 FROM tab2
----
216

skipif mysql # not compatible
query I rowsort label-5289
SELECT DISTINCT + 72 * COUNT ( * ) AS col1 FROM tab2
----
216

query III rowsort
SELECT ALL * FROM tab0 WHERE col1 - col2 IS NULL
----

query I rowsort
SELECT + col0 + - - col2 - - ( col2 ) * + 9 * - col0 AS col0 FROM tab0
----
-6283
-7733
-86231

onlyif mysql # aggregate syntax: 
query I rowsort label-5292
SELECT DISTINCT - MIN( - + col2 ) * + 98 FROM tab2 AS cor0
----
5684

skipif mysql # not compatible
query I rowsort label-5292
SELECT DISTINCT - MIN ( - + col2 ) * + 98 FROM tab2 AS cor0
----
5684

query I rowsort
SELECT + + 1 + + col1 AS col0 FROM tab0 AS cor0
----
2
22
82

onlyif mysql # aggregate syntax: 
query I rowsort label-5294
SELECT ALL + SUM( ALL - + 80 ) FROM tab1 AS cor0
----
-240

skipif mysql # not compatible
query I rowsort label-5294
SELECT ALL + SUM ( ALL - + 80 ) FROM tab1 AS cor0
----
-240

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5295
SELECT - COUNT( * ) * + + CAST( NULL AS SIGNED ) / - COUNT( * ) * + - COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5295
SELECT - COUNT ( * ) * + + CAST ( NULL AS INTEGER ) / - COUNT ( * ) * + - COUNT ( * ) FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5296
SELECT DISTINCT - - CAST( NULL AS SIGNED ), + col2 col1 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5296
SELECT DISTINCT - - CAST ( NULL AS INTEGER ), + col2 col1 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5297
SELECT ALL 82 + col0 + + + CAST( NULL AS SIGNED ) + - 54 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5297
SELECT ALL 82 + col0 + + + CAST ( NULL AS INTEGER ) + - 54 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5298
SELECT - 83 * + - COUNT( * ) FROM tab0 AS cor0
----
249

skipif mysql # not compatible
query I rowsort label-5298
SELECT - 83 * + - COUNT ( * ) FROM tab0 AS cor0
----
249

onlyif mysql # aggregate syntax: 
query I rowsort label-5299
SELECT DISTINCT MIN( col1 ) AS col2 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-5299
SELECT DISTINCT MIN ( col1 ) AS col2 FROM tab1 AS cor0
----
5

query II rowsort
SELECT ALL + 83 AS col0, 22 AS col1 FROM tab1
----
83
22
83
22
83
22

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col1 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5302
SELECT DISTINCT CAST( - + 68 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-68

skipif mysql # not compatible
query I rowsort label-5302
SELECT DISTINCT CAST ( - + 68 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-68

query II rowsort
SELECT - - 43 * col1, col0 FROM tab1 cor0
----
2021
91
215
85
602
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5304
SELECT DISTINCT 65 * + 62 * 39 * COUNT( * ) FROM tab0 AS cor0
----
471510

skipif mysql # not compatible
query I rowsort label-5304
SELECT DISTINCT 65 * + 62 * 39 * COUNT ( * ) FROM tab0 AS cor0
----
471510

query I rowsort
SELECT ALL col0 AS col0 FROM tab2 AS cor0 WHERE NOT + 95 + + + col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 78 + - col0 col0 FROM tab2 AS cor0
----
14
3
32

query I rowsort
SELECT DISTINCT - col0 FROM tab0 AS cor0 WHERE + col2 * + col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5308
SELECT col2 DIV 67 DIV + col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5308
SELECT col2 / 67 / + col2 FROM tab0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5309
SELECT ALL - 30 DIV col2 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5309
SELECT ALL - 30 / col2 FROM tab2
----
-1
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col1 BETWEEN 44 AND NULL
----

query I rowsort
SELECT ALL + 44 + + 98 FROM tab2
----
142
142
142

query I rowsort
SELECT col2 + - 75 AS col1 FROM tab0
----
-28
-65
24

query I rowsort
SELECT col2 + - col2 + + col0 AS col1 FROM tab0
----
15
87
97

query III rowsort
SELECT ALL * FROM tab1 WHERE 14 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 26 * + col0 * + 10 + + col1 FROM tab1 AS cor0
----
13274
22105
23707

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 / - 94 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-5317
SELECT + - 39 + + 75 DIV + + col1 AS col2 FROM tab1 AS cor0
----
-24
-34
-38

skipif mysql # not compatible
query I rowsort label-5317
SELECT + - 39 + + 75 / + + col1 AS col2 FROM tab1 AS cor0
----
-24
-34
-38

query I rowsort
SELECT ALL col2 FROM tab1 WHERE NOT ( NULL ) IN ( col2 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND - col1
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 + + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col2 - 86 AS col1 FROM tab0
----
-39
-76
13

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col0 + col2 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col0 * + ( 85 ) AS col2 FROM tab2
----
3910
5440
6375

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + 83 * 64 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5325
SELECT DISTINCT 69 + - COUNT( * ) col0 FROM tab1
----
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5325
SELECT DISTINCT 69 + - COUNT ( * ) col0 FROM tab1
----
66

query I rowsort
SELECT DISTINCT ( + col1 ) * 4 + - col1 FROM tab2
----
153
201
231

query I rowsort
SELECT 47 - 12 AS col0 FROM tab0
----
35
35
35

onlyif mysql # aggregate syntax: 
query I rowsort label-5328
SELECT ALL COUNT( * ) AS col0 FROM tab0 WHERE NOT - 39 + col1 / col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5328
SELECT ALL COUNT ( * ) AS col0 FROM tab0 WHERE NOT - 39 + col1 / col2 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5329
SELECT + COUNT( * ) + - COUNT( * ) FROM tab1 WHERE NULL > ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-5329
SELECT + COUNT ( * ) + - COUNT ( * ) FROM tab1 WHERE NULL > ( NULL )
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT ( 1 * - col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 77 * 12 FROM tab0 cor0 CROSS JOIN tab1
----
924

query I rowsort
SELECT DISTINCT 8 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-5333
SELECT ALL - 49 + - MIN( 48 + - col2 * 67 ) FROM tab2 cor0 WHERE + 52 <= col1 - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5333
SELECT ALL - 49 + - MIN ( 48 + - col2 * 67 ) FROM tab2 cor0 WHERE + 52 <= col1 - col0
----
NULL

query I rowsort
SELECT DISTINCT + col2 + 87 AS col1 FROM tab1 AS cor0
----
146
155
183

onlyif mysql # aggregate syntax: 
query I rowsort label-5335
SELECT ALL + - COUNT( * ) + 60 FROM tab0 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-5335
SELECT ALL + - COUNT ( * ) + 60 FROM tab0 AS cor0
----
57

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 IN ( + ( 33 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5337
SELECT + COUNT( * ) + MAX( ( col0 ) ) AS col1 FROM tab2 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-5337
SELECT + COUNT ( * ) + MAX ( ( col0 ) ) AS col1 FROM tab2 AS cor0
----
78

query I rowsort
SELECT + col2 + - col0 FROM tab2 AS cor0 WHERE ( ( col1 ) * + 72 ) <> - col0 / col1
----
-17
-23
-24

query I rowsort
SELECT ALL + col1 * 88 + - 12 * col2 FROM tab2 AS cor0
----
4212
5200
6296

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL BETWEEN + 88 * + 10 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5341
SELECT ALL + + ( - ( - 33 ) ) * COUNT( * ) FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-5341
SELECT ALL + + ( - ( - 33 ) ) * COUNT ( * ) FROM tab0 AS cor0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5342
SELECT + COUNT( DISTINCT 29 ) + - MIN( ( + col0 ) ) FROM tab1
----
-50

skipif mysql # not compatible
query I rowsort label-5342
SELECT + COUNT ( DISTINCT 29 ) + - MIN ( ( + col0 ) ) FROM tab1
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-5343
SELECT - COUNT( * ) * + + 33 + - ( + COUNT( * ) ) AS col0 FROM tab2
----
-102

skipif mysql # not compatible
query I rowsort label-5343
SELECT - COUNT ( * ) * + + 33 + - ( + COUNT ( * ) ) AS col0 FROM tab2
----
-102

query III rowsort
SELECT * FROM tab0 WHERE + 39 + ( - col1 + 62 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 91 + + - col1 FROM tab0
----
10
70
90

onlyif mysql # aggregate syntax: 
query I rowsort label-5346
SELECT - MIN( + - 8 ) * COUNT( * ) FROM tab0
----
24

skipif mysql # not compatible
query I rowsort label-5346
SELECT - MIN ( + - 8 ) * COUNT ( * ) FROM tab0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-5347
SELECT - COUNT( * ) * - + COUNT( * ) AS col0 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-5347
SELECT - COUNT ( * ) * - + COUNT ( * ) AS col0 FROM tab0
----
9

query I rowsort
SELECT - ( + col0 ) FROM tab1 WHERE col1 IS NOT NULL
----
-51
-85
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-5349
SELECT DISTINCT - 31 * - col0 + - col1 DIV + col2 FROM tab0 AS cor0
----
2695
3007
464

skipif mysql # not compatible
query I rowsort label-5349
SELECT DISTINCT - 31 * - col0 + - col1 / + col2 FROM tab0 AS cor0
----
2695
3007
464

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) BETWEEN NULL AND col1 / 20
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5351
SELECT DISTINCT + 9 + COUNT( * ) FROM tab1 WHERE NOT NULL NOT BETWEEN ( + col0 ) AND - col2 * + col1
----
9

skipif mysql # not compatible
query I rowsort label-5351
SELECT DISTINCT + 9 + COUNT ( * ) FROM tab1 WHERE NOT NULL NOT BETWEEN ( + col0 ) AND - col2 * + col1
----
9

query I rowsort
SELECT DISTINCT + col2 * + 30 AS col1 FROM tab0
----
1410
2970
300

onlyif mysql # aggregate syntax: 
query I rowsort label-5353
SELECT ALL - - SUM( DISTINCT - col2 ) FROM tab1 cor0
----
-223

skipif mysql # not compatible
query I rowsort label-5353
SELECT ALL - - SUM ( DISTINCT - col2 ) FROM tab1 cor0
----
-223

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 + + ( ( 44 ) ) >= NULL
----

query I rowsort
SELECT DISTINCT - col1 * + - 56 FROM tab0 AS cor0
----
1176
4536
56

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( - col1 * - + 45 ) > - col0 + - col0 * 63
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 + - + ( + col2 ) IS NOT NULL
----

query I rowsort
SELECT - col1 * + 10 FROM tab0 AS cor0
----
-10
-210
-810

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5359
SELECT * FROM tab1 AS cor0 WHERE NOT ( - ( - 96 ) ) NOT BETWEEN col1 AND CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5359
SELECT * FROM tab1 AS cor0 WHERE NOT ( - ( - 96 ) ) NOT BETWEEN col1 AND CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL IS NOT NULL OR NOT col1 IN ( col1 - - 87 * ( col1 * + col0 - col1 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT - col0, + col2 + - ( col2 ) AS col0 FROM tab1 AS cor0
----
-51
0
-85
0
-91
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + 18 * - col2 col0 FROM tab2 AS cor0
----
28800
60552
9522

query I rowsort
SELECT DISTINCT - - ( + 20 ) FROM tab1 AS cor0
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-5364
SELECT MIN( ALL - 12 ) FROM tab2 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-5364
SELECT MIN ( ALL - 12 ) FROM tab2 AS cor0
----
-12

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 28 NOT IN ( col2 * + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5366
SELECT DISTINCT col0 + + col0 AS col0 FROM tab0 AS cor0 WHERE NOT CAST( - - col2 AS SIGNED ) - + col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5366
SELECT DISTINCT col0 + + col0 AS col0 FROM tab0 AS cor0 WHERE NOT CAST ( - - col2 AS INTEGER ) - + col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5367
SELECT DISTINCT - 94 DIV col2 * - - 46 * + col2 + - col0 FROM tab0 AS cor0
----
-4227
-4339
-97

skipif mysql # not compatible
query I rowsort label-5367
SELECT DISTINCT - 94 / col2 * - - 46 * + col2 + - col0 FROM tab0 AS cor0
----
-4227
-4339
-97

query I rowsort
SELECT + col2 * + - 54 AS col2 FROM tab1
----
-3186
-3672
-5184

onlyif mysql # aggregate syntax: 
query I rowsort label-5369
SELECT COUNT( * ) AS col1 FROM tab1 WHERE NOT ( - - col2 * - ( + 20 ) ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-5369
SELECT COUNT ( * ) AS col1 FROM tab1 WHERE NOT ( - - col2 * - ( + 20 ) ) IS NULL
----
3

query II rowsort
SELECT ALL - - 18 * - - col1, + col0 + - + col2 AS col1 FROM tab1 AS cor0
----
252
-45
846
23
90
26

onlyif mysql # aggregate syntax: 
query I rowsort label-5371
SELECT ( + + MIN( ALL - - ( - + 97 ) ) ) * - SUM( ALL + col1 + - 71 ) FROM tab1 AS cor0
----
-14259

skipif mysql # not compatible
query I rowsort label-5371
SELECT ( + + MIN ( ALL - - ( - + 97 ) ) ) * - SUM ( ALL + col1 + - 71 ) FROM tab1 AS cor0
----
-14259

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 8 * - col0 - 29 col2 FROM tab2 AS cor0 WHERE ( NULL ) <= NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + col2 - ( - col0 ) IS NOT NULL )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5374
SELECT + + col1 DIV + CAST( - 59 AS SIGNED ) + col2 + ( + col1 - col0 * 0 ) FROM tab1 AS cor0
----
110
115
64

skipif mysql # not compatible
query I rowsort label-5374
SELECT + + col1 / + CAST ( - 59 AS INTEGER ) + col2 + ( + col1 - col0 * 0 ) FROM tab1 AS cor0
----
110
115
64

query I rowsort
SELECT + col0 * 75 + + 9 AS col2 FROM tab2
----
3459
4809
5634

query I rowsort
SELECT DISTINCT + ( - + 33 ) * - 38 AS col1 FROM tab0
----
1254

onlyif mysql # aggregate syntax: 
query I rowsort label-5377
SELECT DISTINCT - SUM( - col2 ) FROM tab0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5377
SELECT DISTINCT - SUM ( - col2 ) FROM tab0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT DISTINCT - - 0 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
0

query I rowsort
SELECT + col0 * 91 AS col1 FROM tab1 AS cor0
----
4641
7735
8281

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) <> ( + - col0 * - + 36 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - col1 ) NOT BETWEEN NULL AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 10 + - col2 col2 FROM tab1 AS cor0
----
-49
-58
-86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5383
SELECT ALL - CAST( NULL AS SIGNED ) + - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5383
SELECT ALL - CAST ( NULL AS INTEGER ) + - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5384
SELECT + COUNT( - col2 ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-5384
SELECT + COUNT ( - col2 ) FROM tab1 cor0
----
3

query I rowsort
SELECT DISTINCT + - 90 + + 93 * col2 AS col0 FROM tab0 AS cor0
----
4281
840
9117

query II rowsort
SELECT + col0, 50 AS col1 FROM tab2 AS cor0
----
46
50
64
50
75
50

query I rowsort
SELECT DISTINCT + col1 * + col2 + + 74 FROM tab2
----
1247
3154
3960

query II rowsort
SELECT DISTINCT - col1, + col1 FROM tab1
----
-14
14
-47
47
-5
5

query I rowsort
SELECT - col1 - + - 66 AS col0 FROM tab0
----
-15
45
65

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( ( - 52 ) + - ( - - col2 ) ) < ( - 25 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5392
SELECT ALL COUNT( * ) AS col0, COUNT( * ) FROM tab2
----
3
3

skipif mysql # not compatible
query II rowsort label-5392
SELECT ALL COUNT ( * ) AS col0, COUNT ( * ) FROM tab2
----
3
3

query I rowsort
SELECT ALL 73 + + col0 + 31 + - col0 * - col0 + 79 FROM tab1
----
2835
7493
8555

query I rowsort
SELECT - 42 + + col0 AS col1 FROM tab0
----
-27
45
55

query I rowsort
SELECT + col1 + + col2 + 4 AS col2 FROM tab0
----
104
132
35

onlyif mysql # DIV for integer division: 
query I rowsort label-5396
SELECT - col0 DIV + col1 + 39 AS col1 FROM tab1 AS cor0
----
22
36
38

skipif mysql # not compatible
query I rowsort label-5396
SELECT - col0 / + col1 + 39 AS col1 FROM tab1 AS cor0
----
22
36
38

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( - col2 + col2 )
----

query I rowsort
SELECT - col2 AS col1 FROM tab1 AS cor0 WHERE NULL = - 14
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - 99 + + 69 * + - col2 ) NOT IN ( - 59 + + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 3 * col0 FROM tab2 AS cor0 WHERE ( NULL ) <> NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - 21 * - 37 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5402
SELECT ALL col1 + col2 FROM tab1 WHERE - CAST( NULL AS SIGNED ) < - col1
----

skipif mysql # not compatible
query I rowsort label-5402
SELECT ALL col1 + col2 FROM tab1 WHERE - CAST ( NULL AS INTEGER ) < - col1
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - + col1 >= - - col0 - - + col1 * 91
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5404
SELECT ALL + col2 * - - ( CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5404
SELECT ALL + col2 * - - ( CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5405
SELECT DISTINCT + 50 DIV + + 74 AS col1 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-5405
SELECT DISTINCT + 50 / + + 74 AS col1 FROM tab1 cor0
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NOT ( NOT ( NOT - col0 NOT BETWEEN - col1 * + 94 AND NULL ) ) )
----
97
1
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5407
SELECT ALL - CAST( NULL AS SIGNED ) * - + MIN( DISTINCT col0 ) - + 67 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5407
SELECT ALL - CAST ( NULL AS INTEGER ) * - + MIN ( DISTINCT col0 ) - + 67 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT NULL < col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 77 * + col1 col2 FROM tab2 cor0
----
-3927
-5159
-5929

query I rowsort
SELECT ALL + + 92 FROM tab1 cor0
----
92
92
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5411
SELECT ALL CAST( COUNT( * ) AS SIGNED ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5411
SELECT ALL CAST ( COUNT ( * ) AS INTEGER ) AS col0 FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5412
SELECT DISTINCT + col0 * - + 18 + CAST( NULL AS SIGNED ) AS col2 FROM tab0 WHERE NOT + col2 + + - col2 > - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-5412
SELECT DISTINCT + col0 * - + 18 + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 WHERE NOT + col2 + + - col2 > - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT + 66 * col1 AS col2 FROM tab2
----
3366
4422
5082

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + - col2 * + ( + + col0 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5415
SELECT - SUM( ALL + 93 ) FROM tab0
----
-279

skipif mysql # not compatible
query I rowsort label-5415
SELECT - SUM ( ALL + 93 ) FROM tab0
----
-279

query I rowsort
SELECT ALL col2 FROM tab0 WHERE - 18 / - col0 IS NOT NULL
----
10
47
99

query I rowsort
SELECT DISTINCT - 51 * - col1 AS col1 FROM tab0
----
1071
4131
51

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 + + col0 * - 55 + + col1 * - col1 * col0 < NULL
----

query II rowsort
SELECT col2 AS col2, - col2 AS col0 FROM tab0 AS cor0
----
10
-10
47
-47
99
-99

query I rowsort
SELECT col0 * - 93 FROM tab1 AS cor0
----
-4743
-7905
-8463

onlyif mysql # aggregate syntax: 
query II rowsort label-5421
SELECT 49 * + COUNT( - 2 ) + - + 95 AS col1, ( - + 43 ) FROM tab2
----
52
-43

skipif mysql # not compatible
query II rowsort label-5421
SELECT 49 * + COUNT ( - 2 ) + - + 95 AS col1, ( - + 43 ) FROM tab2
----
52
-43

query I rowsort
SELECT DISTINCT col1 - + + 0 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5423
SELECT - + MIN( ALL + col2 ) + - 7 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-5423
SELECT - + MIN ( ALL + col2 ) + - 7 FROM tab1 AS cor0
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5424
SELECT DISTINCT - 72 * col1 + - col1 + - - CAST( NULL AS SIGNED ) / - col2 * col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5424
SELECT DISTINCT - 72 * col1 + - col1 + - - CAST ( NULL AS INTEGER ) / - col2 * col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5425
SELECT ALL - - COUNT( * ) + COUNT( - col0 ) AS col1 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-5425
SELECT ALL - - COUNT ( * ) + COUNT ( - col0 ) AS col1 FROM tab2 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5426
SELECT ALL + 83 - - COUNT( * ) FROM tab1 AS cor0
----
86

skipif mysql # not compatible
query I rowsort label-5426
SELECT ALL + 83 - - COUNT ( * ) FROM tab1 AS cor0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-5427
SELECT + 15 * - COUNT( * ) + - - MIN( ALL 74 ) col2 FROM tab0 cor0
----
29

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5427
SELECT + 15 * - COUNT ( * ) + - - MIN ( ALL 74 ) col2 FROM tab0 cor0
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-5428
SELECT COUNT( * ) AS col0 FROM tab0 cor0 WHERE ( ( - - 39 ) / col0 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-5428
SELECT COUNT ( * ) AS col0 FROM tab0 cor0 WHERE ( ( - - 39 ) / col0 ) IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5429
SELECT DISTINCT - COUNT( ALL col2 ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-5429
SELECT DISTINCT - COUNT ( ALL col2 ) AS col2 FROM tab2
----
-3

query I rowsort
SELECT DISTINCT - col0 * 84 + col1 * + col1 AS col2 FROM tab0
----
-6867
-8147
5301

onlyif mysql # DIV for integer division: 
query I rowsort label-5431
SELECT DISTINCT - 32 * - col0 + + - 19 DIV + 35 * - - col0 AS col0 FROM tab2
----
1472
2048
2400

skipif mysql # not compatible
query I rowsort label-5431
SELECT DISTINCT - 32 * - col0 + + - 19 / + 35 * - - col0 AS col0 FROM tab2
----
1472
2048
2400

onlyif mysql # aggregate syntax: 
query I rowsort label-5432
SELECT DISTINCT COUNT( * ) - - - COUNT( * ) + + 89 AS col1 FROM tab2
----
89

skipif mysql # not compatible
query I rowsort label-5432
SELECT DISTINCT COUNT ( * ) - - - COUNT ( * ) + + 89 AS col1 FROM tab2
----
89

query I rowsort
SELECT col0 * + - ( col1 ) AS col1 FROM tab0
----
-1215
-1827
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5434
SELECT ALL - COUNT( * ) - COUNT( * ) FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-5434
SELECT ALL - COUNT ( * ) - COUNT ( * ) FROM tab0
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5435
SELECT CAST( col1 AS SIGNED ) - 39 AS col2 FROM tab2
----
12
28
38

skipif mysql # not compatible
query I rowsort label-5435
SELECT CAST ( col1 AS INTEGER ) - 39 AS col2 FROM tab2
----
12
28
38

query I rowsort
SELECT col2 - - - 4 * - col0 - - col1 FROM tab0 AS cor0
----
188
379
488

onlyif mysql # aggregate syntax: 
query I rowsort label-5437
SELECT ALL COUNT( * ) + + 70 AS col2 FROM tab2 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-5437
SELECT ALL COUNT ( * ) + + 70 AS col2 FROM tab2 AS cor0
----
73

onlyif mysql # DIV for integer division: 
query I rowsort label-5438
SELECT + 47 DIV 36 AS col1 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5438
SELECT + 47 / 36 AS col1 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT ALL ( - 92 ) AS col2 FROM tab1
----
-92
-92
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-5440
SELECT DISTINCT + MAX( DISTINCT + col2 ) AS col1 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-5440
SELECT DISTINCT + MAX ( DISTINCT + col2 ) AS col1 FROM tab1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5441
SELECT - SUM( + - col1 ) FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-5441
SELECT - SUM ( + - col1 ) FROM tab1
----
66

query I rowsort
SELECT DISTINCT - 63 * + - col1 AS col1 FROM tab1
----
2961
315
882

query I rowsort
SELECT - - 83 * col0 FROM tab1 AS cor0
----
4233
7055
7553

query II rowsort
SELECT DISTINCT col0 AS col1, - 33 * 55 FROM tab0 AS cor0
----
15
-1815
87
-1815
97
-1815

query I rowsort
SELECT ALL col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5446
SELECT ALL + COUNT( * ) * + SUM( + 89 ) * - 45 - - 24 FROM tab2 AS cor0
----
-36021

skipif mysql # not compatible
query I rowsort label-5446
SELECT ALL + COUNT ( * ) * + SUM ( + 89 ) * - 45 - - 24 FROM tab2 AS cor0
----
-36021

query I rowsort
SELECT 36 - ( - AVG ( + + col1 ) ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5448
SELECT + 79 * + CAST( + COUNT( * ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
237

skipif mysql # not compatible
query I rowsort label-5448
SELECT + 79 * + CAST ( + COUNT ( * ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
237

onlyif mysql # aggregate syntax: 
query I rowsort label-5449
SELECT ALL + MIN( 36 ) FROM tab1 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-5449
SELECT ALL + MIN ( 36 ) FROM tab1 AS cor0
----
36

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 + 93 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5451
SELECT - + 8 AS col1, + MIN( 25 ) AS col2 FROM tab1 AS cor0
----
-8
25

skipif mysql # not compatible
query II rowsort label-5451
SELECT - + 8 AS col1, + MIN ( 25 ) AS col2 FROM tab1 AS cor0
----
-8
25

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col1 BETWEEN ( - + 9 ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5453
SELECT - MIN( - 63 ) FROM tab2 cor0
----
63

skipif mysql # not compatible
query I rowsort label-5453
SELECT - MIN ( - 63 ) FROM tab2 cor0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-5454
SELECT ALL + 40 * + MIN( DISTINCT 66 ) FROM tab2 AS cor0
----
2640

skipif mysql # not compatible
query I rowsort label-5454
SELECT ALL + 40 * + MIN ( DISTINCT 66 ) FROM tab2 AS cor0
----
2640

query I rowsort
SELECT ALL + col0 FROM tab1 WHERE NOT ( - col2 ) IN ( col0 )
----
51
85
91

query III rowsort
SELECT ALL * FROM tab1 WHERE + 29 - 9 >= - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - ( 15 ) * col2 AS col2 FROM tab1
----
-1020
-1440
-885

onlyif mysql # aggregate syntax: 
query I rowsort label-5458
SELECT + + COUNT( * ) AS col2 FROM tab0 WHERE NOT NULL < - col0
----
0

skipif mysql # not compatible
query I rowsort label-5458
SELECT + + COUNT ( * ) AS col2 FROM tab0 WHERE NOT NULL < - col0
----
0

query I rowsort
SELECT ALL + - ( - col1 ) + - + col2 AS col2 FROM tab0 AS cor0
----
-98
11
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5460
SELECT - CAST( 23 AS SIGNED ) + - col1 * col0 * + col2 FROM tab1 AS cor0
----
-25098
-290859
-68567

skipif mysql # not compatible
query I rowsort label-5460
SELECT - CAST ( 23 AS INTEGER ) + - col1 * col0 * + col2 FROM tab1 AS cor0
----
-25098
-290859
-68567

query I rowsort
SELECT ALL - 99 + 81 + + col2 * + col1 * - col1 * - col0 FROM tab0 AS cor0
----
383652
4625487
9585

query I rowsort
SELECT col0 * + - col0 + col1 FROM tab0 AS cor0
----
-144
-7548
-9408

query I rowsort
SELECT + 14 + - + col2 AS col1 FROM tab0 AS cor0
----
-33
-85
4

onlyif mysql # DIV for integer division: 
query I rowsort label-5464
SELECT DISTINCT col1 DIV + 80 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5464
SELECT DISTINCT col1 / + 80 FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-5465
SELECT DISTINCT col2 AS col1, + col2 DIV 87 + + ( - ( - 3 ) ) FROM tab1
----
59
3
68
3
96
4

skipif mysql # not compatible
query II rowsort label-5465
SELECT DISTINCT col2 AS col1, + col2 / 87 + + ( - ( - 3 ) ) FROM tab1
----
59
3
68
3
96
4

query I rowsort
SELECT + + 51 FROM tab2 cor0
----
51
51
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5467
SELECT - MIN( - col1 ) AS col2 FROM tab1 cor0
----
47

skipif mysql # not compatible
query I rowsort label-5467
SELECT - MIN ( - col1 ) AS col2 FROM tab1 cor0
----
47

query I rowsort
SELECT - 80 - 24 FROM tab0 AS cor0
----
-104
-104
-104

query I rowsort
SELECT ALL - + col1 + + + col2 AS col0 FROM tab2 AS cor0
----
-28
-37
-9

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5470
SELECT - col2 * + col0 * - col2 - CAST( NULL AS DECIMAL ) + - col1 + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5470
SELECT - col2 * + col0 * - col2 - CAST ( NULL AS REAL ) + - col1 + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5471
SELECT * FROM tab1 AS cor0 WHERE - col2 = - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5471
SELECT * FROM tab1 AS cor0 WHERE - col2 = - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT 61 + + ( + 48 ) FROM tab1
----
109

query I rowsort
SELECT ALL - 40 + - + col0 + - col2 * - + col2 * - col1 AS col2 FROM tab0
----
-178984
-2227
-9938

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5474
SELECT 37 + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5474
SELECT 37 + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE + - col2 <> NULL
----

query I rowsort
SELECT DISTINCT + ( + 5 ) FROM tab1
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5477
SELECT + CAST( NULL AS SIGNED ) * MAX( - col0 ) FROM tab1 AS cor0 WHERE NOT - 58 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5477
SELECT + CAST ( NULL AS INTEGER ) * MAX ( - col0 ) FROM tab1 AS cor0 WHERE NOT - 58 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5478
SELECT + COUNT( * ) * + - COUNT( * ) FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-5478
SELECT + COUNT ( * ) * + - COUNT ( * ) FROM tab0 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5479
SELECT ALL - + SUM( - ( 82 ) ) AS col0 FROM tab2 AS cor0
----
246

skipif mysql # not compatible
query I rowsort label-5479
SELECT ALL - + SUM ( - ( 82 ) ) AS col0 FROM tab2 AS cor0
----
246

onlyif mysql # aggregate syntax: 
query I rowsort label-5480
SELECT - - SUM( col2 ) AS col0 FROM tab0 cor0
----
156

skipif mysql # not compatible
query I rowsort label-5480
SELECT - - SUM ( col2 ) AS col0 FROM tab0 cor0
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-5481
SELECT ALL COUNT( - ( 28 ) ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5481
SELECT ALL COUNT ( - ( 28 ) ) AS col1 FROM tab2 AS cor0
----
3

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE ( NULL ) > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 col2 FROM tab0 WHERE NOT + col2 <= col1
----
99

query I rowsort
SELECT ( 62 ) FROM tab1
----
62
62
62

query I rowsort
SELECT DISTINCT - 65 AS col2 FROM tab2
----
-65

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND - - col0
----

query II rowsort
SELECT - 58 AS col2, 4 + + - col2 * 23 AS col2 FROM tab0 cor0
----
-58
-1077
-58
-226
-58
-2273

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 64 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 17 < ( - 39 ) * - - 78 + + col1
----

query I rowsort
SELECT DISTINCT - + col0 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND col0 * 79
----

query I rowsort
SELECT ALL col2 + - - col0 AS col1 FROM tab1 AS cor0 WHERE + col1 IS NULL
----

query I rowsort
SELECT ALL 46 * - - col0 / - col1 + - col0 FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5493
SELECT - - 2 AS col0, COUNT( * ) * + - CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0 WHERE NOT + col2 = NULL
----
2
NULL

skipif mysql # not compatible
query II rowsort label-5493
SELECT - - 2 AS col0, COUNT ( * ) * + - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0 WHERE NOT + col2 = NULL
----
2
NULL

query I rowsort
SELECT DISTINCT - + col1 * - col2 + - - col0 FROM tab1 AS cor0
----
1395
3287
380

onlyif mysql # aggregate syntax: 
query I rowsort label-5495
SELECT ALL COUNT( DISTINCT + - col0 ) * + - 68 FROM tab0
----
-204

skipif mysql # not compatible
query I rowsort label-5495
SELECT ALL COUNT ( DISTINCT + - col0 ) * + - 68 FROM tab0
----
-204

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5496
SELECT 18 DIV - ( + col1 ) + - CAST( + 34 AS SIGNED ) AS col1 FROM tab0
----
-34
-34
-52

skipif mysql # not compatible
query I rowsort label-5496
SELECT 18 / - ( + col1 ) + - CAST ( + 34 AS INTEGER ) AS col1 FROM tab0
----
-34
-34
-52

query I rowsort
SELECT col0 FROM tab1 WHERE NOT NULL <= col0
----

query I rowsort
SELECT DISTINCT ( + ( - - 38 ) ) AS col0 FROM tab2
----
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5499
SELECT SUM( DISTINCT + col2 ) + 82 DIV - + COUNT( * ) FROM tab2
----
94

skipif mysql # not compatible
query I rowsort label-5499
SELECT SUM ( DISTINCT + col2 ) + 82 / - + COUNT ( * ) FROM tab2
----
94

query I rowsort
SELECT ALL col2 * + + col1 FROM tab1
----
1344
295
3196

query II rowsort
SELECT ALL col2, - col0 FROM tab0
----
10
-87
47
-15
99
-97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5502
SELECT * FROM tab1 WHERE + + col2 * - col2 IN ( + CAST( col1 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5502
SELECT * FROM tab1 WHERE + + col2 * - col2 IN ( + CAST ( col1 AS INTEGER ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5503
SELECT - col2 DIV + ( 88 ) FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5503
SELECT - col2 / + ( 88 ) FROM tab0
----
-1
0
0

query III rowsort
SELECT * FROM tab0 WHERE NULL IN ( - col0, col1 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 37 / + - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5506
SELECT DISTINCT + 64 * - - col0 + - col2 + + col1 * + - CAST( NULL AS SIGNED ) / + + CAST( + col0 AS DECIMAL ) - + col1 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5506
SELECT DISTINCT + 64 * - - col0 + - col2 + + col1 * + - CAST ( NULL AS INTEGER ) / + + CAST ( + col0 AS REAL ) - + col1 FROM tab0 cor0
----
NULL

query II rowsort
SELECT - col1 + + 12, col2 AS col2 FROM tab1
----
-2
96
-35
68
7
59

query I rowsort
SELECT + col0 + - - col0 FROM tab2
----
128
150
92

query I rowsort
SELECT col1 * + col2 + 27 - 36 AS col1 FROM tab1
----
1335
286
3187

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5510
SELECT ALL + COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( - col0 / - - CAST( NULL AS SIGNED ) ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-5510
SELECT ALL + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( - col0 / - - CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5511
SELECT + MIN( + 77 ) AS col0 FROM tab1 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-5511
SELECT + MIN ( + 77 ) AS col0 FROM tab1 AS cor0
----
77

query I rowsort
SELECT ALL - 59 - + - col0 FROM tab0 AS cor0
----
-44
28
38

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE - 34 * + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 29 + 30 - - ( - - col0 ) AS col0 FROM tab0 AS cor0
----
146
156
74

onlyif mysql # DIV for integer division: 
query I rowsort label-5515
SELECT DISTINCT + - ( - - col1 ) DIV + + 68 - col0 FROM tab2 AS cor0
----
-46
-65
-75

skipif mysql # not compatible
query I rowsort label-5515
SELECT DISTINCT + - ( - - col1 ) / + + 68 - col0 FROM tab2 AS cor0
----
-46
-65
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5516
SELECT MIN( - - ( + CAST( + col1 AS SIGNED ) ) ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5516
SELECT MIN ( - - ( + CAST ( + col1 AS INTEGER ) ) ) FROM tab0 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5517
SELECT ALL COUNT( - 85 ) * 0 - + + MAX( - 97 ) AS col0 FROM tab2
----
97

skipif mysql # not compatible
query I rowsort label-5517
SELECT ALL COUNT ( - 85 ) * 0 - + + MAX ( - 97 ) AS col0 FROM tab2
----
97

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NOT col1 + - col1 IS NOT NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE - col0 * - + col0 NOT BETWEEN NULL AND col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5520
SELECT DISTINCT + ( - - 1 ) - + COUNT( * ) DIV 71 * + - COUNT( * ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-5520
SELECT DISTINCT + ( - - 1 ) - + COUNT ( * ) / 71 * + - COUNT ( * ) FROM tab1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5521
SELECT ALL - 29 + - 56 * - COUNT( DISTINCT col1 ) * + + COUNT( * ) col0 FROM tab2
----
475

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5521
SELECT ALL - 29 + - 56 * - COUNT ( DISTINCT col1 ) * + + COUNT ( * ) col0 FROM tab2
----
475

query II rowsort
SELECT ALL col1, col1 * col2 + col0 AS col2 FROM tab0
----
1
196
21
297
81
3822

query I rowsort
SELECT ALL col2 AS col0 FROM tab2 WHERE - - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5524
SELECT ALL MAX( - col2 ) AS col0 FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-5524
SELECT ALL MAX ( - col2 ) AS col0 FROM tab1
----
-59

query I rowsort
SELECT - + 68 * - + col1 AS col1 FROM tab2 AS cor0
----
3468
4556
5236

onlyif mysql # aggregate syntax: 
query I rowsort label-5526
SELECT - + SUM( DISTINCT + col1 ) * + + 84 AS col1 FROM tab0 AS cor0
----
-8652

skipif mysql # not compatible
query I rowsort label-5526
SELECT - + SUM ( DISTINCT + col1 ) * + + 84 AS col1 FROM tab0 AS cor0
----
-8652

query I rowsort
SELECT ALL + 47 FROM tab1 WHERE 12 * - col1 * - + 43 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 74 col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

query I rowsort
SELECT - col2 * + col1 - 74 FROM tab2 AS cor0
----
-1247
-3154
-3960

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + ( - col1 ) col0 FROM tab1 AS cor0
----
-14
-47
-5

query I rowsort
SELECT DISTINCT - + 44 AS col0 FROM tab0 AS cor0
----
-44

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 * - + 20 > - 85
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5533
SELECT + + col1 * CAST( NULL AS SIGNED ) + + + 33 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5533
SELECT + + col1 * CAST ( NULL AS INTEGER ) + + + 33 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col0 * 73 * - - col2 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col2 = - 17
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL ( + col2 ) * + col2 * 15 AS col0 FROM tab0
----
147015
1500
33135

query I rowsort
SELECT + 84 FROM tab1 WHERE ( NULL ) NOT BETWEEN ( + col0 + + + col1 + col0 ) AND ( 11 * col1 / 63 * + col0 * - col1 )
----

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab2 WHERE NOT NULL NOT BETWEEN col1 AND + ( + col1 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 * + 95 * + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col0 FROM tab1 WHERE + col2 + - 52 IS NOT NULL
----
51
85
91

query I rowsort
SELECT DISTINCT col0 * - + ( + - col2 ) * + col0 AS col1 FROM tab2
----
163840
326250
48668

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5542
SELECT DISTINCT 70 + + COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL IN ( - - 7, - CAST( + 52 AS SIGNED ), - + col1 ) AND NOT - col1 / + col1 NOT IN ( - 84, - col0 / + ( col2 ) )
----
70

skipif mysql # not compatible
query I rowsort label-5542
SELECT DISTINCT 70 + + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL IN ( - - 7, - CAST ( + 52 AS INTEGER ), - + col1 ) AND NOT - col1 / + col1 NOT IN ( - 84, - col0 / + ( col2 ) )
----
70

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL < ( NULL )
----

query I rowsort
SELECT col2 + - 71 AS col2 FROM tab0 AS cor0
----
-24
-61
28

onlyif mysql # aggregate syntax: 
query I rowsort label-5545
SELECT DISTINCT MAX( DISTINCT col0 ) * + + MAX( ALL - col2 ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
-1725

skipif mysql # not compatible
query I rowsort label-5545
SELECT DISTINCT MAX ( DISTINCT col0 ) * + + MAX ( ALL - col2 ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
-1725

query III rowsort
SELECT * FROM tab1 WHERE - 99 IS NULL
----

query II rowsort
SELECT ALL + 89, col0 AS col1 FROM tab2
----
89
46
89
64
89
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5548
SELECT + 26 - + MIN( DISTINCT - - col0 ) FROM tab1 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-5548
SELECT + 26 - + MIN ( DISTINCT - - col0 ) FROM tab1 AS cor0
----
-25

query I rowsort
SELECT DISTINCT - col1 + - + col1 AS col0 FROM tab0 AS cor0
----
-162
-2
-42

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5550
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col1 + + - col0 * + 8 + col2 > - + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5550
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col1 + + - col0 * + 8 + col2 > - + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT - col1 * + col2 + 58 + + col2 FROM tab2 AS cor0
----
-1092
-2982
-3770

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5552
SELECT ALL - - 80 * + - CAST( - + ( - CAST( + 83 AS SIGNED ) ) AS SIGNED ) * + col2 AS col1 FROM tab0 AS cor0
----
-312080
-657360
-66400

skipif mysql # not compatible
query I rowsort label-5552
SELECT ALL - - 80 * + - CAST ( - + ( - CAST ( + 83 AS INTEGER ) ) AS INTEGER ) * + col2 AS col1 FROM tab0 AS cor0
----
-312080
-657360
-66400

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5553
SELECT - 15 - 90 DIV COUNT( * ) AS col1 FROM tab1 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-5553
SELECT - 15 - 90 / COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5554
SELECT 11 AS col1 FROM tab0 AS cor0 WHERE - ( CAST( - col1 AS SIGNED ) ) IS NULL OR NOT ( + - 59 ) NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-5554
SELECT 11 AS col1 FROM tab0 AS cor0 WHERE - ( CAST ( - col1 AS INTEGER ) ) IS NULL OR NOT ( + - 59 ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5555
SELECT COUNT( * ) + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-5555
SELECT COUNT ( * ) + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5556
SELECT DISTINCT MIN( + 29 ) * - 33 FROM tab1 AS cor0
----
-957

skipif mysql # not compatible
query I rowsort label-5556
SELECT DISTINCT MIN ( + 29 ) * - 33 FROM tab1 AS cor0
----
-957

query II rowsort
SELECT DISTINCT + col0 AS col1, 48 * + 57 FROM tab0 cor0
----
15
2736
87
2736
97
2736

onlyif mysql # aggregate syntax: 
query I rowsort label-5558
SELECT ALL - SUM( col0 ) * - MAX( DISTINCT col2 ) FROM tab1
----
21792

skipif mysql # not compatible
query I rowsort label-5558
SELECT ALL - SUM ( col0 ) * - MAX ( DISTINCT col2 ) FROM tab1
----
21792

query I rowsort
SELECT ALL ( + 5 ) FROM tab2
----
5
5
5

onlyif mysql # DIV for integer division: 
query II rowsort label-5560
SELECT DISTINCT - col1 DIV col2 AS col2, + 91 + - col0 FROM tab0
----
-1
76
-2
4
0
-6

skipif mysql # not compatible
query II rowsort label-5560
SELECT DISTINCT - col1 / col2 AS col2, + 91 + - col0 FROM tab0
----
-1
76
-2
4
0
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-5561
SELECT DISTINCT - col0 DIV + 85 AS col2 FROM tab0
----
-1
0

skipif mysql # not compatible
query I rowsort label-5561
SELECT DISTINCT - col0 / + 85 AS col2 FROM tab0
----
-1
0

query I rowsort
SELECT ( + 9 ) AS col0 FROM tab0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5563
SELECT ALL * FROM tab1 WHERE + CAST( NULL AS SIGNED ) > NULL
----

skipif mysql # not compatible
query III rowsort label-5563
SELECT ALL * FROM tab1 WHERE + CAST ( NULL AS INTEGER ) > NULL
----

query II rowsort
SELECT - ( + 14 ) * 14 AS col2, + col1 FROM tab1
----
-196
14
-196
47
-196
5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5565
SELECT - CAST( + 31 AS SIGNED ) AS col0, 3 - + - ( - col2 ) AS col1 FROM tab1 AS cor0
----
-31
-56
-31
-65
-31
-93

skipif mysql # not compatible
query II rowsort label-5565
SELECT - CAST ( + 31 AS INTEGER ) AS col0, 3 - + - ( - col2 ) AS col1 FROM tab1 AS cor0
----
-31
-56
-31
-65
-31
-93

query II rowsort
SELECT ALL ( col1 ), + 0 AS col0 FROM tab0 AS cor0
----
1
0
21
0
81
0

query I rowsort
SELECT col0 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) > - + col1
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 + + col2 * + col2 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col0 * + 49 + + + col1 * 54 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 52 col0 FROM tab0 AS cor0
----
52
52
52

query II rowsort
SELECT - col0, + col2 FROM tab1 AS cor0
----
-51
96
-85
59
-91
68

query I rowsort
SELECT DISTINCT - + 95 + + col1 FROM tab2 cor0
----
-18
-28
-44

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5573
SELECT ALL * FROM tab1 AS cor0 WHERE - CAST( NULL AS SIGNED ) + - col1 * col0 * col2 * - col1 >= + 10
----

skipif mysql # not compatible
query III rowsort label-5573
SELECT ALL * FROM tab1 AS cor0 WHERE - CAST ( NULL AS INTEGER ) + - col1 * col0 * col2 * - col1 >= + 10
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5574
SELECT DISTINCT + + COUNT( col2 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5574
SELECT DISTINCT + + COUNT ( col2 ) AS col2 FROM tab0 AS cor0
----
3

query I rowsort
SELECT ( - - col2 ) * + 72 + 18 AS col0 FROM tab0
----
3402
7146
738

onlyif mysql # aggregate syntax: 
query I rowsort label-5576
SELECT ALL COUNT( * ) * - + 94 + + - 89 AS col0 FROM tab2
----
-371

skipif mysql # not compatible
query I rowsort label-5576
SELECT ALL COUNT ( * ) * - + 94 + + - 89 AS col0 FROM tab2
----
-371

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5577
SELECT + COUNT( * ) DIV + - 61 col0 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5577
SELECT + COUNT ( * ) / + - 61 col0 FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5578
SELECT - col0 DIV col1 * - col1 FROM tab2 AS cor0
----
0
0
67

skipif mysql # not compatible
query I rowsort label-5578
SELECT - col0 / col1 * - col1 FROM tab2 AS cor0
----
0
0
67

query I rowsort
SELECT - col2 AS col1 FROM tab0 AS cor0 WHERE NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5580
SELECT ALL COUNT( * ) + + 82 AS col1 FROM tab0
----
85

skipif mysql # not compatible
query I rowsort label-5580
SELECT ALL COUNT ( * ) + + 82 AS col1 FROM tab0
----
85

query I rowsort
SELECT ALL col1 * + + 3 FROM tab0
----
243
3
63

onlyif mysql # aggregate syntax: 
query I rowsort label-5582
SELECT ALL + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL >= NULL )
----
0

skipif mysql # not compatible
query I rowsort label-5582
SELECT ALL + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL >= NULL )
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col0 <= NULL
----

query I rowsort
SELECT ALL - + col1 * 25 FROM tab1 AS cor0
----
-1175
-125
-350

query I rowsort
SELECT DISTINCT - col2 * + + col1 AS col1 FROM tab0 AS cor0
----
-210
-3807
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - ( - - 69 ) col1 FROM tab2 AS cor0
----
69
69
69

query I rowsort
SELECT DISTINCT - col2 * - + col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) > - + col1
----

query I rowsort
SELECT + + 90 * + + 79 AS col2 FROM tab0 AS cor0
----
7110
7110
7110

query I rowsort
SELECT - 98 * + + col0 AS col0 FROM tab2 AS cor0
----
-4508
-6272
-7350

query I rowsort
SELECT - col2 FROM tab1 WHERE NOT + 95 + - col1 IS NOT NULL
----

query II rowsort
SELECT - col2 AS col0, + 34 FROM tab1
----
-59
34
-68
34
-96
34

onlyif mysql # aggregate syntax: 
query II rowsort label-5592
SELECT + COUNT( * ) AS col0, - 45 AS col2 FROM tab1
----
3
-45

skipif mysql # not compatible
query II rowsort label-5592
SELECT + COUNT ( * ) AS col0, - 45 AS col2 FROM tab1
----
3
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-5593
SELECT MAX( ALL - - 83 ) AS col0 FROM tab0
----
83

skipif mysql # not compatible
query I rowsort label-5593
SELECT MAX ( ALL - - 83 ) AS col0 FROM tab0
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5594
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1, 9 AS col1 FROM tab2
----
NULL
9

skipif mysql # not compatible
query II rowsort label-5594
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1, 9 AS col1 FROM tab2
----
NULL
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5595
SELECT ALL - CAST( + col0 AS SIGNED ) * + col1 AS col0 FROM tab1
----
-425
-4277
-714

skipif mysql # not compatible
query I rowsort label-5595
SELECT ALL - CAST ( + col0 AS INTEGER ) * + col1 AS col0 FROM tab1
----
-425
-4277
-714

onlyif mysql # DIV for integer division: 
query I rowsort label-5596
SELECT ALL + 99 DIV + + col1 AS col2 FROM tab2 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5596
SELECT ALL + 99 / + + col1 AS col2 FROM tab2 cor0
----
1
1
1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND 51
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col0 >= - 81 + - col1 + + + 22
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5599
SELECT ( - col2 ) DIV - col0 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5599
SELECT ( - col2 ) / - col0 FROM tab2 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5600
SELECT ALL - - COUNT( * ) + COUNT( * ) FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-5600
SELECT ALL - - COUNT ( * ) + COUNT ( * ) FROM tab0 AS cor0
----
6

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 49 - 82 * - + col1 BETWEEN NULL AND 14
----

query I rowsort
SELECT + - col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-15
-87
-97

query I rowsort
SELECT - - col0 * 68 AS col2 FROM tab1 AS cor0
----
3468
5780
6188

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col0 * + col1 BETWEEN - col1 AND - 62 + + ( + - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5605
SELECT DISTINCT + + 95 * - MAX( - + col1 ) AS col0 FROM tab0 cor0 WHERE NOT ( NULL ) <= - + 13
----
NULL

skipif mysql # not compatible
query I rowsort label-5605
SELECT DISTINCT + + 95 * - MAX ( - + col1 ) AS col0 FROM tab0 cor0 WHERE NOT ( NULL ) <= - + 13
----
NULL

query I rowsort
SELECT DISTINCT - col1 + - - col1 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5607
SELECT ALL + COUNT( * ) col1 FROM tab2 WHERE NOT NULL IS NOT NULL AND NOT + + col0 < NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5607
SELECT ALL + COUNT ( * ) col1 FROM tab2 WHERE NOT NULL IS NOT NULL AND NOT + + col0 < NULL
----
0

query I rowsort
SELECT ALL - col1 + + - 33 AS col0 FROM tab1 WHERE col0 > 94 AND ( NOT + ( - - col1 ) IS NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - 53 col1 FROM tab1
----
-104
-138
-144

query I rowsort
SELECT - 60 + - - 76 AS col2 FROM tab1 WHERE - 2 = NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5611
SELECT ALL COUNT( * ) AS col2, 30 FROM tab0
----
3
30

skipif mysql # not compatible
query II rowsort label-5611
SELECT ALL COUNT ( * ) AS col2, 30 FROM tab0
----
3
30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - + ( + + col2 ) + + col2 col0 FROM tab2
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5613
SELECT ALL + MIN( ALL col1 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5613
SELECT ALL + MIN ( ALL col1 ) FROM tab0 AS cor0
----
1

query I rowsort
SELECT col1 + + 95 AS col2 FROM tab1 AS cor0
----
100
109
142

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5615
SELECT - MAX( DISTINCT - - col2 ) + - 95 + + - 7 DIV + COUNT( * ) AS col0 FROM tab2 cor0
----
-155

skipif mysql # not compatible
query I rowsort label-5615
SELECT - MAX ( DISTINCT - - col2 ) + - 95 + + - 7 / + COUNT ( * ) AS col0 FROM tab2 cor0
----
-155

onlyif mysql # aggregate syntax: 
query I rowsort label-5616
SELECT ALL - COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( NOT ( NULL IS NOT NULL ) )
----
0

skipif mysql # not compatible
query I rowsort label-5616
SELECT ALL - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( NOT ( NULL IS NOT NULL ) )
----
0

query I rowsort
SELECT col0 + - col0 + - + col2 FROM tab0 AS cor0
----
-10
-47
-99

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5618
SELECT DISTINCT + col0 + CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5618
SELECT DISTINCT + col0 + CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT DISTINCT - col2 + + col1 AS col1, + 37 FROM tab1
----
-21
37
-54
37
-82
37

query I rowsort
SELECT ALL + 70 AS col0 FROM tab2 AS cor0 WHERE NOT - ( col0 ) + + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5621
SELECT ALL 77 * + + 51 - + COUNT( * ) FROM tab2 AS cor0
----
3924

skipif mysql # not compatible
query I rowsort label-5621
SELECT ALL 77 * + + 51 - + COUNT ( * ) FROM tab2 AS cor0
----
3924

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 45 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 32 * - 90 AS col2 FROM tab0 AS cor0 WHERE NOT + col1 / - col2 * col2 > + 37
----
-2880

onlyif mysql # aggregate syntax: 
query I rowsort label-5624
SELECT ALL COUNT( * ) * - - 73 AS col0 FROM tab2
----
219

skipif mysql # not compatible
query I rowsort label-5624
SELECT ALL COUNT ( * ) * - - 73 AS col0 FROM tab2
----
219

onlyif mysql # DIV for integer division: 
query I rowsort label-5625
SELECT - 15 DIV + col1 FROM tab0
----
-15
0
0

skipif mysql # not compatible
query I rowsort label-5625
SELECT - 15 / + col1 FROM tab0
----
-15
0
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL >= - + col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( col1 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5628
SELECT MIN( - 63 ) AS col1 FROM tab1
----
-63

skipif mysql # not compatible
query I rowsort label-5628
SELECT MIN ( - 63 ) AS col1 FROM tab1
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-5629
SELECT DISTINCT - MIN( DISTINCT + col0 ) AS col2 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-5629
SELECT DISTINCT - MIN ( DISTINCT + col0 ) AS col2 FROM tab0
----
-15

query III rowsort
SELECT * FROM tab0 WHERE NOT - + col0 = col0 - + 81
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 62 * - + col0 AS col2 FROM tab0
----
-5394
-6014
-930

onlyif mysql # DIV for integer division: 
query I rowsort label-5632
SELECT DISTINCT - col0 * 17 DIV - 6 col1 FROM tab0
----
246
274
42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5632
SELECT DISTINCT - col0 * 17 / - 6 col1 FROM tab0
----
246
274
42

query I rowsort
SELECT DISTINCT - col0 * + 95 FROM tab2
----
-4370
-6080
-7125

query I rowsort
SELECT ALL + col2 * + col1 * 20 FROM tab2
----
23460
61600
77720

onlyif mysql # aggregate syntax: 
query I rowsort label-5635
SELECT ALL + ( COUNT( * ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5635
SELECT ALL + ( COUNT ( * ) ) FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5636
SELECT + CAST( + ( col2 ) AS SIGNED ) AS col1 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-5636
SELECT + CAST ( + ( col2 ) AS INTEGER ) AS col1 FROM tab2
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5637
SELECT COUNT( * ) * MAX( - col1 ) FROM tab1 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-5637
SELECT COUNT ( * ) * MAX ( - col1 ) FROM tab1 AS cor0
----
-15

query I rowsort
SELECT ALL col2 * + 31 * + col1 AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + + 6 AS col2 FROM tab1 cor0
----
6
6
6

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 31 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - ( + - 19 ) AS col1 FROM tab2 cor0
----
19
19
19

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 24 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + AVG ( DISTINCT col1 ) AS col2 FROM tab2 AS cor0 WHERE NOT + col2 * - - 93 >= NULL
----
NULL

query II rowsort
SELECT ALL + ( + col1 ) AS col2, - col2 AS col2 FROM tab1
----
14
-96
47
-68
5
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5645
SELECT - col1 / 22 * + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5645
SELECT - col1 / 22 * + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 * - - 16 FROM tab2
----
-1024
-1200
-736

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5647
SELECT - CAST( NULL AS SIGNED ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5647
SELECT - CAST ( NULL AS INTEGER ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # DIV for integer division: 
query II rowsort label-5648
SELECT DISTINCT + ( - + col0 ) + - ( - + col0 ) AS col2, - ( - 86 ) DIV 69 + + col2 * + 18 + col2 FROM tab2 AS cor0
----
0
1103
0
438
0
761

skipif mysql # not compatible
query II rowsort label-5648
SELECT DISTINCT + ( - + col0 ) + - ( - + col0 ) AS col2, - ( - 86 ) / 69 + + col2 * + 18 + col2 FROM tab2 AS cor0
----
0
1103
0
438
0
761

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 63 + - col0 - - 34 col1 FROM tab2 AS cor0
----
-104
-75
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-5650
SELECT - - COUNT( * ) + - COUNT( + - 44 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5650
SELECT - - COUNT ( * ) + - COUNT ( + - 44 ) FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5651
SELECT DISTINCT COUNT( * ) * - + 62 + + 61 + - MAX( - col1 ) col1 FROM tab0 AS cor0
----
-124

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5651
SELECT DISTINCT COUNT ( * ) * - + 62 + + 61 + - MAX ( - col1 ) col1 FROM tab0 AS cor0
----
-124

query I rowsort
SELECT ALL + + 49 + - col0 FROM tab0 AS cor0
----
-38
-48
34

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 7 * 74 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE 91 * + - 80 BETWEEN col1 AND + - col1 + - 83 * + col1
----

query II rowsort
SELECT ALL - col2 * - col0 AS col2, + col0 + - 77 FROM tab0
----
705
-62
870
10
9603
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 - + col0 + - + ( - col2 ) col0 FROM tab0
----
-67
101
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5657
SELECT ALL 53 DIV - COUNT( * ) col0 FROM tab2
----
-17

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5657
SELECT ALL 53 / - COUNT ( * ) col0 FROM tab2
----
-17

query I rowsort
SELECT - col1 * col2 * - + ( + + col0 ) FROM tab2
----
197120
291450
53958

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL BETWEEN NULL AND ( + + col1 ) + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5660
SELECT DISTINCT + + COUNT( * ) + - 61 AS col1 FROM tab0 cor0
----
-58

skipif mysql # not compatible
query I rowsort label-5660
SELECT DISTINCT + + COUNT ( * ) + - 61 AS col1 FROM tab0 cor0
----
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-5661
SELECT ALL - 25 - + 81, + SUM( 10 ) AS col1 FROM tab0 AS cor0
----
-106
30

skipif mysql # not compatible
query II rowsort label-5661
SELECT ALL - 25 - + 81, + SUM ( 10 ) AS col1 FROM tab0 AS cor0
----
-106
30

query I rowsort
SELECT ALL - 10 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f68f33032846e21ee6b2c668fc10355e

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5663
SELECT + 45 DIV 69 * - + MAX( ALL + - col1 ) * - + 58 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5663
SELECT + 45 / 69 * - + MAX ( ALL + - col1 ) * - + 58 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5664
SELECT DISTINCT + col2 FROM tab2 AS cor0 WHERE NOT CAST( NULL AS DECIMAL ) * - 14 / 25 IS NOT NULL
----
23
40
58

skipif mysql # not compatible
query I rowsort label-5664
SELECT DISTINCT + col2 FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS REAL ) * - 14 / 25 IS NOT NULL
----
23
40
58

query I rowsort
SELECT DISTINCT - - 48 FROM tab0 cor0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-5666
SELECT + ( MAX( ALL col2 ) ) AS col0 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-5666
SELECT + ( MAX ( ALL col2 ) ) AS col0 FROM tab2 AS cor0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5667
SELECT DISTINCT - COUNT( * ) * - SUM( + col2 ) FROM tab1 AS cor0
----
669

skipif mysql # not compatible
query I rowsort label-5667
SELECT DISTINCT - COUNT ( * ) * - SUM ( + col2 ) FROM tab1 AS cor0
----
669

onlyif mysql # aggregate syntax: 
query I rowsort label-5668
SELECT MAX( + 18 ) AS col2 FROM tab1
----
18

skipif mysql # not compatible
query I rowsort label-5668
SELECT MAX ( + 18 ) AS col2 FROM tab1
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-5669
SELECT col2 DIV - + col1 * - 11 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5669
SELECT col2 / - + col1 * - 11 FROM tab2
----
0
0
0

query I rowsort
SELECT col0 FROM tab2 WHERE NOT + + col0 * - col0 IS NOT NULL
----

query I rowsort
SELECT + col2 + + + ( col2 ) FROM tab0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL = - + ( - 55 )
----

query I rowsort
SELECT ALL 59 * - - col2 AS col2 FROM tab1
----
3481
4012
5664

query I rowsort
SELECT DISTINCT - + 82 AS col1 FROM tab2 AS cor0
----
-82

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE NULL <= NULL
----

query I rowsort
SELECT - 74 + col0 AS col2 FROM tab2 AS cor0
----
-10
-28
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5677
SELECT + 75 + - CAST( - 21 AS SIGNED ) + - - col2 col2 FROM tab2 AS cor0
----
119
136
154

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5677
SELECT + 75 + - CAST ( - 21 AS INTEGER ) + - - col2 col2 FROM tab2 AS cor0
----
119
136
154

query I rowsort
SELECT - col2 * - col1 / + 2 FROM tab1 AS cor0 WHERE col2 * - 11 > + 61
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 66 IN ( - col0, 5 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + + col2 col2 FROM tab0
----
198
20
94

query I rowsort
SELECT - 57 + - col2 AS col1 FROM tab2
----
-115
-80
-97

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - - col0 / col2 / col0 * - 83 <> - - col0
----

query I rowsort
SELECT - ( - 18 ) FROM tab2 cor0
----
18
18
18

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) <= ( NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5685
SELECT + - 60 DIV + - COUNT( * ) FROM tab2 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-5685
SELECT + - 60 / + - COUNT ( * ) FROM tab2 AS cor0
----
20

query II rowsort
SELECT ALL + ( col0 ) * col0 + + + ( + - col2 ), - col1 AS col2 FROM tab1 AS cor0
----
2505
-14
7166
-5
8213
-47

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE col0 + 95 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5688
SELECT CAST( NULL AS DECIMAL ) * + + col1 - + + col2 * + CAST( NULL AS SIGNED ) + - col1 / + CAST( NULL AS SIGNED ) col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5688
SELECT CAST ( NULL AS REAL ) * + + col1 - + + col2 * + CAST ( NULL AS INTEGER ) + - col1 / + CAST ( NULL AS INTEGER ) col2 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5689
SELECT + + SUM