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( + col1 ) - + 69 AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5689
SELECT + + SUM ( + col1 ) - + 69 AS col1 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT col0 - - 67 FROM tab2 AS cor0
----
113
131
142

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 + + col2 AS col2, + ( + col2 ) col2 FROM tab0
----
-11
10
-34
47
98
99

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab2 WHERE ( NOT - col1 * + - 15 IS NULL )
----
-46
-64
-75

query I rowsort
SELECT + + col2 + col1 FROM tab2 WHERE col1 IS NOT NULL
----
117
125
74

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

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

query I rowsort
SELECT DISTINCT - 16 + - + col0 + - col1 FROM tab1 AS cor0
----
-106
-154
-81

query I rowsort
SELECT + + 36 * col2 FROM tab0 AS cor0
----
1692
3564
360

onlyif mysql # aggregate syntax: 
query I rowsort label-5698
SELECT ALL COUNT( + col0 ) + - 87 FROM tab0 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-5698
SELECT ALL COUNT ( + col0 ) + - 87 FROM tab0 AS cor0
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-5699
SELECT ALL + COUNT( * ) * SUM( DISTINCT - - col2 ) AS col2 FROM tab0 AS cor0
----
468

skipif mysql # not compatible
query I rowsort label-5699
SELECT ALL + COUNT ( * ) * SUM ( DISTINCT - - col2 ) AS col2 FROM tab0 AS cor0
----
468

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5702
SELECT DISTINCT + MAX( - 71 ) col2, + 94 + + - MAX( DISTINCT + col0 ) FROM tab2 AS cor0
----
-71
19

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5702
SELECT DISTINCT + MAX ( - 71 ) col2, + 94 + + - MAX ( DISTINCT + col0 ) FROM tab2 AS cor0
----
-71
19

query I rowsort
SELECT ALL + 27 FROM tab2 cor0
----
27
27
27

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

query II rowsort
SELECT DISTINCT + col0 AS col2, + 53 * - ( - - col1 ) AS col1 FROM tab1
----
51
-742
85
-265
91
-2491

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5707
SELECT ALL COUNT( + col0 ) AS col0 FROM tab2 WHERE - + col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5707
SELECT ALL COUNT ( + col0 ) AS col0 FROM tab2 WHERE - + col2 IS NULL
----
0

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5708
SELECT ALL + SUM ( ALL col2 ) col0 FROM tab0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT + col0 * + 14 * col2 FROM tab0
----
12180
134442
9870

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 18 col2 FROM tab1
----
18
18
18

onlyif mysql # aggregate syntax: 
query I rowsort label-5714
SELECT DISTINCT - ( + - 48 ) + COUNT( * ) + + MIN( - 69 ) FROM tab1
----
-18

skipif mysql # not compatible
query I rowsort label-5714
SELECT DISTINCT - ( + - 48 ) + COUNT ( * ) + + MIN ( - 69 ) FROM tab1
----
-18

query I rowsort
SELECT ALL + - col2 + ( + - 19 ) FROM tab0 AS cor0
----
-118
-29
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-5716
SELECT DISTINCT COUNT( * ) + + + ( - COUNT( * ) ) * 97 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) > - - col1 * - - col0 * + 52
----
0

skipif mysql # not compatible
query I rowsort label-5716
SELECT DISTINCT COUNT ( * ) + + + ( - COUNT ( * ) ) * 97 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) > - - col1 * - - col0 * + 52
----
0

query II rowsort
SELECT ALL - + col0 * + col2 * col2 - + 77 + 91 + - col2 AS col1, 81 AS col0 FROM tab0 AS cor0 WHERE NOT - col1 IS NOT NULL
----

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

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

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

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

skipif mysql # not compatible
query I rowsort label-5720
SELECT 25 * CAST ( NULL AS INTEGER ) * + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

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

query I rowsort
SELECT - + ( - - col1 ) * + col2 * - col2 FROM tab1 WHERE ( 27 * - 48 NOT BETWEEN + 87 AND - col1 )
----
129024
17405
217328

query I rowsort
SELECT DISTINCT - + 85 + + col1 * - 1 FROM tab0 AS cor0
----
-106
-166
-86

query I rowsort
SELECT ALL - 24 * + + col2 + col1 FROM tab1 AS cor0
----
-1411
-1585
-2290

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 16 col0 FROM tab0 AS cor0 WHERE - 29 - + - col1 <> NULL
----

query I rowsort
SELECT DISTINCT + col2 * 66 - - col2 FROM tab2 AS cor0
----
1541
2680
3886

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5729
SELECT DISTINCT 60 + COUNT( * ) AS col0 FROM tab1
----
63

skipif mysql # not compatible
query I rowsort label-5729
SELECT DISTINCT 60 + COUNT ( * ) AS col0 FROM tab1
----
63

query I rowsort
SELECT DISTINCT col0 - - + 51 FROM tab0
----
138
148
66

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5731
SELECT DISTINCT + CAST( + - col0 AS SIGNED ) - + + col0 AS col2, + col1 - + col1 FROM tab0
----
-174
0
-194
0
-30
0

skipif mysql # not compatible
query II rowsort label-5731
SELECT DISTINCT + CAST ( + - col0 AS INTEGER ) - + + col0 AS col2, + col1 - + col1 FROM tab0
----
-174
0
-194
0
-30
0

query I rowsort
SELECT + 6 - + + col1 AS col0 FROM tab0
----
-15
-75
5

query I rowsort
SELECT col0 * col2 - - col1 FROM tab0
----
786
891
9604

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5735
SELECT - ( + MAX( - + col1 ) ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-5735
SELECT - ( + MAX ( - + col1 ) ) FROM tab0
----
1

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

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

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

query I rowsort
SELECT + col2 * - + col1 FROM tab1 AS cor0
----
-1344
-295
-3196

onlyif mysql # DIV for integer division: 
query I rowsort label-5739
SELECT ALL + 60 DIV - + ( - col1 ) col0 FROM tab1 cor0
----
1
12
4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5739
SELECT ALL + 60 / - + ( - col1 ) col0 FROM tab1 cor0
----
1
12
4

query I rowsort
SELECT - 35 * + 78 AS col1 FROM tab1 AS cor0
----
-2730
-2730
-2730

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 45 * + col1 * 70 col2 FROM tab0
----
-255150
-3150
-66150

query II rowsort
SELECT col0 AS col2, 20 + - + ( col0 ) FROM tab1
----
51
-31
85
-65
91
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-5743
SELECT - SUM( + ( + 89 ) ) FROM tab0
----
-267

skipif mysql # not compatible
query I rowsort label-5743
SELECT - SUM ( + ( + 89 ) ) FROM tab0
----
-267

query I rowsort
SELECT DISTINCT 32 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
32

query I rowsort
SELECT ALL col1 * - + 7 AS col0 FROM tab0 AS cor0
----
-147
-567
-7

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5747
SELECT DISTINCT + COUNT( * ) DIV 10 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5747
SELECT DISTINCT + COUNT ( * ) / 10 AS col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT - - col0 FROM tab0 AS cor0 WHERE NOT 74 / - ( + 37 ) + - 20 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5749
SELECT + 85 DIV - col2 FROM tab1 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-5749
SELECT + 85 / - col2 FROM tab1 AS cor0
----
-1
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5750
SELECT 37 * - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN col0 AND ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-5750
SELECT 37 * - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN col0 AND ( NULL )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 col0, col1 AS col0 FROM tab0 AS cor0
----
1
1
21
21
81
81

query I rowsort
SELECT + col0 FROM tab1 WHERE NOT ( NOT col2 <= + 70 - + 78 * + 4 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5753
SELECT + 13 * - + COUNT( * ) AS col1 FROM tab2
----
-39

skipif mysql # not compatible
query I rowsort label-5753
SELECT + 13 * - + COUNT ( * ) AS col1 FROM tab2
----
-39

query I rowsort
SELECT - col2 * + 3 * + + 28 FROM tab0
----
-3948
-8316
-840

onlyif mysql # aggregate syntax: 
query I rowsort label-5755
SELECT DISTINCT MIN( + 5 ) AS col0 FROM tab0
----
5

skipif mysql # not compatible
query I rowsort label-5755
SELECT DISTINCT MIN ( + 5 ) AS col0 FROM tab0
----
5

query I rowsort
SELECT - col0 * col0 - - col2 + 63 FROM tab1 AS cor0
----
-2442
-7103
-8150

query I rowsort
SELECT + col0 * + col0 + - + col2 FROM tab0 AS cor0
----
178
7559
9310

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5759
SELECT COUNT( * ) + - - MIN( ALL + col2 ) FROM tab1 AS cor0 WHERE ( - - 94 * - - col1 * - - col0 IS NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5759
SELECT COUNT ( * ) + - - MIN ( ALL + col2 ) FROM tab1 AS cor0 WHERE ( - - 94 * - - col1 * - - col0 IS NULL )
----
NULL

query I rowsort
SELECT 39 - col1 FROM tab0 AS cor0
----
-42
18
38

onlyif mysql # DIV for integer division: 
query I rowsort label-5761
SELECT col2 - - col2 + - col0 * - 72 + + 8 DIV + col2 FROM tab2 AS cor0
----
3358
4688
5516

skipif mysql # not compatible
query I rowsort label-5761
SELECT col2 - - col2 + - col0 * - 72 + + 8 / + col2 FROM tab2 AS cor0
----
3358
4688
5516

query I rowsort
SELECT - ( + col0 ) - 8 AS col0 FROM tab1 AS cor0
----
-59
-93
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5763
SELECT DISTINCT 6 + ( CAST( - col1 AS SIGNED ) ) FROM tab2 AS cor0
----
-45
-61
-71

skipif mysql # not compatible
query I rowsort label-5763
SELECT DISTINCT 6 + ( CAST ( - col1 AS INTEGER ) ) FROM tab2 AS cor0
----
-45
-61
-71

query I rowsort
SELECT + + 42 - 4 * col0 FROM tab2 AS cor0
----
-142
-214
-258

query I rowsort
SELECT ALL + col0 + - - col1 * + + col1 FROM tab1 AS cor0
----
110
2300
247

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 45, + col1 col1 FROM tab1 AS cor0
----
45
14
45
47
45
5

query I rowsort
SELECT ALL col2 * col1 - + ( - 97 ) FROM tab2 AS cor0
----
1270
3177
3983

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-5769
SELECT + col2 / + CAST( col1 AS SIGNED ), col0 AS col0 FROM tab0 cor0 WHERE CAST( + - col2 AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query II rowsort label-5769
SELECT + col2 / + CAST ( col1 AS INTEGER ), col0 AS col0 FROM tab0 cor0 WHERE CAST ( + - col2 AS REAL ) IS NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5772
SELECT - MIN( ALL - col0 ) col2 FROM tab2
----
75

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + 50 + col2 col1 FROM tab2 WHERE NOT + col2 BETWEEN + 6 + + col0 AND NULL
----
124
167
175

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

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

query I rowsort
SELECT ALL + col1 * - ( col1 ) AS col2 FROM tab1
----
-196
-2209
-25

query I rowsort
SELECT ALL 69 * + col1 FROM tab1
----
3243
345
966

query I rowsort
SELECT + 17 * + col0 * - - 97 AS col0 FROM tab0 AS cor0
----
143463
159953
24735

onlyif mysql # aggregate syntax: 
query I rowsort label-5778
SELECT MAX( ALL + + 5 ) FROM tab2
----
5

skipif mysql # not compatible
query I rowsort label-5778
SELECT MAX ( ALL + + 5 ) FROM tab2
----
5

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

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

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

query I rowsort
SELECT ALL - - ( ( - col0 ) ) * - col0 AS col1 FROM tab1 AS cor0
----
2601
7225
8281

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

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

query II rowsort
SELECT DISTINCT 69 + - col0 + - - col1, col1 FROM tab1 cor0
----
-11
5
25
47
32
14

onlyif mysql # aggregate syntax: 
query II rowsort label-5784
SELECT ( - MIN( ALL col2 ) ) AS col1, ( 0 ) AS col1 FROM tab1 cor0
----
-59
0

skipif mysql # not compatible
query II rowsort label-5784
SELECT ( - MIN ( ALL col2 ) ) AS col1, ( 0 ) AS col1 FROM tab1 cor0
----
-59
0

query I rowsort
SELECT ALL - col0 * - col2 * - col0 FROM tab1 cor0
----
-249696
-426275
-563108

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

query I rowsort
SELECT DISTINCT - col0 + - + col0 AS col1 FROM tab1 AS cor0
----
-102
-170
-182

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

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

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

skipif mysql # not compatible
query I rowsort label-5789
SELECT DISTINCT - ( MAX ( + 65 ) ) FROM tab1
----
-65

query I rowsort
SELECT col0 + + 43 + - col1 FROM tab1
----
123
80
87

query I rowsort
SELECT + - col2 * 23 + + col1 FROM tab1 WHERE - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5792
SELECT - 28 * - SUM( col0 ) * - 60 FROM tab1
----
-381360

skipif mysql # not compatible
query I rowsort label-5792
SELECT - 28 * - SUM ( col0 ) * - 60 FROM tab1
----
-381360

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 77 + + 85 IS NOT NULL
----

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

skipif mysql # not compatible
query I rowsort label-5795
SELECT - COUNT ( * ) / - MAX ( ALL - - col0 ) AS col0 FROM tab0
----
0

query I rowsort
SELECT DISTINCT + 53 * + 44 FROM tab2
----
2332

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + ( + + ( 11 ) ) * col2 col0, + col2 AS col2 FROM tab1
----
1056
96
649
59
748
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5798
SELECT MAX( + col1 ) FROM tab2 AS cor0 WHERE col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5798
SELECT MAX ( + col1 ) FROM tab2 AS cor0 WHERE col0 IS NULL
----
NULL

query II rowsort
SELECT ALL + 79 + + - col1 AS col2, col2 AS col1 FROM tab1 AS cor0
----
32
68
65
96
74
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5800
SELECT DISTINCT MAX( CAST( - col0 AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-5800
SELECT DISTINCT MAX ( CAST ( - col0 AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-5801
SELECT + 94 + + SUM( - + col2 ) * - COUNT( * ) FROM tab1
----
763

skipif mysql # not compatible
query I rowsort label-5801
SELECT + 94 + + SUM ( - + col2 ) * - COUNT ( * ) FROM tab1
----
763

onlyif mysql # DIV for integer division: 
query I rowsort label-5802
SELECT - col2 + + - 33 DIV - + col2 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-5802
SELECT - col2 + + - 33 / - + col2 FROM tab1
----
-59
-68
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5803
SELECT + col1 + ( CAST( + col2 AS SIGNED ) ) FROM tab1
----
110
115
64

skipif mysql # not compatible
query I rowsort label-5803
SELECT + col1 + ( CAST ( + col2 AS INTEGER ) ) FROM tab1
----
110
115
64

query I rowsort
SELECT 6 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5808
SELECT CAST( + 83 AS SIGNED ) * + - col1 FROM tab2
----
-4233
-5561
-6391

skipif mysql # not compatible
query I rowsort label-5808
SELECT CAST ( + 83 AS INTEGER ) * + - col1 FROM tab2
----
-4233
-5561
-6391

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5809
SELECT * FROM tab0 WHERE NOT - CAST( NULL AS DECIMAL ) * - 20 <= NULL
----

skipif mysql # not compatible
query III rowsort label-5809
SELECT * FROM tab0 WHERE NOT - CAST ( NULL AS REAL ) * - 20 <= NULL
----

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5811
SELECT - COUNT( * ) AS col0, COUNT( * ) col1 FROM tab0
----
-3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5811
SELECT - COUNT ( * ) AS col0, COUNT ( * ) col1 FROM tab0
----
-3
3

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5812
SELECT DISTINCT 69 AS col2, + COUNT ( * ) col0 FROM tab1
----
69
3

query I rowsort
SELECT 80 AS col0 FROM tab0 WHERE NOT NULL < + 38 * col1
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5815
SELECT + 12 * + CAST( NULL AS SIGNED ) FROM tab2 WHERE NOT NULL <= + + col0
----

skipif mysql # not compatible
query I rowsort label-5815
SELECT + 12 * + CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT NULL <= + + col0
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5817
SELECT DISTINCT - CAST( - col2 AS SIGNED ) FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-5817
SELECT DISTINCT - CAST ( - col2 AS INTEGER ) FROM tab2
----
23
40
58

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5819
SELECT - COUNT( * ) AS col1, + 82 FROM tab0 AS cor0
----
-3
82

skipif mysql # not compatible
query II rowsort label-5819
SELECT - COUNT ( * ) AS col1, + 82 FROM tab0 AS cor0
----
-3
82

onlyif mysql # DIV for integer division: 
query I rowsort label-5820
SELECT col1 DIV - 19 AS col2 FROM tab1 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-5820
SELECT col1 / - 19 AS col2 FROM tab1 AS cor0
----
-2
0
0

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

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

query I rowsort
SELECT + col0 * + 9 FROM tab1 WHERE NOT col1 > ( NULL )
----

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

query I rowsort
SELECT - 52 + - 88 FROM tab2
----
-140
-140
-140

query I rowsort
SELECT 87 - + col1 * col0 FROM tab1
----
-338
-4190
-627

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5826
SELECT 66 * + 56 - 70 * + CAST( NULL AS DECIMAL ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5826
SELECT 66 * + 56 - 70 * + CAST ( NULL AS REAL ) AS col0 FROM tab2
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5828
SELECT ALL COUNT( + col2 ) FROM tab1 WHERE NULL NOT IN ( + 84 )
----
0

skipif mysql # not compatible
query I rowsort label-5828
SELECT ALL COUNT ( + col2 ) FROM tab1 WHERE NULL NOT IN ( + 84 )
----
0

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

query I rowsort
SELECT DISTINCT - 7 + + col0 * - col0 FROM tab0
----
-232
-7576
-9416

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5833
SELECT - CAST( NULL AS SIGNED ) FROM tab1 WHERE col2 <= ( - col2 * col0 )
----

skipif mysql # not compatible
query I rowsort label-5833
SELECT - CAST ( NULL AS INTEGER ) FROM tab1 WHERE col2 <= ( - col2 * col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 / - col1 col1 FROM tab1 WHERE NOT NULL = 53
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5835
SELECT ( + SUM( ALL 95 ) ) AS col2 FROM tab1
----
285

skipif mysql # not compatible
query I rowsort label-5835
SELECT ( + SUM ( ALL 95 ) ) AS col2 FROM tab1
----
285

query I rowsort
SELECT - ( col0 ) - + 3 FROM tab2
----
-49
-67
-78

query I rowsort
SELECT ALL col2 * - 95 AS col0 FROM tab1
----
-5605
-6460
-9120

query I rowsort
SELECT + col1 - 25 AS col1 FROM tab1
----
-11
-20
22

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

query III rowsort
SELECT * FROM tab2 WHERE + 77 * + col0 IN ( + 28 * - col1 + - 99 * col1 )
----

query I rowsort
SELECT - col0 + - ( col1 ) AS col1 FROM tab2
----
-141
-142
-97

query I rowsort
SELECT DISTINCT 36 * - 15 AS col2 FROM tab0
----
-540

onlyif mysql # aggregate syntax: 
query I rowsort label-5843
SELECT DISTINCT COUNT( ( col2 ) ) * + 54 AS col1 FROM tab2
----
162

skipif mysql # not compatible
query I rowsort label-5843
SELECT DISTINCT COUNT ( ( col2 ) ) * + 54 AS col1 FROM tab2
----
162

query I rowsort
SELECT ALL + 97 FROM tab2 WHERE NOT col1 + 84 / - col1 NOT BETWEEN col2 AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE - 37 + - 94 * col1 IS NULL
----

query I rowsort
SELECT - ( + 31 ) * - col2 AS col2 FROM tab0
----
1457
3069
310

query I rowsort
SELECT col1 * - 5 FROM tab0 WHERE NOT 32 * col1 IS NOT NULL
----

query I rowsort
SELECT + col0 * 36 AS col0 FROM tab0
----
3132
3492
540

query I rowsort
SELECT - 33 * 11 FROM tab1
----
-363
-363
-363

query I rowsort
SELECT ALL 59 + - 2 AS col1 FROM tab0 AS cor0
----
57
57
57

query I rowsort
SELECT + 19 * col0 + + 2 AS col2 FROM tab1 AS cor0
----
1617
1731
971

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 col0 FROM tab2 AS cor0 WHERE - 7 / col1 IS NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5854
SELECT ALL 25 + ( - COUNT( * ) ) AS col0 FROM tab0 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-5854
SELECT ALL 25 + ( - COUNT ( * ) ) AS col0 FROM tab0 AS cor0
----
22

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

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

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

query I rowsort
SELECT 28 FROM tab2 AS cor0 WHERE - 98 >= ( col2 )
----

query I rowsort
SELECT ALL col0 * col0 + 70 AS col2 FROM tab1 AS cor0
----
2671
7295
8351

onlyif mysql # DIV for integer division: 
query I rowsort label-5859
SELECT DISTINCT + col0 - col0 DIV - col0 FROM tab0
----
16
88
98

skipif mysql # not compatible
query I rowsort label-5859
SELECT DISTINCT + col0 - col0 / - col0 FROM tab0
----
16
88
98

onlyif mysql # DIV for integer division: 
query I rowsort label-5860
SELECT DISTINCT col1 + 25 DIV + col0 FROM tab0
----
1
21
82

skipif mysql # not compatible
query I rowsort label-5860
SELECT DISTINCT col1 + 25 / + col0 FROM tab0
----
1
21
82

onlyif mysql # aggregate syntax: 
query I rowsort label-5861
SELECT ALL - COUNT( * ) - 33 FROM tab2
----
-36

skipif mysql # not compatible
query I rowsort label-5861
SELECT ALL - COUNT ( * ) - 33 FROM tab2
----
-36

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 WHERE ( + 71 ) IS NOT NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

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

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

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5866
SELECT + MAX ( ALL - col1 ) col0 FROM tab1 AS cor0
----
-5

query I rowsort
SELECT + + 2 * + 41 AS col0 FROM tab0 AS cor0
----
82
82
82

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 99 + 26 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col0 * - col1 FROM tab1 AS cor0 WHERE NOT col1 + - col2 IS NULL
----
-425
-4277
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-5870
SELECT + COUNT( * ) * 40 FROM tab0 AS cor0
----
120

skipif mysql # not compatible
query I rowsort label-5870
SELECT + COUNT ( * ) * 40 FROM tab0 AS cor0
----
120

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5871
SELECT ALL * FROM tab2 AS cor0 WHERE col2 / - CAST( 78 * 52 AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5871
SELECT ALL * FROM tab2 AS cor0 WHERE col2 / - CAST ( 78 * 52 AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5872
SELECT - - 79 * COUNT( col0 - + ( - col0 ) * + col1 ) AS col2 FROM tab1 AS cor0
----
237

skipif mysql # not compatible
query I rowsort label-5872
SELECT - - 79 * COUNT ( col0 - + ( - col0 ) * + col1 ) AS col2 FROM tab1 AS cor0
----
237

onlyif mysql # aggregate syntax: 
query I rowsort label-5873
SELECT DISTINCT SUM( + col2 ) AS col0 FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-5873
SELECT DISTINCT SUM ( + col2 ) AS col0 FROM tab2
----
121

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5874
SELECT - ( - col1 ) - - col2 AS col2 FROM tab1 WHERE + CAST( 31 AS SIGNED ) + - 17 >= + col2 + - ( col1 ) OR col0 IS NOT NULL
----
110
115
64

skipif mysql # not compatible
query I rowsort label-5874
SELECT - ( - col1 ) - - col2 AS col2 FROM tab1 WHERE + CAST ( 31 AS INTEGER ) + - 17 >= + col2 + - ( col1 ) OR col0 IS NOT NULL
----
110
115
64

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

query III rowsort
SELECT * FROM tab2 WHERE NOT ( 98 ) NOT BETWEEN col0 AND col1
----

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

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

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

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

query I rowsort
SELECT DISTINCT - - ( + + 18 ) + col2 AS col1 FROM tab1 AS cor0
----
114
77
86

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

query I rowsort
SELECT DISTINCT - - 81 AS col1 FROM tab0 AS cor0
----
81

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

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

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

query I rowsort
SELECT DISTINCT + 58 AS col0 FROM tab1, tab2 cor0
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-5886
SELECT col1 DIV + 45 + - ( - ( + col0 ) ) + - col1 AS col2 FROM tab1 cor0
----
37
45
80

skipif mysql # not compatible
query I rowsort label-5886
SELECT col1 / + 45 + - ( - ( + col0 ) ) + - col1 AS col2 FROM tab1 cor0
----
37
45
80

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5889
SELECT DISTINCT - 34 + - 3 + - + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5889
SELECT DISTINCT - 34 + - 3 + - + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL < ( - col2 )
----

query I rowsort
SELECT ALL + col0 * - col0 + - 46 * 26 FROM tab1 AS cor0
----
-3797
-8421
-9477

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 9 * - - col1 > 38 * col0
----

query I rowsort
SELECT DISTINCT - 70 + col1 + + ( + 20 ) * + 36 AS col0 FROM tab2 cor0
----
701
717
727

query I rowsort
SELECT ALL + - col1 * + col0 * + col1 FROM tab1 AS cor0
----
-201019
-2125
-9996

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 67 * - - col2 <= ( NULL )
----

query I rowsort
SELECT ALL - col0 + - 77 FROM tab0 cor0
----
-164
-174
-92

query I rowsort
SELECT ALL - col1 + - 31 AS col1 FROM tab0
----
-112
-32
-52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 49 * col0 col0 FROM tab1
----
-2499
-4165
-4459

query I rowsort
SELECT col2 * + + col2 * + - col0 * 8 FROM tab1
----
-2367080
-3366272
-3760128

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

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

query I rowsort
SELECT + col0 * - + col1 * + 76 AS col2 FROM tab2
----
-178296
-374528
-381900

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5902
SELECT CAST( + col0 AS SIGNED ) * + col1 * 49 FROM tab0
----
4753
59535
89523

skipif mysql # not compatible
query I rowsort label-5902
SELECT CAST ( + col0 AS INTEGER ) * + col1 * 49 FROM tab0
----
4753
59535
89523

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5904
SELECT 73 * - COUNT( * ) FROM tab1
----
-219

skipif mysql # not compatible
query I rowsort label-5904
SELECT 73 * - COUNT ( * ) FROM tab1
----
-219

query I rowsort
SELECT DISTINCT + ( + col0 ) FROM tab0 WHERE NOT NULL NOT IN ( + col2 + - - col0 - 16 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5906
SELECT DISTINCT 22 DIV - + col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5906
SELECT DISTINCT 22 / - + col2 FROM tab1
----
0

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

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

skipif mysql # not compatible
query I rowsort label-5908
SELECT DISTINCT MIN ( + col1 ) FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5909
SELECT DISTINCT - COUNT( * ) + COUNT( * ) AS col0 FROM tab2 WHERE NOT ( + col1 ) <= col0
----
0

skipif mysql # not compatible
query I rowsort label-5909
SELECT DISTINCT - COUNT ( * ) + COUNT ( * ) AS col0 FROM tab2 WHERE NOT ( + col1 ) <= col0
----
0

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

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

query I rowsort
SELECT ALL 8 + + + col1 FROM tab1
----
13
22
55

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5918
SELECT + 91 DIV ( - col2 ) FROM tab0 AS cor0
----
-1
-9
0

skipif mysql # not compatible
query I rowsort label-5918
SELECT + 91 / ( - col2 ) FROM tab0 AS cor0
----
-1
-9
0

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

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

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

skipif mysql # not compatible
query I rowsort label-5920
SELECT DISTINCT - - MAX ( col0 ) FROM tab0 AS cor0
----
97

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

query II rowsort
SELECT + col1, ( - 4 ) FROM tab0
----
1
-4
21
-4
81
-4

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

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

query II rowsort
SELECT ALL - col1 AS col0, 5 + col2 + - - col2 + col0 * + col1 * col0 * - col1 AS col0 FROM tab0
----
-1
-9206
-21
-3337904
-81
-1476126

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5927
SELECT DISTINCT + + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT + col2 > - - 55 * col0 + + col1
----
3

skipif mysql # not compatible
query I rowsort label-5927
SELECT DISTINCT + + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT + col2 > - - 55 * col0 + + col1
----
3

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

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

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

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

query I rowsort
SELECT ALL - + col0 * - col1 * - 37 FROM tab1 AS cor0
----
-15725
-158249
-26418

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + 59 col0 FROM tab0 cor0
----
-40
12
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5933
SELECT DISTINCT + col0 FROM tab0 WHERE NOT ( - ( ( + + ( - CAST( 42 AS SIGNED ) ) ) ) ) BETWEEN 73 - 75 * col2 AND CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-5933
SELECT DISTINCT + col0 FROM tab0 WHERE NOT ( - ( ( + + ( - CAST ( 42 AS INTEGER ) ) ) ) ) BETWEEN 73 - 75 * col2 AND CAST ( NULL AS INTEGER )
----

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

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

query I rowsort
SELECT - 3 AS col1 FROM tab0 AS cor0
----
-3
-3
-3

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 8 <= 54
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5938
SELECT DISTINCT col0 FROM tab0 cor0 WHERE NULL >= + col2 + + 5 - + CAST( + col1 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-5938
SELECT DISTINCT col0 FROM tab0 cor0 WHERE NULL >= + col2 + + 5 - + CAST ( + col1 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5939
SELECT ( - SUM( - 75 ) ) AS col1 FROM tab1 cor0
----
225

skipif mysql # not compatible
query I rowsort label-5939
SELECT ( - SUM ( - 75 ) ) AS col1 FROM tab1 cor0
----
225

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5940
SELECT DISTINCT col0 + + + col1 AS col0, CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0
----
108
NULL
96
NULL
98
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5940
SELECT DISTINCT col0 + + + col1 AS col0, CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
108
NULL
96
NULL
98
NULL

query I rowsort
SELECT DISTINCT + + 92 FROM tab2 cor0
----
92

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - - col1 * + col2 * - 53 * col0 + col1 * - - 73 IS NULL
----

query I rowsort
SELECT + 66 + + - col2 AS col2 FROM tab2
----
26
43
8

onlyif mysql # aggregate syntax: 
query I rowsort label-5944
SELECT ALL + 98 - - COUNT( * ) FROM tab2
----
101

skipif mysql # not compatible
query I rowsort label-5944
SELECT ALL + 98 - - COUNT ( * ) FROM tab2
----
101

query I rowsort
SELECT - 32 + - - 93 AS col2 FROM tab0
----
61
61
61

onlyif mysql # DIV for integer division: 
query II rowsort label-5946
SELECT col2 + - - 25 DIV + 49 AS col0, + col0 - + col2 AS col2 FROM tab2 AS cor0
----
23
23
40
24
58
17

skipif mysql # not compatible
query II rowsort label-5946
SELECT col2 + - - 25 / + 49 AS col0, + col0 - + col2 AS col2 FROM tab2 AS cor0
----
23
23
40
24
58
17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 63 + - col1 col1, col0 / 63 AS col0 FROM tab0 AS cor0 WHERE NOT col1 <> NULL
----

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

query I rowsort
SELECT ALL col1 * - - 41 + col2 AS col0 FROM tab1 AS cor0
----
1995
264
670

query I rowsort
SELECT DISTINCT + col1 * - + 91 + col2 * + col0 AS col1 FROM tab0 AS cor0
----
-1041
-6666
9512

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

query I rowsort
SELECT DISTINCT + 20 * col0 * + col0 FROM tab0
----
151380
188180
4500

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

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

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

query I rowsort
SELECT ALL 38 * - col2 FROM tab2
----
-1520
-2204
-874

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

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

query I rowsort
SELECT ALL 95 AS col1 FROM tab2 AS cor0
----
95
95
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( - + col0 ) col2 FROM tab0 AS cor0
----
-15
-87
-97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 / - - col0 < col0 + 35 / + + 61
----

query I rowsort
SELECT 62 * - col0 AS col0 FROM tab2 AS cor0
----
-2852
-3968
-4650

query I rowsort
SELECT ALL col1 * - 47 * col1 FROM tab0 AS cor0
----
-20727
-308367
-47

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

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

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

query I rowsort
SELECT ALL 83 * - ( - col0 ) * col0 FROM tab0 AS cor0
----
18675
628227
780947

query I rowsort
SELECT col2 * - + col2 * - col2 FROM tab1 AS cor0
----
205379
314432
884736

onlyif mysql # DIV for integer division: 
query I rowsort label-5966
SELECT DISTINCT - ( 33 ) DIV - col0 AS col2 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-5966
SELECT DISTINCT - ( 33 ) / - col0 AS col2 FROM tab2 cor0
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5968
SELECT ALL + SUM( - + col1 ) * - COUNT( * ) FROM tab1
----
198

skipif mysql # not compatible
query I rowsort label-5968
SELECT ALL + SUM ( - + col1 ) * - COUNT ( * ) FROM tab1
----
198

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

query I rowsort
SELECT ALL - 49 + - col2 FROM tab1 AS cor0
----
-108
-117
-145

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

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

query I rowsort
SELECT 0 - - col2 FROM tab1 AS cor0 WHERE ( col0 ) IS NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5974
SELECT DISTINCT - COUNT( - 93 ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5974
SELECT DISTINCT - COUNT ( - 93 ) AS col2 FROM tab2 AS cor0
----
-3

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

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

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

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

query I rowsort
SELECT + col0 + + - 78 FROM tab2 AS cor0
----
-14
-3
-32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - + 82 * col0 + + 95 col2 FROM tab0 cor0
----
-1054
-7018
-7858

onlyif mysql # aggregate syntax: 
query I rowsort label-5979
SELECT ALL + MAX( DISTINCT col2 ) FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-5979
SELECT ALL + MAX ( DISTINCT col2 ) FROM tab0 AS cor0
----
99

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

query I rowsort
SELECT DISTINCT 29 AS col0 FROM tab1 AS cor0 WHERE 44 BETWEEN NULL AND + + col1 + - col2
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5984
SELECT ALL - 46 + - col1 DIV - col2 AS col2 FROM tab0 AS cor0
----
-44
-45
-46

skipif mysql # not compatible
query I rowsort label-5984
SELECT ALL - 46 + - col1 / - col2 AS col2 FROM tab0 AS cor0
----
-44
-45
-46

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5985
SELECT * FROM tab0 WHERE ( - CAST( - col2 AS DECIMAL ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5985
SELECT * FROM tab0 WHERE ( - CAST ( - col2 AS REAL ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT AVG ( ALL - - ( 60 ) ) FROM tab2 WHERE ( col2 ) IS NULL
----
NULL

query I rowsort
SELECT DISTINCT col1 - + 74 AS col0 FROM tab1
----
-27
-60
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-5988
SELECT DISTINCT ( - - col1 ) + 16 DIV + col1 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-5988
SELECT DISTINCT ( - - col1 ) + 16 / + col1 FROM tab2
----
51
67
77

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

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

query I rowsort
SELECT ALL col1 - + ( - 7 ) AS col0 FROM tab0
----
28
8
88

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

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

query I rowsort
SELECT 38 FROM tab0 WHERE NOT NULL BETWEEN ( - 52 ) AND + + 59 * - col1 * + - col2
----

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

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

query I rowsort
SELECT DISTINCT - col0 * - 3 AS col0 FROM tab2
----
138
192
225

query I rowsort
SELECT ALL 94 * - col1 AS col1 FROM tab0 AS cor0
----
-1974
-7614
-94

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5997
SELECT - col1 * - 65 * + - col2 + 3 - + CAST( + + 44 AS SIGNED ) FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - col2 + - col0 AND 75 * 39
----

skipif mysql # not compatible
query I rowsort label-5997
SELECT - col1 * - 65 * + - col2 + 3 - + CAST ( + + 44 AS INTEGER ) FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - col2 + - col0 AND 75 * 39
----

query I rowsort
SELECT + - ( + 15 ) + + col1 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-1
-10
32

onlyif mysql # DIV for integer division: 
query I rowsort label-5999
SELECT + col2 * - col2 DIV - col2 + col2 FROM tab1 AS cor0
----
118
136
192

skipif mysql # not compatible
query I rowsort label-5999
SELECT + col2 * - col2 / - col2 + col2 FROM tab1 AS cor0
----
118
136
192

query I rowsort
SELECT ALL col1 * - - col1 AS col0 FROM tab1 AS cor0
----
196
2209
25

query I rowsort
SELECT 51 * - - col1 FROM tab1 cor0
----
2397
255
714

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6003
SELECT + ( - col1 ) AS col2, col0 + + CAST( - col2 AS SIGNED ) FROM tab0 AS cor0 WHERE NOT ( NOT + - 98 IS NULL )
----

skipif mysql # not compatible
query II rowsort label-6003
SELECT + ( - col1 ) AS col2, col0 + + CAST ( - col2 AS INTEGER ) FROM tab0 AS cor0 WHERE NOT ( NOT + - 98 IS NULL )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 15 NOT IN ( - 68 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6005
SELECT ALL COUNT( - 59 ) col0 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6005
SELECT ALL COUNT ( - 59 ) col0 FROM tab1
----
3

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6009
SELECT COUNT( - col0 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-6009
SELECT COUNT ( - col0 ) FROM tab0
----
3

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

query II rowsort
SELECT DISTINCT col1 + + + col0 + - col1 * + + col0 AS col2, + 46 - - ( - 78 ) FROM tab2 AS cor0
----
-2249
-32
-4787
-32
-4883
-32

query I rowsort
SELECT col0 * + col1 * 69 * + 85 * + - 33 + + 38 + + 11 * col2 * - - 97 FROM tab0 cor0
----
-18668194
-235106988
-353596007

query III rowsort
SELECT * FROM tab1 WHERE 23 <= - - col1
----
91
47
68

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL <= - 95
----

query I rowsort
SELECT + 30 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6016
SELECT DISTINCT ( + col0 ) + CAST( - + col1 AS SIGNED ) AS col1 FROM tab2
----
-13
-5
8

skipif mysql # not compatible
query I rowsort label-6016
SELECT DISTINCT ( + col0 ) + CAST ( - + col1 AS INTEGER ) AS col1 FROM tab2
----
-13
-5
8

query I rowsort
SELECT DISTINCT col0 * + + 24 FROM tab0
----
2088
2328
360

onlyif mysql # aggregate syntax: 
query I rowsort label-6018
SELECT - COUNT( * ) * 8 * - COUNT( * ) AS col0 FROM tab0 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-6018
SELECT - COUNT ( * ) * 8 * - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
72

query I rowsort
SELECT 94 * + col0 AS col1 FROM tab2 AS cor0
----
4324
6016
7050

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6021
SELECT MIN( + CAST( NULL AS SIGNED ) ) - MAX( + + col1 ) FROM tab2 AS cor0
----
NULL

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

query I rowsort
SELECT ALL 81 + - col1 * - col1 + - 70 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + 32 * - + 64 FROM tab2 cor0 WHERE col2 * + col2 > - - col1
----
-2048
-2048
-2048

query I rowsort
SELECT - + col0 + - - 9 + - col1 + - + col1 * + col2 - 51 + - - col1 AS col1 FROM tab0 AS cor0
----
-238
-339
-3864

query II rowsort
SELECT ALL + 39 + - + col0 + - col0 AS col2, + col0 AS col1 FROM tab1 AS cor0
----
-131
85
-143
91
-63
51

onlyif mysql # aggregate syntax: 
query I rowsort label-6026
SELECT ALL + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE col2 IN ( + col0, + 88 )
----
0

skipif mysql # not compatible
query I rowsort label-6026
SELECT ALL + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE col2 IN ( + col0, + 88 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6027
SELECT + MAX( ALL - col1 ) AS col2 FROM tab1 WHERE NULL >= - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6027
SELECT + MAX ( ALL - col1 ) AS col2 FROM tab1 WHERE NULL >= - col2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col1 FROM tab0 WHERE col0 * - + 54 * + 87 * + - col1 >= + + col2
----
1
21
81

query III rowsort
SELECT * FROM tab0 WHERE NULL <> ( - col0 )
----

query I rowsort
SELECT - col0 + - col2 + 92 AS col1 FROM tab0
----
-104
-5
30

query I rowsort
SELECT 34 / - 66 FROM tab1 WHERE NULL BETWEEN - ( + 70 ) AND NULL
----

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

query II rowsort
SELECT ALL col0, + 13 * col0 * - col0 FROM tab1
----
51
-33813
85
-93925
91
-107653

query I rowsort
SELECT DISTINCT + col0 - - - 54 AS col0 FROM tab1
----
-3
31
37

onlyif mysql # aggregate syntax: 
query I rowsort label-6035
SELECT ALL 23 * + + SUM( ALL - 39 ) AS col1 FROM tab0
----
-2691

skipif mysql # not compatible
query I rowsort label-6035
SELECT ALL 23 * + + SUM ( ALL - 39 ) AS col1 FROM tab0
----
-2691

onlyif mysql # aggregate syntax: 
query I rowsort label-6036
SELECT MAX( - 11 ) FROM tab0
----
-11

skipif mysql # not compatible
query I rowsort label-6036
SELECT MAX ( - 11 ) FROM tab0
----
-11

query I rowsort
SELECT DISTINCT ( + 52 ) * - + 54 FROM tab0
----
-2808

query I rowsort
SELECT - col1 FROM tab1 AS cor0 WHERE NOT + 19 + + + col2 + - 59 IS NULL
----
-14
-47
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6039
SELECT ALL ( 35 ) AS col2 FROM tab2 cor0 WHERE NOT ( - CAST( + - col2 AS SIGNED ) >= ( NULL ) )
----

skipif mysql # not compatible
query I rowsort label-6039
SELECT ALL ( 35 ) AS col2 FROM tab2 cor0 WHERE NOT ( - CAST ( + - col2 AS INTEGER ) >= ( NULL ) )
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6041
SELECT + col1 * - - col2 * col2 * + + col0 AS col2, CAST( + col0 AS SIGNED ) FROM tab0 AS cor0
----
182700
87
2683935
15
950697
97

skipif mysql # not compatible
query II rowsort label-6041
SELECT + col1 * - - col2 * col2 * + + col0 AS col2, CAST ( + col0 AS INTEGER ) FROM tab0 AS cor0
----
182700
87
2683935
15
950697
97

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6043
SELECT ALL 64 + - COUNT( DISTINCT CAST( NULL AS SIGNED ) ) FROM tab2 cor0 CROSS JOIN tab0 cor1
----
64

skipif mysql # not compatible
query I rowsort label-6043
SELECT ALL 64 + - COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) FROM tab2 cor0 CROSS JOIN tab0 cor1
----
64

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6045
SELECT - SUM ( DISTINCT + col0 ) col1 FROM tab0 cor0
----
-199

onlyif mysql # aggregate syntax: 
query I rowsort label-6046
SELECT - SUM( - col2 ) AS col2 FROM tab2 cor0
----
121

skipif mysql # not compatible
query I rowsort label-6046
SELECT - SUM ( - col2 ) AS col2 FROM tab2 cor0
----
121

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

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

query I rowsort
SELECT DISTINCT col2 + + 67 FROM tab2 AS cor0
----
107
125
90

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

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL = - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6053
SELECT + 28 DIV + + col0 FROM tab0 WHERE NOT col2 + - 19 + + - 5 < 22
----
0
1

skipif mysql # not compatible
query I rowsort label-6053
SELECT + 28 / + + col0 FROM tab0 WHERE NOT col2 + - 19 + + - 5 < 22
----
0
1

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6055
SELECT + SUM( DISTINCT + col1 ) + - COUNT( * ) AS col0, ( + MIN( DISTINCT + ( + + col0 ) ) ) + + COUNT( * ) AS col1 FROM tab0
----
100
18

skipif mysql # not compatible
query II rowsort label-6055
SELECT + SUM ( DISTINCT + col1 ) + - COUNT ( * ) AS col0, ( + MIN ( DISTINCT + ( + + col0 ) ) ) + + COUNT ( * ) AS col1 FROM tab0
----
100
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6056
SELECT ALL 63 DIV COUNT( * ) col0 FROM tab0
----
21

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6056
SELECT ALL 63 / COUNT ( * ) col0 FROM tab0
----
21

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6058
SELECT + COUNT( * ) * - + 13 DIV + - 54 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6058
SELECT + COUNT ( * ) * - + 13 / + - 54 FROM tab2 AS cor0
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6060
SELECT ALL - + COUNT( DISTINCT + ( + 92 ) ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-1

skipif mysql # not compatible
query I rowsort label-6060
SELECT ALL - + COUNT ( DISTINCT + ( + 92 ) ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-1

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

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

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

query I rowsort
SELECT DISTINCT + + col0 FROM tab0 AS cor0 WHERE + col0 IS NOT NULL
----
15
87
97

query I rowsort
SELECT DISTINCT + 6 + col2 FROM tab0 cor0
----
105
16
53

onlyif mysql # aggregate syntax: 
query I rowsort label-6065
SELECT ALL COUNT( DISTINCT + - 68 ) + + + 74 AS col2 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-6065
SELECT ALL COUNT ( DISTINCT + - 68 ) + + + 74 AS col2 FROM tab2 AS cor0
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-6066
SELECT DISTINCT col2 DIV - col2 - - col1 FROM tab2 AS cor0
----
50
66
76

skipif mysql # not compatible
query I rowsort label-6066
SELECT DISTINCT col2 / - col2 - - col1 FROM tab2 AS cor0
----
50
66
76

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

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE - col0 = NULL
----

query II rowsort
SELECT col0, - 0 * + + col2 AS col1 FROM tab0
----
15
0
87
0
97
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6071
SELECT DISTINCT MIN( DISTINCT - col1 ) AS col0 FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-6071
SELECT DISTINCT MIN ( DISTINCT - col1 ) AS col0 FROM tab1
----
-47

query II rowsort
SELECT DISTINCT - col2, col2 FROM tab0 AS cor0
----
-10
10
-47
47
-99
99

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

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

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

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

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

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

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

query IIIIII rowsort
SELECT ALL * FROM ( tab2 AS cor0 CROSS JOIN tab2 cor1 ) WHERE NOT 40 IS NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

onlyif mysql # aggregate syntax: 
query I rowsort label-6078
SELECT - MAX( ALL - col0 ) * 17 + - 74 FROM tab0 AS cor0
----
181

skipif mysql # not compatible
query I rowsort label-6078
SELECT - MAX ( ALL - col0 ) * 17 + - 74 FROM tab0 AS cor0
----
181

onlyif mysql # aggregate syntax: 
query I rowsort label-6079
SELECT - SUM( col2 ) FROM tab0 cor0
----
-156

skipif mysql # not compatible
query I rowsort label-6079
SELECT - SUM ( col2 ) FROM tab0 cor0
----
-156

query I rowsort
SELECT - 55 * 0 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL col1 * + + 18 AS col2 FROM tab0
----
1458
18
378

onlyif mysql # aggregate syntax: 
query I rowsort label-6082
SELECT + 21 * - - COUNT( * ) * + - 74 FROM tab2
----
-4662

skipif mysql # not compatible
query I rowsort label-6082
SELECT + 21 * - - COUNT ( * ) * + - 74 FROM tab2
----
-4662

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL BETWEEN 28 AND col2 + 35 )
----

query I rowsort
SELECT + col2 FROM tab0 cor0 WHERE NULL NOT BETWEEN - 86 AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6086
SELECT 88 * - COUNT( * ) + + - 21 AS col0 FROM tab1 AS cor0
----
-285

skipif mysql # not compatible
query I rowsort label-6086
SELECT 88 * - COUNT ( * ) + + - 21 AS col0 FROM tab1 AS cor0
----
-285

query I rowsort
SELECT DISTINCT ( - + col2 ) * col2 + col0 AS col2 FROM tab0 AS cor0
----
-13
-2194
-9704

query I rowsort
SELECT DISTINCT - 44 + + - 60 FROM tab2 AS cor0
----
-104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6089
SELECT ALL CAST( COUNT( * ) AS SIGNED ) col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE - ( 28 ) + - 39 BETWEEN NULL AND + 32
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6089
SELECT ALL CAST ( COUNT ( * ) AS INTEGER ) col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE - ( 28 ) + - 39 BETWEEN NULL AND + 32
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6090
SELECT DISTINCT - CAST( - 58 AS SIGNED ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
58

skipif mysql # not compatible
query I rowsort label-6090
SELECT DISTINCT - CAST ( - 58 AS INTEGER ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6091
SELECT - CAST( 73 AS SIGNED ) FROM tab0
----
-73
-73
-73

skipif mysql # not compatible
query I rowsort label-6091
SELECT - CAST ( 73 AS INTEGER ) FROM tab0
----
-73
-73
-73

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

query I rowsort
SELECT - col0 - col2 - + - col1 FROM tab1 AS cor0
----
-112
-133
-139

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6096
SELECT DISTINCT + 99 DIV col2 col1 FROM tab0 AS cor0
----
1
2
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6096
SELECT DISTINCT + 99 / col2 col1 FROM tab0 AS cor0
----
1
2
9

onlyif mysql # DIV for integer division: 
query I rowsort label-6097
SELECT DISTINCT + + 11 DIV - col0 AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6097
SELECT DISTINCT + + 11 / - col0 AS col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - 16 + + 58 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND 23
----

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

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

skipif mysql # not compatible
query I rowsort label-6100
SELECT + COUNT ( + 49 ) AS col1 FROM tab2
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE + 43 NOT BETWEEN NULL AND + col2
----
46
51
23
64
77
40

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

query I rowsort
SELECT ALL + + 28 AS col1 FROM tab1 AS cor0
----
28
28
28

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6106
SELECT MIN( ALL - 56 ) * 30 AS col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT - 46 IS NULL
----
-1680

skipif mysql # not compatible
query I rowsort label-6106
SELECT MIN ( ALL - 56 ) * 30 AS col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT - 46 IS NULL
----
-1680

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

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

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

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 84 >= col0
----

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

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

query I rowsort
SELECT ALL 65 + + 33 FROM tab0 AS cor0
----
98
98
98

query I rowsort
SELECT ( - col2 ) + + col2 + + 63 FROM tab1
----
63
63
63

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6116
SELECT ALL + COUNT ( ALL + 31 ) FROM tab2
----
3

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

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

query I rowsort
SELECT + 80 AS col1 FROM tab2
----
80
80
80

onlyif mysql # DIV for integer division: 
query I rowsort label-6119
SELECT + col2 DIV + 98 col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6119
SELECT + col2 / + 98 col1 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - ( col1 ) col2 FROM tab1 AS cor0
----
14
47
5

query II rowsort
SELECT ALL - col1 + col2 * + ( - col0 ), + col0 FROM tab0 AS cor0
----
-786
15
-891
87
-9604
97

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 52 + - 90 * - col1 + + 50 col1 FROM tab2
----
4692
6132
7032

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6124
SELECT DISTINCT + + SUM( - 97 ), - CAST( NULL AS SIGNED ) + + 28 AS col2 FROM tab2 AS cor0
----
-291
NULL

skipif mysql # not compatible
query II rowsort label-6124
SELECT DISTINCT + + SUM ( - 97 ), - CAST ( NULL AS INTEGER ) + + 28 AS col2 FROM tab2 AS cor0
----
-291
NULL

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

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

skipif mysql # not compatible
query I rowsort label-6126
SELECT + MIN ( - 75 ) FROM tab1 AS cor0
----
-75

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6128
SELECT ALL + 82 * 22 DIV + MAX( DISTINCT + + col0 ) AS col2 FROM tab0 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-6128
SELECT ALL + 82 * 22 / + MAX ( DISTINCT + + col0 ) AS col2 FROM tab0 AS cor0
----
18

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6131
SELECT + 56 DIV - 92 * + 46 + - - COUNT( * ) + - 29 AS col0, 78 col1 FROM tab1 AS cor0
----
-26
78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6131
SELECT + 56 / - 92 * + 46 + - - COUNT ( * ) + - 29 AS col0, 78 col1 FROM tab1 AS cor0
----
-26
78

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6133
SELECT 58 DIV + col2 col2 FROM tab0 AS cor0
----
0
1
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6133
SELECT 58 / + col2 col2 FROM tab0 AS cor0
----
0
1
5

onlyif mysql # DIV for integer division: 
query I rowsort label-6134
SELECT DISTINCT + col2 DIV 92 * + col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6134
SELECT DISTINCT + col2 / 92 * + col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT col0 * - - 75 * col1 AS col2 FROM tab1 AS cor0
----
31875
320775
53550

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6136
SELECT 29 DIV COUNT( DISTINCT - 51 ) AS col1 FROM tab0
----
29

skipif mysql # not compatible
query I rowsort label-6136
SELECT 29 / COUNT ( DISTINCT - 51 ) AS col1 FROM tab0
----
29

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

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

query I rowsort
SELECT ALL - + col2 AS col1 FROM tab0 WHERE 38 * - col1 NOT BETWEEN - - col2 + + - 33 AND + 30
----
-10
-47
-99

query II rowsort
SELECT + col1, - 3 * col2 AS col2 FROM tab2
----
51
-69
67
-174
77
-120

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

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

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

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

query I rowsort
SELECT ALL - 31 * col0 * + 7 * - + 4 AS col1 FROM tab0 cor0
----
13020
75516
84196

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL <= col0
----

query II rowsort
SELECT + 89 * - + col1 + col0 AS col1, 90 - + 91 AS col0 FROM tab1 AS cor0
----
-1195
-1
-360
-1
-4092
-1

query I rowsort
SELECT DISTINCT + - 10 AS col1 FROM tab0 AS cor0
----
-10

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

skipif mysql # not compatible
query I rowsort label-6147
SELECT DISTINCT COUNT ( * ) * - - 52 AS col2 FROM tab2
----
156

query I rowsort
SELECT DISTINCT - col2 * - + 27 FROM tab1 AS cor0
----
1593
1836
2592

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6150
SELECT 32 * - MAX( DISTINCT col1 ) FROM tab2 AS cor0
----
-2464

skipif mysql # not compatible
query I rowsort label-6150
SELECT 32 * - MAX ( DISTINCT col1 ) FROM tab2 AS cor0
----
-2464

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

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6155
SELECT ALL 25 * 21 + + col1 DIV - col1 AS col0 FROM tab0
----
524
524
524

skipif mysql # not compatible
query I rowsort label-6155
SELECT ALL 25 * 21 + + col1 / - col1 AS col0 FROM tab0
----
524
524
524

onlyif mysql # DIV for integer division: 
query I rowsort label-6156
SELECT + col1 + - - col1 DIV + col1 FROM tab0
----
2
22
82

skipif mysql # not compatible
query I rowsort label-6156
SELECT + col1 + - - col1 / + col1 FROM tab0
----
2
22
82

query III rowsort
SELECT * FROM tab2 WHERE + col1 = + col2
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 74 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

query I rowsort
SELECT ALL + col2 * + + col0 * col0 FROM tab2 AS cor0
----
163840
326250
48668

onlyif mysql # aggregate syntax: 
query I rowsort label-6161
SELECT ALL - MIN( ALL + 23 ) FROM tab1 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-6161
SELECT ALL - MIN ( ALL + 23 ) FROM tab1 AS cor0
----
-23

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6163
SELECT DISTINCT + + CAST( 76 AS SIGNED ) - - 48 + + col0 FROM tab1 AS cor0
----
175
209
215

skipif mysql # not compatible
query I rowsort label-6163
SELECT DISTINCT + + CAST ( 76 AS INTEGER ) - - 48 + + col0 FROM tab1 AS cor0
----
175
209
215

onlyif mysql # aggregate syntax: 
query II rowsort label-6164
SELECT DISTINCT - COUNT( * ) * + 63 AS col1, - 5 AS col2 FROM tab1
----
-189
-5

skipif mysql # not compatible
query II rowsort label-6164
SELECT DISTINCT - COUNT ( * ) * + 63 AS col1, - 5 AS col2 FROM tab1
----
-189
-5

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6166
SELECT + + 8 DIV - - 28 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6166
SELECT + + 8 / - - 28 FROM tab1 AS cor0
----
0
0
0

query II rowsort
SELECT + 42, ( - 95 ) AS col2 FROM tab2 AS cor0
----
42
-95
42
-95
42
-95

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

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

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( NOT NULL >= NULL )
----

query II rowsort
SELECT DISTINCT - + col1, 59 + + col2 AS col0 FROM tab1 AS cor0
----
-14
155
-47
127
-5
118

query I rowsort
SELECT ALL col1 FROM tab0 AS cor0 WHERE NOT - 44 = col1
----
1
21
81

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

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

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

query I rowsort
SELECT ALL - ( + - 4 ) AS col1 FROM tab1
----
4
4
4

query I rowsort
SELECT ALL + 77 * col2 FROM tab2
----
1771
3080
4466

onlyif mysql # DIV for integer division: 
query I rowsort label-6176
SELECT ALL - 50 DIV - col0 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6176
SELECT ALL - 50 / - col0 AS col2 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6177
SELECT ALL + 54 DIV COUNT( col0 ) AS col2 FROM tab1 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-6177
SELECT ALL + 54 / COUNT ( col0 ) AS col2 FROM tab1 AS cor0
----
18

query I rowsort
SELECT DISTINCT - 61 * col1 AS col0 FROM tab0 cor0
----
-1281
-4941
-61

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

skipif mysql # not compatible
query I rowsort label-6179
SELECT 95 / col0 AS col2 FROM tab1
----
1
1
1

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

query I rowsort
SELECT ALL + col0 + - - col0 AS col0 FROM tab2 AS cor0
----
128
150
92

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6184
SELECT DISTINCT + - 12 + + - col1 DIV ( + col0 ) AS col0 FROM tab1 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-6184
SELECT DISTINCT + - 12 + + - col1 / ( + col0 ) AS col0 FROM tab1 AS cor0
----
-12

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6186
SELECT DISTINCT COUNT( * ) - - 23 + + 88 AS col2 FROM tab2 AS cor0
----
114

skipif mysql # not compatible
query I rowsort label-6186
SELECT DISTINCT COUNT ( * ) - - 23 + + 88 AS col2 FROM tab2 AS cor0
----
114

query I rowsort
SELECT ALL + - col2 * - col2 + - - col2 FROM tab2 cor0
----
1640
3422
552

query I rowsort
SELECT - ( - - col1 ) AS col2 FROM tab1 cor0
----
-14
-47
-5

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6190
SELECT - COUNT( * ) col1 FROM tab0 cor0 WHERE col2 * - 22 > - 67
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6190
SELECT - COUNT ( * ) col1 FROM tab0 cor0 WHERE col2 * - 22 > - 67
----
0

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 57 + - - col0 col0 FROM tab1
----
108
142
148

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6194
SELECT DISTINCT col0 DIV CAST( + - col1 AS SIGNED ) FROM tab0
----
-4
-97
0

skipif mysql # not compatible
query I rowsort label-6194
SELECT DISTINCT col0 / CAST ( + - col1 AS INTEGER ) FROM tab0
----
-4
-97
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6195
SELECT + MAX( ALL - + 16 ) AS col0 FROM tab2
----
-16

skipif mysql # not compatible
query I rowsort label-6195
SELECT + MAX ( ALL - + 16 ) AS col0 FROM tab2
----
-16

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6197
SELECT ALL COUNT( * ) * + COUNT( * ) DIV + 42 - - + 80 AS col0, - 65 AS col2 FROM tab2
----
80
-65

skipif mysql # not compatible
query II rowsort label-6197
SELECT ALL COUNT ( * ) * + COUNT ( * ) / + 42 - - + 80 AS col0, - 65 AS col2 FROM tab2
----
80
-65

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

query I rowsort
SELECT ALL + - ( 9 ) + col2 FROM tab2 cor0
----
14
31
49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6200
SELECT * FROM tab2 AS cor0 WHERE ( - ( - col0 ) * + + col0 + + + CAST( NULL AS SIGNED ) IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6200
SELECT * FROM tab2 AS cor0 WHERE ( - ( - col0 ) * + + col0 + + + CAST ( NULL AS INTEGER ) IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-6201
SELECT COUNT( * ) + + + 69, - 50 AS col1 FROM tab1 AS cor0
----
72
-50

skipif mysql # not compatible
query II rowsort label-6201
SELECT COUNT ( * ) + + + 69, - 50 AS col1 FROM tab1 AS cor0
----
72
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-6202
SELECT - ( + col0 ) DIV + - col1 AS col2 FROM tab0 AS cor0
----
0
4
97

skipif mysql # not compatible
query I rowsort label-6202
SELECT - ( + col0 ) / + - col1 AS col2 FROM tab0 AS cor0
----
0
4
97

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

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

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

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

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

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

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

query I rowsort
SELECT 96 FROM tab1 AS cor0 WHERE NOT ( col0 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col0 FROM tab2 WHERE - col1 * - col0 + col0 - - col1 <= NULL
----

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6210
SELECT COUNT( + CAST( NULL AS SIGNED ) ) DIV - COUNT( * ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6210
SELECT COUNT ( + CAST ( NULL AS INTEGER ) ) / - COUNT ( * ) FROM tab0
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6212
SELECT ALL col0, CAST( NULL AS SIGNED ) * - + ( + - 82 ) + 13 AS col1 FROM tab2
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-6212
SELECT ALL col0, CAST ( NULL AS INTEGER ) * - + ( + - 82 ) + 13 AS col1 FROM tab2
----
46
NULL
64
NULL
75
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT - + col2 < + ( + 87 )
----

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

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

skipif mysql # not compatible
query I rowsort label-6215
SELECT MIN ( ALL - + col2 ) AS col1 FROM tab1
----
-96

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

query I rowsort
SELECT DISTINCT col2 FROM tab2 WHERE NOT NULL BETWEEN col2 AND NULL
----

query II rowsort
SELECT 2 AS col1, col0 FROM tab2
----
2
46
2
64
2
75

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

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

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE - ( col1 ) * + 94 + - 38 * + - col2 < NULL
----

query II rowsort
SELECT ALL - col2 AS col2, + col0 AS col2 FROM tab2 AS cor0
----
-23
46
-40
64
-58
75

query II rowsort
SELECT + col0 * ( + 10 ) * - col1 + - 22 * col2, col1 AS col2 FROM tab1 AS cor0
----
-44266
47
-5548
5
-9252
14

query I rowsort
SELECT + + 78 + ( - 98 ) FROM tab0 cor0
----
-20
-20
-20

query I rowsort
SELECT ALL - col2 + 77 FROM tab0 AS cor0
----
-22
30
67

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

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

query I rowsort
SELECT DISTINCT col0 * col1 + + col2 * - - 53 AS col0 FROM tab1
----
3552
5802
7881

onlyif mysql # DIV for integer division: 
query II rowsort label-6228
SELECT - col2 DIV - col0 AS col0, col0 * + col0 FROM tab0 AS cor0
----
0
7569
1
9409
3
225

skipif mysql # not compatible
query II rowsort label-6228
SELECT - col2 / - col0 AS col0, col0 * + col0 FROM tab0 AS cor0
----
0
7569
1
9409
3
225

query II rowsort
SELECT ALL + - ( - 29 ), + col1 + - + 98 AS col1 FROM tab0 AS cor0
----
29
-17
29
-77
29
-97

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

query I rowsort
SELECT - + col2 * - - ( - - col0 ) AS col1 FROM tab0 AS cor0
----
-705
-870
-9603

onlyif mysql # DIV for integer division: 
query I rowsort label-6232
SELECT + col0 - - 13 DIV col1 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-6232
SELECT + col0 - - 13 / col1 FROM tab2 AS cor0
----
46
64
75

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

skipif mysql # not compatible
query I rowsort label-6233
SELECT DISTINCT - + CAST ( - COUNT ( * ) AS INTEGER ) - + - ( 21 ) FROM tab2 AS cor0
----
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( + 44 ) + col1 col0 FROM tab1 AS cor0
----
-30
-39
3

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

skipif mysql # not compatible
query I rowsort label-6235
SELECT + COUNT ( * ) + - - COUNT ( * ) FROM tab2
----
6

query I rowsort
SELECT DISTINCT ( + 48 ) - + + col1 * - + ( + col1 ) AS col2 FROM tab2
----
2649
4537
5977

onlyif mysql # DIV for integer division: 
query I rowsort label-6237
SELECT DISTINCT + col2 + 89 DIV - 74 FROM tab2
----
22
39
57

skipif mysql # not compatible
query I rowsort label-6237
SELECT DISTINCT + col2 + 89 / - 74 FROM tab2
----
22
39
57

query I rowsort
SELECT - col0 + - col2 * ( - 13 ) AS col1 FROM tab2
----
253
456
679

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6240
SELECT + + CAST( NULL AS SIGNED ) * - MIN( 22 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6240
SELECT + + CAST ( NULL AS INTEGER ) * - MIN ( 22 ) FROM tab0 AS cor0
----
NULL

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 INNER JOIN tab2 AS cor1 ON NOT - 70 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6242
SELECT ALL col1 DIV + - 67 col1 FROM tab0
----
-1
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6242
SELECT ALL col1 / + - 67 col1 FROM tab0
----
-1
0
0

query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 cor0 WHERE NOT NULL IS NULL
----

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6245
SELECT - ( + 73 ) AS col0, - MAX( ALL 24 ) FROM tab0 AS cor0
----
-73
-24

skipif mysql # not compatible
query II rowsort label-6245
SELECT - ( + 73 ) AS col0, - MAX ( ALL 24 ) FROM tab0 AS cor0
----
-73
-24

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

query I rowsort
SELECT DISTINCT + - 33 FROM tab0 AS cor0 WHERE NOT NULL >= - ( - col2 )
----

query I rowsort
SELECT DISTINCT - 25 AS col0 FROM tab2 cor0
----
-25

query II rowsort
SELECT DISTINCT col2, - col2 FROM tab2
----
23
-23
40
-40
58
-58

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

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

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

query II rowsort
SELECT DISTINCT + col1, 77 * + col0 FROM tab2
----
51
3542
67
5775
77
4928

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6253
SELECT 90 * - 55 * 80 AS col0, CAST( NULL AS SIGNED ) * + COUNT( * ) AS col1 FROM tab0
----
-396000
NULL

skipif mysql # not compatible
query II rowsort label-6253
SELECT 90 * - 55 * 80 AS col0, CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col1 FROM tab0
----
-396000
NULL

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

query III rowsort
SELECT ALL * FROM tab1 WHERE - - col0 IS NULL
----

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

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

query II rowsort
SELECT ALL col2 AS col0, - col2 * - ( + col0 ) AS col0 FROM tab1
----
59
5015
68
6188
96
4896

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL > NULL )
----

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

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

query I rowsort
SELECT ALL + col0 + - + 67 FROM tab2
----
-21
-3
8

query I rowsort
SELECT + + 33 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5

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

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

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

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

query I rowsort
SELECT ALL - 1 + - 18 AS col0 FROM tab0 AS cor0
----
-19
-19
-19

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL <= - col1 * - col1 * + 29 * col2 * - col1
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6268
SELECT ALL + + col1 DIV + col2 + + 9 + - - col1 FROM tab2 AS cor0
----
62
77
87

skipif mysql # not compatible
query I rowsort label-6268
SELECT ALL + + col1 / + col2 + + 9 + - - col1 FROM tab2 AS cor0
----
62
77
87

onlyif mysql # aggregate syntax: 
query I rowsort label-6269
SELECT + COUNT( * ) col0 FROM tab1, tab0 AS cor0
----
9

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

query II rowsort
SELECT - col1 * + 36 AS col1, + 73 AS col2 FROM tab2
----
-1836
73
-2412
73
-2772
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 73 - - col1 col1, - col1 + col0 + - + col1 * + 75 AS col2 FROM tab2
----
-22
-3830
-6
-5017
4
-5788

query I rowsort
SELECT + ( col1 ) - + 44 AS col2 FROM tab1
----
-30
-39
3

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

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

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

query I rowsort
SELECT + 70 AS col1 FROM tab0
----
70
70
70

onlyif mysql # aggregate syntax: 
query I rowsort label-6277
SELECT ALL MAX( ALL col1 ) - + COUNT( ALL + - 61 ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
78

skipif mysql # not compatible
query I rowsort label-6277
SELECT ALL MAX ( ALL col1 ) - + COUNT ( ALL + - 61 ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
78

query I rowsort
SELECT - col2 * + 17 FROM tab1 cor0
----
-1003
-1156
-1632

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

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

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

query I rowsort
SELECT col1 * + 32 AS col0 FROM tab1
----
1504
160
448

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 col2 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND col0
----

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6286
SELECT DISTINCT + MAX ( DISTINCT - col0 ) col1 FROM tab1 AS cor0
----
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6287
SELECT ALL + 59 + + COUNT( * ) + + - MIN( DISTINCT - - 47 ) + + SUM( DISTINCT ( - 37 ) ) * ( + COUNT( ( - 0 ) ) ) * + 7 * + 48 + + 30 DIV - 26 + + COUNT( * ) FROM tab0 AS cor0
----
-37279

skipif mysql # not compatible
query I rowsort label-6287
SELECT ALL + 59 + + COUNT ( * ) + + - MIN ( DISTINCT - - 47 ) + + SUM ( DISTINCT ( - 37 ) ) * ( + COUNT ( ( - 0 ) ) ) * + 7 * + 48 + + 30 / - 26 + + COUNT ( * ) FROM tab0 AS cor0
----
-37279

onlyif mysql # aggregate syntax: 
query I rowsort label-6288
SELECT DISTINCT - ( + SUM( DISTINCT - 23 ) ) FROM tab0 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-6288
SELECT DISTINCT - ( + SUM ( DISTINCT - 23 ) ) FROM tab0 AS cor0
----
23

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

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

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

query III rowsort
SELECT * FROM tab0 WHERE + + col0 >= NULL
----

query II rowsort
SELECT ALL + 93, 93 FROM tab0 WHERE NOT NULL IS NOT NULL
----
93
93
93
93
93
93

query I rowsort
SELECT col0 - col1 * - col0 AS col2 FROM tab2
----
2392
4992
5100

query I rowsort
SELECT + 96 - + col2 FROM tab2 AS cor0
----
38
56
73

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6296
SELECT + - col1 - + CAST( - - col1 AS SIGNED ) * col2 * - 13 + - col0 - + col0 FROM tab1 AS cor0
----
17356
3660
41319

skipif mysql # not compatible
query I rowsort label-6296
SELECT + - col1 - + CAST ( - - col1 AS INTEGER ) * col2 * - 13 + - col0 - + col0 FROM tab1 AS cor0
----
17356
3660
41319

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

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

query I rowsort
SELECT DISTINCT 76 + + 15 + col2 - + col0 FROM tab0 AS cor0
----
123
14
93

onlyif mysql # aggregate syntax: 
query I rowsort label-6299
SELECT - COUNT( * ) - - COUNT( * ) AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6299
SELECT - COUNT ( * ) - - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT + col1 * - 1 AS col2 FROM tab1 AS cor0
----
-14
-47
-5

query I rowsort
SELECT + col2 + - - col2 + + col2 + + col0 AS col0 FROM tab0 AS cor0
----
117
156
394

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6302
SELECT ALL + col0 + - CAST( col2 AS SIGNED ), + CAST( NULL AS SIGNED ) / + 96 + - col2 AS col0 FROM tab1 AS cor0
----
-45
NULL
23
NULL
26
NULL

skipif mysql # not compatible
query II rowsort label-6302
SELECT ALL + col0 + - CAST ( col2 AS INTEGER ), + CAST ( NULL AS INTEGER ) / + 96 + - col2 AS col0 FROM tab1 AS cor0
----
-45
NULL
23
NULL
26
NULL

query I rowsort
SELECT + 86 + + 30 AS col0 FROM tab2 cor0
----
116
116
116

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 95 + - 22 + - - 39 col0 FROM tab0 AS cor0
----
112
112
112

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

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

query II rowsort
SELECT DISTINCT - col1, 56 AS col1 FROM tab1
----
-14
56
-47
56
-5
56

query I rowsort
SELECT col2 * - 36 FROM tab1
----
-2124
-2448
-3456

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6309
SELECT + 28 * col0 * + CAST( + 98 AS SIGNED ) * + 63 + col2 AS col2, col0 AS col2 FROM tab1
----
14694179
85
15731420
91
8816568
51

skipif mysql # not compatible
query II rowsort label-6309
SELECT + 28 * col0 * + CAST ( + 98 AS INTEGER ) * + 63 + col2 AS col2, col0 AS col2 FROM tab1
----
14694179
85
15731420
91
8816568
51

query I rowsort
SELECT ALL - 12 * ( col1 ) FROM tab1
----
-168
-564
-60

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

query I rowsort
SELECT + 17 * col0 FROM tab2 AS cor0
----
1088
1275
782

query I rowsort
SELECT ALL col2 * - - col0 AS col1 FROM tab0 AS cor0
----
705
870
9603

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

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

query I rowsort
SELECT ALL ( ( + + col2 ) ) - + 18 FROM tab2 AS cor0 WHERE NOT ( - ( + col2 ) + + - col0 ) IS NULL
----
22
40
5

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

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

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

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

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

query II rowsort
SELECT DISTINCT + 32 AS col1, 34 AS col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
32
34

onlyif mysql # aggregate syntax: 
query II rowsort label-6322
SELECT - MIN( ALL + col0 ), - 41 col1 FROM tab2
----
-46
-41

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

query I rowsort
SELECT ALL - col2 * - 28 FROM tab2
----
1120
1624
644

query I rowsort
SELECT ALL + 2 AS col0 FROM tab2 AS cor0 WHERE + col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 58 col0 FROM tab2 cor0 WHERE ( NULL ) < - - 78 + - 12 * - 10 + + 9
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6326
SELECT DISTINCT col1 * col0 DIV 30 AS col0 FROM tab2 AS cor0
----
164
167
78

skipif mysql # not compatible
query I rowsort label-6326
SELECT DISTINCT col1 * col0 / 30 AS col0 FROM tab2 AS cor0
----
164
167
78

onlyif mysql # DIV for integer division: 
query I rowsort label-6327
SELECT DISTINCT + - 89 DIV - - col1 FROM tab1 cor0
----
-1
-17
-6

skipif mysql # not compatible
query I rowsort label-6327
SELECT DISTINCT + - 89 / - - col1 FROM tab1 cor0
----
-1
-17
-6

query I rowsort
SELECT ALL + - ( + 92 ) + + 62 + col1 FROM tab0 AS cor0
----
-29
-9
51

query I rowsort
SELECT - col1 + - - col1 + + 44 + + - 75 AS col1 FROM tab1 AS cor0
----
-31
-31
-31

query I rowsort
SELECT ALL + col0 + - - col1 FROM tab0 AS cor0
----
108
96
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 77, ( - col0 ) col0 FROM tab2
----
77
-46
77
-64
77
-75

query I rowsort
SELECT - col2 - - 88 AS col2 FROM tab1
----
-8
20
29

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL IN ( + col2 + 62 )
----

query I rowsort
SELECT col2 * col2 + col2 FROM tab1 WHERE NOT col0 IS NULL
----
3540
4692
9312

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 * col1 - col0 IS NOT NULL
----

query I rowsort
SELECT col1 * 79 AS col0 FROM tab1
----
1106
3713
395

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6338
SELECT 73 * + SUM( ALL - col1 ) AS col2 FROM tab2
----
-14235

skipif mysql # not compatible
query I rowsort label-6338
SELECT 73 * + SUM ( ALL - col1 ) AS col2 FROM tab2
----
-14235

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6340
SELECT ALL col1 * col1 + col2 DIV + col1 FROM tab2
----
2601
4489
5929

skipif mysql # not compatible
query I rowsort label-6340
SELECT ALL col1 * col1 + col2 / + col1 FROM tab2
----
2601
4489
5929

onlyif mysql # DIV for integer division: 
query I rowsort label-6341
SELECT DISTINCT col1 DIV ( ( + 91 ) ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6341
SELECT DISTINCT col1 / ( ( + 91 ) ) FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6342
SELECT DISTINCT - ( - SUM( ( - ( - col1 ) ) ) ) + SUM( 11 ) * 65 FROM tab2
----
2340

skipif mysql # not compatible
query I rowsort label-6342
SELECT DISTINCT - ( - SUM ( ( - ( - col1 ) ) ) ) + SUM ( 11 ) * 65 FROM tab2
----
2340

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6343
SELECT ( col1 ) * - CAST( + col1 * col0 AS SIGNED ) FROM tab0
----
-38367
-97
-98415

skipif mysql # not compatible
query I rowsort label-6343
SELECT ( col1 ) * - CAST ( + col1 * col0 AS INTEGER ) FROM tab0
----
-38367
-97
-98415

onlyif mysql # DIV for integer division: 
query I rowsort label-6344
SELECT ALL - 2 DIV col1 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6344
SELECT ALL - 2 / col1 AS col1 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6345
SELECT ALL CAST( NULL AS SIGNED ) * 23 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6345
SELECT ALL CAST ( NULL AS INTEGER ) * 23 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT 57 FROM tab1 WHERE - 21 IS NOT NULL
----
57
57
57

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6349
SELECT DISTINCT COUNT( * ) AS col0 FROM tab1 WHERE NOT - col0 > ( + col0 * - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-6349
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab1 WHERE NOT - col0 > ( + col0 * - col2 )
----
0

query I rowsort
SELECT DISTINCT col0 - 15 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab1 WHERE NOT + col1 + - 64 > + col0 * - 20
----

query I rowsort
SELECT ALL col0 + + 52 AS col0 FROM tab1 WHERE - 96 * col1 IS NOT NULL
----
103
137
143

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6354
SELECT CAST( + AVG ( DISTINCT col2 ) AS SIGNED ) AS col0 FROM tab1
----
74

skipif mysql # not compatible
query I rowsort label-6354
SELECT CAST ( + AVG ( DISTINCT col2 ) AS INTEGER ) AS col0 FROM tab1
----
74

onlyif mysql # DIV for integer division: 
query I rowsort label-6355
SELECT + 63 DIV col0 + + col2 FROM tab2
----
24
40
58

skipif mysql # not compatible
query I rowsort label-6355
SELECT + 63 / col0 + + col2 FROM tab2
----
24
40
58

query I rowsort
SELECT col1 FROM tab2 WHERE NOT + col2 * col0 + col1 NOT BETWEEN 69 * + col2 AND col1
----

query I rowsort
SELECT DISTINCT - col0 * col1 + + 10 FROM tab1
----
-415
-4267
-704

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6358
SELECT DISTINCT + 12 * col1 FROM tab1 WHERE CAST( NULL AS SIGNED ) IS NULL
----
168
564
60

skipif mysql # not compatible
query I rowsort label-6358
SELECT DISTINCT + 12 * col1 FROM tab1 WHERE CAST ( NULL AS INTEGER ) IS NULL
----
168
564
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6359
SELECT ALL - 60 + 97 DIV COUNT( * ) AS col1 FROM tab2
----
-28

skipif mysql # not compatible
query I rowsort label-6359
SELECT ALL - 60 + 97 / COUNT ( * ) AS col1 FROM tab2
----
-28

query I rowsort
SELECT col0 * - col1 + ( col2 ) AS col0 FROM tab0
----
-1168
-1817
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6361
SELECT - MAX( 1 ) AS col1 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-6361
SELECT - MAX ( 1 ) AS col1 FROM tab2
----
-1

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

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

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL < 59 * - col2
----

query I rowsort
SELECT ALL col1 AS col1 FROM tab2 cor0 WHERE NOT ( 52 ) IS NULL
----
51
67
77

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

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

query I rowsort
SELECT DISTINCT col2 FROM tab0 WHERE + 53 > 40
----
10
47
99

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6371
SELECT DISTINCT + 73 / col1 col1 FROM tab2 AS cor0
----
0
1

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

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

query I rowsort
SELECT DISTINCT col2 * col2 FROM tab1 AS cor0 WHERE ( col2 ) IS NOT NULL
----
3481
4624
9216

query I rowsort
SELECT DISTINCT 46 + - col2 AS col2 FROM tab1 AS cor0
----
-13
-22
-50

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

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6380
SELECT - ( SUM( - 47 ) ) FROM tab0 AS cor0
----
141

skipif mysql # not compatible
query I rowsort label-6380
SELECT - ( SUM ( - 47 ) ) FROM tab0 AS cor0
----
141

onlyif mysql # aggregate syntax: 
query I rowsort label-6381
SELECT ALL + COUNT( ALL - + col2 ) * SUM( ALL ( col0 ) ) AS col0 FROM tab1
----
681

skipif mysql # not compatible
query I rowsort label-6381
SELECT ALL + COUNT ( ALL - + col2 ) * SUM ( ALL ( col0 ) ) AS col0 FROM tab1
----
681

query I rowsort
SELECT ALL col1 + + + 66 AS col0 FROM tab1
----
113
71
80

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

skipif mysql # not compatible
query I rowsort label-6383
SELECT ALL 16 / + SUM ( col1 ) FROM tab0
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( - 59 + ( + col1 ) ) > NULL
----

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

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

query I rowsort
SELECT DISTINCT - col2 * + 88 AS col0 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
-2024
-3520
-5104

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 2 + - col2 col0 FROM tab0
----
-101
-12
-49

query I rowsort
SELECT DISTINCT col0 FROM tab0 AS cor0 WHERE NOT col0 * 59 IS NULL
----
15
87
97

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE - 35 * - col0 = + 36
----

query I rowsort
SELECT - 94 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to a95bfa539191d3f72f6548147d7efb9e

query I rowsort
SELECT - + 3 * 10 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 56fa25f9fb8040460fe3c894000ea8fb

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6394
SELECT - - 64 * COUNT( ALL - - col2 ) FROM tab2 AS cor0
----
192

skipif mysql # not compatible
query I rowsort label-6394
SELECT - - 64 * COUNT ( ALL - - col2 ) FROM tab2 AS cor0
----
192

query I rowsort
SELECT + 33 * - 80 AS col2 FROM tab1 AS cor0
----
-2640
-2640
-2640

onlyif mysql # DIV for integer division: 
query I rowsort label-6396
SELECT - 38 DIV - 32 AS col0 FROM tab0 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6396
SELECT - 38 / - 32 AS col0 FROM tab0 cor0
----
1
1
1

query I rowsort
SELECT - 42 * + 14 + + + 54 AS col2 FROM tab2 AS cor0
----
-534
-534
-534

onlyif mysql # aggregate syntax: 
query I rowsort label-6398
SELECT DISTINCT MIN( DISTINCT col1 ) col0 FROM tab0 AS cor0 WHERE NOT ( 38 ) BETWEEN NULL AND - col0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6398
SELECT DISTINCT MIN ( DISTINCT col1 ) col0 FROM tab0 AS cor0 WHERE NOT ( 38 ) BETWEEN NULL AND - col0
----
1

query I rowsort
SELECT ALL + 3 FROM tab2 cor0 WHERE NOT 4 IS NULL
----
3
3
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6400
SELECT * FROM tab1 AS cor0 WHERE NOT NULL = ( + col0 + - + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-6400
SELECT * FROM tab1 AS cor0 WHERE NOT NULL = ( + col0 + - + CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT - 98 - - 33 AS col2 FROM tab2 cor0 WHERE NOT NULL <> NULL
----

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

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

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

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

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

query I rowsort
SELECT + col2 - col0 FROM tab2 WHERE NOT NULL NOT IN ( - + 51 + - - 54 )
----

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

skipif mysql # not compatible
query I rowsort label-6406
SELECT SUM ( DISTINCT col1 ) AS col2 FROM tab0
----
103

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

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

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

query I rowsort
SELECT ALL ( ( 1 ) ) FROM tab0
----
1
1
1

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6411
SELECT + CAST( + 55 AS SIGNED ) col2, - col1 - - col2 FROM tab2 AS cor0
----
55
-28
55
-37
55
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6411
SELECT + CAST ( + 55 AS INTEGER ) col2, - col1 - - col2 FROM tab2 AS cor0
----
55
-28
55
-37
55
-9

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6414
SELECT + 92 * - MAX( - 91 ) FROM tab2 cor0 WHERE NOT - col0 * + 99 * - col2 < - 59
----
8372

skipif mysql # not compatible
query I rowsort label-6414
SELECT + 92 * - MAX ( - 91 ) FROM tab2 cor0 WHERE NOT - col0 * + 99 * - col2 < - 59
----
8372

onlyif mysql # DIV for integer division: 
query I rowsort label-6415
SELECT ALL col2 DIV col1 FROM tab0 WHERE NOT ( + col1 * - col0 ) <> - col0
----
99

skipif mysql # not compatible
query I rowsort label-6415
SELECT ALL col2 / col1 FROM tab0 WHERE NOT ( + col1 * - col0 ) <> - col0
----
99

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

query I rowsort
SELECT 88 * - col2 FROM tab2
----
-2024
-3520
-5104

query I rowsort
SELECT DISTINCT + col0 + - 21 FROM tab1
----
30
64
70

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT NULL <= ( - ( + 37 ) + + col2 ) ) OR col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 + + 44 FROM tab0
----
125
45
65

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

query I rowsort
SELECT - 32 + col0 FROM tab0 AS cor0
----
-17
55
65

query I rowsort
SELECT DISTINCT - 66 + - col2 AS col2 FROM tab0 AS cor0
----
-113
-165
-76

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( 82, - col2 * col2 )
----

query I rowsort
SELECT ALL - col0 + + + col0 * - col2 * 57 FROM tab0 AS cor0
----
-40200
-49677
-547468

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 41 <= ( - + col1 )
----
51
14
96
85
5
59

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 94 + + 59 * + col1 NOT BETWEEN ( - 33 ) AND col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 * col1 + col2 FROM tab2 AS cor0 WHERE + 36 * - + ( + col0 ) + + col2 NOT BETWEEN ( + col1 ) AND + 95
----
2624
4547
5969

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6431
SELECT DISTINCT + col0 DIV + col2 + col2 + - col0 + col0 * + col0 + - col1 AS col0 FROM tab1 cor0
----
2632
7195
8212

skipif mysql # not compatible
query I rowsort label-6431
SELECT DISTINCT + col0 / + col2 + col2 + - col0 + col0 * + col0 + - col1 AS col0 FROM tab1 cor0
----
2632
7195
8212

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6433
SELECT ALL col1 DIV col0 * - - CAST( 66 AS SIGNED ), col2 FROM tab2
----
0
58
66
23
66
40

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col0 / - col0 NOT IN ( col0 )
----

query I rowsort
SELECT ALL col0 - - col1 * col0 FROM tab1
----
4368
510
765

query I rowsort
SELECT ALL 27 * + + 17 FROM tab1
----
459
459
459

onlyif mysql # aggregate syntax: 
query I rowsort label-6437
SELECT ALL - COUNT( DISTINCT - 1 ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-6437
SELECT ALL - COUNT ( DISTINCT - 1 ) FROM tab0
----
-1

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col2 < + col2 + - - col1
----

query I rowsort
SELECT + 93 * + col1 FROM tab2
----
4743
6231
7161

onlyif mysql # aggregate syntax: 
query I rowsort label-6440
SELECT ALL SUM( ALL + 83 ) FROM tab0
----
249

skipif mysql # not compatible
query I rowsort label-6440
SELECT ALL SUM ( ALL + 83 ) FROM tab0
----
249

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6441
SELECT - - 92 col2 FROM tab1 WHERE ( NULL > CAST ( NULL AS INTEGER ) )
----

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

query I rowsort
SELECT - col1 * + - 81 AS col1 FROM tab0
----
1701
6561
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6444
SELECT DISTINCT - + 93 + - + SUM( ALL - 93 ) FROM tab1 AS cor0
----
186

skipif mysql # not compatible
query I rowsort label-6444
SELECT DISTINCT - + 93 + - + SUM ( ALL - 93 ) FROM tab1 AS cor0
----
186

query I rowsort
SELECT col1 + col1 + - ( + 37 ) FROM tab1 AS cor0
----
-27
-9
57

query I rowsort
SELECT DISTINCT + col1 + + - col1 + + col0 + - col1 * 6 * - - col1 AS col2 FROM tab2 cor0
----
-15560
-26859
-35510

query I rowsort
SELECT - col2 + - col1 - col1 + + col0 - + col0 AS col2 FROM tab0 AS cor0
----
-101
-209
-52

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

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

query I rowsort
SELECT ALL 94 AS col1 FROM tab0 WHERE ( + - col1 + - 62 ) IS NULL
----

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

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

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

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

query I rowsort
SELECT DISTINCT - 38 * + 89 FROM tab1 AS cor0
----
-3382

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

skipif mysql # not compatible
query I rowsort label-6455
SELECT DISTINCT + + 59 * + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
177

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

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

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - ( - col0 ) * 88 + - col2 / + + 62 NOT IN ( - col2 + + 43 )
----

query II rowsort
SELECT + col2, + 72 FROM tab0
----
10
72
47
72
99
72

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

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

skipif mysql # not compatible
query I rowsort label-6462
SELECT DISTINCT - SUM ( DISTINCT - col1 ) FROM tab2
----
195

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

query I rowsort
SELECT DISTINCT - ( - - 74 ) FROM tab0 WHERE NULL IS NULL
----
-74

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6465
SELECT ( + 55 ) + col0 + + col0 DIV + CAST( - col1 AS SIGNED ) - - col0 - + col1 * + col0 AS col0 FROM tab0 AS cor0
----
-1130
-1602
55

skipif mysql # not compatible
query I rowsort label-6465
SELECT ( + 55 ) + col0 + + col0 / + CAST ( - col1 AS INTEGER ) - - col0 - + col1 * + col0 AS col0 FROM tab0 AS cor0
----
-1130
-1602
55

query I rowsort
SELECT - 67 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to fbe03b15d6b951410b38f7e98895006f

query IIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0 WHERE NOT - 74 IS NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

query I rowsort
SELECT ALL + 66 FROM tab2 cor0
----
66
66
66

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL IN ( - 8 + - col1, 78 * + 88 )
----

query I rowsort
SELECT DISTINCT + col0 + - + col2 FROM tab1 AS cor0
----
-45
23
26

query I rowsort
SELECT ALL - 94 + 16 FROM tab0 AS cor0
----
-78
-78
-78

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

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

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

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

query I rowsort
SELECT col1 - - + col0 AS col2 FROM tab0 AS cor0
----
108
96
98

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

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

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

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

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

query I rowsort
SELECT ALL - 33 * - + col2 - col1 * 93 + - col0 AS col2 FROM tab1 AS cor0
----
-2218
1397
1815

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 7, - 7 col0 FROM tab0
----
7
-7
7
-7
7
-7

query I rowsort
SELECT 51 * + + col0 * + + 5 * + + col2 FROM tab1
----
1248480
1278825
1577940

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) > - + 30 + - 8 + - + col1 * - - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6483
SELECT DISTINCT - - 21 * + 88 * + 82 * + + COUNT( * ) col2 FROM tab2 AS cor0
----
454608

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6483
SELECT DISTINCT - - 21 * + 88 * + 82 * + + COUNT ( * ) col2 FROM tab2 AS cor0
----
454608

query I rowsort
SELECT ALL + - col0 + + + col2 + + - col1 * + 53 + + col0 FROM tab1 AS cor0
----
-206
-2423
-646

onlyif mysql # aggregate syntax: 
query I rowsort label-6485
SELECT DISTINCT + COUNT( ALL col1 ) + - SUM( - 59 ) AS col2 FROM tab0 AS cor0
----
180

skipif mysql # not compatible
query I rowsort label-6485
SELECT DISTINCT + COUNT ( ALL col1 ) + - SUM ( - 59 ) AS col2 FROM tab0 AS cor0
----
180

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

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

query I rowsort
SELECT - col1 * + 88 FROM tab1
----
-1232
-4136
-440

query I rowsort
SELECT DISTINCT + 70 * - + col0 FROM tab0 AS cor0
----
-1050
-6090
-6790

query I rowsort
SELECT - col1 FROM tab1 cor0 WHERE NOT ( NULL ) <= - col1 + - + col1 + - + 62
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + col2 * col0, col1 col1 FROM tab1 AS cor0
----
4896
14
5015
5
6188
47

query I rowsort
SELECT - col2 * + - col2 AS col0 FROM tab1 AS cor0
----
3481
4624
9216

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6497
SELECT DISTINCT - CAST( col2 AS SIGNED ) AS col2, - 60 AS col0 FROM tab0
----
-10
-60
-47
-60
-99
-60

skipif mysql # not compatible
query II rowsort label-6497
SELECT DISTINCT - CAST ( col2 AS INTEGER ) AS col2, - 60 AS col0 FROM tab0
----
-10
-60
-47
-60
-99
-60

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col0 * col1 <> - + 35 )
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 57 + col0 col1 FROM tab0 AS cor0
----
-42
30
40

query I rowsort
SELECT - col0 * + 73 FROM tab2
----
-3358
-4672
-5475

query II rowsort
SELECT DISTINCT + col0, + 7 AS col1 FROM tab1
----
51
7
85
7
91
7

query I rowsort
SELECT - 24 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 797d0f7c145f8ac623924448c714bbcc

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

query I rowsort
SELECT ALL - ( col2 ) + + + 97 AS col1 FROM tab2 AS cor0
----
39
57
74

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6508
SELECT - 69 + - ( - + COUNT( * ) ) * + 6 AS col2 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-6508
SELECT - 69 + - ( - + COUNT ( * ) ) * + 6 AS col2 FROM tab1 AS cor0
----
-51

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

query II rowsort
SELECT ALL - col2, + 46 * + col1 * + ( 55 ) AS col0 FROM tab2 cor0
----
-23
129030
-40
194810
-58
169510

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL < - col2
----

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

query I rowsort
SELECT 90 - + col1 * - col0 FROM tab0 WHERE + col2 IS NOT NULL
----
1305
187
1917

query I rowsort
SELECT + col1 AS col1 FROM tab0 WHERE - + col1 IS NOT NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6515
SELECT ALL SUM( DISTINCT - 57 ) FROM tab1
----
-57

skipif mysql # not compatible
query I rowsort label-6515
SELECT ALL SUM ( DISTINCT - 57 ) FROM tab1
----
-57

query I rowsort
SELECT DISTINCT - 39 - - + col0 AS col0 FROM tab1
----
12
46
52

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6519
SELECT ALL - - COUNT( * ) * - COUNT( * ) + ( + COUNT( * ) ), + 28 AS col1 FROM tab1 cor0
----
-6
28

skipif mysql # not compatible
query II rowsort label-6519
SELECT ALL - - COUNT ( * ) * - COUNT ( * ) + ( + COUNT ( * ) ), + 28 AS col1 FROM tab1 cor0
----
-6
28

onlyif mysql # aggregate syntax: 
query I rowsort label-6520
SELECT + - SUM( DISTINCT col2 ) AS col1 FROM tab0 cor0
----
-156

skipif mysql # not compatible
query I rowsort label-6520
SELECT + - SUM ( DISTINCT col2 ) AS col1 FROM tab0 cor0
----
-156

onlyif mysql # aggregate syntax: 
query II rowsort label-6521
SELECT - + COUNT( ALL 38 ) col0, 8 col0 FROM tab2 cor0
----
-3
8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6521
SELECT - + COUNT ( ALL 38 ) col0, 8 col0 FROM tab2 cor0
----
-3
8

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

skipif mysql # not compatible
query I rowsort label-6522
SELECT ALL - CAST ( + COUNT ( * ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-3

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6524
SELECT DISTINCT - COUNT( * ) AS col2, 76 DIV 19 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-9
4

skipif mysql # not compatible
query II rowsort label-6524
SELECT DISTINCT - COUNT ( * ) AS col2, 76 / 19 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-9
4

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

skipif mysql # not compatible
query I rowsort label-6525
SELECT MIN ( DISTINCT - 31 ) AS col2 FROM tab0
----
-31

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

query I rowsort
SELECT ALL col0 * - col0 * 77 FROM tab1 cor0
----
-200277
-556325
-637637

onlyif mysql # DIV for integer division: 
query I rowsort label-6528
SELECT DISTINCT + col1 DIV + 89 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6528
SELECT DISTINCT + col1 / + 89 FROM tab1 AS cor0
----
0

query II rowsort
SELECT DISTINCT - + col2 AS col1, 50 FROM tab0 AS cor0
----
-10
50
-47
50
-99
50

query I rowsort
SELECT - + 94 * col0 FROM tab1 cor0
----
-4794
-7990
-8554

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6534
SELECT ALL + + 48 + + CAST( - - col0 AS DECIMAL ) col1 FROM tab2 AS cor0 WHERE NOT NULL IN ( col1, + col1 * + col2 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6534
SELECT ALL + + 48 + + CAST ( - - col0 AS REAL ) col1 FROM tab2 AS cor0 WHERE NOT NULL IN ( col1, + col1 * + col2 )
----

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

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

query I rowsort
SELECT DISTINCT - - 67 + - 51 FROM tab0 AS cor0
----
16

onlyif mysql # DIV for integer division: 
query II rowsort label-6537
SELECT - 25 * + + col1 AS col2, 16 - - - col2 - + + col0 DIV col1 * - col1 AS col2 FROM tab0
----
-2025
-31
-25
14
-525
90

skipif mysql # not compatible
query II rowsort label-6537
SELECT - 25 * + + col1 AS col2, 16 - - - col2 - + + col0 / col1 * - col1 AS col2 FROM tab0
----
-2025
-31
-25
14
-525
90

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6539
SELECT - 2 AS col0, SUM( DISTINCT + - 50 ) AS col0 FROM tab2
----
-2
-50

skipif mysql # not compatible
query II rowsort label-6539
SELECT - 2 AS col0, SUM ( DISTINCT + - 50 ) AS col0 FROM tab2
----
-2
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-6540
SELECT ALL - ( col0 ) DIV - - col0 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6540
SELECT ALL - ( col0 ) / - - col0 FROM tab1
----
-1
-1
-1

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6542
SELECT ALL + col2, + col2 DIV col2 FROM tab1
----
59
1
68
1
96
1

skipif mysql # not compatible
query II rowsort label-6542
SELECT ALL + col2, + col2 / col2 FROM tab1
----
59
1
68
1
96
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6543
SELECT COUNT( * ) + - + 10 FROM tab0 AS cor0
----
-7

skipif mysql # not compatible
query I rowsort label-6543
SELECT COUNT ( * ) + - + 10 FROM tab0 AS cor0
----
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-6544
SELECT - 14 DIV + ( - col0 ) * + col1 + + + 91 FROM tab0 cor0
----
91
91
91

skipif mysql # not compatible
query I rowsort label-6544
SELECT - 14 / + ( - col0 ) * + col1 + + + 91 FROM tab0 cor0
----
91
91
91

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

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

query I rowsort
SELECT - + 17 * col2 + + col2 * + + col2 + + - col2 AS col2 FROM tab1 cor0
----
2419
3400
7488

query I rowsort
SELECT DISTINCT 26 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 41 col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 4ba0c102091f9cbc9fe9439b04584e70

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

query II rowsort
SELECT DISTINCT - col0 * + 93 AS col2, col2 FROM tab0 AS cor0
----
-1395
47
-8091
10
-9021
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6551
SELECT DISTINCT + + COUNT( * ) - - - SUM( ALL - - 8 ) FROM tab1 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-6551
SELECT DISTINCT + + COUNT ( * ) - - - SUM ( ALL - - 8 ) FROM tab1 AS cor0
----
-21

query I rowsort
SELECT 51 * - - 71 - + + col1 + + col0 FROM tab1 cor0
----
3658
3665
3701

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col0 + + + 50 = NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6555
SELECT ALL MIN( DISTINCT + - 10 ) + + COUNT( * ) col2, 20 * + + COUNT( * ) AS col0 FROM tab0
----
-7
60

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6555
SELECT ALL MIN ( DISTINCT + - 10 ) + + COUNT ( * ) col2, 20 * + + COUNT ( * ) AS col0 FROM tab0
----
-7
60

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

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

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE NULL IN ( ( col0 ) )
----

query I rowsort
SELECT ALL 15 * - col2 * - col0 FROM tab1
----
73440
75225
92820

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

query I rowsort
SELECT - 64 * + ( - col2 ) FROM tab1
----
3776
4352
6144

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

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

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

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

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

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

query I rowsort
SELECT - + 57 * - 60 AS col2 FROM tab2 AS cor0
----
3420
3420
3420

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

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

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

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

query II rowsort
SELECT ALL + ( + + 60 ), + col1 FROM tab0
----
60
1
60
21
60
81

onlyif mysql # DIV for integer division: 
query I rowsort label-6569
SELECT + 69 DIV + - col1 AS col1 FROM tab1
----
-1
-13
-4

skipif mysql # not compatible
query I rowsort label-6569
SELECT + 69 / + - col1 AS col1 FROM tab1
----
-1
-13
-4

query I rowsort
SELECT DISTINCT 60 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
60

query I rowsort
SELECT + 55 AS col2 FROM tab1 cor0
----
55
55
55

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

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

query I rowsort
SELECT DISTINCT + + 94 + - col2 AS col2 FROM tab0 AS cor0
----
-5
47
84

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6576
SELECT + col2 DIV - 89 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6576
SELECT + col2 / - 89 FROM tab1
----
-1
0
0

query I rowsort
SELECT DISTINCT 55 * + col0 FROM tab0
----
4785
5335
825

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

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

query I rowsort
SELECT ALL + + col0 + - col0 * - col2 * col0 * - - ( + col0 ) AS col1 FROM tab1 AS cor0
----
12734547
36233460
51242919

query I rowsort
SELECT + + 4 + col0 AS col0 FROM tab0 cor0
----
101
19
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6581
SELECT - 97 * MAX( DISTINCT 96 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9312

skipif mysql # not compatible
query I rowsort label-6581
SELECT - 97 * MAX ( DISTINCT 96 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9312

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6582
SELECT * FROM tab1 WHERE - col0 >= ( - + 72 + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-6582
SELECT * FROM tab1 WHERE - col0 >= ( - + 72 + CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT 18 + col0 AS col2 FROM tab1
----
103
109
69

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

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

query I rowsort
SELECT DISTINCT + 84 * col2 * + 33 + - col0 FROM tab2 AS cor0
----
110816
160701
63710

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

query I rowsort
SELECT ALL col0 + + col1 * - 80 AS col1 FROM tab1 cor0
----
-1069
-315
-3669

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 + ( col2 ) >= - 94
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

query II rowsort
SELECT ALL + 74 AS col1, - col1 + + col1 AS col1 FROM tab0 AS cor0
----
74
0
74
0
74
0

query I rowsort
SELECT ALL 46 * - - 10 * - 69 AS col1 FROM tab0
----
-31740
-31740
-31740

query I rowsort
SELECT DISTINCT + 98 AS col0 FROM tab1 WHERE - 51 = NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6594
SELECT + COUNT( * ) * - + 33 FROM tab2 WHERE NOT 9 - - + col2 * CAST( NULL AS SIGNED ) * + + CAST( + 98 AS DECIMAL ) IS NOT NULL
----
-99

skipif mysql # not compatible
query I rowsort label-6594
SELECT + COUNT ( * ) * - + 33 FROM tab2 WHERE NOT 9 - - + col2 * CAST ( NULL AS INTEGER ) * + + CAST ( + 98 AS REAL ) IS NOT NULL
----
-99

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) <> + - ( + 40 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6596
SELECT DISTINCT + + 98, col1 - + + 45 * + col2 / - + col2 FROM tab0 AS cor0 WHERE NOT + 79 NOT BETWEEN - + CAST( + ( + 6 ) AS SIGNED ) AND + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query II rowsort label-6596
SELECT DISTINCT + + 98, col1 - + + 45 * + col2 / - + col2 FROM tab0 AS cor0 WHERE NOT + 79 NOT BETWEEN - + CAST ( + ( + 6 ) AS INTEGER ) AND + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL col0 + + + col0 * + col2 * - + 38 FROM tab1
----
-185997
-190485
-235053

onlyif mysql # aggregate syntax: 
query II rowsort label-6598
SELECT DISTINCT - 37 AS col2, + SUM( ALL + - col2 ) AS col1 FROM tab1 cor0
----
-37
-223

skipif mysql # not compatible
query II rowsort label-6598
SELECT DISTINCT - 37 AS col2, + SUM ( ALL + - col2 ) AS col1 FROM tab1 cor0
----
-37
-223

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6599
SELECT DISTINCT + 48 DIV COUNT( - col0 ) + + + 52 AS col0 FROM tab1 cor0
----
68

skipif mysql # not compatible
query I rowsort label-6599
SELECT DISTINCT + 48 / COUNT ( - col0 ) + + + 52 AS col0 FROM tab1 cor0
----
68

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT + + col0 + - + 24 FROM tab2 AS cor0
----
22
40
51

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 47, col0 * - col2 col0 FROM tab1 cor0
----
47
-4896
47
-5015
47
-6188

query I rowsort
SELECT + 96 * col0 * - 9 AS col2 FROM tab0 cor0
----
-12960
-75168
-83808

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NOT 97 + col2 IS NULL )
----

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

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab1 WHERE NOT NULL BETWEEN NULL AND NULL
----

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

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

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

query I rowsort
SELECT + col2 AS col2 FROM tab1 AS cor0 WHERE col0 <> col0 + + col2
----
59
68
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 62 + + col0 col2 FROM tab2 cor0
----
108
126
137

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

query II rowsort
SELECT + ( + + col0 ) AS col2, 20 + - + col2 AS col0 FROM tab0 AS cor0
----
15
-27
87
10
97
-79

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

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

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

skipif mysql # not compatible
query I rowsort label-6619
SELECT DISTINCT col2 + + - 72 + + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6623
SELECT + ( + + COUNT( * ) ) AS col2 FROM tab2 AS cor0 WHERE ( ( NOT ( + 93 ) BETWEEN + + 70 AND NULL ) )
----
0

skipif mysql # not compatible
query I rowsort label-6623
SELECT + ( + + COUNT ( * ) ) AS col2 FROM tab2 AS cor0 WHERE ( ( NOT ( + 93 ) BETWEEN + + 70 AND NULL ) )
----
0

query I rowsort
SELECT + + 1 * - + 16 AS col0 FROM tab2 AS cor0
----
-16
-16
-16

query II rowsort
SELECT DISTINCT + - col2 * + col0 * 49, 55 * - 38 * + col2 * + col0 + + col0 AS col2 FROM tab1 AS cor0
----
-239904
-10232589
-245735
-10481265
-303212
-12932829

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6626
SELECT COUNT( DISTINCT - CAST( + 41 AS SIGNED ) ) col0, + MIN( DISTINCT + + CAST( NULL AS SIGNED ) ) FROM tab0 cor0
----
1
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6626
SELECT COUNT ( DISTINCT - CAST ( + 41 AS INTEGER ) ) col0, + MIN ( DISTINCT + + CAST ( NULL AS INTEGER ) ) FROM tab0 cor0
----
1
NULL

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6629
SELECT DISTINCT CAST( - col0 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-6629
SELECT DISTINCT CAST ( - col0 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # DIV for integer division: 
query II rowsort label-6630
SELECT DISTINCT + + 70 AS col0, + col1 * + 21 + 2 + + ( - - col0 ) DIV 13 col1 FROM tab0 cor0
----
70
1704
70
30
70
449

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6630
SELECT DISTINCT + + 70 AS col0, + col1 * + 21 + 2 + + ( - - col0 ) / 13 col1 FROM tab0 cor0
----
70
1704
70
30
70
449

query III rowsort
SELECT ALL * FROM tab1 WHERE - 70 NOT BETWEEN NULL AND NULL
----

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

query I rowsort
SELECT ALL 68 * + 84 * 59 FROM tab2
----
337008
337008
337008

query II rowsort
SELECT - col0 AS col0, col2 * + 6 FROM tab1
----
-51
576
-85
354
-91
408

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6637
SELECT DISTINCT + + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6637
SELECT DISTINCT + + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6638
SELECT ALL MAX( + + 18 ) FROM tab0 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-6638
SELECT ALL MAX ( + + 18 ) FROM tab0 AS cor0
----
18

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

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

query I rowsort
SELECT - 98 + - - col2 FROM tab1 AS cor0
----
-2
-30
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-6642
SELECT ALL + MAX( ALL + - 21 ) + 67 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-6642
SELECT ALL + MAX ( ALL + - 21 ) + 67 FROM tab2 AS cor0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-6643
SELECT COUNT( * ) FROM tab1 AS cor0 WHERE NULL NOT BETWEEN + col1 AND ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-6643
SELECT COUNT ( * ) FROM tab1 AS cor0 WHERE NULL NOT BETWEEN + col1 AND ( NULL )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6644
SELECT DISTINCT - - 54 DIV - col0 + - col0 + - col2 AS col2 FROM tab1 cor0
----
-144
-148
-159

skipif mysql # not compatible
query I rowsort label-6644
SELECT DISTINCT - - 54 / - col0 + - col0 + - col2 AS col2 FROM tab1 cor0
----
-144
-148
-159

query I rowsort
SELECT ALL + - 31 + - col1 FROM tab0 AS cor0
----
-112
-32
-52

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6647
SELECT - COUNT( * ) * - 66 AS col2 FROM tab1
----
198

skipif mysql # not compatible
query I rowsort label-6647
SELECT - COUNT ( * ) * - 66 AS col2 FROM tab1
----
198

query II rowsort
SELECT col2, col1 + - 61 FROM tab2
----
23
-10
40
16
58
6

onlyif mysql # DIV for integer division: 
query I rowsort label-6649
SELECT ALL - 25 DIV + col1 + - - 3 + - col1 AS col2 FROM tab1
----
-12
-44
-7

skipif mysql # not compatible
query I rowsort label-6649
SELECT ALL - 25 / + col1 + - - 3 + - col1 AS col2 FROM tab1
----
-12
-44
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6650
SELECT - CAST( - + 54 AS SIGNED ) FROM tab0
----
54
54
54

skipif mysql # not compatible
query I rowsort label-6650
SELECT - CAST ( - + 54 AS INTEGER ) FROM tab0
----
54
54
54

query I rowsort
SELECT - col1 * - col0 * + col2 FROM tab2
----
197120
291450
53958

query I rowsort
SELECT col2 * + 61 * + - col1 FROM tab2
----
-187880
-237046
-71553

query II rowsort
SELECT + col2 * + + col1 * col2 AS col0, 6 FROM tab2
----
123200
6
225388
6
26979
6

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6656
SELECT ALL col0 + + col2 DIV 39 FROM tab0 AS cor0
----
16
87
99

skipif mysql # not compatible
query I rowsort label-6656
SELECT ALL col0 + + col2 / 39 FROM tab0 AS cor0
----
16
87
99

query I rowsort
SELECT 79 + col2 AS col0 FROM tab2 cor0
----
102
119
137

query I rowsort
SELECT DISTINCT - col2 - - col1 * col2 * + + col2 - - col2 AS col0 FROM tab2
----
123200
225388
26979

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6660
SELECT + CAST( col0 AS SIGNED ) * - - col1 + - 24 AS col1 FROM tab2
----
2322
4904
5001

skipif mysql # not compatible
query I rowsort label-6660
SELECT + CAST ( col0 AS INTEGER ) * - - col1 + - 24 AS col1 FROM tab2
----
2322
4904
5001

onlyif mysql # aggregate syntax: 
query I rowsort label-6661
SELECT DISTINCT - ( + 70 ) + - 76 + + - MIN( ALL + + col0 ) * + COUNT( * ) FROM tab0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6661
SELECT DISTINCT - ( + 70 ) + - 76 + + - MIN ( ALL + + col0 ) * + COUNT ( * ) FROM tab0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT 98 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809

query I rowsort
SELECT ALL + 13 * + - 98 AS col0 FROM tab1 cor0
----
-1274
-1274
-1274

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - col2 BETWEEN NULL AND - + ( 96 ) + - - 17 + 50 + - + col0 + + - 47
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6666
SELECT - - col2 DIV - col2 + - col1 FROM tab1 AS cor0
----
-15
-48
-6

skipif mysql # not compatible
query I rowsort label-6666
SELECT - - col2 / - col2 + - col1 FROM tab1 AS cor0
----
-15
-48
-6

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

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

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

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

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

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

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 AS col2, col1 col0 FROM tab2
----
46
51
64
77
75
67

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

skipif mysql # not compatible
query I rowsort label-6675
SELECT DISTINCT COUNT ( + + ( 73 ) ) FROM tab1
----
3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6677
SELECT DISTINCT - MIN( - col0 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( - col0, - 15 + - col1 / col2 * col2 + + - col1 + + col2 * - + col2 * + + 95 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6677
SELECT DISTINCT - MIN ( - col0 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( - col0, - 15 + - col1 / col2 * col2 + + - col1 + + col2 * - + col2 * + + 95 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6678
SELECT DISTINCT - col1, CAST( + col2 AS SIGNED ) * + col0 + - col2 + - col1 - + col2 AS col0 FROM tab2 AS cor0
----
-51
961
-67
4167
-77
2403

skipif mysql # not compatible
query II rowsort label-6678
SELECT DISTINCT - col1, CAST ( + col2 AS INTEGER ) * + col0 + - col2 + - col1 - + col2 AS col0 FROM tab2 AS cor0
----
-51
961
-67
4167
-77
2403

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

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

query I rowsort
SELECT ALL 6 * - 10 FROM tab2
----
-60
-60
-60

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6681
SELECT ALL CAST( NULL AS SIGNED ), 11 + + 32 AS col1 FROM tab1 AS cor0
----
NULL
43
NULL
43
NULL
43

skipif mysql # not compatible
query II rowsort label-6681
SELECT ALL CAST ( NULL AS INTEGER ), 11 + + 32 AS col1 FROM tab1 AS cor0
----
NULL
43
NULL
43
NULL
43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 17 col1, 94 AS col1 FROM tab1 AS cor0
----
-17
94
-17
94
-17
94

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

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

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

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

query I rowsort
SELECT ALL 57 + 97 AS col1 FROM tab0 AS cor0
----
154
154
154

onlyif mysql # aggregate syntax: 
query I rowsort label-6687
SELECT + 28 + MAX( - 86 ) FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-6687
SELECT + 28 + MAX ( - 86 ) FROM tab2 AS cor0
----
-58

query I rowsort
SELECT + col2 * col0 + + - 89 FROM tab1 AS cor0
----
4807
4926
6099

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

query I rowsort
SELECT 37 + - 40 + - col2 AS col0 FROM tab1
----
-62
-71
-99

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

skipif mysql # not compatible
query I rowsort label-6691
SELECT ( + 65 ) * - + CAST ( NULL AS INTEGER ) + + COUNT ( * ) FROM tab0
----
NULL

query I rowsort
SELECT ALL - 41 * + - col1 * - - col1 FROM tab2
----
106641
184049
243089

onlyif mysql # aggregate syntax: 
query I rowsort label-6693
SELECT + 93 * + + COUNT( * ) AS col0 FROM tab1 AS cor0
----
279

skipif mysql # not compatible
query I rowsort label-6693
SELECT + 93 * + + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
279

onlyif mysql # aggregate syntax: 
query I rowsort label-6694
SELECT DISTINCT - - COUNT( * ) + + + 58 * + COUNT( * ) FROM tab2 AS cor0
----
177

skipif mysql # not compatible
query I rowsort label-6694
SELECT DISTINCT - - COUNT ( * ) + + + 58 * + COUNT ( * ) FROM tab2 AS cor0
----
177

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

skipif mysql # not compatible
query II rowsort label-6695
SELECT ALL + + COUNT ( * ) AS col0, - COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9
-9

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6697
SELECT + MAX( + col1 ) * + - MAX( 67 ) col2 FROM tab2
----
-5159

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6697
SELECT + MAX ( + col1 ) * + - MAX ( 67 ) col2 FROM tab2
----
-5159

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT ( NULL ) < - 17
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6699
SELECT + + col1 * + col1 + col0 DIV col1 AS col2 FROM tab0 AS cor0
----
445
6561
98

skipif mysql # not compatible
query I rowsort label-6699
SELECT + + col1 * + col1 + col0 / col1 AS col2 FROM tab0 AS cor0
----
445
6561
98

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6701
SELECT - MAX( + col0 ) DIV - COUNT( * ) AS col1 FROM tab1 cor0
----
30

skipif mysql # not compatible
query I rowsort label-6701
SELECT - MAX ( + col0 ) / - COUNT ( * ) AS col1 FROM tab1 cor0
----
30

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6703
SELECT ALL - COUNT( DISTINCT + + 69 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1

skipif mysql # not compatible
query I rowsort label-6703
SELECT ALL - COUNT ( DISTINCT + + 69 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6705
SELECT + MAX( + col1 ) AS col2 FROM tab2 cor0 WHERE NOT + 9 + col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6705
SELECT + MAX ( + col1 ) AS col2 FROM tab2 cor0 WHERE NOT + 9 + col0 IS NOT NULL
----
NULL

query I rowsort
SELECT 7 * - 76 * - col0 FROM tab1
----
27132
45220
48412

query I rowsort
SELECT ALL 30 * - - 21 AS col2 FROM tab0
----
630
630
630

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6708
SELECT ALL - COUNT( * ) DIV 52 col0, 48 col2 FROM tab1
----
0
48

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6708
SELECT ALL - COUNT ( * ) / 52 col0, 48 col2 FROM tab1
----
0
48

query I rowsort
SELECT ( + 78 ) AS col1 FROM tab1
----
78
78
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6710
SELECT ( - CAST( col2 AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-6710
SELECT ( - CAST ( col2 AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-6711
SELECT ALL MIN( DISTINCT + + col1 ) * ( - + 1 ) * - 0, - ( - 82 ) AS col1 FROM tab1 AS cor0
----
0
82

skipif mysql # not compatible
query II rowsort label-6711
SELECT ALL MIN ( DISTINCT + + col1 ) * ( - + 1 ) * - 0, - ( - 82 ) AS col1 FROM tab1 AS cor0
----
0
82

query I rowsort
SELECT - col0 * + 62 FROM tab1
----
-3162
-5270
-5642

onlyif mysql # aggregate syntax: 
query I rowsort label-6713
SELECT MIN( ALL + + col1 ) * - ( - 7 ) AS col2 FROM tab0 WHERE col2 = col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6713
SELECT MIN ( ALL + + col1 ) * - ( - 7 ) AS col2 FROM tab0 WHERE col2 = col1
----
NULL

query I rowsort
SELECT + - 57 + 9 + + 71 AS col2 FROM tab0 AS cor0
----
23
23
23

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6716
SELECT ALL 96 + + + 7 FROM tab1 cor0 WHERE NOT NULL BETWEEN col2 + + ( + CAST( 23 AS SIGNED ) ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-6716
SELECT ALL 96 + + + 7 FROM tab1 cor0 WHERE NOT NULL BETWEEN col2 + + ( + CAST ( 23 AS INTEGER ) ) AND NULL
----

query II rowsort
SELECT DISTINCT col0 AS col2, - 37 - col2 * - col0 AS col1 FROM tab1 AS cor0
----
51
4859
85
4978
91
6151

query I rowsort
SELECT ALL - 63 + col2 AS col0 FROM tab2 AS cor0
----
-23
-40
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - + 97 col0 FROM tab0 AS cor0
----
2037
7857
97

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

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

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

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

query II rowsort
SELECT DISTINCT - col2, + 55 + - col1 + 35 AS col2 FROM tab2
----
-23
39
-40
13
-58
23

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6724
SELECT CAST( col2 AS SIGNED ) AS col1 FROM tab2 WHERE NULL <= + col0 + - 91
----

skipif mysql # not compatible
query I rowsort label-6724
SELECT CAST ( col2 AS INTEGER ) AS col1 FROM tab2 WHERE NULL <= + col0 + - 91
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6725
SELECT ALL 48 * - - COUNT( * ) FROM tab1
----
144

skipif mysql # not compatible
query I rowsort label-6725
SELECT ALL 48 * - - COUNT ( * ) FROM tab1
----
144

query I rowsort
SELECT 37 - + - col1 FROM tab2
----
104
114
88

onlyif mysql # DIV for integer division: 
query I rowsort label-6727
SELECT DISTINCT - col2 DIV - 45 FROM tab0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-6727
SELECT DISTINCT - col2 / - 45 FROM tab0
----
0
1
2

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6729
SELECT DISTINCT - CAST( NULL AS SIGNED ), - col1 AS col0 FROM tab0 cor0
----
NULL
-1
NULL
-21
NULL
-81

skipif mysql # not compatible
query II rowsort label-6729
SELECT DISTINCT - CAST ( NULL AS INTEGER ), - col1 AS col0 FROM tab0 cor0
----
NULL
-1
NULL
-21
NULL
-81

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

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

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

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

query I rowsort
SELECT - 51 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 08d3853e39924d3c636260a6dd856837

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6734
SELECT + MAX( ALL col2 ) DIV + ( + 37 ) AS col1 FROM tab1 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-6734
SELECT + MAX ( ALL col2 ) / + ( + 37 ) AS col1 FROM tab1 AS cor0
----
2

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6735
SELECT DISTINCT - 74 * COUNT ( * ) col1 FROM tab2
----
-222

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6737
SELECT DISTINCT - 92 DIV - - col1 FROM tab1
----
-1
-18
-6

skipif mysql # not compatible
query I rowsort label-6737
SELECT DISTINCT - 92 / - - col1 FROM tab1
----
-1
-18
-6

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

query I rowsort
SELECT - + col2 AS col0 FROM tab0 WHERE NOT + 43 IS NULL
----
-10
-47
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6740
SELECT DISTINCT - CAST( - 47 AS SIGNED ) * + 59 * - COUNT( - col2 ) AS col0 FROM tab0
----
-8319

skipif mysql # not compatible
query I rowsort label-6740
SELECT DISTINCT - CAST ( - 47 AS INTEGER ) * + 59 * - COUNT ( - col2 ) AS col0 FROM tab0
----
-8319

query I rowsort
SELECT DISTINCT col0 + + - 84 FROM tab2
----
-20
-38
-9

query I rowsort
SELECT ALL - 79 * + - col1 AS col1 FROM tab2
----
4029
5293
6083

query I rowsort
SELECT DISTINCT + 26 * col1 AS col0 FROM tab2 AS cor0
----
1326
1742
2002

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6745
SELECT ALL - COUNT( * ) * - COUNT( ALL - 18 ) FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-6745
SELECT ALL - COUNT ( * ) * - COUNT ( ALL - 18 ) FROM tab2 AS cor0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-6746
SELECT col1 + col0 + - col0 + col1 DIV + + ( - - ( - col1 ) ) AS col2 FROM tab2 AS cor0
----
50
66
76

skipif mysql # not compatible
query I rowsort label-6746
SELECT col1 + col0 + - col0 + col1 / + + ( - - ( - col1 ) ) AS col2 FROM tab2 AS cor0
----
50
66
76

query II rowsort
SELECT + 13, col2 AS col0 FROM tab1 AS cor0
----
13
59
13
68
13
96

query I rowsort
SELECT DISTINCT - 3 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-3

query I rowsort
SELECT DISTINCT col2 + - 15 * col2 AS col1 FROM tab1 WHERE NULL IS NULL
----
-1344
-826
-952

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

query II rowsort
SELECT - + col0 AS col0, 54 AS col2 FROM tab2 WHERE ( col0 IS NOT NULL )
----
-46
54
-64
54
-75
54

query I rowsort
SELECT DISTINCT - col1 + + col0 + + 38 AS col0 FROM tab0
----
-28
104
134

query I rowsort
SELECT - 99 * + col2 AS col2 FROM tab1 AS cor0
----
-5841
-6732
-9504

query I rowsort
SELECT + 9 - + col2 AS col2 FROM tab0 AS cor0
----
-1
-38
-90

query I rowsort
SELECT DISTINCT col2 * + 1 AS col1 FROM tab1 cor0 WHERE NULL IS NULL
----
59
68
96

query I rowsort
SELECT - 12 - + col2 + + col1 AS col2 FROM tab1 AS cor0
----
-33
-66
-94

query I rowsort
SELECT DISTINCT + 92 - + col2 FROM tab0 AS cor0
----
-7
45
82

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 + 69 + + col0 + - + col2 + col0 col0, + 99 FROM tab0 AS cor0
----
223
99
5
99
65
99

query I rowsort
SELECT DISTINCT col1 - + - col1 FROM tab1
----
10
28
94

query I rowsort
SELECT ALL + 64 - + 27 FROM tab1
----
37
37
37

query III rowsort
SELECT * FROM tab2 WHERE NULL >= - - col1 * - 76
----

query I rowsort
SELECT DISTINCT col1 * 42 - - - col1 FROM tab0
----
3321
41
861

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6766
SELECT + 98 DIV - COUNT( * ) FROM tab2
----
-32

skipif mysql # not compatible
query I rowsort label-6766
SELECT + 98 / - COUNT ( * ) FROM tab2
----
-32

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

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

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

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

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

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

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

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 30 <= - - 12 * col2 + - 22
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6775
SELECT + - COUNT( * ) AS col0 FROM tab0, tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6775
SELECT + - COUNT ( * ) AS col0 FROM tab0, tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6777
SELECT ALL COUNT( * ) / - ( + ( + - 99 ) ) + CAST( NULL AS SIGNED ), + CAST( 23 AS SIGNED ) AS col2 FROM tab2
----
NULL
23

skipif mysql # not compatible
query II rowsort label-6777
SELECT ALL COUNT ( * ) / - ( + ( + - 99 ) ) + CAST ( NULL AS INTEGER ), + CAST ( 23 AS INTEGER ) AS col2 FROM tab2
----
NULL
23

query I rowsort
SELECT DISTINCT + col0 * col0 + 35 FROM tab2 AS cor0
----
2151
4131
5660

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col0 FROM tab0 cor0 WHERE + 40 >= + 61 * + col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 66 NOT IN ( + ( col2 ) / col2, col0 + - + col1, - col1 + 83 + col1, + 65 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6781
SELECT ALL COUNT( * ) * 64 / CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6781
SELECT ALL COUNT ( * ) * 64 / CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6783
SELECT ALL + COUNT( * ) - - + MAX( DISTINCT - 27 ) - - 74 FROM tab1
----
50

skipif mysql # not compatible
query I rowsort label-6783
SELECT ALL + COUNT ( * ) - - + MAX ( DISTINCT - 27 ) - - 74 FROM tab1
----
50

query I rowsort
SELECT col0 + - 16 + + col1 + + col2 + - 98 * + + col1 * - + col2 * - col2 FROM tab1
----
-12644207
-1705557
-21297954

query I rowsort
SELECT - col0 * - 55 + 45 FROM tab2
----
2575
3565
4170

onlyif mysql # DIV for integer division: 
query II rowsort label-6786
SELECT DISTINCT col0 AS col2, - col1 DIV - 3 + + - col0 FROM tab1
----
51
-47
85
-84
91
-76

skipif mysql # not compatible
query II rowsort label-6786
SELECT DISTINCT col0 AS col2, - col1 / - 3 + + - col0 FROM tab1
----
51
-47
85
-84
91
-76

query I rowsort
SELECT + col0 + 74 * + 66 FROM tab2 cor0
----
4930
4948
4959

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

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

query I rowsort
SELECT DISTINCT + ( - 1 ) * + - col2 + 91 AS col2 FROM tab0 AS cor0
----
101
138
190

query I rowsort
SELECT ALL + 5 + 58 FROM tab2 cor0
----
63
63
63

query I rowsort
SELECT + 76 - - ( + col1 ) AS col0 FROM tab1
----
123
81
90

onlyif mysql # aggregate syntax: 
query I rowsort label-6792
SELECT ALL + COUNT( * ) * - + 13 + - + COUNT( * ) AS col1 FROM tab0
----
-42

skipif mysql # not compatible
query I rowsort label-6792
SELECT ALL + COUNT ( * ) * - + 13 + - + COUNT ( * ) AS col1 FROM tab0
----
-42

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

skipif mysql # not compatible
query III rowsort label-6793
SELECT DISTINCT * FROM tab0 WHERE NOT CAST ( NULL AS INTEGER ) IS NULL
----

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

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

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

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

query I rowsort
SELECT ALL col1 * - - 77 FROM tab0 AS cor0
----
1617
6237
77

onlyif mysql # DIV for integer division: 
query I rowsort label-6798
SELECT ALL - 41 DIV col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6798
SELECT ALL - 41 / col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6799
SELECT - 12 DIV - MIN( + 77 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6799
SELECT - 12 / - MIN ( + 77 ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT - 16 * + + col2 AS col2 FROM tab0 AS cor0
----
-1584
-160
-752

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

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

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

query I rowsort
SELECT DISTINCT ( - 93 ) FROM tab1, tab1 AS cor0
----
-93

query I rowsort
SELECT ALL ( - - col0 ) FROM tab1
----
51
85
91

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

query I rowsort
SELECT DISTINCT col0 + - 17 FROM tab1 AS cor0
----
34
68
74

onlyif mysql # DIV for integer division: 
query I rowsort label-6807
SELECT + col1 DIV + - 20 AS col1 FROM tab1 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-6807
SELECT + col1 / + - 20 AS col1 FROM tab1 AS cor0
----
-2
0
0

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

skipif mysql # not compatible
query I rowsort label-6808
SELECT - MIN ( DISTINCT - 26 ) FROM tab2 AS cor0
----
26

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

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

query I rowsort
SELECT DISTINCT col2 + 70 AS col2 FROM tab0 AS cor0
----
117
169
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 35 col1, col0 * - + col0 AS col2 FROM tab1
----
35
-2601
35
-7225
35
-8281

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6813
SELECT + 12 * + COUNT( * ) AS col0 FROM tab0
----
36

skipif mysql # not compatible
query I rowsort label-6813
SELECT + 12 * + COUNT ( * ) AS col0 FROM tab0
----
36

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col0 + + - col2 col1 FROM tab2
----
1035
2520
4292

query I rowsort
SELECT ALL + col2 + 68 AS col2 FROM tab1
----
127
136
164

query I rowsort
SELECT + 86 + - + 8 FROM tab0
----
78
78
78

query I rowsort
SELECT - ( 52 ) + - + col0 + - ( - col2 ) AS col0 FROM tab1 AS cor0 WHERE ( NULL ) <> + 15
----

query I rowsort
SELECT 96 + col2 - - 62 FROM tab2 AS cor0
----
181
198
216

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

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

query I rowsort
SELECT 81 - col1 AS col0 FROM tab1
----
34
67
76

onlyif mysql # aggregate syntax: 
query II rowsort label-6823
SELECT DISTINCT + COUNT( * ) * - + 23 AS col2, - 69 AS col2 FROM tab1 cor0
----
-69
-69

skipif mysql # not compatible
query II rowsort label-6823
SELECT DISTINCT + COUNT ( * ) * - + 23 AS col2, - 69 AS col2 FROM tab1 cor0
----
-69
-69

query I rowsort
SELECT 52 + + - 90 FROM tab2 AS cor0
----
-38
-38
-38

query I rowsort
SELECT ALL - - 1 + col1 FROM tab1 AS cor0
----
15
48
6

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

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

query I rowsort
SELECT - - col2 + + - ( + 48 ) * col2 AS col1 FROM tab1 AS cor0
----
-2773
-3196
-4512

query I rowsort
SELECT ALL - 58 * col1 + 95 AS col0 FROM tab0 AS cor0
----
-1123
-4603
37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - ( - col2 ) * + - 89 + col2 col0 FROM tab2 AS cor0
----
-227800
-387092
-94139

query I rowsort
SELECT DISTINCT - - col0 + col0 + - - ( - 10 ) FROM tab0 AS cor0
----
164
184
20

query I rowsort
SELECT ALL - col2 - - col0 + - 2 FROM tab2 AS cor0
----
15
21
22

query I rowsort
SELECT ALL - ( - + col2 ) * + 99 AS col2 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col1 * - 4 FROM tab2
----
204
268
308

query I rowsort
SELECT + ( + 6 ) FROM tab2
----
6
6
6

query II rowsort
SELECT - - col0, + 72 FROM tab0 WHERE NOT NULL IS NULL
----

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

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

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

query I rowsort
SELECT + 4 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6839
SELECT CAST ( - + COUNT ( ALL col0 ) AS INTEGER ) col0 FROM tab1
----
-3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6841
SELECT ALL - COUNT( * ) * - - 59 FROM tab2 AS cor0
----
-177

skipif mysql # not compatible
query I rowsort label-6841
SELECT ALL - COUNT ( * ) * - - 59 FROM tab2 AS cor0
----
-177

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6843
SELECT + - ( + 64 ) AS col0 FROM tab0 cor0 WHERE NOT NULL BETWEEN - 39 AND + CAST( NULL AS SIGNED ) + + - col0
----

skipif mysql # not compatible
query I rowsort label-6843
SELECT + - ( + 64 ) AS col0 FROM tab0 cor0 WHERE NOT NULL BETWEEN - 39 AND + CAST ( NULL AS INTEGER ) + + - col0
----

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 72 * col2 - - 59 col2 FROM tab2
----
1715
2939
4235

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

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

query III rowsort
SELECT * FROM tab2 WHERE 93 + - ( col1 ) * col0 <> NULL
----

query I rowsort
SELECT ALL - col0 AS col1 FROM tab2 WHERE NOT ( - col2 ) BETWEEN ( NULL ) AND - 54 + - col0
----
-46
-64
-75

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab2 WHERE NOT NULL IN ( - col1 + 36 )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6853
SELECT DISTINCT MAX( DISTINCT col1 ) col0 FROM tab1
----
47

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

query I rowsort
SELECT 33 * 25 AS col2 FROM tab0
----
825
825
825

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 86 * col0 + + col2 * col0 col0 FROM tab2 WHERE NOT + 83 NOT IN ( ( col1 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6856
SELECT DISTINCT + ( COUNT( * ) ) + + 92 AS col1 FROM tab2
----
95

skipif mysql # not compatible
query I rowsort label-6856
SELECT DISTINCT + ( COUNT ( * ) ) + + 92 AS col1 FROM tab2
----
95

query I rowsort
SELECT ALL - 10 - 47 AS col2 FROM tab2
----
-57
-57
-57

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

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

query III rowsort
SELECT * FROM tab1 WHERE + 96 - 82 * + 45 BETWEEN ( + col0 - 41 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6860
SELECT COUNT( * ) * - COUNT( * ) col0 FROM tab0
----
-9

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6863
SELECT ALL * FROM tab1 WHERE CAST( NULL AS DECIMAL ) * + col0 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-6863
SELECT ALL * FROM tab1 WHERE CAST ( NULL AS REAL ) * + col0 IS NOT NULL
----

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

skipif mysql # not compatible
query III rowsort label-6864
SELECT * FROM tab2 WHERE ( + CAST ( + 84 AS INTEGER ) ) IS NULL
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( col1 ) col0 FROM tab0
----
-1
-21
-81

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6870
SELECT ALL - MAX( DISTINCT + col2 ) FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-6870
SELECT ALL - MAX ( DISTINCT + col2 ) FROM tab2
----
-58

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

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

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

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

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

query I rowsort
SELECT ALL + 59 - 32 AS col0 FROM tab1 cor0
----
27
27
27

onlyif mysql # aggregate syntax: 
query I rowsort label-6876
SELECT ALL + SUM( + col1 ) AS col0 FROM tab1 cor0 WHERE + 3 + 97 IN ( col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6876
SELECT ALL + SUM ( + col1 ) AS col0 FROM tab1 cor0 WHERE + 3 + 97 IN ( col0 )
----
NULL

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( 13 * col2 ) NOT IN ( ( + col0 ) * ( 56 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-6879
SELECT + col1 DIV + col2 + - col1 FROM tab0
----
-1
-19
-80

skipif mysql # not compatible
query I rowsort label-6879
SELECT + col1 / + col2 + - col1 FROM tab0
----
-1
-19
-80

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

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

query I rowsort
SELECT col2 AS col2 FROM tab1 WHERE NULL <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 48 <= ( col2 + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - - col0 * col0 AS col1 FROM tab0 cor0
----
225
7569
9409

query I rowsort
SELECT - col0 * 18 FROM tab2 AS cor0
----
-1152
-1350
-828

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6889
SELECT + 69 * COUNT( * ) DIV MAX( col2 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-6889
SELECT + 69 * COUNT ( * ) / MAX ( col2 ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6890
SELECT - SUM( - 73 ) AS col1 FROM tab0
----
219

skipif mysql # not compatible
query I rowsort label-6890
SELECT - SUM ( - 73 ) AS col1 FROM tab0
----
219

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE 13 * col1 = NULL
----

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

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

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

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

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

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

query I rowsort
SELECT ALL - col2 * - + col1 * 70 + + col2 * ( col0 + - 53 * 70 ) AS col0 FROM tab1 AS cor0
----
-193225
-22372
-257184

query I rowsort
SELECT ( + ( + col0 ) ) * col1 AS col0 FROM tab1 AS cor0
----
425
4277
714

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6900
SELECT DISTINCT + + CAST( 8 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-6900
SELECT DISTINCT + + CAST ( 8 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-6901
SELECT ALL col2 * col0 DIV col2 + - 25 FROM tab0 AS cor0
----
-10
62
72

skipif mysql # not compatible
query I rowsort label-6901
SELECT ALL col2 * col0 / col2 + - 25 FROM tab0 AS cor0
----
-10
62
72

query I rowsort
SELECT - 49 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 01b1fa22fee872a7ba64f90d6046ffae

onlyif mysql # aggregate syntax: 
query I rowsort label-6903
SELECT DISTINCT SUM( + 41 ) AS col1 FROM tab0
----
123

skipif mysql # not compatible
query I rowsort label-6903
SELECT DISTINCT SUM ( + 41 ) AS col1 FROM tab0
----
123

query I rowsort
SELECT ALL col1 * - - col2 AS col0 FROM tab1
----
1344
295
3196

onlyif mysql # DIV for integer division: 
query I rowsort label-6905
SELECT DISTINCT col1 DIV + + 88 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6905
SELECT DISTINCT col1 / + + 88 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6906
SELECT ALL 53 + + + MAX( - + col1 ) FROM tab2
----
2

skipif mysql # not compatible
query I rowsort label-6906
SELECT ALL 53 + + + MAX ( - + col1 ) FROM tab2
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6907
SELECT * FROM tab1 cor0 WHERE 87 + 27 NOT BETWEEN - CAST( NULL AS SIGNED ) AND + 19
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-6907
SELECT * FROM tab1 cor0 WHERE 87 + 27 NOT BETWEEN - CAST ( NULL AS INTEGER ) AND + 19
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query II rowsort
SELECT + 13, col0 FROM tab2 AS cor0
----
13
46
13
64
13
75

query I rowsort
SELECT ALL - 46 + ( + col1 ) AS col2 FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
-25
-45
35

query I rowsort
SELECT - 59 + - 37 AS col1 FROM tab0 cor0 WHERE ( + col1 ) IS NULL
----

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6913
SELECT DISTINCT - 67, + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-67
3

skipif mysql # not compatible
query II rowsort label-6913
SELECT DISTINCT - 67, + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-67
3

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

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

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

query I rowsort
SELECT ALL - - 46 * - col1 AS col1 FROM tab2 AS cor0
----
-2346
-3082
-3542

onlyif mysql # DIV for integer division: 
query I rowsort label-6917
SELECT - 90 * 17 DIV + ( ( - 59 ) ) + + ( - 38 ) col0 FROM tab1 AS cor0
----
-13
-13
-13

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6917
SELECT - 90 * 17 / + ( ( - 59 ) ) + + ( - 38 ) col0 FROM tab1 AS cor0
----
-13
-13
-13

query I rowsort
SELECT ALL 70 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND - 70 * - col1
----

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6921
SELECT ALL + - col1 DIV col2 + + 33 FROM tab2 AS cor0
----
31
32
32

skipif mysql # not compatible
query I rowsort label-6921
SELECT ALL + - col1 / col2 + + 33 FROM tab2 AS cor0
----
31
32
32

onlyif mysql # aggregate syntax: 
query I rowsort label-6922
SELECT - COUNT( ALL + + ( 67 ) ) * - 28 + COUNT( * ) AS col1 FROM tab2
----
87

skipif mysql # not compatible
query I rowsort label-6922
SELECT - COUNT ( ALL + + ( 67 ) ) * - 28 + COUNT ( * ) AS col1 FROM tab2
----
87

onlyif mysql # DIV for integer division: 
query I rowsort label-6923
SELECT DISTINCT 1 * + - ( + + col2 ) + + - col1 + col0 DIV col0 FROM tab1
----
-109
-114
-63

skipif mysql # not compatible
query I rowsort label-6923
SELECT DISTINCT 1 * + - ( + + col2 ) + + - col1 + col0 / col0 FROM tab1
----
-109
-114
-63

query I rowsort
SELECT ALL col1 * + 21 FROM tab2
----
1071
1407
1617

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6926
SELECT ALL - 7 DIV - - COUNT( * ) FROM tab1
----
-2

skipif mysql # not compatible
query I rowsort label-6926
SELECT ALL - 7 / - - COUNT ( * ) FROM tab1
----
-2

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6928
SELECT ALL - COUNT( * ) + - CAST( NULL AS SIGNED ) AS col2, COUNT( + 50 ) + 29 col0 FROM tab0 AS cor0
----
NULL
32

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6928
SELECT ALL - COUNT ( * ) + - CAST ( NULL AS INTEGER ) AS col2, COUNT ( + 50 ) + 29 col0 FROM tab0 AS cor0
----
NULL
32

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

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) IS NOT NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

onlyif mysql # DIV for integer division: 
query I rowsort label-6931
SELECT - + 87 DIV - 85 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6931
SELECT - + 87 / - 85 FROM tab1 AS cor0
----
1
1
1

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6933
SELECT + col1 * col2 DIV 37 * + col2 AS col2 FROM tab0 AS cor0
----
198
4794
50

skipif mysql # not compatible
query I rowsort label-6933
SELECT + col1 * col2 / 37 * + col2 AS col2 FROM tab0 AS cor0
----
198
4794
50

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col0 * - col1 > col2
----

query I rowsort
SELECT - 98 * - - col0 * - - col2 AS col1 FROM tab2 cor0
----
-103684
-250880
-426300

onlyif mysql # aggregate syntax: 
query II rowsort label-6936
SELECT ALL 69 AS col1, MIN( col0 ) AS col0 FROM tab1
----
69
51

skipif mysql # not compatible
query II rowsort label-6936
SELECT ALL 69 AS col1, MIN ( col0 ) AS col0 FROM tab1
----
69
51

onlyif mysql # aggregate syntax: 
query I rowsort label-6937
SELECT ALL - ( - 52 ) * + COUNT( * ) AS col2 FROM tab2
----
156

skipif mysql # not compatible
query I rowsort label-6937
SELECT ALL - ( - 52 ) * + COUNT ( * ) AS col2 FROM tab2
----
156

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6939
SELECT 6 DIV + 87 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6939
SELECT 6 / + 87 FROM tab1
----
0
0
0

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6942
SELECT ALL - SUM( - col2 ) * + 46 * - COUNT( * ) AS col0 FROM tab0
----
-21528

skipif mysql # not compatible
query I rowsort label-6942
SELECT ALL - SUM ( - col2 ) * + 46 * - COUNT ( * ) AS col0 FROM tab0
----
-21528

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6944
SELECT DISTINCT MAX( - col2 ) AS col1 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-6944
SELECT DISTINCT MAX ( - col2 ) AS col1 FROM tab1 AS cor0
----
-59

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT - ( + col0 ) * - col0 * + col1 + col0 FROM tab0 cor0
----
159036
18240
9506

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6951
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 + CAST( col2 AS DECIMAL ) - 58 + + 25 < + col0
----

skipif mysql # not compatible
query III rowsort label-6951
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 + CAST ( col2 AS REAL ) - 58 + + 25 < + col0
----

query I rowsort
SELECT DISTINCT 45 * + + 92 FROM tab1
----
4140

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6953
SELECT + 85 * + + CAST( ( - col1 ) AS SIGNED ) FROM tab0
----
-1785
-6885
-85

skipif mysql # not compatible
query I rowsort label-6953
SELECT + 85 * + + CAST ( ( - col1 ) AS INTEGER ) FROM tab0
----
-1785
-6885
-85

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL >= - 15
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6955
SELECT + 24 - + MIN( - - col1 ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
19

skipif mysql # not compatible
query I rowsort label-6955
SELECT + 24 - + MIN ( - - col1 ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
19

query I rowsort
SELECT col2 * ( - 15 ) + - col1 + - col1 AS col2 FROM tab0 AS cor0
----
-1487
-192
-867

query I rowsort
SELECT DISTINCT - + 69 * - + col2 + 51 * - 51 * col2 * - + ( - col1 ) AS col1 FROM tab1 cor0
----
-3489120
-763224
-8308104

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + 34 / col0 col0 FROM tab1 AS cor0 WHERE - 42 < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6959
SELECT ALL 86 + CAST( + MAX( DISTINCT col2 ) AS SIGNED ) FROM tab1 AS cor0
----
182

skipif mysql # not compatible
query I rowsort label-6959
SELECT ALL 86 + CAST ( + MAX ( DISTINCT col2 ) AS INTEGER ) FROM tab1 AS cor0
----
182

query I rowsort
SELECT col1 * + col2 + + col0 + 5 FROM tab1 AS cor0 WHERE ( + col2 / col2 ) <= col0
----
1400
3292
385

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6961
SELECT DISTINCT - - 72 * + ( - CAST( + col2 AS SIGNED ) ) * - col1 FROM tab0 AS cor0
----
15120
274104
7128

skipif mysql # not compatible
query I rowsort label-6961
SELECT DISTINCT - - 72 * + ( - CAST ( + col2 AS INTEGER ) ) * - col1 FROM tab0 AS cor0
----
15120
274104
7128

onlyif mysql # aggregate syntax: 
query I rowsort label-6962
SELECT + COUNT( * ) + 59 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) <= + col2
----
59

skipif mysql # not compatible
query I rowsort label-6962
SELECT + COUNT ( * ) + 59 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) <= + col2
----
59

query I rowsort
SELECT ALL + + 75 + + col0 * + col1 * + - col1 FROM tab0 cor0
----
-22
-38292
-98340

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

query I rowsort
SELECT 99 * + + 7 FROM tab2
----
693
693
693

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6967
SELECT - 49 * COUNT( col0 ) FROM tab2
----
-147

skipif mysql # not compatible
query I rowsort label-6967
SELECT - 49 * COUNT ( col0 ) FROM tab2
----
-147

query I rowsort
SELECT col2 * - - 1 FROM tab1
----
59
68
96

query II rowsort
SELECT DISTINCT 37 * col1 * + col2, + ( + ( - col0 ) ) AS col1 FROM tab1
----
10915
-85
118252
-91
49728
-51

query I rowsort
SELECT 48 * + - 11 AS col1 FROM tab0
----
-528
-528
-528

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT - + 12 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e698dd57d3aac30af14ce35da434bb45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6979
SELECT ALL + 68 / CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6979
SELECT ALL + 68 / CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6980
SELECT ALL - ( col0 ) AS col0 FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) * + 39 NOT IN ( - ( + 22 ) * + 43 )
----

skipif mysql # not compatible
query I rowsort label-6980
SELECT ALL - ( col0 ) AS col0 FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) * + 39 NOT IN ( - ( + 22 ) * + 43 )
----

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

skipif mysql # not compatible
query I rowsort label-6981
SELECT DISTINCT - MIN ( - col2 ) FROM tab0 AS cor0
----
99

query I rowsort
SELECT ALL + col0 * + col0 - + col0 / - - 24 FROM tab0 AS cor0 WHERE NOT NULL <= col1 * - 20
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 58 * + 24 col1 FROM tab1 cor0
----
1392
1392
1392

query I rowsort
SELECT + - col1 * col0 FROM tab0 AS cor0 WHERE NOT 36 NOT IN ( 17, col2 )
----

query I rowsort
SELECT ( 88 ) FROM tab0 AS cor0
----
88
88
88

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6987
SELECT + col0 DIV + - 43 FROM tab1
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-6987
SELECT + col0 / + - 43 FROM tab1
----
-1
-1
-2

query I rowsort
SELECT DISTINCT - 21 AS col0 FROM tab1
----
-21

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

query II rowsort
SELECT col2, + 51 + - col0 FROM tab1
----
59
-34
68
-40
96
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6991
SELECT - MIN( ALL - col1 ) FROM tab1 WHERE NOT + 5 / + - ( col1 ) NOT IN ( ( + col1 ) * - + col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6991
SELECT - MIN ( ALL - col1 ) FROM tab1 WHERE NOT + 5 / + - ( col1 ) NOT IN ( ( + col1 ) * - + col2 )
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + + ( - 4 ) - - 76 NOT BETWEEN + + col0 AND + + col1
----
15
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-6993
SELECT - SUM( + + ( - 44 ) ) col0 FROM tab0
----
132

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6993
SELECT - SUM ( + + ( - 44 ) ) col0 FROM tab0
----
132

query I rowsort
SELECT 74 FROM tab1 AS cor0 WHERE NOT ( col2 ) <= + 24 + + + col1
----
74
74

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6995
SELECT + - col2 + + + col0 + - CAST( + col0 AS SIGNED ) DIV - 81 FROM tab0 AS cor0
----
-1
-32
78

skipif mysql # not compatible
query I rowsort label-6995
SELECT + - col2 + + + col0 + - CAST ( + col0 AS INTEGER ) / - 81 FROM tab0 AS cor0
----
-1
-32
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + - + 13 col1 FROM tab1 AS cor0
----
-8
1
34

query I rowsort
SELECT 95 + - 7 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37

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

query I rowsort
SELECT ALL + 59 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7000
SELECT + col1, + ( + CAST( NULL AS SIGNED ) ) * - CAST( + col1 AS SIGNED ) FROM tab0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-7000
SELECT + col1, + ( + CAST ( NULL AS INTEGER ) ) * - CAST ( + col1 AS INTEGER ) FROM tab0
----
1
NULL
21
NULL
81
NULL

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

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

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

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE 33 = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( col1 ) NOT IN ( col1, col1, - col2 * 93 + + + 61 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + ( - + col1 ) BETWEEN - + col2 AND + 71 + + col2 + - ( + - col2 ) + + 29 * - - 44
----
97
1
99

query III rowsort
SELECT * FROM tab1 cor0 WHERE col2 < NULL
----

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

query I rowsort
SELECT 76 + - col0 + - col0 AS col1 FROM tab0 AS cor0
----
-118
-98
46

query I rowsort
SELECT DISTINCT - col0 - col0 AS col0 FROM tab1 WHERE col1 IN ( + col1 )
----
-102
-170
-182

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7011
SELECT * FROM tab0 WHERE NULL NOT IN ( - 46 / - + 85 + - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-7011
SELECT * FROM tab0 WHERE NULL NOT IN ( - 46 / - + 85 + - CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT ALL col2 AS col0 FROM tab2 WHERE NOT NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT col1 FROM tab2 WHERE ( NOT 67 * - col1 <> ( NULL ) )
----

query I rowsort
SELECT + 0 * + - col0 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7015
SELECT - col1 * - CAST( + 5 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
105
405
5

skipif mysql # not compatible
query I rowsort label-7015
SELECT - col1 * - CAST ( + 5 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
105
405
5

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( + col2 ) * - 28 + - col2 <> - col0
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - col2 <= - + col1
----
15
81
47
87
21
10

query I rowsort
SELECT DISTINCT + - 50 * + 82 AS col2 FROM tab0 AS cor0
----
-4100

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-7020
SELECT - col2, col1 DIV 36 + col1 AS col0 FROM tab0
----
-10
21
-47
83
-99
1

skipif mysql # not compatible
query II rowsort label-7020
SELECT - col2, col1 / 36 + col1 AS col0 FROM tab0
----
-10
21
-47
83
-99
1

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab0 WHERE - col0 IS NOT NULL
----
1
21
81

query I rowsort
SELECT 11 * col1 AS col2 FROM tab0
----
11
231
891

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + col1 ) * - 6 col1 FROM tab0 AS cor0
----
126
486
6

onlyif mysql # aggregate syntax: 
query I rowsort label-7025
SELECT DISTINCT + ( - - 51 ) * COUNT( * ) * - 85 FROM tab0 AS cor0 WHERE ( NOT - 77 <= 73 )
----
0

skipif mysql # not compatible
query I rowsort label-7025
SELECT DISTINCT + ( - - 51 ) * COUNT ( * ) * - 85 FROM tab0 AS cor0 WHERE ( NOT - 77 <= 73 )
----
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7027
SELECT * FROM tab0 AS cor0 WHERE NOT - 10 * + 7 NOT BETWEEN + 53 * + 3 + + col0 + - col2 * CAST( 90 AS SIGNED ) * - col0 AND NULL
----

skipif mysql # not compatible
query III rowsort label-7027
SELECT * FROM tab0 AS cor0 WHERE NOT - 10 * + 7 NOT BETWEEN + 53 * + 3 + + col0 + - col2 * CAST ( 90 AS INTEGER ) * - col0 AND NULL
----

query I rowsort
SELECT 86 * + ( - col1 ) * - - col1 AS col0 FROM tab1 AS cor0
----
-16856
-189974
-2150

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

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

query I rowsort
SELECT DISTINCT col2 + + col2 + + col0 * + col1 * col1 AS col0 FROM tab2 WHERE NOT - col1 > ( - - 1 )
----
119692
336791
379536

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

skipif mysql # not compatible
query I rowsort label-7031
SELECT ALL COUNT ( * ) + 71 FROM tab2 WHERE col2 IS NOT NULL
----
74

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7033
SELECT SUM( - col2 ) AS col1, - 66 col1 FROM tab1
----
-223
-66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7033
SELECT SUM ( - col2 ) AS col1, - 66 col1 FROM tab1
----
-223
-66

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

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

query II rowsort
SELECT DISTINCT - ( + col0 ) + - col2 + - col1 + + 45 AS col2, - col1 FROM tab1 AS cor0
----
-104
-5
-116
-14
-161
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-7036
SELECT DISTINCT MAX( DISTINCT - - 8 ) col2 FROM tab1
----
8

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 + + + col0 - col1 + - col1 * - 46 * + + col2 + col0 * + - 5 + col0 * 52 AS col1, + col1 col0 FROM tab0
----
13902
21
175776
81
9306
1

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7039
SELECT ( + col2 ) + 53 * + CAST( + col0 AS SIGNED ), - col0 AS col2 FROM tab0
----
4621
-87
5240
-97
842
-15

skipif mysql # not compatible
query II rowsort label-7039
SELECT ( + col2 ) + 53 * + CAST ( + col0 AS INTEGER ), - col0 AS col2 FROM tab0
----
4621
-87
5240
-97
842
-15

query I rowsort
SELECT ALL - 59 + - col0 FROM tab2 AS cor0
----
-105
-123
-134

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

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col0 ) < col0
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN + col2 + - + col1 * 82 * + + 70 AND - + col2 * - col1 / - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7045
SELECT ALL 31 - CAST( NULL AS SIGNED ) / - col1, - 31 AS col0 FROM tab2 cor0
----
NULL
-31
NULL
-31
NULL
-31

skipif mysql # not compatible
query II rowsort label-7045
SELECT ALL 31 - CAST ( NULL AS INTEGER ) / - col1, - 31 AS col0 FROM tab2 cor0
----
NULL
-31
NULL
-31
NULL
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-7046
SELECT ALL - 56 + + COUNT( * ) * + COUNT( 37 ) FROM tab0 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-7046
SELECT ALL - 56 + + COUNT ( * ) * + COUNT ( 37 ) FROM tab0 AS cor0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-7047
SELECT + 23 - COUNT( * ) col0 FROM tab1
----
20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7047
SELECT + 23 - COUNT ( * ) col0 FROM tab1
----
20

query I rowsort
SELECT - col2 - 41 FROM tab1
----
-100
-109
-137

query II rowsort
SELECT ALL col1 * - col2, col1 FROM tab2
----
-1173
51
-3080
77
-3886
67

query I rowsort
SELECT - col1 * - 67 FROM tab1
----
3149
335
938

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

query I rowsort
SELECT DISTINCT + col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
15
87
97

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7054
SELECT DISTINCT + + 79 DIV col0 * - 68 col0 FROM tab1 AS cor0
----
-68
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7054
SELECT DISTINCT + + 79 / col0 * - 68 col0 FROM tab1 AS cor0
----
-68
0

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

query I rowsort
SELECT ALL + ( + 22 ) * + - 53 AS col2 FROM tab0
----
-1166
-1166
-1166

onlyif mysql # aggregate syntax: 
query I rowsort label-7057
SELECT + - 2 * - SUM( ALL + 13 ) FROM tab1 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-7057
SELECT + - 2 * - SUM ( ALL + 13 ) FROM tab1 AS cor0
----
78

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7059
SELECT ALL - 23 DIV COUNT( * ) FROM tab2 cor0
----
-7

skipif mysql # not compatible
query I rowsort label-7059
SELECT ALL - 23 / COUNT ( * ) FROM tab2 cor0
----
-7

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

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

query I rowsort
SELECT + 15 * - - 62 FROM tab2
----
930
930
930

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7062
SELECT ALL + CAST( + + 91 AS SIGNED ) AS col2 FROM tab0
----
91
91
91

skipif mysql # not compatible
query I rowsort label-7062
SELECT ALL + CAST ( + + 91 AS INTEGER ) AS col2 FROM tab0
----
91
91
91

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7064
SELECT MAX( 48 ) AS col2 FROM tab2 WHERE NOT NULL = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7064
SELECT MAX ( 48 ) AS col2 FROM tab2 WHERE NOT NULL = NULL
----
NULL

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

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

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

query I rowsort
SELECT DISTINCT + col0 + 9 FROM tab2
----
55
73
84

onlyif mysql # aggregate syntax: 
query I rowsort label-7068
SELECT - 53 + MAX( - + 91 ) AS col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-144

skipif mysql # not compatible
query I rowsort label-7068
SELECT - 53 + MAX ( - + 91 ) AS col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-144

query I rowsort
SELECT DISTINCT + col1 + 63 + - col2 AS col2 FROM tab1 AS cor0
----
-19
42
9

query I rowsort
SELECT DISTINCT 54 + + col1 FROM tab2 AS cor0
----
105
121
131

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

query I rowsort
SELECT DISTINCT + col1 * - 59 - + col1 AS col1 FROM tab1
----
-2820
-300
-840

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 13 col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to e95f5f4bd0f480397cced5f5e8a23792

query I rowsort
SELECT + 29 AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

query III rowsort
SELECT * FROM tab0 cor0 WHERE + 13 IS NULL
----

query I rowsort
SELECT DISTINCT 33 + - + col2 AS col0 FROM tab0 AS cor0
----
-14
-66
23

onlyif mysql # aggregate syntax: 
query I rowsort label-7077
SELECT ALL - MAX( + 1 ) + + - COUNT( * ) FROM tab0 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-7077
SELECT ALL - MAX ( + 1 ) + + - COUNT ( * ) FROM tab0 AS cor0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-7078
SELECT DISTINCT + COUNT( * ) col1 FROM tab2 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-7078
SELECT DISTINCT + COUNT ( * ) col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7079
SELECT - 10 + - col2 DIV + col2 AS col1 FROM tab1 AS cor0
----
-11
-11
-11

skipif mysql # not compatible
query I rowsort label-7079
SELECT - 10 + - col2 / + col2 AS col1 FROM tab1 AS cor0
----
-11
-11
-11

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7081
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 20 * + CAST( 48 AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7081
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 20 * + CAST ( 48 AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

query I rowsort
SELECT - col2 + - + col0 AS col0 FROM tab1 cor0 WHERE NULL IS NULL
----
-144
-147
-159

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

query II rowsort
SELECT - col2 + + col1, col1 FROM tab1 AS cor0
----
-21
47
-54
5
-82
14

query I rowsort
SELECT DISTINCT - 70 + 73 AS col0 FROM tab0
----
3

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7089
SELECT col2, CAST( NULL AS SIGNED ) * - col0 FROM tab1
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-7089
SELECT col2, CAST ( NULL AS INTEGER ) * - col0 FROM tab1
----
59
NULL
68
NULL
96
NULL

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

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

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

query I rowsort
SELECT - 78 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b6e4cc21599216686f0cf45b85668b2c

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NULL <= - 55
----

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

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col2 NOT IN ( - col1 + col0, - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7100
SELECT ALL - 37 * - 98 AS col1, CAST( + col1 AS SIGNED ) AS col0 FROM tab2
----
3626
51
3626
67
3626
77

skipif mysql # not compatible
query II rowsort label-7100
SELECT ALL - 37 * - 98 AS col1, CAST ( + col1 AS INTEGER ) AS col0 FROM tab2
----
3626
51
3626
67
3626
77

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-7102
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - + CAST( col0 AS DECIMAL ) AS col0, + col0 DIV + col2 AS col0 FROM tab1
----
NULL
0
NULL
1

skipif mysql # not compatible
query II rowsort label-7102
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - + CAST ( col0 AS REAL ) AS col0, + col0 / + col2 AS col0 FROM tab1
----
NULL
0
NULL
1

onlyif mysql # DIV for integer division: 
query II rowsort label-7103
SELECT ALL col0 * + - col0, col2 DIV - col2 AS col0 FROM tab1
----
-2601
-1
-7225
-1
-8281
-1

skipif mysql # not compatible
query II rowsort label-7103
SELECT ALL col0 * + - col0, col2 / - col2 AS col0 FROM tab1
----
-2601
-1
-7225
-1
-8281
-1

query II rowsort
SELECT ALL col1 * + 36 AS col0, 76 AS col2 FROM tab0
----
2916
76
36
76
756
76

query I rowsort
SELECT col1 * + 60 FROM tab1
----
2820
300
840

query I rowsort
SELECT ALL - ( col2 ) * col0 * - + col0 FROM tab0
----
10575
75690
931491

query II rowsort
SELECT - col1 * 9 AS col0, col2 + 81 * - + col0 FROM tab0
----
-189
-7037
-729
-1168
-9
-7758

query III rowsort
SELECT * FROM tab2 WHERE - + 39 / + col0 NOT IN ( - 72 * + - 7, - 39, - - 47 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

query II rowsort
SELECT col0 * + col0, 13 AS col1 FROM tab1
----
2601
13
7225
13
8281
13

onlyif mysql # DIV for integer division: 
query I rowsort label-7111
SELECT col2 DIV - - ( 15 ) FROM tab1
----
3
4
6

skipif mysql # not compatible
query I rowsort label-7111
SELECT col2 / - - ( 15 ) FROM tab1
----
3
4
6

query I rowsort
SELECT DISTINCT col1 * 0 AS col0 FROM tab2
----
0

query I rowsort
SELECT ALL - - col1 AS col0 FROM tab1 AS cor0 WHERE NOT ( NOT ( ( col0 ) BETWEEN col0 AND - - col0 ) )
----
14
47
5

onlyif mysql # DIV for integer division: 
query II rowsort label-7114
SELECT - col2 DIV + 73, 88 AS col2 FROM tab0 cor0
----
-1
88
0
88
0
88

skipif mysql # not compatible
query II rowsort label-7114
SELECT - col2 / + 73, 88 AS col2 FROM tab0 cor0
----
-1
88
0
88
0
88

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7116
SELECT 36 + - - ( + MIN( DISTINCT - - col0 ) ) DIV + COUNT( * ) FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-7116
SELECT 36 + - - ( + MIN ( DISTINCT - - col0 ) ) / + COUNT ( * ) FROM tab2
----
51

query I rowsort
SELECT DISTINCT - col0 + - + col0 AS col2 FROM tab2
----
-128
-150
-92

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + + 44 ) col1 FROM tab2
----
44
44
44

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7121
SELECT ALL - CAST( - - col0 AS SIGNED ) DIV + ( - + col2 ) AS col0, col0 AS col0 FROM tab2 AS cor0
----
1
64
1
75
2
46

skipif mysql # not compatible
query II rowsort label-7121
SELECT ALL - CAST ( - - col0 AS INTEGER ) / + ( - + col2 ) AS col0, col0 AS col0 FROM tab2 AS cor0
----
1
64
1
75
2
46

query I rowsort
SELECT ALL + - col1 FROM tab0 AS cor0 WHERE NOT 55 + - col0 IS NULL
----
-1
-21
-81

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + - - col0 col2 FROM tab2 cor0
----
17
23
24

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7125
SELECT DISTINCT COUNT ( * ) * + COUNT ( * ) + + SUM ( + col1 ) + + - 27 col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT - + 17 + col2 FROM tab0 AS cor0
----
-7
30
82

onlyif mysql # aggregate syntax: 
query I rowsort label-7127
SELECT ALL - SUM( ALL + - 38 ) FROM tab1 AS cor0
----
114

skipif mysql # not compatible
query I rowsort label-7127
SELECT ALL - SUM ( ALL + - 38 ) FROM tab1 AS cor0
----
114

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7129
SELECT ALL col2 * - col1 * - 79 * col1 * CAST( NULL AS SIGNED ) * + 51 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7129
SELECT ALL col2 * - col1 * - 79 * col1 * CAST ( NULL AS INTEGER ) * + 51 AS col2 FROM tab0
----
NULL
NULL
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7132
SELECT SUM( - + 96 ) FROM tab1
----
-288

skipif mysql # not compatible
query I rowsort label-7132
SELECT SUM ( - + 96 ) FROM tab1
----
-288

onlyif mysql # aggregate syntax: 
query I rowsort label-7133
SELECT + COUNT( * ) - 56 FROM tab0 WHERE NOT + + ( + col2 ) IS NOT NULL
----
-56

skipif mysql # not compatible
query I rowsort label-7133
SELECT + COUNT ( * ) - 56 FROM tab0 WHERE NOT + + ( + col2 ) IS NOT NULL
----
-56

query IIIIII rowsort
SELECT ALL * FROM tab0, tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7135
SELECT - MIN( DISTINCT - - col2 ) FROM tab0 WHERE NOT - 10 + - col2 IS NULL
----
-10

skipif mysql # not compatible
query I rowsort label-7135
SELECT - MIN ( DISTINCT - - col2 ) FROM tab0 WHERE NOT - 10 + - col2 IS NULL
----
-10

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7138
SELECT DISTINCT - 11 + COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-2

skipif mysql # not compatible
query I rowsort label-7138
SELECT DISTINCT - 11 + COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-2

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7140
SELECT DISTINCT - 99 * - SUM( ALL + col1 ) FROM tab0
----
10197

skipif mysql # not compatible
query I rowsort label-7140
SELECT DISTINCT - 99 * - SUM ( ALL + col1 ) FROM tab0
----
10197

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

query I rowsort
SELECT DISTINCT + - col1 + - - 60 FROM tab0 cor0
----
-21
39
59

query I rowsort
SELECT - 61 * - + col0 + 32 - + + col2 + - col0 + col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
5252
5852
932

onlyif mysql # DIV for integer division: 
query I rowsort label-7144
SELECT DISTINCT - + 77 + + 21 + - col1 - + ( 83 ) DIV col0 + - col1 FROM tab2 AS cor0
----
-159
-191
-211

skipif mysql # not compatible
query I rowsort label-7144
SELECT DISTINCT - + 77 + + 21 + - col1 - + ( 83 ) / col0 + - col1 FROM tab2 AS cor0
----
-159
-191
-211

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col2 col0, + 75 * + + 51 + + 26 FROM tab2 AS cor0
----
-23
3851
-40
3851
-58
3851

query I rowsort
SELECT - - col1 * + + 90 AS col2 FROM tab1 AS cor0
----
1260
4230
450

query I rowsort
SELECT ALL - col0 * + 87 * - col2 AS col2 FROM tab0
----
61335
75690
835461

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

query I rowsort
SELECT 44 + - 8 + + col2 AS col2 FROM tab2
----
59
76
94

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

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

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

query I rowsort
SELECT 62 + + + 55 AS col1 FROM tab0
----
117
117
117

query I rowsort
SELECT ALL - ( + + col0 ) * - + 51 AS col0 FROM tab2
----
2346
3264
3825

query I rowsort
SELECT DISTINCT 8 * + col1 AS col1 FROM tab1
----
112
376
40

onlyif mysql # aggregate syntax: 
query I rowsort label-7155
SELECT DISTINCT COUNT( * ) * MIN( DISTINCT - + col0 ) AS col1 FROM tab1
----
-273

skipif mysql # not compatible
query I rowsort label-7155
SELECT DISTINCT COUNT ( * ) * MIN ( DISTINCT - + col0 ) AS col1 FROM tab1
----
-273

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + - 37 >= NULL
----

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

query II rowsort
SELECT col2, 80 + - col0 - 88 * - + 67 FROM tab1 AS cor0
----
59
5891
68
5885
96
5925

query I rowsort
SELECT ALL + col0 - + - col2 AS col2 FROM tab1 AS cor0
----
144
147
159

query I rowsort
SELECT - + 54 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 4ecdb0f1b85f0d4fdc3a826efd9f2342

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab2 cor1 WHERE NOT + 50 IS NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

onlyif mysql # aggregate syntax: 
query I rowsort label-7162
SELECT - COUNT( * ) + - 2 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-11

skipif mysql # not compatible
query I rowsort label-7162
SELECT - COUNT ( * ) + - 2 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-7163
SELECT ALL + SUM( DISTINCT - - 23 ) AS col2 FROM tab0
----
23

skipif mysql # not compatible
query I rowsort label-7163
SELECT ALL + SUM ( DISTINCT - - 23 ) AS col2 FROM tab0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-7164
SELECT DISTINCT - MAX( col0 ) * + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-225

skipif mysql # not compatible
query I rowsort label-7164
SELECT DISTINCT - MAX ( col0 ) * + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-225

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT NULL <= ( - 25 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7166
SELECT 58 * + CAST( 42 AS SIGNED ) FROM tab0 AS cor0
----
2436
2436
2436

skipif mysql # not compatible
query I rowsort label-7166
SELECT 58 * + CAST ( 42 AS INTEGER ) FROM tab0 AS cor0
----
2436
2436
2436

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

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

query I rowsort
SELECT ALL - + col0 * + 58 FROM tab2 cor0
----
-2668
-3712
-4350

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7170
SELECT DISTINCT col0 DIV col1 * CAST( + - col0 AS SIGNED ) * 66 FROM tab1
----
-10098
-6006
-95370

skipif mysql # not compatible
query I rowsort label-7170
SELECT DISTINCT col0 / col1 * CAST ( + - col0 AS INTEGER ) * 66 FROM tab1
----
-10098
-6006
-95370

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( + + 19 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7172
SELECT DISTINCT - ( + 83 ) DIV + - 6 col2 FROM tab1
----
13

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7172
SELECT DISTINCT - ( + 83 ) / + - 6 col2 FROM tab1
----
13

query II rowsort
SELECT ( + 1 ) * - + 26 AS col2, 15 AS col1 FROM tab0
----
-26
15
-26
15
-26
15

query I rowsort
SELECT DISTINCT - 52 * + col2 AS col2 FROM tab0 WHERE NULL BETWEEN - - col2 AND NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7176
SELECT DISTINCT SUM( + 24 ) FROM tab2
----
72

skipif mysql # not compatible
query I rowsort label-7176
SELECT DISTINCT SUM ( + 24 ) FROM tab2
----
72

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7178
SELECT + col2 + + col0 DIV + col1 + + col0 AS col0 FROM tab2 AS cor0
----
104
134
69

skipif mysql # not compatible
query I rowsort label-7178
SELECT + col2 + + col0 / + col1 + + col0 AS col0 FROM tab2 AS cor0
----
104
134
69

query I rowsort
SELECT ALL + 49 + + col0 * - 83 * + 16 + + + ( col2 ) FROM tab1 AS cor0
----
-112772
-120731
-67583

query I rowsort
SELECT - col2 * - col0 + - - 23 + col0 AS col0 FROM tab1 AS cor0
----
4970
5123
6302

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7182
SELECT ALL + 20 + - 70 DIV - 84 FROM tab0 AS cor0
----
20
20
20

skipif mysql # not compatible
query I rowsort label-7182
SELECT ALL + 20 + - 70 / - 84 FROM tab0 AS cor0
----
20
20
20

query I rowsort
SELECT DISTINCT col2 + - - ( - 40 ) AS col0 FROM tab1 AS cor0
----
19
28
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7184
SELECT DISTINCT - COUNT( * ) + - + MIN( ALL + - ( col1 ) ) * + 16 * + CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7186
SELECT ALL - 57 + - 35 + + col1 * + CAST( - col2 AS SIGNED ) AS col1 FROM tab2 cor0
----
-1265
-3172
-3978

skipif mysql # not compatible
query I rowsort label-7186
SELECT ALL - 57 + - 35 + + col1 * + CAST ( - col2 AS INTEGER ) AS col1 FROM tab2 cor0
----
-1265
-3172
-3978

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

query I rowsort
SELECT 74 AS col2 FROM tab1 AS cor0 WHERE + col0 NOT IN ( + col1, + col1 / - + 35 + - 2 )
----
74
74
74

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

query I rowsort
SELECT ALL - 42 + 80 * + col0 - ( + col0 ) FROM tab1
----
3987
6673
7147

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN - 4 AND + col2 * + - 88 - - col1
----

query II rowsort
SELECT - 88 AS col1, + col0 AS col2 FROM tab0
----
-88
15
-88
87
-88
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7193
SELECT DISTINCT + CAST( + - col0 AS SIGNED ) AS col2 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-7193
SELECT DISTINCT + CAST ( + - col0 AS INTEGER ) AS col2 FROM tab2
----
-46
-64
-75

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

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

skipif mysql # not compatible
query I rowsort label-7195
SELECT + CAST ( - + ( - COUNT ( * ) ) AS INTEGER ) AS col2 FROM tab0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + ( - col1 ) * + 70, 98 col1 FROM tab1
----
-3290
98
-350
98
-980
98

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

query I rowsort
SELECT ALL col0 * - - 20 AS col2 FROM tab0
----
1740
1940
300

query I rowsort
SELECT DISTINCT + + 55 + col1 FROM tab2 AS cor0
----
106
122
132

query II rowsort
SELECT + col2, 54 FROM tab2
----
23
54
40
54
58
54

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - col1 * - col1 * - 53 + + - col2 col0, col1 + - + 31 AS col2 FROM tab0 cor0
----
-46
-30
23363
-10
347686
50

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

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

query I rowsort
SELECT - col0 * - - 91 FROM tab1 cor0
----
-4641
-7735
-8281

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7209
SELECT - 38 * + col2 AS col1, + CAST( NULL AS DECIMAL ) FROM tab0
----
-1786
NULL
-3762
NULL
-380
NULL

skipif mysql # not compatible
query II rowsort label-7209
SELECT - 38 * + col2 AS col1, + CAST ( NULL AS REAL ) FROM tab0
----
-1786
NULL
-3762
NULL
-380
NULL

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

skipif mysql # not compatible
query I rowsort label-7210
SELECT ALL - ( COUNT ( * ) ) AS col2 FROM tab1 WHERE - col2 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7211
SELECT DISTINCT 16 * - COUNT( * ) FROM tab2 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-7211
SELECT DISTINCT 16 * - COUNT ( * ) FROM tab2 AS cor0
----
-48

query I rowsort
SELECT - col0 + - 0 AS col2 FROM tab0 AS cor0
----
-15
-87
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7213
SELECT 19 * - + col1 FROM tab1 WHERE NOT + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-7213
SELECT 19 * - + col1 FROM tab1 WHERE NOT + CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7214
SELECT DISTINCT MIN( + 65 ) FROM tab1
----
65

skipif mysql # not compatible
query I rowsort label-7214
SELECT DISTINCT MIN ( + 65 ) FROM tab1
----
65

onlyif mysql # DIV for integer division: 
query I rowsort label-7215
SELECT col1 DIV + 65 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7215
SELECT col1 / + 65 FROM tab1
----
0
0
0

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 > - + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 37 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-37
-37
-37

query I rowsort
SELECT DISTINCT - + col2 + 2 + - col2 + - + col2 AS col1 FROM tab1 cor0
----
-175
-202
-286

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

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

query I rowsort
SELECT 61 + - - col1 AS col0 FROM tab1 cor0
----
108
66
75

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7223
SELECT DISTINCT + CAST( + AVG ( + col0 ) AS SIGNED ) AS col2 FROM tab0
----
66

skipif mysql # not compatible
query I rowsort label-7223
SELECT DISTINCT + CAST ( + AVG ( + col0 ) AS INTEGER ) AS col2 FROM tab0
----
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 - + - col0 col1 FROM tab0
----
-2
-32
77

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7226
SELECT + - COUNT( * ) - 23 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-32

skipif mysql # not compatible
query I rowsort label-7226
SELECT + - COUNT ( * ) - 23 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-32

query I rowsort
SELECT - 69 AS col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3bd7460efa48c66c072ad5f3c2def7e9

query I rowsort
SELECT col2 * + col1 - col0 + - - 74 * + 49 * - + col2 AS col1 FROM tab2 AS cor0
----
-142024
-206497
-82271

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7230
SELECT DISTINCT COUNT( * ) * + 32 AS col1 FROM tab2 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-7230
SELECT DISTINCT COUNT ( * ) * + 32 AS col1 FROM tab2 AS cor0
----
96

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7234
SELECT + 73 DIV + - 29 AS col1 FROM tab2
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-7234
SELECT + 73 / + - 29 AS col1 FROM tab2
----
-2
-2
-2

query III rowsort
SELECT * FROM tab2 WHERE NOT - - ( + ( + + col2 ) ) >= - 38 + - ( ( + + 97 ) )
----

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

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

query II rowsort
SELECT 17, col1 AS col0 FROM tab0
----
17
1
17
21
17
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7238
SELECT DISTINCT COUNT( * ) * - MAX( + col0 ) FROM tab1
----
-273

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7239
SELECT MAX( - + col1 ) AS col1 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-7239
SELECT MAX ( - + col1 ) AS col1 FROM tab0
----
-1

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

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

query I rowsort
SELECT ALL - ( + + col0 ) + - 48 FROM tab2 AS cor0
----
-112
-123
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7243
SELECT - MAX( DISTINCT CAST( - col2 AS SIGNED ) ) FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-7243
SELECT - MAX ( DISTINCT CAST ( - col2 AS INTEGER ) ) FROM tab0 AS cor0
----
10

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

skipif mysql # not compatible
query I rowsort label-7244
SELECT - - SUM ( col0 ) FROM tab1 cor0
----
227

onlyif mysql # aggregate syntax: 
query I rowsort label-7245
SELECT COUNT( * ) + 29 FROM tab1
----
32

skipif mysql # not compatible
query I rowsort label-7245
SELECT COUNT ( * ) + 29 FROM tab1
----
32

query I rowsort
SELECT DISTINCT - 95 + - + ( + col1 ) FROM tab0 AS cor0
----
-116
-176
-96

query I rowsort
SELECT - col0 + + 5 AS col2 FROM tab1 AS cor0
----
-46
-80
-86

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7248
SELECT DISTINCT - col1 * + col1 col2 FROM tab2 AS cor0 WHERE - CAST ( + 37 AS INTEGER ) IS NOT NULL
----
-2601
-4489
-5929

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

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

query I rowsort
SELECT DISTINCT - - col0 + - 15 * 89 FROM tab2 AS cor0
----
-1260
-1271
-1289

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

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

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

query I rowsort
SELECT DISTINCT + col0 - - + 53 AS col2 FROM tab0
----
140
150
68

query II rowsort
SELECT ALL 72 AS col1, 26 FROM tab2
----
72
26
72
26
72
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 26 col1 FROM tab0 WHERE - 64 > ( NULL )
----

query I rowsort
SELECT ALL 39 * + col1 AS col2 FROM tab1
----
1833
195
546

query I rowsort
SELECT 5 - - 69 FROM tab2
----
74
74
74

query I rowsort
SELECT col0 - - col2 + + 23 AS col2 FROM tab0
----
120
219
85

onlyif mysql # DIV for integer division: 
query I rowsort label-7259
SELECT ALL + col2 DIV + 25 - - col0 col0 FROM tab1
----
54
87
93

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7259
SELECT ALL + col2 / + 25 - - col0 col0 FROM tab1
----
54
87
93

query I rowsort
SELECT DISTINCT - 70 - - + col0 + col0 FROM tab1
----
100
112
32

query II rowsort
SELECT DISTINCT col0 AS col0, 22 * + 57 * - - col1 FROM tab2
----
46
63954
64
96558
75
84018

query I rowsort
SELECT ALL col1 + 33 AS col0 FROM tab2
----
100
110
84

query I rowsort
SELECT + 25 - - + 20 - + - 71 * col2 FROM tab2
----
1678
2885
4163

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

skipif mysql # not compatible
query I rowsort label-7264
SELECT ALL - COUNT ( - col2 ) FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7265
SELECT DISTINCT - COUNT( * ) + + SUM( - 39 ) col2 FROM tab1 AS cor0
----
-120

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7266
SELECT ALL - + COUNT( * ) * 73 FROM tab1 cor0
----
-219

skipif mysql # not compatible
query I rowsort label-7266
SELECT ALL - + COUNT ( * ) * 73 FROM tab1 cor0
----
-219

query I rowsort
SELECT - col2 * + 53 FROM tab1 AS cor0
----
-3127
-3604
-5088

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + 97 ) col2 FROM tab1
----
97

query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 AS cor0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 60 * - - col1 col1 FROM tab2
----
-3060
-4020
-4620

query II rowsort
SELECT col0, + col1 AS col0 FROM tab2 AS cor0 WHERE NOT ( + col2 * col0 ) IS NULL
----
46
51
64
77
75
67

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7274
SELECT - MIN ( ALL - col1 ) col1 FROM tab1 AS cor0
----
47

query II rowsort
SELECT - col0 * 10 AS col0, col1 * - - 83 AS col0 FROM tab1 AS cor0
----
-510
1162
-850
415
-910
3901

query I rowsort
SELECT col2 * + - col0 + col2 - - + 23 + col1 * + + col0 AS col1 FROM tab1 cor0
----
-1820
-4063
-4508

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

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

query II rowsort
SELECT ALL - col0, 12 AS col1 FROM tab2
----
-46
12
-64
12
-75
12

onlyif mysql # DIV for integer division: 
query I rowsort label-7279
SELECT - col1 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-7279
SELECT - col1 / - + col0 col0 FROM tab1
----
0
0
0

query I rowsort
SELECT col2 * - 66 FROM tab2
----
-1518
-2640
-3828

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT IN ( - + ( - col0 ), col2, - col2 + 76 * - col2, + 13 + + 37 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7283
SELECT DISTINCT + COUNT( * ) * SUM( ALL col1 ) FROM tab0
----
309

skipif mysql # not compatible
query I rowsort label-7283
SELECT DISTINCT + COUNT ( * ) * SUM ( ALL col1 ) FROM tab0
----
309

query I rowsort
SELECT ALL + col0 * - 41 AS col0 FROM tab2
----
-1886
-2624
-3075

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 * - col2 AS col2, - col2 col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-1600
-40
-3364
-58
-529
-23

query I rowsort
SELECT + 38 + col2 + + col2 AS col0 FROM tab2 AS cor0
----
118
154
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 37 * + col1 + + col1 + col1 col1 FROM tab2 AS cor0
----
1989
2613
3003

query I rowsort
SELECT DISTINCT + 65 + + - 11 FROM tab1 AS cor0
----
54

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

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

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

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

skipif mysql # not compatible
query I rowsort label-7291
SELECT - - ( + COUNT ( * ) ) + COUNT ( * ) * + - COUNT ( * ) + + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7292
SELECT DISTINCT + COUNT( * ) + 2 AS col1 FROM tab0 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-7292
SELECT DISTINCT + COUNT ( * ) + 2 AS col1 FROM tab0 AS cor0
----
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 * col2 - - - col0 * + ( 15 ) - - 53 + 58 + + col1 col1 FROM tab0 AS cor0
----
-303
672
8260

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - + col1 col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7295
SELECT ALL - COUNT( * ) - MAX( + - 36 ) FROM tab2 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-7295
SELECT ALL - COUNT ( * ) - MAX ( + - 36 ) FROM tab2 AS cor0
----
33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 - col0 col1 FROM tab1 AS cor0
----
-37
-44
-80

query I rowsort
SELECT - 69 + - col0 FROM tab1
----
-120
-154
-160

query I rowsort
SELECT ALL 56 - + - col1 AS col2 FROM tab0
----
137
57
77

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN + col0 / - 27 AND - col2 - + + col2 + + 42 * + 83
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-7300
SELECT DISTINCT 83 / + CAST( NULL AS SIGNED ) AS col1, + SUM( ALL + col2 ) + + - CAST( NULL AS DECIMAL ) col0 FROM tab2
----
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7300
SELECT DISTINCT 83 / + CAST ( NULL AS INTEGER ) AS col1, + SUM ( ALL + col2 ) + + - CAST ( NULL AS REAL ) col0 FROM tab2
----
NULL
NULL

query II rowsort
SELECT - - ( col2 ) AS col0, 78 AS col0 FROM tab0 AS cor0
----
10
78
47
78
99
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 75 col1 FROM tab2 AS cor0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-7303
SELECT ALL + + MIN( ALL col2 ) FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-7303
SELECT ALL + + MIN ( ALL col2 ) FROM tab1 AS cor0
----
59

query I rowsort
SELECT - 87 AS col1 FROM tab2 WHERE NOT + 36 IS NOT NULL
----

query I rowsort
SELECT - - 94 FROM tab1 cor0
----
94
94
94

onlyif mysql # aggregate syntax: 
query I rowsort label-7306
SELECT + MIN( + + col1 ) AS col1 FROM tab0 AS cor0 WHERE NOT + ( + col2 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7306
SELECT + MIN ( + + col1 ) AS col1 FROM tab0 AS cor0 WHERE NOT + ( + col2 ) IS NOT NULL
----
NULL

query II rowsort
SELECT + + col2 AS col2, col1 FROM tab1 AS cor0
----
59
5
68
47
96
14

onlyif mysql # DIV for integer division: 
query I rowsort label-7308
SELECT 45 + col1 - - - 93 DIV + col0 col2 FROM tab2 AS cor0
----
111
121
94

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7308
SELECT 45 + col1 - - - 93 / + col0 col2 FROM tab2 AS cor0
----
111
121
94

onlyif mysql # aggregate syntax: 
query II rowsort label-7309
SELECT ALL + COUNT( * ) AS col1, + 6 AS col2 FROM tab2 AS cor0
----
3
6

skipif mysql # not compatible
query II rowsort label-7309
SELECT ALL + COUNT ( * ) AS col1, + 6 AS col2 FROM tab2 AS cor0
----
3
6

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7310
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-7310
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT DISTINCT col0 + - - col0 FROM tab1 cor0
----
102
170
182

query II rowsort
SELECT DISTINCT col1, + 6 FROM tab0 cor0
----
1
6
21
6
81
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7313
SELECT ALL 14 * + CAST( - + 31 AS SIGNED ) FROM tab2
----
-434
-434
-434

skipif mysql # not compatible
query I rowsort label-7313
SELECT ALL 14 * + CAST ( - + 31 AS INTEGER ) FROM tab2
----
-434
-434
-434

query I rowsort
SELECT - ( + 92 ) FROM tab2
----
-92
-92
-92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - col1 * - - 69 col0 FROM tab1
----
-29325
-295113
-49266

onlyif mysql # aggregate syntax: 
query I rowsort label-7316
SELECT - 13 * + - SUM( - col2 ) AS col2 FROM tab0
----
-2028

skipif mysql # not compatible
query I rowsort label-7316
SELECT - 13 * + - SUM ( - col2 ) AS col2 FROM tab0
----
-2028

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7317
SELECT ALL MAX( DISTINCT ( + col2 ) ) DIV - 60 + COUNT( * ) AS col2 FROM tab1 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-7317
SELECT ALL MAX ( DISTINCT ( + col2 ) ) / - 60 + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7318
SELECT - SUM( col1 ) AS col1 FROM tab1 WHERE + col0 + - col1 IS NOT NULL
----
-66

skipif mysql # not compatible
query I rowsort label-7318
SELECT - SUM ( col1 ) AS col1 FROM tab1 WHERE + col0 + - col1 IS NOT NULL
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-7319
SELECT + MIN( ALL + - col0 ) + + 5 FROM tab0 WHERE ( ( NULL ) BETWEEN + 68 AND 98 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7319
SELECT + MIN ( ALL + - col0 ) + + 5 FROM tab0 WHERE ( ( NULL ) BETWEEN + 68 AND 98 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7320
SELECT ALL 41 DIV + + col2 - col0 FROM tab0
----
-15
-83
-97

skipif mysql # not compatible
query I rowsort label-7320
SELECT ALL 41 / + + col2 - col0 FROM tab0
----
-15
-83
-97

query II rowsort
SELECT DISTINCT + col0 + - col2 + + col0, col2 FROM tab2 WHERE NOT col0 > ( NULL )
----

query I rowsort
SELECT DISTINCT + col2 * - - ( col1 ) FROM tab2
----
1173
3080
3886

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7323
SELECT DISTINCT * FROM tab1 WHERE NOT - CAST( NULL AS SIGNED ) * - col2 <> NULL
----

skipif mysql # not compatible
query III rowsort label-7323
SELECT DISTINCT * FROM tab1 WHERE NOT - CAST ( NULL AS INTEGER ) * - col2 <> NULL
----

query I rowsort
SELECT + col0 * 11 AS col1 FROM tab1
----
1001
561
935

query I rowsort
SELECT ALL + ( - - col1 ) + col1 AS col2 FROM tab2 AS cor0
----
102
134
154

query I rowsort
SELECT + 42 * + + col1 + - 23 AS col2 FROM tab2 AS cor0
----
2119
2791
3211

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL BETWEEN 44 * + - 5 * 52 AND 49
----

query I rowsort
SELECT ALL + 13 + - col0 FROM tab1 AS cor0
----
-38
-72
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-7329
SELECT 13 - COUNT( * ) FROM tab1
----
10

skipif mysql # not compatible
query I rowsort label-7329
SELECT 13 - COUNT ( * ) FROM tab1
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-7330
SELECT DISTINCT COUNT( - col2 ) col0, 22 * - 36 AS col2 FROM tab1
----
3
-792

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7330
SELECT DISTINCT COUNT ( - col2 ) col0, 22 * - 36 AS col2 FROM tab1
----
3
-792

query II rowsort
SELECT ALL - 54, - col2 AS col2 FROM tab0
----
-54
-10
-54
-47
-54
-99

query II rowsort
SELECT ALL 73, col1 AS col1 FROM tab0
----
73
1
73
21
73
81

query II rowsort
SELECT DISTINCT - 95, - 48 AS col0 FROM tab2
----
-95
-48

query II rowsort
SELECT DISTINCT col1 AS col1, col2 FROM tab2
----
51
23
67
58
77
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7335
SELECT COUNT( * ) DIV - ( - 2 ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7335
SELECT COUNT ( * ) / - ( - 2 ) FROM tab2 AS cor0
----
1

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL < + 92
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7337
SELECT DISTINCT + - col0 DIV + + col0 AS col0 FROM tab2 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7337
SELECT DISTINCT + - col0 / + + col0 AS col0 FROM tab2 cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7338
SELECT MAX( DISTINCT + col1 ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-7338
SELECT MAX ( DISTINCT + col1 ) FROM tab2 AS cor0
----
77

query I rowsort
SELECT col1 * + + col2 AS col1 FROM tab0
----
210
3807
99

query I rowsort
SELECT ALL + + ( - col1 ) AS col0 FROM tab2 AS cor0 WHERE + col0 = - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7341
SELECT + SUM( - + col2 ) FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-7341
SELECT + SUM ( - + col2 ) FROM tab1 AS cor0
----
-223

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL = 9
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7343
SELECT DISTINCT + 99 * + + COUNT( * ) FROM tab1 AS cor0 WHERE col0 + - col1 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-7343
SELECT DISTINCT + 99 * + + COUNT ( * ) FROM tab1 AS cor0 WHERE col0 + - col1 < NULL
----
0

query I rowsort
SELECT + col2 * - + 80 FROM tab1 AS cor0
----
-4720
-5440
-7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - 50 col1 FROM tab2
----
-1150
-2000
-2900

query III rowsort
SELECT * FROM tab0 WHERE ( NOT col0 NOT BETWEEN NULL AND - + ( - + col1 ) * col2 )
----

query II rowsort
SELECT ALL col0, col2 * - col2 * ( - 87 ) + col2 * + - col1 + + col1 FROM tab1
----
51
800462
85
302557
91
399139

onlyif mysql # aggregate syntax: 
query I rowsort label-7348
SELECT + MIN( ALL + + col2 ) + + COUNT( * ) FROM tab2 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-7348
SELECT + MIN ( ALL + + col2 ) + + COUNT ( * ) FROM tab2 AS cor0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-7349
SELECT DISTINCT MAX( DISTINCT - col0 ) + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-43

skipif mysql # not compatible
query I rowsort label-7349
SELECT DISTINCT MAX ( DISTINCT - col0 ) + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-43

query I rowsort
SELECT ALL 24 * 20 FROM tab0
----
480
480
480

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 38 NOT BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7352
SELECT ALL 58 DIV + col1 AS col2 FROM tab1
----
1
11
4

skipif mysql # not compatible
query I rowsort label-7352
SELECT ALL 58 / + col1 AS col2 FROM tab1
----
1
11
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7353
SELECT + COUNT( * ) DIV 24 AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7353
SELECT + COUNT ( * ) / 24 AS col0 FROM tab0
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 + - 4 NOT IN ( 71 )
----

query III rowsort
SELECT * FROM tab2 WHERE ( col2 + col0 ) NOT IN ( col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 86 FROM tab0 WHERE NOT - 83 * - col2 + + col1 / - col0 IS NULL
----
86
86
86

query I rowsort
SELECT ALL 92 + 23 AS col1 FROM tab2
----
115
115
115

onlyif mysql # aggregate syntax: 
query I rowsort label-7358
SELECT DISTINCT 61 * MIN( 89 ) + - 92 AS col0 FROM tab2 WHERE ( NULL ) IS NULL
----
5337

skipif mysql # not compatible
query I rowsort label-7358
SELECT DISTINCT 61 * MIN ( 89 ) + - 92 AS col0 FROM tab2 WHERE ( NULL ) IS NULL
----
5337

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7359
SELECT + COUNT( * ) / CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7359
SELECT + COUNT ( * ) / CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL

query I rowsort
SELECT ALL - 87 + - col2 * col0 FROM tab2
----
-1145
-2647
-4437

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - col1 / col2 ) = NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7362
SELECT + COUNT( * ) DIV + 57 col0 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7362
SELECT + COUNT ( * ) / + 57 col0 FROM tab2
----
0

query I rowsort
SELECT DISTINCT 66 * - 92 FROM tab0
----
-6072

query I rowsort
SELECT ALL + 3 + 41 FROM tab0
----
44
44
44

query I rowsort
SELECT ALL col2 * - col2 + - ( col2 ) * + col0 AS col0 FROM tab1
----
-10812
-14112
-8496

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT IN ( 15 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7367
SELECT ALL * FROM tab2 WHERE NOT CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7367
SELECT ALL * FROM tab2 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7368
SELECT DISTINCT + COUNT( col0 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7368
SELECT DISTINCT + COUNT ( col0 ) FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7369
SELECT DISTINCT CAST( col1 AS SIGNED ) col1 FROM tab1
----
14
47
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7369
SELECT DISTINCT CAST ( col1 AS INTEGER ) col1 FROM tab1
----
14
47
5

query I rowsort
SELECT col2 AS col2 FROM tab1 WHERE - col0 >= + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col1 FROM tab0 WHERE NOT ( NULL ) <= 67
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7372
SELECT CAST( + MAX( - col1 ) AS SIGNED ) FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-7372
SELECT CAST ( + MAX ( - col1 ) AS INTEGER ) FROM tab1
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7373
SELECT CAST( COUNT( * ) AS SIGNED ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7373
SELECT CAST ( COUNT ( * ) AS INTEGER ) AS col2 FROM tab2
----
3

query I rowsort
SELECT - ( 63 ) - col1 AS col2 FROM tab2
----
-114
-130
-140

query I rowsort
SELECT ALL - col1 * + col0 AS col2 FROM tab1 WHERE - 6 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7376
SELECT MIN( - ( + 10 ) ) AS col0 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-7376
SELECT MIN ( - ( + 10 ) ) AS col0 FROM tab0
----
-10

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7378
SELECT ALL - CAST( - col0 AS SIGNED ) AS col0 FROM tab0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-7378
SELECT ALL - CAST ( - col0 AS INTEGER ) AS col0 FROM tab0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7379
SELECT MIN( DISTINCT - col2 ) col2 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND 68
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7379
SELECT MIN ( DISTINCT - col2 ) col2 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND 68
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col2 + 43 > + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 15 * + col0 FROM tab2 AS cor0
----
1125
690
960

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7382
SELECT DISTINCT CAST( - col0 AS SIGNED ) * 86 FROM tab2 AS cor0
----
-3956
-5504
-6450

skipif mysql # not compatible
query I rowsort label-7382
SELECT DISTINCT CAST ( - col0 AS INTEGER ) * 86 FROM tab2 AS cor0
----
-3956
-5504
-6450

onlyif mysql # aggregate syntax: 
query I rowsort label-7383
SELECT COUNT( ALL 30 ) * - 60 FROM tab0 AS cor0 WHERE NOT + col1 NOT BETWEEN ( col1 ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-7383
SELECT COUNT ( ALL 30 ) * - 60 FROM tab0 AS cor0 WHERE NOT + col1 NOT BETWEEN ( col1 ) AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7384
SELECT ALL + COUNT( * ) * + 35 FROM tab1 AS cor0
----
105

skipif mysql # not compatible
query I rowsort label-7384
SELECT ALL + COUNT ( * ) * + 35 FROM tab1 AS cor0
----
105

query I rowsort
SELECT + col1 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7386
SELECT DISTINCT COUNT( ALL col2 ) * ( + COUNT( ALL 81 ) ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-7386
SELECT DISTINCT COUNT ( ALL col2 ) * ( + COUNT ( ALL 81 ) ) FROM tab2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7387
SELECT ALL SUM( - 63 ) AS col0 FROM tab0
----
-189

skipif mysql # not compatible
query I rowsort label-7387
SELECT ALL SUM ( - 63 ) AS col0 FROM tab0
----
-189

onlyif mysql # aggregate syntax: 
query I rowsort label-7388
SELECT ALL - COUNT( * ) * 45 FROM tab2
----
-135

skipif mysql # not compatible
query I rowsort label-7388
SELECT ALL - COUNT ( * ) * 45 FROM tab2
----
-135

query I rowsort
SELECT 6 FROM tab2 AS cor0 CROSS JOIN tab0
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

query I rowsort
SELECT + ( + 31 ) + - col2 FROM tab0 cor0
----
-16
-68
21

query I rowsort
SELECT ALL - - col2 + + 75 FROM tab0 AS cor0
----
122
174
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 37 col1 FROM tab1 AS cor0
----
-37
-37
-37

query I rowsort
SELECT ALL + 2 + 38 FROM tab1 cor0
----
40
40
40

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 IN ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7395
SELECT DISTINCT COUNT( - - 43 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7395
SELECT DISTINCT COUNT ( - - 43 ) FROM tab2
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7396
SELECT 24 DIV - COUNT( * ) FROM tab1
----
-8

skipif mysql # not compatible
query I rowsort label-7396
SELECT 24 / - COUNT ( * ) FROM tab1
----
-8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7397
SELECT DISTINCT + 81 DIV - + MAX( ALL + 27 ) + + COUNT( * ) AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7397
SELECT DISTINCT + 81 / - + MAX ( ALL + 27 ) + + COUNT ( * ) AS col1 FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 60 col0 FROM tab0
----
60
60
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + ( col1 ) col2 FROM tab0
----
-1
-441
-6561

onlyif mysql # aggregate syntax: 
query I rowsort label-7400
SELECT ALL 34 * + - COUNT( * ) AS col0 FROM tab0
----
-102

skipif mysql # not compatible
query I rowsort label-7400
SELECT ALL 34 * + - COUNT ( * ) AS col0 FROM tab0
----
-102

query I rowsort
SELECT DISTINCT - col0 * - col0 + - col2 AS col2 FROM tab0 WHERE NOT ( - col0 + + 84 ) IS NULL
----
178
7559
9310

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - ( - col1 ) ) col1 FROM tab2
----
51
67
77

query I rowsort
SELECT col0 + + col2 * - col2 FROM tab0 WHERE - col1 - 7 BETWEEN ( - col0 * 5 ) AND - col2
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-7404
SELECT DISTINCT - - ( COUNT( * ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7404
SELECT DISTINCT - - ( COUNT ( * ) ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7405
SELECT + MIN( - col2 ) * - COUNT( * ) - MIN( ALL ( + 9 ) ) col2 FROM tab1 AS cor0
----
279

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7405
SELECT + MIN ( - col2 ) * - COUNT ( * ) - MIN ( ALL ( + 9 ) ) col2 FROM tab1 AS cor0
----
279

query I rowsort
SELECT col2 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IN ( col1 * - col0 + 13 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - col1 * + 76 + col1 ) IS NULL
----

query I rowsort
SELECT ALL + - 39 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 504d14939d58aeb4a14f31c80de5b53e

query I rowsort
SELECT col2 * + - 27 AS col1 FROM tab2
----
-1080
-1566
-621

query I rowsort
SELECT - 31 * + col0 FROM tab0 AS cor0
----
-2697
-3007
-465

query I rowsort
SELECT - col1 FROM tab0 AS cor0 WHERE NOT ( 28 - col1 * - 3 ) IS NULL
----
-1
-21
-81

query I rowsort
SELECT col1 * - - 71 - - - 69 AS col1 FROM tab1 AS cor0
----
286
3268
925

onlyif mysql # aggregate syntax: 
query I rowsort label-7413
SELECT + MIN( ALL - 74 ) * - ( + MIN( DISTINCT col0 ) ) * - MAX( + col0 ) FROM tab0 cor0
----
-107670

skipif mysql # not compatible
query I rowsort label-7413
SELECT + MIN ( ALL - 74 ) * - ( + MIN ( DISTINCT col0 ) ) * - MAX ( + col0 ) FROM tab0 cor0
----
-107670

query I rowsort
SELECT ALL 27 * col0 AS col0 FROM tab1
----
1377
2295
2457

onlyif mysql # aggregate syntax: 
query I rowsort label-7415
SELECT ALL + COUNT( * ) AS col2 FROM tab0 WHERE - col0 * - 72 < + col1
----
0

skipif mysql # not compatible
query I rowsort label-7415
SELECT ALL + COUNT ( * ) AS col2 FROM tab0 WHERE - col0 * - 72 < + col1
----
0

query I rowsort
SELECT ALL + col1 * - - ( + col0 ) AS col0 FROM tab2
----
2346
4928
5025

query I rowsort
SELECT + col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND + col2 + - - col1
----

query I rowsort
SELECT + + ( - - col0 ) * - 42 FROM tab2 AS cor0
----
-1932
-2688
-3150

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( + 85 + + 85 ) NOT BETWEEN ( NULL ) AND col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 87 NOT BETWEEN ( + col0 ) AND - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7421
SELECT ALL * FROM tab1 WHERE + CAST( - + col0 AS SIGNED ) IN ( col1 )
----

skipif mysql # not compatible
query III rowsort label-7421
SELECT ALL * FROM tab1 WHERE + CAST ( - + col0 AS INTEGER ) IN ( col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - 41 ) > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7423
SELECT - CAST( NULL AS SIGNED ) AS col0 FROM tab1 cor0 WHERE col2 + - ( + col1 ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-7423
SELECT - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 cor0 WHERE col2 + - ( + col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7424
SELECT MIN( DISTINCT - 31 ) FROM tab1 AS cor0
----
-31

skipif mysql # not compatible
query I rowsort label-7424
SELECT MIN ( DISTINCT - 31 ) FROM tab1 AS cor0
----
-31

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE - col0 * + + 47 IN ( 67 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7426
SELECT - CAST( NULL AS DECIMAL ) col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7426
SELECT - CAST ( NULL AS REAL ) col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7427
SELECT + - 90 col0, + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-90
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7427
SELECT + - 90 col0, + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-90
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7428
SELECT + 27 + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7428
SELECT + 27 + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + col0 * + - col2 + + + col1 + - col0 AS col1 FROM tab2 AS cor0
----
-1053
-2547
-4358

onlyif mysql # aggregate syntax: 
query I rowsort label-7430
SELECT ALL - - ( - - COUNT( * ) ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7430
SELECT ALL - - ( - - COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7431
SELECT - 98 + - MAX( + 73 ) + - COUNT( * ) FROM tab0 AS cor0
----
-174

skipif mysql # not compatible
query I rowsort label-7431
SELECT - 98 + - MAX ( + 73 ) + - COUNT ( * ) FROM tab0 AS cor0
----
-174

query I rowsort
SELECT + - 70 * 15 + + - 69 + ( 39 ) + + col0 AS col1 FROM tab0 cor0
----
-1065
-983
-993

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - ( - col2 ) * + 16 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - ( + + col0 ) AS col0 FROM tab0
----
-15
-87
-97

query I rowsort
SELECT ALL + col1 * + + col1 * - col2 AS col1 FROM tab2
----
-237160
-260362
-59823

query I rowsort
SELECT DISTINCT col1 - + ( + + 84 ) AS col2 FROM tab0
----
-3
-63
-83

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7437
SELECT ALL * FROM tab1 WHERE NOT - col0 + + col2 * + CAST( NULL AS SIGNED ) BETWEEN + col0 AND NULL
----

skipif mysql # not compatible
query III rowsort label-7437
SELECT ALL * FROM tab1 WHERE NOT - col0 + + col2 * + CAST ( NULL AS INTEGER ) BETWEEN + col0 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( ( - col1 ) / + col2 - col1 - 26 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7439
SELECT DISTINCT - COUNT( * ) FROM tab0 AS cor0 WHERE NOT + col0 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-7439
SELECT DISTINCT - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT + col0 > NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7440
SELECT DISTINCT + - COUNT( * ) col2 FROM tab2 AS cor0 WHERE NOT + col0 IS NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7440
SELECT DISTINCT + - COUNT ( * ) col2 FROM tab2 AS cor0 WHERE NOT + col0 IS NULL
----
-3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 61 IS NOT NULL
----

query I rowsort
SELECT + - 45 * col1 FROM tab2 AS cor0
----
-2295
-3015
-3465

query I rowsort
SELECT - - col1 * + col2 * - col0 FROM tab2 AS cor0
----
-197120
-291450
-53958

onlyif mysql # aggregate syntax: 
query II rowsort label-7444
SELECT DISTINCT MAX( DISTINCT - col1 ) AS col0, MIN( DISTINCT + 3 ) + - COUNT( * ) * - - 78 AS col1 FROM tab2 AS cor0
----
-51
-231

skipif mysql # not compatible
query II rowsort label-7444
SELECT DISTINCT MAX ( DISTINCT - col1 ) AS col0, MIN ( DISTINCT + 3 ) + - COUNT ( * ) * - - 78 AS col1 FROM tab2 AS cor0
----
-51
-231

query I rowsort
SELECT 80 + + 94 FROM tab2 AS cor0 WHERE NOT col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col2 * - col1 col1, + 99 col0 FROM tab0 AS cor0
----
-210
99
-3807
99
-99
99

query I rowsort
SELECT DISTINCT 37 * - col2 + col1 FROM tab1 AS cor0 WHERE NOT 90 * - - col2 IS NULL
----
-2178
-2469
-3538

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab2 WHERE - col1 * + + 76 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7449
SELECT ALL ( - COUNT( * ) ) FROM tab2 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7449
SELECT ALL ( - COUNT ( * ) ) FROM tab2 WHERE NULL IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - 4 / + 50 / + + 11 + - - col1 * col2 ) = 73
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1, - col1 - + col2 * - 10 col2 FROM tab2
----
51
179
67
513
77
323

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0, - 46 col1 FROM tab1
----
51
-46
85
-46
91
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-7453
SELECT - MIN( - 63 ) FROM tab0 WHERE NOT ( + col2 ) NOT BETWEEN ( - col0 ) AND ( - col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7453
SELECT - MIN ( - 63 ) FROM tab0 WHERE NOT ( + col2 ) NOT BETWEEN ( - col0 ) AND ( - col2 )
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT - - 26 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7455
SELECT MAX( DISTINCT - 6 ) AS col1 FROM tab1
----
-6

skipif mysql # not compatible
query I rowsort label-7455
SELECT MAX ( DISTINCT - 6 ) AS col1 FROM tab1
----
-6

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab0 WHERE col2 IS NOT NULL
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7457
SELECT DISTINCT col0, 32 * ( col1 ) - CAST( NULL AS SIGNED ) + - col2 AS col1 FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-7457
SELECT DISTINCT col0, 32 * ( col1 ) - CAST ( NULL AS INTEGER ) + - col2 AS col1 FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7458
SELECT DISTINCT * FROM tab1 cor0 WHERE - CAST( NULL AS SIGNED ) > ( - col0 )
----

skipif mysql # not compatible
query III rowsort label-7458
SELECT DISTINCT * FROM tab1 cor0 WHERE - CAST ( NULL AS INTEGER ) > ( - col0 )
----

query I rowsort
SELECT col2 * - col2 * col2 + 45 + - - col2 + col0 - + 59 AS col1 FROM tab1 AS cor0
----
-205249
-314287
-884603

query I rowsort
SELECT - + col1 + + 0 * - 24 FROM tab2 cor0 WHERE NOT ( col1 ) >= NULL
----

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) IS NOT NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

onlyif mysql # DIV for integer division: 
query I rowsort label-7462
SELECT ALL col1 DIV + - col2 AS col2 FROM tab2
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-7462
SELECT ALL col1 / + - col2 AS col2 FROM tab2
----
-1
-1
-2

query I rowsort
SELECT 70 + - 37 + + 20 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to fede6033dee346dbd272085c05724fda

onlyif mysql # aggregate syntax: 
query I rowsort label-7464
SELECT DISTINCT MIN( - 45 ) AS col1 FROM tab0 AS cor0 WHERE 75 + - 8 <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7464
SELECT DISTINCT MIN ( - 45 ) AS col1 FROM tab0 AS cor0 WHERE 75 + - 8 <> NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7465
SELECT + 50 * + + COUNT( * ) FROM tab2 AS cor0 WHERE - col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7465
SELECT + 50 * + + COUNT ( * ) FROM tab2 AS cor0 WHERE - col0 IS NULL
----
0

query I rowsort
SELECT - col0 + 79 AS col1 FROM tab0 AS cor0
----
-18
-8
64

query II rowsort
SELECT ALL + col1 + - - col0, + col1 FROM tab1 AS cor0
----
138
47
65
14
90
5

onlyif mysql # DIV for integer division: 
query I rowsort label-7468
SELECT ALL + ( 31 ) + col2 DIV 84 + + + 95 AS col1 FROM tab1 AS cor0
----
126
126
127

skipif mysql # not compatible
query I rowsort label-7468
SELECT ALL + ( 31 ) + col2 / 84 + + + 95 AS col1 FROM tab1 AS cor0
----
126
126
127

onlyif mysql # aggregate syntax: 
query I rowsort label-7469
SELECT DISTINCT ( - COUNT( * ) ) * 56 + + 72 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-7469
SELECT DISTINCT ( - COUNT ( * ) ) * 56 + + 72 FROM tab1 AS cor0
----
-96

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 <= 57 - col0 - + - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 48 + - - 57 FROM tab0 AS cor0
----
105

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL >= col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7474
SELECT ALL - COUNT( * ) * 64 AS col0 FROM tab1
----
-192

skipif mysql # not compatible
query I rowsort label-7474
SELECT ALL - COUNT ( * ) * 64 AS col0 FROM tab1
----
-192

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7475
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - col0 - - col1 * - col2 col1 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7475
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - col0 - - col1 * - col2 col1 FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NULL <> 7
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7477
SELECT ALL 55 DIV col1 FROM tab0
----
0
2
55

skipif mysql # not compatible
query I rowsort label-7477
SELECT ALL 55 / col1 FROM tab0
----
0
2
55

query II rowsort
SELECT ALL col1 * + + col2 - + 40, + col1 AS col0 FROM tab1
----
1304
14
255
5
3156
47

query II rowsort
SELECT 77 * col1 - - - col1 AS col2, col2 AS col1 FROM tab2
----
3876
23
5092
58
5852
40

onlyif mysql # DIV for integer division: 
query I rowsort label-7480
SELECT DISTINCT 13 - - + 21 DIV + - col1 FROM tab0
----
-8
12
13

skipif mysql # not compatible
query I rowsort label-7480
SELECT DISTINCT 13 - - + 21 / + - col1 FROM tab0
----
-8
12
13

query II rowsort
SELECT ALL col2 AS col1, 85 AS col0 FROM tab2
----
23
85
40
85
58
85

query I rowsort
SELECT ( 22 ) - col1 AS col1 FROM tab1
----
-25
17
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7483
SELECT 36 * + AVG ( ALL - col1 ) - ( - - CAST( NULL AS SIGNED ) ) + COUNT( * ) + + COUNT( DISTINCT - col2 ) * - MIN( ALL 48 ) + SUM( DISTINCT col0 ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7483
SELECT 36 * + AVG ( ALL - col1 ) - ( - - CAST ( NULL AS INTEGER ) ) + COUNT ( * ) + + COUNT ( DISTINCT - col2 ) * - MIN ( ALL 48 ) + SUM ( DISTINCT col0 ) AS col2 FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-7484
SELECT DISTINCT - 37 DIV col0 + 42 col2, ( 76 ) * + col2 AS col1 FROM tab2 AS cor0
----
42
1748
42
3040
42
4408

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7484
SELECT DISTINCT - 37 / col0 + 42 col2, ( 76 ) * + col2 AS col1 FROM tab2 AS cor0
----
42
1748
42
3040
42
4408

query I rowsort
SELECT DISTINCT - + col2 + - col1 AS col1 FROM tab1 AS cor0 WHERE 47 + + - col1 = NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7487
SELECT ALL - 49 * + COUNT( * ) + - COUNT( * ) AS col2 FROM tab1 WHERE + col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7487
SELECT ALL - 49 * + COUNT ( * ) + - COUNT ( * ) AS col2 FROM tab1 WHERE + col0 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7488
SELECT DISTINCT - COUNT( - col0 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-7488
SELECT DISTINCT - COUNT ( - col0 ) FROM tab0
----
-3

query I rowsort
SELECT ALL + ( - ( + - col2 ) ) FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT DISTINCT + ( + - col0 ) FROM tab0 AS cor0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-7491
SELECT ALL + MIN( DISTINCT + 91 ) FROM tab1 cor0
----
91

skipif mysql # not compatible
query I rowsort label-7491
SELECT ALL + MIN ( DISTINCT + 91 ) FROM tab1 cor0
----
91

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL >= col0 * 90 * - + ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7493
SELECT DISTINCT + COUNT( ALL 31 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7493
SELECT DISTINCT + COUNT ( ALL 31 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT 60 FROM tab2 cor0
----
60

query I rowsort
SELECT + - col1 * - 8 FROM tab1 AS cor0
----
112
376
40

query I rowsort
SELECT - + col1 * - 46 FROM tab1 AS cor0
----
2162
230
644

query I rowsort
SELECT + 66 * col1 FROM tab1
----
3102
330
924

query III rowsort
SELECT + 85 * + col1 AS col0, ( + ( + 40 ) ) AS col0, 98 AS col0 FROM tab0
----
9 values hashing to 0390a05c519f2fef54c1f748980152bc

onlyif mysql # aggregate syntax: 
query I rowsort label-7499
SELECT ALL COUNT( ALL - - 99 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7499
SELECT ALL COUNT ( ALL - - 99 ) AS col2 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7500
SELECT + COUNT( * ) + COUNT( * ) AS col0 FROM tab1 WHERE NOT ( + col0 ) IS NULL
----
6

skipif mysql # not compatible
query I rowsort label-7500
SELECT + COUNT ( * ) + COUNT ( * ) AS col0 FROM tab1 WHERE NOT ( + col0 ) IS NULL
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-7501
SELECT col2 DIV + 98 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7501
SELECT col2 / + 98 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7502
SELECT 28 DIV - 44 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7502
SELECT 28 / - 44 FROM tab1
----
0
0
0

query III rowsort
SELECT * FROM tab1 WHERE NOT 48 IN ( + 72, col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN col1 * col1 AND + col0
----

query I rowsort
SELECT - col0 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-15
-87
-97

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NOT 96 IS NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7507
SELECT ALL - CAST( NULL AS SIGNED ) * 81 * + COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7507
SELECT ALL - CAST ( NULL AS INTEGER ) * 81 * + COUNT ( * ) FROM tab1
----
NULL

query I rowsort
SELECT ALL 52 + + + col0 FROM tab2
----
116
127
98

query II rowsort
SELECT ALL - 22, col0 FROM tab0
----
-22
15
-22
87
-22
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7510
SELECT ALL MAX( - - col1 ) AS col2 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-7510
SELECT ALL MAX ( - - col1 ) AS col2 FROM tab2
----
77

query I rowsort
SELECT - 73 - + - col1 AS col2 FROM tab1 cor0
----
-26
-59
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7512
SELECT COUNT( * ) * - - 26 + - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7512
SELECT COUNT ( * ) * - - 26 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + - 59 + - + col1 FROM tab0 AS cor0
----
-140
-60
-80

query I rowsort
SELECT DISTINCT + col2 + 43 AS col0 FROM tab2 AS cor0
----
101
66
83

query I rowsort
SELECT - col2 + + 27 AS col1 FROM tab0 AS cor0
----
-20
-72
17

query I rowsort
SELECT - 35 + - - 0 FROM tab2 cor0
----
-35
-35
-35

query II rowsort
SELECT ALL col0 + - - 37 + - - col2 AS col2, - 55 * - col2 FROM tab1 AS cor0
----
181
3245
184
5280
196
3740

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NOT ( NULL ) <= + 4 * + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7519
SELECT ALL - - COUNT( * ) AS col0 FROM tab1 WHERE NOT - col1 IS NOT NULL OR NOT 26 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-7519
SELECT ALL - - COUNT ( * ) AS col0 FROM tab1 WHERE NOT - col1 IS NOT NULL OR NOT 26 IS NULL
----
3

query III rowsort
SELECT * FROM tab0 WHERE - col0 * - + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7521
SELECT DISTINCT * FROM tab2 WHERE ( - CAST( NULL AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-7521
SELECT DISTINCT * FROM tab2 WHERE ( - CAST ( NULL AS INTEGER ) ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL < 33 OR NOT col0 * 24 + ( - col0 ) = NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT IN ( - col0, + col0 * - - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7524
SELECT DISTINCT ( 78 ) * MAX( col2 ) FROM tab0
----
7722

skipif mysql # not compatible
query I rowsort label-7524
SELECT DISTINCT ( 78 ) * MAX ( col2 ) FROM tab0
----
7722

query I rowsort
SELECT 65 * 70 AS col1 FROM tab1
----
4550
4550
4550

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 57 <> + col2 * - col1
----

query I rowsort
SELECT ALL - col0 * 57 + 7 AS col1 FROM tab1 AS cor0
----
-2900
-4838
-5180

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7528
SELECT ALL ( - MAX( - - CAST( NULL AS SIGNED ) ) ) col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7528
SELECT ALL ( - MAX ( - - CAST ( NULL AS INTEGER ) ) ) col2 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT 32 = + ( + + 95 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( - - col2 + + col0, col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7531
SELECT DISTINCT - ( COUNT( * ) ) AS col2 FROM tab2 AS cor0 WHERE NOT - col2 >= + - CAST( NULL AS DECIMAL )
----
0

skipif mysql # not compatible
query I rowsort label-7531
SELECT DISTINCT - ( COUNT ( * ) ) AS col2 FROM tab2 AS cor0 WHERE NOT - col2 >= + - CAST ( NULL AS REAL )
----
0

query I rowsort
SELECT ALL + 58 FROM tab0, tab1 cor0
----
9 values hashing to ef6e63aeed2581a168f07646d258f666

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + col2 AS col2, col0 col1 FROM tab2 AS cor0
----
-23
46
-40
64
-58
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7534
SELECT ALL + MIN( ALL - + col0 ) FROM tab0 AS cor0 WHERE NULL <= col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7534
SELECT ALL + MIN ( ALL - + col0 ) FROM tab0 AS cor0 WHERE NULL <= col1
----
NULL

query I rowsort
SELECT + 40 * + ( - + 26 ) * + + col1 AS col1 FROM tab2 AS cor0
----
-53040
-69680
-80080

query I rowsort
SELECT - + col1 * - - 11 FROM tab1 cor0
----
-154
-517
-55

query I rowsort
SELECT + col2 * - + col1 - + 48 * - + 81 AS col2 FROM tab0 AS cor0
----
3678
3789
81

query II rowsort
SELECT DISTINCT col1, - col0 + + - col1 AS col2 FROM tab0 AS cor0
----
1
-98
21
-108
81
-96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7539
SELECT ALL + CAST( - ( - + 67 ) AS SIGNED ), col0 * + CAST( + col0 AS SIGNED ) FROM tab2 AS cor0 WHERE NOT NULL >= + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query II rowsort label-7539
SELECT ALL + CAST ( - ( - + 67 ) AS INTEGER ), col0 * + CAST ( + col0 AS INTEGER ) FROM tab2 AS cor0 WHERE NOT NULL >= + CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7540
SELECT * FROM tab2 WHERE NOT ( + CAST( - 64 AS SIGNED ) * - 83 ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-7540
SELECT * FROM tab2 WHERE NOT ( + CAST ( - 64 AS INTEGER ) * - 83 ) IS NOT NULL
----

query I rowsort
SELECT - + col0 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-46
-64
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 col0 FROM tab1 WHERE NOT + 48 + - col2 IS NULL
----
-59
-68
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 1 col2, 52 FROM tab2 WHERE NOT + 61 IS NULL
----
-1
52
-1
52
-1
52

query I rowsort
SELECT DISTINCT + col1 + - 10 + col1 AS col2 FROM tab1
----
0
18
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7545
SELECT ALL - ( + CAST( - COUNT( - col2 ) AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7545
SELECT ALL - ( + CAST ( - COUNT ( - col2 ) AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 23 BETWEEN - col2 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( col2 IS NOT NULL )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - - 41 IS NOT NULL
----

query I rowsort
SELECT ( 53 ) AS col1 FROM tab1 AS cor0
----
53
53
53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 15 col2 FROM tab2 AS cor0 WHERE + col0 * - col0 = NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 NOT IN ( - col1, - col0 * + + col2 - - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7552
SELECT DISTINCT MIN( + col1 ) + SUM( ALL ( - col0 ) ) + - - 8 FROM tab1 cor0
----
-214

skipif mysql # not compatible
query I rowsort label-7552
SELECT DISTINCT MIN ( + col1 ) + SUM ( ALL ( - col0 ) ) + - - 8 FROM tab1 cor0
----
-214

query I rowsort
SELECT DISTINCT - col2 * + + col0 * col2 - col2 FROM tab1 AS cor0
----
-295944
-420852
-470112

onlyif mysql # aggregate syntax: 
query II rowsort label-7554
SELECT COUNT( * ) - 81, COUNT( * ) AS col1 FROM tab0 AS cor0
----
-78
3

skipif mysql # not compatible
query II rowsort label-7554
SELECT COUNT ( * ) - 81, COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-78
3

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT IN ( + col0 * ( col2 ), - col2, + 56 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7556
SELECT ALL - ( + + 51 ) * + + COUNT( * ) * - + COUNT( * ) AS col2 FROM tab2
----
459

skipif mysql # not compatible
query I rowsort label-7556
SELECT ALL - ( + + 51 ) * + + COUNT ( * ) * - + COUNT ( * ) AS col2 FROM tab2
----
459

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL <> col0 * - + col2 / - col0
----

query I rowsort
SELECT - col1 - - col1 AS col0 FROM tab1 WHERE + 57 IS NOT NULL
----
0
0
0

query I rowsort
SELECT DISTINCT col1 - - + col2 + + col1 + + col0 * 39 + col0 FROM tab0
----
3532
3981
809

onlyif mysql # DIV for integer division: 
query II rowsort label-7560
SELECT col1 DIV - + col1 - col0 AS col2, col1 FROM tab0
----
-16
81
-88
21
-98
1

skipif mysql # not compatible
query II rowsort label-7560
SELECT col1 / - + col1 - col0 AS col2, col1 FROM tab0
----
-16
81
-88
21
-98
1

query I rowsort
SELECT - 90 FROM tab1, tab0 AS cor0 WHERE NULL <> NULL
----

query II rowsort
SELECT DISTINCT - col0 AS col0, - 66 AS col2 FROM tab2 WHERE - ( - col2 ) <> 95
----
-46
-66
-64
-66
-75
-66

query IIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0 WHERE NOT + - 82 IS NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7564
SELECT - col0 - + + col0 AS col0 FROM tab2 WHERE NOT NULL <= - + ( + CAST( NULL AS SIGNED ) ) + + col0
----

skipif mysql # not compatible
query I rowsort label-7564
SELECT - col0 - + + col0 AS col0 FROM tab2 WHERE NOT NULL <= - + ( + CAST ( NULL AS INTEGER ) ) + + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + col1 * 23 col0 FROM tab1
----
-30912
-6785
-73508

query II rowsort
SELECT DISTINCT col0, + 40 AS col1 FROM tab1
----
51
40
85
40
91
40

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 33 * 5 / col1 NOT IN ( col0 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7568
SELECT + COUNT( * ), + COUNT( * ) AS col1 FROM tab1 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-7568
SELECT + COUNT ( * ), + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7569
SELECT DISTINCT COUNT( * ) col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7569
SELECT DISTINCT COUNT ( * ) col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7570
SELECT COUNT( * ) - + + MIN( CAST( NULL AS DECIMAL ) ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-7570
SELECT COUNT ( * ) - + + MIN ( CAST ( NULL AS REAL ) ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7571
SELECT ALL - COUNT( * ) DIV + 44 * + - COUNT( * ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7571
SELECT ALL - COUNT ( * ) / + 44 * + - COUNT ( * ) FROM tab0 AS cor0
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7573
SELECT + col0 * + - col0 DIV + 1 FROM tab0 AS cor0
----
-225
-7569
-9409

skipif mysql # not compatible
query I rowsort label-7573
SELECT + col0 * + - col0 / + 1 FROM tab0 AS cor0
----
-225
-7569
-9409

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL = - 34 + + ( - 62 )
----

query I rowsort
SELECT DISTINCT + col2 * + - col0 + - - col0 + + col2 AS col0 FROM tab1 AS cor0
----
-4749
-4871
-6029

query I rowsort
SELECT col1 * col2 - col0 - + + col1 * - 35 AS col1 FROM tab2 AS cor0 WHERE NOT col0 * - 88 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7577
SELECT - MIN( - 20 ) FROM tab2
----
20

skipif mysql # not compatible
query I rowsort label-7577
SELECT - MIN ( - 20 ) FROM tab2
----
20

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - - col0 * - 61 <= col1 * + col1 * 54
----

query II rowsort
SELECT col0 AS col2, col1 FROM tab1
----
51
14
85
5
91
47

query I rowsort
SELECT DISTINCT col2 FROM tab0 WHERE ( - 1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7581
SELECT + COUNT( * ) + + + 93 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-7581
SELECT + COUNT ( * ) + + + 93 FROM tab1
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7582
SELECT DISTINCT + col0 * + 50 * - CAST( - ( - - col2 ) AS SIGNED ) AS col0 FROM tab1
----
244800
250750
309400

skipif mysql # not compatible
query I rowsort label-7582
SELECT DISTINCT + col0 * + 50 * - CAST ( - ( - - col2 ) AS INTEGER ) AS col0 FROM tab1
----
244800
250750
309400

query I rowsort
SELECT DISTINCT + 37 * + col0 + + col0 AS col1 FROM tab0
----
3306
3686
570

query III rowsort
SELECT * FROM tab2 WHERE + col0 + 42 + - 99 BETWEEN + - col1 AND - + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7585
SELECT ALL 36 * + SUM( ALL - - ( + + 9 ) ) + - 32 FROM tab2
----
940

skipif mysql # not compatible
query I rowsort label-7585
SELECT ALL 36 * + SUM ( ALL - - ( + + 9 ) ) + - 32 FROM tab2
----
940

onlyif mysql # DIV for integer division: 
query I rowsort label-7586
SELECT ALL - col0 + + col2 DIV - col1 + col2 AS col2 FROM tab1 AS cor0
----
-24
-37
39

skipif mysql # not compatible
query I rowsort label-7586
SELECT ALL - col0 + + col2 / - col1 + col2 AS col2 FROM tab1 AS cor0
----
-24
-37
39

query I rowsort
SELECT ALL + 94 + - + col0 + col2 + - 78 * col1 AS col2 FROM tab1 AS cor0
----
-322
-3595
-953

query I rowsort
SELECT DISTINCT + col1 + - col1 * - 28 FROM tab1 AS cor0
----
1363
145
406

query I rowsort
SELECT DISTINCT col2 + + - 60 AS col0 FROM tab0 AS cor0
----
-13
-50
39

query I rowsort
SELECT 40 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( col0 / - - ( - - 19 ) + + col0 ) IS NOT NULL
----

query I rowsort
SELECT + col0 + 67 AS col0 FROM tab0 AS cor0
----
154
164
82

query I rowsort
SELECT + col1 FROM tab2 AS cor0 WHERE - col0 / - col2 / 3 IS NOT NULL
----
51
67
77

query I rowsort
SELECT ALL + - 64 + + + col1 + 90 AS col1 FROM tab1 AS cor0
----
31
40
73

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) <> - - col2
----

query I rowsort
SELECT col0 + + - 97 + col0 * + + 12 AS col1 FROM tab2 AS cor0
----
501
735
878

query I rowsort
SELECT DISTINCT col0 + - col1 * - 29 * 8 FROM tab0 AS cor0
----
18807
329
4959

query I rowsort
SELECT - - col1 + + 76 FROM tab2 AS cor0 WHERE col2 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col0 / col2 + - col2 + - col1 * + ( - col2 ) + col0 * + col1 < - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7600
SELECT DISTINCT COUNT( ( - col0 ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7600
SELECT DISTINCT COUNT ( ( - col0 ) ) FROM tab1
----
3

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7602
SELECT ALL + COUNT( DISTINCT + - col0 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7602
SELECT ALL + COUNT ( DISTINCT + - col0 ) AS col0 FROM tab0
----
3

query III rowsort
SELECT ALL * FROM tab2 WHERE - + ( + - col0 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7604
SELECT ALL CAST( NULL AS SIGNED ) * col2 col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7604
SELECT ALL CAST ( NULL AS INTEGER ) * col2 col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( + 55 ) * col2 FROM tab1
----
3245
3740
5280

query I rowsort
SELECT col0 * + 65 + - 40 AS col1 FROM tab1 cor0
----
3275
5485
5875

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col2, + col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
14
51
47
91
5
85

onlyif mysql # aggregate syntax: 
query I rowsort label-7608
SELECT DISTINCT - MIN( + col1 ) FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-7608
SELECT DISTINCT - MIN ( + col1 ) FROM tab1 AS cor0
----
-5

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + ( - 93 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 30 <= ( - + ( + col0 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + 86 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 + - 22 > + 87
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7614
SELECT + 10 * 32 + + - SUM( - col2 ) AS col2 FROM tab2 AS cor0
----
441

skipif mysql # not compatible
query I rowsort label-7614
SELECT + 10 * 32 + + - SUM ( - col2 ) AS col2 FROM tab2 AS cor0
----
441

query I rowsort
SELECT DISTINCT + - col0 * - col1 + col2 AS col1 FROM tab2 AS cor0
----
2369
4968
5083

query I rowsort
SELECT + - col1 AS col1 FROM tab1 AS cor0 WHERE + col1 IS NOT NULL AND ( NULL ) IS NULL
----
-14
-47
-5

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT - - 37 + - col1 FROM tab2 cor0
----
-14
-30
-40

query I rowsort
SELECT ALL - col2 + - 67 AS col1 FROM tab1 AS cor0
----
-126
-135
-163

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + + col2 col1 FROM tab1 AS cor0
----
118
136
192

query I rowsort
SELECT - 86 + col0 FROM tab2 cor0
----
-11
-22
-40

query I rowsort
SELECT col1 * + 5 FROM tab2 AS cor0
----
255
335
385

query II rowsort
SELECT ALL - + col2, - 85 * - col0 AS col0 FROM tab2 AS cor0 WHERE NOT - 21 IS NULL
----
-23
3910
-40
5440
-58
6375

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7624
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col0 BETWEEN + CAST( NULL AS SIGNED ) AND + ( - + 8 ) * col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7624
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col0 BETWEEN + CAST ( NULL AS INTEGER ) AND + ( - + 8 ) * col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( col2 + col2 ) NOT IN ( + col2 + + - col0, 15 + - - 28 )
----

query I rowsort
SELECT DISTINCT col1 * col0 + - col0 - - + col1 AS col2 FROM tab2 cor0
----
2351
4941
5017

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7627
SELECT + col2 AS col2 FROM tab1 WHERE + + 76 BETWEEN NULL AND - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-7627
SELECT + col2 AS col2 FROM tab1 WHERE + + 76 BETWEEN NULL AND - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT col1 * - 69 * - 19 AS col1 FROM tab0
----
106191
1311
27531

query I rowsort
SELECT DISTINCT - col2 + 70 * + - 60 FROM tab1
----
-4259
-4268
-4296

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7630
SELECT + 2 DIV + MAX( - + 64 ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7630
SELECT + 2 / + MAX ( - + 64 ) AS col1 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7631
SELECT - CAST( - col1 AS SIGNED ) DIV 43 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7631
SELECT - CAST ( - col1 AS INTEGER ) / 43 FROM tab2
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7632
SELECT + SUM( + col2 ) FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-7632
SELECT + SUM ( + col2 ) FROM tab2
----
121

query I rowsort
SELECT ALL col1 + col2 + - col1 * + col2 AS col2 FROM tab2 AS cor0
----
-1099
-2963
-3761

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7634
SELECT DISTINCT + + CAST( NULL AS SIGNED ) / - + col2 + col2 * - + CAST( NULL AS SIGNED ) + - - 57 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7634
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) / - + col2 + col2 * - + CAST ( NULL AS INTEGER ) + - - 57 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL 63 * + - col2 - - col1 * - col0 AS col1 FROM tab2
----
-3795
-7448
-8679

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( NULL = NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7637
SELECT SUM( ALL - col1 ) AS col2 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-7637
SELECT SUM ( ALL - col1 ) AS col2 FROM tab2 AS cor0
----
-195

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 * - col2 IS NOT NULL
----

query I rowsort
SELECT col0 + + ( - + 1 ) AS col0 FROM tab2 AS cor0 WHERE + ( - col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7640
SELECT DISTINCT ( + - 59 ) + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-56

skipif mysql # not compatible
query I rowsort label-7640
SELECT DISTINCT ( + - 59 ) + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-56

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7642
SELECT SUM( DISTINCT + - col1 ) AS col0 FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-7642
SELECT SUM ( DISTINCT + - col1 ) AS col0 FROM tab2
----
-195

query I rowsort
SELECT ( + 47 ) FROM tab1
----
47
47
47

query II rowsort
SELECT DISTINCT - col0 AS col1, 0 FROM tab1
----
-51
0
-85
0
-91
0

query II rowsort
SELECT col0 AS col0, - 31 AS col1 FROM tab0
----
15
-31
87
-31
97
-31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - 66 col2 FROM tab2
----
-1518
-2640
-3828

query II rowsort
SELECT col1 AS col2, col2 * col1 FROM tab0
----
1
99
21
210
81
3807

query III rowsort
SELECT * FROM tab2 WHERE NOT + 41 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7649
SELECT ALL - COUNT( * ) col2, + 46 AS col0 FROM tab1 AS cor0
----
-3
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7649
SELECT ALL - COUNT ( * ) col2, + 46 AS col0 FROM tab1 AS cor0
----
-3
46

onlyif mysql # aggregate syntax: 
query I rowsort label-7650
SELECT COUNT( * ) * COUNT( * ) - + ( - - ( 14 ) ) FROM tab1, tab0 cor0
----
67

skipif mysql # not compatible
query I rowsort label-7650
SELECT COUNT ( * ) * COUNT ( * ) - + ( - - ( 14 ) ) FROM tab1, tab0 cor0
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-7651
SELECT ALL + col0 DIV + 89 col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7651
SELECT ALL + col0 / + 89 col0 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 71 col2 FROM tab2 WHERE NOT ( NOT NULL IS NOT NULL )
----

query I rowsort
SELECT DISTINCT + 79 + 12 AS col2 FROM tab0 AS cor0
----
91

query I rowsort
SELECT - col0 + col0 FROM tab1 AS cor0 WHERE NOT - 85 IS NULL
----
0
0
0

query I rowsort
SELECT - + col1 * col1 * - - 68 AS col1 FROM tab2 AS cor0
----
-176868
-305252
-403172

query I rowsort
SELECT - - 75 AS col0 FROM tab1 AS cor0
----
75
75
75

query I rowsort
SELECT ALL + + col1 + - 76 FROM tab1 AS cor0
----
-29
-62
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7658
SELECT DISTINCT col2 * ( + CAST( NULL AS SIGNED ) ) + + ( + - 64 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7658
SELECT DISTINCT col2 * ( + CAST ( NULL AS INTEGER ) ) + + ( + - 64 ) FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 * + + col2 col1, col1 AS col0 FROM tab2 AS cor0
----
1058
51
2560
77
4350
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7660
SELECT + 65 + 41 + - CAST( NULL AS SIGNED ) * - + 60 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7660
SELECT + 65 + 41 + - CAST ( NULL AS INTEGER ) * - + 60 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col2 + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col0 AS col2 FROM tab0 AS cor0 WHERE 58 NOT BETWEEN col0 AND - + col2 - 63 - - 47 + col1 + - col0 + + 70 * 44
----
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7663
SELECT ALL + CAST( NULL AS SIGNED ) + - - 48 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7663
SELECT ALL + CAST ( NULL AS INTEGER ) + - - 48 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7664
SELECT - COUNT( * ) + + MAX( - 29 ) FROM tab2
----
-32

skipif mysql # not compatible
query I rowsort label-7664
SELECT - COUNT ( * ) + + MAX ( - 29 ) FROM tab2
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-7665
SELECT - - COUNT( * ) col2 FROM tab2 WHERE + ( - col1 ) + + col2 * + col0 IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7665
SELECT - - COUNT ( * ) col2 FROM tab2 WHERE + ( - col1 ) + + col2 * + col0 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7666
SELECT + MAX( DISTINCT + - col1 ) AS col0 FROM tab2 WHERE NULL IS NULL
----
-51

skipif mysql # not compatible
query I rowsort label-7666
SELECT + MAX ( DISTINCT + - col1 ) AS col0 FROM tab2 WHERE NULL IS NULL
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7667
SELECT + col0 + + - col1 + - 45 * CAST( NULL AS SIGNED ) col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7667
SELECT + col0 + + - col1 + - 45 * CAST ( NULL AS INTEGER ) col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7668
SELECT ALL - col1 DIV col1 col2 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7668
SELECT ALL - col1 / col1 col2 FROM tab0
----
-1
-1
-1

query I rowsort
SELECT ALL - 51 + - - col2 FROM tab2
----
-11
-28
7

onlyif mysql # aggregate syntax: 
query I rowsort label-7670
SELECT + 92 * + SUM( ALL - col0 ) + + 8 AS col2 FROM tab2
----
-17012

skipif mysql # not compatible
query I rowsort label-7670
SELECT + 92 * + SUM ( ALL - col0 ) + + 8 AS col2 FROM tab2
----
-17012

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7671
SELECT - MAX( col2 ) DIV - COUNT( * ) + + 48 AS col1 FROM tab1 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-7671
SELECT - MAX ( col2 ) / - COUNT ( * ) + + 48 AS col1 FROM tab1 AS cor0
----
80

query I rowsort
SELECT 79 * - col1 AS col1 FROM tab0 AS cor0
----
-1659
-6399
-79

query II rowsort
SELECT DISTINCT - col2 * - + col0 - 83 AS col0, col0 AS col2 FROM tab0 cor0
----
622
15
787
87
9520
97

query I rowsort
SELECT 82 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c

query I rowsort
SELECT ALL - col1 - + 6 * - col1 AS col0 FROM tab2
----
255
335
385

query I rowsort
SELECT 19 * col2 * + 90 AS col2 FROM tab1 AS cor0
----
100890
116280
164160

onlyif mysql # DIV for integer division: 
query II rowsort label-7677
SELECT - 59 DIV + + 75 AS col2, - col1 AS col1 FROM tab1 cor0
----
0
-14
0
-47
0
-5

skipif mysql # not compatible
query II rowsort label-7677
SELECT - 59 / + + 75 AS col2, - col1 AS col1 FROM tab1 cor0
----
0
-14
0
-47
0
-5

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - 75 ) NOT IN ( - col0, + col1 * - 92, - col2 )
----
75
67
58

query I rowsort
SELECT ALL col1 + - col0 + + col2 + - 14 * + col2 * 91 + + 90 + + + col2 * - + col0 * - - 5 * - col2 AS col0 FROM tab1 WHERE NOT - col1 IS NOT NULL
----

query I rowsort
SELECT col1 FROM tab1 WHERE NOT + col2 + - + 22 * - col2 >= + 6 * col1 - - - col0
----

query I rowsort
SELECT + - 78 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7682
SELECT - ( + SUM( ALL + col1 ) ), - 97 col0 FROM tab2
----
-195
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7682
SELECT - ( + SUM ( ALL + col1 ) ), - 97 col0 FROM tab2
----
-195
-97

query II rowsort
SELECT - 79, - col2 AS col0 FROM tab0 AS cor0
----
-79
-10
-79
-47
-79
-99

query I rowsort
SELECT ALL - ( - + col2 ) * + col0 FROM tab2 AS cor0
----
1058
2560
4350

onlyif mysql # DIV for integer division: 
query II rowsort label-7685
SELECT DISTINCT col0 * col2 + - col0 - + col2 DIV + col0, - col1 * + + ( 76 ) AS col1 FROM tab0 AS cor0
----
687
-6156
783
-1596
9505
-76

skipif mysql # not compatible
query II rowsort label-7685
SELECT DISTINCT col0 * col2 + - col0 - + col2 / + col0, - col1 * + + ( 76 ) AS col1 FROM tab0 AS cor0
----
687
-6156
783
-1596
9505
-76

query I rowsort
SELECT ALL + 96 * + col2 FROM tab2
----
2208
3840
5568

query III rowsort
SELECT * FROM tab0 WHERE col0 * - col0 - - 85 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 80 + - - col2 col1, + 78 * + col2 FROM tab2 AS cor0
----
103
1794
120
3120
138
4524

query I rowsort
SELECT + - col2 + - + 36 FROM tab1 AS cor0
----
-104
-132
-95

query I rowsort
SELECT ALL 47 + - col1 AS col0 FROM tab0 AS cor0
----
-34
26
46

query I rowsort
SELECT DISTINCT + + 91 AS col1 FROM tab1 AS cor0 WHERE NOT + col1 NOT BETWEEN + 44 AND - col2
----

query III rowsort
SELECT * FROM tab0 WHERE - 76 IS NULL
----

query I rowsort
SELECT + 64 * - - 28 AS col1 FROM tab1
----
1792
1792
1792

query I rowsort
SELECT 30 - + 44 FROM tab1
----
-14
-14
-14

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7695
SELECT + CAST( + 96 AS SIGNED ) DIV - - 32 - + ( + col1 ) AS col1, - col0 AS col1 FROM tab0
----
-18
-87
-78
-15
2
-97

skipif mysql # not compatible
query II rowsort label-7695
SELECT + CAST ( + 96 AS INTEGER ) / - - 32 - + ( + col1 ) AS col1, - col0 AS col1 FROM tab0
----
-18
-87
-78
-15
2
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7696
SELECT ALL CAST( NULL AS SIGNED ) * - col1 * - col1 * + - 79 / col2 + + col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7696
SELECT ALL CAST ( NULL AS INTEGER ) * - col1 * - col1 * + - 79 / col2 + + col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 28 + + - col1 FROM tab1 AS cor0
----
-19
14
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7698
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + + col1 / 53 * + - col0 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7698
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + + col1 / 53 * + - col0 AS col0 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 78 + - + col0 - 40 col1 FROM tab0 AS cor0
----
-49
-59
23

onlyif mysql # aggregate syntax: 
query I rowsort label-7700
SELECT DISTINCT - SUM( - 88 ) - + 14 AS col2 FROM tab0
----
250

skipif mysql # not compatible
query I rowsort label-7700
SELECT DISTINCT - SUM ( - 88 ) - + 14 AS col2 FROM tab0
----
250

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7701
SELECT DISTINCT - CAST( ( 76 ) AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-76

skipif mysql # not compatible
query I rowsort label-7701
SELECT DISTINCT - CAST ( ( 76 ) AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 34 col2 FROM tab0
----
-34

query I rowsort
SELECT col0 * - - col2 AS col2 FROM tab2
----
1058
2560
4350

query II rowsort
SELECT DISTINCT + col2 AS col2, 1 FROM tab0 AS cor0
----
10
1
47
1
99
1

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 * - - col1 IN ( col2, - 78 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7706
SELECT SUM( - col1 ) AS col0 FROM tab0 AS cor0 WHERE NOT ( + 69 ) * - - col1 = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7706
SELECT SUM ( - col1 ) AS col0 FROM tab0 AS cor0 WHERE NOT ( + 69 ) * - - col1 = NULL
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL < + col0 * col1
----

query I rowsort
SELECT DISTINCT + - 82 * col1 AS col0 FROM tab2 cor0
----
-4182
-5494
-6314

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 * + - 64 BETWEEN NULL AND - + col2
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - col1 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7711
SELECT - CAST( NULL AS SIGNED ) / - - col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7711
SELECT - CAST ( NULL AS INTEGER ) / - - col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7712
SELECT 52 * MAX( + ( + - col0 ) ) col1 FROM tab0
----
-780

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7712
SELECT 52 * MAX ( + ( + - col0 ) ) col1 FROM tab0
----
-780

query I rowsort
SELECT DISTINCT - - col1 * + - col0 - col2 + - ( - col2 ) FROM tab0 WHERE NULL IS NULL
----
-1215
-1827
-97

query I rowsort
SELECT ALL 96 AS col2 FROM tab2 WHERE + + col2 * - + col0 IS NOT NULL
----
96
96
96

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col1 <= + + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + + 84 FROM tab1 cor0
----
84

query I rowsort
SELECT col2 + 53 FROM tab0 cor0
----
100
152
63

query I rowsort
SELECT ALL 43 AS col2 FROM tab1 AS cor0 WHERE NULL <= ( NULL )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 NOT BETWEEN 64 - 67 AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7720
SELECT - 78 DIV MIN( + ( + - col1 ) ) + - - COUNT( * ) FROM tab2 cor0
----
4

skipif mysql # not compatible
query I rowsort label-7720
SELECT - 78 / MIN ( + ( + - col1 ) ) + - - COUNT ( * ) FROM tab2 cor0
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7721
SELECT DISTINCT - - CAST( NULL AS SIGNED ) AS col2 FROM tab1 cor0 WHERE NOT ( NULL ) NOT BETWEEN col2 AND - + 99 + - col0
----

skipif mysql # not compatible
query I rowsort label-7721
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 cor0 WHERE NOT ( NULL ) NOT BETWEEN col2 AND - + 99 + - col0
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 94 * - col0 + + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7723
SELECT SUM( col2 ) FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-7723
SELECT SUM ( col2 ) FROM tab0 AS cor0
----
156

query I rowsort
SELECT DISTINCT + - col1 + - col2 AS col0 FROM tab1 AS cor0
----
-110
-115
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-7725
SELECT + 86 + COUNT( * ) FROM tab2 AS cor0
----
89

skipif mysql # not compatible
query I rowsort label-7725
SELECT + 86 + COUNT ( * ) FROM tab2 AS cor0
----
89

query I rowsort
SELECT ALL + 52 + col0 FROM tab0 AS cor0
----
139
149
67

query II rowsort
SELECT - col2 + + col2 * col2, + col2 + col0 - + + col1 * - + 96 AS col1 FROM tab1 AS cor0
----
3422
624
4556
4671
9120
1491

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 * col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7729
SELECT DISTINCT - ( COUNT( * ) ) + + MIN( DISTINCT + 92 ) AS col0 FROM tab2 AS cor0
----
89

skipif mysql # not compatible
query I rowsort label-7729
SELECT DISTINCT - ( COUNT ( * ) ) + + MIN ( DISTINCT + 92 ) AS col0 FROM tab2 AS cor0
----
89

query II rowsort
SELECT - col1 * + - col2 * - 87 + - col1, - col0 * + - 89 AS col2 FROM tab2
----
-102102
4094
-268037
5696
-338149
6675

query II rowsort
SELECT ALL + col0, + 77 * + + 81 AS col1 FROM tab1
----
51
6237
85
6237
91
6237

query I rowsort
SELECT ALL col1 + - col0 FROM tab0 WHERE NOT - 64 > - col2
----
-66
66

onlyif mysql # aggregate syntax: 
query I rowsort label-7733
SELECT DISTINCT MAX( DISTINCT col0 ) AS col1 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-7733
SELECT DISTINCT MAX ( DISTINCT col0 ) AS col1 FROM tab1
----
91

query I rowsort
SELECT col0 AS col0 FROM tab0 AS cor0 WHERE 93 BETWEEN NULL AND NULL
----

query I rowsort
SELECT - ( + 26 ) AS col2 FROM tab2 AS cor0
----
-26
-26
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-7736
SELECT DISTINCT + + col0 DIV ( col2 ) DIV + 6 + + + 79 * col0 + col2 col0 FROM tab2 cor0
----
3657
5096
5983

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7736
SELECT DISTINCT + + col0 / ( col2 ) / + 6 + + + 79 * col0 + col2 col0 FROM tab2 cor0
----
3657
5096
5983

onlyif mysql # aggregate syntax: 
query II rowsort label-7737
SELECT DISTINCT - MAX( DISTINCT - - col2 ) AS col2, 95 AS col2 FROM tab1
----
-96
95

skipif mysql # not compatible
query II rowsort label-7737
SELECT DISTINCT - MAX ( DISTINCT - - col2 ) AS col2, 95 AS col2 FROM tab1
----
-96
95

query IIIIII rowsort
SELECT * FROM tab0 cor0 INNER JOIN tab0 AS cor1 ON NULL IS NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 22 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE - 10 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7741
SELECT ALL - + COUNT( ALL - - ( + 0 ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7741
SELECT ALL - + COUNT ( ALL - - ( + 0 ) ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT + + col1 * + + col0 AS col1 FROM tab1 AS cor0
----
425
4277
714

query I rowsort
SELECT + 7 * + col1 AS col1 FROM tab0 cor0
----
147
567
7

query I rowsort
SELECT ALL + col2 * ( - ( - ( + col0 ) ) ) + col1 FROM tab1 AS cor0
----
4910
5020
6235

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7745
SELECT DISTINCT CAST( NULL AS SIGNED ) * + 54 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7745
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + 54 AS col0 FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT ALL + col2, col2 FROM tab2
----
23
23
40
40
58
58

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7747
SELECT ALL ( 21 ) * + CAST( NULL AS DECIMAL ) + + CAST( + + col2 AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7747
SELECT ALL ( 21 ) * + CAST ( NULL AS REAL ) + + CAST ( + + col2 AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT - 23 + - + col1 + - 82, 75 * - ( col2 ) AS col0 FROM tab0
----
-106
-7425
-126
-750
-186
-3525

onlyif mysql # DIV for integer division: 
query I rowsort label-7749
SELECT ALL + col0 * col1 DIV + + col1 + + 44 * + col2 * - col0 AS col1 FROM tab0
----
-31005
-38193
-422435

skipif mysql # not compatible
query I rowsort label-7749
SELECT ALL + col0 * col1 / + + col1 + + 44 * + col2 * - col0 AS col1 FROM tab0
----
-31005
-38193
-422435

query I rowsort
SELECT col2 * + 14 * - 6 FROM tab0
----
-3948
-8316
-840

query I rowsort
SELECT ALL - 6 / + col1 / - - col2 FROM tab2 AS cor0 WHERE ( + col2 ) < - ( col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7752
SELECT - + CAST( - 1 AS SIGNED ) FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7752
SELECT - + CAST ( - 1 AS INTEGER ) FROM tab1 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7753
SELECT MIN( ALL - col2 ) AS col2 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-7753
SELECT MIN ( ALL - col2 ) AS col2 FROM tab0 AS cor0
----
-99

query I rowsort
SELECT DISTINCT + 68 + - - col2 AS col0 FROM tab2 AS cor0
----
108
126
91

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 * + - col0 >= + col2 + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7756
SELECT DISTINCT COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-7756
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7757
SELECT CAST( + + 25 AS SIGNED ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 525a55d5ed224a62da65df36731881a7

skipif mysql # not compatible
query I rowsort label-7757
SELECT CAST ( + + 25 AS INTEGER ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 525a55d5ed224a62da65df36731881a7

query I rowsort
SELECT DISTINCT + col0 + - - col1 FROM tab1
----
138
65
90

query I rowsort
SELECT col1 * + 96 * col0 AS col1 FROM tab0 AS cor0
----
116640
175392
9312

query I rowsort
SELECT DISTINCT - col0 + - ( + - col0 ) + - 28 AS col1 FROM tab2 cor0
----
-28

query I rowsort
SELECT ALL - col1 + - - 75 * - col2 FROM tab1 cor0
----
-4430
-5147
-7214

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL >= NULL OR NULL = - col2
----

query I rowsort
SELECT DISTINCT 27 * - - 41 - - ( - 88 ) + 76 AS col0 FROM tab2
----
1095

onlyif mysql # DIV for integer division: 
query II rowsort label-7764
SELECT + col0 DIV - col0 - col0, col0 FROM tab0
----
-16
15
-88
87
-98
97

skipif mysql # not compatible
query II rowsort label-7764
SELECT + col0 / - col0 - col0, col0 FROM tab0
----
-16
15
-88
87
-98
97

onlyif mysql # DIV for integer division: 
query I rowsort label-7765
SELECT - col0 - - col1 DIV + 86 AS col2 FROM tab0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-7765
SELECT - col0 - - col1 / + 86 AS col2 FROM tab0
----
-15
-87
-97

query I rowsort
SELECT - ( + - 5 ) + col1 FROM tab1
----
10
19
52

query I rowsort
SELECT 30 + + 90 FROM tab2
----
120
120
120

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7768
SELECT DISTINCT + col2, CAST( NULL AS DECIMAL ) * + + col2 * col2 FROM tab0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-7768
SELECT DISTINCT + col2, CAST ( NULL AS REAL ) * + + col2 * col2 FROM tab0
----
10
NULL
47
NULL
99
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7769
SELECT 60 * - + col2 + + ( + ( - CAST( col2 AS SIGNED ) ) ) + - col0 * + col2 FROM tab1
----
-10336
-10752
-8614

skipif mysql # not compatible
query I rowsort label-7769
SELECT 60 * - + col2 + + ( + ( - CAST ( col2 AS INTEGER ) ) ) + - col0 * + col2 FROM tab1
----
-10336
-10752
-8614

query I rowsort
SELECT DISTINCT 19 AS col1 FROM tab2 cor0
----
19

query I rowsort
SELECT ALL + col2 * - 17 AS col1 FROM tab2
----
-391
-680
-986

query I rowsort
SELECT DISTINCT 22 * - + ( 50 ) AS col1 FROM tab1
----
-1100

query I rowsort
SELECT ALL 69 * + col1 FROM tab0
----
1449
5589
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + ( + 16 ) col1, - col0 * - + col2 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) <= NULL
----

query II rowsort
SELECT DISTINCT 65 AS col0, + 27 FROM tab1 AS cor0
----
65
27

onlyif mysql # aggregate syntax: 
query I rowsort label-7776
SELECT - ( - 90 ) * + COUNT( * ) * + - 59 + COUNT( * ) + + MAX( + 81 ) AS col2 FROM tab2 cor0 WHERE NOT + 38 / + col0 IS NULL
----
-15846

skipif mysql # not compatible
query I rowsort label-7776
SELECT - ( - 90 ) * + COUNT ( * ) * + - 59 + COUNT ( * ) + + MAX ( + 81 ) AS col2 FROM tab2 cor0 WHERE NOT + 38 / + col0 IS NULL
----
-15846

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col0 BETWEEN + col2 AND NULL
----
15
81
47
97
1
99

onlyif mysql # DIV for integer division: 
query I rowsort label-7778
SELECT 83 DIV + 67 AS col2 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7778
SELECT 83 / + 67 AS col2 FROM tab2 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
46
64
75

query I rowsort
SELECT + + 2 * col0 + col2 FROM tab0 AS cor0
----
184
293
77

query II rowsort
SELECT ALL - ( col0 ) AS col2, + col2 AS col2 FROM tab1
----
-51
96
-85
59
-91
68

query I rowsort
SELECT DISTINCT + col1 * + + ( + col1 ) FROM tab0
----
1
441
6561

query I rowsort
SELECT + col0 + + + col2 - ( + col0 ) AS col1 FROM tab1
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7784
SELECT ALL MIN( + col1 ) * - COUNT( * ) FROM tab2
----
-153

skipif mysql # not compatible
query I rowsort label-7784
SELECT ALL MIN ( + col1 ) * - COUNT ( * ) FROM tab2
----
-153

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - col2 * col0 >= NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7786
SELECT ALL + MAX( ALL - - 13 ) + - MAX( ALL - col1 ) FROM tab0 cor0
----
14

skipif mysql # not compatible
query I rowsort label-7786
SELECT ALL + MAX ( ALL - - 13 ) + - MAX ( ALL - col1 ) FROM tab0 cor0
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-7787
SELECT - - 80 + COUNT( * ) FROM tab1 cor0
----
83

skipif mysql # not compatible
query I rowsort label-7787
SELECT - - 80 + COUNT ( * ) FROM tab1 cor0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-7788
SELECT ALL - 96 + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-7788
SELECT ALL - 96 + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-93

onlyif mysql # DIV for integer division: 
query I rowsort label-7789
SELECT 97 DIV + ( + col2 ) FROM tab0
----
0
2
9

skipif mysql # not compatible
query I rowsort label-7789
SELECT 97 / + ( + col2 ) FROM tab0
----
0
2
9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7790
SELECT * FROM tab1 WHERE - + col0 - + CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7790
SELECT * FROM tab1 WHERE - + col0 - + CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 16 BETWEEN + col2 AND NULL
----

query I rowsort
SELECT + col2 + - + 43 FROM tab0 cor0
----
-33
4
56

onlyif mysql # aggregate syntax: 
query I rowsort label-7793
SELECT DISTINCT + MIN( DISTINCT - 75 ) AS col2 FROM tab1 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-7793
SELECT DISTINCT + MIN ( DISTINCT - 75 ) AS col2 FROM tab1 AS cor0
----
-75

query II rowsort
SELECT ALL - 39 * - + col1 + + - col0 AS col2, - col1 * - + col0 FROM tab2 AS cor0
----
1943
2346
2538
5025
2939
4928

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7795
SELECT ALL + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7795
SELECT ALL + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7796
SELECT - col0 DIV - 88 AS col0 FROM tab1 AS cor0 WHERE + col0 DIV + 72 IS NOT NULL
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7796
SELECT - col0 / - 88 AS col0 FROM tab1 AS cor0 WHERE + col0 / + 72 IS NOT NULL
----
0
0
1

query I rowsort
SELECT col0 + col0 + - - col0 FROM tab2 AS cor0
----
138
192
225

query I rowsort
SELECT 97 + + 23 FROM tab1 AS cor0
----
120
120
120

query I rowsort
SELECT 50 + - - col2 FROM tab0
----
149
60
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - col0, col1 col2 FROM tab0 WHERE + 24 * 33 * - - 90 * - col0 + - 49 * - col2 - - 20 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7801
SELECT ALL 33 - CAST( - col0 AS SIGNED ) * + col1 * + + col2 FROM tab0
----
18303
57138
9636

skipif mysql # not compatible
query I rowsort label-7801
SELECT ALL 33 - CAST ( - col0 AS INTEGER ) * + col1 * + + col2 FROM tab0
----
18303
57138
9636

onlyif mysql # aggregate syntax: 
query I rowsort label-7802
SELECT MAX( DISTINCT + col2 ) AS col1 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-7802
SELECT MAX ( DISTINCT + col2 ) AS col1 FROM tab1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7803
SELECT DISTINCT - MIN( ALL + col2 ) col1 FROM tab1
----
-59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7803
SELECT DISTINCT - MIN ( ALL + col2 ) col1 FROM tab1
----
-59

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col1 <> + col0 + + - col0
----

query II rowsort
SELECT ALL 3, col2 * - col0 * - col2 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 >= - + col0 + + - 45
----

query I rowsort
SELECT DISTINCT + 50 + - col0 + - col2 + col2 FROM tab2 cor0 WHERE NULL < ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7808
SELECT - MAX( col1 ) FROM tab2 cor0
----
-77

skipif mysql # not compatible
query I rowsort label-7808
SELECT - MAX ( col1 ) FROM tab2 cor0
----
-77

query I rowsort
SELECT DISTINCT - col2 * + 24 FROM tab1 AS cor0
----
-1416
-1632
-2304

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7810
SELECT ALL + ( + MIN( ALL + col2 ) ), CAST( - + ( 99 ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
10
-99

skipif mysql # not compatible
query II rowsort label-7810
SELECT ALL + ( + MIN ( ALL + col2 ) ), CAST ( - + ( 99 ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
10
-99

query I rowsort
SELECT + col1 + 62 FROM tab1 AS cor0
----
109
67
76

query I rowsort
SELECT col1 + col2 + - - 71 * - col2 AS col1 FROM tab2 AS cor0
----
-1559
-2723
-3993

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7813
SELECT - MIN( DISTINCT + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7813
SELECT - MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7814
SELECT * FROM tab2 AS cor0 WHERE NOT NULL = + col0 - CAST( - - col0 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7814
SELECT * FROM tab2 AS cor0 WHERE NOT NULL = + col0 - CAST ( - - col0 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7815
SELECT DISTINCT + SUM( - col0 ) FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-7815
SELECT DISTINCT + SUM ( - col0 ) FROM tab0 AS cor0
----
-199

query I rowsort
SELECT DISTINCT - - col2 * - + 92 FROM tab2 WHERE NOT + + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7817
SELECT 1 AS col2, - COUNT( * ) DIV ( COUNT( * ) ) AS col0 FROM tab1
----
1
-1

skipif mysql # not compatible
query II rowsort label-7817
SELECT 1 AS col2, - COUNT ( * ) / ( COUNT ( * ) ) AS col0 FROM tab1
----
1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7818
SELECT ALL - COUNT( * ) * 97 AS col0 FROM tab2
----
-291

skipif mysql # not compatible
query I rowsort label-7818
SELECT ALL - COUNT ( * ) * 97 AS col0 FROM tab2
----
-291

query II rowsort
SELECT ALL - 23 AS col2, col2 AS col1 FROM tab1
----
-23
59
-23
68
-23
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + 62 ) * + - col1 col0 FROM tab1
----
2914
310
868

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 col1, - 57 * + ( ( + 75 ) ) FROM tab0
----
1
-4275
21
-4275
81
-4275

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7822
SELECT + CAST( + CAST( + CAST( + col1 AS SIGNED ) AS SIGNED ) AS SIGNED ) AS col1 FROM tab2 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7822
SELECT + CAST ( + CAST ( + CAST ( + col1 AS INTEGER ) AS INTEGER ) AS INTEGER ) AS col1 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7823
SELECT ALL - col1 DIV + + 82 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7823
SELECT ALL - col1 / + + 82 FROM tab1
----
0
0
0

query I rowsort
SELECT ( + 11 ) AS col0 FROM tab0
----
11
11
11

onlyif mysql # aggregate syntax: 
query I rowsort label-7825
SELECT + COUNT( ALL - col1 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7825
SELECT + COUNT ( ALL - col1 ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7826
SELECT ALL ( + COUNT( * ) ) + + ( + - COUNT( * ) ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7826
SELECT ALL ( + COUNT ( * ) ) + + ( + - COUNT ( * ) ) FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7827
SELECT DISTINCT col0 * col0 DIV + 40 AS col2 FROM tab0
----
189
235
5

skipif mysql # not compatible
query I rowsort label-7827
SELECT DISTINCT col0 * col0 / + 40 AS col2 FROM tab0
----
189
235
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7828
SELECT DISTINCT 7 / col1 + + + CAST( NULL AS SIGNED ) + - col1 col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7828
SELECT DISTINCT 7 / col1 + + + CAST ( NULL AS INTEGER ) + - col1 col1 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - + 94 >= - col0 / + col1 + - 7 + col0 / + + col2 + - + col2 / 34 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 * col0 <> NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-7831
SELECT COUNT( * ) + - - 74 AS col0, + CAST( - AVG ( ALL CAST( + + CAST( + CAST( + col2 AS SIGNED ) AS DECIMAL ) AS SIGNED ) ) AS SIGNED ) FROM tab2
----
77
-40

skipif mysql # not compatible
query II rowsort label-7831
SELECT COUNT ( * ) + - - 74 AS col0, + CAST ( - AVG ( ALL CAST ( + + CAST ( + CAST ( + col2 AS INTEGER ) AS REAL ) AS INTEGER ) ) AS INTEGER ) FROM tab2
----
77
-40

query I rowsort
SELECT col2 + - + col2 AS col0 FROM tab0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7833
SELECT - 86 DIV 51 + - + 5 * - col0 - - col2 AS col1 FROM tab2
----
252
359
432

skipif mysql # not compatible
query I rowsort label-7833
SELECT - 86 / 51 + - + 5 * - col0 - - col2 AS col1 FROM tab2
----
252
359
432

query I rowsort
SELECT + 42 * - col0 AS col0 FROM tab0 AS cor0
----
-3654
-4074
-630

query II rowsort
SELECT col0 + + col1, col2 FROM tab2 AS cor0 WHERE + 35 + - - 7 < col2 * - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7836
SELECT ALL + 86 + + COUNT( * ) * 12 AS col0 FROM tab0 AS cor0
----
122

skipif mysql # not compatible
query I rowsort label-7836
SELECT ALL + 86 + + COUNT ( * ) * 12 AS col0 FROM tab0 AS cor0
----
122

query I rowsort
SELECT + + col1 - 71 * - - col0 FROM tab0 AS cor0
----
-6156
-6886
-984

onlyif mysql # DIV for integer division: 
query I rowsort label-7838
SELECT DISTINCT - col1 DIV + + col1 AS col2 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-7838
SELECT DISTINCT - col1 / + + col1 AS col2 FROM tab1
----
-1

query II rowsort
SELECT col0, 37 + + - col0 AS col1 FROM tab0
----
15
22
87
-50
97
-60

query II rowsort
SELECT + 61, + 15 AS col0 FROM tab0
----
61
15
61
15
61
15

query II rowsort
SELECT ALL + 78, + col1 AS col2 FROM tab2
----
78
51
78
67
78
77

query III rowsort
SELECT * FROM tab0 WHERE NOT 13 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT + col2 AS col1, + col2 AS col0 FROM tab1 AS cor0
----
59
59
68
68
96
96

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) > + - col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7845
SELECT ALL + COUNT( * ) AS col2, + COUNT( * ) col2 FROM tab0 AS cor0
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7845
SELECT ALL + COUNT ( * ) AS col2, + COUNT ( * ) col2 FROM tab0 AS cor0
----
3
3

onlyif mysql # DIV for integer division: 
query I rowsort label-7846
SELECT ALL - + col1 DIV ( + ( ( + ( + col1 ) ) ) ) DIV - - col1 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7846
SELECT ALL - + col1 / ( + ( ( + ( + col1 ) ) ) ) / - - col1 FROM tab0 AS cor0
----
-1
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7847
SELECT DISTINCT + 60 + - 57 DIV + 94 FROM tab2 WHERE 88 IS NOT NULL
----
60

skipif mysql # not compatible
query I rowsort label-7847
SELECT DISTINCT + 60 + - 57 / + 94 FROM tab2 WHERE 88 IS NOT NULL
----
60

query I rowsort
SELECT ALL + col2 - 72 FROM tab1
----
-13
-4
24

onlyif mysql # aggregate syntax: 
query I rowsort label-7849
SELECT - MAX( ALL 94 ) FROM tab2
----
-94

skipif mysql # not compatible
query I rowsort label-7849
SELECT - MAX ( ALL 94 ) FROM tab2
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-7850
SELECT + ( COUNT( * ) ) + - 25 AS col1 FROM tab2
----
-22

skipif mysql # not compatible
query I rowsort label-7850
SELECT + ( COUNT ( * ) ) + - 25 AS col1 FROM tab2
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-7851
SELECT ALL COUNT( * ) AS col2 FROM tab1 WHERE ( NULL ) NOT BETWEEN ( + col2 ) AND col0 * - col0
----
0

skipif mysql # not compatible
query I rowsort label-7851
SELECT ALL COUNT ( * ) AS col2 FROM tab1 WHERE ( NULL ) NOT BETWEEN ( + col2 ) AND col0 * - col0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 57 col0 FROM tab0
----
57
57
57

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 + - 62 >= col1 * - 86 + ( ( + col0 ) + - col1 ) * 8
----
85
5
59

query I rowsort
SELECT 6 * 10 - col2 * 29 AS col1 FROM tab2
----
-1100
-1622
-607

onlyif mysql # aggregate syntax: 
query I rowsort label-7855
SELECT COUNT( + 69 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7855
SELECT COUNT ( + 69 ) FROM tab2
----
3

query I rowsort
SELECT ALL - 72 * col2 FROM tab1
----
-4248
-4896
-6912

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 68 col1 FROM tab0
----
-68
-68
-68

query III rowsort
SELECT * FROM tab2 WHERE - 77 NOT IN ( 95 + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 * 59 + + col2 * - 27 FROM tab0
----
-2614
3510
969

onlyif mysql # aggregate syntax: 
query I rowsort label-7860
SELECT DISTINCT 32 * - ( + COUNT( * ) * - COUNT( + ( - 47 ) ) ) col2 FROM tab0
----
288

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7860
SELECT DISTINCT 32 * - ( + COUNT ( * ) * - COUNT ( + ( - 47 ) ) ) col2 FROM tab0
----
288

query I rowsort
SELECT ALL ( 77 ) FROM tab1
----
77
77
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7862
SELECT DISTINCT COUNT( * ) - - 29 FROM tab2 WHERE NOT ( 72 ) IN ( - col1 + + col2 )
----
32

skipif mysql # not compatible
query I rowsort label-7862
SELECT DISTINCT COUNT ( * ) - - 29 FROM tab2 WHERE NOT ( 72 ) IN ( - col1 + + col2 )
----
32

query I rowsort
SELECT DISTINCT - 85 * col1 FROM tab2
----
-4335
-5695
-6545

query III rowsort
SELECT ALL * FROM tab1 WHERE 48 * - col0 IN ( - col1 )
----

query I rowsort
SELECT 85 AS col1 FROM tab0 WHERE - col1 IS NULL
----

query I rowsort
SELECT + ( - ( col2 ) ) * col0 AS col0 FROM tab0
----
-705
-870
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-7867
SELECT ALL ( + MIN( col2 ) ) AS col1 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-7867
SELECT ALL ( + MIN ( col2 ) ) AS col1 FROM tab0
----
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - col0 + 57 col0 FROM tab2
----
-1001
-2503
-4293

query I rowsort
SELECT ALL col0 FROM tab2 WHERE + 65 * col0 IS NOT NULL
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7870
SELECT - col2 * + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7870
SELECT - col2 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL BETWEEN NULL AND 35 * - 4
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7872
SELECT + SUM( col2 ) * MAX( 33 ) AS col1 FROM tab0
----
5148

skipif mysql # not compatible
query I rowsort label-7872
SELECT + SUM ( col2 ) * MAX ( 33 ) AS col1 FROM tab0
----
5148

onlyif mysql # aggregate syntax: 
query I rowsort label-7873
SELECT ALL MAX( col0 ) AS col0 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-7873
SELECT ALL MAX ( col0 ) AS col0 FROM tab1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7874
SELECT + 36 * COUNT( * ) AS col0 FROM tab0
----
108

skipif mysql # not compatible
query I rowsort label-7874
SELECT + 36 * COUNT ( * ) AS col0 FROM tab0
----
108

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 <> col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7876
SELECT ALL CAST( NULL AS DECIMAL ) + + col1 FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( + 62 )
----

skipif mysql # not compatible
query I rowsort label-7876
SELECT ALL CAST ( NULL AS REAL ) + + col1 FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( + 62 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT IN ( 23 )
----

query I rowsort
SELECT DISTINCT 36 + + 40 AS col0 FROM tab1 AS cor0
----
76

query I rowsort
SELECT ALL col2 AS col0 FROM tab0 cor0 WHERE ( - 68 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 28 BETWEEN NULL AND - col1 + - col0
----

query I rowsort
SELECT col0 + - col0 AS col0 FROM tab2 WHERE NULL IS NULL
----
0
0
0

query I rowsort
SELECT DISTINCT - 18 FROM tab1 WHERE col1 IN ( col1 - - col0 )
----

query III rowsort
SELECT * FROM tab0 WHERE col0 + col2 NOT IN ( - col1 * + 55 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col2 NOT BETWEEN ( NULL ) AND - col2 / - col1
----

query I rowsort
SELECT + ( 94 ) + col2 FROM tab1 cor0
----
153
162
190

query I rowsort
SELECT DISTINCT + - 36 AS col0 FROM tab1 AS cor0
----
-36

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( 85 ) <= ( 15 * - 63 )
----

query I rowsort
SELECT - + ( 69 ) + col0 AS col0 FROM tab0 AS cor0
----
-54
18
28

onlyif mysql # aggregate syntax: 
query I rowsort label-7889
SELECT ALL - 47 * + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-141

skipif mysql # not compatible
query I rowsort label-7889
SELECT ALL - 47 * + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-141

query I rowsort
SELECT - + col2 + + col1 * 78 AS col0 FROM tab1 AS cor0
----
331
3598
996

query I rowsort
SELECT DISTINCT + + col2 + col0 * ( col1 * col2 + + 10 ) FROM tab2 AS cor0
----
197800
292258
54441

query I rowsort
SELECT + 16 * + col0 FROM tab1 AS cor0
----
1360
1456
816

query I rowsort
SELECT col0 + 99 FROM tab1 AS cor0 WHERE NOT - col1 + - col2 > ( 11 )
----
150
184
190

query I rowsort
SELECT + + col1 * + 17 FROM tab0 AS cor0
----
1377
17
357

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7895
SELECT DISTINCT + SUM( ALL CAST( NULL AS DECIMAL ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7895
SELECT DISTINCT + SUM ( ALL CAST ( NULL AS REAL ) ) FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + col2 * + 56 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7897
SELECT MIN( DISTINCT col2 ) FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-7897
SELECT MIN ( DISTINCT col2 ) FROM tab0 AS cor0
----
10

query I rowsort
SELECT 35 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
35
35
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( - 1 ) col0 FROM tab0 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7900
SELECT DISTINCT + COUNT( * ) FROM tab0 WHERE NULL = ( + col1 * + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-7900
SELECT DISTINCT + COUNT ( * ) FROM tab0 WHERE NULL = ( + col1 * + col1 )
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) BETWEEN NULL AND ( ( 76 ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7902
SELECT CAST( ( COUNT( - CAST( 0 AS SIGNED ) ) ) AS SIGNED ) AS col2 FROM tab0 WHERE NOT 73 - + col2 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-7902
SELECT CAST ( ( COUNT ( - CAST ( 0 AS INTEGER ) ) ) AS INTEGER ) AS col2 FROM tab0 WHERE NOT 73 - + col2 = NULL
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) <= 47 * + 78
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7904
SELECT DISTINCT - COUNT( ALL - col1 ) DIV - COUNT( * ) AS col2 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7904
SELECT DISTINCT - COUNT ( ALL - col1 ) / - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
1

query I rowsort
SELECT + 52 * ( col2 ) FROM tab0 AS cor0
----
2444
5148
520

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7906
SELECT ALL + COUNT( * ) * + CAST( NULL AS SIGNED ) FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-7906
SELECT ALL + COUNT ( * ) * + CAST ( NULL AS INTEGER ) FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
NULL

query I rowsort
SELECT ALL - 27 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 90b76caf54a4e48ee4a9784f52997a6a

query I rowsort
SELECT DISTINCT - 37 FROM tab2 WHERE col2 IS NULL
----

query I rowsort
SELECT + - 3 + - + col2 AS col0 FROM tab0 AS cor0
----
-102
-13
-50

query I rowsort
SELECT ALL 2 + 37 + + 30 AS col0 FROM tab0 AS cor0
----
69
69
69

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE ( col0 ) = - 56
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7912
SELECT + col1 + - col2 DIV - - col1 col0 FROM tab1 AS cor0
----
-6
46
8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7912
SELECT + col1 + - col2 / - - col1 col0 FROM tab1 AS cor0
----
-6
46
8

onlyif mysql # aggregate syntax: 
query I rowsort label-7913
SELECT - + COUNT( * ) + + 59 AS col0 FROM tab2 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-7913
SELECT - + COUNT ( * ) + + 59 AS col0 FROM tab2 AS cor0
----
56

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( - col0 ) AND ( - 18 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7915
SELECT DISTINCT 55 DIV + + col0 + - 89 AS col1 FROM tab2 AS cor0
----
-88
-89

skipif mysql # not compatible
query I rowsort label-7915
SELECT DISTINCT 55 / + + col0 + - 89 AS col1 FROM tab2 AS cor0
----
-88
-89

onlyif mysql # aggregate syntax: 
query II rowsort label-7916
SELECT DISTINCT + COUNT( * ), + COUNT( * ) FROM tab1 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-7916
SELECT DISTINCT + COUNT ( * ), + COUNT ( * ) FROM tab1 AS cor0
----
3
3

query I rowsort
SELECT DISTINCT 66 AS col0 FROM tab2 cor0 WHERE ( NULL ) > + + 30
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 81 < - col0
----
15
81
47

query I rowsort
SELECT DISTINCT + col0 + + col0 * - col1 + - col1 FROM tab0 AS cor0
----
-1
-1281
-1761

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7920
SELECT ALL - ( - CAST( + ( + - 3 ) AS SIGNED ) ) + col1 FROM tab0
----
-2
18
78

skipif mysql # not compatible
query I rowsort label-7920
SELECT ALL - ( - CAST ( + ( + - 3 ) AS INTEGER ) ) + col1 FROM tab0
----
-2
18
78

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - col1 ) < NULL
----

query I rowsort
SELECT - col0 * - 49 AS col2 FROM tab0
----
4263
4753
735

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - ( + col0 ) IS NOT NULL
----

query II rowsort
SELECT 13 * - 55, + col1 FROM tab1
----
-715
14
-715
47
-715
5

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - ( 80 ) NOT BETWEEN ( - 77 ) AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7926
SELECT ALL SUM( ( col0 ) ) AS col1 FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-7926
SELECT ALL SUM ( ( col0 ) ) AS col1 FROM tab2
----
185

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN + + col2 AND ( - 95 / - 96 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 90 - 72 col1 FROM tab1
----
-162
-162
-162

query I rowsort
SELECT ALL - - col1 + + + 31 * + col2 AS col1 FROM tab1 AS cor0
----
1834
2155
2990

query II rowsort
SELECT + col0 + - col0 AS col0, + 20 FROM tab0 AS cor0
----
0
20
0
20
0
20

query II rowsort
SELECT ALL - 74 + - + col2 AS col0, 42 AS col1 FROM tab0 AS cor0
----
-121
42
-173
42
-84
42

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7932
SELECT * FROM tab0 AS cor0 WHERE - ( 39 ) / + - CAST( NULL AS DECIMAL ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7932
SELECT * FROM tab0 AS cor0 WHERE - ( 39 ) / + - CAST ( NULL AS REAL ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 60 * col1 IS NULL
----

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL ) IS NOT NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

query I rowsort
SELECT ALL - col1 - + - col2 AS col2 FROM tab1
----
21
54
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7936
SELECT + col2 FROM tab1 WHERE NULL BETWEEN ( + col1 * - CAST( + 57 AS SIGNED ) - CAST( - col2 + + ( col0 ) AS SIGNED ) ) AND - col0 * 15
----

skipif mysql # not compatible
query I rowsort label-7936
SELECT + col2 FROM tab1 WHERE NULL BETWEEN ( + col1 * - CAST ( + 57 AS INTEGER ) - CAST ( - col2 + + ( col0 ) AS INTEGER ) ) AND - col0 * 15
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col0 BETWEEN NULL AND ( - 9 )
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-7938
SELECT ALL * FROM tab2 AS cor0 WHERE NOT CAST( NULL AS DECIMAL ) + + - 98 - + + ( - 67 ) - col1 * 30 * + 32 NOT BETWEEN ( 85 * CAST( - col0 * col2 AS SIGNED ) ) AND CAST( col1 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7938
SELECT ALL * FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS REAL ) + + - 98 - + + ( - 67 ) - col1 * 30 * + 32 NOT BETWEEN ( 85 * CAST ( - col0 * col2 AS INTEGER ) ) AND CAST ( col1 AS INTEGER )
----

query I rowsort
SELECT ALL 43 AS col0 FROM tab1 AS cor0 WHERE NOT col1 * - col2 * 63 * - 66 BETWEEN col1 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( 43 / + - col0 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7941
SELECT DISTINCT - COUNT( * ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-7941
SELECT DISTINCT - COUNT ( * ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
-3

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7942
SELECT ALL CAST( NULL AS SIGNED ) * AVG ( ALL CAST( NULL AS DECIMAL ) ) AS col0 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7942
SELECT ALL CAST ( NULL AS INTEGER ) * AVG ( ALL CAST ( NULL AS REAL ) ) AS col0 FROM tab0 cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT ( NULL ) BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7944
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + CAST( NULL AS DECIMAL ) < NULL
----

skipif mysql # not compatible
query III rowsort label-7944
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + CAST ( NULL AS REAL ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7945
SELECT ALL MIN( DISTINCT + 18 ) FROM tab1
----
18

skipif mysql # not compatible
query I rowsort label-7945
SELECT ALL MIN ( DISTINCT + 18 ) FROM tab1
----
18

query I rowsort
SELECT + col1 * col2 + - col2 FROM tab0 WHERE NOT ( ( NOT col2 / 17 + + col2 >= NULL ) )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col2 * - col1 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 col0, - col2 FROM tab0
----
10
-10
47
-47
99
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-7949
SELECT DISTINCT + COUNT( DISTINCT - col0 ) col2 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7949
SELECT DISTINCT + COUNT ( DISTINCT - col0 ) col2 FROM tab0
----
3

query I rowsort
SELECT + 33 * col1 FROM tab1 WHERE NOT + - 52 <> - + col1 / + col1
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + + col1 >= ( NULL )
----

query II rowsort
SELECT - col1 AS col2, col0 AS col1 FROM tab0
----
-1
97
-21
87
-81
15

query II rowsort
SELECT col2, 26 FROM tab2
----
23
26
40
26
58
26

query I rowsort
SELECT - 11 FROM tab2 WHERE NOT NULL = NULL
----

query I rowsort
SELECT DISTINCT - + col1 * + 60 + 30 AS col2 FROM tab0 WHERE NOT ( NOT - 7 IS NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7956
SELECT DISTINCT col1 DIV - + 45 AS col0 FROM tab0 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-7956
SELECT DISTINCT col1 / - + 45 AS col0 FROM tab0 AS cor0
----
-1
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 32 + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - 10, col1 * + col2 + - - col2 col1 FROM tab0 AS cor0
----
10
198
10
220
10
3854

query I rowsort
SELECT col0 * - + 3 AS col0 FROM tab1 cor0
----
-153
-255
-273

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7960
SELECT DISTINCT + col1 * col1 * + - CAST( col0 AS SIGNED ) AS col1 FROM tab1
----
-201019
-2125
-9996

skipif mysql # not compatible
query I rowsort label-7960
SELECT DISTINCT + col1 * col1 * + - CAST ( col0 AS INTEGER ) AS col1 FROM tab1
----
-201019
-2125
-9996

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + + col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 97 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-7963
SELECT + col1 DIV + 57 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-7963
SELECT + col1 / + 57 FROM tab2 AS cor0
----
0
1
1

query I rowsort
SELECT DISTINCT col2 + - 19 AS col1 FROM tab2 AS cor0
----
21
39
4

onlyif mysql # aggregate syntax: 
query I rowsort label-7965
SELECT ALL - COUNT( * ) + + 95 * + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-288

skipif mysql # not compatible
query I rowsort label-7965
SELECT ALL - COUNT ( * ) + + 95 * + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-288

onlyif mysql # aggregate syntax: 
query I rowsort label-7966
SELECT DISTINCT - COUNT( ALL - + col2 ) + - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NULL <= col1
----
0

skipif mysql # not compatible
query I rowsort label-7966
SELECT DISTINCT - COUNT ( ALL - + col2 ) + - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NULL <= col1
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7967
SELECT + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7967
SELECT + CAST ( NULL AS REAL ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7968
SELECT + 84 * + + COUNT( + col1 ) - COUNT( * ) + + - COUNT( * ) FROM tab1 AS cor0
----
246

skipif mysql # not compatible
query I rowsort label-7968
SELECT + 84 * + + COUNT ( + col1 ) - COUNT ( * ) + + - COUNT ( * ) FROM tab1 AS cor0
----
246

query I rowsort
SELECT - 61 + + - 11 FROM tab1 AS cor0
----
-72
-72
-72

query I rowsort
SELECT ALL - col1 + - 39 AS col2 FROM tab2 AS cor0
----
-106
-116
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-7971
SELECT + - COUNT( - 93 ) + + + COUNT( * ) * - 38 AS col0 FROM tab0 AS cor0
----
-117

skipif mysql # not compatible
query I rowsort label-7971
SELECT + - COUNT ( - 93 ) + + + COUNT ( * ) * - 38 AS col0 FROM tab0 AS cor0
----
-117

query I rowsort
SELECT + 69 + col2 FROM tab2 AS cor0
----
109
127
92

onlyif mysql # aggregate syntax: 
query I rowsort label-7973
SELECT DISTINCT + MAX( 87 ) AS col0 FROM tab0 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-7973
SELECT DISTINCT + MAX ( 87 ) AS col0 FROM tab0 AS cor0
----
87

query I rowsort
SELECT - col1 + 48 FROM tab0
----
-33
27
47

query I rowsort
SELECT ALL + 17 * - col0 * + - ( + col0 ) AS col2 FROM tab0
----
128673
159953
3825

query I rowsort
SELECT DISTINCT 8 * + + col2 FROM tab2
----
184
320
464

query II rowsort
SELECT ALL - col0 AS col0, - col1 FROM tab1
----
-51
-14
-85
-5
-91
-47

query III rowsort
SELECT * FROM tab0 WHERE - 24 NOT IN ( - col2 + + ( + 26 ), - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7979
SELECT * FROM tab1 WHERE ( - 9 ) NOT BETWEEN + CAST( - 41 AS SIGNED ) * - + CAST( ( + + col2 ) AS SIGNED ) + + col0 AND + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7979
SELECT * FROM tab1 WHERE ( - 9 ) NOT BETWEEN + CAST ( - 41 AS INTEGER ) * - + CAST ( ( + + col2 ) AS INTEGER ) + + col0 AND + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 48 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-7981
SELECT + - 52 DIV - col0 AS col1 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7981
SELECT + - 52 / - col0 AS col1 FROM tab2 AS cor0
----
0
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7982
SELECT ALL - + CAST( NULL AS SIGNED ) / 19 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7982
SELECT ALL - + CAST ( NULL AS INTEGER ) / 19 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7983
SELECT - COUNT( * ) AS col1, + 89 FROM tab1 AS cor0
----
-3
89

skipif mysql # not compatible
query II rowsort label-7983
SELECT - COUNT ( * ) AS col1, + 89 FROM tab1 AS cor0
----
-3
89

onlyif mysql # DIV for integer division: 
query I rowsort label-7984
SELECT ALL - col1 DIV - col0 + + col0 FROM tab0 AS cor0
----
20
87
97

skipif mysql # not compatible
query I rowsort label-7984
SELECT ALL - col1 / - col0 + + col0 FROM tab0 AS cor0
----
20
87
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7985
SELECT 48 - + 35 DIV COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
45

skipif mysql # not compatible
query I rowsort label-7985
SELECT 48 - + 35 / COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
45

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab2 WHERE ( - col2 / - 10 + ( + - ( - col0 ) ) ) > ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 65 * col2 col2, col0 * - col0 AS col2 FROM tab1 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL IS NOT NULL OR NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7989
SELECT COUNT( + col1 ) AS col1, - COUNT( * ) FROM tab2 AS cor0
----
3
-3

skipif mysql # not compatible
query II rowsort label-7989
SELECT COUNT ( + col1 ) AS col1, - COUNT ( * ) FROM tab2 AS cor0
----
3
-3

query I rowsort
SELECT - - col2 * ( + col2 ) FROM tab0 AS cor0
----
100
2209
9801

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL < + + 85
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN + - col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7993
SELECT ALL + COUNT( * ) * + ( SUM( ALL - - col2 ) ) AS col2 FROM tab0
----
468

skipif mysql # not compatible
query I rowsort label-7993
SELECT ALL + COUNT ( * ) * + ( SUM ( ALL - - col2 ) ) AS col2 FROM tab0
----
468

query I rowsort
SELECT ALL - col0 * - - col1 AS col0 FROM tab2
----
-2346
-4928
-5025

query II rowsort
SELECT 79, col0 FROM tab0
----
79
15
79
87
79
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7996
SELECT - COUNT( * ) AS col2 FROM tab2 WHERE NOT NULL NOT BETWEEN - 98 * - - col1 + + - col0 / - + 25 AND ( - 14 )
----
0

skipif mysql # not compatible
query I rowsort label-7996
SELECT - COUNT ( * ) AS col2 FROM tab2 WHERE NOT NULL NOT BETWEEN - 98 * - - col1 + + - col0 / - + 25 AND ( - 14 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7997
SELECT DISTINCT col0, - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-7997
SELECT DISTINCT col0, - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7998
SELECT ALL + COUNT( * ) FROM tab2 cor0 WHERE NOT col2 * col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7998
SELECT ALL + COUNT ( * ) FROM tab2 cor0 WHERE NOT col2 * col2 IS NOT NULL
----
0

query I rowsort
SELECT + + 70 * + 85 FROM tab1 AS cor0
----
5950
5950
5950

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + - + col1 col2 FROM tab1 AS cor0
----
37
44
80

onlyif mysql # DIV for integer division: 
query II rowsort label-8001
SELECT DISTINCT ( - + col0 ) DIV + 69 col2, col1 FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
-1
47
-1
5
0
14

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8001
SELECT DISTINCT ( - + col0 ) / + 69 col2, col1 FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
-1
47
-1
5
0
14

query I rowsort
SELECT DISTINCT + 84 * + col0 * + col1 FROM tab2
----
197064
413952
422100

onlyif mysql # DIV for integer division: 
query I rowsort label-8003
SELECT DISTINCT col1 DIV + col1 AS col0 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8003
SELECT DISTINCT col1 / + col1 AS col0 FROM tab2 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8004
SELECT + + 59 col1, + MIN( + col2 ) FROM tab0 AS cor0
----
59
10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8004
SELECT + + 59 col1, + MIN ( + col2 ) FROM tab0 AS cor0
----
59
10

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( col0 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + + 27 FROM tab0 AS cor0 WHERE + 61 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 * - col0 + - + 66 col1 FROM tab0 cor0
----
1149
1761
31

query I rowsort
SELECT DISTINCT 58 - + 76 + - - 90 FROM tab2 AS cor0
----
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col0 FROM tab0 AS cor0 WHERE col0 >= - - col1
----
10
99

query I rowsort
SELECT ALL + col1 - - + col0 FROM tab1 AS cor0
----
138
65
90

query I rowsort
SELECT - col1 - - - col0 * - col1 + - + 84 AS col1 FROM tab2
----
2211
4767
4874

query I rowsort
SELECT 2 * + col2 - col1 AS col0 FROM tab2
----
-5
3
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8013
SELECT DISTINCT AVG ( ( + CAST( NULL AS SIGNED ) ) ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8013
SELECT DISTINCT AVG ( ( + CAST ( NULL AS INTEGER ) ) ) AS col0 FROM tab2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8014
SELECT col2 - + col1 - CAST( NULL AS DECIMAL ) * col2 + + - 65 + col1 * 49 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8014
SELECT col2 - + col1 - CAST ( NULL AS REAL ) * col2 + + - 65 + col1 * 49 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 69 AS col1 FROM tab2
----
69
69
69

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8016
SELECT * FROM tab2 WHERE 75 IN ( col1, - 36 / - CAST( - + 88 AS SIGNED ) + col0 * - + CAST( NULL AS SIGNED ) + + + 29 + col0 )
----

skipif mysql # not compatible
query III rowsort label-8016
SELECT * FROM tab2 WHERE 75 IN ( col1, - 36 / - CAST ( - + 88 AS INTEGER ) + col0 * - + CAST ( NULL AS INTEGER ) + + + 29 + col0 )
----

query III rowsort
SELECT * FROM tab2 WHERE ( NOT col1 * col2 NOT BETWEEN ( - - 74 + col2 * + 57 ) AND - 91 / - 45 + + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8018
SELECT DISTINCT SUM( DISTINCT 93 ) AS col0 FROM tab1 WHERE NOT ( + col1 * ( 69 ) IN ( - 34 ) )
----
93

skipif mysql # not compatible
query I rowsort label-8018
SELECT DISTINCT SUM ( DISTINCT 93 ) AS col0 FROM tab1 WHERE NOT ( + col1 * ( 69 ) IN ( - 34 ) )
----
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8019
SELECT ALL 39 DIV - ( + + MAX( ALL + - col1 ) ) col0 FROM tab1
----
7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8019
SELECT ALL 39 / - ( + + MAX ( ALL + - col1 ) ) col0 FROM tab1
----
7

query I rowsort
SELECT col1 AS col0 FROM tab1 AS cor0 WHERE + col2 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 BETWEEN NULL AND + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-8022
SELECT DISTINCT + col2 DIV 35 FROM tab1
----
1
2

skipif mysql # not compatible
query I rowsort label-8022
SELECT DISTINCT + col2 / 35 FROM tab1
----
1
2

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8024
SELECT DISTINCT - SUM( ALL + col1 ) FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-8024
SELECT DISTINCT - SUM ( ALL + col1 ) FROM tab2
----
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-8025
SELECT 97 * + - COUNT( * ) FROM tab2
----
-291

skipif mysql # not compatible
query I rowsort label-8025
SELECT 97 * + - COUNT ( * ) FROM tab2
----
-291

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( - 91 ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8027
SELECT - 91 + - SUM( - col2 ) + - - COUNT( * ) AS col2 FROM tab2 cor0 WHERE NOT ( - col1 * - - CAST( NULL AS SIGNED ) IS NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8027
SELECT - 91 + - SUM ( - col2 ) + - - COUNT ( * ) AS col2 FROM tab2 cor0 WHERE NOT ( - col1 * - - CAST ( NULL AS INTEGER ) IS NULL )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8028
SELECT ALL 48, - col2 DIV - - col1 + + + col0 col0 FROM tab0 AS cor0
----
48
-2
48
15
48
87

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8028
SELECT ALL 48, - col2 / - - col1 + + + col0 col0 FROM tab0 AS cor0
----
48
-2
48
15
48
87

onlyif mysql # aggregate syntax: 
query II rowsort label-8029
SELECT ALL - - COUNT( * ) AS col0, + COUNT( * ) AS col0 FROM tab2 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-8029
SELECT ALL - - COUNT ( * ) AS col0, + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
3
3

query II rowsort
SELECT DISTINCT + + col2 AS col0, - 95 AS col2 FROM tab0 AS cor0
----
10
-95
47
-95
99
-95

query I rowsort
SELECT DISTINCT - + 7 AS col1 FROM tab1 AS cor0
----
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-8032
SELECT + col0 DIV + - col2 AS col0 FROM tab2
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-8032
SELECT + col0 / + - col2 AS col0 FROM tab2
----
-1
-1
-2

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8033
SELECT - 70 DIV CAST( col0 AS SIGNED ) AS col0 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-8033
SELECT - 70 / CAST ( col0 AS INTEGER ) AS col0 FROM tab2
----
-1
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8034
SELECT ALL 71 * COUNT( * ) AS col0 FROM tab2
----
213

skipif mysql # not compatible
query I rowsort label-8034
SELECT ALL 71 * COUNT ( * ) AS col0 FROM tab2
----
213

query I rowsort
SELECT col2 AS col1 FROM tab2 AS cor0 WHERE - 87 * - col2 * ( col1 ) BETWEEN - - col0 AND ( col1 ) AND 94 * 63 IS NOT NULL
----

query I rowsort
SELECT ALL - col1 FROM tab2 AS cor0 WHERE NULL = ( NULL )
----

query I rowsort
SELECT ALL - 55 AS col1 FROM tab1 AS cor0
----
-55
-55
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-8038
SELECT ALL col0 DIV 21 * - col0 * - 24 + 89 + + 6 * col2 FROM tab0 AS cor0
----
371
8501
9995

skipif mysql # not compatible
query I rowsort label-8038
SELECT ALL col0 / 21 * - col0 * - 24 + 89 + + 6 * col2 FROM tab0 AS cor0
----
371
8501
9995

query I rowsort
SELECT DISTINCT 89 + - col1 FROM tab2 AS cor0
----
12
22
38

query III rowsort
SELECT * FROM tab0 WHERE ( + col2 * col0 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8041
SELECT COUNT( * ) + - 38 FROM tab2 cor0
----
-35

skipif mysql # not compatible
query I rowsort label-8041
SELECT COUNT ( * ) + - 38 FROM tab2 cor0
----
-35

query I rowsort
SELECT 51 AS col2 FROM tab2 AS cor0 WHERE NULL >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8043
SELECT + col1 + - ( + col1 ) DIV + col1 AS col0 FROM tab2 AS cor0
----
50
66
76

skipif mysql # not compatible
query I rowsort label-8043
SELECT + col1 + - ( + col1 ) / + col1 AS col0 FROM tab2 AS cor0
----
50
66
76

query I rowsort
SELECT ALL - 18 + + col1 * 34 FROM tab2 AS cor0
----
1716
2260
2600

query I rowsort
SELECT + 47 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) <> + 99
----

query I rowsort
SELECT DISTINCT - 88 + - + col2 AS col2 FROM tab1 AS cor0
----
-147
-156
-184

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 88 - + col0 col0 FROM tab0 AS cor0
----
-103
-175
-185

query I rowsort
SELECT DISTINCT - - col1 * - 76 + - + col1 FROM tab0 AS cor0
----
-1617
-6237
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8049
SELECT + - 34 + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8049
SELECT + - 34 + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8050
SELECT DISTINCT ( + col1 ) + - + CAST( col1 AS SIGNED ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8050
SELECT DISTINCT ( + col1 ) + - + CAST ( col1 AS INTEGER ) FROM tab2
----
0

query I rowsort
SELECT + + col0 * + col0 / - col0 AS col2 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL
----

query II rowsort
SELECT col0 AS col0, ( 2 ) AS col1 FROM tab2 AS cor0
----
46
2
64
2
75
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8053
SELECT + SUM( DISTINCT + col0 ) FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-8053
SELECT + SUM ( DISTINCT + col0 ) FROM tab0 AS cor0
----
199

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8054
SELECT + col1 + CAST( NULL AS SIGNED ) FROM tab0 WHERE NOT NULL IN ( - col0 )
----

skipif mysql # not compatible
query I rowsort label-8054
SELECT + col1 + CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT NULL IN ( - col0 )
----

query I rowsort
SELECT DISTINCT + 58 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8056
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 * col1 * - ( col2 ) > - + ( col0 ) * CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8056
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 * col1 * - ( col2 ) > - + ( col0 ) * CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL - 13 * 57 AS col1 FROM tab2 AS cor0
----
-741
-741
-741

query I rowsort
SELECT - 8 * - col2 * - col2 AS col2 FROM tab2 AS cor0
----
-12800
-26912
-4232

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN + 45 AND NULL AND NOT ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL + 32 * + 64 * + 3 FROM tab1 WHERE NOT NULL IS NOT NULL
----
6144
6144
6144

onlyif mysql # aggregate syntax: 
query I rowsort label-8061
SELECT COUNT( * ) AS col0 FROM tab2 WHERE NOT ( NULL ) IN ( col2 * + - col1, + col2 / + + col0 + 27 * - col1 + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-8061
SELECT COUNT ( * ) AS col0 FROM tab2 WHERE NOT ( NULL ) IN ( col2 * + - col1, + col2 / + + col0 + 27 * - col1 + col0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8062
SELECT ALL MIN( + - col2 ) FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-8062
SELECT ALL MIN ( + - col2 ) FROM tab0
----
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( col1 ) * - 66 * + col2 * - + col0 * 84 + col2 col0 FROM tab2 WHERE - 39 IS NOT NULL
----
1092833320
1615798858
299143175

query I rowsort
SELECT DISTINCT ( - 98 ) AS col1 FROM tab0, tab0 AS cor0
----
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8065
SELECT + CAST( SUM( DISTINCT + col2 ) AS SIGNED ) AS col0 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-8065
SELECT + CAST ( SUM ( DISTINCT + col2 ) AS INTEGER ) AS col0 FROM tab0
----
156

query II rowsort
SELECT DISTINCT col1, 48 AS col1 FROM tab1
----
14
48
47
48
5
48

onlyif mysql # DIV for integer division: 
query I rowsort label-8067
SELECT - col1 DIV + + col1 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8067
SELECT - col1 / + + col1 FROM tab1
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8068
SELECT ALL 67 * + col0 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8068
SELECT ALL 67 * + col0 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 + 59 FROM tab1 cor0
----
106
64
73

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 14 * col0 IN ( - 69 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8071
SELECT + + COUNT( + + 86 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8071
SELECT + + COUNT ( + + 86 ) AS col0 FROM tab0 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 48 BETWEEN NULL AND ( + + col2 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8073
SELECT - col0 DIV - - col1 AS col2, - col0 AS col1 FROM tab1 AS cor0
----
-1
-91
-17
-85
-3
-51

skipif mysql # not compatible
query II rowsort label-8073
SELECT - col0 / - - col1 AS col2, - col0 AS col1 FROM tab1 AS cor0
----
-1
-91
-17
-85
-3
-51

query I rowsort
SELECT ALL - - 75 AS col2 FROM tab2 AS cor0 WHERE + col0 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 61 IS NULL
----

query I rowsort
SELECT DISTINCT - 82 + - + col0 + - 78 FROM tab2 AS cor0
----
-206
-224
-235

onlyif mysql # aggregate syntax: 
query I rowsort label-8077
SELECT ALL - + 17 + MAX( ALL + + col2 ) AS col0 FROM tab1 cor0
----
79

skipif mysql # not compatible
query I rowsort label-8077
SELECT ALL - + 17 + MAX ( ALL + + col2 ) AS col0 FROM tab1 cor0
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8078
SELECT ALL - col2 - + CAST( - col0 AS SIGNED ) + - CAST( NULL AS SIGNED ) * - 69 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8078
SELECT ALL - col2 - + CAST ( - col0 AS INTEGER ) + - CAST ( NULL AS INTEGER ) * - 69 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 - - 52 * + + 79 FROM tab1
----
4167
4176
4204

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 / - col0 + - - 59 IS NULL OR - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 WHERE + + col2 + 55 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8082
SELECT - ( + 38 ) - + COUNT( * ) FROM tab2
----
-41

skipif mysql # not compatible
query I rowsort label-8082
SELECT - ( + 38 ) - + COUNT ( * ) FROM tab2
----
-41

onlyif mysql # DIV for integer division: 
query II rowsort label-8083
SELECT DISTINCT + col0, - 50 DIV + - col0 AS col1 FROM tab2
----
46
1
64
0
75
0

skipif mysql # not compatible
query II rowsort label-8083
SELECT DISTINCT + col0, - 50 / + - col0 AS col1 FROM tab2
----
46
1
64
0
75
0

query I rowsort
SELECT + 91 * + 60 AS col0 FROM tab1
----
5460
5460
5460

onlyif mysql # aggregate syntax: 
query I rowsort label-8085
SELECT + COUNT( * ) * - - ( MIN( - - col0 ) ) FROM tab1
----
153

skipif mysql # not compatible
query I rowsort label-8085
SELECT + COUNT ( * ) * - - ( MIN ( - - col0 ) ) FROM tab1
----
153

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 * + col0 <= NULL
----

query I rowsort
SELECT DISTINCT - col2 * - - col2 AS col0 FROM tab0 AS cor0
----
-100
-2209
-9801

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8088
SELECT ALL - - col2 * + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8088
SELECT ALL - - col2 * + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE NOT ( col2 * col2 ) IS NOT NULL
----

query I rowsort
SELECT ALL 62 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0

query I rowsort
SELECT ALL + - col1 * + 38 FROM tab0 AS cor0
----
-3078
-38
-798

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 > NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( NULL ) <= - + col1
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col0 * + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL BETWEEN col1 + - col1 AND - col2 * + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8096
SELECT ALL + SUM( DISTINCT - - col1 ) AS col0 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-8096
SELECT ALL + SUM ( DISTINCT - - col1 ) AS col0 FROM tab0 AS cor0
----
103

query II rowsort
SELECT - 41, 31 AS col0 FROM tab0 AS cor0
----
-41
31
-41
31
-41
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8098
SELECT - MIN( CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8098
SELECT - MIN ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + col0 col0, ( - col0 ) FROM tab0 AS cor0
----
15
-15
87
-87
97
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-8100
SELECT DISTINCT col1 DIV - ( 9 ) AS col2 FROM tab0
----
-2
-9
0

skipif mysql # not compatible
query I rowsort label-8100
SELECT DISTINCT col1 / - ( 9 ) AS col2 FROM tab0
----
-2
-9
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8101
SELECT ALL + ( 33 ) col0, COUNT( * ) + + MIN( + 62 ) FROM tab2
----
33
65

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8101
SELECT ALL + ( 33 ) col0, COUNT ( * ) + + MIN ( + 62 ) FROM tab2
----
33
65

onlyif mysql # aggregate syntax: 
query I rowsort label-8102
SELECT ALL COUNT( * ) * MIN( ALL - + 86 ) FROM tab1
----
-258

skipif mysql # not compatible
query I rowsort label-8102
SELECT ALL COUNT ( * ) * MIN ( ALL - + 86 ) FROM tab1
----
-258

query I rowsort
SELECT 17 + 30 AS col0 FROM tab2
----
47
47
47

query III rowsort
SELECT * FROM tab2 WHERE + col1 + - + 37 >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + - 79 / + + 46 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8106
SELECT ALL COUNT( * ) DIV 10 + + ( - COUNT( * ) ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-8106
SELECT ALL COUNT ( * ) / 10 + + ( - COUNT ( * ) ) FROM tab1
----
-3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL > + col2 + - col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( col2 ) >= ( - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8109
SELECT ALL + COUNT( * ) AS col2 FROM tab0 cor0 WHERE ( NOT ( NOT 93 = NULL ) )
----
0

skipif mysql # not compatible
query I rowsort label-8109
SELECT ALL + COUNT ( * ) AS col2 FROM tab0 cor0 WHERE ( NOT ( NOT 93 = NULL ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8110
SELECT DISTINCT - MAX( ALL + col1 ) FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-8110
SELECT DISTINCT - MAX ( ALL + col1 ) FROM tab1
----
-47

query I rowsort
SELECT - + col0 + + 55 FROM tab0 AS cor0
----
-32
-42
40

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8112
SELECT * FROM tab2 AS cor0 WHERE NULL IN ( col1 / - - CAST( + col2 AS DECIMAL ), + col1 * - 72 + - 23 * col0, col0 + + col0 )
----

skipif mysql # not compatible
query III rowsort label-8112
SELECT * FROM tab2 AS cor0 WHERE NULL IN ( col1 / - - CAST ( + col2 AS REAL ), + col1 * - 72 + - 23 * col0, col0 + + col0 )
----

query I rowsort
SELECT DISTINCT col0 - - 68 FROM tab0 AS cor0
----
155
165
83

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + - col2 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + ( col1 ) * - col0 * - 97 + - 3 FROM tab0 AS cor0
----
117852
177216
9406

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 57 * + 23 * - + col1 + + col2 col0 FROM tab0 AS cor0
----
-106144
-1212
-27521

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col2 * + 87 + - - 54 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8118
SELECT - CAST( - + col2 AS DECIMAL ) * col1 FROM tab1 WHERE NOT 58 * + - 81 / - col0 + - - 43 * + col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8118
SELECT - CAST ( - + col2 AS REAL ) * col1 FROM tab1 WHERE NOT 58 * + - 81 / - col0 + - - 43 * + col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col0 ) col0 FROM tab1 WHERE NOT - col1 BETWEEN 33 AND + 80
----
51
85
91

query I rowsort
SELECT col1 * - - col1 * + col1 FROM tab0 cor0
----
1
531441
9261

query II rowsort
SELECT - col1 * + + col1, 15 AS col0 FROM tab0 AS cor0
----
-1
15
-441
15
-6561
15

query I rowsort
SELECT DISTINCT + col0 * + 1 AS col1 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT DISTINCT + 59 + + col0 FROM tab1 AS cor0
----
110
144
150

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-8125
SELECT DISTINCT - col2 + + - col2 DIV - + col0 FROM tab1 AS cor0
----
-59
-68
-95

skipif mysql # not compatible
query I rowsort label-8125
SELECT DISTINCT - col2 + + - col2 / - + col0 FROM tab1 AS cor0
----
-59
-68
-95

query I rowsort
SELECT - col2 + + ( + col2 ) FROM tab1 cor0
----
0
0
0

query II rowsort
SELECT - - 67 AS col2, + 73 FROM tab1 AS cor0
----
67
73
67
73
67
73

onlyif mysql # aggregate syntax: 
query I rowsort label-8128
SELECT DISTINCT - MAX( + 41 ) FROM tab2 AS cor0
----
-41

skipif mysql # not compatible
query I rowsort label-8128
SELECT DISTINCT - MAX ( + 41 ) FROM tab2 AS cor0
----
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8129
SELECT ALL col2 + + CAST( NULL AS SIGNED ) * - col2 + + 46 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8129
SELECT ALL col2 + + CAST ( NULL AS INTEGER ) * - col2 + + 46 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 52 * - col1 FROM tab0
----
-1092
-4212
-52

onlyif mysql # DIV for integer division: 
query II rowsort label-8131
SELECT DISTINCT col2, ( - col1 ) * 58 DIV 40 * + + col0 FROM tab0
----
10
-2610
47
-1755
99
-97

skipif mysql # not compatible
query II rowsort label-8131
SELECT DISTINCT col2, ( - col1 ) * 58 / 40 * + + col0 FROM tab0
----
10
-2610
47
-1755
99
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8132
SELECT ALL COUNT( * ) * + - 46 AS col1 FROM tab0
----
-138

skipif mysql # not compatible
query I rowsort label-8132
SELECT ALL COUNT ( * ) * + - 46 AS col1 FROM tab0
----
-138

query II rowsort
SELECT col2, - 97 * - - col2 AS col0 FROM tab2
----
23
-2231
40
-3880
58
-5626

onlyif mysql # aggregate syntax: 
query II rowsort label-8134
SELECT DISTINCT 49 AS col2, 70 - + + 32 + + MAX( + col2 ) * + MIN( ( 13 ) ) FROM tab2
----
49
792

skipif mysql # not compatible
query II rowsort label-8134
SELECT DISTINCT 49 AS col2, 70 - + + 32 + + MAX ( + col2 ) * + MIN ( ( 13 ) ) FROM tab2
----
49
792

query II rowsort
SELECT - 47 * col2 AS col0, 19 FROM tab1
----
-2773
19
-3196
19
-4512
19

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col0 < NULL
----

query I rowsort
SELECT ALL + col1 + + - 21 * + 16 AS col2 FROM tab0
----
-255
-315
-335

onlyif mysql # aggregate syntax: 
query I rowsort label-8138
SELECT ALL SUM( col1 ) FROM tab1 AS cor0 WHERE NOT + col1 * - col0 + col1 IS NOT NULL AND col1 BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8138
SELECT ALL SUM ( col1 ) FROM tab1 AS cor0 WHERE NOT + col1 * - col0 + col1 IS NOT NULL AND col1 BETWEEN NULL AND NULL
----
NULL

query II rowsort
SELECT - 47 + + 62 AS col2, - 14 FROM tab0
----
15
-14
15
-14
15
-14

query I rowsort
SELECT DISTINCT + col1 - 2 FROM tab1
----
12
3
45

onlyif mysql # aggregate syntax: 
query I rowsort label-8141
SELECT + MAX( col2 ) FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-8141
SELECT + MAX ( col2 ) FROM tab1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8142
SELECT COUNT( + 25 ) * 23 FROM tab2
----
69

skipif mysql # not compatible
query I rowsort label-8142
SELECT COUNT ( + 25 ) * 23 FROM tab2
----
69

query I rowsort
SELECT DISTINCT + + 25 AS col2 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8144
SELECT ALL + - col1 FROM tab0 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-8144
SELECT ALL + - col1 FROM tab0 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 52 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col2 * + 52 FROM tab0 AS cor0
----
-2444
-5148
-520

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND - col2
----

query II rowsort
SELECT ALL + ( col1 ), col0 AS col2 FROM tab1 AS cor0
----
14
51
47
91
5
85

onlyif mysql # aggregate syntax: 
query I rowsort label-8149
SELECT ALL - + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE ( + col1 ) * col0 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-8149
SELECT ALL - + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE ( + col1 ) * col0 IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8150
SELECT ALL - MAX( - col0 ) col1 FROM tab2 cor0
----
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8150
SELECT ALL - MAX ( - col0 ) col1 FROM tab2 cor0
----
46

query II rowsort
SELECT DISTINCT col1, col1 FROM tab2
----
51
51
67
67
77
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1, col1 col2 FROM tab2
----
51
51
67
67
77
77

onlyif mysql # DIV for integer division: 
query I rowsort label-8153
SELECT - col0 DIV - + col0 col1 FROM tab1
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8153
SELECT - col0 / - + col0 col1 FROM tab1
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8154
SELECT CAST( col0 AS SIGNED ) * - col0 + + 76 FROM tab0
----
-149
-7493
-9333

skipif mysql # not compatible
query I rowsort label-8154
SELECT CAST ( col0 AS INTEGER ) * - col0 + + 76 FROM tab0
----
-149
-7493
-9333

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + col0 ) >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8156
SELECT DISTINCT - COUNT( * ) * 22 FROM tab0
----
-66

skipif mysql # not compatible
query I rowsort label-8156
SELECT DISTINCT - COUNT ( * ) * 22 FROM tab0
----
-66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 15 * - col2 * + col0 * 85 * 65 col1 FROM tab0
----
-58426875
-72101250
-795848625

query II rowsort
SELECT col0, col0 + - col2 FROM tab2
----
46
23
64
24
75
17

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8159
SELECT ALL * FROM tab1 AS cor0 WHERE + col2 * - + CAST( NULL AS SIGNED ) - + + ( col2 ) + - col2 + - col1 BETWEEN NULL AND + col2 * 67
----

skipif mysql # not compatible
query III rowsort label-8159
SELECT ALL * FROM tab1 AS cor0 WHERE + col2 * - + CAST ( NULL AS INTEGER ) - + + ( col2 ) + - col2 + - col1 BETWEEN NULL AND + col2 * 67
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 66 = - col0 + - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 82 * 64 AS col0 FROM tab1 AS cor0
----
-5248
-5248
-5248

query I rowsort
SELECT 34 * + 38 AS col2 FROM tab2 AS cor0
----
1292
1292
1292

query I rowsort
SELECT col1 * + 0 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL + 13 * + col0 FROM tab1
----
1105
1183
663

query I rowsort
SELECT ALL col1 * - + ( - col2 ) FROM tab1
----
1344
295
3196

query I rowsort
SELECT ALL - col0 + - 45 - - 76 + + - 77 * - 26 AS col0 FROM tab0 AS cor0
----
1936
1946
2018

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 6 * - col1 / + col0 + - col1 + col2 * - col2 * - 0 + 0 * + + col1 + col1 + - 13 col0 FROM tab1 AS cor0 WHERE NULL BETWEEN col2 AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8168
SELECT DISTINCT - + COUNT( * ) * 92 AS col2 FROM tab1 cor0
----
-276

skipif mysql # not compatible
query I rowsort label-8168
SELECT DISTINCT - + COUNT ( * ) * 92 AS col2 FROM tab1 cor0
----
-276

query I rowsort
SELECT - + 89 FROM tab0 AS cor0 WHERE + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8170
SELECT DISTINCT + - SUM( ALL + col1 ) AS col2 FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-8170
SELECT DISTINCT + - SUM ( ALL + col1 ) AS col2 FROM tab0 AS cor0
----
-103

query I rowsort
SELECT DISTINCT - col1 * + 30 + + 72 FROM tab2 AS cor0
----
-1458
-1938
-2238

query IIIIII rowsort
SELECT * FROM tab0, tab0 cor0 WHERE NOT NULL IS NOT NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query I rowsort
SELECT 16 + - col1 FROM tab0
----
-5
-65
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 75 col2 FROM tab1
----
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8175
SELECT + - COUNT( * ) DIV + 34 AS col0 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-8175
SELECT + - COUNT ( * ) / + 34 AS col0 FROM tab1 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8176
SELECT DISTINCT + COUNT( * ) + + SUM( ALL - - col1 ) * - - COUNT( * ) FROM tab0 AS cor0
----
312

skipif mysql # not compatible
query I rowsort label-8176
SELECT DISTINCT + COUNT ( * ) + + SUM ( ALL - - col1 ) * - - COUNT ( * ) FROM tab0 AS cor0
----
312

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8177
SELECT ALL col0 + - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8177
SELECT ALL col0 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col2 * - col0 + - col0 AS col0 FROM tab1 AS cor0
----
-4947
-5100
-6279

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8179
SELECT DISTINCT col0 - + col0, CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
0
NULL

skipif mysql # not compatible
query II rowsort label-8179
SELECT DISTINCT col0 - + col0, CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
0
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8180
SELECT DISTINCT + CAST( - + COUNT( * ) AS SIGNED ) - MAX( + col0 ) AS col2 FROM tab1
----
-94

skipif mysql # not compatible
query I rowsort label-8180
SELECT DISTINCT + CAST ( - + COUNT ( * ) AS INTEGER ) - MAX ( + col0 ) AS col2 FROM tab1
----
-94

query I rowsort
SELECT ALL 10 - - + col0 FROM tab1
----
101
61
95

query I rowsort
SELECT - - col2 FROM tab0 AS cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8183
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col1 + + - CAST( col0 AS SIGNED ) <> NULL
----

skipif mysql # not compatible
query III rowsort label-8183
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col1 + + - CAST ( col0 AS INTEGER ) <> NULL
----

query I rowsort
SELECT + col0 FROM tab0 AS cor0 WHERE NOT - 18 IS NULL
----
15
87
97

query II rowsort
SELECT DISTINCT - ( + col2 ), + col0 FROM tab1 AS cor0
----
-59
85
-68
91
-96
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8186
SELECT - MIN( - col2 ) DIV + 52 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8186
SELECT - MIN ( - col2 ) / + 52 FROM tab1 AS cor0
----
1

query I rowsort
SELECT ALL + 74 * col0 - 10 FROM tab0 AS cor0
----
1100
6428
7168

query II rowsort
SELECT ALL + col0 AS col2, 86 AS col1 FROM tab0 AS cor0
----
15
86
87
86
97
86

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8189
SELECT * FROM tab0 AS cor0 WHERE NOT 32 >= + + CAST( - - 31 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8189
SELECT * FROM tab0 AS cor0 WHERE NOT 32 >= + + CAST ( - - 31 AS INTEGER )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8190
SELECT CAST( + COUNT( * ) AS SIGNED ) col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8190
SELECT CAST ( + COUNT ( * ) AS INTEGER ) col2 FROM tab1 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab2 WHERE - + 42 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8192
SELECT MAX( DISTINCT + col2 ) col0 FROM tab2
----
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8192
SELECT MAX ( DISTINCT + col2 ) col0 FROM tab2
----
58

query I rowsort
SELECT - col0 AS col1 FROM tab1 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT ALL + ( - 64 ), 23 AS col2 FROM tab0
----
-64
23
-64
23
-64
23

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 94 * + + 53 >= NULL
----

query I rowsort
SELECT col2 * col0 FROM tab2 WHERE NOT ( NOT NULL IS NULL )
----
1058
2560
4350

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - 78 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col2 + 55 AS col2 FROM tab1
----
114
123
151

query I rowsort
SELECT - + col0 + - + col0 AS col1 FROM tab0 AS cor0
----
-174
-194
-30

query I rowsort
SELECT + 38 + + col2 + + 97 AS col0 FROM tab1 AS cor0
----
194
203
231

query I rowsort
SELECT ALL - col1 + - - col0 + + ( + - col0 ) * 18 FROM tab0 AS cor0
----
-1500
-1650
-336

onlyif mysql # aggregate syntax: 
query I rowsort label-8202
SELECT - COUNT( DISTINCT - + col2 ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8202
SELECT - COUNT ( DISTINCT - + col2 ) AS col0 FROM tab2 AS cor0
----
-3

query II rowsort
SELECT - col0, + 3 * - col1 AS col2 FROM tab1 AS cor0
----
-51
-42
-85
-15
-91
-141

onlyif mysql # aggregate syntax: 
query I rowsort label-8204
SELECT DISTINCT - - COUNT( DISTINCT - ( - 19 ) ) + COUNT( * ) + 30 FROM tab0 cor0
----
34

skipif mysql # not compatible
query I rowsort label-8204
SELECT DISTINCT - - COUNT ( DISTINCT - ( - 19 ) ) + COUNT ( * ) + 30 FROM tab0 cor0
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8205
SELECT ALL * FROM tab1 AS cor0 WHERE - CAST( col1 AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8205
SELECT ALL * FROM tab1 AS cor0 WHERE - CAST ( col1 AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 49 < 18
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 4 NOT BETWEEN 83 AND - 93 * - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 64 FROM tab1 AS cor0 WHERE col1 > - ( + 70 ) * - col2
----

query I rowsort
SELECT DISTINCT + 48 + - - ( col2 ) AS col0 FROM tab0
----
147
58
95

onlyif mysql # aggregate syntax: 
query I rowsort label-8210
SELECT DISTINCT COUNT( - - col2 ) col1 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8210
SELECT DISTINCT COUNT ( - - col2 ) col1 FROM tab2
----
3

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 12 IS NOT NULL
----

query I rowsort
SELECT ALL col2 * + + col0 - - 68 FROM tab0
----
773
938
9671

onlyif mysql # aggregate syntax: 
query I rowsort label-8213
SELECT + 98 + COUNT( * ) + - 63 AS col0 FROM tab0 WHERE - ( - 95 ) - + 41 IS NOT NULL
----
38

skipif mysql # not compatible
query I rowsort label-8213
SELECT + 98 + COUNT ( * ) + - 63 AS col0 FROM tab0 WHERE - ( - 95 ) - + 41 IS NOT NULL
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8214
SELECT DISTINCT - MAX( ALL + col2 ) / + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8214
SELECT DISTINCT - MAX ( ALL + col2 ) / + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT + col2 - + - 72 + col2 + + col0 * + - 30 * - 31 FROM tab1
----
47694
79240
84838

query I rowsort
SELECT + 0 - + + col0 AS col1 FROM tab2
----
-46
-64
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8217
SELECT col2 - + - CAST( col0 AS SIGNED ) AS col0 FROM tab1
----
144
147
159

skipif mysql # not compatible
query I rowsort label-8217
SELECT col2 - + - CAST ( col0 AS INTEGER ) AS col0 FROM tab1
----
144
147
159

onlyif mysql # aggregate syntax: 
query I rowsort label-8218
SELECT ALL COUNT( + - col1 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8218
SELECT ALL COUNT ( + - col1 ) FROM tab2
----
3

query I rowsort
SELECT + col1 + + - col2 * + + 28 FROM tab1 AS cor0
----
-1647
-1857
-2674

query I rowsort
SELECT DISTINCT + - col1 * col1 + - 47 FROM tab0 cor0
----
-48
-488
-6608

query I rowsort
SELECT DISTINCT - 6 + 32 AS col1 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8222
SELECT - 59 col1, - COUNT( * ) * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE + col0 * + col0 - - 2 IN ( 65 / - col0 * - col2, + col1 )
----
-59
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8222
SELECT - 59 col1, - COUNT ( * ) * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE + col0 * + col0 - - 2 IN ( 65 / - col0 * - col2, + col1 )
----
-59
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8223
SELECT - COUNT( * ) FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-9

skipif mysql # not compatible
query I rowsort label-8223
SELECT - COUNT ( * ) FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8224
SELECT CAST( + 23 AS SIGNED ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2

skipif mysql # not compatible
query I rowsort label-8224
SELECT CAST ( + 23 AS INTEGER ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2

query II rowsort
SELECT col2 + + - 84 AS col0, - 64 FROM tab2 AS cor0 WHERE NOT NULL = NULL
----

query II rowsort
SELECT DISTINCT - - col1, col0 AS col0 FROM tab1 cor0
----
14
51
47
91
5
85

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8227
SELECT ALL + - CAST( NULL AS SIGNED ) AS col1, col0 AS col0 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-8227
SELECT ALL + - CAST ( NULL AS INTEGER ) AS col1, col0 AS col0 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

query I rowsort
SELECT + + ( + 66 ) AS col1 FROM tab1 AS cor0
----
66
66
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 6 * col2 col2 FROM tab2
----
138
240
348

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NOT NULL BETWEEN - 18 + + col1 AND + ( - + ( - + col2 ) ) + - col2 / 3 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8231
SELECT - col0 DIV 64 * - 22 * - + col0 AS col1 FROM tab1
----
-1870
-2002
0

skipif mysql # not compatible
query I rowsort label-8231
SELECT - col0 / 64 * - 22 * - + col0 AS col1 FROM tab1
----
-1870
-2002
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8232
SELECT - SUM( + - col1 ) AS col2 FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-8232
SELECT - SUM ( + - col1 ) AS col2 FROM tab0
----
103

onlyif mysql # DIV for integer division: 
query I rowsort label-8233
SELECT col2 DIV + 65 AS col1 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-8233
SELECT col2 / + 65 AS col1 FROM tab1
----
0
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8234
SELECT ALL - col1 DIV 64 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8234
SELECT ALL - col1 / 64 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL - col0 * 92 AS col0 FROM tab2
----
-4232
-5888
-6900

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN NULL AND + 77
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 43 - col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8238
SELECT ALL + + ( 85 ) + 69 + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) < NULL
----

skipif mysql # not compatible
query I rowsort label-8238
SELECT ALL + + ( 85 ) + 69 + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8239
SELECT DISTINCT - 23 + COUNT( * ) FROM tab2 AS cor0
----
-20

skipif mysql # not compatible
query I rowsort label-8239
SELECT DISTINCT - 23 + COUNT ( * ) FROM tab2 AS cor0
----
-20

query III rowsort
SELECT * FROM tab1 WHERE + 75 * - - col0 + + col2 * - 63 < col2
----
51
14
96

query I rowsort
SELECT col0 + + 29 * + col2 AS col2 FROM tab2 AS cor0
----
1224
1757
713

query I rowsort
SELECT DISTINCT + 14 + - + col2 AS col0 FROM tab1 AS cor0
----
-45
-54
-82

query I rowsort
SELECT DISTINCT - ( - 57 ) + + - col1 FROM tab0 AS cor0
----
-24
36
56

query I rowsort
SELECT + - col0 FROM tab1 cor0 WHERE NULL <> 22
----

query I rowsort
SELECT - 67 + col2 FROM tab2 AS cor0
----
-27
-44
-9

query I rowsort
SELECT + 4 + - col1 AS col2 FROM tab0 AS cor0
----
-17
-77
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8247
SELECT ALL MAX( DISTINCT - 92 ) * - - COUNT( * ) + - - ( - CAST( - + 86 AS SIGNED ) ) FROM tab1
----
-190

skipif mysql # not compatible
query I rowsort label-8247
SELECT ALL MAX ( DISTINCT - 92 ) * - - COUNT ( * ) + - - ( - CAST ( - + 86 AS INTEGER ) ) FROM tab1
----
-190

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 73 col2, + 32 FROM tab0
----
-73
32
-73
32
-73
32

query III rowsort
SELECT * FROM tab2 WHERE + + 8 + - col2 >= NULL
----

query I rowsort
SELECT ALL 68 * + col2 * - col2 - - + col0 FROM tab2
----
-108736
-228677
-35926

query II rowsort
SELECT DISTINCT col2 AS col0, 59 * + 46 FROM tab2
----
23
2714
40
2714
58
2714

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL > - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8253
SELECT + COUNT( * ) - + + 81 * ( - - MAX( ALL + col0 ) ) AS col0 FROM tab1 AS cor0
----
-7368

skipif mysql # not compatible
query I rowsort label-8253
SELECT + COUNT ( * ) - + + 81 * ( - - MAX ( ALL + col0 ) ) AS col0 FROM tab1 AS cor0
----
-7368

query I rowsort
SELECT ALL 70 * + col0 + - col1 + - - 32 AS col0 FROM tab1 AS cor0
----
3588
5977
6355

query I rowsort
SELECT ALL + col1 * + - col1 AS col2 FROM tab1 AS cor0
----
-196
-2209
-25

query I rowsort
SELECT DISTINCT - - 69 AS col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
69

query I rowsort
SELECT ALL ( col1 ) * + - col1 FROM tab1 AS cor0
----
-196
-2209
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-8258
SELECT DISTINCT - col1 DIV - - col0 FROM tab0 AS cor0
----
-5
0

skipif mysql # not compatible
query I rowsort label-8258
SELECT DISTINCT - col1 / - - col0 FROM tab0 AS cor0
----
-5
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8259
SELECT ALL COUNT( ALL + + col2 ) * COUNT( * ) FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-8259
SELECT ALL COUNT ( ALL + + col2 ) * COUNT ( * ) FROM tab0 AS cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8260
SELECT DISTINCT - CAST( + col0 AS SIGNED ) DIV - 14 AS col0 FROM tab0 AS cor0
----
1
6

skipif mysql # not compatible
query I rowsort label-8260
SELECT DISTINCT - CAST ( + col0 AS INTEGER ) / - 14 AS col0 FROM tab0 AS cor0
----
1
6

onlyif mysql # DIV for integer division: 
query I rowsort label-8261
SELECT + - col0 DIV - + col1 AS col0 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8261
SELECT + - col0 / - + col1 AS col0 FROM tab2 AS cor0
----
0
0
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8262
SELECT + ( COUNT( * ) ) DIV 3 AS col2 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8262
SELECT + ( COUNT ( * ) ) / 3 AS col2 FROM tab1 AS cor0
----
1

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + 38 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col1 * - col2 FROM tab0 AS cor0 WHERE NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8265
SELECT DISTINCT + MAX( + 37 ) FROM tab0
----
37

skipif mysql # not compatible
query I rowsort label-8265
SELECT DISTINCT + MAX ( + 37 ) FROM tab0
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8266
SELECT CAST( - + col0 AS SIGNED ) col1 FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8266
SELECT CAST ( - + col0 AS INTEGER ) col1 FROM tab1
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-8267
SELECT DISTINCT MAX( DISTINCT - - 70 ) col0 FROM tab0
----
70

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8267
SELECT DISTINCT MAX ( DISTINCT - - 70 ) col0 FROM tab0
----
70

query II rowsort
SELECT ALL - 5, col0 + - col1 AS col0 FROM tab1 AS cor0 WHERE 72 IS NULL
----

query I rowsort
SELECT DISTINCT - + 90 * - col2 + - col1 AS col1 FROM tab1 AS cor0
----
5305
6073
8626

onlyif mysql # aggregate syntax: 
query I rowsort label-8270
SELECT ALL - + 33 + - COUNT( * ) AS col2 FROM tab0 cor0
----
-36

skipif mysql # not compatible
query I rowsort label-8270
SELECT ALL - + 33 + - COUNT ( * ) AS col2 FROM tab0 cor0
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-8271
SELECT DISTINCT - SUM( col0 ) AS col1 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-8271
SELECT DISTINCT - SUM ( col0 ) AS col1 FROM tab2 AS cor0
----
-185

onlyif mysql # aggregate syntax: 
query I rowsort label-8272
SELECT ALL MIN( DISTINCT ( - - ( - 20 ) ) ) AS col0 FROM tab1 AS cor0
----
-20

skipif mysql # not compatible
query I rowsort label-8272
SELECT ALL MIN ( DISTINCT ( - - ( - 20 ) ) ) AS col0 FROM tab1 AS cor0
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-8273
SELECT - COUNT( ALL + - 33 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-8273
SELECT - COUNT ( ALL + - 33 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-9

query I rowsort
SELECT ALL 98 * - col0 + - col0 AS col2 FROM tab0
----
-1485
-8613
-9603

query II rowsort
SELECT - 27 AS col2, + col0 FROM tab0 cor0
----
-27
15
-27
87
-27
97

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 73 + - 75 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8277
SELECT MAX( DISTINCT 50 ) FROM tab2 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-8277
SELECT MAX ( DISTINCT 50 ) FROM tab2 AS cor0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-8278
SELECT DISTINCT + COUNT( * ) + 39 AS col0 FROM tab0 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-8278
SELECT DISTINCT + COUNT ( * ) + 39 AS col0 FROM tab0 AS cor0
----
42

query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8280
SELECT COUNT( * ) + + + CAST( - + COUNT( + - col1 ) AS SIGNED ) col2 FROM tab1 AS cor0 WHERE - col1 * col2 NOT BETWEEN NULL AND col1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8280
SELECT COUNT ( * ) + + + CAST ( - + COUNT ( + - col1 ) AS INTEGER ) col2 FROM tab1 AS cor0 WHERE - col1 * col2 NOT BETWEEN NULL AND col1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 col1 FROM tab1 AS cor0 WHERE + col0 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col2 * col0 * col2 * + col1 + + col0 / - 89 BETWEEN NULL AND - col1 - - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-8283
SELECT DISTINCT - 22 + - col1 DIV - 48 + + + col1 FROM tab1 cor0
----
-17
-8
25

skipif mysql # not compatible
query I rowsort label-8283
SELECT DISTINCT - 22 + - col1 / - 48 + + + col1 FROM tab1 cor0
----
-17
-8
25

onlyif mysql # aggregate syntax: 
query I rowsort label-8284
SELECT ALL COUNT( * ) + - + 93 AS col1 FROM tab0 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-8284
SELECT ALL COUNT ( * ) + - + 93 AS col1 FROM tab0 AS cor0
----
-90

query I rowsort
SELECT - 69 - ( + col0 ) AS col2 FROM tab2 AS cor0
----
-115
-133
-144

query I rowsort
SELECT DISTINCT - col0 * + col1 - + col1 FROM tab2 AS cor0
----
-2397
-5005
-5092

query III rowsort
SELECT ALL * FROM tab2 WHERE - col2 <> 15
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-8288
SELECT ALL + col0 DIV col1 - - ( + col1 ) AS col0 FROM tab2
----
51
68
77

skipif mysql # not compatible
query I rowsort label-8288
SELECT ALL + col0 / col1 - - ( + col1 ) AS col0 FROM tab2
----
51
68
77

query I rowsort
SELECT DISTINCT + + col2 AS col1 FROM tab0 WHERE NOT ( NOT - 71 IS NOT NULL )
----
10
47
99

onlyif mysql # aggregate syntax: 
query II rowsort label-8290
SELECT - COUNT( * ) + + 17 AS col2, 46 FROM tab1
----
14
46

skipif mysql # not compatible
query II rowsort label-8290
SELECT - COUNT ( * ) + + 17 AS col2, 46 FROM tab1
----
14
46

query I rowsort
SELECT ALL - ( col1 ) FROM tab0 WHERE + col2 + + col2 IS NOT NULL
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-8292
SELECT ALL + 71 * + COUNT( * ) AS col1 FROM tab2
----
213

skipif mysql # not compatible
query I rowsort label-8292
SELECT ALL + 71 * + COUNT ( * ) AS col1 FROM tab2
----
213

query I rowsort
SELECT + 93 + + col1 * col2 FROM tab1
----
1437
3289
388

query I rowsort
SELECT ALL + 66 * - + 43 - + 70 FROM tab0
----
-2908
-2908
-2908

onlyif mysql # DIV for integer division: 
query II rowsort label-8295
SELECT 41 DIV + - col1 AS col2, + col0 col2 FROM tab1 AS cor0
----
-2
51
-8
85
0
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8295
SELECT 41 / + - col1 AS col2, + col0 col2 FROM tab1 AS cor0
----
-2
51
-8
85
0
91

query I rowsort
SELECT ALL - + 28 FROM tab0 AS cor0
----
-28
-28
-28

onlyif mysql # aggregate syntax: 
query II rowsort label-8297
SELECT DISTINCT + COUNT( * ) * - COUNT( * ) AS col0, 85 col2 FROM tab0 AS cor0
----
-9
85

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8297
SELECT DISTINCT + COUNT ( * ) * - COUNT ( * ) AS col0, 85 col2 FROM tab0 AS cor0
----
-9
85

query II rowsort
SELECT - col2 AS col0, - 51 FROM tab1
----
-59
-51
-68
-51
-96
-51

query I rowsort
SELECT col0 * - 4 AS col0 FROM tab0
----
-348
-388
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-8300
SELECT + + 58 * - + SUM( - col2 ) FROM tab1 AS cor0 WHERE NOT - ( + - col1 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8300
SELECT + + 58 * - + SUM ( - col2 ) FROM tab1 AS cor0 WHERE NOT - ( + - col1 ) IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8301
SELECT + COUNT( + col1 ) FROM tab1 AS cor0 WHERE NOT + col0 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-8301
SELECT + COUNT ( + col1 ) FROM tab1 AS cor0 WHERE NOT + col0 IS NULL
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8302
SELECT DISTINCT - COUNT( * ) DIV + + MIN( col2 ) AS col1 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-8302
SELECT DISTINCT - COUNT ( * ) / + + MIN ( col2 ) AS col1 FROM tab1 cor0
----
0

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT 90 BETWEEN NULL AND - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col1 * + col0 + - - col2 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - col0 * - ( col0 ) FROM tab2 AS cor0 WHERE NOT - col0 IS NULL
----
2116
4096
5625

query I rowsort
SELECT col0 * + 77 FROM tab2
----
3542
4928
5775

onlyif mysql # DIV for integer division: 
query I rowsort label-8307
SELECT + col2 DIV + + col1 FROM tab0
----
0
0
99

skipif mysql # not compatible
query I rowsort label-8307
SELECT + col2 / + + col1 FROM tab0
----
0
0
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8308
SELECT ALL - MIN( ALL + 44 ) * 53 FROM tab0
----
-2332

skipif mysql # not compatible
query I rowsort label-8308
SELECT ALL - MIN ( ALL + 44 ) * 53 FROM tab0
----
-2332

query I rowsort
SELECT DISTINCT col1 * 99 FROM tab0
----
2079
8019
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8310
SELECT ALL COUNT( * ) * + + 26 * + 65 AS col1 FROM tab0
----
5070

skipif mysql # not compatible
query I rowsort label-8310
SELECT ALL COUNT ( * ) * + + 26 * + 65 AS col1 FROM tab0
----
5070

onlyif mysql # DIV for integer division: 
query I rowsort label-8311
SELECT col0 + - col0 DIV - col2 FROM tab2
----
48
65
76

skipif mysql # not compatible
query I rowsort label-8311
SELECT col0 + - col0 / - col2 FROM tab2
----
48
65
76

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 95 IS NULL
----

query I rowsort
SELECT + col0 AS col0 FROM tab0 AS cor0 WHERE col0 - - 66 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL BETWEEN ( NULL ) AND NULL
----

query II rowsort
SELECT ALL col2 AS col0, + col2 FROM tab2 AS cor0 WHERE NOT + 59 * + col2 IS NULL
----
23
23
40
40
58
58

query I rowsort
SELECT DISTINCT - ( - 62 ) FROM tab2 AS cor0
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8317
SELECT - CAST( + - col0 AS SIGNED ) AS col1 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-8317
SELECT - CAST ( + - col0 AS INTEGER ) AS col1 FROM tab1
----
51
85
91

query I rowsort
SELECT ALL col1 * 44 AS col1 FROM tab1
----
2068
220
616

query I rowsort
SELECT DISTINCT - col1 + - 42 FROM tab2 AS cor0
----
-109
-119
-93

query I rowsort
SELECT - 56 + 94 AS col2 FROM tab0 AS cor0
----
38
38
38

query I rowsort
SELECT DISTINCT 28 - 82 AS col1 FROM tab1 AS cor0
----
-54

query I rowsort
SELECT DISTINCT 31 - - col2 - - 65 + - col2 FROM tab1 AS cor0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8323
SELECT - COUNT( * ) + COUNT( * ) - + 11 AS col1 FROM tab0 AS cor0
----
-11

skipif mysql # not compatible
query I rowsort label-8323
SELECT - COUNT ( * ) + COUNT ( * ) - + 11 AS col1 FROM tab0 AS cor0
----
-11

query I rowsort
SELECT DISTINCT col0 * col0 * col2 - 68 AS col2 FROM tab2
----
163772
326182
48600

query I rowsort
SELECT ALL + 93 + - + col0 AS col1 FROM tab0
----
-4
6
78

query III rowsort
SELECT ALL * FROM tab2 WHERE - col0 NOT IN ( - - 64 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8327
SELECT + - COUNT( * ) FROM tab0 WHERE NOT NULL = col1 + - 1
----
0

skipif mysql # not compatible
query I rowsort label-8327
SELECT + - COUNT ( * ) FROM tab0 WHERE NOT NULL = col1 + - 1
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL IN ( - 86 * - 40, - col0 - + ( + + col0 ), col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8329
SELECT - - 36 * COUNT( * ), - COUNT( + - 56 ) * - COUNT( * ) * + MAX( ALL + col1 ) AS col2 FROM tab0 WHERE NOT + - col0 * + + CAST( NULL AS SIGNED ) * col2 / col0 * - + col1 IS NOT NULL
----
108
729

skipif mysql # not compatible
query II rowsort label-8329
SELECT - - 36 * COUNT ( * ), - COUNT ( + - 56 ) * - COUNT ( * ) * + MAX ( ALL + col1 ) AS col2 FROM tab0 WHERE NOT + - col0 * + + CAST ( NULL AS INTEGER ) * col2 / col0 * - + col1 IS NOT NULL
----
108
729

query II rowsort
SELECT col0, col1 AS col1 FROM tab1
----
51
14
85
5
91
47

query I rowsort
SELECT + + 30 AS col2 FROM tab1 AS cor0
----
30
30
30

onlyif mysql # aggregate syntax: 
query I rowsort label-8332
SELECT + - COUNT( * ) * COUNT( * ) FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-8332
SELECT + - COUNT ( * ) * COUNT ( * ) FROM tab0 AS cor0
----
-9

query II rowsort
SELECT - + col1, + 12 AS col2 FROM tab2 AS cor0
----
-51
12
-67
12
-77
12

query II rowsort
SELECT col2, 56 * - 46 * - + col1 AS col0 FROM tab1 cor0
----
59
12880
68
121072
96
36064

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * + + col1 col1 FROM tab1 AS cor0 WHERE NOT - 2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8336
SELECT ALL + 16 * 59 + COUNT( + - col0 ) AS col1 FROM tab2 AS cor0
----
947

skipif mysql # not compatible
query I rowsort label-8336
SELECT ALL + 16 * 59 + COUNT ( + - col0 ) AS col1 FROM tab2 AS cor0
----
947

query I rowsort
SELECT + + 87 AS col0 FROM tab1 AS cor0
----
87
87
87

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - 40 * col1 * col2 >= + - ( - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + ( + - 71 ) FROM tab0 AS cor0
----
-71

query I rowsort
SELECT ALL - 92 * + + col0 AS col1 FROM tab0 AS cor0
----
-1380
-8004
-8924

query II rowsort
SELECT ALL + 60 AS col2, 95 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8342
SELECT col1 / ( - CAST( NULL AS SIGNED ) ) col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8342
SELECT col1 / ( - CAST ( NULL AS INTEGER ) ) col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ( + col1 ) * - - col0 AS col1 FROM tab0
----
1215
1827
97

onlyif mysql # DIV for integer division: 
query I rowsort label-8344
SELECT - col0 DIV + col0 AS col1 FROM tab1 WHERE col0 IS NOT NULL
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8344
SELECT - col0 / + col0 AS col1 FROM tab1 WHERE col0 IS NOT NULL
----
-1
-1
-1

query II rowsort
SELECT DISTINCT col0, col2 AS col0 FROM tab1
----
51
96
85
59
91
68

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col1 * + 67 + + 14 + - - ( + + col1 ) IS NOT NULL
----

query I rowsort
SELECT 38 * - 38 * - - 50 AS col1 FROM tab0
----
-72200
-72200
-72200

onlyif mysql # aggregate syntax: 
query II rowsort label-8348
SELECT - 21 AS col1, COUNT( * ) col0 FROM tab2
----
-21
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8348
SELECT - 21 AS col1, COUNT ( * ) col0 FROM tab2
----
-21
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8349
SELECT ALL SUM( + col0 ) AS col2 FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-8349
SELECT ALL SUM ( + col0 ) AS col2 FROM tab2
----
185

query I rowsort
SELECT ( 20 ) * - + col0 - 30 + col0 + col1 + - 92 * - col1 AS col1 FROM tab1
----
-1180
2612
303

onlyif mysql # aggregate syntax: 
query I rowsort label-8351
SELECT ALL + 28 + - + SUM( DISTINCT - - 43 ) AS col0 FROM tab1 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-8351
SELECT ALL + 28 + - + SUM ( DISTINCT - - 43 ) AS col0 FROM tab1 AS cor0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-8352
SELECT DISTINCT 7 * - COUNT( * ) AS col0 FROM tab0 WHERE + col1 IS NOT NULL
----
-21

skipif mysql # not compatible
query I rowsort label-8352
SELECT DISTINCT 7 * - COUNT ( * ) AS col0 FROM tab0 WHERE + col1 IS NOT NULL
----
-21

query I rowsort
SELECT ALL - col0 * 61 + col1 * - col1 AS col1 FROM tab0
----
-5748
-5918
-7476

query I rowsort
SELECT col1 * 86 FROM tab0
----
1806
6966
86

onlyif mysql # aggregate syntax: 
query I rowsort label-8355
SELECT DISTINCT + MIN( + 10 ) AS col1 FROM tab2
----
10

skipif mysql # not compatible
query I rowsort label-8355
SELECT DISTINCT + MIN ( + 10 ) AS col1 FROM tab2
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-8356
SELECT SUM( DISTINCT - col2 ) - + COUNT( * ) FROM tab1
----
-226

skipif mysql # not compatible
query I rowsort label-8356
SELECT SUM ( DISTINCT - col2 ) - + COUNT ( * ) FROM tab1
----
-226

query I rowsort
SELECT ALL - col0 FROM tab1 WHERE NOT 51 <= col1
----
-51
-85
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 51 col0 FROM tab0 WHERE NOT + ( + 22 ) + col2 IS NULL
----
51
51
51

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL <= 68
----

query I rowsort
SELECT ALL + col1 + - col0 AS col2 FROM tab1 WHERE NOT NULL NOT BETWEEN ( 37 / col2 ) AND ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8361
SELECT + COUNT( * ) FROM tab0 WHERE + col0 * col0 - CAST( + col1 AS SIGNED ) <> - 5 - - col2
----
3

skipif mysql # not compatible
query I rowsort label-8361
SELECT + COUNT ( * ) FROM tab0 WHERE + col0 * col0 - CAST ( + col1 AS INTEGER ) <> - 5 - - col2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8362
SELECT ALL col2 * - CAST( + 74 AS SIGNED ) AS col1 FROM tab0 WHERE NULL = - 64
----

skipif mysql # not compatible
query I rowsort label-8362
SELECT ALL col2 * - CAST ( + 74 AS INTEGER ) AS col1 FROM tab0 WHERE NULL = - 64
----

query I rowsort
SELECT ALL + col1 FROM tab2 WHERE ( NULL ) = ( + ( 84 ) )
----

query I rowsort
SELECT ALL 2 * col2 + 22 AS col0 FROM tab2
----
102
138
68

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN NULL AND ( col0 ) + col2
----

query I rowsort
SELECT DISTINCT + 93 + ( - col0 + - col0 ) * col0 FROM tab2
----
-11157
-4139
-8099

onlyif mysql # aggregate syntax: 
query I rowsort label-8367
SELECT + SUM( col0 ) FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-8367
SELECT + SUM ( col0 ) FROM tab0
----
199

query I rowsort
SELECT DISTINCT - col0 FROM tab1 WHERE NOT col0 <> NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 * col0 + col0 > NULL
----

query I rowsort
SELECT - 20 * 38 FROM tab0 AS cor0
----
-760
-760
-760

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - col2 ) - col2 >= ( col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-8372
SELECT ALL + 75 DIV col2 FROM tab0 AS cor0
----
0
1
7

skipif mysql # not compatible
query I rowsort label-8372
SELECT ALL + 75 / col2 FROM tab0 AS cor0
----
0
1
7

onlyif mysql # aggregate syntax: 
query I rowsort label-8373
SELECT DISTINCT COUNT( DISTINCT + 16 ) AS col2 FROM tab0 WHERE - col2 + + 62 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8373
SELECT DISTINCT COUNT ( DISTINCT + 16 ) AS col2 FROM tab0 WHERE - col2 + + 62 IS NULL
----
0

query I rowsort
SELECT - col1 * + 21 AS col1 FROM tab0
----
-1701
-21
-441

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8375
SELECT ALL * FROM tab0 WHERE NOT CAST( col1 AS SIGNED ) + + col0 * col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8375
SELECT ALL * FROM tab0 WHERE NOT CAST ( col1 AS INTEGER ) + + col0 * col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-8376
SELECT ALL - 83 + col0 DIV 73 FROM tab1 AS cor0
----
-82
-82
-83

skipif mysql # not compatible
query I rowsort label-8376
SELECT ALL - 83 + col0 / 73 FROM tab1 AS cor0
----
-82
-82
-83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8377
SELECT + - AVG ( CAST( NULL AS SIGNED ) ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8377
SELECT + - AVG ( CAST ( NULL AS INTEGER ) ) FROM tab1 cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - col1 ) = col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8379
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( CAST( NULL AS SIGNED ) * - col2 ) >= - ( + 76 )
----

skipif mysql # not compatible
query III rowsort label-8379
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( CAST ( NULL AS INTEGER ) * - col2 ) >= - ( + 76 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8380
SELECT ALL - 24 * MIN( col0 + - col0 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8380
SELECT ALL - 24 * MIN ( col0 + - col0 ) FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8381
SELECT MIN( 86 ) col0 FROM tab1 AS cor0
----
86

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8381
SELECT MIN ( 86 ) col0 FROM tab1 AS cor0
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8382
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN ( NULL ) AND - CAST( NULL AS SIGNED ) * - col0
----

skipif mysql # not compatible
query III rowsort label-8382
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN ( NULL ) AND - CAST ( NULL AS INTEGER ) * - col0
----

query I rowsort
SELECT DISTINCT + col2 * + ( - col1 + col2 ) + - col0 * - 41 FROM tab2 cor0
----
1144
1242
2553

query I rowsort
SELECT - + 5 + col0 FROM tab1 AS cor0
----
46
80
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - AVG ( col2 ) + 12 col1 FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND ( NULL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8386
SELECT - col0 * CAST( + col0 AS SIGNED ) + 3 DIV - 55 AS col1 FROM tab1
----
-2601
-7225
-8281

skipif mysql # not compatible
query I rowsort label-8386
SELECT - col0 * CAST ( + col0 AS INTEGER ) + 3 / - 55 AS col1 FROM tab1
----
-2601
-7225
-8281

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + col0 * 27 col2 FROM tab0
----
2359
2718
452

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col1 * + 49 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 55 + - 60 FROM tab2 WHERE NOT col2 / + col0 NOT BETWEEN NULL AND col2
----

query I rowsort
SELECT col1 * 90 + col0 FROM tab2
----
4636
6105
6994

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8391
SELECT + 35 * - COUNT( * ) * - SUM( col2 * CAST( col2 AS SIGNED ) ) + ( - SUM( DISTINCT - col0 ) ) AS col2 FROM tab2
----
576950

skipif mysql # not compatible
query I rowsort label-8391
SELECT + 35 * - COUNT ( * ) * - SUM ( col2 * CAST ( col2 AS INTEGER ) ) + ( - SUM ( DISTINCT - col0 ) ) AS col2 FROM tab2
----
576950

onlyif mysql # DIV for integer division: 
query I rowsort label-8392
SELECT ALL - col2 * 16 DIV + 67 + + 75 AS col1 FROM tab0
----
52
64
73

skipif mysql # not compatible
query I rowsort label-8392
SELECT ALL - col2 * 16 / + 67 + + 75 AS col1 FROM tab0
----
52
64
73

onlyif mysql # aggregate syntax: 
query I rowsort label-8393
SELECT + + COUNT( DISTINCT + 0 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8393
SELECT + + COUNT ( DISTINCT + 0 ) FROM tab0 AS cor0
----
1

query I rowsort
SELECT DISTINCT + col0 * - + col1 * col2 - - col1 FROM tab0 AS cor0
----
-18249
-57024
-9602

query I rowsort
SELECT + + ( - + col2 ) AS col0 FROM tab1 AS cor0
----
-59
-68
-96

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 * col2 NOT BETWEEN col2 * col2 AND 57
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col1 - - - col1 AS col0 FROM tab2
----
-102
-134
-154

onlyif mysql # aggregate syntax: 
query I rowsort label-8398
SELECT ALL 10 + COUNT( * ) col2 FROM tab2
----
13

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8398
SELECT ALL 10 + COUNT ( * ) col2 FROM tab2
----
13

query I rowsort
SELECT DISTINCT + ( - 22 ) FROM tab0
----
-22

query III rowsort
SELECT * FROM tab1 WHERE ( + 6 + + 68 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8401
SELECT DISTINCT - CAST( 45 AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-45

skipif mysql # not compatible
query I rowsort label-8401
SELECT DISTINCT - CAST ( 45 AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-45

query I rowsort
SELECT + ( + - 36 ) + - - 8 + - 89 AS col0 FROM tab1 AS cor0
----
-117
-117
-117

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL IN ( - col1 )
----

query II rowsort
SELECT ALL + col2, col2 FROM tab0 cor0
----
10
10
47
47
99
99

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( + 30 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8406
SELECT DISTINCT - 70 * - + SUM( + + col2 ) * - 55 AS col0 FROM tab2 AS cor0
----
-465850

skipif mysql # not compatible
query I rowsort label-8406
SELECT DISTINCT - 70 * - + SUM ( + + col2 ) * - 55 AS col0 FROM tab2 AS cor0
----
-465850

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL IN ( + col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8408
SELECT DISTINCT + col0 DIV + + col2 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-8408
SELECT DISTINCT + col0 / + + col2 FROM tab1 AS cor0
----
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8409
SELECT + ( - - 72 ) * - col2 DIV col2 AS col2 FROM tab0 AS cor0
----
-72
-72
-72

skipif mysql # not compatible
query I rowsort label-8409
SELECT + ( - - 72 ) * - col2 / col2 AS col2 FROM tab0 AS cor0
----
-72
-72
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8410
SELECT - CAST( + - col2 AS SIGNED ) FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-8410
SELECT - CAST ( + - col2 AS INTEGER ) FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT ALL + 16 FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( + 27 * - col1 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( - col1 + + - 26 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8413
SELECT DISTINCT SUM( - + col1 ) AS col1, 74 FROM tab1
----
-66
74

skipif mysql # not compatible
query II rowsort label-8413
SELECT DISTINCT SUM ( - + col1 ) AS col1, 74 FROM tab1
----
-66
74

query II rowsort
SELECT DISTINCT + 9 * - col2 AS col1, - ( 31 ) FROM tab2
----
-207
-31
-360
-31
-522
-31

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8415
SELECT DISTINCT * FROM tab2 WHERE + - col1 BETWEEN NULL AND - - CAST( - 46 AS SIGNED ) * col2
----

skipif mysql # not compatible
query III rowsort label-8415
SELECT DISTINCT * FROM tab2 WHERE + - col1 BETWEEN NULL AND - - CAST ( - 46 AS INTEGER ) * col2
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col0 = + 7 * - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query II rowsort label-8417
SELECT ALL + 16 DIV col2, 84 AS col1 FROM tab2 cor0
----
0
84
0
84
0
84

skipif mysql # not compatible
query II rowsort label-8417
SELECT ALL + 16 / col2, 84 AS col1 FROM tab2 cor0
----
0
84
0
84
0
84

onlyif mysql # DIV for integer division: 
query I rowsort label-8418
SELECT ALL + 87 DIV col1 + - col1 FROM tab1 AS cor0
----
-46
-8
12

skipif mysql # not compatible
query I rowsort label-8418
SELECT ALL + 87 / col1 + - col1 FROM tab1 AS cor0
----
-46
-8
12

query I rowsort
SELECT - 96 + + 28 FROM tab1 AS cor0 WHERE NOT - col1 * - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8420
SELECT DISTINCT - + COUNT( * ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-8420
SELECT DISTINCT - + COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-9

query I rowsort
SELECT + - 59 AS col2 FROM tab1 WHERE NOT 59 IS NOT NULL
----

query I rowsort
SELECT ALL + 3 FROM tab2 WHERE ( - 84 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8423
SELECT ALL + COUNT( ALL - 80 ) col0 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8423
SELECT ALL + COUNT ( ALL - 80 ) col0 FROM tab0
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col1 - + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL IS NOT NULL OR NOT ( + 89 ) = NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8426
SELECT DISTINCT 75 + COUNT( * ) + - 94 FROM tab1 AS cor0
----
-16

skipif mysql # not compatible
query I rowsort label-8426
SELECT DISTINCT 75 + COUNT ( * ) + - 94 FROM tab1 AS cor0
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-8427
SELECT SUM( - - 38 ) AS col2 FROM tab0 AS cor0
----
114

skipif mysql # not compatible
query I rowsort label-8427
SELECT SUM ( - - 38 ) AS col2 FROM tab0 AS cor0
----
114

query I rowsort
SELECT DISTINCT - ( - - col1 ) + - ( + col2 ) FROM tab0 AS cor0
----
-100
-128
-31

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 / - 16 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-8430
SELECT ( + 11 ) DIV - col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8430
SELECT ( + 11 ) / - col0 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab2 WHERE NOT - + col0 * - col1 IS NULL
----
23
40
58

query I rowsort
SELECT 39 AS col0 FROM tab1 WHERE ( 38 + - - col1 NOT BETWEEN + 23 AND NULL )
----

query I rowsort
SELECT - col2 - - col0 + + col2 FROM tab0
----
15
87
97

onlyif mysql # DIV for integer division: 
query I rowsort label-8434
SELECT col1 - + - col0 + + col0 + + col1 + col0 DIV 20 * col2 FROM tab2
----
240
402
458

skipif mysql # not compatible
query I rowsort label-8434
SELECT col1 - + - col0 + + col0 + + col1 + col0 / 20 * col2 FROM tab2
----
240
402
458

query I rowsort
SELECT DISTINCT - + col1 * + + 29 * - ( 13 ) + + 1 * col2 FROM tab1 WHERE NOT NULL = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + col1 col2 FROM tab0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8437
SELECT ALL CAST( NULL AS SIGNED ) FROM tab0 cor0 WHERE + 43 IN ( col2 )
----

skipif mysql # not compatible
query I rowsort label-8437
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab0 cor0 WHERE + 43 IN ( col2 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8438
SELECT ALL COUNT( * ), - 67 - + 42 AS col0 FROM tab1 AS cor0
----
3
-109

skipif mysql # not compatible
query II rowsort label-8438
SELECT ALL COUNT ( * ), - 67 - + 42 AS col0 FROM tab1 AS cor0
----
3
-109

query I rowsort
SELECT DISTINCT 26 * - ( col1 ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT col2 * - + col2 * col0 FROM tab1 AS cor0 WHERE ( + col1 ) > NULL
----

query I rowsort
SELECT + 33 + - col2 FROM tab0 AS cor0
----
-14
-66
23

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL IS NULL ) OR ( + col0 * + 37 ) <= NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col2 - col2 AS col1 FROM tab0 AS cor0 WHERE - 88 - + col1 * - 59 IN ( 37 )
----

query II rowsort
SELECT + - col2, col1 FROM tab1 AS cor0
----
-59
5
-68
47
-96
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8445
SELECT ALL 68 + + CAST( NULL AS SIGNED ) * - col1 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8445
SELECT ALL 68 + + CAST ( NULL AS INTEGER ) * - col1 AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8446
SELECT - AVG ( ( - CAST( NULL AS SIGNED ) ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8446
SELECT - AVG ( ( - CAST ( NULL AS INTEGER ) ) ) FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8447
SELECT CAST( - 70 AS SIGNED ) FROM tab0
----
-70
-70
-70

skipif mysql # not compatible
query I rowsort label-8447
SELECT CAST ( - 70 AS INTEGER ) FROM tab0
----
-70
-70
-70

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col1 * + col0 * + 39 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 25 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL IS NOT NULL )
----
25

query I rowsort
SELECT DISTINCT - - col2 * - 5 AS col1 FROM tab1 AS cor0
----
-295
-340
-480

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8451
SELECT DISTINCT - + SUM( DISTINCT + col0 ) DIV + COUNT( + 40 ) FROM tab0 cor0
----
-66

skipif mysql # not compatible
query I rowsort label-8451
SELECT DISTINCT - + SUM ( DISTINCT + col0 ) / + COUNT ( + 40 ) FROM tab0 cor0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-8452
SELECT DISTINCT MAX( 55 ) * 82 + 29 FROM tab2 AS cor0 WHERE - col0 = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8452
SELECT DISTINCT MAX ( 55 ) * 82 + 29 FROM tab2 AS cor0 WHERE - col0 = NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8453
SELECT DISTINCT - + CAST( - COUNT( col2 ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8453
SELECT DISTINCT - + CAST ( - COUNT ( col2 ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8454
SELECT - COUNT( DISTINCT 14 ) AS col2 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-8454
SELECT - COUNT ( DISTINCT 14 ) AS col2 FROM tab2
----
-1

query I rowsort
SELECT 52 * + + col1 FROM tab2
----
2652
3484
4004

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8456
SELECT - COUNT( CAST( + + col0 AS DECIMAL ) ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-8456
SELECT - COUNT ( CAST ( + + col0 AS REAL ) ) AS col0 FROM tab0
----
-3

query I rowsort
SELECT DISTINCT + col0 * - + 45 AS col0 FROM tab1
----
-2295
-3825
-4095

onlyif mysql # aggregate syntax: 
query I rowsort label-8458
SELECT ALL COUNT( * ) * - + 11 AS col2 FROM tab1
----
-33

skipif mysql # not compatible
query I rowsort label-8458
SELECT ALL COUNT ( * ) * - + 11 AS col2 FROM tab1
----
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-8459
SELECT COUNT( * ) AS col2, ( - + 9 ) * - ( - MAX( + 99 ) ) * MAX( + + 76 ) + + 57 FROM tab1
----
3
-67659

skipif mysql # not compatible
query II rowsort label-8459
SELECT COUNT ( * ) AS col2, ( - + 9 ) * - ( - MAX ( + 99 ) ) * MAX ( + + 76 ) + + 57 FROM tab1
----
3
-67659

onlyif mysql # aggregate syntax: 
query I rowsort label-8460
SELECT ALL + + 38 * + COUNT( * ) AS col2 FROM tab2 AS cor0
----
114

skipif mysql # not compatible
query I rowsort label-8460
SELECT ALL + + 38 * + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
114

query I rowsort
SELECT 80 * + col1 FROM tab0 AS cor0 WHERE NOT 44 IS NULL
----
1680
6480
80

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) > + col0
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 IN ( - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + 71 / col2 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8465
SELECT DISTINCT MIN( ALL + col1 ) AS col2 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-8465
SELECT DISTINCT MIN ( ALL + col1 ) AS col2 FROM tab0
----
1

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT NULL IS NOT NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

onlyif mysql # aggregate syntax: 
query I rowsort label-8467
SELECT ALL - COUNT( * ) AS col2 FROM tab2 WHERE ( NOT NULL <> ( NULL ) )
----
0

skipif mysql # not compatible
query I rowsort label-8467
SELECT ALL - COUNT ( * ) AS col2 FROM tab2 WHERE ( NOT NULL <> ( NULL ) )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8468
SELECT ALL + CAST( + 80 AS SIGNED ) * - col0 AS col1 FROM tab2 WHERE ( 10 > ( + 51 ) )
----

skipif mysql # not compatible
query I rowsort label-8468
SELECT ALL + CAST ( + 80 AS INTEGER ) * - col0 AS col1 FROM tab2 WHERE ( 10 > ( + 51 ) )
----

query I rowsort
SELECT 7 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

query I rowsort
SELECT - 4 FROM tab2 AS cor0 WHERE - 94 IS NULL
----

query I rowsort
SELECT - 6 * - ( + 87 ) + col1 FROM tab0 cor0
----
523
543
603

query II rowsort
SELECT col1, 73 - - col1 + - 4 FROM tab1 cor0 WHERE NULL IS NULL
----
14
83
47
116
5
74

query I rowsort
SELECT + col1 + + 26 FROM tab1 cor0
----
31
40
73

query I rowsort
SELECT DISTINCT - 66 + - col1 FROM tab1 AS cor0
----
-113
-71
-80

query I rowsort
SELECT - col2 + - 27 AS col0 FROM tab1 AS cor0
----
-123
-86
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-8476
SELECT DISTINCT - ( - COUNT( * ) ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8476
SELECT DISTINCT - ( - COUNT ( * ) ) AS col1 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8477
SELECT + CAST( COUNT( * ) AS SIGNED ) col2 FROM tab0 WHERE col1 IS NOT NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8477
SELECT + CAST ( COUNT ( * ) AS INTEGER ) col2 FROM tab0 WHERE col1 IS NOT NULL
----
3

query I rowsort
SELECT DISTINCT 32 - + - col2 + - + col1 + + - col2 AS col2 FROM tab2
----
-19
-35
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-8479
SELECT + COUNT( * ) * + - 42 FROM tab2
----
-126

skipif mysql # not compatible
query I rowsort label-8479
SELECT + COUNT ( * ) * + - 42 FROM tab2
----
-126

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8480
SELECT + + COUNT( - CAST( NULL AS SIGNED ) ) FROM tab0 WHERE - - 35 IN ( col2, col2 )
----
0

skipif mysql # not compatible
query I rowsort label-8480
SELECT + + COUNT ( - CAST ( NULL AS INTEGER ) ) FROM tab0 WHERE - - 35 IN ( col2, col2 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8481
SELECT ALL + col1 / + + col1 * 51 / + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8481
SELECT ALL + col1 / + + col1 * 51 / + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 AS col0 FROM tab0 WHERE + col2 IS NOT NULL
----
15
87
97

query I rowsort
SELECT DISTINCT + 97 + - - col0 FROM tab1
----
148
182
188

query I rowsort
SELECT DISTINCT + 75 * - col2 + col2 + + col1 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN + + col2 AND - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8485
SELECT DISTINCT + COUNT( * ) + + + COUNT( * ) + + + 76 AS col2 FROM tab2 AS cor0
----
82

skipif mysql # not compatible
query I rowsort label-8485
SELECT DISTINCT + COUNT ( * ) + + + COUNT ( * ) + + + 76 AS col2 FROM tab2 AS cor0
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8486
SELECT + col1 / CAST( NULL AS SIGNED ) / 41 / + 22 - - col1 - + - col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8486
SELECT + col1 / CAST ( NULL AS INTEGER ) / 41 / + 22 - - col1 - + - col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL - 86, col0 * + - col1 * - + 20 AS col2 FROM tab0
----
-86
1940
-86
24300
-86
36540

query I rowsort
SELECT DISTINCT + + col1 FROM tab2 AS cor0 WHERE NOT 52 - - col1 / - 74 * col1 IS NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8489
SELECT + - COUNT( * ) * SUM( 18 ) AS col1 FROM tab2 AS cor0
----
-162

skipif mysql # not compatible
query I rowsort label-8489
SELECT + - COUNT ( * ) * SUM ( 18 ) AS col1 FROM tab2 AS cor0
----
-162

query I rowsort
SELECT ALL + - 4 * - + 79 FROM tab2 AS cor0
----
316
316
316

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8491
SELECT - CAST( - col0 AS SIGNED ) * - - col2 + + + 89 + 81 DIV - col0 FROM tab1 AS cor0
----
4984
5104
6277

skipif mysql # not compatible
query I rowsort label-8491
SELECT - CAST ( - col0 AS INTEGER ) * - - col2 + + + 89 + 81 / - col0 FROM tab1 AS cor0
----
4984
5104
6277

query I rowsort
SELECT ALL + 3 + + ( col0 ) FROM tab1 AS cor0 WHERE NOT col1 + - col0 + + 99 IS NOT NULL
----

query II rowsort
SELECT ALL col2, col2 FROM tab1 AS cor0
----
59
59
68
68
96
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8494
SELECT ALL COUNT( ALL + col0 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8494
SELECT ALL COUNT ( ALL + col0 ) AS col1 FROM tab0 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col2 > + col0
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 + - col2 / + - col2 * col2 <= + - 11
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 60 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND - col0
----

query II rowsort
SELECT + ( col0 ) AS col2, + col0 AS col2 FROM tab2
----
46
46
64
64
75
75

query I rowsort
SELECT - 21 * col0 + + col2 AS col2 FROM tab1 WHERE NOT + col1 NOT BETWEEN - + col1 + - col2 + - 39 AND ( 42 + - - ( - ( + - col1 ) ) )
----
-1726
-1843
-975

onlyif mysql # aggregate syntax: 
query I rowsort label-8500
SELECT MIN( DISTINCT 63 ) FROM tab1
----
63

skipif mysql # not compatible
query I rowsort label-8500
SELECT MIN ( DISTINCT 63 ) FROM tab1
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8501
SELECT DISTINCT + CAST( - SUM( DISTINCT + 12 ) AS SIGNED ) FROM tab1 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-8501
SELECT DISTINCT + CAST ( - SUM ( DISTINCT + 12 ) AS INTEGER ) FROM tab1 AS cor0
----
-12

query I rowsort
SELECT - col0 * + 82 FROM tab2 AS cor0
----
-3772
-5248
-6150

query I rowsort
SELECT 97 * + 43 AS col2 FROM tab0 AS cor0
----
4171
4171
4171

onlyif mysql # aggregate syntax: 
query I rowsort label-8504
SELECT ALL 84 * + SUM( + col2 ) AS col0 FROM tab0 cor0
----
13104

skipif mysql # not compatible
query I rowsort label-8504
SELECT ALL 84 * + SUM ( + col2 ) AS col0 FROM tab0 cor0
----
13104

query III rowsort
SELECT * FROM tab1 WHERE NULL >= - col0 + - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8506
SELECT DISTINCT 57 * - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8506
SELECT DISTINCT 57 * - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8507
SELECT ALL - ( COUNT( * ) ) DIV + - ( COUNT( * ) ) AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-8507
SELECT ALL - ( COUNT ( * ) ) / + - ( COUNT ( * ) ) AS col1 FROM tab0
----
1

query I rowsort
SELECT - col2 + col1 * col1 + - + col1 FROM tab2
----
2527
4364
5812

query II rowsort
SELECT col2, + col0 AS col2 FROM tab2 AS cor0
----
23
46
40
64
58
75

query II rowsort
SELECT + 53 AS col1, 17 AS col1 FROM tab1 AS cor0
----
53
17
53
17
53
17

query I rowsort
SELECT DISTINCT col1 * 51 AS col1 FROM tab1 AS cor0
----
2397
255
714

query I rowsort
SELECT ALL + col0 + 25 FROM tab1 AS cor0
----
110
116
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + - col0 col2 FROM tab0 cor0
----
-108
-96
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-8514
SELECT DISTINCT - col1 * + col1 * - col2 - - col2 DIV col1 - ( - col1 ) FROM tab2 AS cor0
----
237237
260429
59874

skipif mysql # not compatible
query I rowsort label-8514
SELECT DISTINCT - col1 * + col1 * - col2 - - col2 / col1 - ( - col1 ) FROM tab2 AS cor0
----
237237
260429
59874

onlyif mysql # aggregate syntax: 
query I rowsort label-8515
SELECT ALL - + COUNT( * ) + 39 AS col2 FROM tab2 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-8515
SELECT ALL - + COUNT ( * ) + 39 AS col2 FROM tab2 AS cor0
----
36

query I rowsort
SELECT ALL - col2 * - col1 AS col2 FROM tab2 AS cor0 WHERE + 6 IS NOT NULL
----
1173
3080
3886

onlyif mysql # aggregate syntax: 
query II rowsort label-8517
SELECT 94 - - + COUNT( * ) col2, COUNT( * ) AS col0 FROM tab1
----
97
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8517
SELECT 94 - - + COUNT ( * ) col2, COUNT ( * ) AS col0 FROM tab1
----
97
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 64 - col1 * col2 + col0 BETWEEN - - 16 AND + - col0 / + col2 * col1 + col2
----

query I rowsort
SELECT DISTINCT + col2 - - + col0 * + + 73 FROM tab1
----
3819
6264
6711

query I rowsort
SELECT - col1 - + 44 FROM tab1
----
-49
-58
-91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8521
SELECT DISTINCT * FROM tab0 WHERE NOT NULL <> col1 * + 28 + + 81 * + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8521
SELECT DISTINCT * FROM tab0 WHERE NOT NULL <> col1 * + 28 + + 81 * + CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT * FROM tab0 WHERE - 59 >= col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8523
SELECT MAX( - col1 ) - - COUNT( * ) FROM tab0
----
2

skipif mysql # not compatible
query I rowsort label-8523
SELECT MAX ( - col1 ) - - COUNT ( * ) FROM tab0
----
2

query I rowsort
SELECT col1 + + col2 * - - 96 AS col2 FROM tab2
----
2259
3917
5635

query I rowsort
SELECT ALL ( - 63 ) - ( + 38 ) + - col1 FROM tab2
----
-152
-168
-178

onlyif mysql # DIV for integer division: 
query I rowsort label-8526
SELECT DISTINCT + col2 DIV + 32 FROM tab1
----
1
2
3

skipif mysql # not compatible
query I rowsort label-8526
SELECT DISTINCT + col2 / + 32 FROM tab1
----
1
2
3

query I rowsort
SELECT col1 * - 90 + 44 FROM tab2
----
-4546
-5986
-6886

query I rowsort
SELECT 68 + col2 + - col2 AS col1 FROM tab2
----
68
68
68

query I rowsort
SELECT ALL - ( - - 4 ) + + 53 FROM tab2 AS cor0
----
49
49
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8530
SELECT DISTINCT + + 62 / - 96 * 16 + col0 + + CAST( NULL AS SIGNED ) + + col1 * - 69 * + - col0 + col0 + - + col1 - 54 * 73 * - - col1 + - 59 * - col0 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8530
SELECT DISTINCT + + 62 / - 96 * 16 + col0 + + CAST ( NULL AS INTEGER ) + + col1 * - 69 * + - col0 + col0 + - + col1 - 54 * 73 * - - col1 + - 59 * - col0 FROM tab2 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8531
SELECT ALL + col0 AS col1 FROM tab2 AS cor0 WHERE NOT - 54 * + - col0 / + CAST( NULL AS SIGNED ) > ( 95 )
----

skipif mysql # not compatible
query I rowsort label-8531
SELECT ALL + col0 AS col1 FROM tab2 AS cor0 WHERE NOT - 54 * + - col0 / + CAST ( NULL AS INTEGER ) > ( 95 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 56 col2 FROM tab1 AS cor0
----
-56

query II rowsort
SELECT - col0 AS col2, 39 * + col1 FROM tab0 AS cor0
----
-15
3159
-87
819
-97
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 col2 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - col1 * 48
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8535
SELECT - 76 * COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-8535
SELECT - 76 * COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL >= NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 0 col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + + col0 * + + 71 AS col2 FROM tab0 AS cor0
----
1065
6177
6887

query I rowsort
SELECT - 7 * - col2 FROM tab0 AS cor0
----
329
693
70

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8539
SELECT ALL + CAST( NULL AS DECIMAL ) * col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8539
SELECT ALL + CAST ( NULL AS REAL ) * col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + 66 * col0 FROM tab1
----
3366
5610
6006

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2, - 44 col0 FROM tab0
----
10
-44
47
-44
99
-44

query I rowsort
SELECT + ( - 34 ) * + ( + ( - + col2 ) ) + - col0 AS col1 FROM tab0
----
1583
253
3269

onlyif mysql # DIV for integer division: 
query II rowsort label-8543
SELECT 79 AS col1, col0 DIV - col2 AS col2 FROM tab1
----
79
-1
79
-1
79
0

skipif mysql # not compatible
query II rowsort label-8543
SELECT 79 AS col1, col0 / - col2 AS col2 FROM tab1
----
79
-1
79
-1
79
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8544
SELECT col0 * - col2 + - col2 + + + 32 - - col2 + + - 79 * - + col2 + + col1 DIV - - 83 FROM tab0
----
-1750
-48
3040

skipif mysql # not compatible
query I rowsort label-8544
SELECT col0 * - col2 + - col2 + + + 32 - - col2 + + - 79 * - + col2 + + col1 / - - 83 FROM tab0
----
-1750
-48
3040

onlyif mysql # DIV for integer division: 
query I rowsort label-8545
SELECT 59 + - 73 DIV - - col0 FROM tab2
----
58
58
59

skipif mysql # not compatible
query I rowsort label-8545
SELECT 59 + - 73 / - - col0 FROM tab2
----
58
58
59

query I rowsort
SELECT ALL col2 * - + 2 AS col1 FROM tab0
----
-198
-20
-94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 col2, 41 FROM tab2 cor0
----
46
41
64
41
75
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + + - col2 col2 FROM tab2 AS cor0
----
28
37
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 9 col1, 50 FROM tab2 AS cor0
----
9
50
9
50
9
50

query I rowsort
SELECT + + col2 FROM tab0 WHERE - - col2 IS NULL
----

query I rowsort
SELECT ALL + ( - 27 ) AS col2 FROM tab2 AS cor0
----
-27
-27
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8552
SELECT ALL - 29 * + COUNT( * ) + + COUNT( * ) + CAST( NULL AS SIGNED ) AS col1 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8552
SELECT ALL - 29 * + COUNT ( * ) + + COUNT ( * ) + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8553
SELECT - + COUNT( * ) + - ( + 65 ) FROM tab0 AS cor0
----
-68

skipif mysql # not compatible
query I rowsort label-8553
SELECT - + COUNT ( * ) + - ( + 65 ) FROM tab0 AS cor0
----
-68

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL <> col2
----

query I rowsort
SELECT + col1 + - col2 * + 57 FROM tab0 cor0
----
-2598
-549
-5642

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col2 <> NULL
----

query I rowsort
SELECT DISTINCT col1 + col1 - col2 AS col1 FROM tab2
----
114
76
79

query I rowsort
SELECT ALL col2 - - - col1 - - - 63 AS col0 FROM tab1
----
-42
-9
19

query III rowsort
SELECT ALL * FROM tab1 WHERE + + col0 IS NULL
----

query I rowsort
SELECT - col0 FROM tab0 WHERE + - 88 + + ( + + col1 ) NOT IN ( + col2 / + 18 - + + col1 * col0, + col0 - - + col2 )
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8561
SELECT DISTINCT ( COUNT( * ) ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8561
SELECT DISTINCT ( COUNT ( * ) ) AS col0 FROM tab2
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-8562
SELECT ALL + 48 DIV col1 AS col0 FROM tab0 AS cor0
----
0
2
48

skipif mysql # not compatible
query I rowsort label-8562
SELECT ALL + 48 / col1 AS col0 FROM tab0 AS cor0
----
0
2
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8563
SELECT - + MIN( + 93 ) AS col1, COUNT( * ) + CAST( 83 AS SIGNED ) FROM tab0 AS cor0
----
-93
86

skipif mysql # not compatible
query II rowsort label-8563
SELECT - + MIN ( + 93 ) AS col1, COUNT ( * ) + CAST ( 83 AS INTEGER ) FROM tab0 AS cor0
----
-93
86

query I rowsort
SELECT - + 52 * - - 62 AS col0 FROM tab1 AS cor0
----
-3224
-3224
-3224

onlyif mysql # aggregate syntax: 
query I rowsort label-8565
SELECT SUM( ALL + ( col1 ) ) FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-8565
SELECT SUM ( ALL + ( col1 ) ) FROM tab0 AS cor0
----
103

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 44 col0 FROM tab0 WHERE NOT - ( - col0 ) NOT IN ( - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8567
SELECT DISTINCT * FROM tab2 WHERE - CAST( NULL AS SIGNED ) + CAST( NULL AS SIGNED ) * - + 52 * + col1 - + - col2 / + col0 - - col1 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8567
SELECT DISTINCT * FROM tab2 WHERE - CAST ( NULL AS INTEGER ) + CAST ( NULL AS INTEGER ) * - + 52 * + col1 - + - col2 / + col0 - - col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT 65 + + 56 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8569
SELECT - MIN( + + col1 ) col2 FROM tab0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8569
SELECT - MIN ( + + col1 ) col2 FROM tab0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8570
SELECT DISTINCT - ( - + COUNT( * ) ) + + + CAST( NULL AS SIGNED ) + - COUNT( * ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8570
SELECT DISTINCT - ( - + COUNT ( * ) ) + + + CAST ( NULL AS INTEGER ) + - COUNT ( * ) AS col0 FROM tab0
----
NULL

query I rowsort
SELECT AVG ( - col0 ) FROM tab0 AS cor0 WHERE NULL >= col2 * - col1 + ( + col1 ) + + col1 * ( - - 79 ) * + col1
----
NULL

query I rowsort
SELECT DISTINCT - ( 76 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-76

query I rowsort
SELECT ALL - 55 + - + 0 AS col0 FROM tab0 cor0 WHERE NULL <> ( - 42 )
----

query I rowsort
SELECT DISTINCT - col0 + + - col2 AS col1 FROM tab0 AS cor0
----
-196
-62
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8575
SELECT ALL COUNT( * ) + - + 89 + + 49 * - + 93 * 2 AS col2 FROM tab0 AS cor0
----
-9200

skipif mysql # not compatible
query I rowsort label-8575
SELECT ALL COUNT ( * ) + - + 89 + + 49 * - + 93 * 2 AS col2 FROM tab0 AS cor0
----
-9200

query I rowsort
SELECT ALL - - col2 - col1 AS col1 FROM tab1 AS cor0
----
21
54
82

query III rowsort
SELECT * FROM tab2 cor0 WHERE - 56 + + col2 NOT BETWEEN col1 AND col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col0 * + + 49 + - ( 88 ) FROM tab0
----
4175
4665
647

query I rowsort
SELECT DISTINCT - col0 * - 6 - - + col1 + 17 FROM tab2
----
344
478
534

query I rowsort
SELECT + 10 * - col0 - + col2 + - 44 * + col1 * - col1 AS col0 FROM tab0
----
-1025
18524
288487

query I rowsort
SELECT ALL + ( + col1 ) * + ( col1 ) + + + 46 FROM tab0
----
47
487
6607

query I rowsort
SELECT col1 * + + 17 FROM tab2
----
1139
1309
867

query I rowsort
SELECT + 15 * + + col1 AS col0 FROM tab0
----
1215
15
315

query I rowsort
SELECT DISTINCT 32 * col0 AS col0 FROM tab0 cor0
----
2784
3104
480

query I rowsort
SELECT + col2 * 26 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
1534
1768
2496

onlyif mysql # DIV for integer division: 
query II rowsort label-8586
SELECT - col1 DIV 32, 51 * - 27 - col1 DIV - + 86 AS col1 FROM tab0 AS cor0
----
-2
-1377
0
-1377
0
-1377

skipif mysql # not compatible
query II rowsort label-8586
SELECT - col1 / 32, 51 * - 27 - col1 / - + 86 AS col1 FROM tab0 AS cor0
----
-2
-1377
0
-1377
0
-1377

onlyif mysql # aggregate syntax: 
query I rowsort label-8587
SELECT DISTINCT - + COUNT( * ) AS col0 FROM tab1 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-8587
SELECT DISTINCT - + COUNT ( * ) AS col0 FROM tab1 WHERE NULL IS NULL
----
-3

query I rowsort
SELECT ALL - - col0 + + - col2 FROM tab0 cor0
----
-2
-32
77

query II rowsort
SELECT DISTINCT 53 + + + 84 + + col0, col1 + 1 AS col1 FROM tab2 cor0
----
183
52
201
78
212
68

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8590
SELECT DISTINCT - - col0 AS col0, col1 / - 75 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-8590
SELECT DISTINCT - - col0 AS col0, col1 / - 75 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8591
SELECT DISTINCT SUM( 26 ) FROM tab0 cor0 WHERE 74 IS NOT NULL
----
78

skipif mysql # not compatible
query I rowsort label-8591
SELECT DISTINCT SUM ( 26 ) FROM tab0 cor0 WHERE 74 IS NOT NULL
----
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8592
SELECT DISTINCT COUNT( * ) DIV COUNT( * ) AS col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8592
SELECT DISTINCT COUNT ( * ) / COUNT ( * ) AS col0 FROM tab0 AS cor0
----
1

query IIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0 WHERE + + 29 + - 97 BETWEEN NULL AND + - ( + 88 )
----

query I rowsort
SELECT - col2 + - + col0 FROM tab0
----
-196
-62
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8595
SELECT ALL + COUNT( * ) AS col1 FROM tab1, tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-8595
SELECT ALL + COUNT ( * ) AS col1 FROM tab1, tab0 AS cor0
----
9

query III rowsort
SELECT * FROM tab0 WHERE ( 96 IS NULL )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE - - 0 * + 9 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 * + - col1 * + col0 AS col2 FROM tab0 cor0 WHERE 83 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8599
SELECT DISTINCT - 19 + COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-10

skipif mysql # not compatible
query I rowsort label-8599
SELECT DISTINCT - 19 + COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 12 col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e698dd57d3aac30af14ce35da434bb45

query I rowsort
SELECT DISTINCT + col0 * + + col2 * + col1 + - col2 AS col1 FROM tab1 AS cor0
----
25016
290768
68448

onlyif mysql # DIV for integer division: 
query I rowsort label-8602
SELECT DISTINCT - col0 DIV + - col2 + - - col0 + + col1 - + col2 * + 23 FROM tab0 AS cor0
----
-114
-2179
-985

skipif mysql # not compatible
query I rowsort label-8602
SELECT DISTINCT - col0 / + - col2 + - - col0 + + col1 - + col2 * + 23 FROM tab0 AS cor0
----
-114
-2179
-985

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8603
SELECT col0 + + - col2 col1 FROM tab0 cor0 WHERE ( NULL <> CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8603
SELECT col0 + + - col2 col1 FROM tab0 cor0 WHERE ( NULL <> CAST ( NULL AS INTEGER ) )
----

query II rowsort
SELECT ALL col1 * + + 87 + - col0, + 11 + - 7 AS col0 FROM tab0 AS cor0
----
-10
4
1740
4
7032
4

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL = 85
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8606
SELECT DISTINCT + 6 col1 FROM tab2 cor0 WHERE - col2 * 10 + - 11 BETWEEN CAST( - - 39 AS DECIMAL ) AND NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8606
SELECT DISTINCT + 6 col1 FROM tab2 cor0 WHERE - col2 * 10 + - 11 BETWEEN CAST ( - - 39 AS REAL ) AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8607
SELECT + COUNT( * ) / - CAST( NULL AS SIGNED ) * + + AVG ( - + 73 ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8607
SELECT + COUNT ( * ) / - CAST ( NULL AS INTEGER ) * + + AVG ( - + 73 ) AS col1 FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT + 84 AS col0, col1 * + + col0 * - - col2 * + + col2 FROM tab1
----
84
1479425
84
19776848
84
6580224

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8609
SELECT DISTINCT + CAST( + COUNT( * ) AS SIGNED ) AS col0, 72 * + COUNT( * ) FROM tab1
----
3
216

skipif mysql # not compatible
query II rowsort label-8609
SELECT DISTINCT + CAST ( + COUNT ( * ) AS INTEGER ) AS col0, 72 * + COUNT ( * ) FROM tab1
----
3
216

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8610
SELECT ALL ( col2 ), + CAST( NULL AS SIGNED ) FROM tab0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-8610
SELECT ALL ( col2 ), + CAST ( NULL AS INTEGER ) FROM tab0
----
10
NULL
47
NULL
99
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8611
SELECT ALL + CAST( NULL AS SIGNED ) AS col0, - ( col1 ) AS col2 FROM tab0
----
NULL
-1
NULL
-21
NULL
-81

skipif mysql # not compatible
query II rowsort label-8611
SELECT ALL + CAST ( NULL AS INTEGER ) AS col0, - ( col1 ) AS col2 FROM tab0
----
NULL
-1
NULL
-21
NULL
-81

query III rowsort
SELECT ALL * FROM tab2 WHERE 35 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + ( + col2 ) * + + col0 + ( + 79 ) + 87 AS col0, ( 21 ) AS col0 FROM tab0
----
1036
21
871
21
9769
21

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN col2 AND NULL
----

query I rowsort
SELECT - - 81 * + 65 AS col1 FROM tab1 AS cor0
----
5265
5265
5265

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 + - col1 - - + 63 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE NOT + 2 >= NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col0 <> + col0
----

query II rowsort
SELECT ALL 65 * 91, col1 * + 80 AS col0 FROM tab0
----
5915
1680
5915
6480
5915
80

query I rowsort
SELECT col2 + col1 - + 91 FROM tab2
----
-17
26
34

onlyif mysql # aggregate syntax: 
query I rowsort label-8621
SELECT - ( SUM( DISTINCT ( + 22 ) ) ) + + ( COUNT( * ) ) FROM tab1 cor0
----
-19

skipif mysql # not compatible
query I rowsort label-8621
SELECT - ( SUM ( DISTINCT ( + 22 ) ) ) + + ( COUNT ( * ) ) FROM tab1 cor0
----
-19

query I rowsort
SELECT - + 22 + - - col1 FROM tab2 AS cor0
----
29
45
55

onlyif mysql # DIV for integer division: 
query I rowsort label-8623
SELECT DISTINCT ( + 94 ) DIV - + 71 + + 61 FROM tab1 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-8623
SELECT DISTINCT ( + 94 ) / - + 71 + + 61 FROM tab1 AS cor0
----
60

query II rowsort
SELECT DISTINCT - col2 + + 11, col2 AS col1 FROM tab0 AS cor0
----
-36
47
-88
99
1
10

query I rowsort
SELECT DISTINCT - ( + 39 ) AS col1 FROM tab2 AS cor0
----
-39

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 26 + - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - - 48 * - col2 AS col0 FROM tab2 AS cor0
----
-1104
-1920
-2784

onlyif mysql # DIV for integer division: 
query I rowsort label-8628
SELECT DISTINCT - + col0 DIV + + 79 + - col2 + 12 AS col0 FROM tab1 cor0
----
-48
-57
-84

skipif mysql # not compatible
query I rowsort label-8628
SELECT DISTINCT - + col0 / + + 79 + - col2 + 12 AS col0 FROM tab1 cor0
----
-48
-57
-84

query I rowsort
SELECT ALL col0 + + col0 + - col0 AS col0 FROM tab1
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8630
SELECT DISTINCT + col1 FROM tab2 WHERE NOT + col2 NOT IN ( + CAST( col1 AS SIGNED ), - col1 + - col2 - + - col1 * + col1 )
----

skipif mysql # not compatible
query I rowsort label-8630
SELECT DISTINCT + col1 FROM tab2 WHERE NOT + col2 NOT IN ( + CAST ( col1 AS INTEGER ), - col1 + - col2 - + - col1 * + col1 )
----

query III rowsort
SELECT * FROM tab0 WHERE - col1 + - - col1 + 26 * col1 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8632
SELECT MIN( - col1 ) AS col0 FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-8632
SELECT MIN ( - col1 ) AS col0 FROM tab0
----
-81

query I rowsort
SELECT DISTINCT col1 * 35 AS col2 FROM tab1
----
1645
175
490

onlyif mysql # DIV for integer division: 
query I rowsort label-8634
SELECT ALL + col2 + col2 + - + col2 DIV col1 + + + 71 AS col2 FROM tab2
----
117
151
187

skipif mysql # not compatible
query I rowsort label-8634
SELECT ALL + col2 + col2 + - + col2 / col1 + + + 71 AS col2 FROM tab2
----
117
151
187

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8635
SELECT + COUNT( * ) + + + COUNT( * ) DIV - 67 AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8635
SELECT + COUNT ( * ) + + + COUNT ( * ) / - 67 AS col0 FROM tab1
----
3

query I rowsort
SELECT ALL + col2 * + + col1 FROM tab0
----
210
3807
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8637
SELECT DISTINCT col2 / + + col2 * + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8637
SELECT DISTINCT col2 / + + col2 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 50 + ( - col2 ) col0 FROM tab2
----
-108
-73
-90

query I rowsort
SELECT ALL + col2 + 83 + - col1 FROM tab2 AS cor0
----
46
55
74

query I rowsort
SELECT - + 7 + - col0 FROM tab2 AS cor0
----
-53
-71
-82

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8641
SELECT - CAST( NULL AS DECIMAL ) + + col0 + + ( - - 96 ) * + + ( col2 ) + - col0 + + col0 * + col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8641
SELECT - CAST ( NULL AS REAL ) + + col0 + + ( - - 96 ) * + + ( col2 ) + - col0 + + col0 * + col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8642
SELECT - - SUM( ALL + 90 ) * - + COUNT( + col1 ) + + 79 FROM tab0 AS cor0
----
-731

skipif mysql # not compatible
query I rowsort label-8642
SELECT - - SUM ( ALL + 90 ) * - + COUNT ( + col1 ) + + 79 FROM tab0 AS cor0
----
-731

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8643
SELECT DISTINCT + 70 * - - CAST( - col2 AS SIGNED ) + - col0 + - col1 AS col2 FROM tab0 AS cor0
----
-3386
-7028
-808

skipif mysql # not compatible
query I rowsort label-8643
SELECT DISTINCT + 70 * - - CAST ( - col2 AS INTEGER ) + - col0 + - col1 AS col2 FROM tab0 AS cor0
----
-3386
-7028
-808

query I rowsort
SELECT ALL ( - 34 ) - - 95 FROM tab0
----
61
61
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 - + 28 * col1 col2 FROM tab0
----
-127
-2315
-598

onlyif mysql # aggregate syntax: 
query I rowsort label-8646
SELECT + COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9

skipif mysql # not compatible
query I rowsort label-8646
SELECT + COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8648
SELECT ALL - SUM( DISTINCT + ( - 79 ) ) AS col1 FROM tab0 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-8648
SELECT ALL - SUM ( DISTINCT + ( - 79 ) ) AS col1 FROM tab0 AS cor0
----
79

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 78 * - col2 + - ( - + 88 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 95 FROM tab0 AS cor0 WHERE NULL IS NULL
----
95
95
95

onlyif mysql # aggregate syntax: 
query I rowsort label-8651
SELECT + SUM( + 45 ) AS col2 FROM tab1
----
135

skipif mysql # not compatible
query I rowsort label-8651
SELECT + SUM ( + 45 ) AS col2 FROM tab1
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-8652
SELECT SUM( + - ( col2 ) ) FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-8652
SELECT SUM ( + - ( col2 ) ) FROM tab2
----
-121

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - + col2 <= 35 * + 85
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8654
SELECT ALL + COUNT( * ) * + 85 AS col1 FROM tab0
----
255

skipif mysql # not compatible
query I rowsort label-8654
SELECT ALL + COUNT ( * ) * + 85 AS col1 FROM tab0
----
255

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 - + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col1 * + col1 * - - 6 AS col1 FROM tab1 AS cor0
----
1176
13254
150

query I rowsort
SELECT DISTINCT 77 * + 51 FROM tab1 AS cor0
----
3927

query I rowsort
SELECT - ( - + 68 ) AS col0 FROM tab0 AS cor0
----
68
68
68

onlyif mysql # aggregate syntax: 
query I rowsort label-8659
SELECT ALL - COUNT( DISTINCT - 81 ) AS col2 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-8659
SELECT ALL - COUNT ( DISTINCT - 81 ) AS col2 FROM tab0
----
-1

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL > - + col1
----

query I rowsort
SELECT ALL 37 * - col2 FROM tab2 cor0
----
-1480
-2146
-851

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2, col0 col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
23
46
40
64
58
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8663
SELECT DISTINCT + MAX( - + CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8663
SELECT DISTINCT + MAX ( - + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT ALL - 81 + - + 62 FROM tab0 cor0
----
-143
-143
-143

query I rowsort
SELECT + - 91 + 18 FROM tab0 AS cor0
----
-73
-73
-73

query I rowsort
SELECT DISTINCT - - 41 + + - col2 AS col1 FROM tab0 AS cor0
----
-58
-6
31

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8667
SELECT - CAST( NULL AS SIGNED ) + - col2, - col2 AS col2 FROM tab2 AS cor0
----
NULL
-23
NULL
-40
NULL
-58

skipif mysql # not compatible
query II rowsort label-8667
SELECT - CAST ( NULL AS INTEGER ) + - col2, - col2 AS col2 FROM tab2 AS cor0
----
NULL
-23
NULL
-40
NULL
-58

query II rowsort
SELECT DISTINCT - - col1 + - 99 * - + 64 * - 4 AS col1, col1 AS col1 FROM tab2 AS cor0
----
-25267
77
-25277
67
-25293
51

query I rowsort
SELECT + col1 + - 8 + + 61 AS col1 FROM tab2 AS cor0
----
104
120
130

query I rowsort
SELECT DISTINCT col1 + 58 AS col2 FROM tab2
----
109
125
135

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8671
SELECT DISTINCT 29 / + CAST( NULL AS DECIMAL ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8671
SELECT DISTINCT 29 / + CAST ( NULL AS REAL ) FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8672
SELECT ALL + col2 DIV - col0 + 88 - - + col1 col0 FROM tab1
----
101
135
93

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8672
SELECT ALL + col2 / - col0 + 88 - - + col1 col0 FROM tab1
----
101
135
93

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8673
SELECT DISTINCT ( + - col1 ), - CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) AS col0 FROM tab1
----
-14
NULL
-47
NULL
-5
NULL

skipif mysql # not compatible
query II rowsort label-8673
SELECT DISTINCT ( + - col1 ), - CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0 FROM tab1
----
-14
NULL
-47
NULL
-5
NULL

query I rowsort
SELECT ALL + col0 * col1 * + col1 FROM tab0
----
38367
97
98415

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8675
SELECT DISTINCT COUNT( * ) DIV - 18 * 46 * + 94 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8675
SELECT DISTINCT COUNT ( * ) / - 18 * 46 * + 94 FROM tab2
----
0

query II rowsort
SELECT + col2 AS col1, 62 FROM tab2 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT IN ( - col1 + + col2 )
----

query I rowsort
SELECT DISTINCT + 66 + - col1 - - col0 FROM tab0
----
0
132
162

onlyif mysql # DIV for integer division: 
query I rowsort label-8679
SELECT ALL - 69 DIV col2 + - ( + 8 ) FROM tab1 AS cor0
----
-8
-9
-9

skipif mysql # not compatible
query I rowsort label-8679
SELECT ALL - 69 / col2 + - ( + 8 ) FROM tab1 AS cor0
----
-8
-9
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 73 + - + col2 + col1 col1, + col2 AS col0 FROM tab2 AS cor0
----
101
23
110
40
82
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - + col0 col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + col0 - + + 44 * 62 + + col2 FROM tab1 AS cor0
----
-2569
-2581
-2584

query I rowsort
SELECT + - col2 * - - 43 - col2 FROM tab0 AS cor0
----
-2068
-4356
-440

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8684
SELECT DISTINCT CAST( NULL AS SIGNED ) / col1 AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8684
SELECT DISTINCT CAST ( NULL AS INTEGER ) / col1 AS col1 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8685
SELECT 69 - SUM( DISTINCT - 5 ) FROM tab0
----
74

skipif mysql # not compatible
query I rowsort label-8685
SELECT 69 - SUM ( DISTINCT - 5 ) FROM tab0
----
74

query I rowsort
SELECT - + 24 AS col2 FROM tab0 AS cor0 WHERE NOT + col2 IS NULL
----
-24
-24
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-8687
SELECT + + col1 DIV - col1 FROM tab0 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8687
SELECT + + col1 / - col1 FROM tab0 cor0
----
-1
-1
-1

query II rowsort
SELECT ALL col0 AS col2, - col2 * col1 FROM tab1 AS cor0
----
51
-1344
85
-295
91
-3196

onlyif mysql # aggregate syntax: 
query I rowsort label-8689
SELECT - + COUNT( DISTINCT - 73 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8689
SELECT - + COUNT ( DISTINCT - 73 ) FROM tab0 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8690
SELECT - + MIN( + col2 ) * - COUNT( * ) + + + 84 FROM tab1 AS cor0
----
261

skipif mysql # not compatible
query I rowsort label-8690
SELECT - + MIN ( + col2 ) * - COUNT ( * ) + + + 84 FROM tab1 AS cor0
----
261

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 91 col1 FROM tab2 AS cor0
----
91
91
91

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL < NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col1 - + + 85 * - ( - col0 ) NOT BETWEEN NULL AND col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 col2 FROM tab2 WHERE NOT + + col2 IS NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8695
SELECT DISTINCT COUNT( col1 ) col0 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8695
SELECT DISTINCT COUNT ( col1 ) col0 FROM tab1
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8696
SELECT * FROM tab1 WHERE NOT col0 IN ( - - 21, - CAST( col2 AS DECIMAL ) - + 24, - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8696
SELECT * FROM tab1 WHERE NOT col0 IN ( - - 21, - CAST ( col2 AS REAL ) - + 24, - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 * + - col2 FROM tab0
----
-705
-870
-9603

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8699
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) + - - 33 > NULL
----

skipif mysql # not compatible
query III rowsort label-8699
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) + - - 33 > NULL
----

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE NOT + col2 * + col0 + - - col1 * - + col0 NOT BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL > ( ( - - col0 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8702
SELECT - col1 + 99 * + - col1 / col0 * - 58 + - ( + + col0 ) * + CAST( NULL AS SIGNED ) + 91 + - 31 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8702
SELECT - col1 + 99 * + - col1 / col0 * - 58 + - ( + + col0 ) * + CAST ( NULL AS INTEGER ) + 91 + - 31 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 AS col0, col1 col0 FROM tab1 AS cor0
----
59
5
68
47
96
14

query II rowsort
SELECT - + 25 AS col0, 30 FROM tab2 AS cor0
----
-25
30
-25
30
-25
30

onlyif mysql # aggregate syntax: 
query I rowsort label-8705
SELECT + - COUNT( DISTINCT - col2 ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8705
SELECT + - COUNT ( DISTINCT - col2 ) FROM tab0 cor0
----
-3

query I rowsort
SELECT col0 AS col2 FROM tab1 AS cor0 WHERE col1 > + + col2
----

query II rowsort
SELECT DISTINCT - col0 + + - col2 * - + 73, + col2 FROM tab1 AS cor0
----
4222
59
4873
68
6957
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 col0 FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( + 93 * col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8709
SELECT - COUNT( * ) FROM tab1 AS cor0 WHERE + 90 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-8709
SELECT - COUNT ( * ) FROM tab1 AS cor0 WHERE + 90 = NULL
----
0

query II rowsort
SELECT col2 AS col0, col0 * + col2 FROM tab2 cor0
----
23
1058
40
2560
58
4350

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8711
SELECT DISTINCT - + 11 * CAST( NULL AS SIGNED ) + + + col0 col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8711
SELECT DISTINCT - + 11 * CAST ( NULL AS INTEGER ) + + + col0 col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8712
SELECT ALL + - COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT 87 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-8712
SELECT ALL + - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT 87 IS NULL
----
-3

query I rowsort
SELECT + - 79 FROM tab0 AS cor0 WHERE ( NULL ) = + 60 * + + col2 * col1
----

query I rowsort
SELECT ALL 57 * - ( - - col2 ) AS col2 FROM tab1
----
-3363
-3876
-5472

query I rowsort
SELECT - col2 + + 10 AS col0 FROM tab0
----
-37
-89
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8716
SELECT col2 * col1 + + col2 DIV 52 AS col1 FROM tab1
----
1345
296
3197

skipif mysql # not compatible
query I rowsort label-8716
SELECT col2 * col1 + + col2 / 52 AS col1 FROM tab1
----
1345
296
3197

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * 45 + - - 60 col0 FROM tab1
----
-2595
-3000
-4260

query I rowsort
SELECT 2 + + 18 FROM tab2
----
20
20
20

query II rowsort
SELECT DISTINCT - col2 AS col1, ( - col1 ) FROM tab2 AS cor0
----
-23
-51
-40
-77
-58
-67

query I rowsort
SELECT DISTINCT + col2 + col2 FROM tab1 cor0 WHERE NOT + col0 >= + - col1
----

query I rowsort
SELECT ALL - col2 * + col0 * - + ( - - ( 50 ) ) + - - col2 + + 66 + - - col0 + - col1 AS col1 FROM tab2 AS cor0
----
128093
217632
52984

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL IN ( - ( col1 ) - + 49, + col1, - col1 * col1 + + - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 1 - + col1 col1, col0 AS col1 FROM tab1 AS cor0
----
-13
51
-4
85
-46
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8724
SELECT DISTINCT - - COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9

skipif mysql # not compatible
query I rowsort label-8724
SELECT DISTINCT - - COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-8725
SELECT + 87 - col2 * col0 DIV + col0 + + col0 FROM tab1 AS cor0 WHERE NOT ( - col2 IS NULL )
----
110
113
42

skipif mysql # not compatible
query I rowsort label-8725
SELECT + 87 - col2 * col0 / + col0 + + col0 FROM tab1 AS cor0 WHERE NOT ( - col2 IS NULL )
----
110
113
42

query I rowsort
SELECT ALL - - 13 * + + 63 - - col2 FROM tab2 AS cor0
----
842
859
877

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 <> 8
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) = col1 * - 96
----

query I rowsort
SELECT DISTINCT - - 87 * + col2 AS col1 FROM tab2 cor0
----
2001
3480
5046

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8730
SELECT - COUNT( * ) DIV + COUNT( * ) AS col1 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-8730
SELECT - COUNT ( * ) / + COUNT ( * ) AS col1 FROM tab2
----
-1

query II rowsort
SELECT col1 AS col1, col0 FROM tab2
----
51
46
67
75
77
64

query I rowsort
SELECT col0 * - 65 FROM tab1
----
-3315
-5525
-5915

query I rowsort
SELECT + ( + - col2 ) FROM tab2
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-8734
SELECT SUM( ALL - - col0 ) FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-8734
SELECT SUM ( ALL - - col0 ) FROM tab0
----
199

query II rowsort
SELECT ALL - 76, - ( - - col1 ) AS col0 FROM tab0
----
-76
-1
-76
-21
-76
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8736
SELECT ALL AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8736
SELECT ALL AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT ALL + col0 + - col0 * + 49 AS col1 FROM tab1
----
-2448
-4080
-4368

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 col1, - col0 FROM tab2 AS cor0
----
23
-46
40
-64
58
-75

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col2 * - col0 / + 20 + + ( - 13 ) <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8740
SELECT - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL = NULL
----

skipif mysql # not compatible
query I rowsort label-8740
SELECT - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + col2 + - - 22 + 83 col1, + col1 AS col1 FROM tab2 AS cor0
----
128
51
145
77
163
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8742
SELECT ALL - + col2 + col2 * - - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8742
SELECT ALL - + col2 + col2 * - - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 col2, + col0 FROM tab0 AS cor0
----
-10
87
-47
15
-99
97

query I rowsort
SELECT + + col0 + col2 * - 80 AS col0 FROM tab0 AS cor0
----
-3745
-713
-7823

onlyif mysql # aggregate syntax: 
query I rowsort label-8745
SELECT DISTINCT - ( - 82 ) + COUNT( * ) FROM tab0 AS cor0
----
85

skipif mysql # not compatible
query I rowsort label-8745
SELECT DISTINCT - ( - 82 ) + COUNT ( * ) FROM tab0 AS cor0
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-8746
SELECT - + COUNT( * ) + MAX( DISTINCT col1 ) AS col2 FROM tab1 cor0
----
44

skipif mysql # not compatible
query I rowsort label-8746
SELECT - + COUNT ( * ) + MAX ( DISTINCT col1 ) AS col2 FROM tab1 cor0
----
44

query I rowsort
SELECT + col2 * - col0 - col2 + + col2 + col2 AS col0 FROM tab0 AS cor0
----
-658
-860
-9504

query I rowsort
SELECT DISTINCT - col0 * 96 + col2 AS col2 FROM tab0 AS cor0
----
-1393
-8342
-9213

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8749
SELECT + + 82 + - + CAST( NULL AS SIGNED ) - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8749
SELECT + + 82 + - + CAST ( NULL AS INTEGER ) - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 71 + - - 48 + - 39 FROM tab2 cor0
----
80
80
80

query I rowsort
SELECT col0 + 0 AS col2 FROM tab1
----
51
85
91

onlyif mysql # DIV for integer division: 
query II rowsort label-8752
SELECT ALL col0 DIV - col1 - + 30 AS col2, - col2 AS col2 FROM tab0
----
-127
-99
-30
-47
-34
-10

skipif mysql # not compatible
query II rowsort label-8752
SELECT ALL col0 / - col1 - + 30 AS col2, - col2 AS col2 FROM tab0
----
-127
-99
-30
-47
-34
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-8753
SELECT - MAX( + - col0 ) FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-8753
SELECT - MAX ( + - col0 ) FROM tab2
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8754
SELECT ALL + CAST( - + col1 AS SIGNED ) FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-8754
SELECT ALL + CAST ( - + col1 AS INTEGER ) FROM tab2
----
-51
-67
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + ( - col0 ) col2 FROM tab0
----
-705
-870
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-8756
SELECT DISTINCT - + COUNT( * ) * 57 AS col0 FROM tab0 AS cor0
----
-171

skipif mysql # not compatible
query I rowsort label-8756
SELECT DISTINCT - + COUNT ( * ) * 57 AS col0 FROM tab0 AS cor0
----
-171

query I rowsort
SELECT DISTINCT - col2 * - + col1 * - + col0 FROM tab0 AS cor0
----
-18270
-57105
-9603

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 67 * + - col0 * + - col0 col0 FROM tab0 cor0
----
15075
507123
630403

query I rowsort
SELECT - col0 * ( - 79 ) FROM tab0 AS cor0
----
1185
6873
7663

onlyif mysql # aggregate syntax: 
query I rowsort label-8761
SELECT ALL + MIN( ALL + 28 ) AS col0 FROM tab0 AS cor0
----
28

skipif mysql # not compatible
query I rowsort label-8761
SELECT ALL + MIN ( ALL + 28 ) AS col0 FROM tab0 AS cor0
----
28

query II rowsort
SELECT - col1 AS col2, + 60 AS col0 FROM tab2 AS cor0
----
-51
60
-67
60
-77
60

query I rowsort
SELECT ALL ( + col2 ) * col2 AS col0 FROM tab2 AS cor0
----
1600
3364
529

query I rowsort
SELECT DISTINCT + col1 * col0 * - - col0 AS col1 FROM tab1 AS cor0
----
36125
36414
389207

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8765
SELECT - COUNT( * ) DIV MAX( + 90 ) * - MIN( DISTINCT + col0 ) FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-8765
SELECT - COUNT ( * ) / MAX ( + 90 ) * - MIN ( DISTINCT + col0 ) FROM tab1 cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8766
SELECT col2 DIV - col0 AS col1, CAST( + + col0 AS SIGNED ) DIV col1 + 90 FROM tab2
----
0
90
0
90
0
91

skipif mysql # not compatible
query II rowsort label-8766
SELECT col2 / - col0 AS col1, CAST ( + + col0 AS INTEGER ) / col1 + 90 FROM tab2
----
0
90
0
90
0
91

query I rowsort
SELECT ALL - 55 * 83 FROM tab1
----
-4565
-4565
-4565

query I rowsort
SELECT ALL + 20 + + 27 FROM tab2, tab0 AS cor0
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

onlyif mysql # aggregate syntax: 
query I rowsort label-8769
SELECT ( - ( - COUNT( * ) ) ) * - 87 AS col1 FROM tab1
----
-261

skipif mysql # not compatible
query I rowsort label-8769
SELECT ( - ( - COUNT ( * ) ) ) * - 87 AS col1 FROM tab1
----
-261

query I rowsort
SELECT ALL + 37 + - 67 FROM tab2
----
-30
-30
-30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( - col2 ) col0, col1 + col1 FROM tab1
----
-59
10
-68
94
-96
28

query I rowsort
SELECT DISTINCT 13 * + col1 FROM tab2
----
1001
663
871

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8773
SELECT DISTINCT + CAST( + COUNT( * ) AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-8773
SELECT DISTINCT + CAST ( + COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query III rowsort
SELECT * FROM tab1 WHERE col2 + + + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8775
SELECT - + COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-8775
SELECT - + COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8776
SELECT MIN( ALL 86 ) FROM tab2 AS cor0
----
86

skipif mysql # not compatible
query I rowsort label-8776
SELECT MIN ( ALL 86 ) FROM tab2 AS cor0
----
86

query I rowsort
SELECT - 74 * - col1 * 4 AS col0 FROM tab0 AS cor0
----
23976
296
6216

onlyif mysql # aggregate syntax: 
query I rowsort label-8778
SELECT DISTINCT + + COUNT( * ) * + 36 FROM tab2 cor0
----
108

skipif mysql # not compatible
query I rowsort label-8778
SELECT DISTINCT + + COUNT ( * ) * + 36 FROM tab2 cor0
----
108

query I rowsort
SELECT DISTINCT - + 57 + + col2 FROM tab2 AS cor0
----
-17
-34
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8780
SELECT DISTINCT - - 58 + + ( - + SUM( + + col1 ) ) FROM tab0 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-8780
SELECT DISTINCT - - 58 + + ( - + SUM ( + + col1 ) ) FROM tab0 AS cor0
----
-45

query I rowsort
SELECT - col1 AS col2 FROM tab0 AS cor0 WHERE col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8782
SELECT - 32 + CAST( - col0 AS SIGNED ) AS col0 FROM tab0
----
-119
-129
-47

skipif mysql # not compatible
query I rowsort label-8782
SELECT - 32 + CAST ( - col0 AS INTEGER ) AS col0 FROM tab0
----
-119
-129
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-8783
SELECT DISTINCT - COUNT( * ) - + + COUNT( * ) AS col2 FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-8783
SELECT DISTINCT - COUNT ( * ) - + + COUNT ( * ) AS col2 FROM tab0
----
-6

query I rowsort
SELECT DISTINCT - col0 * - ( + col1 ) FROM tab2
----
2346
4928
5025

query I rowsort
SELECT + 41 FROM tab0 WHERE + col0 <= + - col0 * + - col2
----
41
41
41

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8786
SELECT * FROM tab2 WHERE NOT + + col1 + - + CAST( NULL AS SIGNED ) NOT BETWEEN NULL AND - - col1
----

skipif mysql # not compatible
query III rowsort label-8786
SELECT * FROM tab2 WHERE NOT + + col1 + - + CAST ( NULL AS INTEGER ) NOT BETWEEN NULL AND - - col1
----

query I rowsort
SELECT - 82 AS col0 FROM tab2 AS cor0 WHERE NOT + col0 IS NULL
----
-82
-82
-82

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN - col1 AND NULL
----

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab0 AS cor0 WHERE NULL <= ( NULL )
----

query I rowsort
SELECT - + 4 FROM tab0 cor0
----
-4
-4
-4

query I rowsort
SELECT col1 * - 91 FROM tab1
----
-1274
-4277
-455

query I rowsort
SELECT + ( + 20 ) AS col1 FROM tab0
----
20
20
20

onlyif mysql # aggregate syntax: 
query II rowsort label-8793
SELECT ALL COUNT( * ) * + MIN( ALL + 42 ) col2, - MIN( DISTINCT - col1 ) FROM tab0
----
126
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8793
SELECT ALL COUNT ( * ) * + MIN ( ALL + 42 ) col2, - MIN ( DISTINCT - col1 ) FROM tab0
----
126
81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8794
SELECT ALL * FROM tab2 AS cor0 WHERE ( col0 * + CAST( - col2 AS SIGNED ) * + + 11 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8794
SELECT ALL * FROM tab2 AS cor0 WHERE ( col0 * + CAST ( - col2 AS INTEGER ) * + + 11 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8795
SELECT DISTINCT + CAST( + COUNT( + 71 ) AS SIGNED ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8795
SELECT DISTINCT + CAST ( + COUNT ( + 71 ) AS INTEGER ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT + col0 - col2 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-2
-32
77

query I rowsort
SELECT DISTINCT + + col0 + - - col1 AS col1 FROM tab0 AS cor0
----
108
96
98

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 98 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col2 + - ( + col0 ) AS col2 FROM tab0
----
-77
2
32

query I rowsort
SELECT DISTINCT + col2 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL col2 * - 73 AS col0 FROM tab0
----
-3431
-7227
-730

query I rowsort
SELECT 56 * 91 + - 94 AS col0 FROM tab2
----
5002
5002
5002

query III rowsort
SELECT * FROM tab1 WHERE NOT + 62 - - 26 / col1 + + col2 + + col2 > - col2 / col0 + + + col0 * - col2 + + + col2
----

query I rowsort
SELECT ( + 3 ) + + col1 FROM tab0
----
24
4
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8805
SELECT - 38 + + CAST( NULL AS SIGNED ) / + - col2 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8805
SELECT - 38 + + CAST ( NULL AS INTEGER ) / + - col2 AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 * - 76 FROM tab1
----
-4484
-5168
-7296

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8807
SELECT - 69 + - MAX( ALL - - CAST( - CAST( - - col1 AS SIGNED ) AS SIGNED ) ) FROM tab2
----
-18

skipif mysql # not compatible
query I rowsort label-8807
SELECT - 69 + - MAX ( ALL - - CAST ( - CAST ( - - col1 AS INTEGER ) AS INTEGER ) ) FROM tab2
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-8808
SELECT DISTINCT + 50 + - - COUNT( ALL - + col0 ) AS col0 FROM tab2 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-8808
SELECT DISTINCT + 50 + - - COUNT ( ALL - + col0 ) AS col0 FROM tab2 AS cor0
----
53

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8809
SELECT - 56 AS col1 FROM tab1 AS cor0 WHERE col0 IN ( + col0, 39, + 85 + + - col2, - ( - CAST( NULL AS DECIMAL ) ) )
----
-56
-56
-56

skipif mysql # not compatible
query I rowsort label-8809
SELECT - 56 AS col1 FROM tab1 AS cor0 WHERE col0 IN ( + col0, 39, + 85 + + - col2, - ( - CAST ( NULL AS REAL ) ) )
----
-56
-56
-56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8810
SELECT DISTINCT - - CAST( NULL AS SIGNED ) + - 1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8810
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) + - 1 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( ( NOT + 88 BETWEEN NULL AND NULL ) )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 95 NOT BETWEEN NULL AND + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT - - 68 * - 74 AS col2, 84 + col2 FROM tab0 AS cor0
----
-5032
131
-5032
183
-5032
94

onlyif mysql # aggregate syntax: 
query I rowsort label-8814
SELECT DISTINCT + 69 * + ( COUNT( - + 37 ) ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
621

skipif mysql # not compatible
query I rowsort label-8814
SELECT DISTINCT + 69 * + ( COUNT ( - + 37 ) ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
621

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 21 - + - col0 col2 FROM tab0 WHERE NULL IS NULL
----
-6
66
76

query I rowsort
SELECT 18 + - - col0 + - 40 AS col1 FROM tab0
----
-7
65
75

onlyif mysql # DIV for integer division: 
query I rowsort label-8817
SELECT DISTINCT + col0 DIV + + col1 AS col1 FROM tab0 AS cor0
----
0
4
97

skipif mysql # not compatible
query I rowsort label-8817
SELECT DISTINCT + col0 / + + col1 AS col1 FROM tab0 AS cor0
----
0
4
97

query I rowsort
SELECT - - 87 FROM tab1 cor0
----
87
87
87

onlyif mysql # aggregate syntax: 
query I rowsort label-8819
SELECT + SUM( DISTINCT col2 ) AS col0 FROM tab0 cor0
----
156

skipif mysql # not compatible
query I rowsort label-8819
SELECT + SUM ( DISTINCT col2 ) AS col0 FROM tab0 cor0
----
156

query I rowsort
SELECT DISTINCT + ( col2 ) + + - col0 FROM tab1 AS cor0
----
-23
-26
45

query I rowsort
SELECT DISTINCT - 9 - col1 + - + col1 FROM tab0 AS cor0
----
-11
-171
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-8822
SELECT ALL + COUNT( * ), + COUNT( * ) AS col2 FROM tab1
----
3
3

skipif mysql # not compatible
query II rowsort label-8822
SELECT ALL + COUNT ( * ), + COUNT ( * ) AS col2 FROM tab1
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8823
SELECT ( MIN( DISTINCT - 98 ) ) col2 FROM tab2
----
-98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8823
SELECT ( MIN ( DISTINCT - 98 ) ) col2 FROM tab2
----
-98

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8824
SELECT DISTINCT COUNT( ALL - - CAST( - 8 AS DECIMAL ) ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8824
SELECT DISTINCT COUNT ( ALL - - CAST ( - 8 AS REAL ) ) AS col1 FROM tab1
----
3

query I rowsort
SELECT + 7 AS col0 FROM tab1 WHERE NOT - + col0 * + col0 + 46 * - 79 IN ( + + col2, col2, col1 )
----
7
7
7

onlyif mysql # DIV for integer division: 
query II rowsort label-8826
SELECT DISTINCT - col0 AS col1, - col2 DIV - col1 FROM tab2
----
-46
0
-64
0
-75
0

skipif mysql # not compatible
query II rowsort label-8826
SELECT DISTINCT - col0 AS col1, - col2 / - col1 FROM tab2
----
-46
0
-64
0
-75
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8827
SELECT DISTINCT - COUNT( * ) * + COUNT( * ) + COUNT( * ) FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-8827
SELECT DISTINCT - COUNT ( * ) * + COUNT ( * ) + COUNT ( * ) FROM tab2 AS cor0
----
-6

query II rowsort
SELECT DISTINCT + col0, - 42 AS col2 FROM tab0 AS cor0
----
15
-42
87
-42
97
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-8829
SELECT ALL + ( - COUNT( * ) ) * SUM( ALL + + 82 ) + 61 FROM tab2 AS cor0 WHERE NOT + col1 IS NULL
----
-677

skipif mysql # not compatible
query I rowsort label-8829
SELECT ALL + ( - COUNT ( * ) ) * SUM ( ALL + + 82 ) + 61 FROM tab2 AS cor0 WHERE NOT + col1 IS NULL
----
-677

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8830
SELECT * FROM tab0 cor0 WHERE NOT ( col1 * CAST( NULL AS SIGNED ) ) > - 76 * - - 20
----

skipif mysql # not compatible
query III rowsort label-8830
SELECT * FROM tab0 cor0 WHERE NOT ( col1 * CAST ( NULL AS INTEGER ) ) > - 76 * - - 20
----

query I rowsort
SELECT DISTINCT + ( - 70 ) FROM tab0
----
-70

query I rowsort
SELECT + 9 + 80 AS col0 FROM tab0 WHERE NULL >= 20 * col1 + col2
----

query I rowsort
SELECT - 91 * col0 FROM tab1 WHERE NULL BETWEEN - col1 + col0 AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE - col0 + ( + 62 ) > ( - 74 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8835
SELECT DISTINCT MIN( - col1 ) FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-8835
SELECT DISTINCT MIN ( - col1 ) FROM tab0
----
-81

query I rowsort
SELECT DISTINCT ( + col2 ) FROM tab2 WHERE NOT NULL < + col0 + - col0
----

query I rowsort
SELECT DISTINCT + 54 AS col1 FROM tab2
----
54

query I rowsort
SELECT DISTINCT ( + 22 ) AS col0 FROM tab1
----
22

query I rowsort
SELECT 10 - - 11 AS col1 FROM tab1
----
21
21
21

query I rowsort
SELECT 47 - col1 AS col0 FROM tab2
----
-20
-30
-4

query I rowsort
SELECT ALL col1 - - 30 * 65 FROM tab0
----
1951
1971
2031

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 <> NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT 96 * - ( col2 ) + + 34 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8844
SELECT ALL - col1 * CAST( NULL AS SIGNED ) + 47 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8844
SELECT ALL - col1 * CAST ( NULL AS INTEGER ) + 47 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + ( + 17 ) FROM tab0
----
17
17
17

query I rowsort
SELECT DISTINCT - col2 * + col2 - col0 FROM tab1 WHERE - col2 * col1 IS NOT NULL
----
-3566
-4715
-9267

query I rowsort
SELECT DISTINCT 23 * col0 AS col1 FROM tab1
----
1173
1955
2093

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col1 * - ( 99 ) NOT BETWEEN ( NULL ) AND ( - col0 / 44 )
----

query I rowsort
SELECT col2 - 79 FROM tab0
----
-32
-69
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8850
SELECT + CAST( - col0 AS SIGNED ) col2 FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8850
SELECT + CAST ( - col0 AS INTEGER ) col2 FROM tab1
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-8851
SELECT MIN( ALL 29 ) AS col1 FROM tab2
----
29

skipif mysql # not compatible
query I rowsort label-8851
SELECT MIN ( ALL 29 ) AS col1 FROM tab2
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-8852
SELECT MIN( DISTINCT - col1 ) FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-8852
SELECT MIN ( DISTINCT - col1 ) FROM tab0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-8853
SELECT + 27 * - ( COUNT( * ) ) FROM tab2
----
-81

skipif mysql # not compatible
query I rowsort label-8853
SELECT + 27 * - ( COUNT ( * ) ) FROM tab2
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8854
SELECT DISTINCT col0 * + CAST( col0 AS SIGNED ) AS col1 FROM tab0 cor0 WHERE 51 * - col1 < ( - col2 * 34 )
----
225
7569

skipif mysql # not compatible
query I rowsort label-8854
SELECT DISTINCT col0 * + CAST ( col0 AS INTEGER ) AS col1 FROM tab0 cor0 WHERE 51 * - col1 < ( - col2 * 34 )
----
225
7569

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8855
SELECT + ( CAST( COUNT( * ) AS SIGNED ) ) + + 27 FROM tab0 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-8855
SELECT + ( CAST ( COUNT ( * ) AS INTEGER ) ) + + 27 FROM tab0 AS cor0
----
30

query I rowsort
SELECT 92 + - 67 AS col1 FROM tab1 AS cor0 WHERE 98 IS NOT NULL
----
25
25
25

onlyif mysql # aggregate syntax: 
query I rowsort label-8857
SELECT + COUNT( * ) FROM tab0 AS cor0 WHERE 50 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8857
SELECT + COUNT ( * ) FROM tab0 AS cor0 WHERE 50 IS NULL
----
0

query I rowsort
SELECT ALL ( - col1 ) * col2 FROM tab1 cor0 WHERE + col0 IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 >= - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( 65 / col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8861
SELECT ALL - MAX( col1 ) + 2 FROM tab0 AS cor0
----
-79

skipif mysql # not compatible
query I rowsort label-8861
SELECT ALL - MAX ( col1 ) + 2 FROM tab0 AS cor0
----
-79

query I rowsort
SELECT DISTINCT + col2 + 36 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8863
SELECT DISTINCT 6 + MAX( - col2 ) * - 20 FROM tab2 WHERE NOT 4 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8863
SELECT DISTINCT 6 + MAX ( - col2 ) * - 20 FROM tab2 WHERE NOT 4 IS NOT NULL
----
NULL

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 WHERE NOT ( NULL ) IS NOT NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

onlyif mysql # DIV for integer division: 
query I rowsort label-8865
SELECT DISTINCT col1 - - 50 DIV col0 col1 FROM tab0
----
1
21
84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8865
SELECT DISTINCT col1 - - 50 / col0 col1 FROM tab0
----
1
21
84

onlyif mysql # aggregate syntax: 
query I rowsort label-8866
SELECT + 4 * + COUNT( * ) AS col2 FROM tab1
----
12

skipif mysql # not compatible
query I rowsort label-8866
SELECT + 4 * + COUNT ( * ) AS col2 FROM tab1
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8867
SELECT - CAST( col0 AS SIGNED ) * col0 FROM tab1
----
-2601
-7225
-8281

skipif mysql # not compatible
query I rowsort label-8867
SELECT - CAST ( col0 AS INTEGER ) * col0 FROM tab1
----
-2601
-7225
-8281

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8868
SELECT + CAST( NULL AS SIGNED ) * + 93 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8868
SELECT + CAST ( NULL AS INTEGER ) * + 93 AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8869
SELECT ALL - 44 DIV - 69 AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8869
SELECT ALL - 44 / - 69 AS col1 FROM tab0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8870
SELECT DISTINCT + col2 * col2 + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8870
SELECT DISTINCT + col2 * col2 + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT col1 + col1 AS col2 FROM tab1 AS cor0 WHERE - col2 - col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8872
SELECT DISTINCT - CAST( NULL AS SIGNED ) FROM tab1 cor0 WHERE NOT ( 66 * + col2 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8872
SELECT DISTINCT - CAST ( NULL AS INTEGER ) FROM tab1 cor0 WHERE NOT ( 66 * + col2 ) IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8873
SELECT DISTINCT + 1 - COUNT( * ) AS col2 FROM tab1 cor0 WHERE NOT - col0 <= col2 + - col1
----
1

skipif mysql # not compatible
query I rowsort label-8873
SELECT DISTINCT + 1 - COUNT ( * ) AS col2 FROM tab1 cor0 WHERE NOT - col0 <= col2 + - col1
----
1

query I rowsort
SELECT ALL ( + 79 ) FROM tab0 AS cor0
----
79
79
79

query I rowsort
SELECT ALL + 60 - col1 AS col0 FROM tab2 AS cor0
----
-17
-7
9

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 + col2 <= + 10
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 + + 86 BETWEEN NULL AND ( NULL )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND + col1
----

query I rowsort
SELECT - 64 AS col2 FROM tab1 cor0
----
-64
-64
-64

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 67 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8881
SELECT DISTINCT 27 * - + COUNT( * ) col1 FROM tab2
----
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8881
SELECT DISTINCT 27 * - + COUNT ( * ) col1 FROM tab2
----
-81

query I rowsort
SELECT ALL - ( col0 ) FROM tab1 WHERE NOT ( NULL ) IN ( col0 * col2 + + col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8883
SELECT ALL + col1 DIV - 65 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8883
SELECT ALL + col1 / - 65 FROM tab0
----
-1
0
0

query I rowsort
SELECT ALL + col0 FROM tab1 WHERE ( + 99 * col2 + 40 * - 15 ) IS NOT NULL
----
51
85
91

query I rowsort
SELECT DISTINCT col1 * + 36 FROM tab1
----
1692
180
504

onlyif mysql # aggregate syntax: 
query I rowsort label-8886
SELECT ( + - COUNT( DISTINCT - col1 ) ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-8886
SELECT ( + - COUNT ( DISTINCT - col1 ) ) FROM tab1
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-8887
SELECT 60 DIV 74 + + col2 col0 FROM tab0 WHERE NOT + col2 IS NULL
----
10
47
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8887
SELECT 60 / 74 + + col2 col0 FROM tab0 WHERE NOT + col2 IS NULL
----
10
47
99

query I rowsort
SELECT DISTINCT 50 FROM tab1 WHERE 93 + 56 NOT IN ( + 30 )
----
50

query I rowsort
SELECT + ( + 25 ) AS col0 FROM tab2
----
25
25
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8890
SELECT DISTINCT + ( + col1 ) FROM tab1 WHERE 90 > ( ( CAST( 4 AS SIGNED ) ) + col1 )
----
14
47
5

skipif mysql # not compatible
query I rowsort label-8890
SELECT DISTINCT + ( + col1 ) FROM tab1 WHERE 90 > ( ( CAST ( 4 AS INTEGER ) ) + col1 )
----
14
47
5

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL < 12 + + col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8892
SELECT DISTINCT + CAST( + + ( - SUM( col1 ) ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-8892
SELECT DISTINCT + CAST ( + + ( - SUM ( col1 ) ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-195

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8893
SELECT + CAST( - COUNT( * ) AS SIGNED ) * - COUNT( * ) FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-8893
SELECT + CAST ( - COUNT ( * ) AS INTEGER ) * - COUNT ( * ) FROM tab2 AS cor0
----
9

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE 45 IS NOT NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

onlyif mysql # DIV for integer division: 
query I rowsort label-8895
SELECT ALL col1 DIV - col1 AS col1 FROM tab1 WHERE + + 55 + 87 IS NOT NULL
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8895
SELECT ALL col1 / - col1 AS col1 FROM tab1 WHERE + + 55 + 87 IS NOT NULL
----
-1
-1
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-8896
SELECT DISTINCT + col1 AS col1, - 89 DIV col2 col2 FROM tab2
----
51
-3
67
-1
77
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8896
SELECT DISTINCT + col1 AS col1, - 89 / col2 col2 FROM tab2
----
51
-3
67
-1
77
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8897
SELECT DISTINCT - + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-8897
SELECT DISTINCT - + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-9

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE NOT col2 + + 25 <= ( 79 )
----
14
47
5

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( col0 ) <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8900
SELECT + - ( - - CAST( NULL AS SIGNED ) ) + col0 / 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-8900
SELECT + - ( - - CAST ( NULL AS INTEGER ) ) + col0 / col0 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8901
SELECT DISTINCT - COUNT( * ) * + CAST( NULL AS SIGNED ) + - ( 42 ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8901
SELECT DISTINCT - COUNT ( * ) * + CAST ( NULL AS INTEGER ) + - ( 42 ) AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col2 + 37 FROM tab1 cor0
----
-22
-31
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-8903
SELECT DISTINCT + SUM( col0 ) AS col1 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-8903
SELECT DISTINCT + SUM ( col0 ) AS col1 FROM tab0 AS cor0
----
199

query I rowsort
SELECT - + 43 + + col0 + col0 AS col2 FROM tab1 AS cor0
----
127
139
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8905
SELECT CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) + - + 31 + col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8905
SELECT CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) + - + 31 + col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8906
SELECT + col2 + 94 + + - 28 DIV + - col1 FROM tab2
----
117
134
152

skipif mysql # not compatible
query I rowsort label-8906
SELECT + col2 + 94 + + - 28 / + - col1 FROM tab2
----
117
134
152

onlyif mysql # aggregate syntax: 
query II rowsort label-8907
SELECT COUNT( * ) + + - 3 AS col1, 59 AS col0 FROM tab0
----
0
59

skipif mysql # not compatible
query II rowsort label-8907
SELECT COUNT ( * ) + + - 3 AS col1, 59 AS col0 FROM tab0
----
0
59

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8908
SELECT CAST( NULL AS DECIMAL ) * MAX( col2 ) + 68 AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8908
SELECT CAST ( NULL AS REAL ) * MAX ( col2 ) + 68 AS col0 FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8909
SELECT ALL 29 * - 46 col2, col2 * 5 DIV + col0 - - col1 * col0 AS col1 FROM tab2
----
-1334
2348
-1334
4931
-1334
5028

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8909
SELECT ALL 29 * - 46 col2, col2 * 5 / + col0 - - col1 * col0 AS col1 FROM tab2
----
-1334
2348
-1334
4931
-1334
5028

query I rowsort
SELECT + ( + - col2 ) * + col1 + + col1 + - col1 * ( + 26 ) FROM tab1
----
-1694
-420
-4371

query I rowsort
SELECT ALL col0 + + col2 + + 58 + col0 * + 64 AS col0 FROM tab0
----
1080
5723
6462

query I rowsort
SELECT ALL - col1 + + + 90 + - + 19 * + col0 * - 88 FROM tab0
----
145533
162273
25089

query I rowsort
SELECT col0 AS col2 FROM tab2 WHERE + col2 > ( NULL )
----

query I rowsort
SELECT ALL + 92 + + col2 + - - col1 FROM tab1 cor0
----
156
202
207

query I rowsort
SELECT DISTINCT col0 FROM tab2 AS cor0 WHERE ( + + col1 IS NULL )
----

query I rowsort
SELECT DISTINCT 59 - col0 AS col0 FROM tab1 AS cor0 WHERE ( ( NULL ) IS NULL )
----
-26
-32
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 - - - 54 col2 FROM tab0
----
-39
33
43

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 LEFT JOIN tab1 AS cor1 ON NOT NULL IS NOT NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8919
SELECT ALL - col2 * CAST( col0 AS SIGNED ) - - col0 FROM tab1
----
-4845
-4930
-6097

skipif mysql # not compatible
query I rowsort label-8919
SELECT ALL - col2 * CAST ( col0 AS INTEGER ) - - col0 FROM tab1
----
-4845
-4930
-6097

query I rowsort
SELECT DISTINCT 74 * + ( - 48 ) AS col1 FROM tab2 AS cor0
----
-3552

onlyif mysql # aggregate syntax: 
query I rowsort label-8921
SELECT - COUNT( * ) * - COUNT( * ) AS col0 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-8921
SELECT - COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
9

query I rowsort
SELECT DISTINCT + + col0 * + + col2 FROM tab2 AS cor0
----
1058
2560
4350

onlyif mysql # DIV for integer division: 
query I rowsort label-8923
SELECT - 84 DIV - + ( - col2 ) FROM tab2 AS cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-8923
SELECT - 84 / - + ( - col2 ) FROM tab2 AS cor0
----
-1
-2
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-8924
SELECT + COUNT( * ), - MAX( col1 ) AS col2 FROM tab2 cor0
----
3
-77

skipif mysql # not compatible
query II rowsort label-8924
SELECT + COUNT ( * ), - MAX ( col1 ) AS col2 FROM tab2 cor0
----
3
-77

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8925
SELECT + + CAST( NULL AS DECIMAL ) * ( COUNT( * ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8925
SELECT + + CAST ( NULL AS REAL ) * ( COUNT ( * ) ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL 63 * + 53 FROM tab1 AS cor0
----
3339
3339
3339

query I rowsort
SELECT DISTINCT col0 * + + 29 FROM tab0 AS cor0
----
2523
2813
435

query I rowsort
SELECT + + 69 * - col0 FROM tab1 cor0
----
-3519
-5865
-6279

onlyif mysql # aggregate syntax: 
query I rowsort label-8929
SELECT MIN( ALL + col0 ) FROM tab0 cor0
----
15

skipif mysql # not compatible
query I rowsort label-8929
SELECT MIN ( ALL + col0 ) FROM tab0 cor0
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-8930
SELECT ALL 36 DIV + col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8930
SELECT ALL 36 / + col1 FROM tab2
----
0
0
0

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT ( col1 * + 54 ) IS NULL )
----

query I rowsort
SELECT DISTINCT + ( - - 5 ) * + + 76 AS col1 FROM tab2
----
380

onlyif mysql # DIV for integer division: 
query I rowsort label-8933
SELECT ALL + col0 DIV - - col2 AS col2 FROM tab2
----
1
1
2

skipif mysql # not compatible
query I rowsort label-8933
SELECT ALL + col0 / - - col2 AS col2 FROM tab2
----
1
1
2

query II rowsort
SELECT DISTINCT + col2, - col0 FROM tab1
----
59
-85
68
-91
96
-51

query I rowsort
SELECT DISTINCT + 43 FROM tab2, tab1 cor0
----
43

query II rowsort
SELECT DISTINCT + col1, - col1 - - 8 + col0 FROM tab2
----
51
3
67
16
77
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8937
SELECT DISTINCT COUNT( * ) * + + 80 FROM tab1
----
240

skipif mysql # not compatible
query I rowsort label-8937
SELECT DISTINCT COUNT ( * ) * + + 80 FROM tab1
----
240

onlyif mysql # DIV for integer division: 
query I rowsort label-8938
SELECT - 29 DIV + - col0 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8938
SELECT - 29 / + - col0 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ( 58 ) AS col0 FROM tab1 AS cor0
----
58
58
58

query I rowsort
SELECT + ( + + col1 ) AS col2 FROM tab2 AS cor0
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8941
SELECT CAST( CAST( NULL AS DECIMAL ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8941
SELECT CAST ( CAST ( NULL AS REAL ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col1 + - - col1 * + 94 AS col1 FROM tab1 AS cor0
----
1302
4371
465

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - 71 * - 73 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8944
SELECT MIN( + - col2 ) AS col2 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-8944
SELECT MIN ( + - col2 ) AS col2 FROM tab0 AS cor0
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8945
SELECT DISTINCT col0 FROM tab2 AS cor0 WHERE ( NOT ( NOT + col0 NOT IN ( + CAST( NULL AS SIGNED ) ) ) )
----

skipif mysql # not compatible
query I rowsort label-8945
SELECT DISTINCT col0 FROM tab2 AS cor0 WHERE ( NOT ( NOT + col0 NOT IN ( + CAST ( NULL AS INTEGER ) ) ) )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col0 NOT BETWEEN NULL AND + col1
----
75
67
58

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( - 70 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8948
SELECT ALL - MIN( DISTINCT col0 ) AS col2 FROM tab1 cor0
----
-51

skipif mysql # not compatible
query I rowsort label-8948
SELECT ALL - MIN ( DISTINCT col0 ) AS col2 FROM tab1 cor0
----
-51

query I rowsort
SELECT col1 * + 66 FROM tab1
----
3102
330
924

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8950
SELECT DISTINCT - ( + col2 ) - col2 * + 11 * - col2 + CAST( NULL AS SIGNED ) * + col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8950
SELECT DISTINCT - ( + col2 ) - col2 * + 11 * - col2 + CAST ( NULL AS INTEGER ) * + col1 FROM tab0
----
NULL

query II rowsort
SELECT ALL + col1 AS col0, 44 FROM tab2
----
51
44
67
44
77
44

query I rowsort
SELECT - col1 + - + 67 * + - col0 FROM tab0
----
5808
6498
924

onlyif mysql # DIV for integer division: 
query I rowsort label-8953
SELECT - col1 DIV col0 + - 28 AS col2 FROM tab1
----
-28
-28
-28

skipif mysql # not compatible
query I rowsort label-8953
SELECT - col1 / col0 + - 28 AS col2 FROM tab1
----
-28
-28
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8954
SELECT CAST( + COUNT( * ) AS SIGNED ) + 56 FROM tab2
----
59

skipif mysql # not compatible
query I rowsort label-8954
SELECT CAST ( + COUNT ( * ) AS INTEGER ) + 56 FROM tab2
----
59

onlyif mysql # aggregate syntax: 
query II rowsort label-8955
SELECT - SUM( DISTINCT - ( + + col2 ) ) + + 69 col0, 88 FROM tab1 AS cor0
----
292
88

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8955
SELECT - SUM ( DISTINCT - ( + + col2 ) ) + + 69 col0, 88 FROM tab1 AS cor0
----
292
88

query I rowsort
SELECT - 25 + - 8 FROM tab0 AS cor0
----
-33
-33
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8957
SELECT ALL - 55 + col1 + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8957
SELECT ALL - 55 + col1 + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT col1 + + + col2 * - col2, + col2 AS col0 FROM tab0 AS cor0
----
-2128
47
-79
10
-9800
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8959
SELECT ALL col1 + - col2 + - 85 - - ( - CAST( + col1 AS SIGNED ) ) FROM tab1 WHERE NOT ( + + col2 / col0 ) = NULL
----

skipif mysql # not compatible
query I rowsort label-8959
SELECT ALL col1 + - col2 + - 85 - - ( - CAST ( + col1 AS INTEGER ) ) FROM tab1 WHERE NOT ( + + col2 / col0 ) = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8960
SELECT * FROM tab2 WHERE - col1 + col0 + + col0 - col0 > + + col1 * CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8960
SELECT * FROM tab2 WHERE - col1 + col0 + + col0 - col0 > + + col1 * CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8961
SELECT + + MIN( DISTINCT col2 ) AS col0 FROM tab2 WHERE NOT NULL <= - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8961
SELECT + + MIN ( DISTINCT col2 ) AS col0 FROM tab2 WHERE NOT NULL <= - col1
----
NULL

query I rowsort
SELECT ALL 74 + col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
125
159
165

query I rowsort
SELECT + ( + + 1 ) * col0 AS col2 FROM tab2 AS cor0
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8964
SELECT - col0 * + CAST( NULL AS SIGNED ), 21 AS col0 FROM tab2 AS cor0
----
NULL
21
NULL
21
NULL
21

skipif mysql # not compatible
query II rowsort label-8964
SELECT - col0 * + CAST ( NULL AS INTEGER ), 21 AS col0 FROM tab2 AS cor0
----
NULL
21
NULL
21
NULL
21

query I rowsort
SELECT ALL col2 * col1 + - + 48 * - + 36 AS col2 FROM tab1 AS cor0
----
2023
3072
4924

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT NULL >= col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8967
SELECT ALL + + 53 DIV + col1 + + col0 col2 FROM tab2 AS cor0
----
47
64
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8967
SELECT ALL + + 53 / + col1 + + col0 col2 FROM tab2 AS cor0
----
47
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8968
SELECT DISTINCT + + 33 * + 13 + col0 + - - 62 AS col1 FROM tab0 AS cor0 WHERE NOT + 51 / - CAST( NULL AS SIGNED ) + + col2 IS NOT NULL
----
506
578
588

skipif mysql # not compatible
query I rowsort label-8968
SELECT DISTINCT + + 33 * + 13 + col0 + - - 62 AS col1 FROM tab0 AS cor0 WHERE NOT + 51 / - CAST ( NULL AS INTEGER ) + + col2 IS NOT NULL
----
506
578
588

query II rowsort
SELECT col0, ( - col1 ) * 25 FROM tab1 AS cor0 WHERE NOT NULL IN ( + col0, - col0 )
----

query I rowsort
SELECT DISTINCT + 2 * + col0 * - + 52 + - col0 * 60 FROM tab2 AS cor0
----
-10496
-12300
-7544

onlyif mysql # DIV for integer division: 
query I rowsort label-8971
SELECT DISTINCT col1 DIV - + col1 col2 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8971
SELECT DISTINCT col1 / - + col1 col2 FROM tab1 AS cor0
----
-1

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) <> - + col2
----

query I rowsort
SELECT ALL - + 42 AS col2 FROM tab0 AS cor0
----
-42
-42
-42

query I rowsort
SELECT + col2 * - + col1 AS col2 FROM tab0
----
-210
-3807
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8975
SELECT + COUNT( DISTINCT col1 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8975
SELECT + COUNT ( DISTINCT col1 ) FROM tab2
----
3

query I rowsort
SELECT DISTINCT - col1 * + + col2 FROM tab1
----
-1344
-295
-3196

onlyif mysql # aggregate syntax: 
query I rowsort label-8977
SELECT DISTINCT - + COUNT( * ) FROM tab1 WHERE - + col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8977
SELECT DISTINCT - + COUNT ( * ) FROM tab1 WHERE - + col1 IS NULL
----
0

query I rowsort
SELECT DISTINCT 46 * - col0 FROM tab2
----
-2116
-2944
-3450

query I rowsort
SELECT + + col1 AS col2 FROM tab2 WHERE NOT col0 / + col2 <= + 78 + col2 * + col0 * - col0
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8980
SELECT ALL - COUNT( * ) * - + SUM( + 62 ) col2 FROM tab0
----
558

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8980
SELECT ALL - COUNT ( * ) * - + SUM ( + 62 ) col2 FROM tab0
----
558

onlyif mysql # DIV for integer division: 
query I rowsort label-8981
SELECT ALL - 51 DIV + col2 + + col2 + 9 AS col0 FROM tab1 cor0
----
105
68
77

skipif mysql # not compatible
query I rowsort label-8981
SELECT ALL - 51 / + col2 + + col2 + 9 AS col0 FROM tab1 cor0
----
105
68
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8982
SELECT ALL - + COUNT( * ) + + COUNT( * ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8982
SELECT ALL - + COUNT ( * ) + + COUNT ( * ) FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8983
SELECT ALL SUM( - col0 ) DIV - + MIN( DISTINCT + col1 ) FROM tab1 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-8983
SELECT ALL SUM ( - col0 ) / - + MIN ( DISTINCT + col1 ) FROM tab1 AS cor0
----
45

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( - + col0 ) IS NULL
----

query I rowsort
SELECT - + col0 AS col2 FROM tab2 AS cor0 WHERE NOT 21 IS NULL
----
-46
-64
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8986
SELECT - 92 * + - CAST( - ( - col1 ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
1932
7452
92

skipif mysql # not compatible
query I rowsort label-8986
SELECT - 92 * + - CAST ( - ( - col1 ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
1932
7452
92

query I rowsort
SELECT ALL + 47 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

query I rowsort
SELECT ALL - col1 * + 63 * + col2 AS col2 FROM tab0
----
-13230
-239841
-6237

query I rowsort
SELECT - col1 * - col0 * + col2 FROM tab1
----
25075
290836
68544

query I rowsort
SELECT ALL 39 + - - col1 AS col1 FROM tab0 AS cor0
----
120
40
60

query I rowsort
SELECT - 93 FROM tab2 AS cor0 WHERE + col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 48 + - 34 + + col1 + + col2 col0 FROM tab2 AS cor0
----
131
139
88

query I rowsort
SELECT + + col2 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT - col2 + - 7 FROM tab1 cor0 WHERE 28 + - 43 IS NULL
----

query I rowsort
SELECT ALL + ( + - 1 ) + + 2 * + 41 AS col2 FROM tab1 AS cor0
----
81
81
81

query I rowsort
SELECT - col0 + - col1 + - + 22 + - col0 * + col2 FROM tab1 AS cor0
----
-4983
-5127
-6348

onlyif mysql # aggregate syntax: 
query I rowsort label-8997
SELECT - + COUNT( * ) * + 87 + 99 FROM tab2 AS cor0
----
-162

skipif mysql # not compatible
query I rowsort label-8997
SELECT - + COUNT ( * ) * + 87 + 99 FROM tab2 AS cor0
----
-162

onlyif mysql # aggregate syntax: 
query I rowsort label-8998
SELECT DISTINCT + COUNT( * ) FROM tab2 WHERE - 88 = + + col2
----
0

skipif mysql # not compatible
query I rowsort label-8998
SELECT DISTINCT + COUNT ( * ) FROM tab2 WHERE - 88 = + + col2
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col2 >= - - 90
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9000
SELECT - AVG ( ALL CAST( NULL AS SIGNED ) ) + + 49 * + + 67 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9000
SELECT - AVG ( ALL CAST ( NULL AS INTEGER ) ) + + 49 * + + 67 AS col0 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9001
SELECT ALL + COUNT( * ) * + 2 * 6 AS col1 FROM tab1
----
36

skipif mysql # not compatible
query I rowsort label-9001
SELECT ALL + COUNT ( * ) * + 2 * 6 AS col1 FROM tab1
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-9002
SELECT DISTINCT MAX( ALL - 22 ) col0 FROM tab0
----
-22

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9002
SELECT DISTINCT MAX ( ALL - 22 ) col0 FROM tab0
----
-22

query I rowsort
SELECT ALL + - 88 AS col1 FROM tab1 AS cor0
----
-88
-88
-88

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 20 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9005
SELECT DISTINCT + + CAST( - + col2 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-9005
SELECT DISTINCT + + CAST ( - + col2 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-10
-47
-99

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 * 75 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9007
SELECT - 40 DIV + + col2 + + 57 col1, - col0 + + + 18 DIV + - col0 col0 FROM tab2 AS cor0
----
56
-46
56
-64
57
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9007
SELECT - 40 / + + col2 + + 57 col1, - col0 + + + 18 / + - col0 col0 FROM tab2 AS cor0
----
56
-46
56
-64
57
-75

onlyif mysql # DIV for integer division: 
query II rowsort label-9008
SELECT DISTINCT - - col1 AS col1, 29 DIV col1 FROM tab2 AS cor0
----
51
0
67
0
77
0

skipif mysql # not compatible
query II rowsort label-9008
SELECT DISTINCT - - col1 AS col1, 29 / col1 FROM tab2 AS cor0
----
51
0
67
0
77
0

query II rowsort
SELECT DISTINCT col1 AS col0, 61 FROM tab1 AS cor0
----
14
61
47
61
5
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9010
SELECT - col1 * 38 * col1 * + CAST( NULL AS SIGNED ) - + - 14 AS col2 FROM tab0 cor0 WHERE NOT + col0 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9010
SELECT - col1 * 38 * col1 * + CAST ( NULL AS INTEGER ) - + - 14 AS col2 FROM tab0 cor0 WHERE NOT + col0 IS NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9011
SELECT 58 * - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-174

skipif mysql # not compatible
query I rowsort label-9011
SELECT 58 * - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-174

query I rowsort
SELECT ( 27 ) AS col2 FROM tab2 cor0
----
27
27
27

onlyif mysql # aggregate syntax: 
query I rowsort label-9013
SELECT ALL COUNT( ALL - + col2 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9013
SELECT ALL COUNT ( ALL - + col2 ) AS col1 FROM tab0 AS cor0
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 13 + - 13 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9015
SELECT + CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0 WHERE NOT col1 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9015
SELECT + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0 WHERE NOT col1 IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + ( - 51 ) AS col1 FROM tab2 AS cor0
----
-51
-51
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-9017
SELECT ALL - 18 - + - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT col1 = - col0
----
-15

skipif mysql # not compatible
query I rowsort label-9017
SELECT ALL - 18 - + - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT col1 = - col0
----
-15

query I rowsort
SELECT ALL 0 FROM tab1 cor0 WHERE NULL <= NULL
----

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab1 AS cor0 WHERE + col0 IS NOT NULL
----
-59
-68
-96

query III rowsort
SELECT * FROM tab1 WHERE NOT 51 < - - col1 * + + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9021
SELECT DISTINCT col2 DIV col1 + + - col2 AS col1 FROM tab1
----
-48
-67
-90

skipif mysql # not compatible
query I rowsort label-9021
SELECT DISTINCT col2 / col1 + + - col2 AS col1 FROM tab1
----
-48
-67
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-9022
SELECT MIN( DISTINCT + col1 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-9022
SELECT MIN ( DISTINCT + col1 ) FROM tab0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9023
SELECT * FROM tab0 WHERE NOT NULL <> + - CAST( - CAST( + col0 AS SIGNED ) AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9023
SELECT * FROM tab0 WHERE NOT NULL <> + - CAST ( - CAST ( + col0 AS INTEGER ) AS INTEGER )
----

query I rowsort
SELECT ALL + col1 * + + col0 * + col1 + col1 AS col0 FROM tab0
----
38388
98
98496

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( - col0 * - col2 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9026
SELECT DISTINCT + col1 * + CAST( col2 AS SIGNED ) FROM tab1 AS cor0
----
1344
295
3196

skipif mysql # not compatible
query I rowsort label-9026
SELECT DISTINCT + col1 * + CAST ( col2 AS INTEGER ) FROM tab1 AS cor0
----
1344
295
3196

query I rowsort
SELECT + col1 * + col1 * col1 + 79 * + col1 * col1 FROM tab0 AS cor0
----
1049760
44100
80

onlyif mysql # aggregate syntax: 
query I rowsort label-9028
SELECT - ( - + COUNT( * ) ) + - 51 FROM tab1
----
-48

skipif mysql # not compatible
query I rowsort label-9028
SELECT - ( - + COUNT ( * ) ) + - 51 FROM tab1
----
-48

query I rowsort
SELECT - - ( + - ( + - col0 ) ) FROM tab0 AS cor0 WHERE - col1 IS NOT NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query II rowsort label-9030
SELECT + - COUNT( * ), COUNT( * ) AS col1 FROM tab1 cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-9030
SELECT + - COUNT ( * ), COUNT ( * ) AS col1 FROM tab1 cor0
----
-3
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9031
SELECT + + COUNT( - 61 ) DIV + ( + + 97 ) * + + 10 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9031
SELECT + + COUNT ( - 61 ) / + ( + + 97 ) * + + 10 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9032
SELECT - MAX( ALL + + col2 ) DIV - COUNT( * ) FROM tab1 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-9032
SELECT - MAX ( ALL + + col2 ) / - COUNT ( * ) FROM tab1 AS cor0
----
32

query I rowsort
SELECT ALL + 21 + + - col2 FROM tab0 AS cor0
----
-26
-78
11

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 + + + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE col1 < + 15
----
97
1
99

query I rowsort
SELECT + col2 + - + col1 + - 98 FROM tab1
----
-16
-44
-77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9037
SELECT * FROM tab2 WHERE col1 * + CAST( - 79 AS SIGNED ) + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9037
SELECT * FROM tab2 WHERE col1 * + CAST ( - 79 AS INTEGER ) + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col1 + col1 * - 74 + - 9 FROM tab2
----
-3834
-5034
-5784

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9039
SELECT ALL + col1, CAST( + col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
14
96
47
68
5
59

skipif mysql # not compatible
query II rowsort label-9039
SELECT ALL + col1, CAST ( + col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
14
96
47
68
5
59

query I rowsort
SELECT DISTINCT - col0 + + + col0 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
0

query IIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) IS NOT NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9042
SELECT COUNT( * ) * + AVG ( DISTINCT - + CAST( NULL AS SIGNED ) ) + - - 67 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9042
SELECT COUNT ( * ) * + AVG ( DISTINCT - + CAST ( NULL AS INTEGER ) ) + - - 67 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 * col2 AS col2, - col2 * - col0 col2 FROM tab0 cor0
----
705
705
870
870
9603
9603

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 < + col0
----

query II rowsort
SELECT - col0 * + col2 + col0, col0 FROM tab2 AS cor0
----
-1012
46
-2496
64
-4275
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9046
SELECT ALL + + COUNT( * ) * - 30 AS col1 FROM tab0 cor0 WHERE NOT + col2 - col1 BETWEEN 73 AND NULL
----
-60

skipif mysql # not compatible
query I rowsort label-9046
SELECT ALL + + COUNT ( * ) * - 30 AS col1 FROM tab0 cor0 WHERE NOT + col2 - col1 BETWEEN 73 AND NULL
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-9047
SELECT ALL ( COUNT( * ) ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9047
SELECT ALL ( COUNT ( * ) ) AS col2 FROM tab2
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 76 col2, + ( + col0 ) AS col0 FROM tab0
----
76
15
76
87
76
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9049
SELECT - 52 AS col0 FROM tab1 WHERE NOT ( NOT CAST( NULL AS SIGNED ) + - - 73 - + col1 IS NULL )
----
-52
-52
-52

skipif mysql # not compatible
query I rowsort label-9049
SELECT - 52 AS col0 FROM tab1 WHERE NOT ( NOT CAST ( NULL AS INTEGER ) + - - 73 - + col1 IS NULL )
----
-52
-52
-52

query I rowsort
SELECT DISTINCT 70 * 64 AS col0 FROM tab1
----
4480

query I rowsort
SELECT + 19 + - col0 + col0 FROM tab0
----
19
19
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9052
SELECT ALL + CAST( NULL AS SIGNED ) * - - COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9052
SELECT ALL + CAST ( NULL AS INTEGER ) * - - COUNT ( * ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9053
SELECT ALL 58 + COUNT( * ) DIV - COUNT( * ) FROM tab2
----
57

skipif mysql # not compatible
query I rowsort label-9053
SELECT ALL 58 + COUNT ( * ) / - COUNT ( * ) FROM tab2
----
57

query III rowsort
SELECT * FROM tab2 WHERE NOT - + 82 * - col1 / + col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9055
SELECT + col1 + + - 72 * col1 DIV - + col1 AS col0 FROM tab0
----
153
73
93

skipif mysql # not compatible
query I rowsort label-9055
SELECT + col1 + + - 72 * col1 / - + col1 AS col0 FROM tab0
----
153
73
93

query I rowsort
SELECT DISTINCT - col2 * - - col1 * - col0 FROM tab2
----
197120
291450
53958

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9057
SELECT - col0 col0, col2 DIV - CAST( - 33 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-15
1
-87
0
-97
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9057
SELECT - col0 col0, col2 / - CAST ( - 33 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-15
1
-87
0
-97
3

query I rowsort
SELECT ALL - - col0 * - + col0 FROM tab1 AS cor0
----
-2601
-7225
-8281

query I rowsort
SELECT ALL + 94 * + 78 FROM tab1 AS cor0
----
7332
7332
7332

query I rowsort
SELECT col1 * - - col0 FROM tab0 cor0
----
1215
1827
97

query I rowsort
SELECT DISTINCT 5 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
5

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + 65 * + 87 IS NULL )
----

query I rowsort
SELECT ALL - col0 + 81 + + col1 + col0 AS col0 FROM tab1 AS cor0
----
128
86
95

onlyif mysql # aggregate syntax: 
query I rowsort label-9064
SELECT DISTINCT + + COUNT( * ) + + SUM( 77 ) AS col2 FROM tab2 AS cor0
----
234

skipif mysql # not compatible
query I rowsort label-9064
SELECT DISTINCT + + COUNT ( * ) + + SUM ( 77 ) AS col2 FROM tab2 AS cor0
----
234

query I rowsort
SELECT DISTINCT - col2 * - 73 * + 61 * + col0 + col1 * - col2 + - col0 AS col0 FROM tab1 cor0
----
21800493
22331415
27551877

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 74 + - col1 col2 FROM tab2 AS cor0
----
-3
23
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9067
SELECT ALL - - CAST( NULL AS SIGNED ) - - COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9067
SELECT ALL - - CAST ( NULL AS INTEGER ) - - COUNT ( * ) FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9068
SELECT ALL COUNT( * ) + - - CAST( - CAST( + - 14 AS SIGNED ) AS SIGNED ) FROM tab2 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-9068
SELECT ALL COUNT ( * ) + - - CAST ( - CAST ( + - 14 AS INTEGER ) AS INTEGER ) FROM tab2 AS cor0
----
17

query I rowsort
SELECT DISTINCT col1 - - col1 + - 26 * + - col0 FROM tab1
----
1354
2220
2460

query I rowsort
SELECT ALL col1 - - + 26 AS col0 FROM tab1
----
31
40
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 90 col2 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + col2 * + ( - - col2 ) FROM tab0
----
100
2209
9801

query I rowsort
SELECT col1 AS col1 FROM tab2 WHERE - + col1 IS NULL
----

query I rowsort
SELECT DISTINCT - col2 - - + col2 FROM tab2
----
0

query I rowsort
SELECT - col0 * - + col0 FROM tab2
----
2116
4096
5625

query I rowsort
SELECT ALL - 93 FROM tab1 WHERE NOT - 35 * - + col1 IS NULL
----
-93
-93
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9077
SELECT DISTINCT + col2 * - + CAST( - col2 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
1600
3364
529

skipif mysql # not compatible
query I rowsort label-9077
SELECT DISTINCT + col2 * - + CAST ( - col2 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
1600
3364
529

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 * + 63 > NULL
----

query I rowsort
SELECT + + 58 * - col1 AS col1 FROM tab0 AS cor0
----
-1218
-4698
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-9080
SELECT ALL - 89 * + + COUNT( * ) FROM tab1 AS cor0
----
-267

skipif mysql # not compatible
query I rowsort label-9080
SELECT ALL - 89 * + + COUNT ( * ) FROM tab1 AS cor0
----
-267

query I rowsort
SELECT - + col0 * 11 AS col1 FROM tab0 AS cor0
----
-1067
-165
-957

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9082
SELECT DISTINCT 22 * + ( + CAST( NULL AS SIGNED ) ) + 15 AS col2, - 75 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
NULL
-75

skipif mysql # not compatible
query II rowsort label-9082
SELECT DISTINCT 22 * + ( + CAST ( NULL AS INTEGER ) ) + 15 AS col2, - 75 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
NULL
-75

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab2 cor0 WHERE col1 IS NOT NULL
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-9084
SELECT - + COUNT( * ), - COUNT( * ) FROM tab2 AS cor0
----
-3
-3

skipif mysql # not compatible
query II rowsort label-9084
SELECT - + COUNT ( * ), - COUNT ( * ) FROM tab2 AS cor0
----
-3
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9085
SELECT - ( + - COUNT( * ) ) AS col2 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9085
SELECT - ( + - COUNT ( * ) ) AS col2 FROM tab1 cor0
----
3

query I rowsort
SELECT - + 84 * ( + + col2 ) FROM tab0 cor0
----
-3948
-8316
-840

query I rowsort
SELECT + + col0 * - ( - col2 ) FROM tab0 AS cor0
----
705
870
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-9088
SELECT - COUNT( * ) * + + MAX( + 1 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9088
SELECT - COUNT ( * ) * + + MAX ( + 1 ) FROM tab1 AS cor0
----
-3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL < + col0
----

query I rowsort
SELECT - ( + 29 ) AS col0 FROM tab2
----
-29
-29
-29

query III rowsort
SELECT ALL * FROM tab1 WHERE col0 + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9092
SELECT ALL COUNT( * ) * + 72 AS col2, - 47 FROM tab2
----
216
-47

skipif mysql # not compatible
query II rowsort label-9092
SELECT ALL COUNT ( * ) * + 72 AS col2, - 47 FROM tab2
----
216
-47

query I rowsort
SELECT DISTINCT + 20 FROM tab0 WHERE NULL NOT BETWEEN NULL AND - col2 / + col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9094
SELECT - COUNT( + - col1 ) col0, - SUM( ALL col2 ) + SUM( + col1 ) FROM tab0
----
-3
-53

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9094
SELECT - COUNT ( + - col1 ) col0, - SUM ( ALL col2 ) + SUM ( + col1 ) FROM tab0
----
-3
-53

query I rowsort
SELECT + - ( - ( - - col0 ) ) AS col2 FROM tab0 WHERE - col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - col0 + + col2 AS col2, 37 col2 FROM tab2 AS cor0
----
104
37
133
37
69
37

query I rowsort
SELECT DISTINCT - + ( + - 23 ) + + col1 + - col1 AS col1 FROM tab1 AS cor0
----
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col0 FROM tab2 cor0 WHERE + 16 - - - col0 > - 3
----

query I rowsort
SELECT DISTINCT + col0 - + col0 AS col0 FROM tab1
----
0

query I rowsort
SELECT DISTINCT 8 - + + col0 * + + col2 FROM tab0
----
-697
-862
-9595

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9101
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9101
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9102
SELECT + SUM( col2 ) AS col1 FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-9102
SELECT + SUM ( col2 ) AS col1 FROM tab1
----
223

query I rowsort
SELECT DISTINCT - col1 + - + col1 AS col2 FROM tab2 AS cor0
----
-102
-134
-154

query I rowsort
SELECT ALL ( col2 ) + - - 91 FROM tab2 AS cor0
----
114
131
149

query I rowsort
SELECT ALL - col2 + + 22 FROM tab1 cor0
----
-37
-46
-74

query I rowsort
SELECT ALL + col2 * + col0 - + col2 + + col2 FROM tab2 AS cor0
----
1058
2560
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-9107
SELECT MAX( DISTINCT 13 ) + + + 71 AS col0 FROM tab1 WHERE - 84 IS NOT NULL
----
84

skipif mysql # not compatible
query I rowsort label-9107
SELECT MAX ( DISTINCT 13 ) + + + 71 AS col0 FROM tab1 WHERE - 84 IS NOT NULL
----
84

query I rowsort
SELECT ALL - col0 - - + ( - + col1 ) AS col1 FROM tab2
----
-141
-142
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9109
SELECT ALL 28 + - + CAST( NULL AS SIGNED ) FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-9109
SELECT ALL 28 + - + CAST ( NULL AS INTEGER ) FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-9110
SELECT + ( - ( - - COUNT( * ) ) ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-9110
SELECT + ( - ( - - COUNT ( * ) ) ) FROM tab1
----
-3

query I rowsort
SELECT + col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9112
SELECT ALL COUNT( - 75 ) * + 68 AS col1 FROM tab0
----
204

skipif mysql # not compatible
query I rowsort label-9112
SELECT ALL COUNT ( - 75 ) * + 68 AS col1 FROM tab0
----
204

query I rowsort
SELECT 11 * col1 * - + col0 AS col1 FROM tab1
----
-4675
-47047
-7854

onlyif mysql # aggregate syntax: 
query I rowsort label-9114
SELECT DISTINCT MIN( 44 ) FROM tab1
----
44

skipif mysql # not compatible
query I rowsort label-9114
SELECT DISTINCT MIN ( 44 ) FROM tab1
----
44

query I rowsort
SELECT DISTINCT - 52 * 45 FROM tab2
----
-2340

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - + col2 + - col1 NOT BETWEEN col2 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9117
SELECT - MIN( + CAST( + - col1 AS SIGNED ) ) AS col1 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-9117
SELECT - MIN ( + CAST ( + - col1 AS INTEGER ) ) AS col1 FROM tab1
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9118
SELECT ALL + col2 * - 37 + - 36 + + CAST( - - ( + - col1 ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-2224
-2599
-3602

skipif mysql # not compatible
query I rowsort label-9118
SELECT ALL + col2 * - 37 + - 36 + + CAST ( - - ( + - col1 ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-2224
-2599
-3602

query I rowsort
SELECT ALL + 49 AS col0 FROM tab2 AS cor0
----
49
49
49

query I rowsort
SELECT DISTINCT + + 87 AS col0 FROM tab2 AS cor0
----
87

query I rowsort
SELECT + col1 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9122
SELECT ALL COUNT( + col2 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9122
SELECT ALL COUNT ( + col2 ) FROM tab2
----
3

query III rowsort
SELECT * FROM tab2 WHERE NOT 37 / + + 51 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col1 < ( NULL )
----

query I rowsort
SELECT DISTINCT 2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9126
SELECT ALL MAX( + + col1 ) FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-9126
SELECT ALL MAX ( + + col1 ) FROM tab1
----
47

onlyif mysql # aggregate syntax: 
query II rowsort label-9127
SELECT + COUNT( * ) AS col0, 56 FROM tab2 WHERE NOT - col0 = + 27 - - - col0 + + col2 * ( + col1 ) * - + col2 + + 35 * + col2 - + col1
----
3
56

skipif mysql # not compatible
query II rowsort label-9127
SELECT + COUNT ( * ) AS col0, 56 FROM tab2 WHERE NOT - col0 = + 27 - - - col0 + + col2 * ( + col1 ) * - + col2 + + 35 * + col2 - + col1
----
3
56

onlyif mysql # aggregate syntax: 
query I rowsort label-9128
SELECT COUNT( ALL 44 ) FROM tab1 AS cor0 WHERE NOT - 14 <= - col0 / + col2
----
0

skipif mysql # not compatible
query I rowsort label-9128
SELECT COUNT ( ALL 44 ) FROM tab1 AS cor0 WHERE NOT - 14 <= - col0 / + col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9129
SELECT ALL + ( COUNT( col1 ) ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9129
SELECT ALL + ( COUNT ( col1 ) ) AS col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT + col1 + - 34 * - col0 AS col1 FROM tab2 AS cor0
----
1615
2253
2617

onlyif mysql # DIV for integer division: 
query I rowsort label-9131
SELECT DISTINCT + + col1 DIV - col0 FROM tab0 AS cor0
----
-5
0

skipif mysql # not compatible
query I rowsort label-9131
SELECT DISTINCT + + col1 / - col0 FROM tab0 AS cor0
----
-5
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9132
SELECT + - COUNT( * ) * - - 93 FROM tab1 cor0
----
-279

skipif mysql # not compatible
query I rowsort label-9132
SELECT + - COUNT ( * ) * - - 93 FROM tab1 cor0
----
-279

onlyif mysql # aggregate syntax: 
query I rowsort label-9133
SELECT 86 + - COUNT( * ) FROM tab1 AS cor0
----
83

skipif mysql # not compatible
query I rowsort label-9133
SELECT 86 + - COUNT ( * ) FROM tab1 AS cor0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-9134
SELECT ALL + SUM( + + 49 ) FROM tab2 AS cor0
----
147

skipif mysql # not compatible
query I rowsort label-9134
SELECT ALL + SUM ( + + 49 ) FROM tab2 AS cor0
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-9135
SELECT COUNT( * ) + + - COUNT( * ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9135
SELECT COUNT ( * ) + + - COUNT ( * ) AS col0 FROM tab1
----
0

query I rowsort
SELECT - col1 * col1 + 51 AS col1 FROM tab2
----
-2550
-4438
-5878

query III rowsort
SELECT * FROM tab2 WHERE 16 * col0 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9138
SELECT CAST( MAX( col1 ) AS SIGNED ) + - 59 AS col0 FROM tab2
----
18

skipif mysql # not compatible
query I rowsort label-9138
SELECT CAST ( MAX ( col1 ) AS INTEGER ) + - 59 AS col0 FROM tab2
----
18

query III rowsort
SELECT * FROM tab1 WHERE col1 <> - + 42
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL col0 AS col1, 45 FROM tab2
----
46
45
64
45
75
45

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 52 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + col1 AS col0, col2 FROM tab2
----
51
23
67
58
77
40

query II rowsort
SELECT ALL + 56 AS col1, - 52 FROM tab2
----
56
-52
56
-52
56
-52

query I rowsort
SELECT DISTINCT 78 + col1 FROM tab0
----
159
79
99

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query III rowsort label-9145
SELECT * FROM tab1 cor0 WHERE col1 DIV + col2 >= + 18 DIV + CAST( + col0 AS SIGNED )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9145
SELECT * FROM tab1 cor0 WHERE col1 / + col2 >= + 18 / + CAST ( + col0 AS INTEGER )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - + 61 + col0 FROM tab0 cor0
----
-46
26
36

query II rowsort
SELECT DISTINCT 27 AS col2, col0 FROM tab0 AS cor0
----
27
15
27
87
27
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9148
SELECT DISTINCT COUNT( * ) + - COUNT( * ) + - + COUNT( * ) * + + COUNT( + CAST( + col0 AS SIGNED ) ) AS col2 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-9148
SELECT DISTINCT COUNT ( * ) + - COUNT ( * ) + - + COUNT ( * ) * + + COUNT ( + CAST ( + col0 AS INTEGER ) ) AS col2 FROM tab0
----
-9

query II rowsort
SELECT DISTINCT + col0 + 40, - col2 AS col1 FROM tab1 AS cor0
----
125
-59
131
-68
91
-96

query I rowsort
SELECT DISTINCT + col0 + - - col0 FROM tab1 AS cor0
----
102
170
182

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9151
SELECT DISTINCT + + col1 * CAST( - col2 AS SIGNED ) * ( - col0 ) + 32 - - + 5 FROM tab2 AS cor0
----
197157
291487
53995

skipif mysql # not compatible
query I rowsort label-9151
SELECT DISTINCT + + col1 * CAST ( - col2 AS INTEGER ) * ( - col0 ) + 32 - - + 5 FROM tab2 AS cor0
----
197157
291487
53995

query I rowsort
SELECT ALL 25 * 36 AS col1 FROM tab0 AS cor0
----
900
900
900

query I rowsort
SELECT - col2 * 46 * - col2 AS col2 FROM tab0 cor0
----
101614
450846
4600

onlyif mysql # DIV for integer division: 
query I rowsort label-9154
SELECT - col2 DIV col0 + - col2 DIV - - col1 * + 14 col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9154
SELECT - col2 / col0 + - col2 / - - col1 * + 14 col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9155
SELECT DISTINCT + MIN( - col2 ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9155
SELECT DISTINCT + MIN ( - col2 ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query II rowsort
SELECT ALL - ( - + 10 ), + 65 AS col1 FROM tab0 AS cor0
----
10
65
10
65
10
65

query II rowsort
SELECT ALL col2 AS col1, col0 AS col2 FROM tab1
----
59
85
68
91
96
51

query II rowsort
SELECT ALL - 90 AS col1, col0 * - 9 + col0 AS col1 FROM tab0
----
-90
-120
-90
-696
-90
-776

query II rowsort
SELECT - col1 AS col2, - 58 FROM tab2
----
-51
-58
-67
-58
-77
-58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9160
SELECT ALL * FROM tab1 WHERE NULL = - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9160
SELECT ALL * FROM tab1 WHERE NULL = - CAST ( NULL AS INTEGER )
----

query II rowsort
SELECT ALL - 70 AS col2, + col2 * - + col0 FROM tab1
----
-70
-4896
-70
-5015
-70
-6188

query I rowsort
SELECT ALL + 79 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT 88 * + col2 AS col1 FROM tab2
----
2024
3520
5104

onlyif mysql # DIV for integer division: 
query I rowsort label-9164
SELECT col1 * col2 DIV + col0 AS col1 FROM tab2 AS cor0
----
25
48
51

skipif mysql # not compatible
query I rowsort label-9164
SELECT col1 * col2 / + col0 AS col1 FROM tab2 AS cor0
----
25
48
51

query I rowsort
SELECT - ( - + 73 ) * + + 31 * 56 FROM tab2 AS cor0
----
126728
126728
126728

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 14 + + col2 / + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - + col2 * + 22 AS col0 FROM tab0 AS cor0
----
-1034
-2178
-220

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - 60 col1, col0 FROM tab2 AS cor0
----
-60
46
-60
64
-60
75

query I rowsort
SELECT ALL 71 * col1 + - - col2 AS col0 FROM tab2
----
3644
4815
5507

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 + + col1 col0, col0 col1 FROM tab0
----
-66
87
-96
97
66
15

onlyif mysql # aggregate syntax: 
query I rowsort label-9171
SELECT ALL MAX( DISTINCT ( + 96 ) ) * - COUNT( * ) + - COUNT( DISTINCT col1 ) AS col2 FROM tab2
----
-291

skipif mysql # not compatible
query I rowsort label-9171
SELECT ALL MAX ( DISTINCT ( + 96 ) ) * - COUNT ( * ) + - COUNT ( DISTINCT col1 ) AS col2 FROM tab2
----
-291

onlyif mysql # DIV for integer division: 
query I rowsort label-9172
SELECT col0 * col1 DIV + 44 + - 36 col2 FROM tab0 AS cor0
----
-34
-9
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9172
SELECT col0 * col1 / + 44 + - 36 col2 FROM tab0 AS cor0
----
-34
-9
5

query I rowsort
SELECT - + col1 * + + col0 - + 49 AS col1 FROM tab2 AS cor0
----
-2395
-4977
-5074

query II rowsort
SELECT DISTINCT - - col2 + - 85 AS col0, + 17 AS col0 FROM tab2 AS cor0
----
-27
17
-45
17
-62
17

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 IN ( 40, col2 + + col1, + - col2, + col0 / 27 * - 13 + - 91, - - 60 + - col1 * + 77 + + + col1, - - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 60 * - col1 + + col0 AS col1 FROM tab1 cor0
----
-215
-2729
-789

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9177
SELECT + 66 DIV + + CAST( SUM( - col0 ) AS SIGNED ) FROM tab1 WHERE ( NOT NULL IS NOT NULL )
----
0

skipif mysql # not compatible
query I rowsort label-9177
SELECT + 66 / + + CAST ( SUM ( - col0 ) AS INTEGER ) FROM tab1 WHERE ( NOT NULL IS NOT NULL )
----
0

query III rowsort
SELECT * FROM tab1 WHERE + 40 NOT BETWEEN - col1 AND NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 96 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col1 >= NULL
----

query I rowsort
SELECT - + col2 FROM tab2 AS cor0 WHERE + 44 * + + 34 * - col0 > 77
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9182
SELECT DISTINCT + 50 AS col1, CAST( NULL AS SIGNED ) * + - col0 AS col2 FROM tab0
----
50
NULL

skipif mysql # not compatible
query II rowsort label-9182
SELECT DISTINCT + 50 AS col1, CAST ( NULL AS INTEGER ) * + - col0 AS col2 FROM tab0
----
50
NULL

query II rowsort
SELECT col2 AS col2, col1 + - 27 - + 87 * 55 + - 68 FROM tab2
----
23
-4829
40
-4803
58
-4813

query III rowsort
SELECT * FROM tab2 WHERE + 39 BETWEEN + + col1 * 89 AND + 84
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9185
SELECT DISTINCT + + COUNT( + - col1 ) AS col0 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9185
SELECT DISTINCT + + COUNT ( + - col1 ) AS col0 FROM tab2 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9186
SELECT + - COUNT( * ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9186
SELECT + - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9187
SELECT DISTINCT + - 19 + + + COUNT( * ) FROM tab2 AS cor0 WHERE col0 < 8 + + 1 * - col0
----
-19

skipif mysql # not compatible
query I rowsort label-9187
SELECT DISTINCT + - 19 + + + COUNT ( * ) FROM tab2 AS cor0 WHERE col0 < 8 + + 1 * - col0
----
-19

query I rowsort
SELECT + 80 * - - col0 * + col0 FROM tab1
----
208080
578000
662480

query I rowsort
SELECT ( - ( - - col2 ) ) * col0 AS col1 FROM tab0
----
-705
-870
-9603

query I rowsort
SELECT ALL - 57 * - col2 FROM tab2
----
1311
2280
3306

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9191
SELECT ALL col1 * + CAST( NULL AS SIGNED ), 20 AS col2 FROM tab1
----
NULL
20
NULL
20
NULL
20

skipif mysql # not compatible
query II rowsort label-9191
SELECT ALL col1 * + CAST ( NULL AS INTEGER ), 20 AS col2 FROM tab1
----
NULL
20
NULL
20
NULL
20

query I rowsort
SELECT - + 51 FROM tab2 WHERE NOT NULL > + col2
----

query I rowsort
SELECT DISTINCT col0 * - + 99 FROM tab1 AS cor0
----
-5049
-8415
-9009

query II rowsort
SELECT DISTINCT - 72 * ( - col1 ), - col0 AS col0 FROM tab0 AS cor0 WHERE NOT col2 NOT IN ( - 11 + - col1 )
----

query I rowsort
SELECT DISTINCT 62 * - col0 FROM tab1 AS cor0
----
-3162
-5270
-5642

query I rowsort
SELECT ALL 86 AS col0 FROM tab1 cor0
----
86
86
86

query I rowsort
SELECT 38 * + col1 FROM tab2
----
1938
2546
2926

query I rowsort
SELECT DISTINCT + 8 * + ( - 96 ) AS col0 FROM tab2
----
-768

onlyif mysql # aggregate syntax: 
query I rowsort label-9199
SELECT ( + - MIN( DISTINCT + 12 ) ) * + COUNT( * ) col2 FROM tab0
----
-36

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9199
SELECT ( + - MIN ( DISTINCT + 12 ) ) * + COUNT ( * ) col2 FROM tab0
----
-36

query I rowsort
SELECT ALL + col0 + + col2 + col1 * col0 * + - 87 - col2 FROM tab1 AS cor0
----
-36890
-372008
-62067

query I rowsort
SELECT ALL 7 + - + col1 FROM tab1 AS cor0
----
-40
-7
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9202
SELECT - col0 col1 FROM tab2 AS cor0 WHERE 54 * + CAST( NULL AS SIGNED ) + + col0 IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9202
SELECT - col0 col1 FROM tab2 AS cor0 WHERE 54 * + CAST ( NULL AS INTEGER ) + + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9203
SELECT ( - SUM( + + col1 ) ) AS col2 FROM tab2 AS cor0 WHERE - col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9203
SELECT ( - SUM ( + + col1 ) ) AS col2 FROM tab2 AS cor0 WHERE - col1 IS NULL
----
NULL

query I rowsort
SELECT ALL + col0 + + col2 - + col0 * - col0 AS col1 FROM tab0 AS cor0
----
287
7666
9605

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9205
SELECT - CAST( NULL AS SIGNED ) + - col1 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9205
SELECT - CAST ( NULL AS INTEGER ) + - col1 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT col0 * + col2 + - col1, - col0 AS col1 FROM tab1 AS cor0
----
4882
-51
5010
-85
6141
-91

query I rowsort
SELECT - ( + col0 ) + - 27 AS col2 FROM tab0 AS cor0
----
-114
-124
-42

query I rowsort
SELECT DISTINCT ( - - col0 ) AS col2 FROM tab1 AS cor0
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9209
SELECT DISTINCT 52 * - - COUNT( - col0 ) FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-9209
SELECT DISTINCT 52 * - - COUNT ( - col0 ) FROM tab0
----
156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9210
SELECT ALL + col1 * - - col0 * + CAST( + + col2 AS SIGNED ) AS col0 FROM tab0
----
18270
57105
9603

skipif mysql # not compatible
query I rowsort label-9210
SELECT ALL + col1 * - - col0 * + CAST ( + + col2 AS INTEGER ) AS col0 FROM tab0
----
18270
57105
9603

query I rowsort
SELECT DISTINCT 85 * - + 64 * - + col0 AS col2 FROM tab0
----
473280
527680
81600

onlyif mysql # DIV for integer division: 
query I rowsort label-9212
SELECT DISTINCT ( 21 ) DIV - 62 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9212
SELECT DISTINCT ( 21 ) / - 62 FROM tab1
----
0

query I rowsort
SELECT ALL - col0 * + - col0 * - col0 AS col1 FROM tab2
----
-262144
-421875
-97336

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + - 50 <= - 94 + - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE col0 * 61 * + col0 IS NULL
----

query I rowsort
SELECT ALL - + ( ( + 68 ) ) + + 64 AS col0 FROM tab1 AS cor0
----
-4
-4
-4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 89 + col1 col0, + ( col2 ) * + col1 + - + col1 FROM tab1 AS cor0
----
-42
3149
-75
1330
-84
290

query I rowsort
SELECT + col0 * 79 - + 67 + + col2 * + 91 AS col0 FROM tab0 cor0
----
16605
5395
7716

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT NULL < 30 / + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9220
SELECT ALL + 19 - - COUNT( * ) FROM tab1
----
22

skipif mysql # not compatible
query I rowsort label-9220
SELECT ALL + 19 - - COUNT ( * ) FROM tab1
----
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9221
SELECT DISTINCT COUNT( * ) DIV - 66 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9221
SELECT DISTINCT COUNT ( * ) / - 66 AS col1 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9222
SELECT ALL - COUNT( DISTINCT + - 42 ) FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-9222
SELECT ALL - COUNT ( DISTINCT + - 42 ) FROM tab2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9223
SELECT DISTINCT + SUM( DISTINCT + col1 ) AS col1 FROM tab0 cor0
----
103

skipif mysql # not compatible
query I rowsort label-9223
SELECT DISTINCT + SUM ( DISTINCT + col1 ) AS col1 FROM tab0 cor0
----
103

query II rowsort
SELECT - 3 AS col1, - 93 FROM tab1 AS cor0
----
-3
-93
-3
-93
-3
-93

query II rowsort
SELECT DISTINCT col1 AS col1, col2 AS col1 FROM tab1 AS cor0
----
14
96
47
68
5
59

onlyif mysql # aggregate syntax: 
query I rowsort label-9226
SELECT - - MIN( DISTINCT - 73 ) FROM tab0 AS cor0
----
-73

skipif mysql # not compatible
query I rowsort label-9226
SELECT - - MIN ( DISTINCT - 73 ) FROM tab0 AS cor0
----
-73

query I rowsort
SELECT DISTINCT + + 13 AS col0 FROM tab0 cor0
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-9228
SELECT + MIN( ALL 37 ) col1 FROM tab2 cor0
----
37

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9228
SELECT + MIN ( ALL 37 ) col1 FROM tab2 cor0
----
37

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 18 >= col0
----
87
21
10
97
1
99

query I rowsort
SELECT - 89 * - + ( + col0 ) * - col1 FROM tab0 AS cor0
----
-108135
-162603
-8633

query I rowsort
SELECT - + 61 * - + col2 AS col0 FROM tab1 AS cor0
----
3599
4148
5856

onlyif mysql # aggregate syntax: 
query I rowsort label-9232
SELECT + ( ( + + MIN( + - 51 ) ) ) FROM tab0 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-9232
SELECT + ( ( + + MIN ( + - 51 ) ) ) FROM tab0 AS cor0
----
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col2 ) col0 FROM tab2 WHERE - + col1 IS NOT NULL
----
23
40
58

query II rowsort
SELECT ALL col1 AS col1, col0 * - 70 AS col0 FROM tab2
----
51
-3220
67
-5250
77
-4480

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 13 col0 FROM tab1
----
-13

query II rowsort
SELECT ( + - col1 ), - col2 AS col2 FROM tab1
----
-14
-96
-47
-68
-5
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-9237
SELECT DISTINCT MAX( DISTINCT + - col0 ) * - + 83 AS col2 FROM tab1
----
4233

skipif mysql # not compatible
query I rowsort label-9237
SELECT DISTINCT MAX ( DISTINCT + - col0 ) * - + 83 AS col2 FROM tab1
----
4233

onlyif mysql # aggregate syntax: 
query I rowsort label-9238
SELECT - + SUM( col1 ) col2 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9238
SELECT - + SUM ( col1 ) col2 FROM tab2 AS cor0
----
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-9239
SELECT + SUM( ALL + + 81 ) AS col2 FROM tab1 AS cor0
----
243

skipif mysql # not compatible
query I rowsort label-9239
SELECT + SUM ( ALL + + 81 ) AS col2 FROM tab1 AS cor0
----
243

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 + - col2 col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9241
SELECT DISTINCT + 92 * COUNT( * ) FROM tab1
----
276

skipif mysql # not compatible
query I rowsort label-9241
SELECT DISTINCT + 92 * COUNT ( * ) FROM tab1
----
276

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT - 84 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9243
SELECT ALL + - COUNT( * ) + MAX( DISTINCT + 79 ) + + 42 col2 FROM tab0 AS cor0
----
118

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9243
SELECT ALL + - COUNT ( * ) + MAX ( DISTINCT + 79 ) + + 42 col2 FROM tab0 AS cor0
----
118

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) < + col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col2 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9246
SELECT DISTINCT + + MIN( DISTINCT + + 61 ) + + 23 AS col2 FROM tab0 cor0
----
84

skipif mysql # not compatible
query I rowsort label-9246
SELECT DISTINCT + + MIN ( DISTINCT + + 61 ) + + 23 AS col2 FROM tab0 cor0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-9247
SELECT DISTINCT + COUNT( - col1 ) * - - MIN( DISTINCT - col0 ) + + COUNT( * ) FROM tab2 AS cor0
----
-222

skipif mysql # not compatible
query I rowsort label-9247
SELECT DISTINCT + COUNT ( - col1 ) * - - MIN ( DISTINCT - col0 ) + + COUNT ( * ) FROM tab2 AS cor0
----
-222

query III rowsort
SELECT * FROM tab2 WHERE + 39 * - col0 NOT BETWEEN - ( + 36 ) AND - - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col1 - + col1 + + + 79 - 31 FROM tab1
----
48

onlyif mysql # aggregate syntax: 
query II rowsort label-9250
SELECT DISTINCT + 27 col0, + SUM( col0 ) FROM tab0
----
27
199

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9250
SELECT DISTINCT + 27 col0, + SUM ( col0 ) FROM tab0
----
27
199

onlyif mysql # aggregate syntax: 
query I rowsort label-9251
SELECT ALL COUNT( * ) - ( MAX( DISTINCT - col1 ) ) AS col0 FROM tab1
----
8

skipif mysql # not compatible
query I rowsort label-9251
SELECT ALL COUNT ( * ) - ( MAX ( DISTINCT - col1 ) ) AS col0 FROM tab1
----
8

onlyif mysql # aggregate syntax: 
query II rowsort label-9252
SELECT ALL 92 AS col1, + COUNT( * ) FROM tab2
----
92
3

skipif mysql # not compatible
query II rowsort label-9252
SELECT ALL 92 AS col1, + COUNT ( * ) FROM tab2
----
92
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9253
SELECT - - COUNT( * ) + 76 + - - CAST( NULL AS SIGNED ) * - 71 + - 52 * COUNT( * ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9253
SELECT - - COUNT ( * ) + 76 + - - CAST ( NULL AS INTEGER ) * - 71 + - 52 * COUNT ( * ) AS col0 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 77 col1 FROM tab2 cor0
----
77
77
77

query I rowsort
SELECT DISTINCT - ( + 61 ) + + + 70 * - col1 + - 2 AS col1 FROM tab1 AS cor0 WHERE NOT + col0 / + + col1 >= ( - col2 ) * + - col1 * - ( - col1 )
----
-1043
-3353
-413

query I rowsort
SELECT DISTINCT + 97 AS col0 FROM tab0 cor0
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-9257
SELECT - + col0 DIV col1 * col2 AS col1 FROM tab0 AS cor0
----
-40
-9603
0

skipif mysql # not compatible
query I rowsort label-9257
SELECT - + col0 / col1 * col2 AS col1 FROM tab0 AS cor0
----
-40
-9603
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9258
SELECT DISTINCT ( - + MAX( - + 75 ) ) DIV + 17 AS col0 FROM tab2 cor0
----
4

skipif mysql # not compatible
query I rowsort label-9258
SELECT DISTINCT ( - + MAX ( - + 75 ) ) / + 17 AS col0 FROM tab2 cor0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9259
SELECT COUNT( DISTINCT col0 ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9259
SELECT COUNT ( DISTINCT col0 ) FROM tab1 cor0
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9260
SELECT ALL * FROM tab1 WHERE NOT col2 * - col1 + + - CAST( NULL AS DECIMAL ) NOT BETWEEN - 94 AND NULL
----

skipif mysql # not compatible
query III rowsort label-9260
SELECT ALL * FROM tab1 WHERE NOT col2 * - col1 + + - CAST ( NULL AS REAL ) NOT BETWEEN - 94 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9261
SELECT + COUNT( ALL 2 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9261
SELECT + COUNT ( ALL 2 ) AS col0 FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9262
SELECT - col0 * - CAST( - 43 AS SIGNED ) FROM tab1
----
-2193
-3655
-3913

skipif mysql # not compatible
query I rowsort label-9262
SELECT - col0 * - CAST ( - 43 AS INTEGER ) FROM tab1
----
-2193
-3655
-3913

query I rowsort
SELECT - col1 * + 35 * + col2 + + col0 FROM tab0
----
-133230
-3368
-7263

onlyif mysql # aggregate syntax: 
query I rowsort label-9264
SELECT + 73 + - COUNT( * ) FROM tab2
----
70

skipif mysql # not compatible
query I rowsort label-9264
SELECT + 73 + - COUNT ( * ) FROM tab2
----
70

query I rowsort
SELECT 28 AS col1 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - 88 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 467301f887614eb7beda22c561b0fad2

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col1 >= - - 37 * col0 * + + 16
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9268
SELECT DISTINCT + - COUNT( * ) + + 33 FROM tab2 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-9268
SELECT DISTINCT + - COUNT ( * ) + + 33 FROM tab2 AS cor0
----
30

query I rowsort
SELECT AVG ( DISTINCT + col1 ) FROM tab1 AS cor0 WHERE - col0 BETWEEN NULL AND NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + 37 col2 FROM tab0 AS cor0
----
118
38
58

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 NOT IN ( - - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + - col2 / col0 + col0 + + ( + col0 ) FROM tab1 AS cor0 WHERE col0 >= NULL
----

query I rowsort
SELECT col1 + + 87 AS col2 FROM tab0 cor0
----
108
168
88

query I rowsort
SELECT + - 41 * col2 + 80 + col1 FROM tab0 AS cor0
----
-1766
-309
-3978

query I rowsort
SELECT - - col1 FROM tab2 cor0 WHERE ( NULL ) IS NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9276
SELECT ( COUNT( * ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9276
SELECT ( COUNT ( * ) ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL + col2 * 76 * + col2 + + - col1 + + 56 FROM tab1 AS cor0
----
264607
351433
700458

onlyif mysql # aggregate syntax: 
query I rowsort label-9278
SELECT - - COUNT( * ) FROM tab1 WHERE col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9278
SELECT - - COUNT ( * ) FROM tab1 WHERE col2 IS NULL
----
0

query II rowsort
SELECT ALL - col0 - + + col1, col0 * - col1 AS col0 FROM tab0
----
-108
-1827
-96
-1215
-98
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-9280
SELECT ( + - SUM( DISTINCT - col2 ) ) FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-9280
SELECT ( + - SUM ( DISTINCT - col2 ) ) FROM tab0
----
156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9281
SELECT DISTINCT SUM( CAST( + - col2 AS SIGNED ) ) FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-9281
SELECT DISTINCT SUM ( CAST ( + - col2 AS INTEGER ) ) FROM tab1
----
-223

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9282
SELECT + CAST( - 54 AS SIGNED ) - - COUNT( * ) AS col2 FROM tab0
----
-51

skipif mysql # not compatible
query I rowsort label-9282
SELECT + CAST ( - 54 AS INTEGER ) - - COUNT ( * ) AS col2 FROM tab0
----
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-9283
SELECT ALL - MAX( - - col0 ) AS col0, COUNT( + col2 ) FROM tab2 AS cor0
----
-75
3

skipif mysql # not compatible
query II rowsort label-9283
SELECT ALL - MAX ( - - col0 ) AS col0, COUNT ( + col2 ) FROM tab2 AS cor0
----
-75
3

query I rowsort
SELECT + 95 * col0 * - 54 * + col0 AS col0 FROM tab0 AS cor0
----
-1154250
-38828970
-48268170

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9285
SELECT DISTINCT + CAST( NULL AS SIGNED ) / + - col1 * col0 / + 18 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9285
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / + - col1 * col0 / + 18 AS col1 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( + col0 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 97 * - col2 AS col2 FROM tab1
----
5723
6596
9312

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - + col2 ) <> + ( 51 ) + - + 16
----

query II rowsort
SELECT 50, + col0 FROM tab0 AS cor0
----
50
15
50
87
50
97

query I rowsort
SELECT DISTINCT + 90 * + ( + 47 ) FROM tab2 AS cor0
----
4230

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9291
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 < col0 * - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9291
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 < col0 * - CAST ( NULL AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9292
SELECT + - 21 DIV + + col0 * col0 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9292
SELECT + - 21 / + + col0 * col0 AS col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9293
SELECT DISTINCT - col2 DIV - + 2 FROM tab1 AS cor0
----
29
34
48

skipif mysql # not compatible
query I rowsort label-9293
SELECT DISTINCT - col2 / - + 2 FROM tab1 AS cor0
----
29
34
48

query I rowsort
SELECT ALL - + ( - ( + + col2 ) ) AS col0 FROM tab0 AS cor0
----
10
47
99

query II rowsort
SELECT DISTINCT - col0, col0 + + - col1 AS col1 FROM tab0 cor0
----
-15
-66
-87
66
-97
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9296
SELECT DISTINCT + COUNT( DISTINCT - 56 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-9296
SELECT DISTINCT + COUNT ( DISTINCT - 56 ) FROM tab1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9297
SELECT ALL - CAST( - col0 AS SIGNED ) FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-9297
SELECT ALL - CAST ( - col0 AS INTEGER ) FROM tab1
----
51
85
91

query I rowsort
SELECT col0 * - 12 * - col0 AS col2 FROM tab1
----
31212
86700
99372

query I rowsort
SELECT + col1 + + col1 + col1 FROM tab0 AS cor0
----
243
3
63

query I rowsort
SELECT 38 + 55 FROM tab0 AS cor0
----
93
93
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 88 col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-9302
SELECT 15 DIV + col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9302
SELECT 15 / + col0 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9303
SELECT - - MIN( ALL + col0 ) AS col2 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-9303
SELECT - - MIN ( ALL + col0 ) AS col2 FROM tab1 AS cor0
----
51

query I rowsort
SELECT DISTINCT 18 + col2 AS col1 FROM tab1 AS cor0
----
114
77
86

query I rowsort
SELECT DISTINCT 28 AS col0 FROM tab0 AS cor0 WHERE col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9306
SELECT DISTINCT + MAX( DISTINCT + - col2 ) AS col2, 69 FROM tab1 cor0 WHERE NOT ( NULL ) NOT BETWEEN col0 + - col1 AND NULL
----
NULL
69

skipif mysql # not compatible
query II rowsort label-9306
SELECT DISTINCT + MAX ( DISTINCT + - col2 ) AS col2, 69 FROM tab1 cor0 WHERE NOT ( NULL ) NOT BETWEEN col0 + - col1 AND NULL
----
NULL
69

query I rowsort
SELECT - ( - col2 ) FROM tab1 AS cor0 WHERE col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9308
SELECT DISTINCT col1 DIV - - col0 + ( + col1 ) FROM tab2 AS cor0
----
52
67
78

skipif mysql # not compatible
query I rowsort label-9308
SELECT DISTINCT col1 / - - col0 + ( + col1 ) FROM tab2 AS cor0
----
52
67
78

query I rowsort
SELECT - col1 - - - 57 FROM tab2 AS cor0
----
-108
-124
-134

onlyif mysql # DIV for integer division: 
query I rowsort label-9310
SELECT - col1 DIV - 65 + - 75 FROM tab2
----
-74
-74
-75

skipif mysql # not compatible
query I rowsort label-9310
SELECT - col1 / - 65 + - 75 FROM tab2
----
-74
-74
-75

query I rowsort
SELECT 84 + 50 FROM tab1
----
134
134
134

query II rowsort
SELECT DISTINCT col2 AS col2, col1 AS col0 FROM tab2
----
23
51
40
77
58
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9313
SELECT COUNT( * ) AS col1, + CAST( - COUNT( * ) AS SIGNED ) col1 FROM tab1
----
3
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9313
SELECT COUNT ( * ) AS col1, + CAST ( - COUNT ( * ) AS INTEGER ) col1 FROM tab1
----
3
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9314
SELECT - col2 * + CAST( NULL AS SIGNED ) col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9314
SELECT - col2 * + CAST ( NULL AS INTEGER ) col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9315
SELECT SUM( ALL - col0 ) FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-9315
SELECT SUM ( ALL - col0 ) FROM tab0
----
-199

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9316
SELECT + ( CAST( NULL AS DECIMAL ) ) * + - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9316
SELECT + ( CAST ( NULL AS REAL ) ) * + - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9317
SELECT DISTINCT + CAST( + + AVG ( - - CAST( NULL AS SIGNED ) ) AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9317
SELECT DISTINCT + CAST ( + + AVG ( - - CAST ( NULL AS INTEGER ) ) AS INTEGER ) FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT ALL + col2 col1, - col1 AS col2, - col0 + + 24 + - col0 AS col0 FROM tab2 AS cor0
----
9 values hashing to 5ecf6f041a9c785510c0246705a0e0c2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 83 * - 59 col2, col0 AS col0 FROM tab1 AS cor0
----
-4897
51
-4897
85
-4897
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9320
SELECT ALL + MAX( DISTINCT - col2 ) FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-9320
SELECT ALL + MAX ( DISTINCT - col2 ) FROM tab2
----
-23

query I rowsort
SELECT 30 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89

onlyif mysql # aggregate syntax: 
query I rowsort label-9322
SELECT ALL + COUNT( * ) * + 71 AS col2 FROM tab0 AS cor0
----
213

skipif mysql # not compatible
query I rowsort label-9322
SELECT ALL + COUNT ( * ) * + 71 AS col2 FROM tab0 AS cor0
----
213

onlyif mysql # aggregate syntax: 
query I rowsort label-9323
SELECT DISTINCT COUNT( * ) col2 FROM tab0 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9323
SELECT DISTINCT COUNT ( * ) col2 FROM tab0 cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-9324
SELECT ALL + - SUM( ALL - col0 ), - MIN( - - col0 ) AS col0 FROM tab2 AS cor0
----
185
-46

skipif mysql # not compatible
query II rowsort label-9324
SELECT ALL + - SUM ( ALL - col0 ), - MIN ( - - col0 ) AS col0 FROM tab2 AS cor0
----
185
-46

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9325
SELECT 25 * + - CAST( NULL AS SIGNED ), 33 AS col2 FROM tab0 AS cor0
----
NULL
33
NULL
33
NULL
33

skipif mysql # not compatible
query II rowsort label-9325
SELECT 25 * + - CAST ( NULL AS INTEGER ), 33 AS col2 FROM tab0 AS cor0
----
NULL
33
NULL
33
NULL
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9326
SELECT ALL + col1 / - col2 / col2 + - col1 + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9326
SELECT ALL + col1 / - col2 / col2 + - col1 + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9327
SELECT DISTINCT - SUM( - CAST( NULL AS SIGNED ) ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9327
SELECT DISTINCT - SUM ( - CAST ( NULL AS INTEGER ) ) FROM tab1 cor0
----
NULL

query I rowsort
SELECT col0 + - 52 AS col1 FROM tab2
----
-6
12
23

query IIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0 WHERE NOT 43 IS NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query I rowsort
SELECT col2 * - ( + 65 ) * - col2 + 40 AS col0 FROM tab2
----
104040
218700
34425

query I rowsort
SELECT - col1 + col2 + - col1 AS col1 FROM tab1
----
-26
49
68

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 29 + - col1 > 48
----

query I rowsort
SELECT col0 + 33 AS col1 FROM tab0
----
120
130
48

query II rowsort
SELECT DISTINCT col1, + 7 AS col0 FROM tab2 cor0
----
51
7
67
7
77
7

onlyif mysql # aggregate syntax: 
query I rowsort label-9335
SELECT + COUNT( * ) * + 52 * + + 11 FROM tab0 AS cor0
----
1716

skipif mysql # not compatible
query I rowsort label-9335
SELECT + COUNT ( * ) * + 52 * + + 11 FROM tab0 AS cor0
----
1716

onlyif mysql # DIV for integer division: 
query I rowsort label-9336
SELECT + col1 DIV 62 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9336
SELECT + col1 / 62 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 82 + col2 * col0 col2 FROM tab1
----
4814
4933
6106

onlyif mysql # aggregate syntax: 
query I rowsort label-9338
SELECT - COUNT( * ) FROM tab2 WHERE + 52 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9338
SELECT - COUNT ( * ) FROM tab2 WHERE + 52 IS NOT NULL
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-9339
SELECT DISTINCT col0 + - col2 DIV - 73 AS col1 FROM tab1
----
52
85
91

skipif mysql # not compatible
query I rowsort label-9339
SELECT DISTINCT col0 + - col2 / - 73 AS col1 FROM tab1
----
52
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9340
SELECT COUNT( * ) * 9 AS col1 FROM tab0
----
27

skipif mysql # not compatible
query I rowsort label-9340
SELECT COUNT ( * ) * 9 AS col1 FROM tab0
----
27

query I rowsort
SELECT + col1 * - col1 - col2 AS col1 FROM tab1
----
-2277
-292
-84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 33 * + col1 col1 FROM tab0
----
2673
33
693

onlyif mysql # DIV for integer division: 
query I rowsort label-9343
SELECT DISTINCT 78 DIV col2 + col1 FROM tab1
----
14
48
6

skipif mysql # not compatible
query I rowsort label-9343
SELECT DISTINCT 78 / col2 + col1 FROM tab1
----
14
48
6

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NULL ) > + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9345
SELECT ALL - CAST( NULL AS SIGNED ) + 41 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9345
SELECT ALL - CAST ( NULL AS INTEGER ) + 41 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9346
SELECT DISTINCT ( col1 ) * + CAST( NULL AS SIGNED ) col1 FROM tab2 WHERE NOT NULL > NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9346
SELECT DISTINCT ( col1 ) * + CAST ( NULL AS INTEGER ) col1 FROM tab2 WHERE NOT NULL > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 34 IS NOT NULL
----

query I rowsort
SELECT + ( - col2 ) * + ( col0 ) FROM tab0
----
-705
-870
-9603

query I rowsort
SELECT - col0 - + 21 FROM tab0
----
-108
-118
-36

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT BETWEEN ( - 87 / - ( col2 / + col2 ) + 36 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9351
SELECT + CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT NULL = ( - 64 * col1 + 10 )
----

skipif mysql # not compatible
query I rowsort label-9351
SELECT + CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT NULL = ( - 64 * col1 + 10 )
----

query I rowsort
SELECT + col0 AS col0 FROM tab2 WHERE NOT col0 / col1 >= + col2
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9353
SELECT + SUM( ALL - col1 ) + - MAX( col1 ) AS col2 FROM tab2
----
-272

skipif mysql # not compatible
query I rowsort label-9353
SELECT + SUM ( ALL - col1 ) + - MAX ( col1 ) AS col2 FROM tab2
----
-272

query I rowsort
SELECT ALL - col1 FROM tab1 WHERE NOT ( - 39 + + col1 * + 68 ) >= - col2 * col1 - + col1
----

query I rowsort
SELECT DISTINCT ( 81 ) AS col2 FROM tab1
----
81

query III rowsort
SELECT * FROM tab1 WHERE col2 + + 38 NOT IN ( col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE - col2 NOT IN ( - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-9358
SELECT ALL + 33 DIV + col2 - col2 DIV 24 FROM tab2
----
-1
-2
1

skipif mysql # not compatible
query I rowsort label-9358
SELECT ALL + 33 / + col2 - col2 / 24 FROM tab2
----
-1
-2
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9359
SELECT - SUM( - 89 ) AS col0 FROM tab0
----
267

skipif mysql # not compatible
query I rowsort label-9359
SELECT - SUM ( - 89 ) AS col0 FROM tab0
----
267

query I rowsort
SELECT DISTINCT col0 * col0 + 42 FROM tab2 AS cor0 WHERE ( - 16 ) >= + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9361
SELECT DISTINCT + col1 DIV + 73 AS col0 FROM tab0 cor0 WHERE NOT - col0 + 86 IN ( col2 )
----
0
1

skipif mysql # not compatible
query I rowsort label-9361
SELECT DISTINCT + col1 / + 73 AS col0 FROM tab0 cor0 WHERE NOT - col0 + 86 IN ( col2 )
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9362
SELECT DISTINCT MIN( - 38 ) FROM tab0 AS cor0
----
-38

skipif mysql # not compatible
query I rowsort label-9362
SELECT DISTINCT MIN ( - 38 ) FROM tab0 AS cor0
----
-38

query I rowsort
SELECT + 11 - + 24 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL 29 AS col1 FROM tab1 AS cor0 WHERE NOT col0 NOT BETWEEN col1 AND col0
----
29
29
29

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 + col0 BETWEEN ( - col2 ) AND NULL
----

query I rowsort
SELECT - 64 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0
----
9 values hashing to 601ec439a72fb4786a9cb7a6547ace5e

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 92 BETWEEN NULL AND + col1 * col0 + - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9368
SELECT - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-9368
SELECT - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-9369
SELECT * FROM tab0 WHERE NOT CAST( + col1 AS DECIMAL ) + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-9369
SELECT * FROM tab0 WHERE NOT CAST ( + col1 AS REAL ) + CAST ( NULL AS INTEGER ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 91 col0 FROM tab0 AS cor0 CROSS JOIN tab1 WHERE - 86 <= 42 * - 52
----

query III rowsort
SELECT ALL * FROM tab2 WHERE ( col1 * + 15 + col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9372
SELECT ALL - 36 + MAX( ALL - ( + col2 ) + 27 ) FROM tab1 AS cor0
----
-68

skipif mysql # not compatible
query I rowsort label-9372
SELECT ALL - 36 + MAX ( ALL - ( + col2 ) + 27 ) FROM tab1 AS cor0
----
-68

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9373
SELECT + ( - CAST( NULL AS DECIMAL ) ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9373
SELECT + ( - CAST ( NULL AS REAL ) ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9374
SELECT DISTINCT - CAST( - col1 AS SIGNED ) + ( + col1 ) * + 23 FROM tab2 AS cor0
----
1224
1608
1848

skipif mysql # not compatible
query I rowsort label-9374
SELECT DISTINCT - CAST ( - col1 AS INTEGER ) + ( + col1 ) * + 23 FROM tab2 AS cor0
----
1224
1608
1848

query I rowsort
SELECT ALL + 67 + + ( + col1 ) FROM tab1 AS cor0
----
114
72
81

query I rowsort
SELECT ALL - col2 * 97 AS col1 FROM tab0 AS cor0
----
-4559
-9603
-970

query I rowsort
SELECT ALL col0 FROM tab1 cor0 WHERE + col1 IS NULL
----

query I rowsort
SELECT DISTINCT 95 + col1 FROM tab0 AS cor0
----
116
176
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9379
SELECT DISTINCT SUM( col0 ) * + 40 AS col0 FROM tab2 cor0
----
7400

skipif mysql # not compatible
query I rowsort label-9379
SELECT DISTINCT SUM ( col0 ) * + 40 AS col0 FROM tab2 cor0
----
7400

query I rowsort
SELECT DISTINCT col0 FROM tab2 AS cor0 WHERE NOT 86 IS NULL
----
46
64
75

onlyif mysql # DIV for integer division: 
query I rowsort label-9381
SELECT col1 DIV 99 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-9381
SELECT col1 / 99 col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col1 + 97 * col1 AS col1 FROM tab2 AS cor0
----
4998
6566
7546

query III rowsort
SELECT ALL * FROM tab0 WHERE ( + 3 * - col2 ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9384
SELECT ( + 67 ) * - 15 + - ( + 66 + COUNT( DISTINCT - col2 ) * 3 ) FROM tab2 WHERE NULL <> NULL
----
-1071

skipif mysql # not compatible
query I rowsort label-9384
SELECT ( + 67 ) * - 15 + - ( + 66 + COUNT ( DISTINCT - col2 ) * 3 ) FROM tab2 WHERE NULL <> NULL
----
-1071

onlyif mysql # aggregate syntax: 
query I rowsort label-9385
SELECT - MIN( ALL col2 ) AS col1 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-9385
SELECT - MIN ( ALL col2 ) AS col1 FROM tab0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-9386
SELECT DISTINCT SUM( ALL - - col0 ) * + 68 FROM tab0
----
13532

skipif mysql # not compatible
query I rowsort label-9386
SELECT DISTINCT SUM ( ALL - - col0 ) * + 68 FROM tab0
----
13532

onlyif mysql # aggregate syntax: 
query I rowsort label-9387
SELECT DISTINCT 44 + - + MAX( + col1 ) * COUNT( 62 / + col0 ) AS col0 FROM tab1
----
-97

skipif mysql # not compatible
query I rowsort label-9387
SELECT DISTINCT 44 + - + MAX ( + col1 ) * COUNT ( 62 / + col0 ) AS col0 FROM tab1
----
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9388
SELECT ALL - COUNT( * ) DIV COUNT( * ) FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-9388
SELECT ALL - COUNT ( * ) / COUNT ( * ) FROM tab2
----
-1

query I rowsort
SELECT + col2 * - - 47 + - col0 * 88 FROM tab2
----
-2967
-3752
-3874

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 88 + col1 / col0 < ( + col2 )
----
85
5
59
91
47
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9391
SELECT - 90 + + 95 - + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9391
SELECT - 90 + + 95 - + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 + 88 + col1 AS col2 FROM tab2
----
88
88
88

onlyif mysql # aggregate syntax: 
query I rowsort label-9393
SELECT ALL COUNT( * ) + + COUNT( * ) FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-9393
SELECT ALL COUNT ( * ) + + COUNT ( * ) FROM tab1
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9394
SELECT ALL * FROM tab2 AS cor0 WHERE - CAST( NULL AS SIGNED ) + + 53 < NULL
----

skipif mysql # not compatible
query III rowsort label-9394
SELECT ALL * FROM tab2 AS cor0 WHERE - CAST ( NULL AS INTEGER ) + + 53 < NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9395
SELECT ALL + + col1 / + + CAST( NULL AS DECIMAL ) + + col2 - col1 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9395
SELECT ALL + + col1 / + + CAST ( NULL AS REAL ) + + col2 - col1 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( 16 ) FROM tab2 WHERE ( - col1 / col2 ) IS NULL
----

query I rowsort
SELECT ALL + ( col0 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col2 * col2 - - col1 * - col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 85 > 70
----

query I rowsort
SELECT col0 - - 38 + - col2 FROM tab1 cor0
----
-7
61
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col1 col2, 65 FROM tab2 AS cor0
----
-51
65
-67
65
-77
65

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9401
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 - - col0 - + 46 * 17 * + CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9401
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 - - col0 - + 46 * 17 * + CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9402
SELECT ALL - COUNT( * ) FROM tab2 AS cor0 WHERE + 97 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9402
SELECT ALL - COUNT ( * ) FROM tab2 AS cor0 WHERE + 97 IS NULL
----
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 30 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL BETWEEN col2 AND - - col1
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9405
SELECT ALL col0 AS col1, + col0 DIV - - 86 AS col2 FROM tab0 AS cor0
----
15
0
87
1
97
1

skipif mysql # not compatible
query II rowsort label-9405
SELECT ALL col0 AS col1, + col0 / - - 86 AS col2 FROM tab0 AS cor0
----
15
0
87
1
97
1

query III rowsort
SELECT * FROM tab0 WHERE NOT - + 89 + - col2 - + col1 NOT BETWEEN ( + 54 ) AND ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9407
SELECT - COUNT( + 68 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-9407
SELECT - COUNT ( + 68 ) FROM tab2
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9408
SELECT ALL COUNT( + ( + - CAST( NULL AS SIGNED ) ) ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9408
SELECT ALL COUNT ( + ( + - CAST ( NULL AS INTEGER ) ) ) FROM tab0
----
0

query I rowsort
SELECT - ( col1 ) FROM tab1 AS cor0 WHERE NOT ( - col1 - + col2 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9410
SELECT ( + MIN( - - col1 ) ) FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-9410
SELECT ( + MIN ( - - col1 ) ) FROM tab1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9411
SELECT DISTINCT MIN( ALL - col0 ) * + + COUNT( * ) AS col2 FROM tab1
----
-273

skipif mysql # not compatible
query I rowsort label-9411
SELECT DISTINCT MIN ( ALL - col0 ) * + + COUNT ( * ) AS col2 FROM tab1
----
-273

query I rowsort
SELECT ALL - + col0 + + 33 - - + col0 + + 11 * col0 AS col2 FROM tab2 WHERE NULL <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9413
SELECT DISTINCT 97 DIV col2 + - - col2 + col2 AS col2 FROM tab1
----
119
137
193

skipif mysql # not compatible
query I rowsort label-9413
SELECT DISTINCT 97 / col2 + - - col2 + col2 AS col2 FROM tab1
----
119
137
193

onlyif mysql # aggregate syntax: 
query I rowsort label-9414
SELECT DISTINCT + SUM( - col2 ) AS col2 FROM tab2 cor0
----
-121

skipif mysql # not compatible
query I rowsort label-9414
SELECT DISTINCT + SUM ( - col2 ) AS col2 FROM tab2 cor0
----
-121

query I rowsort
SELECT DISTINCT col0 + col1 + - 22 + - 14 FROM tab2 AS cor0
----
105
106
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9416
SELECT + 84 + + - CAST( - col2 AS SIGNED ) - + 43 FROM tab1 AS cor0
----
100
109
137

skipif mysql # not compatible
query I rowsort label-9416
SELECT + 84 + + - CAST ( - col2 AS INTEGER ) - + 43 FROM tab1 AS cor0
----
100
109
137

query I rowsort
SELECT ALL + 59 + col2 * col0 FROM tab1 AS cor0
----
4955
5074
6247

onlyif mysql # aggregate syntax: 
query I rowsort label-9418
SELECT ALL + MAX( - col0 ) AS col2 FROM tab1 cor0
----
-51

skipif mysql # not compatible
query I rowsort label-9418
SELECT ALL + MAX ( - col0 ) AS col2 FROM tab1 cor0
----
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * + + col0 + + 18 col0 FROM tab0 cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT 67 + + col0 FROM tab2
----
113
131
142

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col1 FROM tab0 WHERE ( NULL ) IS NULL
----
15
87
97

query I rowsort
SELECT DISTINCT col1 * + + 86 + col2 AS col0 FROM tab0
----
1816
185
7013

query I rowsort
SELECT DISTINCT - ( + 20 ) * 14 AS col1 FROM tab2
----
-280

query I rowsort
SELECT DISTINCT - - col1 AS col2 FROM tab0 WHERE NULL = NULL
----

query I rowsort
SELECT - col2 + + col1 + - col2 AS col1 FROM tab2
----
-3
-49
5

query I rowsort
SELECT + col0 * - 75 AS col2 FROM tab0
----
-1125
-6525
-7275

query II rowsort
SELECT ALL + col0 AS col0, - col2 AS col1 FROM tab0
----
15
-47
87
-10
97
-99

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab0 WHERE NOT - - col2 * - col1 NOT BETWEEN - 23 AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 44 col1 FROM tab2, tab0 AS cor0
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9430
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + col0 + - 18 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9430
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + col0 + - 18 FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9431
SELECT + + col2 AS col0, col1 DIV - - 40 + - + ( col1 ) FROM tab0 cor0
----
10
-21
47
-79
99
-1

skipif mysql # not compatible
query II rowsort label-9431
SELECT + + col2 AS col0, col1 / - - 40 + - + ( col1 ) FROM tab0 cor0
----
10
-21
47
-79
99
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9432
SELECT 67 - - - COUNT( * ) AS col2 FROM tab2 cor0
----
64

skipif mysql # not compatible
query I rowsort label-9432
SELECT 67 - - - COUNT ( * ) AS col2 FROM tab2 cor0
----
64

query I rowsort
SELECT + 24 - - ( - 3 ) AS col1 FROM tab1 AS cor0
----
21
21
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - + col2 col0 FROM tab0 AS cor0
----
-196
-62
-97

query I rowsort
SELECT + 71 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

onlyif mysql # aggregate syntax: 
query I rowsort label-9436
SELECT ALL ( + MAX( col2 ) ) AS col1 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-9436
SELECT ALL ( + MAX ( col2 ) ) AS col1 FROM tab0
----
99

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 32 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - + 75 AS col2 FROM tab2 AS cor0
----
-75
-75
-75

query I rowsort
SELECT + col1 * - + col0 + + col1 AS col0 FROM tab2 AS cor0
----
-2295
-4851
-4958

query II rowsort
SELECT DISTINCT + - col1 * - col0 AS col1, - col1 + - col2 * - col0 + - - col0 AS col0 FROM tab1 AS cor0
----
425
5095
4277
6232
714
4933

query I rowsort
SELECT - ( + + 16 ) AS col2 FROM tab2 AS cor0
----
-16
-16
-16

query I rowsort
SELECT ALL - 31 * - 62 * - + 47 + - 42 AS col0 FROM tab0 AS cor0
----
-90376
-90376
-90376

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NOT - col2 IS NOT NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9444
SELECT ALL + 92 / + - 13 - + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9444
SELECT ALL + 92 / + - 13 - + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 FROM tab1 WHERE NOT - - 99 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE + + 82 IS NULL
----

query II rowsort
SELECT DISTINCT + col0, + 20 + - 27 * col1 * col2 AS col2 FROM tab2
----
46
-31651
64
-83140
75
-104902

onlyif mysql # aggregate syntax: 
query I rowsort label-9448
SELECT ALL - MIN( DISTINCT + 8 ) FROM tab1 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-9448
SELECT ALL - MIN ( DISTINCT + 8 ) FROM tab1 AS cor0
----
-8

query I rowsort
SELECT ALL - - 83 FROM tab0 AS cor0 WHERE NOT - 61 + + + 14 = + 58
----
83
83
83

onlyif mysql # aggregate syntax: 
query I rowsort label-9450
SELECT DISTINCT COUNT( - col1 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9450
SELECT DISTINCT COUNT ( - col1 ) AS col0 FROM tab2
----
3

query I rowsort
SELECT ALL + 40 * + 56 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b89fce6ab860c61954e0d0104f21abf6

query I rowsort
SELECT DISTINCT - - col1 + + 63 FROM tab1 AS cor0
----
110
68
77

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 12 BETWEEN + - col0 AND + col1 * - col1 + col0
----
85
5
59

query I rowsort
SELECT + 19 AS col1 FROM tab1 cor0
----
19
19
19

query I rowsort
SELECT ALL 32 + col2 + - col0 AS col2 FROM tab2 cor0
----
15
8
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9456
SELECT ALL + MIN( ALL - col0 ) DIV - ( + - COUNT( * ) ) + + 49 AS col1 FROM tab1 cor0
----
19

skipif mysql # not compatible
query I rowsort label-9456
SELECT ALL + MIN ( ALL - col0 ) / - ( + - COUNT ( * ) ) + + 49 AS col1 FROM tab1 cor0
----
19

query I rowsort
SELECT col1 AS col1 FROM tab1 WHERE - - col0 BETWEEN + col2 AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9458
SELECT DISTINCT MAX( - col0 ) FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-9458
SELECT DISTINCT MAX ( - col0 ) FROM tab0
----
-15

onlyif mysql # DIV for integer division: 
query II rowsort label-9459
SELECT DISTINCT 7 * + 47 - - 28 + - + 23 * + - 50 AS col1, col1 DIV col2 AS col0 FROM tab0
----
1507
0
1507
1
1507
2

skipif mysql # not compatible
query II rowsort label-9459
SELECT DISTINCT 7 * + 47 - - 28 + - + 23 * + - 50 AS col1, col1 / col2 AS col0 FROM tab0
----
1507
0
1507
1
1507
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 18 + + ( - 17 ) col0 FROM tab0
----
-35
-35
-35

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9461
SELECT 36 + - CAST( NULL AS DECIMAL ) col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9461
SELECT 36 + - CAST ( NULL AS REAL ) col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 64 + - + 91 FROM tab0
----
-27
-27
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-9463
SELECT - COUNT( * ) + - 10 FROM tab1
----
-13

skipif mysql # not compatible
query I rowsort label-9463
SELECT - COUNT ( * ) + - 10 FROM tab1
----
-13

query I rowsort
SELECT - 65 * - 79 + - col1 + - + ( 47 ) * + col1 FROM tab0 AS cor0
----
1247
4127
5087

query I rowsort
SELECT DISTINCT - col2 * - + 38 * col1 + + 77 AS col2 FROM tab1 AS cor0 WHERE - col2 IN ( - 48 )
----

query I rowsort
SELECT DISTINCT + 94 + 18 FROM tab0 AS cor0
----
112

onlyif mysql # aggregate syntax: 
query II rowsort label-9467
SELECT - COUNT( * ) AS col0, - COUNT( * ) FROM tab2
----
-3
-3

skipif mysql # not compatible
query II rowsort label-9467
SELECT - COUNT ( * ) AS col0, - COUNT ( * ) FROM tab2
----
-3
-3

query II rowsort
SELECT + col1, - col0 AS col2 FROM tab1
----
14
-51
47
-91
5
-85

query I rowsort
SELECT ALL 15 FROM tab2 WHERE ( NULL ) IS NULL
----
15
15
15

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT 92 IN ( + 12 + - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9471
SELECT ALL + SUM( - 21 ) * - + 67 AS col1 FROM tab2 AS cor0
----
4221

skipif mysql # not compatible
query I rowsort label-9471
SELECT ALL + SUM ( - 21 ) * - + 67 AS col1 FROM tab2 AS cor0
----
4221

query I rowsort
SELECT 15 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN - col2 AND ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9473
SELECT DISTINCT col1 DIV 89 + - col1 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-9473
SELECT DISTINCT col1 / 89 + - col1 FROM tab1 AS cor0
----
-14
-47
-5

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL >= + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9475
SELECT DISTINCT - MIN( + 2 ) FROM tab0
----
-2

skipif mysql # not compatible
query I rowsort label-9475
SELECT DISTINCT - MIN ( + 2 ) FROM tab0
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-9476
SELECT + COUNT( ALL - 27 ) AS col0, COUNT( * ) AS col0 FROM tab2
----
3
3

skipif mysql # not compatible
query II rowsort label-9476
SELECT + COUNT ( ALL - 27 ) AS col0, COUNT ( * ) AS col0 FROM tab2
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9477
SELECT + MAX( - 11 ) AS col1 FROM tab0
----
-11

skipif mysql # not compatible
query I rowsort label-9477
SELECT + MAX ( - 11 ) AS col1 FROM tab0
----
-11

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 >= + 49
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 55 * - 33 * - 86 col0 FROM tab2
----
156090
156090
156090

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9480
SELECT col2 * CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE NOT + ( col0 ) BETWEEN - col1 AND col2 / - 56 * + + ( + ( - - col0 ) ) / col2 - + + 84 * - - 61 * + col1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9480
SELECT col2 * CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE NOT + ( col0 ) BETWEEN - col1 AND col2 / - 56 * + + ( + ( - - col0 ) ) / col2 - + + 84 * - - 61 * + col1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - ( + 24 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( 76 * - - col0 * + 59 )
----

query II rowsort
SELECT 35 * + - col1 AS col1, col2 AS col2 FROM tab0 AS cor0
----
-2835
47
-35
99
-735
10

onlyif mysql # DIV for integer division: 
query I rowsort label-9483
SELECT DISTINCT + 81 DIV + 31 FROM tab2 cor0
----
2

skipif mysql # not compatible
query I rowsort label-9483
SELECT DISTINCT + 81 / + 31 FROM tab2 cor0
----
2

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT - col1 > col2 * - 60 + 43 * 85
----
15
81
47
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9485
SELECT + MIN( + - 45 ) AS col2 FROM tab0
----
-45

skipif mysql # not compatible
query I rowsort label-9485
SELECT + MIN ( + - 45 ) AS col2 FROM tab0
----
-45

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 50 IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN 60 + + col1 AND + 76
----

query I rowsort
SELECT DISTINCT 18 - col1 AS col2 FROM tab1 AS cor0
----
-29
13
4

query I rowsort
SELECT DISTINCT + col0 FROM tab1 AS cor0 WHERE ( NOT NULL IS NOT NULL )
----
51
85
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col0 * + 31 + col0 col2, - col0 - + col0 FROM tab2 cor0
----
-1380
-92
-1920
-128
-2250
-150

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 64 * col2 * + col1 + + col2 col2 FROM tab2 AS cor0
----
-197080
-248646
-75049

query I rowsort
SELECT + col0 * col2 + + col2 AS col1 FROM tab1 AS cor0
----
4992
5074
6256

query I rowsort
SELECT + - col0 + + - col0 FROM tab2 AS cor0
----
-128
-150
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-9494
SELECT + MIN( + - col2 ) FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-9494
SELECT + MIN ( + - col2 ) FROM tab0
----
-99

query I rowsort
SELECT col0 * + + col0 AS col1 FROM tab2
----
2116
4096
5625

query I rowsort
SELECT ALL - 16 AS col1 FROM tab1
----
-16
-16
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-9497
SELECT + MIN( ( + col0 ) ) FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-9497
SELECT + MIN ( ( + col0 ) ) FROM tab1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-9498
SELECT ALL COUNT( * ) - - + 72 FROM tab1
----
75

skipif mysql # not compatible
query I rowsort label-9498
SELECT ALL COUNT ( * ) - - + 72 FROM tab1
----
75

query I rowsort
SELECT col2 * + col2 * - col1 AS col0 FROM tab2
----
-123200
-225388
-26979

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9500
SELECT + 4, col1 + ( CAST( + - col2 AS SIGNED ) ) AS col1 FROM tab0 WHERE + + col1 <= - col1
----

skipif mysql # not compatible
query II rowsort label-9500
SELECT + 4, col1 + ( CAST ( + - col2 AS INTEGER ) ) AS col1 FROM tab0 WHERE + + col1 <= - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 56 col2 FROM tab0
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-9502
SELECT DISTINCT 59 * 16 + MAX( DISTINCT + col0 ) col1 FROM tab2
----
1019

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9502
SELECT DISTINCT 59 * 16 + MAX ( DISTINCT + col0 ) col1 FROM tab2
----
1019

onlyif mysql # aggregate syntax: 
query II rowsort label-9503
SELECT 46 * 87 AS col0, COUNT( * ) FROM tab0
----
4002
3

skipif mysql # not compatible
query II rowsort label-9503
SELECT 46 * 87 AS col0, COUNT ( * ) FROM tab0
----
4002
3

query I rowsort
SELECT ( + 67 ) - - col0 - + col1 * + + col0 FROM tab2
----
-2233
-4797
-4883

query I rowsort
SELECT ALL - ( + 60 ) + - 46 FROM tab0 cor0
----
-106
-106
-106

query II rowsort
SELECT ALL + + 42 + - 8 + 7 * - 45 * + col2 AS col1, - col1 AS col2 FROM tab0 AS cor0
----
-14771
-81
-31151
-1
-3116
-21

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 - + + 23 + - - ( - col0 ) - col0 + - - 27 * + col1 * - col1 IN ( - 84 * - + 26 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9508
SELECT + ( COUNT( * ) ) AS col2 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9508
SELECT + ( COUNT ( * ) ) AS col2 FROM tab1 cor0
----
3

query I rowsort
SELECT DISTINCT + - col1 FROM tab1 AS cor0 WHERE NOT - col0 IS NULL
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9510
SELECT - + MAX( ALL + - col2 ) FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-9510
SELECT - + MAX ( ALL + - col2 ) FROM tab0 AS cor0
----
10

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL IS NOT NULL )
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9512
SELECT ALL - col0 * CAST( col1 AS SIGNED ) col2 FROM tab0
----
-1215
-1827
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9512
SELECT ALL - col0 * CAST ( col1 AS INTEGER ) col2 FROM tab0
----
-1215
-1827
-97

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col2 * + - col1 * + col0 / col1 )
----

query I rowsort
SELECT - + col0 * ( - col2 ) AS col0 FROM tab0 AS cor0
----
705
870
9603

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 40 col1, col0 col0 FROM tab0 AS cor0
----
40
15
40
87
40
97

query I rowsort
SELECT + ( + - col2 ) AS col1 FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-9518
SELECT ALL - 57 * COUNT( - + col2 ) * - COUNT( * ) AS col0 FROM tab0 AS cor0
----
513

skipif mysql # not compatible
query I rowsort label-9518
SELECT ALL - 57 * COUNT ( - + col2 ) * - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
513

query I rowsort
SELECT + - 18 FROM tab1 AS cor0
----
-18
-18
-18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 34 col1, 15 + + - col0 + - 57 * col0 + + col2 * col1 * - - col1 AS col2 FROM tab1
----
34
-3440
34
144949
34
15873

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + + 0 < NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col2 NOT BETWEEN + 76 AND + col0
----

query I rowsort
SELECT DISTINCT col1 * - - col2 * - col2 FROM tab1
----
-129024
-17405
-217328

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL IN ( - + 19 + + col1, - col2 + col0 * + 21, col0 * + 25 * col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9525
SELECT ALL 52 DIV 4 DIV col0 * 28 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9525
SELECT ALL 52 / 4 / col0 * 28 AS col0 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9526
SELECT DISTINCT + COUNT( * ) + + 56 AS col1 FROM tab0 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-9526
SELECT DISTINCT + COUNT ( * ) + + 56 AS col1 FROM tab0 AS cor0
----
59

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9527
SELECT + COUNT( * ) * + 57 + - + CAST( NULL AS DECIMAL ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9527
SELECT + COUNT ( * ) * + 57 + - + CAST ( NULL AS REAL ) AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + ( - 24 ) AS col0 FROM tab0 AS cor0
----
-24
-24
-24

query I rowsort
SELECT DISTINCT col1 + + 54 AS col2 FROM tab2 AS cor0 WHERE ( + + 88 NOT BETWEEN NULL AND + 28 / + col0 - + 92 )
----
105
121
131

query I rowsort
SELECT - - 76 FROM tab0 AS cor0 WHERE col0 IS NULL
----

query I rowsort
SELECT col0 AS col0 FROM tab0 AS cor0 WHERE ( + col1 + + 92 <= NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9532
SELECT DISTINCT + COUNT( DISTINCT + - ( - col2 ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9532
SELECT DISTINCT + COUNT ( DISTINCT + - ( - col2 ) ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9533
SELECT DISTINCT + COUNT( * ) * - 84 + - + 59 * - 6 AS col2 FROM tab2
----
102

skipif mysql # not compatible
query I rowsort label-9533
SELECT DISTINCT + COUNT ( * ) * - 84 + - + 59 * - 6 AS col2 FROM tab2
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-9534
SELECT ALL COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9

skipif mysql # not compatible
query I rowsort label-9534
SELECT ALL COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-9535
SELECT - - 42 DIV - - col0 AS col2 FROM tab0 AS cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-9535
SELECT - - 42 / - - col0 AS col2 FROM tab0 AS cor0
----
0
0
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9536
SELECT - MAX( CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9536
SELECT - MAX ( CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9537
SELECT ALL - CAST( ( - 59 ) AS SIGNED ) + - COUNT( * ) FROM tab0 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-9537
SELECT ALL - CAST ( ( - 59 ) AS INTEGER ) + - COUNT ( * ) FROM tab0 AS cor0
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-9538
SELECT DISTINCT COUNT( * ) * COUNT( * ) + COUNT( * ) FROM tab2 AS cor0 WHERE + col1 IS NOT NULL
----
12

skipif mysql # not compatible
query I rowsort label-9538
SELECT DISTINCT COUNT ( * ) * COUNT ( * ) + COUNT ( * ) FROM tab2 AS cor0 WHERE + col1 IS NOT NULL
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9539
SELECT + 91 * - 10 / + - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9539
SELECT + 91 * - 10 / + - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9540
SELECT COUNT( * ) AS col2 FROM tab1 WHERE NULL <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-9540
SELECT COUNT ( * ) AS col2 FROM tab1 WHERE NULL <= NULL
----
0

query I rowsort
SELECT 87 + col1 FROM tab1
----
101
134
92

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL = ( + - col1 / 4 * col2 )
----

query II rowsort
SELECT ALL + ( + + col0 ) AS col2, - 21 AS col2 FROM tab0 WHERE NOT NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9544
SELECT ( + 24 ) + - MAX( col0 ) FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-9544
SELECT ( + 24 ) + - MAX ( col0 ) FROM tab2
----
-51

query II rowsort
SELECT DISTINCT + 48 AS col1, - col1 * + col2 FROM tab1 AS cor0
----
48
-1344
48
-295
48
-3196

query I rowsort
SELECT - col2 AS col0 FROM tab1 AS cor0 WHERE NOT + col1 IS NOT NULL
----

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 LEFT JOIN tab0 AS cor1 ON NULL <= NULL
----
18 values hashing to 18b19f89ce73392082a69acc4aed78f1

query I rowsort
SELECT ALL - - 15 * + - col2 AS col2 FROM tab0 AS cor0
----
-1485
-150
-705

query I rowsort
SELECT ALL + col0 * col1 * - + col0 AS col0 FROM tab0 AS cor0
----
-158949
-18225
-9409

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + col2 * col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9551
SELECT COUNT( * ) * + + 85 FROM tab0 AS cor0
----
255

skipif mysql # not compatible
query I rowsort label-9551
SELECT COUNT ( * ) * + + 85 FROM tab0 AS cor0
----
255

query I rowsort
SELECT ( 22 ) * - col2 FROM tab1 AS cor0
----
-1298
-1496
-2112

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - + col0 ) * + col1 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9554
SELECT CAST( 2 AS SIGNED ) + col0 AS col2 FROM tab0
----
17
89
99

skipif mysql # not compatible
query I rowsort label-9554
SELECT CAST ( 2 AS INTEGER ) + col0 AS col2 FROM tab0
----
17
89
99

query I rowsort
SELECT + col2 + 93 FROM tab1
----
152
161
189

query II rowsort
SELECT DISTINCT ( + 86 ) * - ( - col0 ) * + - col0, ( + col2 ) AS col1 FROM tab0
----
-19350
47
-650934
10
-809174
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + col1 * - 97 * 75 col1 FROM tab1
----
-101799
-341834
-36290

query I rowsort
SELECT ALL - col1 * - 83 AS col1 FROM tab1
----
1162
3901
415

onlyif mysql # DIV for integer division: 
query I rowsort label-9559
SELECT ALL + 80 DIV col2 + ( + col1 ) + col1 * col2 FROM tab2
----
1227
3159
3954

skipif mysql # not compatible
query I rowsort label-9559
SELECT ALL + 80 / col2 + ( + col1 ) + col1 * col2 FROM tab2
----
1227
3159
3954

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9560
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - col1 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9560
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - col1 AS col2 FROM tab0
----
NULL

query I rowsort
SELECT - 77 + - col1 AS col2 FROM tab2
----
-128
-144
-154

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9562
SELECT ALL 16 DIV - COUNT( * ) FROM tab2
----
-5

skipif mysql # not compatible
query I rowsort label-9562
SELECT ALL 16 / - COUNT ( * ) FROM tab2
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9563
SELECT ALL + col1 + - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9563
SELECT ALL + col1 + - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - ( col0 ) * col0 FROM tab1
----
-2601
-7225
-8281

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 33 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9566
SELECT + MAX( + col2 ) col0 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9566
SELECT + MAX ( + col2 ) col0 FROM tab1 AS cor0
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9567
SELECT DISTINCT - ( - col2 ) * + 51 + + col0 * + CAST( NULL AS SIGNED ) * + 50 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9567
SELECT DISTINCT - ( - col2 ) * + 51 + + col0 * + CAST ( NULL AS INTEGER ) * + 50 AS col0 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * + + 12 col0 FROM tab1 AS cor0
----
-1020
-1092
-612

query II rowsort
SELECT ALL col0, ( - col1 ) FROM tab2
----
46
-51
64
-77
75
-67

query I rowsort
SELECT - 48 + 84 AS col0 FROM tab2
----
36
36
36

query I rowsort
SELECT - - col1 + - - col2 FROM tab0 AS cor0
----
100
128
31

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 55 - + 30 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 88 AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-9574
SELECT + - MIN( - - 93 ) * COUNT( * ) AS col0 FROM tab1 cor0
----
-279

skipif mysql # not compatible
query I rowsort label-9574
SELECT + - MIN ( - - 93 ) * COUNT ( * ) AS col0 FROM tab1 cor0
----
-279

query I rowsort
SELECT ALL + col2 - - - ( col1 ) * - + 65 FROM tab1 AS cor0
----
1006
3123
384

query I rowsort
SELECT ALL - ( - - col2 ) AS col0 FROM tab2 AS cor0 WHERE - col0 * ( col1 ) IS NOT NULL
----
-23
-40
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9577
SELECT DISTINCT - CAST( NULL AS SIGNED ) - + + COUNT( * ) col1 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9577
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - + + COUNT ( * ) col1 FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9578
SELECT ALL + col2 DIV + 14 AS col1, + col1 AS col0 FROM tab0
----
0
21
3
81
7
1

skipif mysql # not compatible
query II rowsort label-9578
SELECT ALL + col2 / + 14 AS col1, + col1 AS col0 FROM tab0
----
0
21
3
81
7
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9579
SELECT COUNT( + col2 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9579
SELECT COUNT ( + col2 ) AS col0 FROM tab2
----
3

query I rowsort
SELECT 5 - - col1 FROM tab1
----
10
19
52

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL = + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9582
SELECT - 66 * + MIN( - col2 ) - - 23 AS col0 FROM tab2 WHERE NOT - + col0 * 45 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9582
SELECT - 66 * + MIN ( - col2 ) - - 23 AS col0 FROM tab2 WHERE NOT - + col0 * 45 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9583
SELECT + + COUNT( * ) * - COUNT( * ) FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-9583
SELECT + + COUNT ( * ) * - COUNT ( * ) FROM tab2 AS cor0
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 2 col0 FROM tab0 cor0
----
2
2
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9585
SELECT DISTINCT COUNT( * ) * + 66 AS col2 FROM tab2
----
198

skipif mysql # not compatible
query I rowsort label-9585
SELECT DISTINCT COUNT ( * ) * + 66 AS col2 FROM tab2
----
198

onlyif mysql # aggregate syntax: 
query I rowsort label-9586
SELECT + ( - COUNT( * ) ) col0 FROM tab2
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9586
SELECT + ( - COUNT ( * ) ) col0 FROM tab2
----
-3

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) >= - 0
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - - 34 = - col1
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 >= 11
----
85
5
59

onlyif mysql # DIV for integer division: 
query II rowsort label-9590
SELECT DISTINCT - + col1 AS col0, - col1 DIV - + 55 AS col0 FROM tab1 AS cor0
----
-14
0
-47
0
-5
0

skipif mysql # not compatible
query II rowsort label-9590
SELECT DISTINCT - + col1 AS col0, - col1 / - + 55 AS col0 FROM tab1 AS cor0
----
-14
0
-47
0
-5
0

query I rowsort
SELECT ALL + - 31 * - 73 + + + ( - col0 ) + col1 AS col1 FROM tab0 AS cor0
----
2167
2197
2329

onlyif mysql # aggregate syntax: 
query I rowsort label-9592
SELECT + + MAX( + + col2 ) FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-9592
SELECT + + MAX ( + + col2 ) FROM tab1 AS cor0
----
96

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 - + + 63 IS NOT NULL AND NOT 88 * + 70 NOT IN ( - col1 + + col1 - + + col0 + + 91 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9594
SELECT + ( - - COUNT( * ) ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9594
SELECT + ( - - COUNT ( * ) ) AS col2 FROM tab1 AS cor0
----
3

query II rowsort
SELECT DISTINCT - - 66 AS col2, 93 FROM tab1 AS cor0
----
66
93

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <> - 4
----

query I rowsort
SELECT ALL - col0 + + + col0 + - col2 FROM tab1 AS cor0
----
-59
-68
-96

query I rowsort
SELECT ALL - 29 * - 90 AS col2 FROM tab0 AS cor0
----
2610
2610
2610

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 31 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN NULL AND ( - + 17 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE col1 = + col0
----

query III rowsort
SELECT * FROM tab2 WHERE - 88 + - col2 IS NULL
----

query I rowsort
SELECT DISTINCT col0 * - 28 FROM tab2
----
-1288
-1792
-2100

query I rowsort
SELECT ALL - 12 AS col0 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9605
SELECT ALL + MAX( ALL - CAST( NULL AS SIGNED ) ) + + 53 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9605
SELECT ALL + MAX ( ALL - CAST ( NULL AS INTEGER ) ) + + 53 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9606
SELECT - - CAST( NULL AS SIGNED ) + - 79 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9606
SELECT - - CAST ( NULL AS INTEGER ) + - 79 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 10 + col2 * col0 FROM tab2 AS cor0
----
1068
2570
4360

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9608
SELECT + - col2 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9608
SELECT + - col2 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 * + 21 * + col1 AS col1 FROM tab2
----
24633
64680
81606

query I rowsort
SELECT DISTINCT - - col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
23
40
58

query I rowsort
SELECT ALL - 16 * col1 - - 16 FROM tab0
----
-1280
-320
0

query I rowsort
SELECT - ( - - col2 ) * col1 FROM tab2
----
-1173
-3080
-3886

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 33 IS NOT NULL
----

query I rowsort
SELECT - ( - ( + col1 ) ) FROM tab0
----
1
21
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9615
SELECT + + CAST( NULL AS SIGNED ) - 69 + COUNT( * ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9615
SELECT + + CAST ( NULL AS INTEGER ) - 69 + COUNT ( * ) FROM tab0 cor0
----
NULL

query I rowsort
SELECT - col2 - - + 17 AS col2 FROM tab0 AS cor0
----
-30
-82
7

query I rowsort
SELECT 1 - + col2 * - - col0 - - col2 FROM tab1 AS cor0
----
-4799
-4955
-6119

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9618
SELECT ALL CAST( + - 98 AS SIGNED ) + - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9618
SELECT ALL CAST ( + - 98 AS INTEGER ) + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 98 * 91 - + col2 - + ( + - 45 ) * col2 FROM tab0 cor0
----
-4562
-6850
-8478

onlyif mysql # aggregate syntax: 
query I rowsort label-9620
SELECT DISTINCT - 75 + SUM( ALL ( + - col2 ) ) AS col1 FROM tab1 AS cor0
----
-298

skipif mysql # not compatible
query I rowsort label-9620
SELECT DISTINCT - 75 + SUM ( ALL ( + - col2 ) ) AS col1 FROM tab1 AS cor0
----
-298

query I rowsort
SELECT DISTINCT - - col2 - - col0 * 3 FROM tab2 AS cor0
----
161
232
283

query I rowsort
SELECT col1 AS col1 FROM tab0 AS cor0 WHERE NOT + col2 / - col1 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9623
SELECT DISTINCT + CAST( NULL AS SIGNED ) / col0 * 6 * + col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9623
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / col0 * 6 * + col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL 97 AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
97
97
97

query I rowsort
SELECT ALL + col2 - col0 + + - col0 * + 78 AS col1 FROM tab2 WHERE NULL BETWEEN col2 AND NULL
----

query II rowsort
SELECT ALL - col2 AS col0, - 6 AS col2 FROM tab1
----
-59
-6
-68
-6
-96
-6

query II rowsort
SELECT 66, 12 * + - ( + col2 ) AS col2 FROM tab0
----
66
-1188
66
-120
66
-564

query I rowsort
SELECT - 64 * - col1 * + 47 AS col0 FROM tab0
----
243648
3008
63168

query II rowsort
SELECT ALL col1, col0 * 28 * col2 * - col0 AS col0 FROM tab2
----
51
-1362704
67
-9135000
77
-4587520

query III rowsort
SELECT ALL * FROM tab0 WHERE 42 * - 98 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9631
SELECT ALL col0 * + col1 + col1 * col1 FROM tab2 WHERE NOT + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) BETWEEN NULL AND + col1
----

skipif mysql # not compatible
query I rowsort label-9631
SELECT ALL col0 * + col1 + col1 * col1 FROM tab2 WHERE NOT + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) BETWEEN NULL AND + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9632
SELECT ALL 79 * 68 * ( - MIN( + + col2 ) ) FROM tab1
----
-316948

skipif mysql # not compatible
query I rowsort label-9632
SELECT ALL 79 * 68 * ( - MIN ( + + col2 ) ) FROM tab1
----
-316948

onlyif mysql # aggregate syntax: 
query I rowsort label-9633
SELECT - COUNT( * ) * + COUNT( * ) col0 FROM tab0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9633
SELECT - COUNT ( * ) * + COUNT ( * ) col0 FROM tab0
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0, - ( - 7 ) col1 FROM tab2
----
46
7
64
7
75
7

query I rowsort
SELECT DISTINCT - col0 * ( - col2 ) FROM tab0 AS cor0 WHERE NOT + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9636
SELECT ALL - ( - ( + COUNT( * ) ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9636
SELECT ALL - ( - ( + COUNT ( * ) ) ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9637
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-9637
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9638
SELECT DISTINCT + - COUNT( * ) FROM tab1 cor0 CROSS JOIN tab1 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-9638
SELECT DISTINCT + - COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab1 cor1
----
-9

query I rowsort
SELECT DISTINCT - col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 56 * + col2 * - 72 + - 19 FROM tab1 AS cor0
----
237869
274157
387053

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9641
SELECT DISTINCT - ( + CAST( + 83 AS SIGNED ) ) FROM tab0 AS cor0
----
-83

skipif mysql # not compatible
query I rowsort label-9641
SELECT DISTINCT - ( + CAST ( + 83 AS INTEGER ) ) FROM tab0 AS cor0
----
-83

query I rowsort
SELECT ALL + 21 * - ( ( + - col0 ) ) * col2 * - + col0 + col1 AS col0 FROM tab0 cor0
----
-1589469
-19561310
-221994

query II rowsort
SELECT ( + col1 ) + - - ( + 10 ) * - col2 * 67, + ( - col2 ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-39525
-59
-45513
-68
-64306
-96

query I rowsort
SELECT - ( - - col2 ) + + - 63 AS col0 FROM tab1 AS cor0
----
-122
-131
-159

onlyif mysql # aggregate syntax: 
query I rowsort label-9645
SELECT ALL + SUM( col0 ) col1 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9645
SELECT ALL + SUM ( col0 ) col1 FROM tab2 AS cor0
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-9646
SELECT DISTINCT MIN( - - col2 ) AS col0 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-9646
SELECT DISTINCT MIN ( - - col2 ) AS col0 FROM tab0
----
10

query I rowsort
SELECT + col0 + - + col2 AS col0 FROM tab0
----
-2
-32
77

query I rowsort
SELECT col0 * ( - 16 ) + - + col2 FROM tab1
----
-1419
-1524
-912

query I rowsort
SELECT 40 + - ( + col1 ) FROM tab1
----
-7
26
35

query II rowsort
SELECT ALL 27, col0 AS col0 FROM tab0
----
27
15
27
87
27
97

query I rowsort
SELECT DISTINCT + col1 * - - col1 + + col0 * + + col1 + - - col2 AS col0 FROM tab1
----
1006
509
6554

onlyif mysql # aggregate syntax: 
query I rowsort label-9652
SELECT DISTINCT ( ( + - COUNT( * ) ) ) AS col2 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-9652
SELECT DISTINCT ( ( + - COUNT ( * ) ) ) AS col2 FROM tab1
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9653
SELECT + COUNT( * ) DIV + SUM( + - col0 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9653
SELECT + COUNT ( * ) / + SUM ( + - col0 ) FROM tab2
----
0

query I rowsort
SELECT ALL + 10 + - col0 AS col0 FROM tab2 cor0
----
-36
-54
-65

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 + + col1 IN ( + col2 * col0 * + - col2, col2 * - col1 * + 52 + - col1 )
----

query I rowsort
SELECT DISTINCT + - 46 + - col2 FROM tab1 AS cor0 WHERE - col2 * + - 72 + + 71 * + - col1 <> + ( - - 50 )
----
-105
-114
-142

query II rowsort
SELECT DISTINCT + col2, col2 FROM tab2 AS cor0
----
23
23
40
40
58
58

query I rowsort
SELECT ALL 54 + - col1 FROM tab2
----
-13
-23
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9659
SELECT ALL - COUNT( * ) * - 1 AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-9659
SELECT ALL - COUNT ( * ) * - 1 AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9

query I rowsort
SELECT DISTINCT col1 + 96 FROM tab1
----
101
110
143

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9661
SELECT + 12 DIV 79 * + COUNT( * ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9661
SELECT + 12 / 79 * + COUNT ( * ) FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9662
SELECT ALL + ( + col2 ) * - CAST( col1 AS SIGNED ) FROM tab0 AS cor0
----
-210
-3807
-99

skipif mysql # not compatible
query I rowsort label-9662
SELECT ALL + ( + col2 ) * - CAST ( col1 AS INTEGER ) FROM tab0 AS cor0
----
-210
-3807
-99

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9663
SELECT - 62 DIV + + ( + col1 ) + + + col1 + + 58 + 98 FROM tab2 cor0 WHERE NOT 36 >= + CAST( + 64 AS SIGNED )
----
206
223
233

skipif mysql # not compatible
query I rowsort label-9663
SELECT - 62 / + + ( + col1 ) + + + col1 + + 58 + 98 FROM tab2 cor0 WHERE NOT 36 >= + CAST ( + 64 AS INTEGER )
----
206
223
233

onlyif mysql # DIV for integer division: 
query I rowsort label-9664
SELECT DISTINCT col2 * col0 DIV col1 AS col0 FROM tab2 AS cor0
----
20
33
64

skipif mysql # not compatible
query I rowsort label-9664
SELECT DISTINCT col2 * col0 / col1 AS col0 FROM tab2 AS cor0
----
20
33
64

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 - + - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - - col0 * - + 49 AS col1 FROM tab2 AS cor0
----
-2254
-3136
-3675

onlyif mysql # aggregate syntax: 
query I rowsort label-9667
SELECT - + COUNT( * ) FROM tab0 AS cor0 WHERE NOT - col2 * - + col2 * - col0 + - + 98 IN ( + 15, ( - - 37 ), col2, + + col2 )
----
-3

skipif mysql # not compatible
query I rowsort label-9667
SELECT - + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT - col2 * - + col2 * - col0 + - + 98 IN ( + 15, ( - - 37 ), col2, + + col2 )
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 60 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9669
SELECT + + SUM( DISTINCT + col1 ) AS col0 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-9669
SELECT + + SUM ( DISTINCT + col1 ) AS col0 FROM tab2 AS cor0
----
195

onlyif mysql # aggregate syntax: 
query II rowsort label-9670
SELECT DISTINCT - COUNT( * ), + 72 AS col0 FROM tab0
----
-3
72

skipif mysql # not compatible
query II rowsort label-9670
SELECT DISTINCT - COUNT ( * ), + 72 AS col0 FROM tab0
----
-3
72

query I rowsort
SELECT + col1 * + 10 AS col0 FROM tab0
----
10
210
810

query I rowsort
SELECT + ( - col1 ) * - col1 FROM tab1
----
196
2209
25

query I rowsort
SELECT ALL col2 * + + col0 AS col0 FROM tab0
----
705
870
9603

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 15 * - + col2 col2 FROM tab0
----
1485
150
705

onlyif mysql # DIV for integer division: 
query I rowsort label-9675
SELECT ALL - col0 DIV - 34 FROM tab2 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-9675
SELECT ALL - col0 / - 34 FROM tab2 AS cor0
----
1
1
2

query I rowsort
SELECT DISTINCT 70 * - col1 AS col1 FROM tab0 AS cor0
----
-1470
-5670
-70

query II rowsort
SELECT col0 AS col1, + col1 + col1 AS col0 FROM tab2
----
46
102
64
154
75
134

onlyif mysql # aggregate syntax: 
query I rowsort label-9678
SELECT MIN( ALL - + col1 ) FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-9678
SELECT MIN ( ALL - + col1 ) FROM tab2
----
-77

query I rowsort
SELECT DISTINCT - 2 + col1 + col2 AS col1 FROM tab0 AS cor0
----
126
29
98

query II rowsort
SELECT + 66 AS col2, - 99 FROM tab0 AS cor0
----
66
-99
66
-99
66
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9681
SELECT ALL - ( - 31 ) + + COUNT( * ) + + COUNT( * ) + 71 AS col1 FROM tab2 AS cor0
----
108

skipif mysql # not compatible
query I rowsort label-9681
SELECT ALL - ( - 31 ) + + COUNT ( * ) + + COUNT ( * ) + 71 AS col1 FROM tab2 AS cor0
----
108

query I rowsort
SELECT + - col2 * + col0 AS col0 FROM tab0 cor0
----
-705
-870
-9603

query I rowsort
SELECT DISTINCT 80 * + 42 FROM tab2
----
3360

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9684
SELECT DISTINCT - - CAST( + + COUNT( * ) AS SIGNED ) AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-9684
SELECT DISTINCT - - CAST ( + + COUNT ( * ) AS INTEGER ) AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col0 / col2 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9686
SELECT DISTINCT + COUNT( * ) + - 78 + + - 52 AS col0 FROM tab1
----
-127

skipif mysql # not compatible
query I rowsort label-9686
SELECT DISTINCT + COUNT ( * ) + - 78 + + - 52 AS col0 FROM tab1
----
-127

query II rowsort
SELECT DISTINCT + 69 + + col1 AS col1, + col2 AS col0 FROM tab2 AS cor0
----
120
23
136
58
146
40

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 40 NOT BETWEEN + col1 AND - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9689
SELECT + - MIN( DISTINCT - 11 ) * + + COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
99

skipif mysql # not compatible
query I rowsort label-9689
SELECT + - MIN ( DISTINCT - 11 ) * + + COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9690
SELECT COUNT( * ) * - ( + COUNT( * ) ) AS col0 FROM tab0, tab2 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-9690
SELECT COUNT ( * ) * - ( + COUNT ( * ) ) AS col0 FROM tab0, tab2 AS cor0
----
-81

query III rowsort
SELECT * FROM tab1 WHERE NOT + + col1 < - col1 * - 33
----

query I rowsort
SELECT ALL - - col0 * 41 AS col0 FROM tab2 AS cor0
----
1886
2624
3075

query I rowsort
SELECT ALL - 89 * 65 FROM tab2 cor0
----
-5785
-5785
-5785

query I rowsort
SELECT DISTINCT + - col0 AS col0 FROM tab0 AS cor0 WHERE NOT col2 * - - ( - 39 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col2 / + col2 AS col0 FROM tab1 AS cor0 WHERE NULL BETWEEN + 18 * + 99 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9696
SELECT MAX( DISTINCT + 5 ), 26 AS col0 FROM tab0
----
5
26

skipif mysql # not compatible
query II rowsort label-9696
SELECT MAX ( DISTINCT + 5 ), 26 AS col0 FROM tab0
----
5
26

onlyif mysql # DIV for integer division: 
query II rowsort label-9697
SELECT col0 * - - col1 AS col0, - col2 DIV + col1 AS col1 FROM tab2
----
2346
0
4928
0
5025
0

skipif mysql # not compatible
query II rowsort label-9697
SELECT col0 * - - col1 AS col0, - col2 / + col1 AS col1 FROM tab2
----
2346
0
4928
0
5025
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9698
SELECT ALL - COUNT( * ) * - ( - 77 ) FROM tab2
----
-231

skipif mysql # not compatible
query I rowsort label-9698
SELECT ALL - COUNT ( * ) * - ( - 77 ) FROM tab2
----
-231

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9699
SELECT DISTINCT + COUNT( + col0 ) AS col0 FROM tab2 WHERE + 20 * 32 NOT BETWEEN NULL AND + - CAST( NULL AS DECIMAL )
----
0

skipif mysql # not compatible
query I rowsort label-9699
SELECT DISTINCT + COUNT ( + col0 ) AS col0 FROM tab2 WHERE + 20 * 32 NOT BETWEEN NULL AND + - CAST ( NULL AS REAL )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9700
SELECT ALL - MAX( DISTINCT col1 ), COUNT( * ) AS col0 FROM tab0
----
-81
3

skipif mysql # not compatible
query II rowsort label-9700
SELECT ALL - MAX ( DISTINCT col1 ), COUNT ( * ) AS col0 FROM tab0
----
-81
3

query I rowsort
SELECT DISTINCT + col2 * - - col0 * col0 FROM tab1
----
249696
426275
563108

query I rowsort
SELECT DISTINCT col1 * col0 * col2 FROM tab1
----
25075
290836
68544

query I rowsort
SELECT - col1 * + col1 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1
-441
-6561

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 BETWEEN NULL AND + col1
----
75
67
58

onlyif mysql # DIV for integer division: 
query II rowsort label-9705
SELECT - + col2 DIV - 11 AS col2, col1 FROM tab0 AS cor0
----
0
21
4
81
9
1

skipif mysql # not compatible
query II rowsort label-9705
SELECT - + col2 / - 11 AS col2, col1 FROM tab0 AS cor0
----
0
21
4
81
9
1

query I rowsort
SELECT DISTINCT + col1 + - 1 * - col0 AS col1 FROM tab0 AS cor0
----
108
96
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 75 + + col1 col0 FROM tab2 AS cor0
----
126
142
152

query I rowsort
SELECT - - 22 * - col0 + + 24 FROM tab1 AS cor0
----
-1098
-1846
-1978

query I rowsort
SELECT - col0 + + ( ( col2 ) ) FROM tab2 AS cor0
----
-17
-23
-24

onlyif mysql # aggregate syntax: 
query II rowsort label-9710
SELECT DISTINCT - MIN( ALL - col2 ) * 3 AS col2, + COUNT( * ) FROM tab0 AS cor0
----
297
3

skipif mysql # not compatible
query II rowsort label-9710
SELECT DISTINCT - MIN ( ALL - col2 ) * 3 AS col2, + COUNT ( * ) FROM tab0 AS cor0
----
297
3

query I rowsort
SELECT ALL ( col1 ) + ( - col0 ) FROM tab1
----
-37
-44
-80

query II rowsort
SELECT col1 AS col1, col1 AS col1 FROM tab0
----
1
1
21
21
81
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9713
SELECT DISTINCT CAST( + + col1 AS SIGNED ) FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-9713
SELECT DISTINCT CAST ( + + col1 AS INTEGER ) FROM tab1
----
14
47
5

query II rowsort
SELECT DISTINCT - col0, + col2 AS col0 FROM tab0
----
-15
47
-87
10
-97
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9715
SELECT COUNT( * ) FROM tab1 WHERE ( ( NOT + col2 = NULL ) )
----
0

skipif mysql # not compatible
query I rowsort label-9715
SELECT COUNT ( * ) FROM tab1 WHERE ( ( NOT + col2 = NULL ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9716
SELECT COUNT( DISTINCT - - col1 ) + + 27 FROM tab2
----
30

skipif mysql # not compatible
query I rowsort label-9716
SELECT COUNT ( DISTINCT - - col1 ) + + 27 FROM tab2
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-9717
SELECT DISTINCT - SUM( ALL col1 ) FROM tab0 cor0
----
-103

skipif mysql # not compatible
query I rowsort label-9717
SELECT DISTINCT - SUM ( ALL col1 ) FROM tab0 cor0
----
-103

query I rowsort
SELECT - + col0 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) > + col0 * - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9719
SELECT - col0 / + - col0 + 85 * + ( + - CAST( NULL AS SIGNED ) ) AS col2, + col1 + col1 AS col0 FROM tab1 cor0
----
NULL
10
NULL
28
NULL
94

skipif mysql # not compatible
query II rowsort label-9719
SELECT - col0 / + - col0 + 85 * + ( + - CAST ( NULL AS INTEGER ) ) AS col2, + col1 + col1 AS col0 FROM tab1 cor0
----
NULL
10
NULL
28
NULL
94

query I rowsort
SELECT ALL 36 / - col0 FROM tab0 cor0 WHERE NOT + col2 IS NOT NULL
----

query I rowsort
SELECT ALL col2 FROM tab2 AS cor0 WHERE col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9722
SELECT ALL MAX( DISTINCT + col0 ) FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-9722
SELECT ALL MAX ( DISTINCT + col0 ) FROM tab1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9723
SELECT - + COUNT( * ) + + - 54 FROM tab0 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-9723
SELECT - + COUNT ( * ) + + - 54 FROM tab0 AS cor0
----
-57

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9724
SELECT DISTINCT + + col0 * + CAST( NULL AS DECIMAL ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9724
SELECT DISTINCT + + col0 * + CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + + 99 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

onlyif mysql # DIV for integer division: 
query I rowsort label-9726
SELECT + 74 * - col1 DIV - col1 FROM tab2
----
74
74
74

skipif mysql # not compatible
query I rowsort label-9726
SELECT + 74 * - col1 / - col1 FROM tab2
----
74
74
74

query I rowsort
SELECT DISTINCT + 19 * - col2 + + 43 FROM tab1 AS cor0
----
-1078
-1249
-1781

query II rowsort
SELECT - col1 * ( col2 ) + - col2 AS col1, + 69 + + col0 FROM tab1 AS cor0
----
-1440
120
-3264
160
-354
154

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL > - 19
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9730
SELECT ALL - 76 AS col1 FROM tab1 AS cor0 WHERE NULL <> + col0 / - + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-9730
SELECT ALL - 76 AS col1 FROM tab1 AS cor0 WHERE NULL <> + col0 / - + CAST ( NULL AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + ( - col2 ) col0, + col1 FROM tab2 cor0
----
-23
51
-40
77
-58
67

query I rowsort
SELECT ALL + - 6 * - 47 - + 98 FROM tab0 AS cor0
----
184
184
184

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9733
SELECT CAST( NULL AS SIGNED ) - + - SUM( - col0 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9733
SELECT CAST ( NULL AS INTEGER ) - + - SUM ( - col0 ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9734
SELECT DISTINCT 64 * - 83 * + 71 - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-377155

skipif mysql # not compatible
query I rowsort label-9734
SELECT DISTINCT 64 * - 83 * + 71 - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-377155

query I rowsort
SELECT DISTINCT col1 - + - 68 FROM tab0
----
149
69
89

query I rowsort
SELECT - 40 + + 85 FROM tab2
----
45
45
45

onlyif mysql # aggregate syntax: 
query I rowsort label-9737
SELECT ALL COUNT( * ) + MIN( - 33 ) FROM tab1
----
-30

skipif mysql # not compatible
query I rowsort label-9737
SELECT ALL COUNT ( * ) + MIN ( - 33 ) FROM tab1
----
-30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - col0 AS col0, col1 * + col2 + - ( + col1 ) col2 FROM tab2 AS cor0
----
-46
1122
-64
3003
-75
3819

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( 57 ) NOT BETWEEN + col2 AND NULL
----
75
67
58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9740
SELECT - col0, - CAST( NULL AS SIGNED ) * + - 29 AS col0 FROM tab0
----
-15
NULL
-87
NULL
-97
NULL

skipif mysql # not compatible
query II rowsort label-9740
SELECT - col0, - CAST ( NULL AS INTEGER ) * + - 29 AS col0 FROM tab0
----
-15
NULL
-87
NULL
-97
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE - + 22 + col1 * + - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 78 * + col2 AS col0 FROM tab0
----
3666
7722
780

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 + - 59 + - + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-9744
SELECT - - ( + COUNT( * ) ) AS col1, + COUNT( * ) FROM tab2 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-9744
SELECT - - ( + COUNT ( * ) ) AS col1, + COUNT ( * ) FROM tab2 AS cor0
----
3
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 <= NULL
----

query I rowsort
SELECT + col0 FROM tab1 AS cor0 WHERE NOT col0 < + 94 + + - col2
----
51
85
91

query II rowsort
SELECT - + col0, col2 + - + col0 AS col2 FROM tab1 AS cor0
----
-51
45
-85
-26
-91
-23

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 45 + ( + col2 ) = + - col1 * - 47 * - col0 + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-9749
SELECT DISTINCT + COUNT( * ) AS col2, ( - - 85 ) AS col0 FROM tab1 AS cor0
----
3
85

skipif mysql # not compatible
query II rowsort label-9749
SELECT DISTINCT + COUNT ( * ) AS col2, ( - - 85 ) AS col0 FROM tab1 AS cor0
----
3
85

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col1 > NULL
----

query I rowsort
SELECT 56 * col2 + - col1 AS col1 FROM tab2 AS cor0
----
1237
2163
3181

query III rowsort
SELECT col2, ( ( + col0 ) ) AS col0, - ( - 55 ) + - 92 AS col2 FROM tab2 AS cor0
----
9 values hashing to bd7ce802abc26d48d0dadbae9ce81a64

query IIIIII rowsort
SELECT ALL * FROM tab1, tab2 AS cor0 WHERE NULL IS NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

onlyif mysql # DIV for integer division: 
query I rowsort label-9754
SELECT col1 + - col0 + + col2 * + 15 + + + col0 DIV - - col0 AS col1 FROM tab1
----
1404
806
977

skipif mysql # not compatible
query I rowsort label-9754
SELECT col1 + - col0 + + col2 * + 15 + + + col0 / - - col0 AS col1 FROM tab1
----
1404
806
977

onlyif mysql # aggregate syntax: 
query I rowsort label-9755
SELECT SUM( - 81 ) * - - 91 + + 84 AS col2 FROM tab2
----
-22029

skipif mysql # not compatible
query I rowsort label-9755
SELECT SUM ( - 81 ) * - - 91 + + 84 AS col2 FROM tab2
----
-22029

query I rowsort
SELECT col0 + col1 + - 98 FROM tab2
----
-1
43
44

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 + - 76 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col0 + - col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE + ( - + col2 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-9760
SELECT ALL - col0 * + 12 DIV + + 2 AS col0 FROM tab1
----
-306
-510
-546

skipif mysql # not compatible
query I rowsort label-9760
SELECT ALL - col0 * + 12 / + + 2 AS col0 FROM tab1
----
-306
-510
-546

query I rowsort
SELECT + 80 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 35 + col1 col1 FROM tab2
----
102
112
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9763
SELECT DISTINCT + col0 + - CAST( - 8 AS SIGNED ) + 53 + 18 * + 84 FROM tab0 cor0
----
1588
1660
1670

skipif mysql # not compatible
query I rowsort label-9763
SELECT DISTINCT + col0 + - CAST ( - 8 AS INTEGER ) + 53 + 18 * + 84 FROM tab0 cor0
----
1588
1660
1670

query I rowsort
SELECT ALL 54 + - 45 - - 87 AS col2 FROM tab2 AS cor0
----
96
96
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9765
SELECT - MAX( ALL + col2 ) + + - SUM( + 39 ) AS col1 FROM tab0 cor0
----
-216

skipif mysql # not compatible
query I rowsort label-9765
SELECT - MAX ( ALL + col2 ) + + - SUM ( + 39 ) AS col1 FROM tab0 cor0
----
-216

query II rowsort
SELECT col0 AS col2, 44 AS col0 FROM tab1 AS cor0
----
51
44
85
44
91
44

onlyif mysql # aggregate syntax: 
query I rowsort label-9767
SELECT DISTINCT + + COUNT( ALL col1 ) FROM tab0 AS cor0 WHERE ( NOT ( col2 + + + 9 <> - col2 ) )
----
0

skipif mysql # not compatible
query I rowsort label-9767
SELECT DISTINCT + + COUNT ( ALL col1 ) FROM tab0 AS cor0 WHERE ( NOT ( col2 + + + 9 <> - col2 ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9768
SELECT DISTINCT - COUNT( * ) + + 39 * 32 AS col1 FROM tab2 WHERE NULL IS NULL
----
1245

skipif mysql # not compatible
query I rowsort label-9768
SELECT DISTINCT - COUNT ( * ) + + 39 * 32 AS col1 FROM tab2 WHERE NULL IS NULL
----
1245

query I rowsort
SELECT + col1 AS col2 FROM tab2 WHERE + - 33 NOT IN ( + + col2, col1 )
----
51
67
77

query III rowsort
SELECT * FROM tab2 WHERE NULL = col1
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col1 <= col0
----
15
81
47

onlyif mysql # DIV for integer division: 
query I rowsort label-9772
SELECT + col1 DIV + - 75 FROM tab0 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9772
SELECT + col1 / + - 75 FROM tab0 cor0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9773
SELECT DISTINCT + 3 * + SUM( DISTINCT - col0 ) * - COUNT( * ) FROM tab0 AS cor0
----
1791

skipif mysql # not compatible
query I rowsort label-9773
SELECT DISTINCT + 3 * + SUM ( DISTINCT - col0 ) * - COUNT ( * ) FROM tab0 AS cor0
----
1791

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 74 * ( col0 ) + - col2 * - - col1 * col0 col2 FROM tab2 AS cor0
----
-192384
-285900
-50554

query I rowsort
SELECT DISTINCT + 78 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
78

onlyif mysql # DIV for integer division: 
query I rowsort label-9776
SELECT ALL col1 DIV - - 23 AS col1 FROM tab1
----
0
0
2

skipif mysql # not compatible
query I rowsort label-9776
SELECT ALL col1 / - - 23 AS col1 FROM tab1
----
0
0
2

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 46 col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL <> NULL
----

query I rowsort
SELECT + col0 FROM tab1 AS cor0 WHERE NOT NULL = 40
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9780
SELECT + - col2 AS col1, - col0 * + ( - CAST( NULL AS DECIMAL ) ) FROM tab1 AS cor0
----
-59
NULL
-68
NULL
-96
NULL

skipif mysql # not compatible
query II rowsort label-9780
SELECT + - col2 AS col1, - col0 * + ( - CAST ( NULL AS REAL ) ) FROM tab1 AS cor0
----
-59
NULL
-68
NULL
-96
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9781
SELECT DISTINCT - col1 DIV col1 * + 2, - col2 col1 FROM tab1 AS cor0
----
-2
-59
-2
-68
-2
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9781
SELECT DISTINCT - col1 / col1 * + 2, - col2 col1 FROM tab1 AS cor0
----
-2
-59
-2
-68
-2
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 31 col1 FROM tab1 cor0
----
31
31
31

onlyif mysql # DIV for integer division: 
query I rowsort label-9783
SELECT - 6 * ( - 54 ) + col2 * col1 DIV + + col2 + + - 35 AS col1 FROM tab1 AS cor0
----
294
303
336

skipif mysql # not compatible
query I rowsort label-9783
SELECT - 6 * ( - 54 ) + col2 * col1 / + + col2 + + - 35 AS col1 FROM tab1 AS cor0
----
294
303
336

query I rowsort
SELECT - ( - col0 ) * + col1 FROM tab2 AS cor0
----
2346
4928
5025

query II rowsort
SELECT col2 * - col2 AS col1, col2 FROM tab2
----
-1600
40
-3364
58
-529
23

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL > col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9787
SELECT DISTINCT + 70 * - + CAST( - - COUNT( * ) AS SIGNED ) AS col1 FROM tab0
----
-210

skipif mysql # not compatible
query I rowsort label-9787
SELECT DISTINCT + 70 * - + CAST ( - - COUNT ( * ) AS INTEGER ) AS col1 FROM tab0
----
-210

onlyif mysql # aggregate syntax: 
query I rowsort label-9788
SELECT ALL - COUNT( ALL + col2 ) AS col2 FROM tab0 WHERE NOT - 92 > col0
----
-3

skipif mysql # not compatible
query I rowsort label-9788
SELECT ALL - COUNT ( ALL + col2 ) AS col2 FROM tab0 WHERE NOT - 92 > col0
----
-3

query I rowsort
SELECT 70 AS col0 FROM tab2 WHERE NOT ( - 46 ) IS NULL
----
70
70
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9790
SELECT + MIN( DISTINCT CAST( NULL AS SIGNED ) ) * COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9790
SELECT + MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) * COUNT ( * ) FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT 42 + - ( + col1 ) AS col2 FROM tab1
----
-5
28
37

onlyif mysql # aggregate syntax: 
query I rowsort label-9792
SELECT - COUNT( - 10 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-9792
SELECT - COUNT ( - 10 ) FROM tab0
----
-3

query III rowsort
SELECT * FROM tab2 WHERE col0 > NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 BETWEEN + 25 * - col2 AND NULL
----

query I rowsort
SELECT + + col0 FROM tab0 AS cor0 WHERE col2 <= col0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-9796
SELECT COUNT( * ) AS col2 FROM tab0 cor0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-9796
SELECT COUNT ( * ) AS col2 FROM tab0 cor0 WHERE NULL IS NULL
----
3

query II rowsort
SELECT + - 65 + - col0 AS col0, + 29 FROM tab0 AS cor0
----
-152
29
-162
29
-80
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9798
SELECT DISTINCT - 61 + - - CAST( - col1 AS SIGNED ) - - col1 AS col2 FROM tab0 AS cor0
----
-61

skipif mysql # not compatible
query I rowsort label-9798
SELECT DISTINCT - 61 + - - CAST ( - col1 AS INTEGER ) - - col1 AS col2 FROM tab0 AS cor0
----
-61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 64 col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e

query I rowsort
SELECT ALL - 0 FROM tab2 WHERE NOT NULL <= ( NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE - 56 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9802
SELECT + CAST( AVG ( - 18 ) AS SIGNED ) FROM tab0 cor0
----
-18

skipif mysql # not compatible
query I rowsort label-9802
SELECT + CAST ( AVG ( - 18 ) AS INTEGER ) FROM tab0 cor0
----
-18

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col1 IS NULL AND - 9 IS NULL
----

query I rowsort
SELECT - col1 - - col2 * - col2 FROM tab1 AS cor0
----
-3486
-4671
-9230

query I rowsort
SELECT 40 - + - col0 + 85 + ( 83 ) FROM tab0 AS cor0
----
223
295
305

query I rowsort
SELECT DISTINCT 23 + - 4 * + + 55 * + col2 FROM tab0 AS cor0
----
-10317
-21757
-2177

query I rowsort
SELECT ALL + - col0 + col2 - - + col1 AS col2 FROM tab0 AS cor0
----
-56
113
3

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9808
SELECT COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE col2 + + + col0 * + - col0 / ( + CAST( NULL AS DECIMAL ) ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-9808
SELECT COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE col2 + + + col0 * + - col0 / ( + CAST ( NULL AS REAL ) ) IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9809
SELECT + SUM( DISTINCT col2 ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
223

skipif mysql # not compatible
query I rowsort label-9809
SELECT + SUM ( DISTINCT col2 ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
223

query I rowsort
SELECT - col1 + - + col2 AS col0 FROM tab1
----
-110
-115
-64

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + + ( + + 25 ) NOT BETWEEN 40 * col1 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9812
SELECT + MIN( ALL + + col0 ) AS col0 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-9812
SELECT + MIN ( ALL + + col0 ) AS col0 FROM tab2
----
46

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 32 > NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9814
SELECT - 54 AS col1, - col0 DIV 51 FROM tab2
----
-54
-1
-54
-1
-54
0

skipif mysql # not compatible
query II rowsort label-9814
SELECT - 54 AS col1, - col0 / 51 FROM tab2
----
-54
-1
-54
-1
-54
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL BETWEEN NULL AND - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9816
SELECT - col1 * ( + - 50 ) DIV + col1 FROM tab2
----
50
50
50

skipif mysql # not compatible
query I rowsort label-9816
SELECT - col1 * ( + - 50 ) / + col1 FROM tab2
----
50
50
50

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 86 * - col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 48 * + - 89 col1 FROM tab1 AS cor0
----
-4272

onlyif mysql # aggregate syntax: 
query I rowsort label-9819
SELECT + MIN( - 48 ) AS col2 FROM tab2
----
-48

skipif mysql # not compatible
query I rowsort label-9819
SELECT + MIN ( - 48 ) AS col2 FROM tab2
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-9820
SELECT ( + COUNT( DISTINCT 40 ) ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-9820
SELECT ( + COUNT ( DISTINCT 40 ) ) FROM tab1
----
1

query I rowsort
SELECT - col1 - 63 FROM tab1
----
-110
-68
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 59 col0 FROM tab1
----
59
59
59

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 NOT BETWEEN NULL AND ( col1 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 35 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 93 + 79 AS col1 FROM tab2
----
172

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( - col0 * - col2 ) IS NOT NULL
----

query I rowsort
SELECT ALL - 81 + + col1 FROM tab2 WHERE NOT 14 - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9828
SELECT COUNT( * ) * 17 FROM tab0 WHERE NULL IS NULL
----
51

skipif mysql # not compatible
query I rowsort label-9828
SELECT COUNT ( * ) * 17 FROM tab0 WHERE NULL IS NULL
----
51

query I rowsort
SELECT ALL col0 - 18 FROM tab1 WHERE NOT ( 88 + - 0 * col1 ) < ( + col0 )
----
33
67

onlyif mysql # aggregate syntax: 
query I rowsort label-9830
SELECT COUNT( * ) * 44 + - MAX( ALL - col2 ) AS col1 FROM tab1 WHERE col1 IS NOT NULL
----
191

skipif mysql # not compatible
query I rowsort label-9830
SELECT COUNT ( * ) * 44 + - MAX ( ALL - col2 ) AS col1 FROM tab1 WHERE col1 IS NOT NULL
----
191

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9831
SELECT ALL + CAST( col2 AS SIGNED ) AS col1 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-9831
SELECT ALL + CAST ( col2 AS INTEGER ) AS col1 FROM tab2
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9832
SELECT + COUNT( col1 ) + MIN( - col2 ) * COUNT( * ) AS col1 FROM tab2 WHERE NULL IN ( col2 - - 92 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9832
SELECT + COUNT ( col1 ) + MIN ( - col2 ) * COUNT ( * ) AS col1 FROM tab2 WHERE NULL IN ( col2 - - 92 )
----
NULL

query I rowsort
SELECT 33 AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
33
33
33

onlyif mysql # aggregate syntax: 
query I rowsort label-9834
SELECT + COUNT( 57 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9834
SELECT + COUNT ( 57 ) FROM tab0
----
3

query I rowsort
SELECT 87 - col0 FROM tab1
----
-4
2
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9836
SELECT ALL + CAST( NULL AS SIGNED ) - ( col2 - + col0 * - col0 ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9836
SELECT ALL + CAST ( NULL AS INTEGER ) - ( col2 - + col0 * - col0 ) AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + ( - ( col0 ) ) * ( - col0 ) FROM tab0
----
225
7569
9409

query I rowsort
SELECT + 0 * - 59 FROM tab1 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 33 - - col0 * col2 col2 FROM tab1
----
4863
4982
6155

query I rowsort
SELECT DISTINCT - ( col0 ) FROM tab0 WHERE NULL > ( NULL )
----

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab0 WHERE col1 + + 72 IS NULL
----

query I rowsort
SELECT DISTINCT - ( + col2 ) AS col0 FROM tab0 WHERE ( col0 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9843
SELECT DISTINCT + 25 + COUNT( * ) AS col0 FROM tab0
----
28

skipif mysql # not compatible
query I rowsort label-9843
SELECT DISTINCT + 25 + COUNT ( * ) AS col0 FROM tab0
----
28

query I rowsort
SELECT col2 * col0 - col1 FROM tab2 WHERE NOT - col0 + col0 * + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9845
SELECT + 61 FROM tab0 WHERE NOT ( CAST( NULL AS SIGNED ) ) IS NOT NULL
----
61
61
61

skipif mysql # not compatible
query I rowsort label-9845
SELECT + 61 FROM tab0 WHERE NOT ( CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
61
61
61

query I rowsort
SELECT - 76 * - col0 FROM tab1
----
3876
6460
6916

query I rowsort
SELECT col1 - 24 AS col2 FROM tab2 WHERE NOT - col1 / + col2 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9848
SELECT COUNT( ALL + col2 ) + ( - SUM( ALL - 31 ) ) AS col2 FROM tab2
----
96

skipif mysql # not compatible
query I rowsort label-9848
SELECT COUNT ( ALL + col2 ) + ( - SUM ( ALL - 31 ) ) AS col2 FROM tab2
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9849
SELECT ALL + 15 + COUNT( * ) AS col1 FROM tab0
----
18

skipif mysql # not compatible
query I rowsort label-9849
SELECT ALL + 15 + COUNT ( * ) AS col1 FROM tab0
----
18

query I rowsort
SELECT ALL - col2 * - 18 FROM tab2
----
1044
414
720

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9851
SELECT CAST( NULL AS SIGNED ) + 52 * + col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9851
SELECT CAST ( NULL AS INTEGER ) + 52 * + col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9852
SELECT - MIN( 57 ) FROM tab1 AS cor0 WHERE col0 NOT IN ( - col0 * col1 + ( + col2 ) )
----
-57

skipif mysql # not compatible
query I rowsort label-9852
SELECT - MIN ( 57 ) FROM tab1 AS cor0 WHERE col0 NOT IN ( - col0 * col1 + ( + col2 ) )
----
-57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 24 + + col1 * col2 col1 FROM tab0 AS cor0
----
123
234
3831

onlyif mysql # aggregate syntax: 
query I rowsort label-9854
SELECT DISTINCT + COUNT( * ) + 24 FROM tab2 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-9854
SELECT DISTINCT + COUNT ( * ) + 24 FROM tab2 AS cor0
----
27

query I rowsort
SELECT ALL - col2 + - 6 AS col2 FROM tab2 AS cor0
----
-29
-46
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-9856
SELECT DISTINCT - COUNT( * ) * - 72 - - ( + 84 - - 32 ) FROM tab1 AS cor0
----
332

skipif mysql # not compatible
query I rowsort label-9856
SELECT DISTINCT - COUNT ( * ) * - 72 - - ( + 84 - - 32 ) FROM tab1 AS cor0
----
332

onlyif mysql # aggregate syntax: 
query I rowsort label-9857
SELECT DISTINCT + MIN( col2 ) FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-9857
SELECT DISTINCT + MIN ( col2 ) FROM tab0
----
10

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2 WHERE NULL <= ( + 37 )
----

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab0 WHERE + col0 <= ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col2 * col0 col0 FROM tab0
----
720
957
9700

query I rowsort
SELECT ALL + 42 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442

onlyif mysql # aggregate syntax: 
query I rowsort label-9862
SELECT - 61 + COUNT( * ) FROM tab0 AS cor0 WHERE + col1 + col2 IN ( + ( - 71 ) + col0 )
----
-61

skipif mysql # not compatible
query I rowsort label-9862
SELECT - 61 + COUNT ( * ) FROM tab0 AS cor0 WHERE + col1 + col2 IN ( + ( - 71 ) + col0 )
----
-61

query I rowsort
SELECT ALL + col0 + 12 AS col1 FROM tab1 AS cor0
----
103
63
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9864
SELECT ALL - MIN( ALL col0 ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-51

skipif mysql # not compatible
query I rowsort label-9864
SELECT ALL - MIN ( ALL col0 ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9865
SELECT DISTINCT CAST( NULL AS SIGNED ) / col0 + ( - 49 ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9865
SELECT DISTINCT CAST ( NULL AS INTEGER ) / col0 + ( - 49 ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - 62 * 8 AS col2 FROM tab2 AS cor0
----
-496
-496
-496

onlyif mysql # aggregate syntax: 
query I rowsort label-9867
SELECT + + COUNT( * ) col1 FROM tab0 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9867
SELECT + + COUNT ( * ) col1 FROM tab0 cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE 53 BETWEEN NULL AND ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9869
SELECT + - SUM( DISTINCT 60 ) FROM tab0 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-9869
SELECT + - SUM ( DISTINCT 60 ) FROM tab0 AS cor0
----
-60

query I rowsort
SELECT - ( - 93 ) AS col2 FROM tab1
----
93
93
93

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL = col2 + col2
----

query I rowsort
SELECT ALL col0 AS col2 FROM tab0 WHERE NOT - col2 * col2 = NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9873
SELECT ALL MAX( ( + CAST( - col1 AS SIGNED ) ) ) FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-9873
SELECT ALL MAX ( ( + CAST ( - col1 AS INTEGER ) ) ) FROM tab1
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9874
SELECT - ( - COUNT( * ) ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9874
SELECT - ( - COUNT ( * ) ) AS col0 FROM tab1
----
3

query III rowsort
SELECT ALL * FROM tab2 WHERE 42 = col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9876
SELECT + 53 * + COUNT( * ) + CAST( + COUNT( DISTINCT col2 ) AS SIGNED ) AS col2 FROM tab2 WHERE NOT NULL > + CAST( - col2 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-9876
SELECT + 53 * + COUNT ( * ) + CAST ( + COUNT ( DISTINCT col2 ) AS INTEGER ) AS col2 FROM tab2 WHERE NOT NULL > + CAST ( - col2 AS INTEGER )
----
0

query I rowsort
SELECT + 28 FROM tab1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 BETWEEN ( NULL ) AND ( 8 * col0 )
----

query I rowsort
SELECT DISTINCT + col2 * + 92 AS col0 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 col1 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( col0 )
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT col1 + 89 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT 80 AS col0, - 57 FROM tab0
----
80
-57
80
-57
80
-57

query I rowsort
SELECT ALL - 54 * 12 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b8962c65d734d62028177f0ace3bf31b

query I rowsort
SELECT col0 * 22 FROM tab2 WHERE NOT ( - + col0 / 51 ) NOT BETWEEN col0 AND ( - 72 * 21 )
----

query I rowsort
SELECT DISTINCT 61 * - + col0 FROM tab0
----
-5307
-5917
-915

query I rowsort
SELECT col0 + - col0 * ( - col0 ) AS col0 FROM tab2 WHERE NOT ( + col2 + col1 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 + ( 12 ) * - col1 FROM tab2 AS cor0
----
-566
-729
-860

query I rowsort
SELECT ALL + col1 FROM tab1 cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL 92 AS col2 FROM tab0 AS cor0
----
92
92
92

query I rowsort
SELECT ALL - col1 + - - 24 AS col0 FROM tab1 AS cor0
----
-23
10
19

onlyif mysql # aggregate syntax: 
query I rowsort label-9891
SELECT ALL 57 + - MIN( DISTINCT + 10 ) AS col2 FROM tab0 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-9891
SELECT ALL 57 + - MIN ( DISTINCT + 10 ) AS col2 FROM tab0 AS cor0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9892
SELECT - ( + COUNT( * ) ) AS col2 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9892
SELECT - ( + COUNT ( * ) ) AS col2 FROM tab0 cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col2, col0 FROM tab0 AS cor0
----
10
87
47
15
99
97

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( - 66 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9895
SELECT ALL + - ( - COUNT( * ) ) * - COUNT( DISTINCT col0 ) col1 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9895
SELECT ALL + - ( - COUNT ( * ) ) * - COUNT ( DISTINCT col0 ) col1 FROM tab1 AS cor0
----
-9

query I rowsort
SELECT ALL - ( ( - + col0 ) ) * + col2 AS col1 FROM tab1
----
4896
5015
6188

onlyif mysql # DIV for integer division: 
query I rowsort label-9897
SELECT DISTINCT col1 DIV + ( + col0 ) FROM tab2
----
0
1

skipif mysql # not compatible
query I rowsort label-9897
SELECT DISTINCT col1 / + ( + col0 ) FROM tab2
----
0
1

query I rowsort
SELECT - col1 + - 77 FROM tab1
----
-124
-82
-91

query I rowsort
SELECT + 74 * - + col0 + - 48 AS col2 FROM tab0
----
-1158
-6486
-7226

query III rowsort
SELECT * FROM tab0 WHERE ( - + 97 + col2 ) BETWEEN ( + col1 ) AND NULL
----

query I rowsort
SELECT - ( - col0 ) + + 88 AS col2 FROM tab2
----
134
152
163

query I rowsort
SELECT DISTINCT col1 + + ( - 78 ) FROM tab0
----
-57
-77
3

query I rowsort
SELECT DISTINCT + col2 - col2 + - col1 * - col0 FROM tab0 AS cor0
----
1215
1827
97

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 2 >= NULL
----

query I rowsort
SELECT - 41 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN - col1 AND col1 * col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9906
SELECT ALL + col0 DIV 81 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-9906
SELECT ALL + col0 / 81 FROM tab1
----
0
1
1

query I rowsort
SELECT ALL col1 - + 77 FROM tab1
----
-30
-63
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-9908
SELECT DISTINCT - 71 DIV - col0 FROM tab0
----
0
4

skipif mysql # not compatible
query I rowsort label-9908
SELECT DISTINCT - 71 / - col0 FROM tab0
----
0
4

query I rowsort
SELECT DISTINCT 3 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1 WHERE NULL IS NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9910
SELECT - CAST( NULL AS SIGNED ) / 12 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9910
SELECT - CAST ( NULL AS INTEGER ) / 12 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - 35 * - - col2 AS col2 FROM tab2
----
-1400
-2030
-805

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - - col1 ) > ( NULL )
----

query I rowsort
SELECT - col1 - - 30 AS col1 FROM tab2 cor0
----
-21
-37
-47

query I rowsort
SELECT + 77 - + col2 * ( - col0 ) AS col1 FROM tab0 cor0
----
782
947
9680

query I rowsort
SELECT + ( - 24 ) FROM tab1 AS cor0
----
-24
-24
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-9916
SELECT - - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( 9 ) AND + col1 / col1
----
0

skipif mysql # not compatible
query I rowsort label-9916
SELECT - - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( 9 ) AND + col1 / col1
----
0

query II rowsort
SELECT - col2 AS col1, - 8 FROM tab1 AS cor0
----
-59
-8
-68
-8
-96
-8

query III rowsort
SELECT ALL * FROM tab2 WHERE ( ( NOT - col2 + 44 IN ( col0 ) ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9919
SELECT col2 AS col1, CAST( - col1 AS SIGNED ) * col1 FROM tab0
----
10
-441
47
-6561
99
-1

skipif mysql # not compatible
query II rowsort label-9919
SELECT col2 AS col1, CAST ( - col1 AS INTEGER ) * col1 FROM tab0
----
10
-441
47
-6561
99
-1

query I rowsort
SELECT ALL ( + 32 ) AS col2 FROM tab1
----
32
32
32

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9921
SELECT + col0 + + CAST( NULL AS DECIMAL ) * + col0 AS col2 FROM tab1 WHERE NOT col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9921
SELECT + col0 + + CAST ( NULL AS REAL ) * + col0 AS col2 FROM tab1 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9922
SELECT CAST( + COUNT( * ) AS SIGNED ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9922
SELECT CAST ( + COUNT ( * ) AS INTEGER ) AS col1 FROM tab2
----
3

query II rowsort
SELECT col0 AS col0, - 76 AS col2 FROM tab0
----
15
-76
87
-76
97
-76

query I rowsort
SELECT DISTINCT - col2 + col1 * + 3 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9925
SELECT + MAX( + col2 ) FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-9925
SELECT + MAX ( + col2 ) FROM tab2
----
58

query II rowsort
SELECT DISTINCT - col2 AS col1, - 50 FROM tab0
----
-10
-50
-47
-50
-99
-50

query I rowsort
SELECT ALL + col2 FROM tab2 WHERE NOT + col1 < - col2
----
23
40
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( ( 42 ) ) col2 FROM tab2
----
42
42
42

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9929
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 67 * col0 * + CAST( + col0 AS SIGNED ) IN ( - col2 )
----

skipif mysql # not compatible
query III rowsort label-9929
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 67 * col0 * + CAST ( + col0 AS INTEGER ) IN ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9930
SELECT DISTINCT MIN( DISTINCT + col1 ) FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-9930
SELECT DISTINCT MIN ( DISTINCT + col1 ) FROM tab1 AS cor0
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-9931
SELECT ALL 27 DIV - col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9931
SELECT ALL 27 / - col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1
0
0

query III rowsort
SELECT * FROM tab0 WHERE NOT 48 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL + col2 + + ( col2 ), col1 FROM tab0 AS cor0
----
198
1
20
21
94
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9934
SELECT ALL + COUNT( + 21 ) col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9934
SELECT ALL + COUNT ( + 21 ) col2 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-9935
SELECT + + SUM( DISTINCT + col2 ) + - 27 col0, MIN( DISTINCT + - col1 ) FROM tab0 cor0
----
129
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9935
SELECT + + SUM ( DISTINCT + col2 ) + - 27 col0, MIN ( DISTINCT + - col1 ) FROM tab0 cor0
----
129
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-9936
SELECT DISTINCT col1 * 82 + - - 13 DIV - col1 FROM tab0 AS cor0
----
1722
6642
69

skipif mysql # not compatible
query I rowsort label-9936
SELECT DISTINCT col1 * 82 + - - 13 / - col1 FROM tab0 AS cor0
----
1722
6642
69

query I rowsort
SELECT DISTINCT - - col2 * + 96 FROM tab2 AS cor0
----
2208
3840
5568

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT col0 BETWEEN col0 AND ( + ( - - 80 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9939
SELECT DISTINCT + + ( CAST( - - col2 AS SIGNED ) ) + - + 70 * col1 FROM tab0 AS cor0
----
-1460
-5623
29

skipif mysql # not compatible
query I rowsort label-9939
SELECT DISTINCT + + ( CAST ( - - col2 AS INTEGER ) ) + - + 70 * col1 FROM tab0 AS cor0
----
-1460
-5623
29

onlyif mysql # DIV for integer division: 
query I rowsort label-9940
SELECT ALL col2 DIV + ( + col2 ) AS col1 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9940
SELECT ALL col2 / + ( + col2 ) AS col1 FROM tab1
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - col1 * + - col2 col2 FROM tab0
----
100
231
3888

query I rowsort
SELECT DISTINCT 31 * + 20 * 35 FROM tab2
----
21700

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9943
SELECT CAST( NULL AS SIGNED ) * - 79 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9943
SELECT CAST ( NULL AS INTEGER ) * - 79 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT 22 * + 64 FROM tab0
----
1408
1408
1408

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9945
SELECT col2 * - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9945
SELECT col2 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT 30 * - 71 FROM tab2
----
-2130
-2130
-2130

onlyif mysql # aggregate syntax: 
query I rowsort label-9947
SELECT DISTINCT COUNT( * ) * - 41 FROM tab1
----
-123

skipif mysql # not compatible
query I rowsort label-9947
SELECT DISTINCT COUNT ( * ) * - 41 FROM tab1
----
-123

query I rowsort
SELECT col2 * + col1 * + + 31 AS col1 FROM tab1
----
41664
9145
99076

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9949
SELECT + col1 AS col1 FROM tab2 WHERE - 14 + col2 - + - CAST( NULL AS SIGNED ) * - col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9949
SELECT + col1 AS col1 FROM tab2 WHERE - 14 + col2 - + - CAST ( NULL AS INTEGER ) * - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9950
SELECT COUNT( * ) * 29 FROM tab2
----
87

skipif mysql # not compatible
query I rowsort label-9950
SELECT COUNT ( * ) * 29 FROM tab2
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-9951
SELECT DISTINCT MIN( ALL - col2 ) FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-9951
SELECT DISTINCT MIN ( ALL - col2 ) FROM tab2
----
-58

query III rowsort
SELECT * FROM tab1 WHERE col2 + + col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 - + + 96 col0 FROM tab0 AS cor0
----
-81
-9
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 col1 FROM tab0 cor0 WHERE NULL IS NULL AND NOT NULL IS NOT NULL
----
1
21
81

query I rowsort
SELECT col2 + - col0 AS col2 FROM tab0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9956
SELECT ( + COUNT( * ) ) AS col2, + CAST( NULL AS SIGNED ) + COUNT( * ) AS col0 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9
NULL

skipif mysql # not compatible
query II rowsort label-9956
SELECT ( + COUNT ( * ) ) AS col2, + CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col0 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9
NULL

query I rowsort
SELECT + - col1 * - ( - col2 ) + col2 FROM tab0 AS cor0
----
-200
-3760
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9958
SELECT - + CAST( COUNT( * ) AS SIGNED ) AS col0, COUNT( * ) * - + COUNT( * ) * COUNT( * ) AS col2 FROM tab2 AS cor0
----
-3
-27

skipif mysql # not compatible
query II rowsort label-9958
SELECT - + CAST ( COUNT ( * ) AS INTEGER ) AS col0, COUNT ( * ) * - + COUNT ( * ) * COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-3
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-9959
SELECT + 56 DIV - + col1 - - + 17 + - + col0 * - 35 FROM tab0 AS cor0
----
3060
3356
542

skipif mysql # not compatible
query I rowsort label-9959
SELECT + 56 / - + col1 - - + 17 + - + col0 * - 35 FROM tab0 AS cor0
----
3060
3356
542

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 BETWEEN + - col2 AND + 63
----
85
5
59
91
47
68

query I rowsort
SELECT DISTINCT - 94 * + 60 FROM tab1 AS cor0
----
-5640

query III rowsort
SELECT * FROM tab2 WHERE NOT + - 79 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 80 col0 FROM tab1
----
-80

query II rowsort
SELECT DISTINCT - col2 AS col1, col0 AS col1 FROM tab2
----
-23
46
-40
64
-58
75

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL <= + - col1
----

query II rowsort
SELECT ALL col0 AS col2, col1 FROM tab1
----
51
14
85
5
91
47

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 85 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9968
SELECT + - CAST( NULL AS SIGNED ) * col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9968
SELECT + - CAST ( NULL AS INTEGER ) * col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9969
SELECT + - CAST( + + 29 AS SIGNED ) FROM tab2 AS cor0
----
-29
-29
-29

skipif mysql # not compatible
query I rowsort label-9969
SELECT + - CAST ( + + 29 AS INTEGER ) FROM tab2 AS cor0
----
-29
-29
-29

query I rowsort
SELECT - + 49 * - col1 AS col0 FROM tab1 AS cor0
----
2303
245
686

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 + ( - col0 ) AS col0, col0 col2 FROM tab2 AS cor0
----
-104
64
-133
75
-69
46

query I rowsort
SELECT ALL ( + 47 ) AS col0 FROM tab0
----
47
47
47

query I rowsort
SELECT ALL + + ( + - col2 ) + 71 FROM tab0 AS cor0
----
-28
24
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9974
SELECT ALL + COUNT( ALL + CAST( NULL AS SIGNED ) ) * + COUNT( * ) AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9974
SELECT ALL + COUNT ( ALL + CAST ( NULL AS INTEGER ) ) * + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT + col0 + - 32 * 47 FROM tab1 AS cor0
----
-1413
-1419
-1453

query II rowsort
SELECT - col2 AS col1, 13 FROM tab0 AS cor0
----
-10
13
-47
13
-99
13

query I rowsort
SELECT + - ( col2 ) FROM tab0 WHERE + 40 IS NULL
----

query II rowsort
SELECT DISTINCT - ( col1 ), - col1 * col1 AS col0 FROM tab2
----
-51
-2601
-67
-4489
-77
-5929

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 5 BETWEEN ( - col1 ) AND col2 + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9980
SELECT - COUNT( * ) FROM tab1 WHERE + - col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9980
SELECT - COUNT ( * ) FROM tab1 WHERE + - col0 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9981
SELECT + SUM( ALL col2 ) FROM tab0 WHERE ( NOT NULL BETWEEN col1 AND - col0 + - col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9981
SELECT + SUM ( ALL col2 ) FROM tab0 WHERE ( NOT NULL BETWEEN col1 AND - col0 + - col1 )
----
NULL

query I rowsort
SELECT - col1 + col1 * + col1 FROM tab0
----
0
420
6480

query I rowsort
SELECT ALL - - 15 AS col0 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + 75 + + 33 + - col2 FROM tab0
----
61
9
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9985
SELECT + + 76 * - + 49 * + + 50 * + 18 + + + CAST( NULL AS SIGNED ) + - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9985
SELECT + + 76 * - + 49 * + + 50 * + 18 + + + CAST ( NULL AS INTEGER ) + - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - 88 * + col0 FROM tab1 AS cor0
----
4488
7480
8008

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 * + ( + 52 ) * - col2 + 58 > + 44
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 * col1 * - - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9989
SELECT - COUNT( * ), + ( + + 6 ) AS col1 FROM tab0
----
-3
6

skipif mysql # not compatible
query II rowsort label-9989
SELECT - COUNT ( * ), + ( + + 6 ) AS col1 FROM tab0
----
-3
6

query I rowsort
SELECT DISTINCT + col0 * + col1 AS col0 FROM tab2
----
2346
4928
5025

query I rowsort
SELECT DISTINCT col0 * - 16 + col0 * - col2 + - - col0 AS col0 FROM tab0 AS cor0
----
-11058
-2175
-930

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 37 - - col1 < col2
----
91
47
68

onlyif mysql # DIV for integer division: 
query I rowsort label-9993
SELECT DISTINCT - - col1 DIV - ( + ( 79 ) ) AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9993
SELECT DISTINCT - - col1 / - ( + ( 79 ) ) AS col1 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9994
SELECT + - col1 + 51 - - 76 - - - 78 * - col2 * CAST( NULL AS SIGNED ) col0 FROM tab0 AS cor0 WHERE NOT col0 BETWEEN NULL AND col1
----
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9994
SELECT + - col1 + 51 - - 76 - - - 78 * - col2 * CAST ( NULL AS INTEGER ) col0 FROM tab0 AS cor0 WHERE NOT col0 BETWEEN NULL AND col1
----
NULL
NULL

query I rowsort
SELECT ALL ( - + col2 ) FROM tab0 cor0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9996
SELECT DISTINCT ( - COUNT( * ) ) AS col2 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-9996
SELECT DISTINCT ( - COUNT ( * ) ) AS col2 FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9997
SELECT - COUNT( DISTINCT col2 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-9997
SELECT - COUNT ( DISTINCT col2 ) FROM tab2
----
-3

query II rowsort
SELECT ALL 47 * - col0 AS col0, col2 FROM tab2
----
-2162
23
-3008
40
-3525
58

query I rowsort
SELECT ALL - 79 + 42 FROM tab2 WHERE NULL IS NULL
----
-37
-37
-37

