sqllogictest
Artifact Content
Not logged in

Artifact 6220d2de364558a5e0e0cf1a11cde8d378af76fb:


hash-threshold 8

statement ok
CREATE TABLE tab0(col0 INTEGER, col1 INTEGER, col2 INTEGER)

statement ok
CREATE TABLE tab1(col0 INTEGER, col1 INTEGER, col2 INTEGER)

statement ok
CREATE TABLE tab2(col0 INTEGER, col1 INTEGER, col2 INTEGER)

statement ok
INSERT INTO tab0 VALUES(97,1,99)

statement ok
INSERT INTO tab0 VALUES(15,81,47)

statement ok
INSERT INTO tab0 VALUES(87,21,10)

statement ok
INSERT INTO tab1 VALUES(51,14,96)

statement ok
INSERT INTO tab1 VALUES(85,5,59)

statement ok
INSERT INTO tab1 VALUES(91,47,68)

statement ok
INSERT INTO tab2 VALUES(64,77,40)

statement ok
INSERT INTO tab2 VALUES(75,67,58)

statement ok
INSERT INTO tab2 VALUES(46,51,23)

query I rowsort
SELECT ALL - col2 + - 70 FROM tab1 AS cor0
----
-129
-138
-166

query I rowsort
SELECT + col1 + - 86 AS col2 FROM tab2 cor0
----
-19
-35
-9

query I rowsort
SELECT - col1 + 29 AS col1 FROM tab1 cor0
----
-18
15
24

query I rowsort
SELECT + 6 + - + 26 AS col2 FROM tab1
----
-20
-20
-20

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

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

query I rowsort
SELECT - col1 + + - 11 FROM tab2
----
-62
-78
-88

query III rowsort
SELECT * FROM tab2 WHERE NULL <= 31
----

query I rowsort
SELECT col1 AS col0 FROM tab1 WHERE 38 * + 59 NOT BETWEEN ( - col2 ) AND ( + 45 )
----
14
47
5

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

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

query I rowsort
SELECT - 81 * - col0 FROM tab1 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-10
SELECT DISTINCT COUNT( DISTINCT + 30 ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-10
SELECT DISTINCT COUNT ( DISTINCT + 30 ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

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

query I rowsort
SELECT - col0 - + col1 * + col1 FROM tab0 AS cor0
----
-528
-6576
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-13
SELECT + 20 * ( COUNT( * ) ) FROM tab0, tab1 cor0
----
180

skipif mysql # not compatible
query I rowsort label-13
SELECT + 20 * ( COUNT ( * ) ) FROM tab0, tab1 cor0
----
180

onlyif mysql # DIV for integer division: 
query I rowsort label-14
SELECT DISTINCT + col1 * - col0 DIV col0 * col1 + 69 FROM tab2
----
-2532
-4420
-5860

skipif mysql # not compatible
query I rowsort label-14
SELECT DISTINCT + col1 * - col0 / col0 * col1 + 69 FROM tab2
----
-2532
-4420
-5860

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 * + 24 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 56 BETWEEN - 74 AND ( - col2 )
----
15
81
47
87
21
10

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

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

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

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

query I rowsort
SELECT DISTINCT 41 * col2 FROM tab1 AS cor0
----
2419
2788
3936

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

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

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

query I rowsort
SELECT DISTINCT + ( - col0 ) * - 65 + + col0 AS col1 FROM tab2
----
3036
4224
4950

query I rowsort
SELECT ALL - ( ( - 36 ) ) FROM tab2 WHERE NOT NULL < - - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-25
SELECT DISTINCT col0 col1 FROM tab1 WHERE NOT NULL <= + CAST( - ( + 37 ) AS SIGNED )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-25
SELECT DISTINCT col0 col1 FROM tab1 WHERE NOT NULL <= + CAST ( - ( + 37 ) AS INTEGER )
----

query I rowsort
SELECT DISTINCT - col0 * + 27 FROM tab2
----
-1242
-1728
-2025

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

skipif mysql # not compatible
query I rowsort label-27
SELECT DISTINCT - ( - col1 ) / - + CAST ( NULL AS INTEGER ) + 62 AS col2 FROM tab1
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-29
SELECT DISTINCT COUNT( * ) DIV + 45 AS col1, 95 FROM tab0
----
0
95

skipif mysql # not compatible
query II rowsort label-29
SELECT DISTINCT COUNT ( * ) / + 45 AS col1, 95 FROM tab0
----
0
95

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - 56 ) col1 FROM tab1 AS cor0
----
-56

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

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

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

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 * - col0 <> - col1
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-37
SELECT DISTINCT col2 DIV - - col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-37
SELECT DISTINCT col2 / - - col0 FROM tab2
----
0

query II rowsort
SELECT ALL col0, - col0 + 23 AS col2 FROM tab1
----
51
-28
85
-62
91
-68

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-39
SELECT + - 44 * 83 DIV col2 * + + CAST( + + col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-4650
-5824
-7268

skipif mysql # not compatible
query I rowsort label-39
SELECT + - 44 * 83 / col2 * + + CAST ( + + col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-4650
-5824
-7268

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-43
SELECT ALL MAX( ALL + col0 ) * 73 AS col2 FROM tab0 AS cor0
----
7081

skipif mysql # not compatible
query I rowsort label-43
SELECT ALL MAX ( ALL + col0 ) * 73 AS col2 FROM tab0 AS cor0
----
7081

query I rowsort
SELECT DISTINCT col1 + + col2 * + col0 * - 13 FROM tab2 AS cor0
----
-13703
-33203
-56483

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - ( + - col1 ) + 1 ) IN ( + 74 + col1 )
----

query I rowsort
SELECT ALL + col1 * - col1 + + ( + 22 ) + + col2 FROM tab2
----
-2556
-4409
-5867

onlyif mysql # aggregate syntax: 
query I rowsort label-47
SELECT DISTINCT 51 + - - COUNT( * ) AS col1 FROM tab0
----
54

skipif mysql # not compatible
query I rowsort label-47
SELECT DISTINCT 51 + - - COUNT ( * ) AS col1 FROM tab0
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-48
SELECT DISTINCT * FROM tab0 WHERE NULL > + - CAST( + col1 AS SIGNED ) + - col2
----

skipif mysql # not compatible
query III rowsort label-48
SELECT DISTINCT * FROM tab0 WHERE NULL > + - CAST ( + col1 AS INTEGER ) + - col2
----

query I rowsort
SELECT ALL - col2 + - 99 FROM tab1
----
-158
-167
-195

query III rowsort
SELECT ALL * FROM tab0 WHERE - - col1 + + col0 - col2 + + + ( - 86 ) * 67 * + col0 NOT BETWEEN + col1 AND ( NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 18 + + - 4 + col1 * - + 91 FROM tab0
----
-1897
-7357
-77

query I rowsort
SELECT 33 * + + 58 + + - 87 + 78 + - 73 * + + col2 * + col0 FROM tab0
----
-49560
-61605
-699114

query I rowsort
SELECT ALL 49 - + + col1 + - - col2 * col2 * + col2 FROM tab2
----
12165
195094
63972

query I rowsort
SELECT col2 + + + 11 FROM tab2
----
34
51
69

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

query II rowsort
SELECT DISTINCT - col2 AS col2, 71 AS col2 FROM tab1
----
-59
71
-68
71
-96
71

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

onlyif mysql # DIV for integer division: 
query I rowsort label-58
SELECT ALL - col2 + - - 59 DIV - col2 FROM tab2
----
-25
-41
-59

skipif mysql # not compatible
query I rowsort label-58
SELECT ALL - col2 + - - 59 / - col2 FROM tab2
----
-25
-41
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-59
SELECT DISTINCT 7 - - COUNT( ALL + 76 ) col2 FROM tab1 AS cor0
----
10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-59
SELECT DISTINCT 7 - - COUNT ( ALL + 76 ) col2 FROM tab1 AS cor0
----
10

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 col1 FROM tab2 AS cor0 WHERE NOT ( - col0 ) <= NULL
----

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

query II rowsort
SELECT ALL ( + ( + - col0 ) ) AS col1, - 65 + + col0 FROM tab0
----
-15
-50
-87
22
-97
32

query I rowsort
SELECT DISTINCT ( + col0 ) * - col0 + + col2 FROM tab2
----
-2093
-4056
-5567

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

query I rowsort
SELECT DISTINCT 45 FROM tab1 AS cor0 WHERE - col0 IS NULL
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-68
SELECT col2 DIV - 97 - col0 - 65 * 52 AS col2 FROM tab1 AS cor0
----
-3431
-3465
-3471

skipif mysql # not compatible
query I rowsort label-68
SELECT col2 / - 97 - col0 - 65 * 52 AS col2 FROM tab1 AS cor0
----
-3431
-3465
-3471

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-69
SELECT ALL CAST( NULL AS SIGNED ) * 8 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-69
SELECT ALL CAST ( NULL AS INTEGER ) * 8 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT 91 * col2 AS col1 FROM tab2
----
2093
3640
5278

query I rowsort
SELECT DISTINCT + ( + col1 ) FROM tab2 WHERE NOT ( col2 ) NOT IN ( col1 + - col2, 70 / 6 + - 45 )
----

query I rowsort
SELECT 9 * - - col2 * col1 FROM tab0
----
1890
34263
891

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-73
SELECT - CAST( + + col1 AS SIGNED ) AS col0 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-73
SELECT - CAST ( + + col1 AS INTEGER ) AS col0 FROM tab2
----
-51
-67
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-74
SELECT ( + CAST( COUNT( * ) AS SIGNED ) ) * + CAST( NULL AS SIGNED ) / - - 78 FROM tab0
----
NULL

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

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

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

query II rowsort
SELECT ALL 90, 17 AS col1 FROM tab0
----
90
17
90
17
90
17

onlyif mysql # aggregate syntax: 
query I rowsort label-77
SELECT - MAX( DISTINCT - col0 ) * - ( + COUNT( * ) ) AS col2 FROM tab2
----
-138

skipif mysql # not compatible
query I rowsort label-77
SELECT - MAX ( DISTINCT - col0 ) * - ( + COUNT ( * ) ) AS col2 FROM tab2
----
-138

query I rowsort
SELECT - 36 AS col2 FROM tab2 AS cor0 WHERE NOT col1 >= NULL
----

query I rowsort
SELECT ALL + + col0 * - 38 AS col1 FROM tab1 AS cor0
----
-1938
-3230
-3458

onlyif mysql # aggregate syntax: 
query I rowsort label-80
SELECT ALL 61 * - COUNT( DISTINCT col0 ) FROM tab1
----
-183

skipif mysql # not compatible
query I rowsort label-80
SELECT ALL 61 * - COUNT ( DISTINCT col0 ) FROM tab1
----
-183

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

skipif mysql # not compatible
query I rowsort label-81
SELECT - COUNT ( * ) AS col0 FROM ( tab2 cor0 CROSS JOIN tab2 AS cor1 )
----
-9

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 / - col2 <= NULL
----

query I rowsort
SELECT col1 + - - col2 + - + 29 AS col0 FROM tab0 cor0
----
2
71
99

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( - col2 ) >= 69
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 30 * - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-86
SELECT - + SUM( DISTINCT - col2 ) + - + 91 FROM tab0 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-86
SELECT - + SUM ( DISTINCT - col2 ) + - + 91 FROM tab0 AS cor0
----
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - + 30 * 83 col2 FROM tab1 AS cor0
----
-2399
-2405
-2439

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

onlyif mysql # DIV for integer division: 
query I rowsort label-89
SELECT - 90 DIV 7 - + ( - + 8 ) DIV + 50 col1 FROM tab0 AS cor0
----
-12
-12
-12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-89
SELECT - 90 / 7 - + ( - + 8 ) / + 50 col1 FROM tab0 AS cor0
----
-12
-12
-12

query II rowsort
SELECT ALL - col2 + + col1 + + col2 * col1, col0 AS col0 FROM tab0 AS cor0
----
1
97
221
87
3841
15

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

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

query I rowsort
SELECT ALL - col1 + ( 30 ) FROM tab0 AS cor0
----
-51
29
9

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

query II rowsort
SELECT DISTINCT col2 + + + ( col2 ), col2 FROM tab2
----
116
58
46
23
80
40

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-96
SELECT DISTINCT 13 - - col2 - - - col0 DIV + + 64 AS col1 FROM tab1
----
109
71
80

skipif mysql # not compatible
query I rowsort label-96
SELECT DISTINCT 13 - - col2 - - - col0 / + + 64 AS col1 FROM tab1
----
109
71
80

onlyif mysql # aggregate syntax: 
query I rowsort label-97
SELECT - SUM( DISTINCT - - 88 ) FROM tab1
----
-88

skipif mysql # not compatible
query I rowsort label-97
SELECT - SUM ( DISTINCT - - 88 ) FROM tab1
----
-88

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-100
SELECT DISTINCT - - 42 DIV + col1 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-100
SELECT DISTINCT - - 42 / + col1 AS col2 FROM tab2 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-101
SELECT ALL + - 45 DIV - + 59 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-101
SELECT ALL + - 45 / - + 59 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - - 84 AS col0 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8

query I rowsort
SELECT ALL - + 92 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1af709a79a3e56281ffdce4d931d5965

query I rowsort
SELECT ALL 86 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

onlyif mysql # aggregate syntax: 
query I rowsort label-105
SELECT + SUM( ALL - 65 ) FROM tab0 AS cor0 WHERE NOT NULL >= 49 + - 41 / 39 * col1 * col1 * - 76
----
NULL

skipif mysql # not compatible
query I rowsort label-105
SELECT + SUM ( ALL - 65 ) FROM tab0 AS cor0 WHERE NOT NULL >= 49 + - 41 / 39 * col1 * col1 * - 76
----
NULL

query I rowsort
SELECT - - ( 45 ) FROM tab0 AS cor0
----
45
45
45

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

query II rowsort
SELECT ALL + col0 AS col2, col0 + + col1 AS col0 FROM tab0 AS cor0
----
15
96
87
108
97
98

onlyif mysql # aggregate syntax: 
query II rowsort label-109
SELECT DISTINCT + COUNT( * ) AS col0, COUNT( DISTINCT - + col0 ) + 49 FROM tab2 AS cor0
----
3
52

skipif mysql # not compatible
query II rowsort label-109
SELECT DISTINCT + COUNT ( * ) AS col0, COUNT ( DISTINCT - + col0 ) + 49 FROM tab2 AS cor0
----
3
52

query I rowsort
SELECT ALL + - ( - + col2 ) AS col0 FROM tab0 AS cor0
----
10
47
99

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col1 / - 56 + 20 + - col2 IS NOT NULL
----

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL >= - 63 + - col0 + + - 30
----

onlyif mysql # aggregate syntax: 
query I rowsort label-114
SELECT - - COUNT( - - col2 ) + + 37 FROM tab2 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-114
SELECT - - COUNT ( - - col2 ) + + 37 FROM tab2 AS cor0
----
40

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

query I rowsort
SELECT col1 - - col0 AS col0 FROM tab1 WHERE NULL IS NULL
----
138
65
90

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-118
SELECT + COUNT( * ) * + - 11 AS col1 FROM tab0
----
-33

skipif mysql # not compatible
query I rowsort label-118
SELECT + COUNT ( * ) * + - 11 AS col1 FROM tab0
----
-33

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-120
SELECT - col0 * + col0 - - + col2 AS col1, CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
-178
NULL
-7559
NULL
-9310
NULL

skipif mysql # not compatible
query II rowsort label-120
SELECT - col0 * + col0 - - + col2 AS col1, CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
-178
NULL
-7559
NULL
-9310
NULL

query I rowsort
SELECT DISTINCT col2 * + - ( 57 ) AS col0 FROM tab1 AS cor0
----
-3363
-3876
-5472

query I rowsort
SELECT ALL - + 99 + + col2 AS col0 FROM tab0 AS cor0
----
-52
-89
0

query I rowsort
SELECT 51 * + col0 AS col1 FROM tab2 cor0
----
2346
3264
3825

query I rowsort
SELECT ALL + - 0 * + col2 AS col0 FROM tab1 cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab2 WHERE - col1 BETWEEN + 48 AND - - 48
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-126
SELECT ALL - CAST( NULL AS DECIMAL ) - + + 63 - + 61 + + 36 + - col0 - 18 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-126
SELECT ALL - CAST ( NULL AS REAL ) - + + 63 - + 61 + + 36 + - col0 - 18 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT col1 + - 42 FROM tab2
----
25
35
9

query I rowsort
SELECT DISTINCT + col0 + - col1 - + 6 * + 43 * - col2 - col1 AS col1 FROM tab1
----
15297
17541
24791

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-129
SELECT ( MIN( DISTINCT + CAST( NULL AS DECIMAL ) ) ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-129
SELECT ( MIN ( DISTINCT + CAST ( NULL AS REAL ) ) ) AS col0 FROM tab1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-130
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col1 * + - ( - 22 ) + + + CAST( - - 41 AS DECIMAL ) < - 0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-130
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col1 * + - ( - 22 ) + + + CAST ( - - 41 AS REAL ) < - 0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

onlyif mysql # aggregate syntax: 
query I rowsort label-132
SELECT DISTINCT + COUNT( DISTINCT + 98 ) AS col1 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-132
SELECT DISTINCT + COUNT ( DISTINCT + 98 ) AS col1 FROM tab1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-133
SELECT + 23 DIV 8 FROM tab0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-133
SELECT + 23 / 8 FROM tab0
----
2
2
2

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

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 = 19
----

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

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

query I rowsort
SELECT 50 + - col0 AS col1 FROM tab1
----
-1
-35
-41

query I rowsort
SELECT + 96 + 70 FROM tab2
----
166
166
166

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-141
SELECT ALL 50, + CAST( + col1 AS SIGNED ) AS col1 FROM tab0
----
50
1
50
21
50
81

skipif mysql # not compatible
query II rowsort label-141
SELECT ALL 50, + CAST ( + col1 AS INTEGER ) AS col1 FROM tab0
----
50
1
50
21
50
81

onlyif mysql # aggregate syntax: 
query I rowsort label-142
SELECT + COUNT( * ) * - + 24 FROM tab0
----
-72

skipif mysql # not compatible
query I rowsort label-142
SELECT + COUNT ( * ) * - + 24 FROM tab0
----
-72

query I rowsort
SELECT - 77 * - + col2 * + 36 FROM tab1
----
163548
188496
266112

query I rowsort
SELECT DISTINCT ( + 17 ) FROM tab0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-145
SELECT + 43 * - + MIN( 79 ) AS col0 FROM tab2
----
-3397

skipif mysql # not compatible
query I rowsort label-145
SELECT + 43 * - + MIN ( 79 ) AS col0 FROM tab2
----
-3397

onlyif mysql # aggregate syntax: 
query I rowsort label-146
SELECT DISTINCT SUM( 16 ) AS col2 FROM tab0
----
48

skipif mysql # not compatible
query I rowsort label-146
SELECT DISTINCT SUM ( 16 ) AS col2 FROM tab0
----
48

query II rowsort
SELECT DISTINCT - col2 AS col1, 6 FROM tab1 AS cor0
----
-59
6
-68
6
-96
6

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-148
SELECT DISTINCT - col2 DIV col2 - - - col0 FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) IS NULL
----
-47
-65
-76

skipif mysql # not compatible
query I rowsort label-148
SELECT DISTINCT - col2 / col2 - - - col0 FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) IS NULL
----
-47
-65
-76

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

query I rowsort
SELECT col1 + + 82 + - col1 AS col1 FROM tab1
----
82
82
82

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

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

query I rowsort
SELECT + col2 AS col1 FROM tab2 AS cor0 WHERE col1 * + col2 * - 22 / + col0 IS NOT NULL
----
23
40
58

query I rowsort
SELECT - 70 + + 40 AS col1 FROM tab1 AS cor0
----
-30
-30
-30

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

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

query I rowsort
SELECT 60 * - + col2 AS col2 FROM tab0 AS cor0
----
-2820
-5940
-600

query I rowsort
SELECT 17 + col0 FROM tab2 cor0 WHERE col1 IS NULL
----

query I rowsort
SELECT + 68 FROM tab0 AS cor0 WHERE + col1 * col0 >= NULL
----

query I rowsort
SELECT DISTINCT col1 - + - col2 + - col0 FROM tab1
----
-21
24
59

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

query I rowsort
SELECT - 49 - + - col2 AS col0 FROM tab1
----
10
19
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + - + col2 col0 FROM tab0
----
-198
-20
-94

query I rowsort
SELECT DISTINCT 68 * col1 AS col0 FROM tab0
----
1428
5508
68

query I rowsort
SELECT ALL - 89 * + ( + col0 ) FROM tab2
----
-4094
-5696
-6675

onlyif mysql # aggregate syntax: 
query I rowsort label-164
SELECT DISTINCT COUNT( * ) FROM tab2 WHERE ( + + col1 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-164
SELECT DISTINCT COUNT ( * ) FROM tab2 WHERE ( + + col1 ) IS NULL
----
0

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( - 92, + col2, + 76 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-168
SELECT MIN( DISTINCT + 78 ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
78

skipif mysql # not compatible
query I rowsort label-168
SELECT MIN ( DISTINCT + 78 ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-169
SELECT ALL SUM( DISTINCT + col0 ) AS col0 FROM tab1 AS cor0 WHERE ( NULL ) <> - - col0 * + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-169
SELECT ALL SUM ( DISTINCT + col0 ) AS col0 FROM tab1 AS cor0 WHERE ( NULL ) <> - - col0 * + col1
----
NULL

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

query I rowsort
SELECT ALL + col1 + col0 FROM tab2 AS cor0 WHERE - 56 NOT BETWEEN ( + - col0 ) AND ( - 60 ) * + col2
----
141
142
97

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-172
SELECT - CAST( - col2 AS SIGNED ) DIV + - 51 * + ( col1 ) * - - col1 + - col1 + col1 AS col2 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-172
SELECT - CAST ( - col2 AS INTEGER ) / + - 51 * + ( col1 ) * - - col1 + - col1 + col1 AS col2 FROM tab0 AS cor0
----
-1
0
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-173
SELECT ALL - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE CAST( 8 AS DECIMAL ) IN ( - + col0 + + + CAST( NULL AS SIGNED ) * + - col0, col2 / ( + - col1 ) )
----

skipif mysql # not compatible
query I rowsort label-173
SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE CAST ( 8 AS REAL ) IN ( - + col0 + + + CAST ( NULL AS INTEGER ) * + - col0, col2 / ( + - col1 ) )
----

query I rowsort
SELECT ALL + + 57 AS col1 FROM tab2 cor0 WHERE ( NULL ) > - 99 + + ( + 80 )
----

query I rowsort
SELECT ALL - col1 + 61 FROM tab2 AS cor0
----
-16
-6
10

query I rowsort
SELECT DISTINCT - 14 * - col2 + ( - - 52 ) FROM tab1
----
1004
1396
878

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

onlyif mysql # aggregate syntax: 
query I rowsort label-178
SELECT DISTINCT 59 + + COUNT( * ) AS col2 FROM tab2
----
62

skipif mysql # not compatible
query I rowsort label-178
SELECT DISTINCT 59 + + COUNT ( * ) AS col2 FROM tab2
----
62

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-179
SELECT ALL - CAST( 22 AS SIGNED ) DIV + col0, col2 AS col1 FROM tab1
----
0
59
0
68
0
96

skipif mysql # not compatible
query II rowsort label-179
SELECT ALL - CAST ( 22 AS INTEGER ) / + col0, col2 AS col1 FROM tab1
----
0
59
0
68
0
96

onlyif mysql # DIV for integer division: 
query I rowsort label-180
SELECT + col1 + - - col2 + col1 DIV col2 AS col0 FROM tab1
----
110
115
64

skipif mysql # not compatible
query I rowsort label-180
SELECT + col1 + - - col2 + col1 / col2 AS col0 FROM tab1
----
110
115
64

onlyif mysql # aggregate syntax: 
query I rowsort label-181
SELECT MAX( - - 42 ) FROM tab1 AS cor0 WHERE - 76 IS NOT NULL
----
42

skipif mysql # not compatible
query I rowsort label-181
SELECT MAX ( - - 42 ) FROM tab1 AS cor0 WHERE - 76 IS NOT NULL
----
42

query II rowsort
SELECT + 12 + + col2 + col2 AS col2, + 83 AS col1 FROM tab2 AS cor0
----
128
83
58
83
92
83

onlyif mysql # aggregate syntax: 
query II rowsort label-183
SELECT ALL + + 80 * - COUNT( * ) AS col2, 11 FROM tab0 AS cor0 WHERE ( NULL ) <= col2
----
0
11

skipif mysql # not compatible
query II rowsort label-183
SELECT ALL + + 80 * - COUNT ( * ) AS col2, 11 FROM tab0 AS cor0 WHERE ( NULL ) <= col2
----
0
11

query II rowsort
SELECT 78 AS col1, 16 FROM tab2
----
78
16
78
16
78
16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 25 col1 FROM tab2 AS cor0 CROSS JOIN tab2 cor1 WHERE ( NOT NULL IS NULL )
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + - + ( + 8 ) * + - col0 col2 FROM tab2
----
317
435
533

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

skipif mysql # not compatible
query I rowsort label-188
SELECT DISTINCT - COUNT ( * ) - + CAST ( + 29 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-32

onlyif mysql # aggregate syntax: 
query II rowsort label-189
SELECT DISTINCT 58, COUNT( * ) col0 FROM tab0 AS cor0
----
58
3

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

query I rowsort
SELECT - col1 - - ( + - col0 ) + + 27 * + + 12 FROM tab0 AS cor0
----
216
226
228

onlyif mysql # aggregate syntax: 
query I rowsort label-191
SELECT ALL ( 14 ) + + + COUNT( * ) FROM tab0
----
17

skipif mysql # not compatible
query I rowsort label-191
SELECT ALL ( 14 ) + + + COUNT ( * ) FROM tab0
----
17

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 > + col2 * - - 21 + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 3 col2 FROM tab0
----
-3

query II rowsort
SELECT ALL + col0 * 10 * - col2, + col0 FROM tab0
----
-7050
15
-8700
87
-96030
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-195
SELECT ALL - col0 * + CAST( + - 56 AS SIGNED ) * - col1 * + col0 FROM tab2
----
-17661952
-21105000
-6043296

skipif mysql # not compatible
query I rowsort label-195
SELECT ALL - col0 * + CAST ( + - 56 AS INTEGER ) * - col1 * + col0 FROM tab2
----
-17661952
-21105000
-6043296

query I rowsort
SELECT DISTINCT 32 * + + col2 * + col1 AS col0 FROM tab2
----
124352
37536
98560

query I rowsort
SELECT ALL 50 * - col1 FROM tab1
----
-2350
-250
-700

query II rowsort
SELECT + ( - + 9 ) AS col0, col1 AS col1 FROM tab2
----
-9
51
-9
67
-9
77

query I rowsort
SELECT ALL - + col1 FROM tab2 WHERE NULL BETWEEN + + col2 + ( - + 37 ) + - - ( 32 ) AND ( + + col2 ) * - col1
----

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + + col2 col1 FROM tab0
----
210
3807
99

query I rowsort
SELECT 45 * 35 AS col1 FROM tab0
----
1575
1575
1575

onlyif mysql # aggregate syntax: 
query I rowsort label-205
SELECT DISTINCT 96 * + + COUNT( * ) AS col2 FROM tab0
----
288

skipif mysql # not compatible
query I rowsort label-205
SELECT DISTINCT 96 * + + COUNT ( * ) AS col2 FROM tab0
----
288

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

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

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

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

query I rowsort
SELECT - 15 + - + col2 AS col2 FROM tab1 cor0
----
-111
-74
-83

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-212
SELECT ALL - + 69 + ( - MIN( - ( 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-212
SELECT ALL - + 69 + ( - MIN ( - ( CAST ( NULL AS INTEGER ) ) ) ) col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - 59 * + col0 * - - col1 AS col1 FROM tab0 AS cor0
----
-107793
-5723
-71685

query I rowsort
SELECT DISTINCT 2 * + col0 + + - ( - col2 ) AS col0 FROM tab2
----
115
168
208

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

skipif mysql # not compatible
query I rowsort label-215
SELECT ALL - + MIN ( col0 ) + - COUNT ( * ) FROM tab0 WHERE NOT - + col0 * col1 IS NOT NULL
----
NULL

query I rowsort
SELECT ALL col2 + - col1 * - col1 AS col0 FROM tab1
----
2277
292
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-217
SELECT ALL 72 DIV COUNT( * ) * - 26 + ( - 89 ) AS col2 FROM tab0
----
-713

skipif mysql # not compatible
query I rowsort label-217
SELECT ALL 72 / COUNT ( * ) * - 26 + ( - 89 ) AS col2 FROM tab0
----
-713

onlyif mysql # aggregate syntax: 
query I rowsort label-218
SELECT - - 39 * + COUNT( * ) * + - 91 FROM tab0 AS cor0 WHERE ( col0 ) < 51
----
-3549

skipif mysql # not compatible
query I rowsort label-218
SELECT - - 39 * + COUNT ( * ) * + - 91 FROM tab0 AS cor0 WHERE ( col0 ) < 51
----
-3549

onlyif mysql # DIV for integer division: 
query I rowsort label-219
SELECT DISTINCT + - col0 + - - col0 DIV - - 32 FROM tab1 AS cor0
----
-50
-83
-89

skipif mysql # not compatible
query I rowsort label-219
SELECT DISTINCT + - col0 + - - col0 / - - 32 FROM tab1 AS cor0
----
-50
-83
-89

query I rowsort
SELECT ALL + 63 - + col1 AS col1 FROM tab2 AS cor0
----
-14
-4
12

onlyif mysql # aggregate syntax: 
query I rowsort label-221
SELECT ALL + - COUNT( * ) FROM tab1 AS cor0 WHERE col1 + - col2 * + - ( col2 ) + - + col1 + 25 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-221
SELECT ALL + - COUNT ( * ) FROM tab1 AS cor0 WHERE col1 + - col2 * + - ( col2 ) + - + col1 + 25 IS NOT NULL
----
-3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-223
SELECT COUNT( - 91 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-223
SELECT COUNT ( - 91 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT - 15 * col2 FROM tab1 cor0
----
-1020
-1440
-885

onlyif mysql # aggregate syntax: 
query I rowsort label-225
SELECT ALL - + MIN( DISTINCT + - col1 ) col2 FROM tab0 WHERE NOT col2 >= - col1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-225
SELECT ALL - + MIN ( DISTINCT + - col1 ) col2 FROM tab0 WHERE NOT col2 >= - col1
----
NULL

query I rowsort
SELECT - - 4 FROM tab0 WHERE NOT NULL IS NULL
----

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-229
SELECT 59, COUNT( * ) * COUNT( * ) AS col1 FROM tab0 AS cor0
----
59
9

skipif mysql # not compatible
query II rowsort label-229
SELECT 59, COUNT ( * ) * COUNT ( * ) AS col1 FROM tab0 AS cor0
----
59
9

onlyif mysql # aggregate syntax: 
query I rowsort label-230
SELECT - SUM( ALL + 65 ) AS col2 FROM tab0 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-230
SELECT - SUM ( ALL + 65 ) AS col2 FROM tab0 AS cor0
----
-195

query II rowsort
SELECT - col0 * - + 36 + - col0 - - 84 * col1 * + col2, ( + - 47 ) AS col1 FROM tab1 AS cor0
----
114681
-47
271649
-47
27755
-47

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + ( - col0 ) + - col1 + + 6 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 71 * - col2 col0 FROM tab0 AS cor0
----
3337
7029
710

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

query I rowsort
SELECT + ( + 66 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 29794915b585eea848ad670075452c88

query I rowsort
SELECT DISTINCT 71 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
71

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + 97 * - - col1 col2 FROM tab2 AS cor0
----
227562
478016
487425

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

query I rowsort
SELECT col1 AS col1 FROM tab2 cor0 WHERE 45 / col1 / - col2 * 31 = - col1 * + 18
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-242
SELECT * FROM tab1 cor0 WHERE + CAST( + col1 AS SIGNED ) > - + 14
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-242
SELECT * FROM tab1 cor0 WHERE + CAST ( + col1 AS INTEGER ) > - + 14
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT col2 * - col1, - 83 + + - col0 * + 18 * + + col1 * - + 51 AS col0 FROM tab0 AS cor0
----
-210
1677103
-3807
1115287
-99
88963

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE - - col0 <= - - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col2 * - col2 + col1 AS col1 FROM tab0
----
121
2290
9802

query I rowsort
SELECT DISTINCT + 87 + col1 FROM tab2
----
138
154
164

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

query I rowsort
SELECT + col2 + - col2 + - col0 * - 69 FROM tab2
----
3174
4416
5175

query I rowsort
SELECT DISTINCT + 72 * + col0 FROM tab0
----
1080
6264
6984

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-252
SELECT CAST( - 63 AS SIGNED ) + 92 * + - ( - 44 ) * - COUNT( * ) FROM tab1
----
-12207

skipif mysql # not compatible
query I rowsort label-252
SELECT CAST ( - 63 AS INTEGER ) + 92 * + - ( - 44 ) * - COUNT ( * ) FROM tab1
----
-12207

query I rowsort
SELECT DISTINCT - 61 + + col0 AS col1 FROM tab1
----
-10
24
30

query I rowsort
SELECT - 63 * - - col0 * col1 + col0 FROM tab2
----
-147752
-310400
-316500

query III rowsort
SELECT * FROM tab2 WHERE - - ( + + col0 ) > NULL
----

query I rowsort
SELECT DISTINCT - 11 * + col1 AS col1 FROM tab0
----
-11
-231
-891

onlyif mysql # DIV for integer division: 
query II rowsort label-257
SELECT - col2 * + col2 + - col2 DIV col1, col2 AS col0 FROM tab1 AS cor0
----
-3492
59
-4625
68
-9222
96

skipif mysql # not compatible
query II rowsort label-257
SELECT - col2 * + col2 + - col2 / col1, col2 AS col0 FROM tab1 AS cor0
----
-3492
59
-4625
68
-9222
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 87 col1, 60 AS col2 FROM tab1 cor0
----
87
60
87
60
87
60

onlyif mysql # aggregate syntax: 
query I rowsort label-259
SELECT ALL - 27 + - + COUNT( * ) FROM tab2 cor0
----
-30

skipif mysql # not compatible
query I rowsort label-259
SELECT ALL - 27 + - + COUNT ( * ) FROM tab2 cor0
----
-30

query I rowsort
SELECT ALL - col1 + col1 + 92 FROM tab1
----
92
92
92

query I rowsort
SELECT DISTINCT col1 + + + col1 + - col1 FROM tab1
----
14
47
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 56 + col0 col0 FROM tab1
----
-5
29
35

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE + col2 * + + col1 - - 14 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-265
SELECT 68 * - 80 - 2 + + col2 DIV col1 FROM tab2
----
-5442
-5442
-5442

skipif mysql # not compatible
query I rowsort label-265
SELECT 68 * - 80 - 2 + + col2 / col1 FROM tab2
----
-5442
-5442
-5442

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

skipif mysql # not compatible
query I rowsort label-266
SELECT ALL ( col2 ) * - + 57 * + CAST ( NULL AS INTEGER ) * + - col2 * - - col1 - + ( + ( - 74 ) ) AS col2 FROM tab1
----
NULL
NULL
NULL

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

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

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

query I rowsort
SELECT DISTINCT + AVG ( DISTINCT + 35 ) AS col1 FROM tab1 AS cor0 WHERE NOT 46 IS NOT NULL
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-271
SELECT ALL SUM( ALL 12 ) col1 FROM tab1
----
36

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-271
SELECT ALL SUM ( ALL 12 ) col1 FROM tab1
----
36

onlyif mysql # aggregate syntax: 
query II rowsort label-272
SELECT ALL 5 AS col1, COUNT( + col1 ) FROM tab2
----
5
3

skipif mysql # not compatible
query II rowsort label-272
SELECT ALL 5 AS col1, COUNT ( + col1 ) FROM tab2
----
5
3

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

query II rowsort
SELECT ALL 44 * - col0 + + + 87 + - - ( - col1 ) - + col2 AS col1, 55 AS col0 FROM tab1 cor0
----
-2267
55
-3717
55
-4032
55

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - col0 ) * 95 IS NULL
----

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE + 33 IS NOT NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

onlyif mysql # aggregate syntax: 
query I rowsort label-277
SELECT DISTINCT MAX( DISTINCT + - col2 ) AS col0 FROM tab0 cor0
----
-10

skipif mysql # not compatible
query I rowsort label-277
SELECT DISTINCT MAX ( DISTINCT + - col2 ) AS col0 FROM tab0 cor0
----
-10

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE col0 NOT BETWEEN - - col0 AND + 79 * col0 * col1 + + 90
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( + ( + ( + + 1 ) ) IS NULL )
----

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( ( NOT 32 <> NULL ) )
----

query I rowsort
SELECT DISTINCT 45 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
45

query I rowsort
SELECT ALL - + col0 * + 22 + - col0 AS col2 FROM tab0 AS cor0
----
-2001
-2231
-345

query I rowsort
SELECT ALL + 44 * col1 AS col2 FROM tab0 AS cor0
----
3564
44
924

query I rowsort
SELECT 67 + - 10 + 63 AS col2 FROM tab2 cor0
----
120
120
120

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

query I rowsort
SELECT ALL 29 * - col2 * + 4 + - - 14 AS col1 FROM tab1
----
-11122
-6830
-7874

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-289
SELECT DISTINCT + 17 - - col1 * - - col0, col1 + CAST( - - col0 AS SIGNED ) col0 FROM tab1
----
4294
138
442
90
731
65

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-289
SELECT DISTINCT + 17 - - col1 * - - col0, col1 + CAST ( - - col0 AS INTEGER ) col0 FROM tab1
----
4294
138
442
90
731
65

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col2 + 61 - - col2 col2 FROM tab0 AS cor0
----
171
2317
9961

onlyif mysql # aggregate syntax: 
query I rowsort label-292
SELECT ALL - MIN( 79 ) AS col0 FROM tab0 cor0
----
-79

skipif mysql # not compatible
query I rowsort label-292
SELECT ALL - MIN ( 79 ) AS col0 FROM tab0 cor0
----
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-293
SELECT + 21 - - + CAST( MIN( + 42 ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-293
SELECT + 21 - - + CAST ( MIN ( + 42 ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
63

query I rowsort
SELECT DISTINCT col2 * 91 FROM tab2 cor0
----
2093
3640
5278

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-296
SELECT - CAST( + col0 AS SIGNED ) * - col2 + + col0 FROM tab0 AS cor0
----
720
957
9700

skipif mysql # not compatible
query I rowsort label-296
SELECT - CAST ( + col0 AS INTEGER ) * - col2 + + col0 FROM tab0 AS cor0
----
720
957
9700

query I rowsort
SELECT ALL 65 * + col1 * - col0 + col0 AS col0 FROM tab2
----
-152444
-320256
-326550

query II rowsort
SELECT + 62 * + col2 * + col0, col0 AS col2 FROM tab2 AS cor0
----
158720
64
269700
75
65596
46

onlyif mysql # aggregate syntax: 
query I rowsort label-299
SELECT DISTINCT MAX( ALL + col2 ) AS col1 FROM tab1 cor0
----
96

skipif mysql # not compatible
query I rowsort label-299
SELECT DISTINCT MAX ( ALL + col2 ) AS col1 FROM tab1 cor0
----
96

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - ( - col2 ) IS NOT NULL
----

query I rowsort
SELECT 47 * - col2 AS col1 FROM tab1 AS cor0
----
-2773
-3196
-4512

query II rowsort
SELECT ALL + col1 AS col1, col0 + - 5 AS col1 FROM tab1 AS cor0
----
14
46
47
86
5
80

onlyif mysql # aggregate syntax: 
query I rowsort label-303
SELECT - 56 * - + COUNT( * ) AS col2 FROM tab1 AS cor0
----
168

skipif mysql # not compatible
query I rowsort label-303
SELECT - 56 * - + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
168

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-306
SELECT DISTINCT SUM( ALL col2 ) FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-306
SELECT DISTINCT SUM ( ALL col2 ) FROM tab1 AS cor0
----
223

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

skipif mysql # not compatible
query I rowsort label-307
SELECT DISTINCT + MAX ( + - 64 ) FROM tab1 cor0
----
-64

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

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

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

skipif mysql # not compatible
query I rowsort label-310
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab2 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-311
SELECT - COUNT( + 90 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-311
SELECT - COUNT ( + 90 ) FROM tab2
----
-3

query I rowsort
SELECT ALL 1 FROM tab0 WHERE - col1 - - + col2 = - + col0
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-314
SELECT DISTINCT - 45 * col0 * + col0 + - CAST( - - col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-10140
-340692
-423502

skipif mysql # not compatible
query I rowsort label-314
SELECT DISTINCT - 45 * col0 * + col0 + - CAST ( - - col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-10140
-340692
-423502

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

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

skipif mysql # not compatible
query I rowsort label-316
SELECT + - COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-317
SELECT + MIN( + + col1 ) + COUNT( ALL - + 23 ) AS col0 FROM tab0 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-317
SELECT + MIN ( + + col1 ) + COUNT ( ALL - + 23 ) AS col0 FROM tab0 AS cor0
----
4

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - - 57 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-319
SELECT ALL CAST( - - 65 AS SIGNED ) * - col2 col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-1495
-2600
-3770

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-319
SELECT ALL CAST ( - - 65 AS INTEGER ) * - col2 col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-1495
-2600
-3770

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

query III rowsort
SELECT * FROM tab2 WHERE + - 26 BETWEEN + + col0 * + 60 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * 28 col2 FROM tab2 cor0
----
-1120
-1624
-644

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-324
SELECT - SUM( + - 82 ) FROM tab1 AS cor0
----
246

skipif mysql # not compatible
query I rowsort label-324
SELECT - SUM ( + - 82 ) FROM tab1 AS cor0
----
246

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

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

query I rowsort
SELECT ALL + + ( + 8 ) FROM tab2 AS cor0
----
8
8
8

query I rowsort
SELECT + col1 * + + col0 * - col0 - - - 70 FROM tab2 AS cor0
----
-107986
-315462
-376945

query I rowsort
SELECT DISTINCT col1 + + + col2 AS col1 FROM tab2
----
117
125
74

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

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

query I rowsort
SELECT ALL col2 + - 10 FROM tab1
----
49
58
86

onlyif mysql # aggregate syntax: 
query I rowsort label-332
SELECT - MAX( - col0 ) + - 40 AS col2 FROM tab1
----
11

skipif mysql # not compatible
query I rowsort label-332
SELECT - MAX ( - col0 ) + - 40 AS col2 FROM tab1
----
11

query II rowsort
SELECT ALL - 58 AS col0, col1 AS col0 FROM tab1 AS cor0
----
-58
14
-58
47
-58
5

query I rowsort
SELECT + col0 AS col2 FROM tab2 AS cor0 WHERE 81 IS NOT NULL
----
46
64
75

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 AS col0, ( + col2 ) col2 FROM tab2 cor0
----
46
23
64
40
75
58

onlyif mysql # aggregate syntax: 
query I rowsort label-337
SELECT ALL - ( + COUNT( * ) ) * 32 AS col1 FROM tab1 cor0
----
-96

skipif mysql # not compatible
query I rowsort label-337
SELECT ALL - ( + COUNT ( * ) ) * 32 AS col1 FROM tab1 cor0
----
-96

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

query I rowsort
SELECT DISTINCT col1 FROM tab2 AS cor0 WHERE + 8 IS NULL
----

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

skipif mysql # not compatible
query I rowsort label-340
SELECT ALL CAST ( - - COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-341
SELECT DISTINCT + MIN( + + col2 ) * + - 0 * + 40 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-341
SELECT DISTINCT + MIN ( + + col2 ) * + - 0 * + 40 FROM tab2 cor0
----
0

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

query I rowsort
SELECT - 30 * col0 AS col0 FROM tab2 AS cor0
----
-1380
-1920
-2250

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-344
SELECT ( CAST( + col2 AS SIGNED ) ) FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-344
SELECT ( CAST ( + col2 AS INTEGER ) ) FROM tab0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-345
SELECT ALL + 50 * - COUNT( * ) AS col2 FROM tab1
----
-150

skipif mysql # not compatible
query I rowsort label-345
SELECT ALL + 50 * - COUNT ( * ) AS col2 FROM tab1
----
-150

query I rowsort
SELECT + col2 * - 74 AS col0 FROM tab2
----
-1702
-2960
-4292

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

onlyif mysql # aggregate syntax: 
query I rowsort label-348
SELECT SUM( - 51 ) FROM tab1
----
-153

skipif mysql # not compatible
query I rowsort label-348
SELECT SUM ( - 51 ) FROM tab1
----
-153

query I rowsort
SELECT DISTINCT - col2 * - + 11 FROM tab2
----
253
440
638

query I rowsort
SELECT ALL 44 * - col1 AS col2 FROM tab2
----
-2244
-2948
-3388

query I rowsort
SELECT ALL col1 * + col0 AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
1215
1827
97

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

onlyif mysql # aggregate syntax: 
query I rowsort label-353
SELECT DISTINCT - ( + 44 ) * + - COUNT( * ) + - - 73 FROM tab1 AS cor0
----
205

skipif mysql # not compatible
query I rowsort label-353
SELECT DISTINCT - ( + 44 ) * + - COUNT ( * ) + - - 73 FROM tab1 AS cor0
----
205

query II rowsort
SELECT + 68 AS col1, + 77 + - 81 AS col0 FROM tab1 AS cor0
----
68
-4
68
-4
68
-4

query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 AS cor0 WHERE + + 88 < ( NULL )
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-356
SELECT + ( - ( + MAX ( - col0 ) ) ) col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
46

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-359
SELECT - COUNT( * ) * - 8 + + 21 FROM tab1 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-359
SELECT - COUNT ( * ) * - 8 + + 21 FROM tab1 AS cor0
----
45

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 14 < NULL
----

query I rowsort
SELECT ALL - - col0 + + 57 AS col2 FROM tab2 AS cor0
----
103
121
132

query I rowsort
SELECT + col2 * 82 FROM tab0 AS cor0
----
3854
8118
820

query I rowsort
SELECT 57 * + - col0 AS col0 FROM tab2
----
-2622
-3648
-4275

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 65 - 19 col2 FROM tab2
----
46

query I rowsort
SELECT col0 - + 28 FROM tab0
----
-13
59
69

query I rowsort
SELECT ALL - col1 - + + col0 FROM tab1
----
-138
-65
-90

query I rowsort
SELECT ALL col1 * - 52 * + - col2 + + - col1 FROM tab2
----
160083
202005
60945

query I rowsort
SELECT ALL + 16 - + ( col1 ) + + 78 FROM tab0
----
13
73
93

query I rowsort
SELECT DISTINCT - ( - - col1 ) - + + 65 AS col0 FROM tab0 AS cor0
----
-146
-66
-86

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

onlyif mysql # aggregate syntax: 
query I rowsort label-371
SELECT - MIN( - - 50 ) FROM tab2 cor0
----
-50

skipif mysql # not compatible
query I rowsort label-371
SELECT - MIN ( - - 50 ) FROM tab2 cor0
----
-50

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

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

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

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

skipif mysql # not compatible
query I rowsort label-374
SELECT ALL - col1 / - - col0 FROM tab2
----
-1
-1
0

query I rowsort
SELECT - + col0 * + - col0 AS col0 FROM tab2 AS cor0
----
2116
4096
5625

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-377
SELECT + CAST( + ( col0 ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-377
SELECT + CAST ( + ( col0 ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT ALL - ( + col2 ) * + + col1 * - col1 * - + col0 + - col1 FROM tab1 AS cor0
----
-125380
-13669339
-959630

query I rowsort
SELECT ALL - 52 + - 22 FROM tab0 AS cor0
----
-74
-74
-74

query I rowsort
SELECT ( + - 5 ) FROM tab1 cor0
----
-5
-5
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-381
SELECT DISTINCT + COUNT( * ) DIV + 95 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-381
SELECT DISTINCT + COUNT ( * ) / + 95 AS col0 FROM tab2
----
0

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

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

skipif mysql # not compatible
query I rowsort label-383
SELECT - COUNT ( DISTINCT - col2 ) AS col0 FROM tab2 WHERE NOT NULL IS NULL
----
0

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-385
SELECT DISTINCT + 22 DIV - COUNT( * ) AS col2, COUNT( * ) * + COUNT( * ) FROM tab0
----
-7
9

skipif mysql # not compatible
query II rowsort label-385
SELECT DISTINCT + 22 / - COUNT ( * ) AS col2, COUNT ( * ) * + COUNT ( * ) FROM tab0
----
-7
9

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

query I rowsort
SELECT col1 + - 93 FROM tab1 AS cor0
----
-46
-79
-88

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-388
SELECT ALL - + col2 + - - col2, 63 * - CAST( NULL AS SIGNED ) + - col2 AS col0 FROM tab2 AS cor0
----
0
NULL
0
NULL
0
NULL

skipif mysql # not compatible
query II rowsort label-388
SELECT ALL - + col2 + - - col2, 63 * - CAST ( NULL AS INTEGER ) + - col2 AS col0 FROM tab2 AS cor0
----
0
NULL
0
NULL
0
NULL

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 5 col1, - 1 AS col1 FROM tab1
----
5
-1
5
-1
5
-1

query I rowsort
SELECT ALL + col1 - - - col2 FROM tab1
----
-21
-54
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-392
SELECT DISTINCT + ( SUM( + 12 ) ) - + 74 FROM tab0 AS cor0
----
-38

skipif mysql # not compatible
query I rowsort label-392
SELECT DISTINCT + ( SUM ( + 12 ) ) - + 74 FROM tab0 AS cor0
----
-38

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

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

query I rowsort
SELECT - - col1 - + col0 + + 34 * + col1 FROM tab1 AS cor0
----
1554
439
90

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

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

query I rowsort
SELECT DISTINCT - 97 + - + 10 FROM tab0 cor0
----
-107

query I rowsort
SELECT - col1 - - 11 FROM tab2 AS cor0
----
-40
-56
-66

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

query I rowsort
SELECT DISTINCT + + 38 * 72 AS col0 FROM tab2 AS cor0
----
2736

onlyif mysql # DIV for integer division: 
query I rowsort label-400
SELECT - 19 DIV - + 13 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-400
SELECT - 19 / - + 13 FROM tab0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-401
SELECT DISTINCT - MAX( col2 ) AS col0 FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-401
SELECT DISTINCT - MAX ( col2 ) AS col0 FROM tab1
----
-96

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( col0 ) - + col1 * col2 + + 5 IS NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - col0 <> 24
----

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

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

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

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

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

query I rowsort
SELECT col1 + + 15 FROM tab2 AS cor0
----
66
82
92

query I rowsort
SELECT - + col0 + + ( + + 16 ) FROM tab1 AS cor0
----
-35
-69
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-411
SELECT 75 + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-411
SELECT 75 + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
78

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

query I rowsort
SELECT col1 * + ( + col0 ) AS col0 FROM tab0
----
1215
1827
97

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 35 * col1 + 41 col2 FROM tab0 AS cor0
----
2876
76
776

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

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

query I rowsort
SELECT DISTINCT + 83 + 90 + + 88 + - col0 FROM tab0
----
164
174
246

query I rowsort
SELECT col2 AS col1 FROM tab0 AS cor0 WHERE NULL <> col0 * - 95
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-420
SELECT DISTINCT - MIN( + ( - col0 ) ) * CAST( - 8 AS SIGNED ) DIV + COUNT( + col1 ) AS col2 FROM tab0 AS cor0
----
-258

skipif mysql # not compatible
query I rowsort label-420
SELECT DISTINCT - MIN ( + ( - col0 ) ) * CAST ( - 8 AS INTEGER ) / + COUNT ( + col1 ) AS col2 FROM tab0 AS cor0
----
-258

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 - + + col1 col0, + 85 col2 FROM tab0 AS cor0
----
0
85

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-424
SELECT 54 DIV - col0 FROM tab0 AS cor0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-424
SELECT 54 / - col0 FROM tab0 AS cor0
----
-3
0
0

query I rowsort
SELECT DISTINCT + + col0 * + + col0 AS col0 FROM tab1 AS cor0
----
2601
7225
8281

onlyif mysql # aggregate syntax: 
query I rowsort label-426
SELECT DISTINCT 62 + COUNT( * ) AS col1 FROM tab0 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-426
SELECT DISTINCT 62 + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
65

onlyif mysql # DIV for integer division: 
query I rowsort label-427
SELECT col2 DIV 71 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-427
SELECT col2 / 71 FROM tab0
----
0
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-428
SELECT ALL - 55 DIV - col1 AS col0 FROM tab0
----
0
2
55

skipif mysql # not compatible
query I rowsort label-428
SELECT ALL - 55 / - col1 AS col0 FROM tab0
----
0
2
55

onlyif mysql # aggregate syntax: 
query I rowsort label-429
SELECT DISTINCT - MAX( DISTINCT 76 ) col1 FROM tab2
----
-76

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

onlyif mysql # aggregate syntax: 
query I rowsort label-430
SELECT MAX( DISTINCT + 20 ) * + 61 FROM tab2
----
1220

skipif mysql # not compatible
query I rowsort label-430
SELECT MAX ( DISTINCT + 20 ) * + 61 FROM tab2
----
1220

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-431
SELECT ALL - SUM( DISTINCT - CAST( NULL AS SIGNED ) ) FROM tab1 WHERE NULL <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-431
SELECT ALL - SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) FROM tab1 WHERE NULL <= NULL
----
NULL

query I rowsort
SELECT DISTINCT - + col0 AS col2 FROM tab0 WHERE col0 < + col2 * - - col0
----
-15
-87
-97

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

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

query II rowsort
SELECT + 69, 89 + - col0 AS col0 FROM tab2 AS cor0
----
69
14
69
25
69
43

query I rowsort
SELECT - ( + col0 ) * ( + 94 ) * - - col0 + + 55 FROM tab0 AS cor0
----
-21095
-711431
-884391

query II rowsort
SELECT + 68 AS col0, + col0 + - col1 FROM tab2 AS cor0
----
68
-13
68
-5
68
8

onlyif mysql # aggregate syntax: 
query I rowsort label-437
SELECT ALL + - SUM( 26 ) FROM tab2 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-437
SELECT ALL + - SUM ( 26 ) FROM tab2 AS cor0
----
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-438
SELECT ALL + 8 - 92 DIV - col2 AS col2 FROM tab0
----
17
8
9

skipif mysql # not compatible
query I rowsort label-438
SELECT ALL + 8 - 92 / - col2 AS col2 FROM tab0
----
17
8
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-439
SELECT DISTINCT col1 AS col0 FROM tab0 WHERE + 96 > - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-439
SELECT DISTINCT col1 AS col0 FROM tab0 WHERE + 96 > - CAST ( NULL AS INTEGER )
----

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

query I rowsort
SELECT 22 + - col0 FROM tab1
----
-29
-63
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-442
SELECT - col1 DIV - 73 + col2 AS col1 FROM tab0
----
10
48
99

skipif mysql # not compatible
query I rowsort label-442
SELECT - col1 / - 73 + col2 AS col1 FROM tab0
----
10
48
99

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL > - ( ( - 82 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-444
SELECT DISTINCT 24 * - COUNT( * ) FROM tab2
----
-72

skipif mysql # not compatible
query I rowsort label-444
SELECT DISTINCT 24 * - COUNT ( * ) FROM tab2
----
-72

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

onlyif mysql # aggregate syntax: 
query I rowsort label-446
SELECT ALL 80 * COUNT( * ) FROM tab0
----
240

skipif mysql # not compatible
query I rowsort label-446
SELECT ALL 80 * COUNT ( * ) FROM tab0
----
240

query I rowsort
SELECT - col0 + - ( 13 ) FROM tab0
----
-100
-110
-28

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

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

query I rowsort
SELECT + col2 FROM tab1 WHERE ( NULL ) IN ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-450
SELECT ALL - COUNT( * ) + COUNT( - 37 ) * - COUNT( ALL + 69 - + col2 ) FROM tab1 WHERE 11 + + 32 > col2
----
0

skipif mysql # not compatible
query I rowsort label-450
SELECT ALL - COUNT ( * ) + COUNT ( - 37 ) * - COUNT ( ALL + 69 - + col2 ) FROM tab1 WHERE 11 + + 32 > col2
----
0

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-455
SELECT * FROM tab2 WHERE 55 - col1 BETWEEN ( - CAST( 25 AS SIGNED ) ) AND - col2
----

skipif mysql # not compatible
query III rowsort label-455
SELECT * FROM tab2 WHERE 55 - col1 BETWEEN ( - CAST ( 25 AS INTEGER ) ) AND - col2
----

query I rowsort
SELECT 0 + + 69 AS col1 FROM tab2
----
69
69
69

onlyif mysql # aggregate syntax: 
query I rowsort label-457
SELECT - 82 * - COUNT( * ) AS col0 FROM tab2
----
246

skipif mysql # not compatible
query I rowsort label-457
SELECT - 82 * - COUNT ( * ) AS col0 FROM tab2
----
246

query I rowsort
SELECT - col2 * - ( 84 ) + - 11 FROM tab1
----
4945
5701
8053

onlyif mysql # aggregate syntax: 
query I rowsort label-459
SELECT COUNT( * ) * COUNT( * ) + - 95 AS col1 FROM tab2
----
-86

skipif mysql # not compatible
query I rowsort label-459
SELECT COUNT ( * ) * COUNT ( * ) + - 95 AS col1 FROM tab2
----
-86

query I rowsort
SELECT - 48 + + col0 FROM tab1 AS cor0
----
3
37
43

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 + 20 IN ( + 89 * - 57 )
----

query I rowsort
SELECT + 14 + + 62 * col1 FROM tab2 cor0
----
3176
4168
4788

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN + 96 * 15 + + col1 * col1 AND + 30
----

query I rowsort
SELECT - col1 * 2 AS col2 FROM tab2 AS cor0
----
-102
-134
-154

onlyif mysql # aggregate syntax: 
query I rowsort label-466
SELECT ALL COUNT( * ) * MAX( DISTINCT + col0 * 36 ) FROM tab2 AS cor0
----
8100

skipif mysql # not compatible
query I rowsort label-466
SELECT ALL COUNT ( * ) * MAX ( DISTINCT + col0 * 36 ) FROM tab2 AS cor0
----
8100

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL = col0 - - col2
----

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-470
SELECT DISTINCT - col2 + + CAST( col1 AS SIGNED ) AS col2 FROM tab2
----
28
37
9

skipif mysql # not compatible
query I rowsort label-470
SELECT DISTINCT - col2 + + CAST ( col1 AS INTEGER ) AS col2 FROM tab2
----
28
37
9

onlyif mysql # aggregate syntax: 
query I rowsort label-471
SELECT ALL COUNT( * ) * + MIN( - 2 ) - + 62 FROM tab2
----
-68

skipif mysql # not compatible
query I rowsort label-471
SELECT ALL COUNT ( * ) * + MIN ( - 2 ) - + 62 FROM tab2
----
-68

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-473
SELECT col1 DIV 74 - + 31 AS col0 FROM tab1
----
-31
-31
-31

skipif mysql # not compatible
query I rowsort label-473
SELECT col1 / 74 - + 31 AS col0 FROM tab1
----
-31
-31
-31

query I rowsort
SELECT + col1 * - ( col0 ) - 52 * + col1 FROM tab2
----
-4998
-8509
-8932

query I rowsort
SELECT - ( col2 ) - - col0 * col1 AS col2 FROM tab1
----
366
4209
618

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-476
SELECT 6 FROM tab1 WHERE ( + 22 ) >= CAST( NULL AS SIGNED ) / 52
----

skipif mysql # not compatible
query I rowsort label-476
SELECT 6 FROM tab1 WHERE ( + 22 ) >= CAST ( NULL AS INTEGER ) / 52
----

query I rowsort
SELECT ALL 67 * 18 FROM tab2
----
1206
1206
1206

onlyif mysql # aggregate syntax: 
query I rowsort label-478
SELECT - ( + COUNT( * ) ) - - 54 * SUM( ALL - 34 * col2 ) AS col0 FROM tab1
----
-409431

skipif mysql # not compatible
query I rowsort label-478
SELECT - ( + COUNT ( * ) ) - - 54 * SUM ( ALL - 34 * col2 ) AS col0 FROM tab1
----
-409431

query I rowsort
SELECT ALL - col2 - + ( col2 + 70 * + col2 ) AS col2 FROM tab0
----
-3384
-7128
-720

query I rowsort
SELECT - col2 FROM tab1 AS cor0 WHERE NULL NOT IN ( col0 / + col0 )
----

query I rowsort
SELECT 88 - - col2 AS col0 FROM tab2 AS cor0
----
111
128
146

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-482
SELECT * FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) * + 86 IN ( - ( 63 ) )
----

skipif mysql # not compatible
query III rowsort label-482
SELECT * FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) * + 86 IN ( - ( 63 ) )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-484
SELECT + COUNT( * ) + MIN( + ( col0 ) ) AS col0 FROM tab1 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-484
SELECT + COUNT ( * ) + MIN ( + ( col0 ) ) AS col0 FROM tab1 AS cor0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-485
SELECT DISTINCT COUNT( * ) * 30 AS col2 FROM tab0 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-485
SELECT DISTINCT COUNT ( * ) * 30 AS col2 FROM tab0 AS cor0
----
90

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

query I rowsort
SELECT 85 * - col2 AS col1 FROM tab1
----
-5015
-5780
-8160

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-489
SELECT CAST( + ( 21 ) AS SIGNED ) AS col1 FROM tab1
----
21
21
21

skipif mysql # not compatible
query I rowsort label-489
SELECT CAST ( + ( 21 ) AS INTEGER ) AS col1 FROM tab1
----
21
21
21

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-490
SELECT * FROM tab1 WHERE NOT + col0 NOT BETWEEN NULL AND ( - ( CAST( NULL AS SIGNED ) ) )
----

skipif mysql # not compatible
query III rowsort label-490
SELECT * FROM tab1 WHERE NOT + col0 NOT BETWEEN NULL AND ( - ( CAST ( NULL AS INTEGER ) ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 0 * - col1 col2 FROM tab1 WHERE NOT 28 * col2 IN ( col0 )
----
0
0
0

query I rowsort
SELECT DISTINCT + 38 * 60 AS col1 FROM tab0 AS cor0
----
2280

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 53 col1 FROM tab1 WHERE NOT ( NOT + col1 IS NULL )
----

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

skipif mysql # not compatible
query I rowsort label-495
SELECT COUNT ( * ) * - 20 / - 66 AS col0 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-496
SELECT DISTINCT 29 AS col0, COUNT( DISTINCT - + col1 ) FROM tab2
----
29
3

skipif mysql # not compatible
query II rowsort label-496
SELECT DISTINCT 29 AS col0, COUNT ( DISTINCT - + col1 ) FROM tab2
----
29
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-497
SELECT + 67 + + ( - 5 + + CAST( ( + COUNT( CAST( NULL AS SIGNED ) ) ) + COUNT( * ) AS SIGNED ) ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
71

skipif mysql # not compatible
query I rowsort label-497
SELECT + 67 + + ( - 5 + + CAST ( ( + COUNT ( CAST ( NULL AS INTEGER ) ) ) + COUNT ( * ) AS INTEGER ) ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
71

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-501
SELECT - CAST ( col1 AS INTEGER ) + - col1 FROM tab0 AS cor0
----
-162
-2
-42

query I rowsort
SELECT col2 * 20 + - - 23 FROM tab1 AS cor0
----
1203
1383
1943

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-503
SELECT ALL COUNT( * ) + - 11 DIV - COUNT( * ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-503
SELECT ALL COUNT ( * ) + - 11 / - COUNT ( * ) FROM tab0
----
6

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

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

query III rowsort
SELECT * FROM tab2 WHERE NULL = ( - + ( + 25 ) )
----

query I rowsort
SELECT ALL col1 + + - col1 + - - col2 FROM tab2
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-507
SELECT ALL 59 + + - COUNT( * ) + + 68 col1 FROM tab1
----
124

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-507
SELECT ALL 59 + + - COUNT ( * ) + + 68 col1 FROM tab1
----
124

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-508
SELECT DISTINCT + COUNT( * ) * COUNT( * ) DIV + + 87 + COUNT( * ) + COUNT( * ) FROM tab1
----
6

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

query III rowsort
SELECT * FROM tab1 WHERE + - 18 + - 0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-510
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab2 WHERE NOT ( + ( - 38 ) ) >= - 41 / + 79
----
3

skipif mysql # not compatible
query I rowsort label-510
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab2 WHERE NOT ( + ( - 38 ) ) >= - 41 / + 79
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-511
SELECT DISTINCT + - col2 - + CAST( - col0 AS SIGNED ) * col2 FROM tab2 AS cor0
----
1035
2520
4292

skipif mysql # not compatible
query I rowsort label-511
SELECT DISTINCT + - col2 - + CAST ( - col0 AS INTEGER ) * col2 FROM tab2 AS cor0
----
1035
2520
4292

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL = 22 * - + 92
----

onlyif mysql # DIV for integer division: 
query I rowsort label-514
SELECT ( - col2 ) DIV - - col2 + + + col2 + - 54 FROM tab1 AS cor0
----
13
4
41

skipif mysql # not compatible
query I rowsort label-514
SELECT ( - col2 ) / - - col2 + + + col2 + - 54 FROM tab1 AS cor0
----
13
4
41

onlyif mysql # aggregate syntax: 
query I rowsort label-515
SELECT DISTINCT + MAX( col1 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) > + + 53
----
NULL

skipif mysql # not compatible
query I rowsort label-515
SELECT DISTINCT + MAX ( col1 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) > + + 53
----
NULL

query I rowsort
SELECT + 63 * + - 18 * col2 * + col1 + + col0 FROM tab2 AS cor0
----
-1330136
-3492656
-4406649

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-519
SELECT DISTINCT 27 DIV col1 + + col1 AS col0 FROM tab0 cor0
----
22
28
81

skipif mysql # not compatible
query I rowsort label-519
SELECT DISTINCT 27 / col1 + + col1 AS col0 FROM tab0 cor0
----
22
28
81

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

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

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

query I rowsort
SELECT - + ( + col0 ) * - 48 FROM tab2 AS cor0
----
2208
3072
3600

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-525
SELECT col0 DIV - + 61 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-525
SELECT col0 / - + 61 FROM tab2
----
-1
-1
0

query I rowsort
SELECT ALL col1 * ( 90 ) AS col2 FROM tab2
----
4590
6030
6930

query I rowsort
SELECT + 31 * - - col1 FROM tab0
----
2511
31
651

onlyif mysql # aggregate syntax: 
query I rowsort label-528
SELECT ALL - MIN( + col2 ) AS col1 FROM tab1 WHERE NOT col2 IS NULL
----
-59

skipif mysql # not compatible
query I rowsort label-528
SELECT ALL - MIN ( + col2 ) AS col1 FROM tab1 WHERE NOT col2 IS NULL
----
-59

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

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

onlyif mysql # DIV for integer division: 
query III rowsort label-531
SELECT ALL col2 DIV + col1 col1, col0 + + - 45 AS col2, - ( - + col1 ) * 0 + - col0 FROM tab0
----
9 values hashing to a81c271d94226d0bbe9e7d3b58c9fd20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-531
SELECT ALL col2 / + col1 col1, col0 + + - 45 AS col2, - ( - + col1 ) * 0 + - col0 FROM tab0
----
9 values hashing to a81c271d94226d0bbe9e7d3b58c9fd20

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-533
SELECT DISTINCT 50 * ( - - CAST( - col0 AS SIGNED ) ) * - col1 * - col2 AS col0 FROM tab0
----
-2855250
-480150
-913500

skipif mysql # not compatible
query I rowsort label-533
SELECT DISTINCT 50 * ( - - CAST ( - col0 AS INTEGER ) ) * - col1 * - col2 AS col0 FROM tab0
----
-2855250
-480150
-913500

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-534
SELECT * FROM tab1 WHERE NOT - + CAST( NULL AS SIGNED ) * - 24 * + 21 - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-534
SELECT * FROM tab1 WHERE NOT - + CAST ( NULL AS INTEGER ) * - 24 * + 21 - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-535
SELECT 18 * 76 + ( - COUNT( * ) ) FROM tab0 WHERE NOT NULL IS NULL
----
1368

skipif mysql # not compatible
query I rowsort label-535
SELECT 18 * 76 + ( - COUNT ( * ) ) FROM tab0 WHERE NOT NULL IS NULL
----
1368

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-536
SELECT ALL MAX( - - CAST( col1 AS SIGNED ) ) FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-536
SELECT ALL MAX ( - - CAST ( col1 AS INTEGER ) ) FROM tab1
----
47

query II rowsort
SELECT DISTINCT + 98, col0 AS col2 FROM tab0 AS cor0
----
98
15
98
87
98
97

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

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

query I rowsort
SELECT - + 11 * - + col1 FROM tab2 AS cor0
----
561
737
847

query I rowsort
SELECT + - ( + 50 ) FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to c7432a968c8352c12996dfa54dd4b9e8

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 90 <> 23
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col0 + + col0 + - + ( - 14 ) AS col0 FROM tab2 AS cor0
----
106
142
164

query I rowsort
SELECT DISTINCT col1 + 91 FROM tab2 cor0
----
142
158
168

query I rowsort
SELECT DISTINCT + 87 FROM tab2 WHERE NOT ( + 43 ) > col1
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-546
SELECT DISTINCT + 85 * 67 + - COUNT( * ) + - - COUNT( * ) AS col0 FROM tab1
----
5695

skipif mysql # not compatible
query I rowsort label-546
SELECT DISTINCT + 85 * 67 + - COUNT ( * ) + - - COUNT ( * ) AS col0 FROM tab1
----
5695

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-547
SELECT DISTINCT + col2 DIV + col1 + - CAST( + + 8 AS SIGNED ) col1 FROM tab1
----
-2
-7
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-547
SELECT DISTINCT + col2 / + col1 + - CAST ( + + 8 AS INTEGER ) col1 FROM tab1
----
-2
-7
3

query I rowsort
SELECT ALL 9 + 5 FROM tab1
----
14
14
14

query I rowsort
SELECT ALL + 44 + - ( + + ( + + 74 ) ) - + + col2 + + col2 * - 16 FROM tab0
----
-1713
-200
-829

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

query I rowsort
SELECT col1 + + - 1 FROM tab0
----
0
20
80

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-556
SELECT + + COUNT( * ) - - - COUNT( * ) AS col2, - 79 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
0
-79

skipif mysql # not compatible
query II rowsort label-556
SELECT + + COUNT ( * ) - - - COUNT ( * ) AS col2, - 79 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
0
-79

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

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

query I rowsort
SELECT ALL 33 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-559
SELECT - SUM( - ( + 91 ) ) * + COUNT( * ) DIV + COUNT( * ) + - + 47 + - COUNT( ALL col2 ) AS col0 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-559
SELECT - SUM ( - ( + 91 ) ) * + COUNT ( * ) / + COUNT ( * ) + - + 47 + - COUNT ( ALL col2 ) AS col0 FROM tab1 AS cor0
----
223

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

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

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

query II rowsort
SELECT + col2 AS col0, col0 AS col0 FROM tab2 WHERE NOT NULL > NULL
----

query I rowsort
SELECT DISTINCT + col0 * - 35 FROM tab2
----
-1610
-2240
-2625

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

query I rowsort
SELECT DISTINCT - + 76 + col2 AS col1 FROM tab1 WHERE NOT - col2 + - 99 IS NULL
----
-17
-8
20

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

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

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 > - col0
----

query II rowsort
SELECT - 72, - col1 AS col1 FROM tab0
----
-72
-1
-72
-21
-72
-81

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( 28 * - - 3 ) <> NULL
----

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

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

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

query I rowsort
SELECT col2 AS col1 FROM tab2 AS cor0 WHERE NULL <> col1 + 37 * 84
----

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-577
SELECT - col1, + CAST( + + col0 AS SIGNED ) DIV col1 DIV + col1 + - 90 AS col2 FROM tab2 cor0
----
-51
-90
-67
-90
-77
-90

skipif mysql # not compatible
query II rowsort label-577
SELECT - col1, + CAST ( + + col0 AS INTEGER ) / col1 / + col1 + - 90 AS col2 FROM tab2 cor0
----
-51
-90
-67
-90
-77
-90

query I rowsort
SELECT - col2 * - + col0 + + 28 FROM tab0 cor0
----
733
898
9631

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

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

query I rowsort
SELECT ALL - col0 * - - 51 AS col0 FROM tab0
----
-4437
-4947
-765

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

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

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

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

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

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

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

query I rowsort
SELECT - ( 60 ) AS col0 FROM tab1, tab1 cor0
----
9 values hashing to 067a4b5daf8747042e3b07ca8459859f

query I rowsort
SELECT ALL + col1 - - + col0 * + 61 * - col1 AS col1 FROM tab2
----
-143055
-300531
-306458

query I rowsort
SELECT ALL 81 FROM tab0, tab0 cor0
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267

query I rowsort
SELECT ALL + 36 FROM tab2, tab1 AS cor0
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-591
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( col0 ) NOT BETWEEN NULL AND + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-591
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( col0 ) NOT BETWEEN NULL AND + CAST ( NULL AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 84 col0, - 16 FROM tab2
----
-84
-16
-84
-16
-84
-16

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE + col0 NOT IN ( - col0 + - + 3 + - col2 * - - ( col1 ) * + 90 * + - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

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

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

query I rowsort
SELECT - 27 + 36 AS col0 FROM tab1 AS cor0
----
9
9
9

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-598
SELECT - - 43 - COUNT( * ) FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
34

skipif mysql # not compatible
query I rowsort label-598
SELECT - - 43 - COUNT ( * ) FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
34

query I rowsort
SELECT DISTINCT + 62 - - 89 AS col2 FROM tab2 AS cor0
----
151

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-600
SELECT DISTINCT - - CAST( col0 AS SIGNED ) DIV 1 AS col2, + col1 FROM tab0 AS cor0
----
15
81
87
21
97
1

skipif mysql # not compatible
query II rowsort label-600
SELECT DISTINCT - - CAST ( col0 AS INTEGER ) / 1 AS col2, + col1 FROM tab0 AS cor0
----
15
81
87
21
97
1

query I rowsort
SELECT + 64 * 33 AS col0 FROM tab0 AS cor0
----
2112
2112
2112

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + 15 col2 FROM tab1 AS cor0
----
-210
-705
-75

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

query I rowsort
SELECT - ( - col1 ) - + 64 AS col0 FROM tab1 cor0
----
-17
-50
-59

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

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

query I rowsort
SELECT DISTINCT + 53 * - 31 * ( + - col0 ) FROM tab0 AS cor0
----
142941
159371
24645

query I rowsort
SELECT + - col0 + + + 22 AS col2 FROM tab2 AS cor0
----
-24
-42
-53

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-609
SELECT ALL - col2, + 47 FROM tab0 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) NOT BETWEEN + - col0 + - - 22 AND NULL
----

skipif mysql # not compatible
query II rowsort label-609
SELECT ALL - col2, + 47 FROM tab0 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) NOT BETWEEN + - col0 + - - 22 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-610
SELECT ALL - COUNT( * ) * 63 + + + 45 AS col2 FROM tab2 AS cor0
----
-144

skipif mysql # not compatible
query I rowsort label-610
SELECT ALL - COUNT ( * ) * 63 + + + 45 AS col2 FROM tab2 AS cor0
----
-144

onlyif mysql # DIV for integer division: 
query I rowsort label-611
SELECT col2 DIV - 2 + - ( + col0 ) + - col2 * col2 + - ( - - col0 ) AS col2 FROM tab0
----
-10044
-2262
-279

skipif mysql # not compatible
query I rowsort label-611
SELECT col2 / - 2 + - ( + col0 ) + - col2 * col2 + - ( - - col0 ) AS col2 FROM tab0
----
-10044
-2262
-279

onlyif mysql # DIV for integer division: 
query I rowsort label-612
SELECT ALL + ( - col1 ) DIV col2 + - col0 FROM tab0
----
-16
-89
-97

skipif mysql # not compatible
query I rowsort label-612
SELECT ALL + ( - col1 ) / col2 + - col0 FROM tab0
----
-16
-89
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-613
SELECT DISTINCT - COUNT( * ) * AVG ( - - col1 ) FROM tab0 WHERE NOT ( + 55 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-613
SELECT DISTINCT - COUNT ( * ) * AVG ( - - col1 ) FROM tab0 WHERE NOT ( + 55 ) IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + 63 - + + col1 col0 FROM tab1
----
2914
310
868

query I rowsort
SELECT - col1 * + - 78 + 42 FROM tab2
----
4020
5268
6048

onlyif mysql # aggregate syntax: 
query II rowsort label-616
SELECT ALL 47 - + 98, - ( - MAX( col2 ) ) AS col0 FROM tab1
----
-51
96

skipif mysql # not compatible
query II rowsort label-616
SELECT ALL 47 - + 98, - ( - MAX ( col2 ) ) AS col0 FROM tab1
----
-51
96

query II rowsort
SELECT 33, - col1 AS col1 FROM tab0
----
33
-1
33
-21
33
-81

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( 90 - - col0 - + ( col0 ) * - 65, ( 60 ) + col1, 96, + col1 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL BETWEEN ( + 36 ) AND - col0 + 77 - + + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-620
SELECT DISTINCT CAST( - - col2 AS SIGNED ) AS col0, - col2 AS col1 FROM tab1
----
59
-59
68
-68
96
-96

skipif mysql # not compatible
query II rowsort label-620
SELECT DISTINCT CAST ( - - col2 AS INTEGER ) AS col0, - col2 AS col1 FROM tab1
----
59
-59
68
-68
96
-96

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

query I rowsort
SELECT + col0 * - + 5 FROM tab0
----
-435
-485
-75

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-625
SELECT COUNT( * ) col2 FROM tab1 cor0 WHERE NOT col2 BETWEEN + col2 AND - + 59
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-625
SELECT COUNT ( * ) col2 FROM tab1 cor0 WHERE NOT col2 BETWEEN + col2 AND - + 59
----
3

query I rowsort
SELECT ALL - - 51 AS col0 FROM tab1 AS cor0
----
51
51
51

onlyif mysql # aggregate syntax: 
query I rowsort label-627
SELECT - COUNT( * ) + MAX( - col1 ) * - + 51 AS col2 FROM tab2 AS cor0
----
2598

skipif mysql # not compatible
query I rowsort label-627
SELECT - COUNT ( * ) + MAX ( - col1 ) * - + 51 AS col2 FROM tab2 AS cor0
----
2598

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

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

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

query I rowsort
SELECT DISTINCT + 80 + 31 AS col1 FROM tab1
----
111

query I rowsort
SELECT 46 * + col0 FROM tab0
----
4002
4462
690

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

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

query I rowsort
SELECT ALL 79 + 81 FROM tab1 AS cor0 WHERE NOT col0 = - col1
----
160
160
160

query I rowsort
SELECT DISTINCT 92 + 48 FROM tab2 AS cor0
----
140

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-638
SELECT DISTINCT + + col2 DIV - 17 + - 0 AS col1 FROM tab2 AS cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-638
SELECT DISTINCT + + col2 / - 17 + - 0 AS col1 FROM tab2 AS cor0
----
-1
-2
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-639
SELECT + 42 * 3 DIV - col2 AS col1 FROM tab0 cor0
----
-1
-12
-2

skipif mysql # not compatible
query I rowsort label-639
SELECT + 42 * 3 / - col2 AS col1 FROM tab0 cor0
----
-1
-12
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-640
SELECT - COUNT( 16 ) * + 62 FROM tab0 cor0 WHERE ( NOT + 9 - - CAST( - - 45 AS SIGNED ) IS NULL )
----
-186

skipif mysql # not compatible
query I rowsort label-640
SELECT - COUNT ( 16 ) * + 62 FROM tab0 cor0 WHERE ( NOT + 9 - - CAST ( - - 45 AS INTEGER ) IS NULL )
----
-186

query I rowsort
SELECT 55 * - 54 + 65 AS col0 FROM tab0 AS cor0
----
-2905
-2905
-2905

query I rowsort
SELECT col0 - + + col0 AS col0 FROM tab0
----
0
0
0

query III rowsort
SELECT * FROM tab0 WHERE + + 18 * col0 / 65 / col0 NOT BETWEEN NULL AND col1
----

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

query I rowsort
SELECT ALL col1 + 76 * - - 61 AS col1 FROM tab0
----
4637
4657
4717

query I rowsort
SELECT DISTINCT col0 - + - col0 * ( - - col0 ) * - col0 FROM tab2
----
-262080
-421800
-97290

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-650
SELECT - + MAX ( + 18 ) AS col1 FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-651
SELECT - MAX( + - CAST( NULL AS DECIMAL ) ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-651
SELECT - MAX ( + - CAST ( NULL AS REAL ) ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-652
SELECT ALL - COUNT( * ) DIV 96 AS col1 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-652
SELECT ALL - COUNT ( * ) / 96 AS col1 FROM tab1 cor0
----
0

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IN ( - 17, + col2, col1 )
----

query II rowsort
SELECT ALL col2 AS col0, 91 FROM tab0 AS cor0
----
10
91
47
91
99
91

query II rowsort
SELECT - + 0 AS col1, col1 + + + ( col1 ) AS col0 FROM tab2 AS cor0
----
0
102
0
134
0
154

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

query I rowsort
SELECT DISTINCT - 89 + + col1 AS col1 FROM tab1 AS cor0
----
-42
-75
-84

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

query III rowsort
SELECT * FROM tab2 WHERE - + 21 + 30 = - 32
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + - col0 + col2 col1 FROM tab0
----
-658
-860
-9504

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

query I rowsort
SELECT + col1 * - col0 + - - col1 AS col2 FROM tab2
----
-2295
-4851
-4958

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-665
SELECT - - CAST( - col0 AS SIGNED ) + - 56 * 3 FROM tab1 AS cor0
----
-219
-253
-259

skipif mysql # not compatible
query I rowsort label-665
SELECT - - CAST ( - col0 AS INTEGER ) + - 56 * 3 FROM tab1 AS cor0
----
-219
-253
-259

query I rowsort
SELECT + 99 AS col2 FROM tab1 AS cor0 WHERE ( col1 + - 86 + - col2 ) IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-667
SELECT - - COUNT( * ) * - SUM( ALL - + col2 ) + - COUNT( * ) DIV 26 AS col0 FROM tab0 AS cor0
----
468

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

onlyif mysql # aggregate syntax: 
query I rowsort label-668
SELECT - + SUM( + + ( + col1 ) ) AS col0 FROM tab1 cor0
----
-66

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

query I rowsort
SELECT ALL 69 - - + col0 FROM tab1
----
120
154
160

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - - - col1 col0 FROM tab2 cor0
----
-117
-125
-74

query II rowsort
SELECT - + col1 * - col0 - - col2 AS col2, + col2 AS col2 FROM tab2 AS cor0
----
2369
23
4968
40
5083
58

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

onlyif mysql # aggregate syntax: 
query I rowsort label-673
SELECT ALL - ( + MIN( + col2 ) ) FROM tab1 AS cor0 WHERE NOT - col0 * col1 + ( + ( col1 ) ) < NULL AND NOT 29 * + + 79 NOT IN ( + col1 + + + col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-673
SELECT ALL - ( + MIN ( + col2 ) ) FROM tab1 AS cor0 WHERE NOT - col0 * col1 + ( + ( col1 ) ) < NULL AND NOT 29 * + + 79 NOT IN ( + col1 + + + col1 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-674
SELECT ALL + - SUM( DISTINCT + 78 ) FROM tab1 cor0
----
-78

skipif mysql # not compatible
query I rowsort label-674
SELECT ALL + - SUM ( DISTINCT + 78 ) FROM tab1 cor0
----
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-675
SELECT DISTINCT col0 FROM tab0 AS cor0 WHERE NOT - col0 IN ( + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-675
SELECT DISTINCT col0 FROM tab0 AS cor0 WHERE NOT - col0 IN ( + CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-676
SELECT ALL - 39, + COUNT( DISTINCT + 95 ) AS col0 FROM tab1 AS cor0
----
-39
1

skipif mysql # not compatible
query II rowsort label-676
SELECT ALL - 39, + COUNT ( DISTINCT + 95 ) AS col0 FROM tab1 AS cor0
----
-39
1

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-678
SELECT DISTINCT col1 * col0 DIV + + 31 AS col2 FROM tab0
----
3
39
58

skipif mysql # not compatible
query I rowsort label-678
SELECT DISTINCT col1 * col0 / + + 31 AS col2 FROM tab0
----
3
39
58

query I rowsort
SELECT - ( - 91 ) AS col0 FROM tab0
----
91
91
91

onlyif mysql # DIV for integer division: 
query I rowsort label-680
SELECT DISTINCT - col0 DIV - - 3 FROM tab2 AS cor0
----
-15
-21
-25

skipif mysql # not compatible
query I rowsort label-680
SELECT DISTINCT - col0 / - - 3 FROM tab2 AS cor0
----
-15
-21
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-681
SELECT DISTINCT - - 35 * + col2 + col1 DIV + col0 AS col0 FROM tab1 AS cor0
----
2065
2380
3360

skipif mysql # not compatible
query I rowsort label-681
SELECT DISTINCT - - 35 * + col2 + col1 / + col0 AS col0 FROM tab1 AS cor0
----
2065
2380
3360

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( NULL ) NOT BETWEEN + col0 * + 92 / col0 AND + 51 / - col2
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + 43 NOT BETWEEN NULL AND - 20
----

onlyif mysql # DIV for integer division: 
query I rowsort label-684
SELECT ALL + 75 DIV - col0 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-684
SELECT ALL + 75 / - col0 FROM tab2
----
-1
-1
-1

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 > - + col1 * - + col0
----
97
1
99

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-690
SELECT ( + SUM( ALL + 31 ) ) FROM tab1
----
93

skipif mysql # not compatible
query I rowsort label-690
SELECT ( + SUM ( ALL + 31 ) ) FROM tab1
----
93

query II rowsort
SELECT col2, ( - col0 ) + 12 FROM tab2
----
23
-34
40
-52
58
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-692
SELECT DISTINCT + COUNT( * ) * COUNT( * ) + + + 50 AS col2 FROM tab2
----
59

skipif mysql # not compatible
query I rowsort label-692
SELECT DISTINCT + COUNT ( * ) * COUNT ( * ) + + + 50 AS col2 FROM tab2
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-693
SELECT ALL 46 DIV - 87 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-693
SELECT ALL 46 / - 87 AS col2 FROM tab0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-694
SELECT DISTINCT + CAST( - 46 AS SIGNED ) + + 37 AS col0 FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-694
SELECT DISTINCT + CAST ( - 46 AS INTEGER ) + + 37 AS col0 FROM tab1
----
-9

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-698
SELECT ALL CAST( - + 83 AS SIGNED ) AS col1 FROM tab1
----
-83
-83
-83

skipif mysql # not compatible
query I rowsort label-698
SELECT ALL CAST ( - + 83 AS INTEGER ) AS col1 FROM tab1
----
-83
-83
-83

query I rowsort
SELECT - col2 - 86 FROM tab0 AS cor0
----
-133
-185
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-700
SELECT + col0 + - - ( + + col1 ) * + + CAST( - + col0 AS SIGNED ) FROM tab2 AS cor0
----
-2300
-4864
-4950

skipif mysql # not compatible
query I rowsort label-700
SELECT + col0 + - - ( + + col1 ) * + + CAST ( - + col0 AS INTEGER ) FROM tab2 AS cor0
----
-2300
-4864
-4950

query II rowsort
SELECT ALL col1 - 27, col0 FROM tab0
----
-26
97
-6
87
54
15

query III rowsort
SELECT * FROM tab1 WHERE + - 27 / 18 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - ( 34 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-34

query I rowsort
SELECT ALL + - col2 AS col1 FROM tab2 AS cor0 WHERE + col2 * + - col0 * + col2 - - 91 IS NOT NULL
----
-23
-40
-58

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

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

query II rowsort
SELECT - + 8 * - 92, col1 * - col1 AS col2 FROM tab0 AS cor0
----
736
-1
736
-441
736
-6561

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 col0, ( + - col0 ) FROM tab0
----
-10
-87
-47
-15
-99
-97

query II rowsort
SELECT DISTINCT + col0 * + ( + 30 ) + + 54 AS col0, col1 FROM tab1 WHERE col2 IN ( 71 )
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-713
SELECT + - 12 * COUNT( * ) FROM tab1 cor0
----
-36

skipif mysql # not compatible
query I rowsort label-713
SELECT + - 12 * COUNT ( * ) FROM tab1 cor0
----
-36

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

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

query I rowsort
SELECT ALL 68 + - ( col0 ) FROM tab2 AS cor0
----
-7
22
4

onlyif mysql # aggregate syntax: 
query I rowsort label-716
SELECT - + 43 * - 75 * - SUM( DISTINCT - col1 ) FROM tab1 AS cor0
----
212850

skipif mysql # not compatible
query I rowsort label-716
SELECT - + 43 * - 75 * - SUM ( DISTINCT - col1 ) FROM tab1 AS cor0
----
212850

query I rowsort
SELECT ALL + col0 * + + col0 FROM tab2 cor0
----
2116
4096
5625

onlyif mysql # aggregate syntax: 
query I rowsort label-718
SELECT ALL - MAX( col0 ) - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NULL IN ( - 67 - 61 / - col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-718
SELECT ALL - MAX ( col0 ) - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NULL IN ( - 67 - 61 / - col0 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-719
SELECT + 78 DIV + col2 FROM tab0 AS cor0
----
0
1
7

skipif mysql # not compatible
query I rowsort label-719
SELECT + 78 / + col2 FROM tab0 AS cor0
----
0
1
7

query I rowsort
SELECT DISTINCT + col0 + 86 AS col2 FROM tab0 AS cor0
----
101
173
183

query I rowsort
SELECT ALL 53 / col1 + + col2 FROM tab0 WHERE ( NOT NULL IS NULL )
----

query I rowsort
SELECT DISTINCT 25 + + col2 * - - 11 FROM tab2
----
278
465
663

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

onlyif mysql # aggregate syntax: 
query I rowsort label-724
SELECT COUNT( * ) + - 97 FROM tab2
----
-94

skipif mysql # not compatible
query I rowsort label-724
SELECT COUNT ( * ) + - 97 FROM tab2
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-725
SELECT + 10 + + + MAX( col0 ) FROM tab2
----
85

skipif mysql # not compatible
query I rowsort label-725
SELECT + 10 + + + MAX ( col0 ) FROM tab2
----
85

query II rowsort
SELECT + col2 + + 69 * + + 7, + col2 AS col2 FROM tab2
----
506
23
523
40
541
58

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-729
SELECT ALL MIN( 63 ) + 98 DIV - COUNT( * ) AS col1 FROM tab1
----
31

skipif mysql # not compatible
query I rowsort label-729
SELECT ALL MIN ( 63 ) + 98 / - COUNT ( * ) AS col1 FROM tab1
----
31

query III rowsort
SELECT * FROM tab1 WHERE - col1 <= + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

onlyif mysql # aggregate syntax: 
query I rowsort label-732
SELECT ALL - SUM( ALL - + 2 ) FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-732
SELECT ALL - SUM ( ALL - + 2 ) FROM tab0 AS cor0
----
6

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col1 > + col1
----

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

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

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

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

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

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

query I rowsort
SELECT - + ( + 68 ) * - col2 AS col0 FROM tab1 AS cor0
----
4012
4624
6528

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-740
SELECT ALL SUM( ( + 31 ) ) AS col2 FROM tab1
----
93

skipif mysql # not compatible
query I rowsort label-740
SELECT ALL SUM ( ( + 31 ) ) AS col2 FROM tab1
----
93

onlyif mysql # DIV for integer division: 
query II rowsort label-741
SELECT 91 DIV - col1, col1 AS col2 FROM tab1
----
-1
47
-18
5
-6
14

skipif mysql # not compatible
query II rowsort label-741
SELECT 91 / - col1, col1 AS col2 FROM tab1
----
-1
47
-18
5
-6
14

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

skipif mysql # not compatible
query I rowsort label-742
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab1 WHERE NULL = NULL
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT - 93 + - col0 < - col2
----

query I rowsort
SELECT ALL - + 89 * - col1 + col1 FROM tab1 AS cor0
----
1260
4230
450

query I rowsort
SELECT ALL + + 11 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00

query I rowsort
SELECT + col0 + + 59 AS col0 FROM tab0 AS cor0
----
146
156
74

query I rowsort
SELECT + 59 AS col0 FROM tab0 cor0 WHERE NULL >= + col1 + - + 47
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-748
SELECT + SUM( + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

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

query I rowsort
SELECT 12 * - col1 FROM tab0 AS cor0
----
-12
-252
-972

query I rowsort
SELECT ALL col0 * - - 45 FROM tab0 AS cor0
----
3915
4365
675

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

query I rowsort
SELECT DISTINCT + - col1 * - 38 FROM tab2 AS cor0
----
1938
2546
2926

onlyif mysql # aggregate syntax: 
query I rowsort label-753
SELECT DISTINCT + COUNT( * ) - - 84 + + + COUNT( * ) FROM tab0 WHERE + col2 IS NULL
----
84

skipif mysql # not compatible
query I rowsort label-753
SELECT DISTINCT + COUNT ( * ) - - 84 + + + COUNT ( * ) FROM tab0 WHERE + col2 IS NULL
----
84

query I rowsort
SELECT DISTINCT + col0 + 22 + ( - col1 ) * col0 * + 33 FROM tab2
----
-162538
-165728
-77350

query I rowsort
SELECT + col2 - - + 64 + - 1 FROM tab2 AS cor0
----
103
121
86

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

skipif mysql # not compatible
query I rowsort label-756
SELECT ALL - col2 / - col1 AS col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-757
SELECT ALL + 22 DIV + col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-757
SELECT ALL + 22 / + col2 FROM tab1 AS cor0
----
0
0
0

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-761
SELECT DISTINCT MAX( col2 ) FROM tab1 cor0
----
96

skipif mysql # not compatible
query I rowsort label-761
SELECT DISTINCT MAX ( col2 ) FROM tab1 cor0
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-762
SELECT + + col2 * - + 57 * col0, CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-145920
NULL
-247950
NULL
-60306
NULL

skipif mysql # not compatible
query II rowsort label-762
SELECT + + col2 * - + 57 * col0, CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-145920
NULL
-247950
NULL
-60306
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-763
SELECT ALL 41 DIV + 50 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-763
SELECT ALL 41 / + 50 FROM tab2 AS cor0
----
0
0
0

query II rowsort
SELECT + col2 * + 44 - + col1 AS col1, + col2 AS col1 FROM tab1 AS cor0
----
2591
59
2945
68
4210
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-765
SELECT ALL COUNT( - - col0 ) FROM tab2 AS cor0 WHERE NOT ( + CAST( NULL AS SIGNED ) * + + col1 + 20 * - ( 87 ) ) >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-765
SELECT ALL COUNT ( - - col0 ) FROM tab2 AS cor0 WHERE NOT ( + CAST ( NULL AS INTEGER ) * + + col1 + 20 * - ( 87 ) ) >= NULL
----
0

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

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

query I rowsort
SELECT + 19 * + col1 AS col2 FROM tab2 AS cor0
----
1273
1463
969

query II rowsort
SELECT DISTINCT ( 15 ) AS col2, - 63 * + col2 AS col0 FROM tab0
----
15
-2961
15
-6237
15
-630

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

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

skipif mysql # not compatible
query I rowsort label-770
SELECT ALL COUNT ( + 7 ) FROM tab0
----
3

query I rowsort
SELECT DISTINCT + 49 + - + 45 FROM tab0 AS cor0
----
4

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

skipif mysql # not compatible
query I rowsort label-772
SELECT DISTINCT + - COUNT ( DISTINCT + col2 ) + + CAST ( COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0
----
0

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

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

query I rowsort
SELECT ALL - 64 FROM tab0 WHERE ( 70 ) + + - col1 * - - col2 IS NULL
----

query I rowsort
SELECT 12 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to d4f5a8e032294c3b9342821617800972

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-778
SELECT SUM( ALL col1 ) - - COUNT( DISTINCT col0 ) + + 52 FROM tab0 AS cor0
----
158

skipif mysql # not compatible
query I rowsort label-778
SELECT SUM ( ALL col1 ) - - COUNT ( DISTINCT col0 ) + + 52 FROM tab0 AS cor0
----
158

query I rowsort
SELECT ALL + col1 * - - col1 * + col0 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL = NULL )
----

query I rowsort
SELECT DISTINCT - col1 FROM tab1 cor0 WHERE NOT + col0 < - + 97 + + col0
----
-14
-47
-5

query I rowsort
SELECT + - col1 * col0 + + col0 + - 23 FROM tab1 AS cor0
----
-363
-4209
-686

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( NOT - col0 * - 10 + - - col1 IS NOT NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 84 + - 35 + col0 - col0 - - - col2 * - 59 * - 73 <> col0 - + col2
----

query I rowsort
SELECT ALL 17 - + col0 AS col0 FROM tab1
----
-34
-68
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-785
SELECT ALL - COUNT( * ) + 35 FROM tab1
----
32

skipif mysql # not compatible
query I rowsort label-785
SELECT ALL - COUNT ( * ) + 35 FROM tab1
----
32

query I rowsort
SELECT col2 + + 4 AS col0 FROM tab2
----
27
44
62

query III rowsort
SELECT * FROM tab0 WHERE 60 * col2 + col2 < NULL
----

query I rowsort
SELECT DISTINCT 45 + + col1 AS col2 FROM tab1
----
50
59
92

query I rowsort
SELECT ALL + col1 * + - 48 * + 92 + col1 FROM tab0
----
-357615
-4415
-92715

query I rowsort
SELECT ALL col0 - - - 77 AS col0 FROM tab1 AS cor0
----
-26
14
8

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

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

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

query II rowsort
SELECT DISTINCT - col1 AS col0, ( + col2 ) * - ( - col0 ) FROM tab2 AS cor0
----
-51
1058
-67
4350
-77
2560

query I rowsort
SELECT ALL + 36 * + col1 AS col1 FROM tab1
----
1692
180
504

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col1 * + 12 col1 FROM tab1
----
5100
51324
8568

query I rowsort
SELECT ALL - 38 * ( + 91 ) + + + col0 FROM tab0
----
-3361
-3371
-3443

query I rowsort
SELECT DISTINCT + 34 * col0 * + col2 AS col0 FROM tab2
----
147900
35972
87040

query I rowsort
SELECT - col2 + 2 AS col1 FROM tab0 WHERE NOT - col0 <= NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-800
SELECT ALL + COUNT( * ) DIV - 83 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-800
SELECT ALL + COUNT ( * ) / - 83 AS col2 FROM tab1
----
0

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

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

query I rowsort
SELECT - 62 * - - 12 * + 23 AS col2 FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-804
SELECT CAST( col0 AS SIGNED ) * 70 * + 51 + - col0 + ( - 44 ) AS col2 FROM tab0
----
310459
346149
53491

skipif mysql # not compatible
query I rowsort label-804
SELECT CAST ( col0 AS INTEGER ) * 70 * + 51 + - col0 + ( - 44 ) AS col2 FROM tab0
----
310459
346149
53491

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + 97 ) IS NOT NULL
----

query II rowsort
SELECT DISTINCT - 85 AS col0, 34 AS col1 FROM tab2 AS cor0
----
-85
34

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

onlyif mysql # aggregate syntax: 
query I rowsort label-808
SELECT ALL - COUNT( * ) * - 11 - + MIN( DISTINCT - col2 ) AS col0 FROM tab1 cor0
----
129

skipif mysql # not compatible
query I rowsort label-808
SELECT ALL - COUNT ( * ) * - 11 - + MIN ( DISTINCT - col2 ) AS col0 FROM tab1 cor0
----
129

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-810
SELECT + + MIN( - - 66 ) FROM tab0 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-810
SELECT + + MIN ( - - 66 ) FROM tab0 AS cor0
----
66

onlyif mysql # aggregate syntax: 
query II rowsort label-811
SELECT DISTINCT + 35, COUNT( * ) * 11 col1 FROM tab0 AS cor0
----
35
33

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-811
SELECT DISTINCT + 35, COUNT ( * ) * 11 col1 FROM tab0 AS cor0
----
35
33

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

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

query II rowsort
SELECT + col1 * + 67 AS col1, + col1 * + col2 AS col0 FROM tab0 AS cor0
----
1407
210
5427
3807
67
99

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

query I rowsort
SELECT - ( 46 ) AS col0 FROM tab2 AS cor0
----
-46
-46
-46

query I rowsort
SELECT ALL - col2 + - 81 FROM tab1 AS cor0
----
-140
-149
-177

onlyif mysql # aggregate syntax: 
query I rowsort label-817
SELECT ALL - SUM( + + 60 ) AS col1 FROM tab1
----
-180

skipif mysql # not compatible
query I rowsort label-817
SELECT ALL - SUM ( + + 60 ) AS col1 FROM tab1
----
-180

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-820
SELECT DISTINCT col1 DIV - col0 * col2 - col2 + + ( + col0 ) * + - col0 FROM tab1
----
-2697
-7284
-8349

skipif mysql # not compatible
query I rowsort label-820
SELECT DISTINCT col1 / - col0 * col2 - col2 + + ( + col0 ) * + - col0 FROM tab1
----
-2697
-7284
-8349

onlyif mysql # DIV for integer division: 
query I rowsort label-821
SELECT ALL 27 + + + col1 + + 48 DIV - col2 FROM tab2
----
103
76
94

skipif mysql # not compatible
query I rowsort label-821
SELECT ALL 27 + + + col1 + + 48 / - col2 FROM tab2
----
103
76
94

onlyif mysql # aggregate syntax: 
query I rowsort label-822
SELECT - COUNT( * ) AS col2 FROM tab0 WHERE ( col0 ) + - 10 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-822
SELECT - COUNT ( * ) AS col2 FROM tab0 WHERE ( col0 ) + - 10 IS NULL
----
0

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-826
SELECT DISTINCT COUNT( * ) FROM tab1 WHERE NOT 61 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-826
SELECT DISTINCT COUNT ( * ) FROM tab1 WHERE NOT 61 < NULL
----
0

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-830
SELECT + + CAST( - CAST( - - col2 AS DECIMAL ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-830
SELECT + + CAST ( - CAST ( - - col2 AS REAL ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-10
-47
-99

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

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

query II rowsort
SELECT + + col2 AS col1, col1 * - + col0 FROM tab2 AS cor0
----
23
-2346
40
-4928
58
-5025

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-835
SELECT - COUNT ( - 54 ) col1 FROM tab2 AS cor0 WHERE NOT + col2 NOT BETWEEN + 29 AND NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-836
SELECT * FROM tab1 WHERE NOT + + 89 NOT BETWEEN - col0 AND + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-836
SELECT * FROM tab1 WHERE NOT + + 89 NOT BETWEEN - col0 AND + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL - - AVG ( - col0 ) AS col2 FROM tab1 WHERE NOT col0 * + ( + - col1 ) * - 45 + - 7 > NULL
----
NULL

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

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

query I rowsort
SELECT 23 / + - col2 + + 97 FROM tab1 WHERE NOT - - col0 IS NOT NULL
----

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

query II rowsort
SELECT - 51 + + col1 AS col1, col0 * + col1 FROM tab1
----
-37
714
-4
4277
-46
425

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

onlyif mysql # aggregate syntax: 
query II rowsort label-843
SELECT 17 + + - 47 * MIN( + col1 ), 69 AS col1 FROM tab1 AS cor0
----
-218
69

skipif mysql # not compatible
query II rowsort label-843
SELECT 17 + + - 47 * MIN ( + col1 ), 69 AS col1 FROM tab1 AS cor0
----
-218
69

query I rowsort
SELECT - col0 + + - 32 FROM tab0 AS cor0
----
-119
-129
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-845
SELECT + - col2 - ( col0 ) DIV - 40 FROM tab0 AS cor0
----
-47
-8
-97

skipif mysql # not compatible
query I rowsort label-845
SELECT + - col2 - ( col0 ) / - 40 FROM tab0 AS cor0
----
-47
-8
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-846
SELECT ALL + + 94 - - 27 + - COUNT( * ) FROM tab0 AS cor0
----
118

skipif mysql # not compatible
query I rowsort label-846
SELECT ALL + + 94 - - 27 + - COUNT ( * ) FROM tab0 AS cor0
----
118

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-847
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - CAST( - 79 AS DECIMAL ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-847
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - CAST ( - 79 AS REAL ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-848
SELECT 74 - MIN( ALL - col0 ) FROM tab1 AS cor0
----
165

skipif mysql # not compatible
query I rowsort label-848
SELECT 74 - MIN ( ALL - col0 ) FROM tab1 AS cor0
----
165

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-850
SELECT ALL col0 * + CAST( - col2 AS DECIMAL ) + + col2 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) < - col1
----

skipif mysql # not compatible
query I rowsort label-850
SELECT ALL col0 * + CAST ( - col2 AS REAL ) + + col2 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) < - col1
----

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

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

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

query I rowsort
SELECT + col2 + - col1 * col2 AS col2 FROM tab0
----
-200
-3760
0

onlyif mysql # aggregate syntax: 
query II rowsort label-854
SELECT COUNT( DISTINCT + col2 ) AS col0, 38 col0 FROM tab2
----
3
38

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

onlyif mysql # aggregate syntax: 
query I rowsort label-855
SELECT ALL + - 90 + + COUNT( * ) FROM tab0 WHERE NOT col1 IS NOT NULL
----
-90

skipif mysql # not compatible
query I rowsort label-855
SELECT ALL + - 90 + + COUNT ( * ) FROM tab0 WHERE NOT col1 IS NOT NULL
----
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-856
SELECT 51 DIV + 70 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-856
SELECT 51 / + 70 FROM tab0
----
0
0
0

query II rowsort
SELECT - col2, 33 * col1 - - - 18 AS col0 FROM tab0
----
-10
675
-47
2655
-99
15

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-858
SELECT ALL + 15, - col0 * - col2 + - + CAST( + + col2 AS SIGNED ) AS col1 FROM tab1
----
15
4800
15
4956
15
6120

skipif mysql # not compatible
query II rowsort label-858
SELECT ALL + 15, - col0 * - col2 + - + CAST ( + + col2 AS INTEGER ) AS col1 FROM tab1
----
15
4800
15
4956
15
6120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-859
SELECT - CAST( MAX( col0 ) AS SIGNED ) FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-859
SELECT - CAST ( MAX ( col0 ) AS INTEGER ) FROM tab0
----
-97

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-861
SELECT + SUM ( - + col0 ) col0 FROM tab2
----
-185

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-862
SELECT DISTINCT - MIN( CAST( - + col1 AS SIGNED ) ) * - - 61 + ( + ( + 58 ) ) FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
4755

skipif mysql # not compatible
query I rowsort label-862
SELECT DISTINCT - MIN ( CAST ( - + col1 AS INTEGER ) ) * - - 61 + ( + ( + 58 ) ) FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
4755

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-863
SELECT + 59 AS col0, + col0 * + col1 + + CAST( - 1 AS SIGNED ) - + col0 FROM tab1 AS cor0
----
59
339
59
4185
59
662

skipif mysql # not compatible
query II rowsort label-863
SELECT + 59 AS col0, + col0 * + col1 + + CAST ( - 1 AS INTEGER ) - + col0 FROM tab1 AS cor0
----
59
339
59
4185
59
662

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-867
SELECT - 11 / - col1 AS col2 FROM tab2 AS cor0
----
0
0
0

query II rowsort
SELECT DISTINCT + col1 * - + col0 AS col0, col1 AS col0 FROM tab0
----
-1215
81
-1827
21
-97
1

onlyif mysql # aggregate syntax: 
query I rowsort label-869
SELECT ALL COUNT( * ) * 97 FROM tab2
----
291

skipif mysql # not compatible
query I rowsort label-869
SELECT ALL COUNT ( * ) * 97 FROM tab2
----
291

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-870
SELECT COUNT( * ) DIV + 40 * - MAX( + col2 ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-870
SELECT COUNT ( * ) / + 40 * - MAX ( + col2 ) AS col1 FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-871
SELECT col0 DIV + + 27 AS col1 FROM tab1
----
1
3
3

skipif mysql # not compatible
query I rowsort label-871
SELECT col0 / + + 27 AS col1 FROM tab1
----
1
3
3

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

query I rowsort
SELECT DISTINCT + col0 * - + col2 * col2 FROM tab0 AS cor0
----
-33135
-8700
-950697

query I rowsort
SELECT - col0 AS col0 FROM tab2 cor0 WHERE NOT ( NULL ) > + 7
----

query I rowsort
SELECT - - col0 + 36 * + col1 FROM tab0 AS cor0
----
133
2931
843

onlyif mysql # aggregate syntax: 
query II rowsort label-876
SELECT 77 AS col1, - COUNT( col0 ) FROM tab2
----
77
-3

skipif mysql # not compatible
query II rowsort label-876
SELECT 77 AS col1, - COUNT ( col0 ) FROM tab2
----
77
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-877
SELECT MAX( ALL - 50 ) FROM tab2
----
-50

skipif mysql # not compatible
query I rowsort label-877
SELECT MAX ( ALL - 50 ) FROM tab2
----
-50

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

skipif mysql # not compatible
query I rowsort label-878
SELECT COUNT ( * ) * - 10 AS col2 FROM tab0
----
-30

query II rowsort
SELECT + 0 AS col2, + ( 32 ) FROM tab1
----
0
32
0
32
0
32

onlyif mysql # aggregate syntax: 
query I rowsort label-880
SELECT ALL - COUNT( * ) AS col1 FROM tab1 WHERE NOT col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-880
SELECT ALL - COUNT ( * ) AS col1 FROM tab1 WHERE NOT col0 IS NOT NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-881
SELECT DISTINCT - CAST( - + ( - ( - + COUNT( * ) ) ) AS SIGNED ) AS col0 FROM tab1, tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-881
SELECT DISTINCT - CAST ( - + ( - ( - + COUNT ( * ) ) ) AS INTEGER ) AS col0 FROM tab1, tab2 AS cor0
----
9

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 43 BETWEEN NULL AND col1
----
87
21
10
97
1
99

query II rowsort
SELECT DISTINCT + 47 AS col2, 72 AS col0 FROM tab1
----
47
72

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-884
SELECT DISTINCT CAST( NULL AS DECIMAL ) * + col0 * - - 64 * + 52 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-884
SELECT DISTINCT CAST ( NULL AS REAL ) * + col0 * - - 64 * + 52 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-885
SELECT DISTINCT + 60 DIV - MAX( DISTINCT 41 ) FROM tab2, tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-885
SELECT DISTINCT + 60 / - MAX ( DISTINCT 41 ) FROM tab2, tab1 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-886
SELECT DISTINCT SUM( ALL 62 ) AS col2 FROM tab2 cor0
----
186

skipif mysql # not compatible
query I rowsort label-886
SELECT DISTINCT SUM ( ALL 62 ) AS col2 FROM tab2 cor0
----
186

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

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

query I rowsort
SELECT ALL + 22 * col2 * - 41 + + col1 * col2 AS col2 FROM tab1 cor0
----
-52923
-58140
-85248

query I rowsort
SELECT DISTINCT - ( col0 ) * - col2 + - 34 * 98 AS col2 FROM tab0 AS cor0
----
-2462
-2627
6271

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-891
SELECT 11 * - CAST( COUNT( * ) * 79 AS SIGNED ) - 95 FROM tab2
----
-2702

skipif mysql # not compatible
query I rowsort label-891
SELECT 11 * - CAST ( COUNT ( * ) * 79 AS INTEGER ) - 95 FROM tab2
----
-2702

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

onlyif mysql # aggregate syntax: 
query I rowsort label-893
SELECT DISTINCT + COUNT( * ) + 90 AS col0 FROM tab1
----
93

skipif mysql # not compatible
query I rowsort label-893
SELECT DISTINCT + COUNT ( * ) + 90 AS col0 FROM tab1
----
93

query I rowsort
SELECT 79 * + col0 AS col2 FROM tab1
----
4029
6715
7189

query III rowsort
SELECT * FROM tab2 WHERE NOT - 84 < NULL
----

query III rowsort
SELECT * FROM tab1 WHERE - col0 IN ( + 30 )
----

query I rowsort
SELECT ALL - 72 FROM tab0 WHERE - 65 + col1 > - col2
----
-72
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-898
SELECT ALL - CAST( col2 AS SIGNED ) + col0 FROM tab2
----
17
23
24

skipif mysql # not compatible
query I rowsort label-898
SELECT ALL - CAST ( col2 AS INTEGER ) + col0 FROM tab2
----
17
23
24

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-900
SELECT ALL 52 DIV 83 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-900
SELECT ALL 52 / 83 AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT 77 / col1 AS col2 FROM tab2 WHERE NOT ( + col0 * col1 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-902
SELECT 8 + col1 DIV - 95 FROM tab1
----
8
8
8

skipif mysql # not compatible
query I rowsort label-902
SELECT 8 + col1 / - 95 FROM tab1
----
8
8
8

onlyif mysql # aggregate syntax: 
query I rowsort label-903
SELECT COUNT( * ) + + 28 AS col1 FROM tab0
----
31

skipif mysql # not compatible
query I rowsort label-903
SELECT COUNT ( * ) + + 28 AS col1 FROM tab0
----
31

query I rowsort
SELECT ALL + col0 - + col1 * col1 AS col2 FROM tab1
----
-145
-2118
60

query I rowsort
SELECT DISTINCT + 72 + col1 * - 43 AS col2 FROM tab0
----
-3411
-831
29

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL IN ( col1 / + col0 )
----

query I rowsort
SELECT + col1 * + col0 + + 49 AS col1 FROM tab1
----
4326
474
763

onlyif mysql # aggregate syntax: 
query I rowsort label-908
SELECT ALL ( 50 ) + COUNT( * ) * SUM( DISTINCT + col1 ) FROM tab2
----
635

skipif mysql # not compatible
query I rowsort label-908
SELECT ALL ( 50 ) + COUNT ( * ) * SUM ( DISTINCT + col1 ) FROM tab2
----
635

query I rowsort
SELECT + col0 * - col1 + - 29 AS col1 FROM tab0
----
-1244
-126
-1856

query I rowsort
SELECT - col0 * col2 + + 40 AS col1 FROM tab1
----
-4856
-4975
-6148

query I rowsort
SELECT ALL col2 + 96 AS col0 FROM tab0
----
106
143
195

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

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

query I rowsort
SELECT + ( col0 ) + - 80 AS col1 FROM tab2
----
-16
-34
-5

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

query I rowsort
SELECT 43 * ( - ( - 4 ) ) FROM tab1 AS cor0
----
172
172
172

onlyif mysql # aggregate syntax: 
query I rowsort label-917
SELECT DISTINCT + MAX( ALL - col2 ) AS col0 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-917
SELECT DISTINCT + MAX ( ALL - col2 ) AS col0 FROM tab2 AS cor0
----
-23

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 87 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 42 FROM tab2 WHERE NOT ( - 89 * + col0 ) BETWEEN - ( - col0 ) AND 89 * - col0
----
-42

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 LEFT JOIN tab1 ON ( NULL ) IS NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

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

query III rowsort
SELECT * FROM tab2 WHERE NOT ( 70 ) NOT BETWEEN col0 AND col1
----
64
77
40

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

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 NOT IN ( - 56 )
----

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

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

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

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

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

query I rowsort
SELECT DISTINCT + 94 * col1 + col0 FROM tab0 AS cor0
----
191
2061
7629

query I rowsort
SELECT ALL - col1 * - col2 + + 16 * col0 AS col1 FROM tab2 AS cor0
----
1909
4104
5086

query I rowsort
SELECT ( + col2 ) * + col0 + 71 FROM tab1 AS cor0 WHERE - col2 + - col1 IS NOT NULL
----
4967
5086
6259

query I rowsort
SELECT ALL col2 + + 49 * - col1 AS col1 FROM tab2
----
-2476
-3225
-3733

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

query I rowsort
SELECT DISTINCT col0 - col1 AS col0 FROM tab1 WHERE - col1 IN ( col1 * col1 + - col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( ( + col0 ) + col0 * 62 ) IN ( - col0 ) OR ( + col1 + - col0 ) NOT IN ( - 33 + + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

onlyif mysql # aggregate syntax: 
query I rowsort label-937
SELECT DISTINCT + MAX( + - col0 ) + - COUNT( * ) FROM tab0
----
-18

skipif mysql # not compatible
query I rowsort label-937
SELECT DISTINCT + MAX ( + - col0 ) + - COUNT ( * ) FROM tab0
----
-18

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

query III rowsort
SELECT ALL * FROM tab2 WHERE 83 BETWEEN 21 * 52 AND col0
----

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

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

query I rowsort
SELECT - 44 + - col2 + 98 AS col0 FROM tab0
----
-45
44
7

query I rowsort
SELECT + 54 * - col1 + - col2 FROM tab2 WHERE NULL IS NULL OR NOT ( - 53 * - col1 ) IS NULL
----
-2777
-3676
-4198

onlyif mysql # aggregate syntax: 
query I rowsort label-943
SELECT + SUM( DISTINCT 78 ) AS col2 FROM tab0 WHERE NULL BETWEEN + col1 + 62 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-943
SELECT + SUM ( DISTINCT 78 ) AS col2 FROM tab0 WHERE NULL BETWEEN + col1 + 62 AND NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-944
SELECT col0 DIV + 44 + 22 AS col2 FROM tab0
----
22
23
24

skipif mysql # not compatible
query I rowsort label-944
SELECT col0 / + 44 + 22 AS col2 FROM tab0
----
22
23
24

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( 55 ) = - 89
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col0 + + 4 * - col2 AS col0 FROM tab2 AS cor0
----
-138
-224
-307

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT NULL IN ( col1 / + col0 )
----

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

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

query I rowsort
SELECT DISTINCT - col0 + - 54 AS col1 FROM tab1 cor0
----
-105
-139
-145

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col1 * col2 IS NOT NULL
----

query I rowsort
SELECT - col1 * - + col2 - + 95 * - col0 FROM tab0
----
5232
8475
9314

query I rowsort
SELECT DISTINCT col2 FROM tab0 WHERE ( NOT + col0 * 8 BETWEEN - col2 AND - 43 )
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-954
SELECT * FROM tab1 WHERE ( + col0 ) <> - CAST( + ( + col0 ) AS SIGNED ) * + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-954
SELECT * FROM tab1 WHERE ( + col0 ) <> - CAST ( + ( + col0 ) AS INTEGER ) * + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( 19 ) > NULL
----

query I rowsort
SELECT DISTINCT 63 - - 83 * - 59 AS col0 FROM tab2 AS cor0
----
-4834

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

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

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE + col0 IN ( + col2 * col2 )
----

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 IN ( - - 50 )
----

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

query I rowsort
SELECT DISTINCT - + ( + - col1 ) * + 74 * - col0 AS col0 FROM tab0 AS cor0
----
-135198
-7178
-89910

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

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

query I rowsort
SELECT + col2 FROM tab1 WHERE NOT ( - col2 ) IS NULL
----
59
68
96

query I rowsort
SELECT DISTINCT - ( 13 ) FROM tab0
----
-13

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-969
SELECT - ( CAST( NULL AS SIGNED ) ) + col0 AS col2 FROM tab0 WHERE NOT NULL > ( + col2 + + 88 )
----

skipif mysql # not compatible
query I rowsort label-969
SELECT - ( CAST ( NULL AS INTEGER ) ) + col0 AS col2 FROM tab0 WHERE NOT NULL > ( + col2 + + 88 )
----

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - col1 ) < ( col0 - + + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col0 FROM tab0 AS cor0 WHERE + col2 <> ( - - col0 )
----
15
87
97

onlyif mysql # DIV for integer division: 
query II rowsort label-973
SELECT col2, + col2 * - - col0 DIV - col0 FROM tab2
----
23
-23
40
-40
58
-58

skipif mysql # not compatible
query II rowsort label-973
SELECT col2, + col2 * - - col0 / - col0 FROM tab2
----
23
-23
40
-40
58
-58

query III rowsort
SELECT ALL * FROM tab0 WHERE col1 / col2 <> ( col2 ) * col1 OR NOT NULL < 88
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( 84 ) < ( col2 )
----
15
81
47
87
21
10

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-978
SELECT ALL CAST( + - col2 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-978
SELECT ALL CAST ( + - col2 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-10
-47
-99

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

query II rowsort
SELECT ALL - col0 AS col0, + 73 FROM tab2 AS cor0
----
-46
73
-64
73
-75
73

query I rowsort
SELECT DISTINCT + 38 + - col2 FROM tab0 AS cor0
----
-61
-9
28

onlyif mysql # aggregate syntax: 
query I rowsort label-982
SELECT ALL COUNT( ALL - col1 ) + 83 FROM tab1 AS cor0
----
86

skipif mysql # not compatible
query I rowsort label-982
SELECT ALL COUNT ( ALL - col1 ) + 83 FROM tab1 AS cor0
----
86

onlyif mysql # DIV for integer division: 
query I rowsort label-983
SELECT DISTINCT - col1 + - 23 - col0 + - 15 DIV + + col1 AS col0 FROM tab0
----
-119
-131
-136

skipif mysql # not compatible
query I rowsort label-983
SELECT DISTINCT - col1 + - 23 - col0 + - 15 / + + col1 AS col0 FROM tab0
----
-119
-131
-136

query III rowsort
SELECT col0 AS col0, - col1 + - - col2 + + + col0 AS col1, - col1 * - 93 AS col1 FROM tab2
----
9 values hashing to a41e9ecb9f560b67d39e9696cfca338b

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

query III rowsort
SELECT * FROM tab1 WHERE + - 19 IN ( - col0 + - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-987
SELECT DISTINCT col0 FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN NULL AND ( + 64 * + CAST( col1 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-987
SELECT DISTINCT col0 FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN NULL AND ( + 64 * + CAST ( col1 AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-988
SELECT MAX( + 45 ) * - COUNT( * ) + - COUNT( * ) FROM tab0 AS cor0
----
-138

skipif mysql # not compatible
query I rowsort label-988
SELECT MAX ( + 45 ) * - COUNT ( * ) + - COUNT ( * ) FROM tab0 AS cor0
----
-138

query I rowsort
SELECT - + col0 + + 8 - + col0 FROM tab2 AS cor0
----
-120
-142
-84

query I rowsort
SELECT + col0 * - col0 + + + 47 FROM tab2
----
-2069
-4049
-5578

query I rowsort
SELECT - col1 + + col1 + + col0 AS col0 FROM tab1
----
51
85
91

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

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

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

query I rowsort
SELECT ALL - 23 * - ( 33 ) FROM tab2 AS cor0
----
759
759
759

query I rowsort
SELECT col2 * - col1 * col2 * + - 90 AS col0 FROM tab2 AS cor0
----
11088000
20284920
2428110

query I rowsort
SELECT DISTINCT col1 * - col2 + - col1 * col2 AS col2 FROM tab2 AS cor0
----
-2346
-6160
-7772

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-998
SELECT - COUNT( * ) FROM tab2 WHERE NOT - ( 51 ) <= CAST( NULL AS DECIMAL )
----
0

skipif mysql # not compatible
query I rowsort label-998
SELECT - COUNT ( * ) FROM tab2 WHERE NOT - ( 51 ) <= CAST ( NULL AS REAL )
----
0

query I rowsort
SELECT DISTINCT + - 87 AS col1 FROM tab2 WHERE NOT - 94 IN ( ( col2 ), col2 )
----
-87

query I rowsort
SELECT 54 * - ( col1 ) FROM tab0
----
-1134
-4374
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-1001
SELECT DISTINCT - MAX( - - col2 ) FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-1001
SELECT DISTINCT - MAX ( - - col2 ) FROM tab1
----
-96

query I rowsort
SELECT ALL + col1 * - - 82 AS col0 FROM tab0
----
1722
6642
82

onlyif mysql # aggregate syntax: 
query II rowsort label-1003
SELECT ALL + ( - - COUNT( * ) ) * - + COUNT( * ), - 83 AS col1 FROM tab2
----
-9
-83

skipif mysql # not compatible
query II rowsort label-1003
SELECT ALL + ( - - COUNT ( * ) ) * - + COUNT ( * ), - 83 AS col1 FROM tab2
----
-9
-83

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

query I rowsort
SELECT DISTINCT col0 * 56 * + + 6 AS col1 FROM tab0
----
29232
32592
5040

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1007
SELECT DISTINCT + 42 DIV + col2 * 33 AS col1, col2 * + col0 AS col2 FROM tab1
----
0
4896
0
5015
0
6188

skipif mysql # not compatible
query II rowsort label-1007
SELECT DISTINCT + 42 / + col2 * 33 AS col1, col2 * + col0 AS col2 FROM tab1
----
0
4896
0
5015
0
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-1008
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-1008
SELECT + + MIN ( ALL - col1 ) col1 FROM tab1 AS cor0
----
-47

query I rowsort
SELECT ALL ( + 24 ) AS col1 FROM tab2 AS cor0 WHERE ( - col1 ) > + col2
----

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

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

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

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

query I rowsort
SELECT + 67 + - col2 FROM tab0 cor0
----
-32
20
57

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1014
SELECT + + col1 DIV + - col1, col2 AS col2 FROM tab1 AS cor0
----
-1
59
-1
68
-1
96

skipif mysql # not compatible
query II rowsort label-1014
SELECT + + col1 / + - col1, col2 AS col2 FROM tab1 AS cor0
----
-1
59
-1
68
-1
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - col1 * col0 col2 FROM tab0 AS cor0
----
158949
18225
9409

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

skipif mysql # not compatible
query I rowsort label-1016
SELECT SUM ( ALL + col0 ) * - - MAX ( + col0 ) FROM tab1 AS cor0
----
20657

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1018
SELECT ALL col0 * - - 34 + + - 36, + col0 DIV + col1 AS col1 FROM tab1
----
1698
3
2854
17
3058
1

skipif mysql # not compatible
query II rowsort label-1018
SELECT ALL col0 * - - 34 + + - 36, + col0 / + col1 AS col1 FROM tab1
----
1698
3
2854
17
3058
1

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN 74 + + + 10 * + col1 AND + 34 + col2 + + 14
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1020
SELECT 24 + COUNT( * ) AS col2 FROM tab2
----
27

skipif mysql # not compatible
query I rowsort label-1020
SELECT 24 + COUNT ( * ) AS col2 FROM tab2
----
27

query I rowsort
SELECT - 65 + - - col2 * - col1 * - col0 FROM tab0
----
18205
57040
9538

onlyif mysql # DIV for integer division: 
query I rowsort label-1022
SELECT DISTINCT - col2 + + col2 DIV - 66 AS col2 FROM tab1
----
-59
-69
-97

skipif mysql # not compatible
query I rowsort label-1022
SELECT DISTINCT - col2 + + col2 / - 66 AS col2 FROM tab1
----
-59
-69
-97

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1023
SELECT 78 * - CAST( NULL AS DECIMAL ) AS col1, - col0 AS col2 FROM tab2 cor0 WHERE NULL IS NULL
----
NULL
-46
NULL
-64
NULL
-75

skipif mysql # not compatible
query II rowsort label-1023
SELECT 78 * - CAST ( NULL AS REAL ) AS col1, - col0 AS col2 FROM tab2 cor0 WHERE NULL IS NULL
----
NULL
-46
NULL
-64
NULL
-75

query I rowsort
SELECT ALL + ( - col0 ) * + 13 - - - col2 AS col2 FROM tab0 AS cor0
----
-1141
-1360
-242

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

skipif mysql # not compatible
query I rowsort label-1025
SELECT DISTINCT + COUNT ( col0 ) AS col2 FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL
----
3

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

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

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

query I rowsort
SELECT ALL - 56 - 30 AS col1 FROM tab1 AS cor0
----
-86
-86
-86

query I rowsort
SELECT + 71 * + - col0 FROM tab0
----
-1065
-6177
-6887

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1030
SELECT CAST( NULL AS SIGNED ) / MIN( DISTINCT col1 ) * COUNT( * ) * - - COUNT( * ) - + 54 * - - 79 * - + SUM( DISTINCT - - col2 ) / + COUNT( * ) + - SUM( - col0 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1030
SELECT CAST ( NULL AS INTEGER ) / MIN ( DISTINCT col1 ) * COUNT ( * ) * - - COUNT ( * ) - + 54 * - - 79 * - + SUM ( DISTINCT - - col2 ) / + COUNT ( * ) + - SUM ( - col0 ) FROM tab1
----
NULL

query II rowsort
SELECT - 66 AS col0, 70 * + + 52 AS col0 FROM tab1
----
-66
3640
-66
3640
-66
3640

query I rowsort
SELECT DISTINCT - ( - + 20 ) * + - col2 AS col2 FROM tab2
----
-1160
-460
-800

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1035
SELECT MAX( DISTINCT - col0 ) * + MIN( - 98 ) col0 FROM tab0 AS cor0 WHERE NOT 47 IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1035
SELECT MAX ( DISTINCT - col0 ) * + MIN ( - 98 ) col0 FROM tab0 AS cor0 WHERE NOT 47 IS NOT NULL
----
NULL

query II rowsort
SELECT + col2 AS col1, - col0 AS col1 FROM tab1 AS cor0
----
59
-85
68
-91
96
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-1037
SELECT ALL 80 AS col1, COUNT( * ) * - - COUNT( * ) AS col0 FROM tab0 cor0
----
80
9

skipif mysql # not compatible
query II rowsort label-1037
SELECT ALL 80 AS col1, COUNT ( * ) * - - COUNT ( * ) AS col0 FROM tab0 cor0
----
80
9

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 59 + + 47 <> + ( + col0 )
----

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1041
SELECT - 10 col2, col2 / + CAST( NULL AS DECIMAL ) * col2 FROM tab2 AS cor0 WHERE NOT + col0 NOT BETWEEN col0 AND NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1041
SELECT - 10 col2, col2 / + CAST ( NULL AS REAL ) * col2 FROM tab2 AS cor0 WHERE NOT + col0 NOT BETWEEN col0 AND NULL
----

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

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

query I rowsort
SELECT ALL + col0 * - col0 * + col0 AS col2 FROM tab2
----
-262144
-421875
-97336

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1044
SELECT + col0 * - 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-1044
SELECT + col0 * - CAST ( NULL AS INTEGER ) col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1045
SELECT CAST( 53 AS SIGNED ) AS col0, COUNT( * ) * - + COUNT( * ) FROM tab0
----
53
-9

skipif mysql # not compatible
query II rowsort label-1045
SELECT CAST ( 53 AS INTEGER ) AS col0, COUNT ( * ) * - + COUNT ( * ) FROM tab0
----
53
-9

query I rowsort
SELECT ALL - col2 * + - 44 FROM tab1
----
2596
2992
4224

onlyif mysql # DIV for integer division: 
query I rowsort label-1047
SELECT DISTINCT 84 DIV - col2 col1 FROM tab1
----
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1047
SELECT DISTINCT 84 / - col2 col1 FROM tab1
----
-1
0

query I rowsort
SELECT col2 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) = ( + 84 * + - 41 + 95 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1049
SELECT DISTINCT - col0 DIV col2 * - col2 + + 27 * + col2 col0 FROM tab0 AS cor0
----
1269
2673
350

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1049
SELECT DISTINCT - col0 / col2 * - col2 + + 27 * + col2 col0 FROM tab0 AS cor0
----
1269
2673
350

query I rowsort
SELECT col0 * - - 38 * + ( - 80 ) AS col0 FROM tab0
----
-264480
-294880
-45600

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 9 + - ( col0 ) * - col1 col1 FROM tab1
----
4286
434
723

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

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

query I rowsort
SELECT ALL 6 * - ( - 77 ) - 86 * + + col2 FROM tab0 cor0
----
-3580
-398
-8052

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

query II rowsort
SELECT + col1 AS col2, ( + col0 ) + col2 FROM tab0 AS cor0
----
1
196
21
97
81
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1056
SELECT ALL CAST( - col2 AS SIGNED ) + col0 * - col1 FROM tab0 AS cor0
----
-1262
-1837
-196

skipif mysql # not compatible
query I rowsort label-1056
SELECT ALL CAST ( - col2 AS INTEGER ) + col0 * - col1 FROM tab0 AS cor0
----
-1262
-1837
-196

query I rowsort
SELECT DISTINCT + col2 * + - 90 + + - col1 FROM tab1 AS cor0
----
-5315
-6167
-8654

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

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

query I rowsort
SELECT DISTINCT col2 + - col0 + + - col0 FROM tab1
----
-111
-114
-6

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

query I rowsort
SELECT - col2 - - col2 * col0 AS col1 FROM tab2
----
1035
2520
4292

query I rowsort
SELECT ( 21 ) * - 51 - col0 AS col2 FROM tab1
----
-1122
-1156
-1162

query I rowsort
SELECT 86 AS col0 FROM tab2 WHERE 75 IS NOT NULL
----
86
86
86

query III rowsort
SELECT * FROM tab1 WHERE + 41 / - 77 * + + ( + - 88 ) IS NULL
----

query I rowsort
SELECT 63 * - 18 + col2 FROM tab2 AS cor0
----
-1076
-1094
-1111

query I rowsort
SELECT DISTINCT 47 * 81 FROM tab0
----
3807

query I rowsort
SELECT ALL - 72 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ad521144c976ff25e77cdf10a84d1dc6

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT IN ( + col2 / - + col1, col2, - col2 + - - 65 - - 32 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 >= - - 80
----
51
14
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1070
SELECT ALL - MAX( DISTINCT - col2 ) FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-1070
SELECT ALL - MAX ( DISTINCT - col2 ) FROM tab2 AS cor0
----
23

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

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

query I rowsort
SELECT ALL + + ( col0 ) FROM tab2 AS cor0 WHERE - col0 <> - col2 * + 17
----
46
64
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 28 col2, col0 + + + col2 - + 38 * + 80 * - col2 FROM tab1
----
-28
179504
-28
206879
-28
291987

query I rowsort
SELECT - 54 * + + col1 FROM tab1
----
-2538
-270
-756

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

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

query I rowsort
SELECT + col1 + - + col0 AS col1 FROM tab1 cor0
----
-37
-44
-80

query I rowsort
SELECT + ( - col1 ) * + col0 * - col1 + + col2 AS col1 FROM tab0 AS cor0
----
196
38377
98462

query I rowsort
SELECT ALL + 15 * + 32 FROM tab1 AS cor0
----
480
480
480

onlyif mysql # DIV for integer division: 
query I rowsort label-1080
SELECT + 98 + 98 + + - col2 DIV ( + col0 ) FROM tab0 AS cor0
----
193
195
196

skipif mysql # not compatible
query I rowsort label-1080
SELECT + 98 + 98 + + - col2 / ( + col0 ) FROM tab0 AS cor0
----
193
195
196

onlyif mysql # aggregate syntax: 
query I rowsort label-1081
SELECT ALL - + COUNT( * ) * 70 FROM tab1 AS cor0
----
-210

skipif mysql # not compatible
query I rowsort label-1081
SELECT ALL - + COUNT ( * ) * 70 FROM tab1 AS cor0
----
-210

query I rowsort
SELECT DISTINCT 55 + + 78 AS col1 FROM tab0
----
133

query I rowsort
SELECT - col2 * - 35 FROM tab2
----
1400
2030
805

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

query II rowsort
SELECT ALL - col2 - - - col2 AS col1, col1 - - - 39 FROM tab1 AS cor0
----
-118
-34
-136
8
-192
-25

query I rowsort
SELECT DISTINCT + - col2 + + col1 * - 82 FROM tab2 AS cor0
----
-4205
-5552
-6354

query I rowsort
SELECT - - col0 + 51 FROM tab2 AS cor0
----
115
126
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1088
SELECT ALL CAST( col1 AS SIGNED ) + col2 * + + col1 col1 FROM tab2
----
1224
3157
3953

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1088
SELECT ALL CAST ( col1 AS INTEGER ) + col2 * + + col1 col1 FROM tab2
----
1224
3157
3953

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-1091
SELECT ALL * FROM tab2, tab2 AS cor0 WHERE - 22 * - ( - 2 ) + + CAST( NULL AS SIGNED ) IS NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

skipif mysql # not compatible
query IIIIII rowsort label-1091
SELECT ALL * FROM tab2, tab2 AS cor0 WHERE - 22 * - ( - 2 ) + + CAST ( NULL AS INTEGER ) IS NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

query I rowsort
SELECT DISTINCT 39 + - 13 AS col0 FROM tab2
----
26

query I rowsort
SELECT ALL col2 - + col0 * col1 + + col0 AS col0 FROM tab0
----
-1153
-1730
99

query II rowsort
SELECT - 15 AS col1, - col2 + + - col2 * col1 AS col0 FROM tab0
----
-15
-198
-15
-220
-15
-3854

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - + 8 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1096
SELECT 24 * - COUNT( * ) AS col1 FROM tab0
----
-72

skipif mysql # not compatible
query I rowsort label-1096
SELECT 24 * - COUNT ( * ) AS col1 FROM tab0
----
-72

query I rowsort
SELECT col0 FROM tab1 WHERE NOT + col2 - 70 / + 82 NOT BETWEEN - 76 / - col1 AND col0
----
85
91

query I rowsort
SELECT + 9 * + + col1 FROM tab2 AS cor0
----
459
603
693

query I rowsort
SELECT - 17 AS col2 FROM tab2 AS cor0 WHERE NOT 85 > NULL
----

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

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

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

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

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

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <> 10
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1105
SELECT DISTINCT MAX( + 22 ) FROM tab1 AS cor0 WHERE ( NOT ( - col0 ) = NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1105
SELECT DISTINCT MAX ( + 22 ) FROM tab1 AS cor0 WHERE ( NOT ( - col0 ) = NULL )
----
NULL

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1109
SELECT ALL - SUM( + col1 ) + 97 + 1 * + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1109
SELECT ALL - SUM ( + col1 ) + 97 + 1 * + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-3

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

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

query I rowsort
SELECT col0 * + - 52 AS col1 FROM tab0
----
-4524
-5044
-780

onlyif mysql # DIV for integer division: 
query II rowsort label-1112
SELECT - col1 DIV - ( - col1 ), col1 FROM tab1
----
-1
14
-1
47
-1
5

skipif mysql # not compatible
query II rowsort label-1112
SELECT - col1 / - ( - col1 ), col1 FROM tab1
----
-1
14
-1
47
-1
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1113
SELECT ALL ( + 52 ) + MIN( 85 ) FROM tab2
----
137

skipif mysql # not compatible
query I rowsort label-1113
SELECT ALL ( + 52 ) + MIN ( 85 ) FROM tab2
----
137

query I rowsort
SELECT 48 * + col2 AS col0 FROM tab1
----
2832
3264
4608

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1115
SELECT DISTINCT CAST( NULL AS DECIMAL ), + 77 AS col1 FROM tab2
----
NULL
77

skipif mysql # not compatible
query II rowsort label-1115
SELECT DISTINCT CAST ( NULL AS REAL ), + 77 AS col1 FROM tab2
----
NULL
77

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1117
SELECT - 66 * + MAX( ALL + col2 ) + - - 41 + + MIN( + + col1 ) AS col1 FROM tab0 AS cor0
----
-6492

skipif mysql # not compatible
query I rowsort label-1117
SELECT - 66 * + MAX ( ALL + col2 ) + - - 41 + + MIN ( + + col1 ) AS col1 FROM tab0 AS cor0
----
-6492

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1120
SELECT - col1 + + col1 DIV - col0 FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-1120
SELECT - col1 + + col1 / - col0 FROM tab1
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-1121
SELECT 28 - + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NOT NULL
----
19

skipif mysql # not compatible
query I rowsort label-1121
SELECT 28 - + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NOT NULL
----
19

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 / - + ( 91 ) * col0 - + col2 + col0 NOT IN ( - 1, col1, - col2 / - 11 * + 57, + - 59 + - 57 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 * col0 * + 96 col2 FROM tab1 cor0
----
249696
693600
794976

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1128
SELECT DISTINCT + col0 DIV - 87 * ( - col2 ) + - + 38 col0 FROM tab2 AS cor0
----
-38

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1128
SELECT DISTINCT + col0 / - 87 * ( - col2 ) + - + 38 col0 FROM tab2 AS cor0
----
-38

query I rowsort
SELECT ALL - + col0 + + 29 AS col1 FROM tab1 AS cor0
----
-22
-56
-62

query I rowsort
SELECT ALL 26 * + col1 + col2 AS col1 FROM tab1
----
1290
189
460

onlyif mysql # aggregate syntax: 
query I rowsort label-1131
SELECT ALL COUNT( * ) - + 29 AS col1 FROM tab0
----
-26

skipif mysql # not compatible
query I rowsort label-1131
SELECT ALL COUNT ( * ) - + 29 AS col1 FROM tab0
----
-26

query III rowsort
SELECT * FROM tab2 WHERE NOT - + 78 + + 56 <= - 35
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 * col2 + + 24 BETWEEN NULL AND + 47
----

query I rowsort
SELECT DISTINCT - col0 * + + 92 AS col1 FROM tab1
----
-4692
-7820
-8372

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1136
SELECT DISTINCT COUNT( ALL + + 36 ) DIV 66 AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-1136
SELECT DISTINCT COUNT ( ALL + + 36 ) / 66 AS col0 FROM tab0
----
0

query I rowsort
SELECT ALL - col2 * ( col2 ) FROM tab0
----
-100
-2209
-9801

query I rowsort
SELECT col2 * - 79 * - ( + col2 ) FROM tab0 AS cor0
----
174511
774279
7900

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1141
SELECT COUNT( * ) DIV + 84 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-1141
SELECT COUNT ( * ) / + 84 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
0

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1145
SELECT ALL col1 DIV + 72 * col2 * - col1 + + 71 AS col2 FROM tab1 AS cor0
----
71
71
71

skipif mysql # not compatible
query I rowsort label-1145
SELECT ALL col1 / + 72 * col2 * - col1 + + 71 AS col2 FROM tab1 AS cor0
----
71
71
71

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

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

query I rowsort
SELECT - - 32 AS col1 FROM tab0 AS cor0 WHERE NOT 83 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 47 col1 FROM tab1
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1150
SELECT * FROM tab2 AS cor0 WHERE NULL NOT IN ( - col0 + + 98 + + col2 * CAST( + col0 AS SIGNED ), + 55 + + col2 * - + 96 )
----

skipif mysql # not compatible
query III rowsort label-1150
SELECT * FROM tab2 AS cor0 WHERE NULL NOT IN ( - col0 + + 98 + + col2 * CAST ( + col0 AS INTEGER ), + 55 + + col2 * - + 96 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + 90 col0 FROM tab0 AS cor0
----
100
137
189

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + col2 + + col0 col0 FROM tab2 AS cor0
----
1664
3439
575

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

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

skipif mysql # not compatible
query I rowsort label-1154
SELECT - CAST ( 86 AS INTEGER ) FROM tab1 AS cor0
----
-86
-86
-86

query II rowsort
SELECT ALL + col2, 96 * - 52 AS col1 FROM tab0 AS cor0 WHERE NOT + col0 * - col0 >= NULL
----

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

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

query II rowsort
SELECT DISTINCT col0, 92 * - 73 * col1 * + col0 AS col0 FROM tab2 AS cor0
----
46
-15755736
64
-33096448
75
-33747900

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

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

query I rowsort
SELECT ALL - col0 * - + col0 - - col2 FROM tab0 AS cor0
----
272
7579
9508

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1165
SELECT DISTINCT 31 AS col1, COUNT( * ) FROM tab1
----
31
3

skipif mysql # not compatible
query II rowsort label-1165
SELECT DISTINCT 31 AS col1, COUNT ( * ) FROM tab1
----
31
3

query I rowsort
SELECT DISTINCT - col0 * + 39 AS col0 FROM tab0
----
-3393
-3783
-585

query II rowsort
SELECT col2 AS col1, col2 + - - 53 FROM tab2
----
23
76
40
93
58
111

query II rowsort
SELECT 34 AS col0, 98 FROM tab0
----
34
98
34
98
34
98

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1169
SELECT col0, CAST( NULL AS SIGNED ) FROM tab2
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-1169
SELECT col0, CAST ( NULL AS INTEGER ) FROM tab2
----
46
NULL
64
NULL
75
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1170
SELECT DISTINCT + 60 DIV - 38 col2 FROM tab2
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1170
SELECT DISTINCT + 60 / - 38 col2 FROM tab2
----
-1

query II rowsort
SELECT 49, + 17 AS col0 FROM tab2 AS cor0
----
49
17
49
17
49
17

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

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

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

query I rowsort
SELECT DISTINCT 31 * + 94 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
2914

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1175
SELECT AVG ( DISTINCT + + CAST( NULL AS SIGNED ) ) col2, - 55 DIV - - 81 * COUNT( + col1 ) AS col0 FROM tab1
----
NULL
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1175
SELECT AVG ( DISTINCT + + CAST ( NULL AS INTEGER ) ) col2, - 55 / - - 81 * COUNT ( + col1 ) AS col0 FROM tab1
----
NULL
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NOT NULL <= + col0 )
----

query I rowsort
SELECT 92 * + col2 + - - 28 FROM tab0 AS cor0
----
4352
9136
948

onlyif mysql # aggregate syntax: 
query I rowsort label-1178
SELECT DISTINCT + MIN( ALL - - 46 ) FROM tab1 cor0
----
46

skipif mysql # not compatible
query I rowsort label-1178
SELECT DISTINCT + MIN ( ALL - - 46 ) FROM tab1 cor0
----
46

query I rowsort
SELECT DISTINCT + + 61 + 74 - - col0 * - 12 FROM tab2 AS cor0
----
-417
-633
-765

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1181
SELECT ALL 63 + COUNT( * ) FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-1181
SELECT ALL 63 + COUNT ( * ) FROM tab1 AS cor0
----
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col0, + col0 * ( - + 88 ) FROM tab1
----
59
-7480
68
-8008
96
-4488

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

query I rowsort
SELECT ALL - col0 + - 59 FROM tab0
----
-146
-156
-74

query I rowsort
SELECT col2 * - + 39 * + - col0 * + 88 FROM tab0
----
2419560
2985840
32957496

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

query I rowsort
SELECT + - col0 + + + 41 FROM tab0 AS cor0
----
-46
-56
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - - 48 col1 FROM tab2 AS cor0
----
112
123
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1189
SELECT - + col0 FROM tab2 WHERE CAST( ( + - 34 ) AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-1189
SELECT - + col0 FROM tab2 WHERE CAST ( ( + - 34 ) AS INTEGER ) IS NULL
----

query I rowsort
SELECT + - col0 * + 37 FROM tab2 AS cor0
----
-1702
-2368
-2775

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 + + col1 < + col2 * col1
----

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

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

query I rowsort
SELECT DISTINCT + 10 * + col0 FROM tab2 AS cor0
----
460
640
750

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1200
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab1 WHERE NOT + ( - 42 ) = NULL
----
0

skipif mysql # not compatible
query I rowsort label-1200
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab1 WHERE NOT + ( - 42 ) = NULL
----
0

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1203
SELECT ALL 86, + COUNT( DISTINCT + 22 ) AS col1 FROM tab2
----
86
1

skipif mysql # not compatible
query II rowsort label-1203
SELECT ALL 86, + COUNT ( DISTINCT + 22 ) AS col1 FROM tab2
----
86
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1204
SELECT + COUNT( ALL + 32 ) * - 71 AS col1 FROM tab1
----
-213

skipif mysql # not compatible
query I rowsort label-1204
SELECT + COUNT ( ALL + 32 ) * - 71 AS col1 FROM tab1
----
-213

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1206
SELECT + 93 DIV - 94 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1206
SELECT + 93 / - 94 FROM tab1 cor0
----
0
0
0

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

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

query I rowsort
SELECT + + col2 FROM tab1 cor0 WHERE + 35 / + col2 IS NOT NULL
----
59
68
96

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT - 84 + - col2 * col1 IS NOT NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1211
SELECT ALL + col2 FROM tab2 AS cor0 WHERE NOT - col0 * - - col0 >= CAST( - ( - col1 ) AS SIGNED )
----
23
40
58

skipif mysql # not compatible
query I rowsort label-1211
SELECT ALL + col2 FROM tab2 AS cor0 WHERE NOT - col0 * - - col0 >= CAST ( - ( - col1 ) AS INTEGER )
----
23
40
58

query I rowsort
SELECT 67 * - col2 * - col1 AS col2 FROM tab0 AS cor0
----
14070
255069
6633

onlyif mysql # DIV for integer division: 
query I rowsort label-1213
SELECT DISTINCT + col1 + - col2 DIV col1 AS col0 FROM tab0 AS cor0
----
-98
21
81

skipif mysql # not compatible
query I rowsort label-1213
SELECT DISTINCT + col1 + - col2 / col1 AS col0 FROM tab0 AS cor0
----
-98
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1214
SELECT ALL MAX( col0 ) + + MIN( ALL 74 ) AS col1 FROM tab1
----
165

skipif mysql # not compatible
query I rowsort label-1214
SELECT ALL MAX ( col0 ) + + MIN ( ALL 74 ) AS col1 FROM tab1
----
165

query I rowsort
SELECT - col1 + - + ( + 92 ) + + col0 AS col0 FROM tab1
----
-12
-48
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-1216
SELECT SUM( col1 ) * + ( 98 ) + - 57 AS col0 FROM tab0
----
10037

skipif mysql # not compatible
query I rowsort label-1216
SELECT SUM ( col1 ) * + ( 98 ) + - 57 AS col0 FROM tab0
----
10037

onlyif mysql # DIV for integer division: 
query I rowsort label-1217
SELECT ALL - 4 DIV - 49 + + 89 col2 FROM tab0
----
89
89
89

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

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

query I rowsort
SELECT col1 + - + 1 FROM tab1
----
13
4
46

query III rowsort
SELECT * FROM tab1 WHERE - - 40 IS NULL
----

query I rowsort
SELECT + 24 * - - col0 + + 78 AS col1 FROM tab0 cor0
----
2166
2406
438

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

query II rowsort
SELECT + - 10 AS col0, 95 FROM tab1 AS cor0
----
-10
95
-10
95
-10
95

query I rowsort
SELECT - 60 FROM tab1 AS cor0 WHERE col1 * + + col0 / + col1 * col0 * 58 IS NULL OR NOT 89 NOT IN ( - col2 * + - col2 - col1 * 70, col0 )
----

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab1 AS cor0 WHERE NOT - col0 + + col0 BETWEEN + col1 AND - 72 + col2
----
-51
-85
-91

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

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

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

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

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

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

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

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

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1233
SELECT col0, + col0 + - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-1233
SELECT col0, + col0 + - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1234
SELECT - col2 DIV - 87 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1234
SELECT - col2 / - 87 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL - col0 * + 11 * + col2 AS col1 FROM tab1
----
-53856
-55165
-68068

query I rowsort
SELECT - col2 * + 81 AS col0 FROM tab0
----
-3807
-8019
-810

onlyif mysql # DIV for integer division: 
query I rowsort label-1237
SELECT - 52 DIV ( - col0 ) AS col1 FROM tab0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-1237
SELECT - 52 / ( - col0 ) AS col1 FROM tab0
----
0
0
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1238
SELECT - - SUM( DISTINCT + 65 ) AS col1 FROM tab0 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-1238
SELECT - - SUM ( DISTINCT + 65 ) AS col1 FROM tab0 AS cor0
----
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - 21 AS col0, - 55 col2 FROM tab2 WHERE NULL IS NULL
----
21
-55

onlyif mysql # aggregate syntax: 
query II rowsort label-1240
SELECT ALL + 70 + + MAX( DISTINCT col1 ), - COUNT( col1 ) AS col1 FROM tab2
----
147
-3

skipif mysql # not compatible
query II rowsort label-1240
SELECT ALL + 70 + + MAX ( DISTINCT col1 ), - COUNT ( col1 ) AS col1 FROM tab2
----
147
-3

query II rowsort
SELECT col0 + - 8 + - col1 AS col0, 98 AS col1 FROM tab0
----
-74
98
58
98
88
98

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - col0 ) col1 FROM tab0 AS cor0 WHERE NULL = col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1245
SELECT DISTINCT - - COUNT( * ) + 36 DIV - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-9

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

query I rowsort
SELECT ALL + ( + + col0 ) * - + 39 AS col0 FROM tab2 AS cor0
----
-1794
-2496
-2925

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1249
SELECT - MAX( ALL col1 ) col1 FROM tab0
----
-81

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

query II rowsort
SELECT ALL + 72 * col2 - + ( - 13 ) AS col2, + 36 FROM tab1 WHERE NOT + + col1 / - + 89 <> col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1251
SELECT DISTINCT - MIN( 88 ) + - + 28 FROM tab0
----
-116

skipif mysql # not compatible
query I rowsort label-1251
SELECT DISTINCT - MIN ( 88 ) + - + 28 FROM tab0
----
-116

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

skipif mysql # not compatible
query I rowsort label-1252
SELECT DISTINCT SUM ( col1 ) - + + 92 FROM tab2
----
103

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - + 17 + - 67 <> NULL
----

query I rowsort
SELECT DISTINCT - col1 + + + col2 * + + col1 * col0 AS col2 FROM tab1
----
25070
290789
68530

query I rowsort
SELECT ALL + 32 - + 16 FROM tab0
----
16
16
16

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( col1 ) <> + ( + col1 ) * + - 49 * + 44
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-1257
SELECT ( col0 ) DIV + + 20 AS col0 FROM tab0
----
0
4
4

skipif mysql # not compatible
query I rowsort label-1257
SELECT ( col0 ) / + + 20 AS col0 FROM tab0
----
0
4
4

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-1258
SELECT * FROM tab2 WHERE NOT - + 91 * + CAST( NULL AS SIGNED ) + + CAST( - 24 AS DECIMAL ) * 64 > - ( + col0 )
----

skipif mysql # not compatible
query III rowsort label-1258
SELECT * FROM tab2 WHERE NOT - + 91 * + CAST ( NULL AS INTEGER ) + + CAST ( - 24 AS REAL ) * 64 > - ( + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1259
SELECT - MAX( + 44 ) col0 FROM tab1 AS cor0 WHERE NOT + col2 >= 71
----
-44

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1259
SELECT - MAX ( + 44 ) col0 FROM tab1 AS cor0 WHERE NOT + col2 >= 71
----
-44

query I rowsort
SELECT + 29 * + - col0 FROM tab0 AS cor0
----
-2523
-2813
-435

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

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

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

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

query I rowsort
SELECT ( + col1 ) * + 91 FROM tab0 cor0
----
1911
7371
91

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1267
SELECT ALL - col1 AS col1, + CAST( + ( + + col0 ) AS SIGNED ) FROM tab1
----
-14
51
-47
91
-5
85

skipif mysql # not compatible
query II rowsort label-1267
SELECT ALL - col1 AS col1, + CAST ( + ( + + col0 ) AS INTEGER ) FROM tab1
----
-14
51
-47
91
-5
85

query I rowsort
SELECT col2 + - 40 + + - col2 * + col0 AS col2 FROM tab2
----
-1075
-2560
-4332

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

skipif mysql # not compatible
query I rowsort label-1269
SELECT + - col1 FROM tab0 AS cor0 WHERE NOT + ( CAST ( NULL AS INTEGER ) ) * col2 IS NOT NULL
----
-1
-21
-81

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

query I rowsort
SELECT ALL - col0 * - 75 FROM tab1
----
3825
6375
6825

query I rowsort
SELECT - col1 - + col1 * + - col2 FROM tab1 AS cor0
----
1330
290
3149

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1274
SELECT ( - col0 ) + - 48 * col0 DIV + + col1 AS col2 FROM tab0 AS cor0
----
-23
-285
-4753

skipif mysql # not compatible
query I rowsort label-1274
SELECT ( - col0 ) + - 48 * col0 / + + col1 AS col2 FROM tab0 AS cor0
----
-23
-285
-4753

query II rowsort
SELECT DISTINCT - 7 * 56 AS col1, + 25 * + col0 AS col0 FROM tab1 AS cor0
----
-392
1275
-392
2125
-392
2275

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1276
SELECT CAST( 71 AS SIGNED ) * col1 * - ( - 14 ) + - col1 * - 0 + + 56 AS col2 FROM tab0 AS cor0
----
1050
20930
80570

skipif mysql # not compatible
query I rowsort label-1276
SELECT CAST ( 71 AS INTEGER ) * col1 * - ( - 14 ) + - col1 * - 0 + + 56 AS col2 FROM tab0 AS cor0
----
1050
20930
80570

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

query I rowsort
SELECT + ( 61 ) + 91 FROM tab0 AS cor0
----
152
152
152

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 98 + + 40 col2 FROM tab1
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-1280
SELECT ALL - COUNT( * ) AS col2 FROM tab0 WHERE + + col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1280
SELECT ALL - COUNT ( * ) AS col2 FROM tab0 WHERE + + col1 IS NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 32 * + col2 - - col0 + - + col0 * + 49 / + col1 / + - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col1 - - - col1 AS col0 FROM tab1
----
0

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

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

query I rowsort
SELECT + col2 * col0 FROM tab1 WHERE - - col2 * - col0 NOT BETWEEN + - 26 AND - ( - - ( 77 ) )
----
4896
5015
6188

query I rowsort
SELECT ALL + ( 57 ) - - 4 + + col1 FROM tab1 AS cor0
----
108
66
75

query I rowsort
SELECT ALL 73 * - + 84 AS col1 FROM tab2
----
-6132
-6132
-6132

onlyif mysql # aggregate syntax: 
query I rowsort label-1288
SELECT - MIN( - 51 ) * 71 FROM tab0
----
3621

skipif mysql # not compatible
query I rowsort label-1288
SELECT - MIN ( - 51 ) * 71 FROM tab0
----
3621

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

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1294
SELECT ALL - col0 DIV - ( - col1 ) AS col0 FROM tab1 AS cor0
----
-1
-17
-3

skipif mysql # not compatible
query I rowsort label-1294
SELECT ALL - col0 / - ( - col1 ) AS col0 FROM tab1 AS cor0
----
-1
-17
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-1295
SELECT ALL - + MAX( DISTINCT + col0 ), SUM( ALL col2 ) AS col0 FROM tab0 AS cor0
----
-97
156

skipif mysql # not compatible
query II rowsort label-1295
SELECT ALL - + MAX ( DISTINCT + col0 ), SUM ( ALL col2 ) AS col0 FROM tab0 AS cor0
----
-97
156

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

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

skipif mysql # not compatible
query I rowsort label-1297
SELECT ALL + + COUNT ( ALL ( - + col1 ) ) FROM tab2 cor0
----
3

query I rowsort
SELECT + - col1 FROM tab2 AS cor0 WHERE NOT - col2 * + col1 * - col1 + + col0 IS NULL
----
-51
-67
-77

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

query I rowsort
SELECT DISTINCT - 70 AS col1 FROM tab2 cor0
----
-70

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL = - 72
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1302
SELECT ALL + MIN( ALL + 69 ) FROM tab0 WHERE NOT - + 85 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1302
SELECT ALL + MIN ( ALL + 69 ) FROM tab0 WHERE NOT - + 85 IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1303
SELECT ALL col2 DIV + + col1 + col2 * + ( + - 41 ) FROM tab2
----
-1640
-2378
-943

skipif mysql # not compatible
query I rowsort label-1303
SELECT ALL col2 / + + col1 + col2 * + ( + - 41 ) FROM tab2
----
-1640
-2378
-943

query I rowsort
SELECT + col2 AS col0 FROM tab1 WHERE NOT col0 BETWEEN - col1 AND - 69
----
59
68
96

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

query I rowsort
SELECT ALL - 61 + + ( + col0 ) + + + col1 AS col1 FROM tab1
----
29
4
77

onlyif mysql # DIV for integer division: 
query II rowsort label-1307
SELECT ALL + col1 AS col2, + 12 DIV - + 88 FROM tab2
----
51
0
67
0
77
0

skipif mysql # not compatible
query II rowsort label-1307
SELECT ALL + col1 AS col2, + 12 / - + 88 FROM tab2
----
51
0
67
0
77
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1308
SELECT ALL - ( - 68 ) * + SUM( ALL - 94 ) FROM tab0 cor0
----
-19176

skipif mysql # not compatible
query I rowsort label-1308
SELECT ALL - ( - 68 ) * + SUM ( ALL - 94 ) FROM tab0 cor0
----
-19176

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

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1311
SELECT ALL + SUM ( col0 ) col2 FROM tab2 AS cor0
----
185

query II rowsort
SELECT ALL + col0, + 30 FROM tab2 AS cor0 WHERE NOT NULL >= - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1313
SELECT ( - - MIN( - col2 ) ) * - + COUNT( * ) FROM tab1 AS cor0
----
288

skipif mysql # not compatible
query I rowsort label-1313
SELECT ( - - MIN ( - col2 ) ) * - + COUNT ( * ) FROM tab1 AS cor0
----
288

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

query I rowsort
SELECT - 68 - 31 FROM tab2 AS cor0
----
-99
-99
-99

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

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

query I rowsort
SELECT DISTINCT col0 * col0 + + col0 FROM tab1
----
2652
7310
8372

query I rowsort
SELECT DISTINCT - col2 * + + col0 + - col1 AS col1 FROM tab0 WHERE - - 74 IS NOT NULL
----
-786
-891
-9604

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

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

query I rowsort
SELECT DISTINCT 67 AS col0 FROM tab2 WHERE - - col1 - - col2 * + col1 IS NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1323
SELECT DISTINCT - - CAST( col1 AS SIGNED ) AS col2, - col0 AS col1 FROM tab1 AS cor0
----
14
-51
47
-91
5
-85

skipif mysql # not compatible
query II rowsort label-1323
SELECT DISTINCT - - CAST ( col1 AS INTEGER ) AS col2, - col0 AS col1 FROM tab1 AS cor0
----
14
-51
47
-91
5
-85

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

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

query I rowsort
SELECT ALL + 59 * - ( col2 ) FROM tab2
----
-1357
-2360
-3422

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1328
SELECT DISTINCT - + COUNT( * ) * 64 FROM tab1 AS cor0
----
-192

skipif mysql # not compatible
query I rowsort label-1328
SELECT DISTINCT - + COUNT ( * ) * 64 FROM tab1 AS cor0
----
-192

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

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

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

query I rowsort
SELECT ALL col0 * + + 88 AS col0 FROM tab1
----
4488
7480
8008

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

query I rowsort
SELECT DISTINCT ( 42 ) AS col0 FROM tab0
----
42

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

query I rowsort
SELECT ALL 70 + + 18 FROM tab0
----
88
88
88

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

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

query I rowsort
SELECT - col2 * - 88 + + - ( - 83 ) + + + col0 AS col2 FROM tab0
----
1050
4234
8892

onlyif mysql # aggregate syntax: 
query I rowsort label-1338
SELECT MAX( ALL + col2 ) + SUM( 7 ) + 12 FROM tab1 WHERE NULL IS NULL
----
129

skipif mysql # not compatible
query I rowsort label-1338
SELECT MAX ( ALL + col2 ) + SUM ( 7 ) + 12 FROM tab1 WHERE NULL IS NULL
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-1339
SELECT DISTINCT MAX( - - 74 ) FROM tab0 cor0
----
74

skipif mysql # not compatible
query I rowsort label-1339
SELECT DISTINCT MAX ( - - 74 ) FROM tab0 cor0
----
74

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

skipif mysql # not compatible
query I rowsort label-1340
SELECT DISTINCT + SUM ( DISTINCT - + 76 ) AS col2 FROM tab2 AS cor0
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-1341
SELECT ALL COUNT( - - col0 ) + + ( - - SUM( DISTINCT + col1 ) ) FROM tab2
----
198

skipif mysql # not compatible
query I rowsort label-1341
SELECT ALL COUNT ( - - col0 ) + + ( - - SUM ( DISTINCT + col1 ) ) FROM tab2
----
198

query I rowsort
SELECT - col0 + + + col1 AS col0 FROM tab1 cor0
----
-37
-44
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-1343
SELECT + COUNT( * ) + - 50 AS col2 FROM tab2 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-1343
SELECT + COUNT ( * ) + - 50 AS col2 FROM tab2 AS cor0
----
-47

query I rowsort
SELECT + 70 + + col2 + - + col0 * 23 * + col0 AS col1 FROM tab0 AS cor0
----
-174007
-216238
-5058

query I rowsort
SELECT 54 + - col1 FROM tab1 AS cor0
----
40
49
7

onlyif mysql # aggregate syntax: 
query I rowsort label-1346
SELECT + MIN( + - 87 ) FROM tab0 WHERE NOT - + col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1346
SELECT + MIN ( + - 87 ) FROM tab0 WHERE NOT - + col2 IS NOT NULL
----
NULL

query II rowsort
SELECT col0 * + col1 * - 23, col0 AS col0 FROM tab0
----
-2231
97
-27945
15
-42021
87

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 4 < NULL
----

query I rowsort
SELECT ALL 61 * - - col1 FROM tab2
----
3111
4087
4697

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

query III rowsort
SELECT ALL * FROM tab1 WHERE + + col0 > + col0 * 6 - col2
----

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

query I rowsort
SELECT ALL ( 66 ) FROM tab0
----
66
66
66

query I rowsort
SELECT 75 * - col1 FROM tab2 AS cor0
----
-3825
-5025
-5775

onlyif mysql # aggregate syntax: 
query I rowsort label-1355
SELECT ALL + + COUNT( * ) * 60 FROM tab0 AS cor0
----
180

skipif mysql # not compatible
query I rowsort label-1355
SELECT ALL + + COUNT ( * ) * 60 FROM tab0 AS cor0
----
180

query I rowsort
SELECT col2 AS col2 FROM tab0 WHERE 47 + + 48 * - col1 NOT IN ( + col2 * col0 )
----
10
47
99

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

query I rowsort
SELECT DISTINCT - ( col0 ) AS col0 FROM tab2 WHERE NOT col2 IS NULL
----
-46
-64
-75

query I rowsort
SELECT DISTINCT - 8 * col0 FROM tab1 WHERE NOT col1 IS NULL
----
-408
-680
-728

query I rowsort
SELECT ALL - 49 AS col2 FROM tab2 WHERE NOT - col1 / + col2 BETWEEN NULL AND + 12 + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1361
SELECT + MAX( 24 ) FROM tab1
----
24

skipif mysql # not compatible
query I rowsort label-1361
SELECT + MAX ( 24 ) FROM tab1
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-1362
SELECT DISTINCT 28 + SUM( ALL + col0 ) * - 23 col0 FROM tab1
----
-5193

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1362
SELECT DISTINCT 28 + SUM ( ALL + col0 ) * - 23 col0 FROM tab1
----
-5193

query I rowsort
SELECT ALL ( - ( - col2 ) ) * ( 76 ) FROM tab2
----
1748
3040
4408

query I rowsort
SELECT 25 + + 9 * 6 AS col2 FROM tab1
----
79
79
79

query I rowsort
SELECT 31 * 70 AS col1 FROM tab0
----
2170
2170
2170

query I rowsort
SELECT col0 * 12 FROM tab1
----
1020
1092
612

query I rowsort
SELECT col1 * + ( + 52 * - 36 ) FROM tab2
----
-125424
-144144
-95472

query I rowsort
SELECT ALL - col0 + 50 AS col1 FROM tab2
----
-14
-25
4

onlyif mysql # aggregate syntax: 
query I rowsort label-1369
SELECT COUNT( + 13 ) + SUM( ( col1 ) ) * + 24 AS col2 FROM tab0 WHERE NULL <= col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1369
SELECT COUNT ( + 13 ) + SUM ( ( col1 ) ) * + 24 AS col2 FROM tab0 WHERE NULL <= col0
----
NULL

query I rowsort
SELECT ALL 41 * col1 + - col1 * col1 FROM tab0
----
-3240
40
420

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

query I rowsort
SELECT DISTINCT + 54 * 76 FROM tab1
----
4104

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1374
SELECT ALL + COUNT( * ) FROM tab2 WHERE NOT NULL < NULL
----
0

skipif mysql # not compatible
query I rowsort label-1374
SELECT ALL + COUNT ( * ) FROM tab2 WHERE NOT NULL < NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1375
SELECT ALL - COUNT( * ) * 96 FROM tab0
----
-288

skipif mysql # not compatible
query I rowsort label-1375
SELECT ALL - COUNT ( * ) * 96 FROM tab0
----
-288

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

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

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

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE ( - col0 ) < NULL
----

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

query I rowsort
SELECT DISTINCT col2 + col0 * 78 FROM tab1 AS cor0
----
4074
6689
7166

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 + + 38 <= col1
----

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

query I rowsort
SELECT col1 * 82 + 76 AS col0 FROM tab0 cor0
----
158
1798
6718

query I rowsort
SELECT + col0 * - col2 + col1 * + col0 AS col0 FROM tab1
----
-1911
-4182
-4590

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

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

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

skipif mysql # not compatible
query I rowsort label-1387
SELECT ALL COUNT ( * ) - COUNT ( ALL ( col0 ) ) FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1388
SELECT ALL + 27 DIV col0 - - col2 FROM tab0 AS cor0
----
10
48
99

skipif mysql # not compatible
query I rowsort label-1388
SELECT ALL + 27 / col0 - - col2 FROM tab0 AS cor0
----
10
48
99

query I rowsort
SELECT ALL - 3 FROM tab0 AS cor0 WHERE ( - col2 ) = ( col0 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1391
SELECT ALL + 0 * SUM( ALL col2 ) AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1391
SELECT ALL + 0 * SUM ( ALL col2 ) AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT + 48 - - col0 * - col2 FROM tab2 cor0
----
-1010
-2512
-4302

query I rowsort
SELECT 33 AS col0 FROM tab0 AS cor0 WHERE NOT + col1 * ( - 13 ) NOT IN ( - col1 )
----

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1395
SELECT * FROM tab0 AS cor0 WHERE NOT CAST( + col1 AS DECIMAL ) IN ( + 78 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-1395
SELECT * FROM tab0 AS cor0 WHERE NOT CAST ( + col1 AS REAL ) IN ( + 78 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 71 * col1 col1 FROM tab0
----
1491
5751
71

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

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

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

query I rowsort
SELECT ALL - 79 + - col1 AS col1 FROM tab1 WHERE ( 95 ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col2 NOT IN ( + col2 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 + 72 BETWEEN ( 63 ) AND col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 7 col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT - ( + 13 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e95f5f4bd0f480397cced5f5e8a23792

query I rowsort
SELECT 43 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT + 32 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1407
SELECT COUNT( * ) col2 FROM tab2 AS cor0 WHERE NOT col1 > NULL
----
0

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

query II rowsort
SELECT ALL - col1 AS col0, - ( - col1 ) + + col1 * + col1 AS col2 FROM tab2 AS cor0
----
-51
2652
-67
4556
-77
6006

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1409
SELECT CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0 WHERE NOT - ( + col0 ) - 62 NOT BETWEEN col0 + 38 AND - col0
----

skipif mysql # not compatible
query I rowsort label-1409
SELECT CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0 WHERE NOT - ( + col0 ) - 62 NOT BETWEEN col0 + 38 AND - col0
----

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

skipif mysql # not compatible
query I rowsort label-1410
SELECT + MIN ( + 65 ) FROM tab2 AS cor0
----
65

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

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE col0 + + 20 NOT IN ( col1 * col0 )
----
1
21
81

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

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

query I rowsort
SELECT col2 * col2 * - - 88 AS col1 FROM tab0 AS cor0
----
194392
862488
8800

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 <= ( col2 + + 69 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT AVG ( col2 ) AS col1 FROM tab0 cor0 WHERE NULL NOT IN ( 64 * - + col0 + col1 * col1 )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1417
SELECT + CAST( NULL AS DECIMAL ) / - + col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1417
SELECT + CAST ( NULL AS REAL ) / - + col2 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1418
SELECT COUNT( * ) * - 35 FROM tab2 AS cor0
----
-105

skipif mysql # not compatible
query I rowsort label-1418
SELECT COUNT ( * ) * - 35 FROM tab2 AS cor0
----
-105

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1420
SELECT DISTINCT - + COUNT( * ) + + - SUM( - col1 ) FROM tab2 AS cor0
----
192

skipif mysql # not compatible
query I rowsort label-1420
SELECT DISTINCT - + COUNT ( * ) + + - SUM ( - col1 ) FROM tab2 AS cor0
----
192

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

query I rowsort
SELECT DISTINCT 29 + + col1 AS col0 FROM tab2 AS cor0
----
106
80
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1423
SELECT DISTINCT COUNT( col0 ) + - - 95 FROM tab1 AS cor0
----
98

skipif mysql # not compatible
query I rowsort label-1423
SELECT DISTINCT COUNT ( col0 ) + - - 95 FROM tab1 AS cor0
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-1424
SELECT - COUNT( DISTINCT - 35 ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-1

skipif mysql # not compatible
query I rowsort label-1424
SELECT - COUNT ( DISTINCT - 35 ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-1

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

query I rowsort
SELECT ALL + 48 + + - 99 AS col1 FROM tab1 AS cor0
----
-51
-51
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-1427
SELECT DISTINCT + 52 DIV + col1 + - col1 AS col0 FROM tab1
----
-11
-46
5

skipif mysql # not compatible
query I rowsort label-1427
SELECT DISTINCT + 52 / + col1 + - col1 AS col0 FROM tab1
----
-11
-46
5

query I rowsort
SELECT ALL - 54 + - col0 - 84 FROM tab0
----
-153
-225
-235

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

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

query I rowsort
SELECT ALL - ( col2 ) + col2 AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT - col1 + - - col1 AS col2 FROM tab0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1432
SELECT col0 + + col2 DIV + col1 AS col0 FROM tab1
----
57
92
96

skipif mysql # not compatible
query I rowsort label-1432
SELECT col0 + + col2 / + col1 AS col0 FROM tab1
----
57
92
96

onlyif mysql # DIV for integer division: 
query II rowsort label-1433
SELECT ALL 50 * - col0, - 2 + - 35 DIV + col1 AS col1 FROM tab0
----
-4350
-3
-4850
-37
-750
-2

skipif mysql # not compatible
query II rowsort label-1433
SELECT ALL 50 * - col0, - 2 + - 35 / + col1 AS col1 FROM tab0
----
-4350
-3
-4850
-37
-750
-2

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

query I rowsort
SELECT DISTINCT + col1 * - col0 - + - ( - 27 ) * col0 AS col2 FROM tab1
----
-2091
-2720
-6734

query I rowsort
SELECT ALL + col2 * 5 FROM tab0 AS cor0
----
235
495
50

onlyif mysql # aggregate syntax: 
query I rowsort label-1437
SELECT ALL + COUNT( * ) + - 68 * 86 AS col0 FROM tab0 cor0
----
-5845

skipif mysql # not compatible
query I rowsort label-1437
SELECT ALL + COUNT ( * ) + - 68 * 86 AS col0 FROM tab0 cor0
----
-5845

query I rowsort
SELECT DISTINCT col0 * + - 71 + - ( + col2 ) AS col0 FROM tab0 cor0
----
-1112
-6187
-6986

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

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

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

skipif mysql # not compatible
query I rowsort label-1440
SELECT ALL - COUNT ( * ) / - - 2 * COUNT ( * ) * - 62 + CAST ( NULL AS REAL ) + 5 FROM tab1
----
NULL

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT + 45 * - + 46 IS NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

query I rowsort
SELECT ALL - col1 - 68 AS col2 FROM tab0
----
-149
-69
-89

query II rowsort
SELECT - ( - col2 ) - + col0, 36 AS col2 FROM tab0
----
-77
36
2
36
32
36

onlyif mysql # aggregate syntax: 
query I rowsort label-1444
SELECT COUNT( * ) + + 37 AS col2 FROM tab2
----
40

skipif mysql # not compatible
query I rowsort label-1444
SELECT COUNT ( * ) + + 37 AS col2 FROM tab2
----
40

query I rowsort
SELECT DISTINCT - 82 * + 18 * - col2 AS col1 FROM tab1 cor0
----
100368
141696
87084

query I rowsort
SELECT DISTINCT + - 63 * + col0 FROM tab1 AS cor0
----
-3213
-5355
-5733

query I rowsort
SELECT col1 * + col0 AS col1 FROM tab1 AS cor0 WHERE NOT ( + col0 ) + 79 IN ( ( col1 ) )
----
425
4277
714

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 53 * - + 28 col0 FROM tab0 AS cor0
----
1484

query I rowsort
SELECT - 97 + + 96 * col2 FROM tab0 AS cor0 WHERE NOT ( + ( - 31 ) ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1450
SELECT DISTINCT - + col1, - col1 * + 25 + ( + - CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 cor0
----
-51
NULL
-67
NULL
-77
NULL

skipif mysql # not compatible
query II rowsort label-1450
SELECT DISTINCT - + col1, - col1 * + 25 + ( + - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 cor0
----
-51
NULL
-67
NULL
-77
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1451
SELECT DISTINCT CAST( - col2 AS SIGNED ) + col2 FROM tab2 AS cor0 WHERE NOT + col1 + col1 <= ( NULL )
----

skipif mysql # not compatible
query I rowsort label-1451
SELECT DISTINCT CAST ( - col2 AS INTEGER ) + col2 FROM tab2 AS cor0 WHERE NOT + col1 + col1 <= ( NULL )
----

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

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

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

query I rowsort
SELECT 9 * + 40 FROM tab2 AS cor0 WHERE NOT 85 NOT IN ( 7 * + + 23 * col2 * col0 + + col2 * + col2 )
----

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

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

query IIIIII rowsort
SELECT ALL * FROM tab1, tab0 AS cor0 WHERE NOT 10 * - 80 IS NOT NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1458
SELECT DISTINCT - 21 * - + COUNT( * ) FROM tab2
----
63

skipif mysql # not compatible
query I rowsort label-1458
SELECT DISTINCT - 21 * - + COUNT ( * ) FROM tab2
----
63

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

query I rowsort
SELECT - ( + col1 ) * 0 FROM tab0
----
0
0
0

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1462
SELECT ALL col0, + col2 * + 98 DIV - + 98 AS col1 FROM tab1
----
51
-96
85
-59
91
-68

skipif mysql # not compatible
query II rowsort label-1462
SELECT ALL col0, + col2 * + 98 / - + 98 AS col1 FROM tab1
----
51
-96
85
-59
91
-68

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

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

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

query I rowsort
SELECT DISTINCT - 80 + col2 - - col0 FROM tab2 AS cor0
----
-11
24
53

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1466
SELECT DISTINCT col0 AS col1, ( - CAST( 70 AS SIGNED ) ) FROM tab2 AS cor0
----
46
-70
64
-70
75
-70

skipif mysql # not compatible
query II rowsort label-1466
SELECT DISTINCT col0 AS col1, ( - CAST ( 70 AS INTEGER ) ) FROM tab2 AS cor0
----
46
-70
64
-70
75
-70

query II rowsort
SELECT DISTINCT - col0 + + 27 AS col1, 53 + 59 AS col2 FROM tab0
----
-60
112
-70
112
12
112

onlyif mysql # DIV for integer division: 
query II rowsort label-1468
SELECT DISTINCT + col1 DIV - col2, col2 AS col0 FROM tab1
----
0
59
0
68
0
96

skipif mysql # not compatible
query II rowsort label-1468
SELECT DISTINCT + col1 / - col2, col2 AS col0 FROM tab1
----
0
59
0
68
0
96

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( + 1 IS NOT NULL )
----

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

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

query II rowsort
SELECT ALL - - col1 * - - col1 AS col0, - col1 FROM tab2 AS cor0
----
2601
-51
4489
-67
5929
-77

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

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

query I rowsort
SELECT DISTINCT - col1 + 52 + - col2 AS col2 FROM tab0 AS cor0
----
-48
-76
21

query I rowsort
SELECT ALL - col2 + + col1 + col2 FROM tab0 AS cor0
----
1
21
81

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1477
SELECT CAST( NULL AS SIGNED ) AS col0, col2 FROM tab1
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-1477
SELECT CAST ( NULL AS INTEGER ) AS col0, col2 FROM tab1
----
NULL
59
NULL
68
NULL
96

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( col0 ) = NULL
----

query I rowsort
SELECT ALL col1 + - 60 + + 11 FROM tab0
----
-28
-48
32

query I rowsort
SELECT ( - + col1 ) - + 29 - + col1 * - col1 FROM tab2
----
2521
4393
5823

onlyif mysql # aggregate syntax: 
query I rowsort label-1481
SELECT COUNT( * ) col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1481
SELECT COUNT ( * ) col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NOT NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + ( + col1 ) * + - col0 BETWEEN - col2 AND 74 OR NOT ( - 60 * col1 NOT BETWEEN NULL AND - col0 + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1483
SELECT ALL + COUNT( * ) * - 93 * ( + + ( - 84 ) ) AS col1 FROM tab2 AS cor0
----
23436

skipif mysql # not compatible
query I rowsort label-1483
SELECT ALL + COUNT ( * ) * - 93 * ( + + ( - 84 ) ) AS col1 FROM tab2 AS cor0
----
23436

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

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

query I rowsort
SELECT + + col2 * + 6 FROM tab0 cor0
----
282
594
60

onlyif mysql # DIV for integer division: 
query I rowsort label-1486
SELECT DISTINCT - col0 DIV 53 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-1486
SELECT DISTINCT - col0 / 53 FROM tab1 AS cor0
----
-1
0

query I rowsort
SELECT DISTINCT + col0 * + 68 FROM tab2 AS cor0
----
3128
4352
5100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1488
SELECT + CAST( COUNT( * ) AS SIGNED ) * + SUM( col2 ), + COUNT( - 24 ) + + - 87 AS col0 FROM tab1 AS cor0
----
669
-84

skipif mysql # not compatible
query II rowsort label-1488
SELECT + CAST ( COUNT ( * ) AS INTEGER ) * + SUM ( col2 ), + COUNT ( - 24 ) + + - 87 AS col0 FROM tab1 AS cor0
----
669
-84

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

skipif mysql # not compatible
query I rowsort label-1489
SELECT ALL - MAX ( ALL - + col1 ) FROM tab1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1490
SELECT DISTINCT 51 * SUM( DISTINCT - col0 ) FROM tab0
----
-10149

skipif mysql # not compatible
query I rowsort label-1490
SELECT DISTINCT 51 * SUM ( DISTINCT - col0 ) FROM tab0
----
-10149

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1491
SELECT + 24 * COUNT( * ) FROM tab0 WHERE NOT ( - 42 + CAST( 15 AS SIGNED ) ) >= + col2 * - + col1 + - col0 - + + 33
----
0

skipif mysql # not compatible
query I rowsort label-1491
SELECT + 24 * COUNT ( * ) FROM tab0 WHERE NOT ( - 42 + CAST ( 15 AS INTEGER ) ) >= + col2 * - + col1 + - col0 - + + 33
----
0

query III rowsort
SELECT ALL * FROM tab2 WHERE + col2 BETWEEN ( + + 77 ) AND col1
----

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

skipif mysql # not compatible
query I rowsort label-1493
SELECT ALL MIN ( - - col1 ) / - ( - - COUNT ( * ) ) AS col1 FROM tab2
----
-17

query I rowsort
SELECT col1 * col2 + col2 - - col2 * + col0 + + 74 * + col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
11378
13252
6028

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

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

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

query I rowsort
SELECT DISTINCT + col0 + + 83 FROM tab1
----
134
168
174

onlyif mysql # DIV for integer division: 
query II rowsort label-1498
SELECT 20, col1 DIV + + 82 AS col2 FROM tab0
----
20
0
20
0
20
0

skipif mysql # not compatible
query II rowsort label-1498
SELECT 20, col1 / + + 82 AS col2 FROM tab0
----
20
0
20
0
20
0

query I rowsort
SELECT - + 87 * col0 + col0 AS col0 FROM tab1 AS cor0
----
-4386
-7310
-7826

query I rowsort
SELECT + + ( - - col0 ) FROM tab0 cor0
----
15
87
97

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

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

query I rowsort
SELECT ALL + col1 * - - 98 + - - col2 FROM tab2 AS cor0
----
5021
6624
7586

query I rowsort
SELECT + col2 + + - col0 FROM tab1 AS cor0
----
-23
-26
45

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1505
SELECT ALL CAST ( - col0 AS INTEGER ) - + - col1 col1 FROM tab2
----
-8
13
5

onlyif mysql # DIV for integer division: 
query I rowsort label-1506
SELECT + col2 + + col2 DIV - 57 FROM tab1
----
58
67
95

skipif mysql # not compatible
query I rowsort label-1506
SELECT + col2 + + col2 / - 57 FROM tab1
----
58
67
95

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab1 WHERE ( + 67 * + - 71 * - + col2 + col1 ) NOT BETWEEN NULL AND col0 * col0
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1508
SELECT - CAST( + ( - 87 ) AS SIGNED ) AS col0 FROM tab1
----
87
87
87

skipif mysql # not compatible
query I rowsort label-1508
SELECT - CAST ( + ( - 87 ) AS INTEGER ) AS col0 FROM tab1
----
87
87
87

onlyif mysql # aggregate syntax: 
query II rowsort label-1509
SELECT 33 * - + 80 + - - 60, - MIN( DISTINCT + col0 ) col2 FROM tab1 AS cor0
----
-2580
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1509
SELECT 33 * - + 80 + - - 60, - MIN ( DISTINCT + col0 ) col2 FROM tab1 AS cor0
----
-2580
-51

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

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

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

query II rowsort
SELECT + 16 AS col1, 96 FROM tab0
----
16
96
16
96
16
96

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

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

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

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN - ( col1 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1516
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 * - CAST( 5 AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-1516
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 * - CAST ( 5 AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

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

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

query I rowsort
SELECT - col0 * col2 * ( - 34 ) AS col2 FROM tab1
----
166464
170510
210392

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

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

query II rowsort
SELECT 25 * + + 47, col2 AS col1 FROM tab2
----
1175
23
1175
40
1175
58

onlyif mysql # aggregate syntax: 
query I rowsort label-1523
SELECT DISTINCT 48 * + - MIN( - col1 ) AS col1 FROM tab2
----
3696

skipif mysql # not compatible
query I rowsort label-1523
SELECT DISTINCT 48 * + - MIN ( - col1 ) AS col1 FROM tab2
----
3696

query I rowsort
SELECT DISTINCT ( + col0 ) * - ( - 66 ) AS col0 FROM tab2
----
3036
4224
4950

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1525
SELECT + CAST( - - 70 AS SIGNED ) * - 76 col2 FROM tab1
----
-5320
-5320
-5320

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1525
SELECT + CAST ( - - 70 AS INTEGER ) * - 76 col2 FROM tab1
----
-5320
-5320
-5320

onlyif mysql # DIV for integer division: 
query I rowsort label-1526
SELECT - 15 DIV col0 col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1526
SELECT - 15 / col0 col1 FROM tab1
----
0
0
0

query I rowsort
SELECT - col1 * - + col0 * + 69 FROM tab2
----
161874
340032
346725

query I rowsort
SELECT ALL - ( + + col0 ) * 3 * 57 + + col2 FROM tab2
----
-10904
-12767
-7843

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1529
SELECT ALL - CAST( NULL AS SIGNED ) / - col0 FROM tab1 AS cor0 WHERE - col0 * - 19 BETWEEN NULL AND + - 19
----

skipif mysql # not compatible
query I rowsort label-1529
SELECT ALL - CAST ( NULL AS INTEGER ) / - col0 FROM tab1 AS cor0 WHERE - col0 * - 19 BETWEEN NULL AND + - 19
----

query I rowsort
SELECT + 81 + - - 12 * - col2 + 8 AS col0 FROM tab1
----
-1063
-619
-727

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NOT NULL > 52 / col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1532
SELECT DISTINCT + CAST( + 9 AS SIGNED ) * 65 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL = 96
----

skipif mysql # not compatible
query I rowsort label-1532
SELECT DISTINCT + CAST ( + 9 AS INTEGER ) * 65 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL = 96
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1533
SELECT ALL + MAX( + - col2 ) AS col0 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-1533
SELECT ALL + MAX ( + - col2 ) AS col0 FROM tab2 AS cor0
----
-23

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

query I rowsort
SELECT ALL col2 * - - col0 FROM tab0 AS cor0
----
705
870
9603

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1536
SELECT MIN ( ALL - col1 ) col0 FROM tab1 AS cor0
----
-47

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1538
SELECT DISTINCT + 56 + + MAX( DISTINCT col1 ) * + SUM( DISTINCT 72 ) AS col0 FROM tab1
----
3440

skipif mysql # not compatible
query I rowsort label-1538
SELECT DISTINCT + 56 + + MAX ( DISTINCT col1 ) * + SUM ( DISTINCT 72 ) AS col0 FROM tab1
----
3440

query I rowsort
SELECT ALL col1 + col1 + + col1 AS col2 FROM tab1
----
141
15
42

onlyif mysql # aggregate syntax: 
query I rowsort label-1540
SELECT MIN( - col1 ) - 71 AS col2 FROM tab0
----
-152

skipif mysql # not compatible
query I rowsort label-1540
SELECT MIN ( - col1 ) - 71 AS col2 FROM tab0
----
-152

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - - col0 col0 FROM tab1
----
144
147
159

onlyif mysql # aggregate syntax: 
query I rowsort label-1542
SELECT DISTINCT - 38 + + COUNT( * ) * + 61 FROM tab2
----
145

skipif mysql # not compatible
query I rowsort label-1542
SELECT DISTINCT - 38 + + COUNT ( * ) * + 61 FROM tab2
----
145

query I rowsort
SELECT DISTINCT col2 - 14 AS col0 FROM tab1
----
45
54
82

query I rowsort
SELECT - 88 * col2 + col2 FROM tab1
----
-5133
-5916
-8352

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1546
SELECT ALL 82, + CAST( NULL AS SIGNED ) + COUNT( * ) * COUNT( * ) * + MIN( ALL + - col2 ) AS col1 FROM tab2 AS cor0
----
82
NULL

skipif mysql # not compatible
query II rowsort label-1546
SELECT ALL 82, + CAST ( NULL AS INTEGER ) + COUNT ( * ) * COUNT ( * ) * + MIN ( ALL + - col2 ) AS col1 FROM tab2 AS cor0
----
82
NULL

query I rowsort
SELECT + - col2 * - + 36 * + col1 FROM tab0 AS cor0
----
137052
3564
7560

onlyif mysql # DIV for integer division: 
query I rowsort label-1548
SELECT - + col0 * + col2 * 96 DIV col2 FROM tab0 AS cor0
----
-1440
-8352
-9312

skipif mysql # not compatible
query I rowsort label-1548
SELECT - + col0 * + col2 * 96 / col2 FROM tab0 AS cor0
----
-1440
-8352
-9312

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1550
SELECT ALL + COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT CAST( NULL AS SIGNED ) = NULL
----
0

skipif mysql # not compatible
query I rowsort label-1550
SELECT ALL + COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT CAST ( NULL AS INTEGER ) = NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1551
SELECT ALL + - ( + CAST( - + col0 AS SIGNED ) ) FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-1551
SELECT ALL + - ( + CAST ( - + col0 AS INTEGER ) ) FROM tab1 AS cor0
----
51
85
91

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

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

query II rowsort
SELECT - ( - col0 ) AS col1, - col2 FROM tab1 AS cor0
----
51
-96
85
-59
91
-68

query II rowsort
SELECT DISTINCT + 23 + - col1 * - col0 + col0 + + - col0 - + col1, 3 AS col2 FROM tab0
----
1157
3
119
3
1829
3

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

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT - ( + 29 ) IS NULL )
----

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1562
SELECT col2 * - + col2 AS col0, CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
-100
NULL
-2209
NULL
-9801
NULL

skipif mysql # not compatible
query II rowsort label-1562
SELECT col2 * - + col2 AS col0, CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
-100
NULL
-2209
NULL
-9801
NULL

query I rowsort
SELECT DISTINCT 19 * + 53 * - + col2 - 10 AS col1 FROM tab1
----
-59423
-68486
-96682

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

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

query II rowsort
SELECT ALL + ( - col0 ) AS col2, 68 FROM tab0 AS cor0
----
-15
68
-87
68
-97
68

query I rowsort
SELECT ALL ( + col2 ) FROM tab2 cor0 WHERE NOT ( ( NOT NULL IS NULL ) )
----
23
40
58

query I rowsort
SELECT 9 + 17 FROM tab2 AS cor0
----
26
26
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1568
SELECT CAST( NULL AS SIGNED ) AS col0, COUNT( * ) * - + 94 * - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
NULL
846

skipif mysql # not compatible
query II rowsort label-1568
SELECT CAST ( NULL AS INTEGER ) AS col0, COUNT ( * ) * - + 94 * - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
NULL
846

query I rowsort
SELECT DISTINCT 51 * 28 * 33 + - + col2 AS col1 FROM tab2
----
47066
47084
47101

onlyif mysql # aggregate syntax: 
query I rowsort label-1570
SELECT DISTINCT - ( COUNT( * ) ) + + 37 AS col1 FROM tab2
----
34

skipif mysql # not compatible
query I rowsort label-1570
SELECT DISTINCT - ( COUNT ( * ) ) + + 37 AS col1 FROM tab2
----
34

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col0 * - col1 > NULL
----

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

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

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

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

query I rowsort
SELECT ALL - - 29 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE + ( + 76 ) IS NOT NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

onlyif mysql # aggregate syntax: 
query I rowsort label-1577
SELECT ALL MIN( - - 29 ) FROM tab1
----
29

skipif mysql # not compatible
query I rowsort label-1577
SELECT ALL MIN ( - - 29 ) FROM tab1
----
29

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( col2 * + + ( - col0 ) ) BETWEEN 81 AND - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

query I rowsort
SELECT col2 * - + 31 AS col1 FROM tab0 AS cor0
----
-1457
-3069
-310

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 78 BETWEEN ( NULL ) AND ( NULL )
----

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

query III rowsort
SELECT ALL * FROM tab2 WHERE + - col1 * 69 + - 59 * + + ( + 86 ) BETWEEN NULL AND ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1584
SELECT DISTINCT + MAX( DISTINCT - 41 ) * COUNT( * ) + + COUNT( ALL + - 83 ) AS col2 FROM tab2
----
-120

skipif mysql # not compatible
query I rowsort label-1584
SELECT DISTINCT + MAX ( DISTINCT - 41 ) * COUNT ( * ) + + COUNT ( ALL + - 83 ) AS col2 FROM tab2
----
-120

onlyif mysql # aggregate syntax: 
query II rowsort label-1585
SELECT + COUNT( * ) * + 0, - 66 AS col2 FROM tab2
----
0
-66

skipif mysql # not compatible
query II rowsort label-1585
SELECT + COUNT ( * ) * + 0, - 66 AS col2 FROM tab2
----
0
-66

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

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

query I rowsort
SELECT DISTINCT 53 * - - col1 AS col1 FROM tab2 AS cor0
----
2703
3551
4081

query I rowsort
SELECT DISTINCT - + 23 * + - 30 + + + col0 AS col0 FROM tab0 cor0
----
705
777
787

query I rowsort
SELECT - 64 + - - 54 AS col0 FROM tab0 AS cor0
----
-10
-10
-10

query I rowsort
SELECT + col2 * + + 34 + - col1 + ( col2 ) AS col0 FROM tab2 cor0
----
1323
1963
754

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

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

query I rowsort
SELECT DISTINCT - col1 * - 83 AS col2 FROM tab1 cor0
----
1162
3901
415

query I rowsort
SELECT - col2 + - 91 FROM tab2 AS cor0 WHERE NULL BETWEEN 13 * + - 68 * - col1 / - col1 AND col1
----

query II rowsort
SELECT DISTINCT + + col1, - 70 + + col2 FROM tab0 cor0
----
1
29
21
-60
81
-23

query I rowsort
SELECT + col0 * + + 46 AS col0 FROM tab2 cor0
----
2116
2944
3450

onlyif mysql # aggregate syntax: 
query I rowsort label-1596
SELECT - ( + MAX( + col1 ) ) FROM tab0 AS cor0 WHERE NULL IN ( 20, - ( + col1 ) + + + col1, - 73 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1596
SELECT - ( + MAX ( + col1 ) ) FROM tab0 AS cor0 WHERE NULL IN ( 20, - ( + col1 ) + + + col1, - 73 )
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1598
SELECT - 41 * + + CAST( - - 61 AS SIGNED ) - - col2 + + + col1 FROM tab0
----
-2373
-2401
-2470

skipif mysql # not compatible
query I rowsort label-1598
SELECT - 41 * + + CAST ( - - 61 AS INTEGER ) - - col2 + + + col1 FROM tab0
----
-2373
-2401
-2470

onlyif mysql # aggregate syntax: 
query I rowsort label-1599
SELECT ( + + COUNT( + 45 ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-1599
SELECT ( + + COUNT ( + 45 ) ) FROM tab2
----
3

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

skipif mysql # not compatible
query I rowsort label-1600
SELECT - MAX ( DISTINCT + col1 ) / - + COUNT ( * ) AS col2 FROM tab0
----
27

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

query I rowsort
SELECT - + 59 AS col0 FROM tab2 WHERE NOT NULL NOT BETWEEN 62 / + col1 + + col0 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1603
SELECT DISTINCT 13 DIV - - col1 FROM tab0
----
0
13

skipif mysql # not compatible
query I rowsort label-1603
SELECT DISTINCT 13 / - - col1 FROM tab0
----
0
13

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1605
SELECT DISTINCT + COUNT( * ) FROM tab2 AS cor0 WHERE + 16 NOT BETWEEN - - 6 + 37 AND - CAST( NULL AS SIGNED )
----
3

skipif mysql # not compatible
query I rowsort label-1605
SELECT DISTINCT + COUNT ( * ) FROM tab2 AS cor0 WHERE + 16 NOT BETWEEN - - 6 + 37 AND - CAST ( NULL AS INTEGER )
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1606
SELECT DISTINCT - COUNT( * ) DIV - 76 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1606
SELECT DISTINCT - COUNT ( * ) / - 76 FROM tab1 AS cor0
----
0

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1609
SELECT + MAX ( + 29 ) AS col2 FROM tab2 cor0
----
29

query I rowsort
SELECT - + col2 * - - col2 FROM tab1 cor0
----
-3481
-4624
-9216

query I rowsort
SELECT ALL ( - 13 ) FROM tab2 AS cor0
----
-13
-13
-13

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 25 / 47 * + + 77 < - + col1 * ( + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - 35 ) + col0 col1 FROM tab0 cor0
----
122
132
50

query I rowsort
SELECT DISTINCT 66 + + ( + col0 ) FROM tab2
----
112
130
141

onlyif mysql # aggregate syntax: 
query I rowsort label-1616
SELECT + COUNT( * ) + + - SUM( ALL + 36 ) col0 FROM tab1
----
-105

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

query II rowsort
SELECT - col1, col1 + - + 93 AS col1 FROM tab1 cor0
----
-14
-79
-47
-46
-5
-88

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL < - 64
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1619
SELECT COUNT( * ) AS col2 FROM tab0 WHERE col1 BETWEEN ( 2 ) AND ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-1619
SELECT COUNT ( * ) AS col2 FROM tab0 WHERE col1 BETWEEN ( 2 ) AND ( NULL )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1620
SELECT ALL COUNT( * ) + COUNT( * ) FROM tab0 WHERE NOT ( + + col0 * + CAST( + + col2 AS SIGNED ) * - col1 + + col0 ) > - 96
----
6

skipif mysql # not compatible
query I rowsort label-1620
SELECT ALL COUNT ( * ) + COUNT ( * ) FROM tab0 WHERE NOT ( + + col0 * + CAST ( + + col2 AS INTEGER ) * - col1 + + col0 ) > - 96
----
6

query I rowsort
SELECT col1 FROM tab1 WHERE - + 55 IS NULL
----

query II rowsort
SELECT + ( + 72 ) + - col0 AS col1, - 35 AS col1 FROM tab1
----
-13
-35
-19
-35
21
-35

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

query I rowsort
SELECT + - 78 + - - 10 FROM tab1 AS cor0
----
-68
-68
-68

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

query I rowsort
SELECT ALL - - 35 - - 4 FROM tab0 cor0 WHERE NOT NULL = + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1627
SELECT DISTINCT SUM( ALL col2 ) FROM tab2 AS cor0 WHERE NOT 98 - + col2 < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1627
SELECT DISTINCT SUM ( ALL col2 ) FROM tab2 AS cor0 WHERE NOT 98 - + col2 < NULL
----
NULL

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

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

query I rowsort
SELECT DISTINCT 23 * + - 37 FROM tab1
----
-851

onlyif mysql # aggregate syntax: 
query II rowsort label-1630
SELECT COUNT( * ), - MAX( - 11 ) col1 FROM tab0
----
3
11

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

query I rowsort
SELECT ALL + col0 / + col0 FROM tab1 WHERE NOT - - col1 * + + col1 / col2 + - col1 + + 7 + + 57 <= + col0 * col1
----

query I rowsort
SELECT ALL + + col0 FROM tab0 WHERE NOT - 78 IS NULL
----
15
87
97

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1635
SELECT DISTINCT col1 DIV + + col1 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-1635
SELECT DISTINCT col1 / + + col1 FROM tab2
----
1

query II rowsort
SELECT - 77 AS col1, 93 FROM tab0
----
-77
93
-77
93
-77
93

onlyif mysql # aggregate syntax: 
query I rowsort label-1637
SELECT ALL + SUM( DISTINCT - col2 ) AS col0 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-1637
SELECT ALL + SUM ( DISTINCT - col2 ) AS col0 FROM tab0 AS cor0
----
-156

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1639
SELECT DISTINCT + - COUNT( DISTINCT 52 ) FROM tab1 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-1639
SELECT DISTINCT + - COUNT ( DISTINCT 52 ) FROM tab1 cor0
----
-1

query I rowsort
SELECT + 25 * - - 71 FROM tab2 AS cor0 WHERE NOT - col1 / + 17 IS NOT NULL
----

query I rowsort
SELECT ALL - col0 * col1 * + col0 + + col0 FROM tab2 AS cor0
----
-107870
-315328
-376800

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( + - col1 ) col2 FROM tab0 AS cor0
----
-1
-21
-81

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1644
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab0 WHERE + - col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1644
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab0 WHERE + - col2 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1645
SELECT SUM( ALL + 38 ) AS col1 FROM tab0
----
114

skipif mysql # not compatible
query I rowsort label-1645
SELECT SUM ( ALL + 38 ) AS col1 FROM tab0
----
114

query I rowsort
SELECT ALL + col0 + - + col0 AS col0 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query II rowsort label-1647
SELECT 98 col0, + col2 DIV - + 34 FROM tab1
----
98
-1
98
-2
98
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1647
SELECT 98 col0, + col2 / - + 34 FROM tab1
----
98
-1
98
-2
98
-2

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - col1 >= 63 )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1651
SELECT DISTINCT - 99 + + + ( + MIN( ALL + - col0 ) ) FROM tab2
----
-174

skipif mysql # not compatible
query I rowsort label-1651
SELECT DISTINCT - 99 + + + ( + MIN ( ALL + - col0 ) ) FROM tab2
----
-174

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1652
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + col0 AND CAST( - 81 AS SIGNED ) + + col0
----

skipif mysql # not compatible
query III rowsort label-1652
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + col0 AND CAST ( - 81 AS INTEGER ) + + col0
----

query I rowsort
SELECT 44 + + + col2 FROM tab2 AS cor0
----
102
67
84

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

skipif mysql # not compatible
query I rowsort label-1654
SELECT 33 + - COUNT ( * ) / 22 FROM tab0 AS cor0
----
33

query I rowsort
SELECT - 17 + + + ( - col2 ) FROM tab1 AS cor0
----
-113
-76
-85

query I rowsort
SELECT - 84 + + col1 AS col2 FROM tab2 AS cor0
----
-17
-33
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-1657
SELECT ( 14 ) + - + COUNT( DISTINCT + col0 ) * COUNT( * ) AS col0 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-1657
SELECT ( 14 ) + - + COUNT ( DISTINCT + col0 ) * COUNT ( * ) AS col0 FROM tab1
----
5

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

skipif mysql # not compatible
query I rowsort label-1658
SELECT SUM ( + ( col1 ) ) FROM tab2
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-1659
SELECT ALL MAX( DISTINCT - col0 ) + + 72 FROM tab1
----
21

skipif mysql # not compatible
query I rowsort label-1659
SELECT ALL MAX ( DISTINCT - col0 ) + + 72 FROM tab1
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1660
SELECT DISTINCT CAST( - col2 AS SIGNED ) + - col2 FROM tab0
----
-198
-20
-94

skipif mysql # not compatible
query I rowsort label-1660
SELECT DISTINCT CAST ( - col2 AS INTEGER ) + - col2 FROM tab0
----
-198
-20
-94

query I rowsort
SELECT - 52 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 9500afe5646d620d5e8943351a29d082

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1663
SELECT - - COUNT( * ) * 69 FROM tab2 AS cor0
----
207

skipif mysql # not compatible
query I rowsort label-1663
SELECT - - COUNT ( * ) * 69 FROM tab2 AS cor0
----
207

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1665
SELECT DISTINCT + col0, + 56 DIV + col1 AS col1 FROM tab1 AS cor0
----
51
4
85
11
91
1

skipif mysql # not compatible
query II rowsort label-1665
SELECT DISTINCT + col0, + 56 / + col1 AS col1 FROM tab1 AS cor0
----
51
4
85
11
91
1

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1667
SELECT DISTINCT + SUM( DISTINCT - col2 ) col1, - 11 AS col1 FROM tab1 AS cor0
----
-223
-11

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1667
SELECT DISTINCT + SUM ( DISTINCT - col2 ) col1, - 11 AS col1 FROM tab1 AS cor0
----
-223
-11

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

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

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

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

query I rowsort
SELECT DISTINCT + col2 * - + col2 AS col0 FROM tab2
----
-1600
-3364
-529

query I rowsort
SELECT ALL - + 19 + + 37 * + - ( col1 ) FROM tab2 WHERE - 67 NOT IN ( 88, col1, 16 )
----
-1906
-2498
-2868

query I rowsort
SELECT DISTINCT col2 * + 9 * col2 AS col1 FROM tab2
----
14400
30276
4761

query I rowsort
SELECT DISTINCT 47 * + col1 AS col0 FROM tab2
----
2397
3149
3619

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1675
SELECT DISTINCT + COUNT( DISTINCT col2 ) * + MIN( - col0 ) FROM tab0 AS cor0
----
-291

skipif mysql # not compatible
query I rowsort label-1675
SELECT DISTINCT + COUNT ( DISTINCT col2 ) * + MIN ( - col0 ) FROM tab0 AS cor0
----
-291

query I rowsort
SELECT - ( + 21 ) * + + col1 + col1 FROM tab2 AS cor0
----
-1020
-1340
-1540

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

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

skipif mysql # not compatible
query I rowsort label-1678
SELECT + ( - COUNT ( * ) ) + - COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-18

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1680
SELECT ALL + + AVG ( DISTINCT CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-1680
SELECT ALL + + AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1682
SELECT 24 DIV col2 + - ( - 18 ) + + ( + col2 ) * 58 + + col1 AS col2, col2 DIV + col2 AS col0 FROM tab1 AS cor0
----
3445
1
4009
1
5600
1

skipif mysql # not compatible
query II rowsort label-1682
SELECT 24 / col2 + - ( - 18 ) + + ( + col2 ) * 58 + + col1 AS col2, col2 / + col2 AS col0 FROM tab1 AS cor0
----
3445
1
4009
1
5600
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1683
SELECT DISTINCT - 34 * + SUM( ALL + col0 ) AS col0 FROM tab1 AS cor0
----
-7718

skipif mysql # not compatible
query I rowsort label-1683
SELECT DISTINCT - 34 * + SUM ( ALL + col0 ) AS col0 FROM tab1 AS cor0
----
-7718

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1685
SELECT 62 + 88 + - COUNT( * ) AS col0, COUNT( * ) * + COUNT( * ) * COUNT( * ) + - + COUNT( * ) AS col0 FROM tab2 AS cor0
----
147
24

skipif mysql # not compatible
query II rowsort label-1685
SELECT 62 + 88 + - COUNT ( * ) AS col0, COUNT ( * ) * + COUNT ( * ) * COUNT ( * ) + - + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
147
24

query I rowsort
SELECT col0 + + col0 * + col1 + 72 + - col1 * 50 * - col2 * - - col2 FROM tab0
----
106986
490316
8947752

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1687
SELECT DISTINCT CAST( + col0 AS SIGNED ) * - 30 * - 68 * + 14 - CAST( col2 AS SIGNED ) - + 83 DIV + + col0 col1 FROM tab2
----
1313736
1827799
2141941

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1687
SELECT DISTINCT CAST ( + col0 AS INTEGER ) * - 30 * - 68 * + 14 - CAST ( col2 AS INTEGER ) - + 83 / + + col0 col1 FROM tab2
----
1313736
1827799
2141941

query I rowsort
SELECT DISTINCT + col1 * ( + - col2 ) FROM tab1
----
-1344
-295
-3196

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col0, col1 * + + 9 AS col0 FROM tab2
----
-51
459
-67
603
-77
693

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1692
SELECT - CAST( + CAST( 81 AS SIGNED ) AS SIGNED ), SUM( + col2 ) AS col0 FROM tab0
----
-81
156

skipif mysql # not compatible
query II rowsort label-1692
SELECT - CAST ( + CAST ( 81 AS INTEGER ) AS INTEGER ), SUM ( + col2 ) AS col0 FROM tab0
----
-81
156

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1693
SELECT ALL - 55, CAST( + ( + col0 ) AS SIGNED ) FROM tab1 AS cor0 WHERE NULL >= + col2
----

skipif mysql # not compatible
query II rowsort label-1693
SELECT ALL - 55, CAST ( + ( + col0 ) AS INTEGER ) FROM tab1 AS cor0 WHERE NULL >= + col2
----

query I rowsort
SELECT + + ( + 9 ) * col1 FROM tab1 AS cor0
----
126
423
45

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 6 BETWEEN col1 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

query II rowsort
SELECT - col1 * + col0, - col1 AS col2 FROM tab1
----
-425
-5
-4277
-47
-714
-14

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

query I rowsort
SELECT ALL col2 + 36 + + col2 FROM tab2 AS cor0
----
116
152
82

query I rowsort
SELECT ALL col0 * - ( - - 15 ) + - col0 AS col2 FROM tab2
----
-1024
-1200
-736

query I rowsort
SELECT + - col1 AS col1 FROM tab2 WHERE NOT NULL IS NULL AND NOT ( + col0 / col1 - - + 66 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1702
SELECT + 97 + + + COUNT( * ) AS col0 FROM tab2
----
100

skipif mysql # not compatible
query I rowsort label-1702
SELECT + 97 + + + COUNT ( * ) AS col0 FROM tab2
----
100

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1705
SELECT DISTINCT - + col1 * CAST( - - 86 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-1806
-6966
-86

skipif mysql # not compatible
query I rowsort label-1705
SELECT DISTINCT - + col1 * CAST ( - - 86 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-1806
-6966
-86

query I rowsort
SELECT DISTINCT + - col1 * + + col2 * - col0 + col2 AS col0 FROM tab2 AS cor0 WHERE ( NOT - 44 * + + col1 + - 29 / - col0 + - 46 IS NOT NULL )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1708
SELECT - MIN( DISTINCT - 0 ) FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-1708
SELECT - MIN ( DISTINCT - 0 ) FROM tab2 cor0
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 * col0 * 80 * col2 IS NULL
----

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

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

query I rowsort
SELECT ALL + ( - col1 ) + - 47 * + 26 * 59 FROM tab0
----
-72099
-72119
-72179

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1712
SELECT ( + + CAST( - col1 AS SIGNED ) ) AS col0 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-1712
SELECT ( + + CAST ( - col1 AS INTEGER ) ) AS col0 FROM tab2
----
-51
-67
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 43 AS col1, + col2 + - col1 col1 FROM tab1
----
43
21
43
54
43
82

query I rowsort
SELECT DISTINCT - col0 + - 75 + + col2 * - col1 * col2 + - col0 * + col0 FROM tab2
----
-127435
-231163
-29216

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1715
SELECT + CAST ( NULL AS INTEGER ), col0 col0 FROM tab2
----
NULL
46
NULL
64
NULL
75

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

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

query I rowsort
SELECT DISTINCT 82 + - ( 48 ) * - 31 AS col2 FROM tab2
----
1570

query I rowsort
SELECT + col0 * col1 * - - 24 - + col1 + + col0 FROM tab0
----
2424
29094
43914

onlyif mysql # aggregate syntax: 
query I rowsort label-1719
SELECT ALL - COUNT( * ) AS col1 FROM tab2 WHERE NOT - col2 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-1719
SELECT ALL - COUNT ( * ) AS col1 FROM tab2 WHERE NOT - col2 <= NULL
----
0

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

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

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

query I rowsort
SELECT ALL col0 * col1 * + col1 * + col2 AS col0 FROM tab1
----
125375
13669292
959616

onlyif mysql # aggregate syntax: 
query I rowsort label-1723
SELECT - - SUM( - - 95 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
855

skipif mysql # not compatible
query I rowsort label-1723
SELECT - - SUM ( - - 95 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
855

onlyif mysql # aggregate syntax: 
query I rowsort label-1724
SELECT + MAX( + 20 ) FROM tab0
----
20

skipif mysql # not compatible
query I rowsort label-1724
SELECT + MAX ( + 20 ) FROM tab0
----
20

query III rowsort
SELECT ALL * FROM tab0 WHERE + col1 + + 63 - - col0 * + - col1 = col1 * - - col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1726
SELECT DISTINCT - + CAST( ( COUNT( * ) ) AS SIGNED ) * COUNT( ALL + col2 ) col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1726
SELECT DISTINCT - + CAST ( ( COUNT ( * ) ) AS INTEGER ) * COUNT ( ALL + col2 ) col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-9

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

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

query I rowsort
SELECT DISTINCT col1 + - - col2 AS col2 FROM tab2
----
117
125
74

onlyif mysql # aggregate syntax: 
query I rowsort label-1729
SELECT DISTINCT SUM( 68 ) FROM tab1
----
204

skipif mysql # not compatible
query I rowsort label-1729
SELECT DISTINCT SUM ( 68 ) FROM tab1
----
204

query I rowsort
SELECT DISTINCT - + 66 AS col2 FROM tab0 WHERE NOT + ( + col1 ) + - col1 + col2 * - 62 <= NULL
----

query II rowsort
SELECT + col2, - col2 FROM tab2 WHERE NOT NULL = NULL
----

query I rowsort
SELECT + - col2 AS col1 FROM tab1 WHERE NOT NULL < NULL
----

query I rowsort
SELECT DISTINCT - 23 * 91 AS col0 FROM tab1 AS cor0
----
-2093

query I rowsort
SELECT + 52 + - + col0 * + col2 FROM tab2 AS cor0
----
-1006
-2508
-4298

onlyif mysql # aggregate syntax: 
query I rowsort label-1735
SELECT ALL MIN( - 60 ) + - 96 FROM tab2
----
-156

skipif mysql # not compatible
query I rowsort label-1735
SELECT ALL MIN ( - 60 ) + - 96 FROM tab2
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-1736
SELECT + - COUNT( * ) AS col0 FROM tab0 WHERE col1 <= ( - 75 ) * 11 + 0 + + - 33
----
0

skipif mysql # not compatible
query I rowsort label-1736
SELECT + - COUNT ( * ) AS col0 FROM tab0 WHERE col1 <= ( - 75 ) * 11 + 0 + + - 33
----
0

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

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

query I rowsort
SELECT - 29 - - - col0 AS col2 FROM tab0 cor0
----
-116
-126
-44

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1739
SELECT CAST( NULL AS DECIMAL ) - - 31 + - col0 * + col1 * + CAST( + + 94 AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1739
SELECT CAST ( NULL AS REAL ) - - 31 + - col0 * + col1 * + CAST ( + + 94 AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 2 + + col2 - col0 AS col1 FROM tab1 cor0
----
-25
-28
43

onlyif mysql # DIV for integer division: 
query I rowsort label-1741
SELECT + col1 + - + col1 DIV 41 AS col2 FROM tab1 cor0
----
14
46
5

skipif mysql # not compatible
query I rowsort label-1741
SELECT + col1 + - + col1 / 41 AS col2 FROM tab1 cor0
----
14
46
5

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1742
SELECT CAST( NULL AS DECIMAL ) - - - 10 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1742
SELECT CAST ( NULL AS REAL ) - - - 10 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE col1 - - - 61 <= + + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1745
SELECT SUM( DISTINCT + - 29 ), + 67 * MAX( DISTINCT + col1 ) AS col2 FROM tab0
----
-29
5427

skipif mysql # not compatible
query II rowsort label-1745
SELECT SUM ( DISTINCT + - 29 ), + 67 * MAX ( DISTINCT + col1 ) AS col2 FROM tab0
----
-29
5427

onlyif mysql # aggregate syntax: 
query I rowsort label-1746
SELECT + 85 * - + 78 + + SUM( - - col0 ) FROM tab2 WHERE NULL = col0 * - - ( - 12 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1746
SELECT + 85 * - + 78 + + SUM ( - - col0 ) FROM tab2 WHERE NULL = col0 * - - ( - 12 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1747
SELECT ALL + + col1 * CAST( + - col1 AS SIGNED ) * + col1 AS col1 FROM tab0 AS cor0
----
-1
-531441
-9261

skipif mysql # not compatible
query I rowsort label-1747
SELECT ALL + + col1 * CAST ( + - col1 AS INTEGER ) * + col1 AS col1 FROM tab0 AS cor0
----
-1
-531441
-9261

query I rowsort
SELECT - - 74 AS col1 FROM tab1 WHERE NOT 81 NOT BETWEEN NULL AND + 40
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * 37 col0 FROM tab0
----
2997
37
777

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

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

query I rowsort
SELECT DISTINCT + + ( + + col2 ) FROM tab0 AS cor0
----
10
47
99

query II rowsort
SELECT ALL + 18 AS col1, + col0 * 16 AS col2 FROM tab0 AS cor0
----
18
1392
18
1552
18
240

query II rowsort
SELECT 83 AS col2, col0 * - + col2 FROM tab1 AS cor0
----
83
-4896
83
-5015
83
-6188

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col0 IN ( + 60 - + - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1756
SELECT DISTINCT ( - 38 ) DIV + col2 AS col0, col2 * - + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-3
NULL
0
NULL

skipif mysql # not compatible
query II rowsort label-1756
SELECT DISTINCT ( - 38 ) / + col2 AS col0, col2 * - + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-3
NULL
0
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1758
SELECT + + COUNT( ALL - 10 ) * - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT + col0 IS NULL
----
-9

skipif mysql # not compatible
query I rowsort label-1758
SELECT + + COUNT ( ALL - 10 ) * - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT + col0 IS NULL
----
-9

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1761
SELECT DISTINCT CAST( + 68 AS SIGNED ) FROM tab1
----
68

skipif mysql # not compatible
query I rowsort label-1761
SELECT DISTINCT CAST ( + 68 AS INTEGER ) FROM tab1
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-1762
SELECT - 84 * + + COUNT( * ) FROM tab1
----
-252

skipif mysql # not compatible
query I rowsort label-1762
SELECT - 84 * + + COUNT ( * ) FROM tab1
----
-252

query I rowsort
SELECT + 27 FROM tab1 WHERE NOT - col0 NOT IN ( + 8, col0, col2 + - ( + ( + 23 ) ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 50 * 53 * + 7 col0 FROM tab2
----
-18550
-18550
-18550

query I rowsort
SELECT DISTINCT 38 * - ( col0 ) AS col1 FROM tab0
----
-3306
-3686
-570

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 68 + - col2 col1 FROM tab1
----
-127
-136
-164

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

query I rowsort
SELECT DISTINCT 56 AS col2 FROM tab1 cor0
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1770
SELECT - - CAST( + + col2 AS SIGNED ) FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-1770
SELECT - - CAST ( + + col2 AS INTEGER ) FROM tab0 AS cor0
----
10
47
99

onlyif mysql # DIV for integer division: 
query I rowsort label-1771
SELECT 92 DIV - col1 FROM tab1 cor0
----
-1
-18
-6

skipif mysql # not compatible
query I rowsort label-1771
SELECT 92 / - col1 FROM tab1 cor0
----
-1
-18
-6

query I rowsort
SELECT - 52 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-52
-52
-52

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1774
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab0 cor0 WHERE NOT + ( + col2 ) IN ( - col1, 65, + 48 )
----
3

skipif mysql # not compatible
query I rowsort label-1774
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab0 cor0 WHERE NOT + ( + col2 ) IN ( - col1, 65, + 48 )
----
3

query I rowsort
SELECT - 31 - + col0 * - 94 FROM tab2 AS cor0
----
4293
5985
7019

onlyif mysql # aggregate syntax: 
query I rowsort label-1776
SELECT + COUNT( * ) - - - COUNT( * ) + - MIN( - 39 ) FROM tab0
----
39

skipif mysql # not compatible
query I rowsort label-1776
SELECT + COUNT ( * ) - - - COUNT ( * ) + - MIN ( - 39 ) FROM tab0
----
39

onlyif mysql # aggregate syntax: 
query II rowsort label-1777
SELECT ALL + MIN( ALL - col2 ) + + ( - 35 ) AS col1, MAX( + 55 ) col0 FROM tab2
----
-93
55

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1777
SELECT ALL + MIN ( ALL - col2 ) + + ( - 35 ) AS col1, MAX ( + 55 ) col0 FROM tab2
----
-93
55

onlyif mysql # DIV for integer division: 
query I rowsort label-1778
SELECT col2 DIV + ( - + 41 ) - col2 FROM tab0
----
-10
-101
-48

skipif mysql # not compatible
query I rowsort label-1778
SELECT col2 / + ( - + 41 ) - col2 FROM tab0
----
-10
-101
-48

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1780
SELECT COUNT( * ), COUNT( * ) FROM tab2 WHERE - col0 <> - col2 AND NOT col1 IS NULL
----
3
3

skipif mysql # not compatible
query II rowsort label-1780
SELECT COUNT ( * ), COUNT ( * ) FROM tab2 WHERE - col0 <> - col2 AND NOT col1 IS NULL
----
3
3

onlyif mysql # DIV for integer division: 
query II rowsort label-1781
SELECT DISTINCT + col1 AS col0, - 73 * col0 DIV col2 FROM tab1
----
14
-38
47
-97
5
-105

skipif mysql # not compatible
query II rowsort label-1781
SELECT DISTINCT + col1 AS col0, - 73 * col0 / col2 FROM tab1
----
14
-38
47
-97
5
-105

onlyif mysql # aggregate syntax: 
query II rowsort label-1782
SELECT COUNT( - 25 ) AS col2, 0 FROM tab0 WHERE NOT + 30 + + 33 IS NULL
----
3
0

skipif mysql # not compatible
query II rowsort label-1782
SELECT COUNT ( - 25 ) AS col2, 0 FROM tab0 WHERE NOT + 30 + + 33 IS NULL
----
3
0

query I rowsort
SELECT DISTINCT 29 * - - col0 AS col0 FROM tab2
----
1334
1856
2175

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 15 NOT BETWEEN NULL AND + col1
----
51
14
96
85
5
59

onlyif mysql # aggregate syntax: 
query I rowsort label-1785
SELECT COUNT( * ) * - 5 FROM tab1 cor0 WHERE NOT ( NOT - ( - ( 80 ) ) IS NOT NULL )
----
-15

skipif mysql # not compatible
query I rowsort label-1785
SELECT COUNT ( * ) * - 5 FROM tab1 cor0 WHERE NOT ( NOT - ( - ( 80 ) ) IS NOT NULL )
----
-15

query II rowsort
SELECT + - col2 * + + 47, + col0 AS col1 FROM tab2 AS cor0
----
-1081
46
-1880
64
-2726
75

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

skipif mysql # not compatible
query I rowsort label-1787
SELECT - COUNT ( * ) * - 53 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1788
SELECT - COUNT( + 35 ) col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1788
SELECT - COUNT ( + 35 ) col1 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1789
SELECT DISTINCT COUNT( * ) DIV + - 79 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1789
SELECT DISTINCT COUNT ( * ) / + - 79 AS col1 FROM tab1
----
0

query I rowsort
SELECT + 50 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1791
SELECT ALL COUNT( * ) DIV - + MAX( ALL + col1 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-1791
SELECT ALL COUNT ( * ) / - + MAX ( ALL + col1 ) FROM tab0
----
0

query II rowsort
SELECT - ( - + col2 ) AS col1, - col2 FROM tab2 AS cor0
----
23
-23
40
-40
58
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-1793
SELECT DISTINCT ( ( + ( - COUNT( * ) ) ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1793
SELECT DISTINCT ( ( + ( - COUNT ( * ) ) ) ) FROM tab2 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 37 col0 FROM tab1 cor0
----
-37
-37
-37

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 82 IS NULL
----

query I rowsort
SELECT - + 38 AS col2 FROM tab0 cor0
----
-38
-38
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-1797
SELECT ALL MAX( + col2 ) AS col0 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-1797
SELECT ALL MAX ( + col2 ) AS col0 FROM tab1 AS cor0
----
96

query II rowsort
SELECT + col2 * col0 AS col0, col0 * - + 84 + + - col2 AS col1 FROM tab2 AS cor0
----
1058
-3887
2560
-5416
4350
-6358

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 BETWEEN NULL AND + col2
----
87
21
10

query I rowsort
SELECT ALL + 31 FROM tab1 WHERE NULL >= NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-1801
SELECT - col1 + + + ( - 88 ) DIV + col0, + col1 FROM tab2
----
-52
51
-68
67
-78
77

skipif mysql # not compatible
query II rowsort label-1801
SELECT - col1 + + + ( - 88 ) / + col0, + col1 FROM tab2
----
-52
51
-68
67
-78
77

onlyif mysql # DIV for integer division: 
query I rowsort label-1802
SELECT DISTINCT + col1 DIV + - col2 FROM tab2
----
-1
-2

skipif mysql # not compatible
query I rowsort label-1802
SELECT DISTINCT + col1 / + - col2 FROM tab2
----
-1
-2

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1803
SELECT DISTINCT * FROM tab1 WHERE NOT + col2 / - + col1 / 23 + + CAST( - col0 AS DECIMAL ) - 77 BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-1803
SELECT DISTINCT * FROM tab1 WHERE NOT + col2 / - + col1 / 23 + + CAST ( - col0 AS REAL ) - 77 BETWEEN NULL AND NULL
----

query II rowsort
SELECT ALL - col2 AS col1, - ( + col2 ) AS col0 FROM tab0 AS cor0
----
-10
-10
-47
-47
-99
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-1805
SELECT + - MIN( DISTINCT - col1 ) AS col1 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-1805
SELECT + - MIN ( DISTINCT - col1 ) AS col1 FROM tab0 AS cor0
----
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - - 48 + - col2 col1 FROM tab1 AS cor0
----
181
2188
576

query I rowsort
SELECT + - 87 FROM tab2 cor0 WHERE ( NULL ) >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1808
SELECT 91 * + col2 * - 37 col2, + CAST( - - col2 AS SIGNED ) col2 FROM tab2 cor0
----
-134680
40
-195286
58
-77441
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1808
SELECT 91 * + col2 * - 37 col2, + CAST ( - - col2 AS INTEGER ) col2 FROM tab2 cor0
----
-134680
40
-195286
58
-77441
23

query I rowsort
SELECT ( + 66 ) + col2 * 37 FROM tab2
----
1546
2212
917

query I rowsort
SELECT DISTINCT 1 * + col1 FROM tab2
----
51
67
77

onlyif mysql # DIV for integer division: 
query I rowsort label-1811
SELECT DISTINCT - col2 DIV 34 FROM tab1
----
-1
-2

skipif mysql # not compatible
query I rowsort label-1811
SELECT DISTINCT - col2 / 34 FROM tab1
----
-1
-2

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL <> ( + col1 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1813
SELECT ALL COUNT( * ) DIV + 69 AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-1813
SELECT ALL COUNT ( * ) / + 69 AS col2 FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1814
SELECT + 81 DIV - ( col0 ) FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1814
SELECT + 81 / - ( col0 ) FROM tab1
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1815
SELECT ALL - COUNT( * ) + + 3 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-1815
SELECT ALL - COUNT ( * ) + + 3 FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1816
SELECT - col1 DIV + 76 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1816
SELECT - col1 / + 76 FROM tab1
----
0
0
0

query I rowsort
SELECT - 81 * + col0 AS col0 FROM tab2
----
-3726
-5184
-6075

query I rowsort
SELECT - col0 * - 54 AS col2 FROM tab2
----
2484
3456
4050

query I rowsort
SELECT + col1 * - ( + 31 ) FROM tab0
----
-2511
-31
-651

query I rowsort
SELECT + 71 * col1 FROM tab1
----
3337
355
994

query I rowsort
SELECT + 72 + col2 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + 77 * + 54 FROM tab1
----
4158
4158
4158

query I rowsort
SELECT ALL + col0 AS col1 FROM tab1 WHERE col2 >= ( NULL )
----

query I rowsort
SELECT + col2 * - 43 + + 17 FROM tab2
----
-1703
-2477
-972

query I rowsort
SELECT - col2 * + 46 + + col2 AS col2 FROM tab1
----
-2655
-3060
-4320

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1826
SELECT + 42 * CAST( NULL AS DECIMAL ) + COUNT( * ) AS col2 FROM tab1 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1826
SELECT + 42 * CAST ( NULL AS REAL ) + COUNT ( * ) AS col2 FROM tab1 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1827
SELECT ALL - col2 + + col0 DIV col1 AS col1 FROM tab0
----
-2
-47
-6

skipif mysql # not compatible
query I rowsort label-1827
SELECT ALL - col2 + + col0 / col1 AS col1 FROM tab0
----
-2
-47
-6

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1828
SELECT ( - col1 ) * - CAST( NULL AS DECIMAL ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1828
SELECT ( - col1 ) * - CAST ( NULL AS REAL ) AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - ( + 30 ) AS col0 FROM tab1
----
-30
-30
-30

query I rowsort
SELECT ALL col2 FROM tab0 WHERE NOT col1 <= + col2 * ( col1 )
----

query I rowsort
SELECT col1 + - 86 FROM tab1
----
-39
-72
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-1832
SELECT ALL + ( MIN( ALL col1 ) ) FROM tab0 WHERE NOT ( NULL ) >= col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1832
SELECT ALL + ( MIN ( ALL col1 ) ) FROM tab0 WHERE NOT ( NULL ) >= col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1833
SELECT + COUNT( - col1 ) + 16 FROM tab1
----
19

skipif mysql # not compatible
query I rowsort label-1833
SELECT + COUNT ( - col1 ) + 16 FROM tab1
----
19

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL >= ( + ( 4 ) )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1835
SELECT DISTINCT * FROM tab1 WHERE NOT CAST( 74 AS DECIMAL ) - - 34 BETWEEN + ( 48 ) * - 38 AND - col2 + - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-1835
SELECT DISTINCT * FROM tab1 WHERE NOT CAST ( 74 AS REAL ) - - 34 BETWEEN + ( 48 ) * - 38 AND - col2 + - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1836
SELECT + 58 DIV - MAX( + 83 ) + + COUNT( * ) col0 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1836
SELECT + 58 / - MAX ( + 83 ) + + COUNT ( * ) col0 FROM tab0
----
3

query III rowsort
SELECT ALL * FROM tab1 WHERE 79 NOT BETWEEN 11 * - 90 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1838
SELECT * FROM tab0 AS cor0 WHERE NOT col2 + CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-1838
SELECT * FROM tab0 AS cor0 WHERE NOT col2 + CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col2 AS col0 FROM tab1 cor0 WHERE + col2 * - 81 IS NULL
----

query I rowsort
SELECT ALL + 21 AS col2 FROM tab2 cor0
----
21
21
21

query I rowsort
SELECT + 80 FROM tab0 WHERE NOT ( col0 ) NOT BETWEEN col2 AND + col0 + + col1
----
80

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1842
SELECT CAST( + CAST( NULL AS SIGNED ) AS DECIMAL ) + 49 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1842
SELECT CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) + 49 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1843
SELECT + 6 + + COUNT( * ) AS col2 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-1843
SELECT + 6 + + COUNT ( * ) AS col2 FROM tab2
----
9

query I rowsort
SELECT + 45 * col1 + col0 * - col0 AS col1 FROM tab2 AS cor0
----
-2610
-631
179

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1845
SELECT DISTINCT - + CAST( + col0 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-1845
SELECT DISTINCT - + CAST ( + col0 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-15
-87
-97

query I rowsort
SELECT ALL 70 FROM tab0 AS cor0 WHERE + col1 + - 64 IS NOT NULL
----
70
70
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 6 + col1 col1 FROM tab2 AS cor0
----
57
73
83

onlyif mysql # aggregate syntax: 
query I rowsort label-1848
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-1848
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL <= NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1849
SELECT + 18 * COUNT( * ) + - ( + 50 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL >= col0
----
-50

skipif mysql # not compatible
query I rowsort label-1849
SELECT + 18 * COUNT ( * ) + - ( + 50 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL >= col0
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-1850
SELECT MIN( + 30 ) FROM tab0 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-1850
SELECT MIN ( + 30 ) FROM tab0 AS cor0
----
30

query I rowsort
SELECT + 40 FROM tab0 AS cor0 WHERE NULL <> col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1852
SELECT ALL COUNT( * ) FROM tab2 AS cor0 WHERE NULL NOT IN ( + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-1852
SELECT ALL COUNT ( * ) FROM tab2 AS cor0 WHERE NULL NOT IN ( + col1 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1853
SELECT - COUNT( * ) * - - 51 AS col2 FROM tab0
----
-153

skipif mysql # not compatible
query I rowsort label-1853
SELECT - COUNT ( * ) * - - 51 AS col2 FROM tab0
----
-153

query I rowsort
SELECT DISTINCT - col1 + + + 2 AS col2 FROM tab2
----
-49
-65
-75

query I rowsort
SELECT + ( 6 ) AS col0 FROM tab1
----
6
6
6

query I rowsort
SELECT + 97 * col2 AS col0 FROM tab0
----
4559
9603
970

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1857
SELECT ALL + CAST( - + 80 AS SIGNED ) FROM tab0
----
-80
-80
-80

skipif mysql # not compatible
query I rowsort label-1857
SELECT ALL + CAST ( - + 80 AS INTEGER ) FROM tab0
----
-80
-80
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + - + col2 col1 FROM tab0 AS cor0
----
-198
-20
-94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 83 + col1 col2 FROM tab1 AS cor0
----
130
88
97

query I rowsort
SELECT + 71 * - col1 + - col2 FROM tab2 cor0
----
-3644
-4815
-5507

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + ( + 11 ) BETWEEN NULL AND - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1862
SELECT DISTINCT - col0 * 20 DIV 29 FROM tab1 AS cor0
----
-35
-58
-62

skipif mysql # not compatible
query I rowsort label-1862
SELECT DISTINCT - col0 * 20 / 29 FROM tab1 AS cor0
----
-35
-58
-62

query I rowsort
SELECT ALL + col0 * 35 FROM tab0 WHERE NOT + col1 < col0 + 24
----
525

onlyif mysql # aggregate syntax: 
query I rowsort label-1864
SELECT - COUNT( * ) / - MAX( - col2 * - col1 ) FROM tab1 WHERE ( - col0 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1864
SELECT - COUNT ( * ) / - MAX ( - col2 * - col1 ) FROM tab1 WHERE ( - col0 ) IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1865
SELECT ALL - 2 * MAX( ALL col0 ) + 71 AS col2 FROM tab2 AS cor0
----
-79

skipif mysql # not compatible
query I rowsort label-1865
SELECT ALL - 2 * MAX ( ALL col0 ) + 71 AS col2 FROM tab2 AS cor0
----
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col0 FROM tab1 AS cor0 WHERE NULL >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1867
SELECT ALL + COUNT( * ) - - 54 FROM tab2 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-1867
SELECT ALL + COUNT ( * ) - - 54 FROM tab2 AS cor0
----
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 6 - - 57 col0 FROM tab0 AS cor0
----
63
63
63

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - col1 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1870
SELECT 20 AS col2 FROM tab1 AS cor0 WHERE NOT ( - col0 * col2 ) BETWEEN CAST( + col0 AS SIGNED ) AND - col2 * + 43 + + col0
----
20
20
20

skipif mysql # not compatible
query I rowsort label-1870
SELECT 20 AS col2 FROM tab1 AS cor0 WHERE NOT ( - col0 * col2 ) BETWEEN CAST ( + col0 AS INTEGER ) AND - col2 * + 43 + + col0
----
20
20
20

query I rowsort
SELECT col1 * col0 + + - 21 FROM tab2 cor0
----
2325
4907
5004

onlyif mysql # aggregate syntax: 
query I rowsort label-1872
SELECT ALL + MAX( ALL - 65 ) AS col0 FROM tab0 cor0 WHERE NOT + col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1872
SELECT ALL + MAX ( ALL - 65 ) AS col0 FROM tab0 cor0 WHERE NOT + col2 IS NOT NULL
----
NULL

query I rowsort
SELECT ALL - ( 10 ) AS col2 FROM tab0 AS cor0
----
-10
-10
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-1874
SELECT + + COUNT( 3 ) * + SUM( col0 ) AS col0 FROM tab2 AS cor0
----
555

skipif mysql # not compatible
query I rowsort label-1874
SELECT + + COUNT ( 3 ) * + SUM ( col0 ) AS col0 FROM tab2 AS cor0
----
555

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1875
SELECT 22 * CAST( - + col1 AS SIGNED ) FROM tab0 AS cor0
----
-1782
-22
-462

skipif mysql # not compatible
query I rowsort label-1875
SELECT 22 * CAST ( - + col1 AS INTEGER ) FROM tab0 AS cor0
----
-1782
-22
-462

onlyif mysql # DIV for integer division: 
query I rowsort label-1876
SELECT - col2 DIV + - 30 - - - 17 FROM tab1 AS cor0
----
-14
-15
-16

skipif mysql # not compatible
query I rowsort label-1876
SELECT - col2 / + - 30 - - - 17 FROM tab1 AS cor0
----
-14
-15
-16

query III rowsort
SELECT * FROM tab2 WHERE NOT + + col0 * col2 * 29 - + col1 + + 74 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL IN ( - 28 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1879
SELECT + COUNT( * ) DIV + MAX( 65 ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1879
SELECT + COUNT ( * ) / + MAX ( 65 ) AS col0 FROM tab1
----
0

query I rowsort
SELECT DISTINCT - 91 AS col2 FROM tab0 WHERE NOT col2 BETWEEN - ( 8 ) / 45 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1881
SELECT DISTINCT ( - MIN( ALL - col2 ) ) FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-1881
SELECT DISTINCT ( - MIN ( ALL - col2 ) ) FROM tab0
----
99

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 < ( - - 25 * + col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - col0 - + col0 - 71 ) >= + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1884
SELECT + SUM( - - col0 ) AS col0 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-1884
SELECT + SUM ( - - col0 ) AS col0 FROM tab0 AS cor0
----
199

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 col0 FROM tab1 cor0 WHERE NOT NULL BETWEEN col1 + + col1 + col2 * + col1 * col2 AND ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1886
SELECT CAST( + COUNT( * ) AS SIGNED ) col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1886
SELECT CAST ( + COUNT ( * ) AS INTEGER ) col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT + + 25 * - 96 * - - col1 FROM tab2 AS cor0
----
-122400
-160800
-184800

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1, + col2 - 88 col2 FROM tab1 AS cor0
----
-14
8
-47
-20
-5
-29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * + - col2 col0 FROM tab1 AS cor0
----
-4896
-5015
-6188

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col2 ) <= - col2
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1891
SELECT ALL CAST( NULL AS DECIMAL ) * + 99 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1891
SELECT ALL CAST ( NULL AS REAL ) * + 99 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 7 * + 93 * - + col2 + 64 AS col0 FROM tab0 cor0
----
30661
64513
6574

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1893
SELECT DISTINCT - col1 + + 90 - + + CAST( col2 AS SIGNED ) * 81 FROM tab0 AS cor0
----
-3798
-741
-7930

skipif mysql # not compatible
query I rowsort label-1893
SELECT DISTINCT - col1 + + 90 - + + CAST ( col2 AS INTEGER ) * 81 FROM tab0 AS cor0
----
-3798
-741
-7930

query I rowsort
SELECT ALL + ( - col0 ) * + col2 * - + col1 * + col1 FROM tab0 AS cor0
----
383670
4625505
9603

query I rowsort
SELECT ALL + + 83 + + col2 FROM tab2 AS cor0
----
106
123
141

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1896
SELECT CAST( + - col1 AS SIGNED ) col1 FROM tab0 AS cor0
----
-1
-21
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1896
SELECT CAST ( + - col1 AS INTEGER ) col1 FROM tab0 AS cor0
----
-1
-21
-81

query I rowsort
SELECT + 21 + - 60 AS col1 FROM tab1 AS cor0
----
-39
-39
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1898
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - col0 - + + col2 + - - col1 - - 93 - - col2 * + col0 * 1 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1898
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - col0 - + + col2 + - - col1 - - 93 - - col2 * + col0 * 1 AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + col2 / - col0 FROM tab1 AS cor0 WHERE NOT - - col2 NOT BETWEEN + col2 AND NULL AND + 31 * col0 IN ( - col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1900
SELECT DISTINCT ( + col2 ) DIV 53 + - 33 + col0 FROM tab0
----
-18
54
65

skipif mysql # not compatible
query I rowsort label-1900
SELECT DISTINCT ( + col2 ) / 53 + - 33 + col0 FROM tab0
----
-18
54
65

query I rowsort
SELECT ALL 73 AS col2 FROM tab2 WHERE NULL = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1902
SELECT - 87 + - col2 * - CAST( NULL AS SIGNED ) AS col2 FROM tab0 WHERE ( + col1 / + 72 * + 15 + 17 ) = + col0 * + 80
----

skipif mysql # not compatible
query I rowsort label-1902
SELECT - 87 + - col2 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 WHERE ( + col1 / + 72 * + 15 + 17 ) = + col0 * + 80
----

query I rowsort
SELECT DISTINCT col1 * + + col2 * - col2 FROM tab1
----
-129024
-17405
-217328

onlyif mysql # aggregate syntax: 
query I rowsort label-1904
SELECT DISTINCT - COUNT( * ) * - COUNT( * ) FROM tab1, tab2 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-1904
SELECT DISTINCT - COUNT ( * ) * - COUNT ( * ) FROM tab1, tab2 AS cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1905
SELECT ALL + 19 * COUNT( * ) * - 86 FROM tab0
----
-4902

skipif mysql # not compatible
query I rowsort label-1905
SELECT ALL + 19 * COUNT ( * ) * - 86 FROM tab0
----
-4902

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL > ( + - col2 )
----

query I rowsort
SELECT - col1 * - + col2 AS col1 FROM tab0
----
210
3807
99

query I rowsort
SELECT DISTINCT - col2 - - - col1 FROM tab1
----
-110
-115
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-1909
SELECT 66 * + + MIN( ALL - + 41 ) FROM tab2
----
-2706

skipif mysql # not compatible
query I rowsort label-1909
SELECT 66 * + + MIN ( ALL - + 41 ) FROM tab2
----
-2706

query I rowsort
SELECT ALL - col1 AS col2 FROM tab1 AS cor0 WHERE NOT col0 * + col1 - - col2 - + col2 <> + col0 / 93
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 * + + ( 37 ) * 76 + - - col2 * + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1912
SELECT + CAST( NULL AS SIGNED ) * col2 / - 8 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1912
SELECT + CAST ( NULL AS INTEGER ) * col2 / - 8 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1913
SELECT ALL col1 * - CAST( NULL AS SIGNED ) * - + 61 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1913
SELECT ALL col1 * - CAST ( NULL AS INTEGER ) * - + 61 FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL - ( - col1 ), ( col2 ) FROM tab0 AS cor0 WHERE 57 = col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1915
SELECT ALL COUNT( 70 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1915
SELECT ALL COUNT ( 70 ) FROM tab2 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + ( col1 ), - 41 col0 FROM tab2 AS cor0
----
51
-41
67
-41
77
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-1917
SELECT DISTINCT - 6 * + COUNT( * ) FROM tab1 AS cor0 WHERE NOT - 45 <= ( col2 )
----
0

skipif mysql # not compatible
query I rowsort label-1917
SELECT DISTINCT - 6 * + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT - 45 <= ( col2 )
----
0

query I rowsort
SELECT DISTINCT - AVG ( + col2 ) AS col2 FROM tab1 AS cor0 WHERE ( NULL BETWEEN ( - col2 ) AND NULL )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2, - col1 col1 FROM tab2
----
-23
-51
-40
-77
-58
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1920
SELECT ALL + 42 FROM tab0 WHERE + ( col2 ) < NULL OR NOT - col2 + - - 24 / CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-1920
SELECT ALL + 42 FROM tab0 WHERE + ( col2 ) < NULL OR NOT - col2 + - - 24 / CAST ( NULL AS INTEGER ) IS NULL
----

query II rowsort
SELECT DISTINCT col1, + col1 + + 82 FROM tab0
----
1
83
21
103
81
163

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1922
SELECT col2 * - CAST( NULL AS DECIMAL ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1922
SELECT col2 * - CAST ( NULL AS REAL ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1923
SELECT - 92 DIV + - col1 AS col2 FROM tab1
----
1
18
6

skipif mysql # not compatible
query I rowsort label-1923
SELECT - 92 / + - col1 AS col2 FROM tab1
----
1
18
6

onlyif mysql # aggregate syntax: 
query II rowsort label-1924
SELECT 89 AS col0, + SUM( DISTINCT 95 ) FROM tab0 cor0
----
89
95

skipif mysql # not compatible
query II rowsort label-1924
SELECT 89 AS col0, + SUM ( DISTINCT 95 ) FROM tab0 cor0
----
89
95

query II rowsort
SELECT DISTINCT 28 AS col0, 90 AS col2 FROM tab0 cor0
----
28
90

onlyif mysql # aggregate syntax: 
query I rowsort label-1926
SELECT DISTINCT + + ( - + COUNT( * ) ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1926
SELECT DISTINCT + + ( - + COUNT ( * ) ) AS col2 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT - 96 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-96
-96
-96

query I rowsort
SELECT + - 70 FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
-70
-70
-70

query I rowsort
SELECT + 98 * + - col2 AS col0 FROM tab0
----
-4606
-9702
-980

query I rowsort
SELECT ALL + col0 * + - col1 - - col1 FROM tab2 cor0
----
-2295
-4851
-4958

query I rowsort
SELECT ALL - col2 + - + 27 AS col0 FROM tab1 cor0
----
-123
-86
-95

query I rowsort
SELECT DISTINCT ( 23 ) + + + ( col0 ) + col2 * - + col0 FROM tab0 AS cor0
----
-667
-760
-9483

query I rowsort
SELECT DISTINCT + 58 + - - col0 FROM tab0 AS cor0
----
145
155
73

query I rowsort
SELECT ALL col1 * 74 + - 88 FROM tab0 AS cor0
----
-14
1466
5906

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1935
SELECT DISTINCT + SUM( 40 ) + CAST( NULL AS SIGNED ) + + - MAX( + CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1935
SELECT DISTINCT + SUM ( 40 ) + CAST ( NULL AS INTEGER ) + + - MAX ( + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1936
SELECT - MIN( col0 ) AS col2, - 3 FROM tab1 AS cor0
----
-51
-3

skipif mysql # not compatible
query II rowsort label-1936
SELECT - MIN ( col0 ) AS col2, - 3 FROM tab1 AS cor0
----
-51
-3

query I rowsort
SELECT 23 * + 58 FROM tab0
----
1334
1334
1334

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 24 col1, - col0 AS col2 FROM tab1
----
24
-51
24
-85
24
-91

query III rowsort
SELECT * FROM tab1 WHERE + col0 BETWEEN - ( + col0 ) * + col0 * - - 2 AND 40
----

query I rowsort
SELECT - 65 - + col2 FROM tab1
----
-124
-133
-161

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1941
SELECT ALL + col0 * + col0 * + 38 * CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1941
SELECT ALL + col0 * + col0 * + 38 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col2 - + col1 AS col1 FROM tab1
----
21
54
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1943
SELECT ALL SUM( DISTINCT - CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1943
SELECT ALL SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 0 + - - col1 + - col2 FROM tab1 cor0
----
-21
-54
-82

query I rowsort
SELECT + col2 AS col0 FROM tab1 AS cor0 WHERE col1 * 84 IS NOT NULL
----
59
68
96

query I rowsort
SELECT + + col2 * + - col0 + + - ( col0 ) FROM tab1 AS cor0
----
-4947
-5100
-6279

onlyif mysql # aggregate syntax: 
query I rowsort label-1947
SELECT DISTINCT 94 + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
103

skipif mysql # not compatible
query I rowsort label-1947
SELECT DISTINCT 94 + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1948
SELECT ALL CAST( NULL AS SIGNED ) AS col2, - COUNT( * ) AS col1 FROM tab0
----
NULL
-3

skipif mysql # not compatible
query II rowsort label-1948
SELECT ALL CAST ( NULL AS INTEGER ) AS col2, - COUNT ( * ) AS col1 FROM tab0
----
NULL
-3

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) NOT IN ( + col2 / - ( + 28 ), col0 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 15 + 63 + ( + 73 ) / - + col1 IS NULL
----

query I rowsort
SELECT + + col1 FROM tab2 AS cor0 WHERE NOT + 34 - + 98 + col2 + + - ( - 57 ) IS NOT NULL
----

query II rowsort
SELECT ALL col1 AS col0, 2 AS col2 FROM tab2 AS cor0
----
51
2
67
2
77
2

query I rowsort
SELECT - ( - 80 ) AS col1 FROM tab0 AS cor0
----
80
80
80

query I rowsort
SELECT + col0 FROM tab2 AS cor0 WHERE NOT + col2 * - col2 - - col1 IS NOT NULL
----

query II rowsort
SELECT DISTINCT col1 AS col0, 38 AS col2 FROM tab2 AS cor0
----
51
38
67
38
77
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 0 col2 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1957
SELECT ALL - CAST( + AVG ( - col0 ) AS SIGNED ) AS col0 FROM tab1 cor0 WHERE NOT NULL < col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1957
SELECT ALL - CAST ( + AVG ( - col0 ) AS INTEGER ) AS col0 FROM tab1 cor0 WHERE NOT NULL < col2
----
NULL

query II rowsort
SELECT DISTINCT - ( + col1 ) AS col1, - col1 AS col1 FROM tab1
----
-14
-14
-47
-47
-5
-5

query II rowsort
SELECT ALL 70 * - col2, 82 * + 89 AS col0 FROM tab0
----
-3290
7298
-6930
7298
-700
7298

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + ( - col0 ) - 4 AS col2, - ( col0 ) col0 FROM tab2 WHERE NOT ( NULL BETWEEN NULL AND + 91 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1961
SELECT SUM( - 99 ) * + COUNT( * ) + 92 + + 23 + + 31 FROM tab2, tab1 cor0
----
-7873

skipif mysql # not compatible
query I rowsort label-1961
SELECT SUM ( - 99 ) * + COUNT ( * ) + 92 + + 23 + + 31 FROM tab2, tab1 cor0
----
-7873

query I rowsort
SELECT - 14 FROM tab0, tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + col0 * + - 33 AS col1 FROM tab1
----
-1683
-2805
-3003

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - - col2 + + - 35 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - - 94 + - + col0 AS col1 FROM tab2 AS cor0
----
19
30
48

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL < + 57
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1967
SELECT * FROM tab2 AS cor0 WHERE NOT - CAST( - - col1 AS SIGNED ) + - + 65 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-1967
SELECT * FROM tab2 AS cor0 WHERE NOT - CAST ( - - col1 AS INTEGER ) + - + 65 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + 31 * + + col1 * col1 + + 71 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 IN ( col2, - ( - - col0 ) )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL >= + col1
----

query I rowsort
SELECT DISTINCT 87 AS col1 FROM tab2 WHERE NOT - 78 IS NULL
----
87

query II rowsort
SELECT DISTINCT - col0 AS col2, + 94 * + - col1 AS col2 FROM tab1 AS cor0
----
-51
-1316
-85
-470
-91
-4418

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( + 27 IS NOT NULL )
----

query I rowsort
SELECT col1 * - col0 + - 24 + + 70 + - - col1 AS col1 FROM tab1 AS cor0
----
-374
-4184
-654

query I rowsort
SELECT - ( + + ( - col1 ) ) + + + 63 * - col2 * col2 AS col1 FROM tab0 AS cor0
----
-139086
-617462
-6279

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT - col0 > - col0 + + 40 + + 19 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1977
SELECT 59 + - + MAX( + - 82 ) + + ( - 10 ) AS col1 FROM tab1 AS cor0
----
131

skipif mysql # not compatible
query I rowsort label-1977
SELECT 59 + - + MAX ( + - 82 ) + + ( - 10 ) AS col1 FROM tab1 AS cor0
----
131

onlyif mysql # aggregate syntax: 
query II rowsort label-1978
SELECT DISTINCT + COUNT( * ), 65 AS col1 FROM tab1 AS cor0
----
3
65

skipif mysql # not compatible
query II rowsort label-1978
SELECT DISTINCT + COUNT ( * ), 65 AS col1 FROM tab1 AS cor0
----
3
65

query I rowsort
SELECT + - 7 + + 49 * col1 AS col2 FROM tab0 AS cor0
----
1022
3962
42

query I rowsort
SELECT DISTINCT + col2 + - - col0 FROM tab2
----
104
133
69

query I rowsort
SELECT DISTINCT 43 * + col1 + - 97 * + 91 * - 63 * + ( + col1 ) FROM tab0
----
11679024
45047664
556144

onlyif mysql # aggregate syntax: 
query I rowsort label-1982
SELECT MIN( - - 48 ) FROM tab0
----
48

skipif mysql # not compatible
query I rowsort label-1982
SELECT MIN ( - - 48 ) FROM tab0
----
48

query III rowsort
SELECT ALL * FROM tab0 WHERE + - 65 * - - col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1984
SELECT CAST( - col0 AS SIGNED ) col1 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1984
SELECT CAST ( - col0 AS INTEGER ) col1 FROM tab2
----
-46
-64
-75

query I rowsort
SELECT - col2 * + col1 - + - col1 AS col2 FROM tab1 AS cor0
----
-1330
-290
-3149

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1986
SELECT - col0 - + CAST( col0 AS SIGNED ) FROM tab2 AS cor0
----
-128
-150
-92

skipif mysql # not compatible
query I rowsort label-1986
SELECT - col0 - + CAST ( col0 AS INTEGER ) FROM tab2 AS cor0
----
-128
-150
-92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1987
SELECT 91 DIV - 85 - + 29 * - COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
260

skipif mysql # not compatible
query I rowsort label-1987
SELECT 91 / - 85 - + 29 * - COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
260

query I rowsort
SELECT ALL + - 79 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 1b7b0b34fe3431fb409719624d12791f

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE 11 IS NULL
----

query I rowsort
SELECT - + 6 FROM tab0 AS cor0 WHERE NOT + 69 / - col2 IS NULL
----
-6
-6
-6

query I rowsort
SELECT DISTINCT + - ( + + col0 ) FROM tab2 AS cor0
----
-46
-64
-75

query I rowsort
SELECT ALL 52 * - col0 * col1 FROM tab0 AS cor0
----
-5044
-63180
-95004

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 NOT BETWEEN - col1 AND - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1994
SELECT - SUM( col1 ) FROM tab1 WHERE NOT - 77 <> + 82
----
NULL

skipif mysql # not compatible
query I rowsort label-1994
SELECT - SUM ( col1 ) FROM tab1 WHERE NOT - 77 <> + 82
----
NULL

query I rowsort
SELECT DISTINCT - col0 * + - ( - col1 ) FROM tab2
----
-2346
-4928
-5025

onlyif mysql # DIV for integer division: 
query I rowsort label-1996
SELECT DISTINCT - col0 DIV - 24 FROM tab1
----
2
3

skipif mysql # not compatible
query I rowsort label-1996
SELECT DISTINCT - col0 / - 24 FROM tab1
----
2
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1997
SELECT ALL CAST( + ( COUNT( * ) ) AS SIGNED ) * + MIN( ALL + col1 ) AS col0 FROM tab1
----
15

skipif mysql # not compatible
query I rowsort label-1997
SELECT ALL CAST ( + ( COUNT ( * ) ) AS INTEGER ) * + MIN ( ALL + col1 ) AS col0 FROM tab1
----
15

query III rowsort
SELECT * FROM tab0 WHERE NOT - + 17 + + 74 BETWEEN + col1 AND ( - + col2 ) * + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1999
SELECT + MAX( DISTINCT + col1 ) AS col1 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-1999
SELECT + MAX ( DISTINCT + col1 ) AS col1 FROM tab2
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2000
SELECT + COUNT( * ) * 76 FROM tab1
----
228

skipif mysql # not compatible
query I rowsort label-2000
SELECT + COUNT ( * ) * 76 FROM tab1
----
228

query I rowsort
SELECT - + col0 - col2 FROM tab0 WHERE NOT - 6 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2002
SELECT DISTINCT CAST( CAST( ( + - ( col1 ) ) AS SIGNED ) AS SIGNED ) FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-2002
SELECT DISTINCT CAST ( CAST ( ( + - ( col1 ) ) AS INTEGER ) AS INTEGER ) FROM tab2
----
-51
-67
-77

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 99 > NULL
----

query I rowsort
SELECT DISTINCT - + 47 + 5 AS col2 FROM tab2 AS cor0
----
-42

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 1 NOT BETWEEN NULL AND + - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) <= - col2 + - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2007
SELECT col0 * - col2 + - CAST( 36 AS SIGNED ) FROM tab0
----
-741
-906
-9639

skipif mysql # not compatible
query I rowsort label-2007
SELECT col0 * - col2 + - CAST ( 36 AS INTEGER ) FROM tab0
----
-741
-906
-9639

query I rowsort
SELECT col1 + - col1 * + 7 FROM tab1
----
-282
-30
-84

query I rowsort
SELECT ALL + + col2 AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
10
47
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2010
SELECT CAST( - ( + COUNT( * ) ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2010
SELECT CAST ( - ( + COUNT ( * ) ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL + 30 * - - col1 + + col2 AS col0 FROM tab0
----
129
2477
640

query I rowsort
SELECT + col0 - 64 AS col1 FROM tab2
----
-18
0
11

query I rowsort
SELECT + + col0 + - + col0 + - col2 AS col1 FROM tab2 WHERE NULL IS NULL
----
-23
-40
-58

query I rowsort
SELECT + ( - 73 ) + 23 AS col0 FROM tab0
----
-50
-50
-50

query II rowsort
SELECT ALL col2, + col1 AS col1 FROM tab2 cor0
----
23
51
40
77
58
67

query I rowsort
SELECT 51 * + - 53 FROM tab2 AS cor0
----
-2703
-2703
-2703

query I rowsort
SELECT + - col0 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-51
-85
-91

query II rowsort
SELECT ALL 49 * - + col2 AS col0, col2 AS col1 FROM tab0
----
-2303
47
-4851
99
-490
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2019
SELECT 22 DIV - COUNT( * ) FROM tab2 AS cor0
----
-7

skipif mysql # not compatible
query I rowsort label-2019
SELECT 22 / - COUNT ( * ) FROM tab2 AS cor0
----
-7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 = - 82 * ( - 88 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN - 16 AND + ( + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2022
SELECT ALL + + MAX( col2 ) * - + COUNT( * ) * 18 FROM tab2 AS cor0
----
-3132

skipif mysql # not compatible
query I rowsort label-2022
SELECT ALL + + MAX ( col2 ) * - + COUNT ( * ) * 18 FROM tab2 AS cor0
----
-3132

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2023
SELECT ALL - 91 * + 7 / + 52 * + CAST( NULL AS SIGNED ) / + COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2023
SELECT ALL - 91 * + 7 / + 52 * + CAST ( NULL AS INTEGER ) / + COUNT ( * ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + 96 * - col2 FROM tab2 cor0
----
-2208
-3840
-5568

onlyif mysql # aggregate syntax: 
query I rowsort label-2025
SELECT ALL COUNT( - 0 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2025
SELECT ALL COUNT ( - 0 ) FROM tab0
----
3

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN + + col0 AND + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2027
SELECT + COUNT( * ) * - + 86 AS col1 FROM tab2
----
-258

skipif mysql # not compatible
query I rowsort label-2027
SELECT + COUNT ( * ) * - + 86 AS col1 FROM tab2
----
-258

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2028
SELECT DISTINCT * FROM tab1 WHERE NOT NULL IN ( col1, - ( - + col0 ) + + + col1 + + + 88 / - 77, 89, - - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-2028
SELECT DISTINCT * FROM tab1 WHERE NOT NULL IN ( col1, - ( - + col0 ) + + + col1 + + + 88 / - 77, 89, - - CAST ( NULL AS INTEGER ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 * - ( + 95 ) AS col1, 68 + 45 + - col1 col1 FROM tab1
----
-5605
108
-6460
66
-9120
99

query I rowsort
SELECT ALL - col2 AS col2 FROM tab2 WHERE NOT NULL NOT IN ( - + 10 )
----

query I rowsort
SELECT DISTINCT - col1 * - ( + + col2 ) AS col0 FROM tab2
----
1173
3080
3886

query I rowsort
SELECT + ( - 31 ) * + col2 + - col1 FROM tab0
----
-1538
-3070
-331

onlyif mysql # aggregate syntax: 
query I rowsort label-2033
SELECT DISTINCT - ( COUNT( * ) ) + - + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-2033
SELECT DISTINCT - ( COUNT ( * ) ) + - + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-6

query I rowsort
SELECT 48 AS col1 FROM tab0 cor0
----
48
48
48

query I rowsort
SELECT ALL ( + col2 ) + - 17 AS col1 FROM tab2 AS cor0
----
23
41
6

query I rowsort
SELECT ALL - 81 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT 50 - + col0 FROM tab2
----
-14
-25
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2038
SELECT ALL - - CAST( - 67 AS SIGNED ) AS col2 FROM ( tab2 cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to fbe03b15d6b951410b38f7e98895006f

skipif mysql # not compatible
query I rowsort label-2038
SELECT ALL - - CAST ( - 67 AS INTEGER ) AS col2 FROM ( tab2 cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to fbe03b15d6b951410b38f7e98895006f

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 - col0 + - 10 col2 FROM tab0 AS cor0
----
-8
-87
22

onlyif mysql # aggregate syntax: 
query I rowsort label-2040
SELECT + - MIN( col0 ) - 45 FROM tab0 AS cor0 WHERE NULL = ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2040
SELECT + - MIN ( col0 ) - 45 FROM tab0 AS cor0 WHERE NULL = ( NULL )
----
NULL

query I rowsort
SELECT ALL 11 * - 65 + - 13 + col0 AS col0 FROM tab2 AS cor0
----
-653
-664
-682

query I rowsort
SELECT + + col0 + + 75 * + col0 - - col1 FROM tab0 AS cor0
----
1221
6633
7373

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 14 <= NULL
----

query I rowsort
SELECT DISTINCT + col2 + + col0 + - + col1 AS col2 FROM tab0 AS cor0
----
-19
195
76

query I rowsort
SELECT DISTINCT col1 * + 11 + - 70 FROM tab0 cor0
----
-59
161
821

query III rowsort
SELECT ALL * FROM tab2 WHERE ( - - col1 ) <> - 32
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2047
SELECT - ( + CAST( CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) AS SIGNED ) ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2047
SELECT - ( + CAST ( CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS INTEGER ) ) AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2048
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NOT ( - col2 NOT IN ( + CAST( NULL AS SIGNED ), 42 * col2, + - 28, + 16 ) ) )
----

skipif mysql # not compatible
query III rowsort label-2048
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NOT ( - col2 NOT IN ( + CAST ( NULL AS INTEGER ), 42 * col2, + - 28, + 16 ) ) )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( + 50 ) * - col2 - + ( + - ( - - col0 ) ) IS NOT NULL
----

query II rowsort
SELECT col0, - 16 FROM tab1
----
51
-16
85
-16
91
-16

query I rowsort
SELECT + + 17 + - col0 FROM tab0 AS cor0
----
-70
-80
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2052
SELECT + + COUNT( * ) DIV + 15 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2052
SELECT + + COUNT ( * ) / + 15 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL - ( - + ( - - 2 ) ) * + + 30 FROM tab0 AS cor0
----
60
60
60

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2054
SELECT ALL * FROM tab0 AS cor0 WHERE + col1 NOT IN ( col0 + - col0 - - CAST( + col1 AS SIGNED ), col1, col0 )
----

skipif mysql # not compatible
query III rowsort label-2054
SELECT ALL * FROM tab0 AS cor0 WHERE + col1 NOT IN ( col0 + - col0 - - CAST ( + col1 AS INTEGER ), col1, col0 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2055
SELECT ALL MIN( DISTINCT 46 ) DIV - COUNT( * ) + - 97 FROM tab2 AS cor0
----
-112

skipif mysql # not compatible
query I rowsort label-2055
SELECT ALL MIN ( DISTINCT 46 ) / - COUNT ( * ) + - 97 FROM tab2 AS cor0
----
-112

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 * - 52 + - + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2057
SELECT 62 AS col2, - COUNT( * ) AS col0 FROM tab2 AS cor0
----
62
-3

skipif mysql # not compatible
query II rowsort label-2057
SELECT 62 AS col2, - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
62
-3

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2058
SELECT ALL ( SUM( ALL - + 23 ) ) + + COUNT( * ) - + 68 * MIN( + - CAST( NULL AS DECIMAL ) ) - + + COUNT( * ), + COUNT( * ) AS col1 FROM tab2 AS cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-2058
SELECT ALL ( SUM ( ALL - + 23 ) ) + + COUNT ( * ) - + 68 * MIN ( + - CAST ( NULL AS REAL ) ) - + + COUNT ( * ), + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
NULL
3

query I rowsort
SELECT DISTINCT + col1 + - ( col2 ) FROM tab1
----
-21
-54
-82

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2060
SELECT + CAST( - - col2 AS SIGNED ) col0, 90 AS col1 FROM tab1
----
59
90
68
90
96
90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2060
SELECT + CAST ( - - col2 AS INTEGER ) col0, 90 AS col1 FROM tab1
----
59
90
68
90
96
90

onlyif mysql # aggregate syntax: 
query I rowsort label-2061
SELECT ALL ( SUM( ALL + + 87 ) ) FROM tab0
----
261

skipif mysql # not compatible
query I rowsort label-2061
SELECT ALL ( SUM ( ALL + + 87 ) ) FROM tab0
----
261

query I rowsort
SELECT DISTINCT col1 + col2 + + ( - col1 ) FROM tab0
----
10
47
99

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT BETWEEN + col1 AND + col1
----

query I rowsort
SELECT 62 * col0 AS col1 FROM tab1
----
3162
5270
5642

query I rowsort
SELECT - 44 * + + col0 FROM tab0
----
-3828
-4268
-660

onlyif mysql # aggregate syntax: 
query I rowsort label-2066
SELECT COUNT( * ) * + ( MAX( col2 ) ) AS col1 FROM tab1
----
288

skipif mysql # not compatible
query I rowsort label-2066
SELECT COUNT ( * ) * + ( MAX ( col2 ) ) AS col1 FROM tab1
----
288

query I rowsort
SELECT DISTINCT - col0 * + col2 - - col2 AS col0 FROM tab2 AS cor0
----
-1035
-2520
-4292

query I rowsort
SELECT + col2 + - 60 * - + col0 FROM tab1 cor0
----
3156
5159
5528

onlyif mysql # DIV for integer division: 
query I rowsort label-2069
SELECT ALL + 48 DIV 29 * - col0 AS col2 FROM tab0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-2069
SELECT ALL + 48 / 29 * - col0 AS col2 FROM tab0
----
-15
-87
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2070
SELECT - COUNT( * ) * 70 + COUNT( * ) DIV 33 AS col2 FROM tab2
----
-210

skipif mysql # not compatible
query I rowsort label-2070
SELECT - COUNT ( * ) * 70 + COUNT ( * ) / 33 AS col2 FROM tab2
----
-210

query I rowsort
SELECT - col1 * + + 17 + - 74 AS col0 FROM tab0
----
-1451
-431
-91

query I rowsort
SELECT - ( + 20 ) FROM tab0
----
-20
-20
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-2073
SELECT + 5 * - COUNT( ALL + 43 ) AS col2 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-2073
SELECT + 5 * - COUNT ( ALL + 43 ) AS col2 FROM tab0 AS cor0
----
-15

query II rowsort
SELECT ALL col0 + - col1, + 51 FROM tab2 AS cor0 WHERE NOT ( NULL IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2075
SELECT + COUNT( 52 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2075
SELECT + COUNT ( 52 ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2076
SELECT DISTINCT + ( - MAX( - - 67 ) ) FROM tab0
----
-67

skipif mysql # not compatible
query I rowsort label-2076
SELECT DISTINCT + ( - MAX ( - - 67 ) ) FROM tab0
----
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-2077
SELECT col2 DIV + 75 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2077
SELECT col2 / + 75 FROM tab2
----
0
0
0

query II rowsort
SELECT ALL + 35, - col2 AS col2 FROM tab0
----
35
-10
35
-47
35
-99

query II rowsort
SELECT DISTINCT 5 AS col1, - col1 FROM tab0
----
5
-1
5
-21
5
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2080
SELECT MAX( + 70 ) DIV ( - 21 ) + 93 DIV 7 AS col2, - 7 DIV - 50 FROM tab2
----
10
0

skipif mysql # not compatible
query II rowsort label-2080
SELECT MAX ( + 70 ) / ( - 21 ) + 93 / 7 AS col2, - 7 / - 50 FROM tab2
----
10
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2081
SELECT + CAST( - col0 AS SIGNED ) AS col1 FROM tab0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-2081
SELECT + CAST ( - col0 AS INTEGER ) AS col1 FROM tab0
----
-15
-87
-97

query I rowsort
SELECT ALL + ( + - 77 ) FROM tab2
----
-77
-77
-77

query I rowsort
SELECT ALL + - col0 * ( - + col2 ) FROM tab2 WHERE - ( - col2 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2084
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( - 0 * - + col2 - + - CAST( - ( 84 ) AS SIGNED ) * CAST( - + 23 AS SIGNED ) * + ( + + col0 ) )
----

skipif mysql # not compatible
query III rowsort label-2084
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( - 0 * - + col2 - + - CAST ( - ( 84 ) AS INTEGER ) * CAST ( - + 23 AS INTEGER ) * + ( + + col0 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2085
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 * 11 * - CAST( NULL AS SIGNED ) NOT IN ( 56 * col1 + - + col2 * + + 50 / - + CAST( NULL AS SIGNED ), + col2, + col0 )
----

skipif mysql # not compatible
query III rowsort label-2085
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 * 11 * - CAST ( NULL AS INTEGER ) NOT IN ( 56 * col1 + - + col2 * + + 50 / - + CAST ( NULL AS INTEGER ), + col2, + col0 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE - 1 + - col0 IS NULL
----

query I rowsort
SELECT ALL ( + - ( + 98 ) ) FROM tab0 AS cor0
----
-98
-98
-98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2088
SELECT + + 60 DIV + + COUNT( * ) AS col1 FROM tab1 cor0
----
20

skipif mysql # not compatible
query I rowsort label-2088
SELECT + + 60 / + + COUNT ( * ) AS col1 FROM tab1 cor0
----
20

query I rowsort
SELECT DISTINCT + col0 + - 78 FROM tab2 AS cor0
----
-14
-3
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-2090
SELECT ALL - SUM( 84 ) FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2090
SELECT ALL - SUM ( 84 ) FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

query I rowsort
SELECT ALL 63 * + 56 * - + col0 * + col0 / - col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + col0 * - + 30 + - 31 FROM tab1 AS cor0
----
-1561
-2581
-2761

onlyif mysql # aggregate syntax: 
query I rowsort label-2093
SELECT + COUNT( ALL + + 21 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2093
SELECT + COUNT ( ALL + + 21 ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT col2 + - - col0 AS col1 FROM tab1 AS cor0
----
144
147
159

onlyif mysql # DIV for integer division: 
query I rowsort label-2095
SELECT col1 DIV + col0 + col1 col2 FROM tab0
----
1
21
86

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2095
SELECT col1 / + col0 + col1 col2 FROM tab0
----
1
21
86

query I rowsort
SELECT DISTINCT col0 * 41 + + ( col0 ) FROM tab2
----
1932
2688
3150

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + - col2 col0 FROM tab2
----
28
37
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2098
SELECT DISTINCT COUNT( * ) + - 31 + - 16 FROM tab1
----
-44

skipif mysql # not compatible
query I rowsort label-2098
SELECT DISTINCT COUNT ( * ) + - 31 + - 16 FROM tab1
----
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2099
SELECT SUM( DISTINCT - + 37 ) + + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2099
SELECT SUM ( DISTINCT - + 37 ) + + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2100
SELECT ALL + - 78 * COUNT( * ) DIV COUNT( * ) FROM tab0 WHERE + + 55 * + col0 + + - col1 IS NOT NULL
----
-78

skipif mysql # not compatible
query I rowsort label-2100
SELECT ALL + - 78 * COUNT ( * ) / COUNT ( * ) FROM tab0 WHERE + + 55 * + col0 + + - col1 IS NOT NULL
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-2101
SELECT ALL - - COUNT( * ) * 80 FROM tab2 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2101
SELECT ALL - - COUNT ( * ) * 80 FROM tab2 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2102
SELECT ALL SUM( - col2 ) * + COUNT( * ) AS col1 FROM tab0
----
-468

skipif mysql # not compatible
query I rowsort label-2102
SELECT ALL SUM ( - col2 ) * + COUNT ( * ) AS col1 FROM tab0
----
-468

query I rowsort
SELECT col0 + - - col0 * col1 FROM tab2
----
2392
4992
5100

query III rowsort
SELECT * FROM tab1 WHERE NULL <> + 17 + + 59
----

query I rowsort
SELECT DISTINCT - ( + - 17 ) AS col1 FROM tab2
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2106
SELECT + CAST( NULL AS SIGNED ) * + - SUM( - 1 ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2106
SELECT + CAST ( NULL AS INTEGER ) * + - SUM ( - 1 ) AS col1 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 15 + 25 - + - col2 * + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + + col1 + - col1 BETWEEN - col2 * - col0 AND - + col0 * + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2109
SELECT + 95 + - - COUNT( * ) AS col1 FROM tab0
----
98

skipif mysql # not compatible
query I rowsort label-2109
SELECT + 95 + - - COUNT ( * ) AS col1 FROM tab0
----
98

query I rowsort
SELECT 6 + + + col0 FROM tab0 AS cor0
----
103
21
93

query I rowsort
SELECT DISTINCT - col0 - - col0 + + - col2 FROM tab2 AS cor0
----
-23
-40
-58

query I rowsort
SELECT + col2 + - 28 * - - col1 AS col0 FROM tab0 AS cor0
----
-2221
-578
71

query I rowsort
SELECT - + ( ( - col2 ) ) FROM tab1 cor0
----
59
68
96

query I rowsort
SELECT ALL + 3 * + ( col1 ) AS col0 FROM tab1
----
141
15
42

onlyif mysql # DIV for integer division: 
query I rowsort label-2115
SELECT col1 DIV 3 AS col2 FROM tab2
----
17
22
25

skipif mysql # not compatible
query I rowsort label-2115
SELECT col1 / 3 AS col2 FROM tab2
----
17
22
25

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT + col0 + col1 <> NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2117
SELECT + col2 AS col2, 58 * + CAST( NULL AS SIGNED ) FROM tab1
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-2117
SELECT + col2 AS col2, 58 * + CAST ( NULL AS INTEGER ) FROM tab1
----
59
NULL
68
NULL
96
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2118
SELECT + col1 AS col2 FROM tab2 WHERE NOT + 78 + + col2 + + 69 IN ( CAST( - col2 AS SIGNED ) / + 8 * 23 + col1, - col1, + col2 * + + col2 )
----
51
67
77

skipif mysql # not compatible
query I rowsort label-2118
SELECT + col1 AS col2 FROM tab2 WHERE NOT + 78 + + col2 + + 69 IN ( CAST ( - col2 AS INTEGER ) / + 8 * 23 + col1, - col1, + col2 * + + col2 )
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2119
SELECT DISTINCT - COUNT( ALL + - 22 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-2119
SELECT DISTINCT - COUNT ( ALL + - 22 ) FROM tab2
----
-3

query I rowsort
SELECT ( ( + 39 ) ) FROM tab1 WHERE NOT - - col1 + - + 34 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - + 94 AS col2 FROM tab2 cor0
----
-94

query I rowsort
SELECT ALL + ( - - col0 ) * - 59 AS col1 FROM tab1 AS cor0
----
-3009
-5015
-5369

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2123
SELECT - 80 * CAST( col0 AS SIGNED ) AS col1, - col1 FROM tab2 AS cor0
----
-3680
-51
-5120
-77
-6000
-67

skipif mysql # not compatible
query II rowsort label-2123
SELECT - 80 * CAST ( col0 AS INTEGER ) AS col1, - col1 FROM tab2 AS cor0
----
-3680
-51
-5120
-77
-6000
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2124
SELECT CAST( NULL AS SIGNED ) * + 74 FROM tab2 WHERE NOT NULL BETWEEN - + CAST( + ( 38 ) AS SIGNED ) AND + - col2
----

skipif mysql # not compatible
query I rowsort label-2124
SELECT CAST ( NULL AS INTEGER ) * + 74 FROM tab2 WHERE NOT NULL BETWEEN - + CAST ( + ( 38 ) AS INTEGER ) AND + - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - 54 + + col0 col1 FROM tab1
----
116
128
48

onlyif mysql # aggregate syntax: 
query I rowsort label-2126
SELECT + COUNT( * ) + + COUNT( * ) + - COUNT( * ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2126
SELECT + COUNT ( * ) + + COUNT ( * ) + - COUNT ( * ) FROM tab2 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2127
SELECT + col1 DIV + + 53 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2127
SELECT + col1 / + + 53 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 92 + + col1 * col1 col2 FROM tab2 AS cor0
----
2509
4397
5837

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2129
SELECT DISTINCT - - CAST( col1 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-2129
SELECT DISTINCT - - CAST ( col1 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT ALL + col2 + - ( - col0 ) + - 72 AS col2 FROM tab1 AS cor0
----
72
75
87

onlyif mysql # DIV for integer division: 
query III rowsort label-2131
SELECT DISTINCT - 37 + - col0, col2 AS col0, - col0 + col0 - - col1 DIV + col0 AS col0 FROM tab0
----
9 values hashing to f5f6eb4ad402f7adf8ae051ea9a08734

skipif mysql # not compatible
query III rowsort label-2131
SELECT DISTINCT - 37 + - col0, col2 AS col0, - col0 + col0 - - col1 / + col0 AS col0 FROM tab0
----
9 values hashing to f5f6eb4ad402f7adf8ae051ea9a08734

query I rowsort
SELECT ALL + col1 * + col0 + + col0 AS col0 FROM tab0
----
1230
1914
194

query III rowsort
SELECT * FROM tab2 WHERE - + col0 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2134
SELECT ALL + COUNT( - - 1 ) + COUNT( * ) + - + 97 FROM tab2
----
-91

skipif mysql # not compatible
query I rowsort label-2134
SELECT ALL + COUNT ( - - 1 ) + COUNT ( * ) + - + 97 FROM tab2
----
-91

query I rowsort
SELECT 62 - - - 14 FROM tab0
----
48
48
48

query I rowsort
SELECT DISTINCT 46 * + ( col2 ) * + col0 + - col1 FROM tab1
----
225202
230685
284601

query I rowsort
SELECT + col0 - + + col0 * - col2 * + col1 FROM tab1
----
25160
290927
68595

query III rowsort
SELECT * FROM tab1 WHERE - 56 * + col0 + + 2 / - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col1 BETWEEN NULL AND col2
----
15
81
47
87
21
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2140
SELECT - 99 + 39 DIV MIN( ALL - 29 ) AS col2 FROM tab2
----
-100

skipif mysql # not compatible
query I rowsort label-2140
SELECT - 99 + 39 / MIN ( ALL - 29 ) AS col2 FROM tab2
----
-100

query IIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab0 cor1 WHERE - 17 * - 3 BETWEEN NULL AND NULL
----

query I rowsort
SELECT 75 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

query I rowsort
SELECT - 32 + 94 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 cor1 WHERE NULL <> ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 * + 81 AS col0, col0 + col0 col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
1701
174
6561
30
81
194

query II rowsort
SELECT ALL - col2 AS col1, + 91 FROM tab1 cor0
----
-59
91
-68
91
-96
91

query II rowsort
SELECT - - col1 AS col2, 47 * + - col0 FROM tab1 AS cor0
----
14
-2397
47
-4277
5
-3995

query I rowsort
SELECT DISTINCT + - ( - col0 ) * + - ( - col0 ) + - 76 FROM tab2 AS cor0
----
2040
4020
5549

query II rowsort
SELECT 34 * - ( + col1 ) AS col0, - col1 FROM tab1 cor0
----
-1598
-47
-170
-5
-476
-14

query I rowsort
SELECT DISTINCT + - col1 AS col2 FROM tab0 AS cor0 WHERE NOT 2 = ( col2 ) * - 56
----
-1
-21
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2151
SELECT - COUNT( * ) / - COUNT( * ) * + MIN( ALL CAST( NULL AS SIGNED ) ) AS col1, + COUNT( ALL + col1 ) AS col1 FROM tab1
----
NULL
3

skipif mysql # not compatible
query II rowsort label-2151
SELECT - COUNT ( * ) / - COUNT ( * ) * + MIN ( ALL CAST ( NULL AS INTEGER ) ) AS col1, + COUNT ( ALL + col1 ) AS col1 FROM tab1
----
NULL
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2152
SELECT COUNT( * ) FROM tab1 WHERE NOT NULL BETWEEN ( - + col2 ) AND - 27 - ( 76 )
----
0

skipif mysql # not compatible
query I rowsort label-2152
SELECT COUNT ( * ) FROM tab1 WHERE NOT NULL BETWEEN ( - + col2 ) AND - 27 - ( 76 )
----
0

query I rowsort
SELECT DISTINCT ( - 97 ) AS col0 FROM tab1
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2154
SELECT DISTINCT 71 * - ( - MAX( - col1 ) ) * CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2154
SELECT DISTINCT 71 * - ( - MAX ( - col1 ) ) * CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2155
SELECT col1 AS col0 FROM tab1 WHERE NOT - ( + col1 ) * - 57 - - col1 NOT IN ( - CAST( NULL AS SIGNED ) / + - col1, - col1 + + col2, + CAST( + 48 AS SIGNED ), - + col0 + + - CAST( NULL AS SIGNED ) + + ( + col0 ), - + col1 + + - 64, 53 )
----

skipif mysql # not compatible
query I rowsort label-2155
SELECT col1 AS col0 FROM tab1 WHERE NOT - ( + col1 ) * - 57 - - col1 NOT IN ( - CAST ( NULL AS INTEGER ) / + - col1, - col1 + + col2, + CAST ( + 48 AS INTEGER ), - + col0 + + - CAST ( NULL AS INTEGER ) + + ( + col0 ), - + col1 + + - 64, 53 )
----

query I rowsort
SELECT + col2 * - 32 FROM tab1
----
-1888
-2176
-3072

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 * + col0 + + + col1 + 66, - col0 col2 FROM tab1 AS cor0
----
2681
-51
7296
-85
8394
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-2158
SELECT + COUNT( * ) col2 FROM tab1 cor0 WHERE NOT + col2 = NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2158
SELECT + COUNT ( * ) col2 FROM tab1 cor0 WHERE NOT + col2 = NULL
----
0

query I rowsort
SELECT ALL - col1 * + 73 * col0 + - 72 AS col0 FROM tab0
----
-133443
-7153
-88767

onlyif mysql # aggregate syntax: 
query I rowsort label-2160
SELECT DISTINCT - - SUM( DISTINCT + + 0 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-2160
SELECT DISTINCT - - SUM ( DISTINCT + + 0 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2161
SELECT + col1 DIV col2 * + col0 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2161
SELECT + col1 / col2 * + col0 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + - col2 FROM tab2 AS cor0 WHERE NOT 44 IS NOT NULL
----

query I rowsort
SELECT + col0 + - ( + 26 ) FROM tab1 AS cor0
----
25
59
65

query I rowsort
SELECT + + col0 + + 56 FROM tab0 cor0
----
143
153
71

query I rowsort
SELECT - 18 + - 72 AS col0 FROM tab1 AS cor0
----
-90
-90
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-2166
SELECT - - 32 + + COUNT( * ) * + SUM( ALL col0 ) - - ( + 43 ) FROM tab1 AS cor0
----
756

skipif mysql # not compatible
query I rowsort label-2166
SELECT - - 32 + + COUNT ( * ) * + SUM ( ALL col0 ) - - ( + 43 ) FROM tab1 AS cor0
----
756

onlyif mysql # aggregate syntax: 
query I rowsort label-2167
SELECT + 42 + + 48 - - SUM( + col1 ) AS col0 FROM tab1
----
156

skipif mysql # not compatible
query I rowsort label-2167
SELECT + 42 + + 48 - - SUM ( + col1 ) AS col0 FROM tab1
----
156

query II rowsort
SELECT - - col2, ( - + col2 ) * col0 + col2 AS col0 FROM tab2 WHERE NULL <= + 32
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2169
SELECT - - 95 FROM tab0 WHERE CAST( NULL AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2169
SELECT - - 95 FROM tab0 WHERE CAST ( NULL AS REAL ) IS NOT NULL
----

query I rowsort
SELECT ALL - 14 + + - 56 * col2 AS col0 FROM tab0
----
-2646
-5558
-574

query III rowsort
SELECT ALL * FROM tab2 WHERE + ( - col0 ) / col2 - - col0 <> NULL
----

query II rowsort
SELECT + col0, + col1 * - col0 FROM tab2 WHERE - ( + + col1 ) - + - 16 IS NULL
----

query II rowsort
SELECT - + col2 AS col1, - 8 FROM tab2 AS cor0
----
-23
-8
-40
-8
-58
-8

query I rowsort
SELECT - col0 * - col2 - + + col0 AS col2 FROM tab1 AS cor0
----
4845
4930
6097

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 76 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + 0 + 39, col2 FROM tab1 WHERE NOT col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 99 col0 FROM tab1 AS cor0
----
-99
-99
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2178
SELECT + + SUM( ALL - col1 ) AS col2 FROM tab0 cor0
----
-103

skipif mysql # not compatible
query I rowsort label-2178
SELECT + + SUM ( ALL - col1 ) AS col2 FROM tab0 cor0
----
-103

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + col0 ) col2 FROM tab2 cor0
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-2180
SELECT DISTINCT - 55, + ( COUNT( * ) ) AS col1 FROM tab0
----
-55
3

skipif mysql # not compatible
query II rowsort label-2180
SELECT DISTINCT - 55, + ( COUNT ( * ) ) AS col1 FROM tab0
----
-55
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2181
SELECT ( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2181
SELECT ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - - 47 * col2 col2 FROM tab2
----
120320
204450
49726

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2183
SELECT - 54 DIV MIN( + col1 ) DIV - MAX( col0 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2183
SELECT - 54 / MIN ( + col1 ) / - MAX ( col0 ) FROM tab2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2184
SELECT 14 * + CAST( NULL AS SIGNED ) / COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2184
SELECT 14 * + CAST ( NULL AS INTEGER ) / COUNT ( * ) FROM tab1
----
NULL

query I rowsort
SELECT col0 * - col2 * + 66 AS col0 FROM tab0
----
-46530
-57420
-633798

onlyif mysql # aggregate syntax: 
query I rowsort label-2186
SELECT COUNT( * ) * - 81 * - - COUNT( * ) FROM tab2
----
-729

skipif mysql # not compatible
query I rowsort label-2186
SELECT COUNT ( * ) * - 81 * - - COUNT ( * ) FROM tab2
----
-729

onlyif mysql # aggregate syntax: 
query I rowsort label-2187
SELECT - MIN( + 6 ) AS col2 FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-2187
SELECT - MIN ( + 6 ) AS col2 FROM tab2
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-2188
SELECT ALL - SUM( DISTINCT - 34 ) FROM tab0
----
34

skipif mysql # not compatible
query I rowsort label-2188
SELECT ALL - SUM ( DISTINCT - 34 ) FROM tab0
----
34

onlyif mysql # aggregate syntax: 
query II rowsort label-2189
SELECT - - COUNT( * ) col0, - 68 * + - COUNT( * ) FROM tab0 AS cor0
----
3
204

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2189
SELECT - - COUNT ( * ) col0, - 68 * + - COUNT ( * ) FROM tab0 AS cor0
----
3
204

onlyif mysql # aggregate syntax: 
query I rowsort label-2190
SELECT - COUNT( ALL - + 68 ) AS col1 FROM tab2 cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-2190
SELECT - COUNT ( ALL - + 68 ) AS col1 FROM tab2 cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2191
SELECT ALL - CAST( 92 AS SIGNED ) AS col1 FROM tab1 cor0
----
-92
-92
-92

skipif mysql # not compatible
query I rowsort label-2191
SELECT ALL - CAST ( 92 AS INTEGER ) AS col1 FROM tab1 cor0
----
-92
-92
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-2192
SELECT ALL - COUNT( * ) + 33 FROM tab2 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-2192
SELECT ALL - COUNT ( * ) + 33 FROM tab2 AS cor0
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-2193
SELECT col2 + col2 DIV + + col0 AS col0 FROM tab1
----
59
68
97

skipif mysql # not compatible
query I rowsort label-2193
SELECT col2 + col2 / + + col0 AS col0 FROM tab1
----
59
68
97

query I rowsort
SELECT DISTINCT - - 44 * + 15 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
660

query I rowsort
SELECT col0 + 84 + col1 * - col0 * - col1 FROM tab2
----
119776
336834
379604

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE - 85 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2197
SELECT ALL + col0 FROM tab2 AS cor0 WHERE NOT 3 / col0 <= - CAST( - + 33 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-2197
SELECT ALL + col0 FROM tab2 AS cor0 WHERE NOT 3 / col0 <= - CAST ( - + 33 AS INTEGER )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2198
SELECT + + MIN( DISTINCT col0 ) DIV + + 71 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2198
SELECT + + MIN ( DISTINCT col0 ) / + + 71 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL col1 * - col1 * col1 * - col0 * + col2 AS col2 FROM tab2 AS cor0
----
1168724480
1308319050
140344758

query I rowsort
SELECT ALL - col2 * + - 26 + 17 FROM tab1 AS cor0
----
1551
1785
2513

query I rowsort
SELECT ( - - 83 ) FROM tab1 AS cor0
----
83
83
83

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2202
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) * + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2202
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) * + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - - col2 * + col1 * col0 AS col0 FROM tab2 AS cor0
----
197120
291450
53958

query I rowsort
SELECT - ( - col1 ) * col1 AS col1 FROM tab1 cor0
----
196
2209
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2205
SELECT ALL col1 * - CAST( - col1 AS SIGNED ) FROM tab0
----
1
441
6561

skipif mysql # not compatible
query I rowsort label-2205
SELECT ALL col1 * - CAST ( - col1 AS INTEGER ) FROM tab0
----
1
441
6561

query I rowsort
SELECT DISTINCT col1 - - ( + - col1 ) - + col0 - + ( - 54 ) * + 63 AS col1 FROM tab1
----
3311
3317
3351

onlyif mysql # aggregate syntax: 
query I rowsort label-2207
SELECT COUNT( * ) - + + 16 FROM tab1
----
-13

skipif mysql # not compatible
query I rowsort label-2207
SELECT COUNT ( * ) - + + 16 FROM tab1
----
-13

query II rowsort
SELECT - 59 - - ( - col0 ) AS col0, - col2 AS col2 FROM tab2
----
-105
-23
-123
-40
-134
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-2209
SELECT + 7 + - COUNT( * ) + + 96 FROM tab0
----
100

skipif mysql # not compatible
query I rowsort label-2209
SELECT + 7 + - COUNT ( * ) + + 96 FROM tab0
----
100

query I rowsort
SELECT DISTINCT 46 - - col0 AS col1 FROM tab0
----
133
143
61

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2211
SELECT CAST( NULL AS SIGNED ) + + CAST( NULL AS DECIMAL ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2211
SELECT CAST ( NULL AS INTEGER ) + + CAST ( NULL AS REAL ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - 42 FROM tab2 AS cor0
----
-42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 74 col0 FROM tab2 cor0
----
-74
-74
-74

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - col1 AND + - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col1, + col0 AS col0 FROM tab1 cor0
----
59
85
68
91
96
51

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col0, col0, col0 * + + col2, + col0 * col0 * - 13, 30 + 75 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col0, + 76 col0 FROM tab2
----
46
76
64
76
75
76

onlyif mysql # aggregate syntax: 
query I rowsort label-2218
SELECT COUNT( * ) * + + 3 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-2218
SELECT COUNT ( * ) * + + 3 FROM tab1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2219
SELECT DISTINCT + COUNT( * ) * 49 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
441

skipif mysql # not compatible
query I rowsort label-2219
SELECT DISTINCT + COUNT ( * ) * 49 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
441

onlyif mysql # aggregate syntax: 
query II rowsort label-2220
SELECT ALL 64 AS col2, - COUNT( DISTINCT + ( ( 1 ) ) ) - - 60 FROM tab0 AS cor0
----
64
59

skipif mysql # not compatible
query II rowsort label-2220
SELECT ALL 64 AS col2, - COUNT ( DISTINCT + ( ( 1 ) ) ) - - 60 FROM tab0 AS cor0
----
64
59

onlyif mysql # aggregate syntax: 
query II rowsort label-2221
SELECT DISTINCT + 8 AS col1, COUNT( * ) FROM tab2 AS cor0
----
8
3

skipif mysql # not compatible
query II rowsort label-2221
SELECT DISTINCT + 8 AS col1, COUNT ( * ) FROM tab2 AS cor0
----
8
3

query I rowsort
SELECT + + col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 5 col0 FROM tab2 cor0
----
5
5
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2224
SELECT DISTINCT COUNT( 67 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2224
SELECT DISTINCT COUNT ( 67 ) AS col2 FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT + ( - 57 ) * col1 AS col2 FROM tab1 AS cor0
----
-2679
-285
-798

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2226
SELECT - col0 FROM tab0 AS cor0 WHERE NOT + col2 * - col1 * + ( col2 ) <= - 60 * - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-2226
SELECT - col0 FROM tab0 AS cor0 WHERE NOT + col2 * - col1 * + ( col2 ) <= - 60 * - CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2227
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 + + CAST( + 24 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2227
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 + + CAST ( + 24 AS INTEGER ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2228
SELECT ALL * FROM tab0 cor0 WHERE 14 + + CAST( + col1 AS SIGNED ) < NULL
----

skipif mysql # not compatible
query III rowsort label-2228
SELECT ALL * FROM tab0 cor0 WHERE 14 + + CAST ( + col1 AS INTEGER ) < NULL
----

query II rowsort
SELECT - + col0 AS col2, - col2 FROM tab1 AS cor0
----
-51
-96
-85
-59
-91
-68

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT 59 * - col1 IS NULL )
----

query I rowsort
SELECT ALL - col2 AS col2 FROM tab2 WHERE NOT - + col1 IS NULL
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-2232
SELECT DISTINCT ( + - COUNT( - col1 ) ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-2232
SELECT DISTINCT ( + - COUNT ( - col1 ) ) FROM tab2
----
-3

query I rowsort
SELECT DISTINCT ( + + 10 ) AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + col0 * + + 23 * col1 FROM tab0 cor0 WHERE NOT NULL IS NULL OR + - ( + 63 ) IN ( - col2, - 74, col0 + - + col1 * - 19 * + col2 )
----

query I rowsort
SELECT DISTINCT - 14 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-2236
SELECT ALL SUM( - + col1 ) FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-2236
SELECT ALL SUM ( - + col1 ) FROM tab0
----
-103

query II rowsort
SELECT col1 AS col2, 30 FROM tab2
----
51
30
67
30
77
30

query I rowsort
SELECT ALL - col2 * - - col1 FROM tab1 AS cor0
----
-1344
-295
-3196

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2239
SELECT DISTINCT COUNT( * ) DIV + 90 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2239
SELECT DISTINCT COUNT ( * ) / + 90 FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2240
SELECT ALL - col0 * - + 93 * - CAST( - col0 AS SIGNED ) FROM tab1 AS cor0
----
241893
671925
770133

skipif mysql # not compatible
query I rowsort label-2240
SELECT ALL - col0 * - + 93 * - CAST ( - col0 AS INTEGER ) FROM tab1 AS cor0
----
241893
671925
770133

onlyif mysql # aggregate syntax: 
query I rowsort label-2241
SELECT - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NULL >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-2241
SELECT - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NULL >= NULL
----
0

query I rowsort
SELECT - - col1 + - 89 AS col0 FROM tab1 AS cor0
----
-42
-75
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-2243
SELECT + COUNT( * ) + + ( + 63 ) AS col2 FROM tab2 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-2243
SELECT + COUNT ( * ) + + ( + 63 ) AS col2 FROM tab2 AS cor0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-2244
SELECT DISTINCT ( MIN( ALL - + col0 ) ) * + COUNT( * ) FROM tab0 AS cor0
----
-291

skipif mysql # not compatible
query I rowsort label-2244
SELECT DISTINCT ( MIN ( ALL - + col0 ) ) * + COUNT ( * ) FROM tab0 AS cor0
----
-291

query I rowsort
SELECT col2 + + col1 * col0 * - + 21 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-14898
-8866
-89749

query I rowsort
SELECT - 62 + + col2 AS col2 FROM tab0 AS cor0
----
-15
-52
37

query I rowsort
SELECT ALL + + 25 * - - col0 FROM tab2 AS cor0
----
1150
1600
1875

onlyif mysql # aggregate syntax: 
query I rowsort label-2248
SELECT ALL + COUNT( * ) + + COUNT( * ) + COUNT( * ) * + COUNT( * ) col0 FROM tab1 AS cor0
----
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2248
SELECT ALL + COUNT ( * ) + + COUNT ( * ) + COUNT ( * ) * + COUNT ( * ) col0 FROM tab1 AS cor0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2249
SELECT COUNT( + col0 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2249
SELECT COUNT ( + col0 ) AS col0 FROM tab0 AS cor0
----
3

query I rowsort
SELECT + + 5 AS col1 FROM tab0 AS cor0
----
5
5
5

query I rowsort
SELECT DISTINCT 78 FROM tab0 AS cor0 WHERE NOT ( NULL ) > NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-2252
SELECT - MAX( DISTINCT - col2 ) DIV + 99 AS col2, CAST( NULL AS DECIMAL ) FROM tab2
----
0
NULL

skipif mysql # not compatible
query II rowsort label-2252
SELECT - MAX ( DISTINCT - col2 ) / + 99 AS col2, CAST ( NULL AS REAL ) FROM tab2
----
0
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2253
SELECT MAX( ALL + CAST( col1 AS SIGNED ) ) FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-2253
SELECT MAX ( ALL + CAST ( col1 AS INTEGER ) ) FROM tab2
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2254
SELECT + COUNT( * ) FROM tab0 WHERE NOT ( NULL BETWEEN NULL AND + 53 )
----
0

skipif mysql # not compatible
query I rowsort label-2254
SELECT + COUNT ( * ) FROM tab0 WHERE NOT ( NULL BETWEEN NULL AND + 53 )
----
0

query I rowsort
SELECT DISTINCT + 44 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
44

onlyif mysql # aggregate syntax: 
query II rowsort label-2256
SELECT - 18 AS col0, 9 * 7 + + + COUNT( * ) + - 75 AS col0 FROM tab1 AS cor0
----
-18
-9

skipif mysql # not compatible
query II rowsort label-2256
SELECT - 18 AS col0, 9 * 7 + + + COUNT ( * ) + - 75 AS col0 FROM tab1 AS cor0
----
-18
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2257
SELECT DISTINCT - MAX( ALL + col0 ) AS col0 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-2257
SELECT DISTINCT - MAX ( ALL + col0 ) AS col0 FROM tab1 AS cor0
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-2258
SELECT COUNT( ALL + + 66 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2258
SELECT COUNT ( ALL + + 66 ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL 50 + 45 FROM tab1 AS cor0
----
95
95
95

onlyif mysql # aggregate syntax: 
query I rowsort label-2260
SELECT ALL SUM( ALL + col2 ) FROM tab1 cor0
----
223

skipif mysql # not compatible
query I rowsort label-2260
SELECT ALL SUM ( ALL + col2 ) FROM tab1 cor0
----
223

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 14 + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query II rowsort label-2262
SELECT ALL col2, col2 DIV - 25 FROM tab2
----
23
0
40
-1
58
-2

skipif mysql # not compatible
query II rowsort label-2262
SELECT ALL col2, col2 / - 25 FROM tab2
----
23
0
40
-1
58
-2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - col0 + col0 * + col2 * + col1 col1 FROM tab2
----
193024
285825
51842

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2264
SELECT ALL + COUNT( * ) * + + COUNT( * ) * CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2264
SELECT ALL + COUNT ( * ) * + + COUNT ( * ) * CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT 53 * col0 AS col2 FROM tab0
----
4611
5141
795

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + 79 col1 FROM tab1
----
-17
11
20

onlyif mysql # DIV for integer division: 
query I rowsort label-2267
SELECT ALL ( + - col1 ) DIV - - 96 AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2267
SELECT ALL ( + - col1 ) / - - 96 AS col1 FROM tab0
----
0
0
0

query II rowsort
SELECT ALL + col1, col0 * - col2 FROM tab0
----
1
-9603
21
-870
81
-705

query I rowsort
SELECT DISTINCT - col2 + + col2 FROM tab0 WHERE NOT 78 IS NULL
----
0

query I rowsort
SELECT + col0 AS col0 FROM tab1 WHERE NULL BETWEEN + + col1 * ( - col2 ) + + + col0 AND NULL
----

query I rowsort
SELECT DISTINCT - - col1 + col0 * col0 FROM tab1 AS cor0
----
2615
7230
8328

query I rowsort
SELECT - + col0 * - 90 AS col2 FROM tab2 WHERE - col1 IS NULL OR - 38 * 3 * - ( - 21 ) * + 87 + - col0 * col2 + ( - col1 ) + 66 + col0 + + + col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2273
SELECT ALL col0 * 1 + CAST( 5 AS SIGNED ) FROM tab2
----
51
69
80

skipif mysql # not compatible
query I rowsort label-2273
SELECT ALL col0 * 1 + CAST ( 5 AS INTEGER ) FROM tab2
----
51
69
80

query III rowsort
SELECT * FROM tab1 WHERE - col1 = + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2275
SELECT - COUNT( + 82 ) FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-2275
SELECT - COUNT ( + 82 ) FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-9

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 81 * - - 46 / + col2 - col1 + ( - + 11 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col1 NOT BETWEEN NULL AND 64
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 - + + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 0 * 65 - - col0 AS col1 FROM tab0 AS cor0
----
15
87
97

query I rowsort
SELECT - col1 FROM tab2 AS cor0 WHERE ( col0 ) * - + col1 + - col0 * - col2 IS NULL
----

query I rowsort
SELECT + ( - ( - col1 ) ) - + col2 + + 32 * - col0 AS col2 FROM tab0 AS cor0
----
-2773
-3202
-446

onlyif mysql # aggregate syntax: 
query I rowsort label-2282
SELECT DISTINCT - COUNT( * ) + 69 FROM tab0 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-2282
SELECT DISTINCT - COUNT ( * ) + 69 FROM tab0 AS cor0
----
66

query I rowsort
SELECT col1 - 18 AS col2 FROM tab2 cor0
----
33
49
59

onlyif mysql # DIV for integer division: 
query I rowsort label-2284
SELECT 16 DIV - col1 * - 37 - - - col1 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-2284
SELECT 16 / - col1 * - 37 - - - col1 FROM tab2 AS cor0
----
-51
-67
-77

query I rowsort
SELECT + - col2 * - + col0 - - col1 AS col2 FROM tab1 AS cor0
----
4910
5020
6235

query I rowsort
SELECT - ( ( col1 ) ) - - + col1 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT - col0 + - col1 + 7 FROM tab1
----
-131
-58
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-2288
SELECT - ( 85 ) + 97 + - MAX( ALL + col1 ) FROM tab0
----
-69

skipif mysql # not compatible
query I rowsort label-2288
SELECT - ( 85 ) + 97 + - MAX ( ALL + col1 ) FROM tab0
----
-69

query III rowsort
SELECT * FROM tab0 WHERE NOT + + col1 < - ( + 41 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-2290
SELECT DISTINCT col0 * col1 * - - 0 DIV col0 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2290
SELECT DISTINCT col0 * col1 * - - 0 / col0 AS col1 FROM tab2
----
0

query I rowsort
SELECT ALL + col2 * + 94 * - 35 AS col2 FROM tab2 WHERE ( NULL <= NULL )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2292
SELECT DISTINCT - col0 * - 17 * 45 * col2 DIV - + CAST( - col2 AS SIGNED ), col2 FROM tab2
----
35190
23
48960
40
57375
58

skipif mysql # not compatible
query II rowsort label-2292
SELECT DISTINCT - col0 * - 17 * 45 * col2 / - + CAST ( - col2 AS INTEGER ), col2 FROM tab2
----
35190
23
48960
40
57375
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 / + col1 + - - col1 * - col2 + 81 AS col2, 24 col1 FROM tab2 WHERE col0 / - col0 * 78 - + 89 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2294
SELECT DISTINCT + + col1 DIV col0 AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2294
SELECT DISTINCT + + col1 / col0 AS col1 FROM tab1 AS cor0
----
0

query II rowsort
SELECT + col2, - col2 + + col1 AS col0 FROM tab0 AS cor0
----
10
11
47
34
99
-98

query I rowsort
SELECT - ( + 96 ) AS col0 FROM tab0 AS cor0
----
-96
-96
-96

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + col2 + col0 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col2 * 91 + col2 AS col1 FROM tab0
----
-4230
-8910
-900

query I rowsort
SELECT col2 / col1 FROM tab2 WHERE NOT ( col2 ) <> - col2
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND ( col2 + col1 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col1 NOT IN ( + 5 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2302
SELECT + MAX( ALL + 5 ) + - COUNT( * ) AS col2 FROM tab1
----
2

skipif mysql # not compatible
query I rowsort label-2302
SELECT + MAX ( ALL + 5 ) + - COUNT ( * ) AS col2 FROM tab1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2303
SELECT MIN( 3 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2303
SELECT MIN ( 3 ) AS col1 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2304
SELECT - COUNT( * ) col1 FROM tab2 WHERE NOT 19 * 19 - col2 * + col1 IS NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2304
SELECT - COUNT ( * ) col1 FROM tab2 WHERE NOT 19 * 19 - col2 * + col1 IS NULL
----
-3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col1 + + col1 * - 33 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col0 ) + col2 col1 FROM tab2
----
104
133
69

query I rowsort
SELECT 83 * - col0 FROM tab2
----
-3818
-5312
-6225

query I rowsort
SELECT col2 + - 51 AS col2 FROM tab2
----
-11
-28
7

query I rowsort
SELECT 26 * + 35 AS col2 FROM tab0 WHERE - col0 IS NOT NULL
----
910
910
910

query I rowsort
SELECT ALL - col0 * col2 FROM tab0 WHERE col2 >= - 62 + col0
----
-705
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-2311
SELECT ALL MIN( ALL - ( - col2 ) ) FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-2311
SELECT ALL MIN ( ALL - ( - col2 ) ) FROM tab1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-2312
SELECT DISTINCT + COUNT( * ) + - COUNT( * ) * - 89 FROM tab2
----
270

skipif mysql # not compatible
query I rowsort label-2312
SELECT DISTINCT + COUNT ( * ) + - COUNT ( * ) * - 89 FROM tab2
----
270

onlyif mysql # DIV for integer division: 
query I rowsort label-2313
SELECT DISTINCT - col0 DIV + col1 AS col1 FROM tab2 AS cor0 WHERE - 47 + - col0 < + 33 - 40
----
-1
0

skipif mysql # not compatible
query I rowsort label-2313
SELECT DISTINCT - col0 / + col1 AS col1 FROM tab2 AS cor0 WHERE - 47 + - col0 < + 33 - 40
----
-1
0

query III rowsort
SELECT * FROM tab1 WHERE col2 < 58 / - col1
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL IN ( 69 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2316
SELECT col1 DIV + ( col2 ) + col0 FROM tab0 AS cor0
----
16
89
97

skipif mysql # not compatible
query I rowsort label-2316
SELECT col1 / + ( col2 ) + col0 FROM tab0 AS cor0
----
16
89
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2317
SELECT DISTINCT SUM( DISTINCT 95 ) AS col2 FROM tab0 AS cor0
----
95

skipif mysql # not compatible
query I rowsort label-2317
SELECT DISTINCT SUM ( DISTINCT 95 ) AS col2 FROM tab0 AS cor0
----
95

query I rowsort
SELECT + 38 + - col1 * - 43 FROM tab1 cor0
----
2059
253
640

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab0 AS cor0 WHERE NOT + col1 IN ( - col2 )
----
-15
-87
-97

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 NOT IN ( col2 * 31 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - col0 - - 85 col2 FROM tab0 AS cor0
----
310
7654
9494

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( 71 ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2323
SELECT + COUNT( - col1 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2323
SELECT + COUNT ( - col1 ) AS col2 FROM tab1
----
3

query I rowsort
SELECT DISTINCT + 72 AS col1 FROM tab2
----
72

query I rowsort
SELECT ALL 66 AS col1 FROM tab1 cor0
----
66
66
66

query I rowsort
SELECT col2 + - ( - col2 ) AS col1 FROM tab1 AS cor0 WHERE NOT ( + col2 ) = + col2
----

query I rowsort
SELECT ALL + + col1 * - - col0 * - col2 + col2 FROM tab1 AS cor0
----
-25016
-290768
-68448

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2328
SELECT DISTINCT * FROM tab2 WHERE NOT NULL >= - + col2 + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2328
SELECT DISTINCT * FROM tab2 WHERE NOT NULL >= - + col2 + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT + 40 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2330
SELECT DISTINCT col1 DIV - CAST( - col2 AS SIGNED ) AS col0 FROM tab0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-2330
SELECT DISTINCT col1 / - CAST ( - col2 AS INTEGER ) AS col0 FROM tab0
----
0
1
2

query IIIIII rowsort
SELECT * FROM ( tab1 AS cor0 CROSS JOIN tab0 cor1 ) WHERE NOT + 81 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2332
SELECT 86 * + + COUNT( * ) + - 19 AS col2 FROM tab2
----
239

skipif mysql # not compatible
query I rowsort label-2332
SELECT 86 * + + COUNT ( * ) + - 19 AS col2 FROM tab2
----
239

query I rowsort
SELECT ALL - ( + + col0 ) FROM tab0 AS cor0
----
-15
-87
-97

query I rowsort
SELECT ALL + col2 AS col1 FROM tab2 AS cor0 WHERE NULL BETWEEN col2 / + - col2 AND NULL
----

query I rowsort
SELECT ALL col2 AS col1 FROM tab2 AS cor0 WHERE NULL >= + col2 + - 88 + col0
----

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE NOT NULL > NULL
----

query I rowsort
SELECT DISTINCT - 60 * col2 * col2 * col0 AS col0 FROM tab1 AS cor0
----
-17753100
-25247040
-28200960

onlyif mysql # aggregate syntax: 
query I rowsort label-2338
SELECT DISTINCT + + 21 * - COUNT( * ) + - 92 * + 13 FROM tab0 cor0
----
-1259

skipif mysql # not compatible
query I rowsort label-2338
SELECT DISTINCT + + 21 * - COUNT ( * ) + - 92 * + 13 FROM tab0 cor0
----
-1259

query I rowsort
SELECT ALL + col2 + - ( + + col2 ) FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2340
SELECT DISTINCT - - COUNT( * ) FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2340
SELECT DISTINCT - - COUNT ( * ) FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2341
SELECT 1 AS col1 FROM tab1 WHERE NULL BETWEEN + - CAST( NULL AS SIGNED ) AND + 16
----

skipif mysql # not compatible
query I rowsort label-2341
SELECT 1 AS col1 FROM tab1 WHERE NULL BETWEEN + - CAST ( NULL AS INTEGER ) AND + 16
----

query I rowsort
SELECT DISTINCT col2 * - ( - 22 ) + - col1 AS col1 FROM tab1
----
1293
1449
2098

query III rowsort
SELECT * FROM tab1 WHERE ( - - col0 - + col1 + - col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2344
SELECT COUNT( * ) + 2 AS col2 FROM tab2 WHERE + - 48 * - - 49 IS NOT NULL
----
5

skipif mysql # not compatible
query I rowsort label-2344
SELECT COUNT ( * ) + 2 AS col2 FROM tab2 WHERE + - 48 * - - 49 IS NOT NULL
----
5

query I rowsort
SELECT ALL + 51 * - col1 + + 81 FROM tab0
----
-4050
-990
30

query I rowsort
SELECT col0 * 11 - - - col0 AS col0 FROM tab2
----
460
640
750

query I rowsort
SELECT - col2 FROM tab1 AS cor0 WHERE - ( col0 ) IS NOT NULL
----
-59
-68
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2348
SELECT + + CAST( NULL AS SIGNED ) + col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2348
SELECT + + CAST ( NULL AS INTEGER ) + col0 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 - col1 * - col0 FROM tab2
----
2369
4968
5083

onlyif mysql # aggregate syntax: 
query I rowsort label-2350
SELECT COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE ( NULL ) IS NULL
----
9

skipif mysql # not compatible
query I rowsort label-2350
SELECT COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE ( NULL ) IS NULL
----
9

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2351
SELECT DISTINCT - 25 - + + col0 DIV 86, - CAST( NULL AS SIGNED ) * ( CAST( NULL AS SIGNED ) ) col2 FROM tab2 cor0
----
-25
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2351
SELECT DISTINCT - 25 - + + col0 / 86, - CAST ( NULL AS INTEGER ) * ( CAST ( NULL AS INTEGER ) ) col2 FROM tab2 cor0
----
-25
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 col1, + col2 AS col0 FROM tab2 AS cor0
----
-46
23
-64
40
-75
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 3 col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2354
SELECT ALL + - CAST( NULL AS SIGNED ) / + 62 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2354
SELECT ALL + - CAST ( NULL AS INTEGER ) / + 62 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 * col2 * 57 FROM tab0 cor0
----
-11970
-216999
-5643

query I rowsort
SELECT + col0 * ( - - 22 ) * - col0 FROM tab1
----
-158950
-182182
-57222

onlyif mysql # aggregate syntax: 
query I rowsort label-2357
SELECT + COUNT( * ) * - COUNT( * ) * 72 FROM tab1
----
-648

skipif mysql # not compatible
query I rowsort label-2357
SELECT + COUNT ( * ) * - COUNT ( * ) * 72 FROM tab1
----
-648

query III rowsort
SELECT ALL * FROM tab0 WHERE + 95 < 65
----

query II rowsort
SELECT + col2, + col0 + col2 FROM tab1
----
59
144
68
159
96
147

query II rowsort
SELECT DISTINCT + 18, 55 AS col1 FROM tab1
----
18
55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 83 col1, - 14 col0 FROM tab2 AS cor0
----
83
-14
83
-14
83
-14

query II rowsort
SELECT ALL - 52 AS col1, col0 FROM tab1 AS cor0
----
-52
51
-52
85
-52
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2363
SELECT ALL - col1 * + CAST( - + col0 AS SIGNED ) * + - col2 AS col0 FROM tab0 cor0 WHERE NULL IS NULL
----
-18270
-57105
-9603

skipif mysql # not compatible
query I rowsort label-2363
SELECT ALL - col1 * + CAST ( - + col0 AS INTEGER ) * + - col2 AS col0 FROM tab0 cor0 WHERE NULL IS NULL
----
-18270
-57105
-9603

query I rowsort
SELECT DISTINCT + col2 * + 58 * - 82 AS col1 FROM tab0 AS cor0
----
-223532
-470844
-47560

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) NOT BETWEEN NULL AND ( NULL )
----

query II rowsort
SELECT ALL + col1 * col2 + + col1 * + col0 * - 24 AS col2, col1 - + - 94 + + col2 AS col2 FROM tab0 AS cor0
----
-2229
194
-25353
222
-43638
125

query I rowsort
SELECT DISTINCT 80 + + - col1 AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
13
29
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col1 FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2369
SELECT + CAST( + + 52 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
52
52
52

skipif mysql # not compatible
query I rowsort label-2369
SELECT + CAST ( + + 52 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
52
52
52

query I rowsort
SELECT + ( 70 ) FROM tab2 AS cor0
----
70
70
70

query I rowsort
SELECT + + 42 + + col2 AS col2 FROM tab1 AS cor0
----
101
110
138

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2372
SELECT DISTINCT - + CAST( NULL AS SIGNED ) * + MAX( DISTINCT + 99 ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2372
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * + MAX ( DISTINCT + 99 ) AS col0 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL BETWEEN col1 AND - col0
----

query I rowsort
SELECT ALL col0 + + - col0 AS col0 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - ( - + 90 ) * - col1 * + 53 + col0 * col1 > ( col0 - + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2376
SELECT - 45 + - - 85 + + col2 * + col0 * CAST( + - 77 AS SIGNED ) + + 46 AS col1 FROM tab1
----
-376906
-386069
-476390

skipif mysql # not compatible
query I rowsort label-2376
SELECT - 45 + - - 85 + + col2 * + col0 * CAST ( + - 77 AS INTEGER ) + + 46 AS col1 FROM tab1
----
-376906
-386069
-476390

query I rowsort
SELECT ALL 2 FROM tab2 WHERE NULL IS NULL
----
2
2
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2378
SELECT - COUNT( * ) * - 0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2378
SELECT - COUNT ( * ) * - 0 FROM tab0
----
0

query I rowsort
SELECT DISTINCT ( + ( - 47 ) ) + + col2 + - col2 * 48 AS col0 FROM tab0
----
-2256
-4700
-517

query I rowsort
SELECT ALL col1 FROM tab2 WHERE NOT NULL NOT IN ( - col0 * + 63 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2381
SELECT - 57 * - MIN( - col2 ) FROM tab1 cor0
----
-5472

skipif mysql # not compatible
query I rowsort label-2381
SELECT - 57 * - MIN ( - col2 ) FROM tab1 cor0
----
-5472

query I rowsort
SELECT ALL 24 * - + col1 + - col1 AS col2 FROM tab1 AS cor0
----
-1175
-125
-350

query I rowsort
SELECT DISTINCT 32 * 64 FROM tab0 AS cor0
----
2048

query I rowsort
SELECT - col2 * - + ( ( 22 ) ) AS col2 FROM tab2 AS cor0
----
1276
506
880

onlyif mysql # aggregate syntax: 
query I rowsort label-2385
SELECT ALL - 28 + + + SUM( - + 0 ) FROM tab0 AS cor0
----
-28

skipif mysql # not compatible
query I rowsort label-2385
SELECT ALL - 28 + + + SUM ( - + 0 ) FROM tab0 AS cor0
----
-28

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - - 30 + - - 13 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 81 col1 FROM tab1
----
81
81
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2388
SELECT + COUNT( - 88 ) FROM tab0 WHERE NOT - + CAST( NULL AS SIGNED ) <= + 38 * col0 * + 62
----
0

skipif mysql # not compatible
query I rowsort label-2388
SELECT + COUNT ( - 88 ) FROM tab0 WHERE NOT - + CAST ( NULL AS INTEGER ) <= + 38 * col0 * + 62
----
0

query I rowsort
SELECT - 92 AS col1 FROM tab2 AS cor0
----
-92
-92
-92

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - ( - col0 ) <> NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + ( - - col2 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 * - col2 AS col2, col0 * + col0 col1 FROM tab1 AS cor0
----
-4896
2601
-5015
7225
-6188
8281

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( 48 ) - + + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 90 * - col2 FROM tab1
----
-5310
-6120
-8640

onlyif mysql # DIV for integer division: 
query I rowsort label-2395
SELECT col0 DIV - - col1 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2395
SELECT col0 / - - col1 FROM tab2
----
0
0
1

query I rowsort
SELECT + col2 * + - 2 FROM tab0
----
-198
-20
-94

query III rowsort
SELECT * FROM tab1 WHERE NOT - - 77 + + + 4 <= - - col2
----
85
5
59
91
47
68

onlyif mysql # aggregate syntax: 
query II rowsort label-2398
SELECT ALL COUNT( * ) AS col0, + COUNT( col0 ) FROM tab2
----
3
3

skipif mysql # not compatible
query II rowsort label-2398
SELECT ALL COUNT ( * ) AS col0, + COUNT ( col0 ) FROM tab2
----
3
3

query III rowsort
SELECT * FROM tab2 WHERE NOT - 94 NOT BETWEEN NULL AND + 15 + ( + 47 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2400
SELECT CAST( NULL AS SIGNED ) AS col1, + COUNT( ALL - col0 ) col2 FROM tab2 AS cor0
----
NULL
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2400
SELECT CAST ( NULL AS INTEGER ) AS col1, + COUNT ( ALL - col0 ) col2 FROM tab2 AS cor0
----
NULL
3

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE - 8 + col0 = NULL
----

query I rowsort
SELECT DISTINCT + col2 * - 62 + col2 AS col1 FROM tab2
----
-1403
-2440
-3538

query II rowsort
SELECT DISTINCT - col2 AS col2, 69 AS col0 FROM tab1
----
-59
69
-68
69
-96
69

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2404
SELECT + CAST( NULL AS DECIMAL ) + - 74 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2404
SELECT + CAST ( NULL AS REAL ) + - 74 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 * + + 82 FROM tab2 AS cor0
----
3772
5248
6150

query I rowsort
SELECT ALL 56 FROM tab1 AS cor0 WHERE NOT NULL <= NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE + 70 IS NULL
----

query II rowsort
SELECT + 4 AS col0, col1 AS col1 FROM tab1 AS cor0
----
4
14
4
47
4
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2409
SELECT + col2 * + CAST( + + 69 AS SIGNED ) * + + col2 AS col1 FROM tab1 cor0
----
240189
319056
635904

skipif mysql # not compatible
query I rowsort label-2409
SELECT + col2 * + CAST ( + + 69 AS INTEGER ) * + + col2 AS col1 FROM tab1 cor0
----
240189
319056
635904

query I rowsort
SELECT DISTINCT + 81 + + col0 + + - col1 AS col1 FROM tab2 AS cor0
----
68
76
89

query I rowsort
SELECT ALL - 29 * - col2 + ( + col1 ) * - + 72 FROM tab1 AS cor0
----
-1412
1351
1776

query I rowsort
SELECT ALL col1 + + col0 + - col1 + + col1 FROM tab0
----
108
96
98

query I rowsort
SELECT + 8 - + 57 AS col1 FROM tab1
----
-49
-49
-49

query I rowsort
SELECT DISTINCT - col0 + - - col2 FROM tab0
----
-77
2
32

query I rowsort
SELECT - 75 - - + col0 * - + col0 FROM tab1
----
-2676
-7300
-8356

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2416
SELECT ALL 62 - + CAST( 39 AS SIGNED ) * - col2 AS col0 FROM tab1
----
2363
2714
3806

skipif mysql # not compatible
query I rowsort label-2416
SELECT ALL 62 - + CAST ( 39 AS INTEGER ) * - col2 AS col0 FROM tab1
----
2363
2714
3806

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2417
SELECT COUNT( * ) DIV - - COUNT( * ) + COUNT( * ) FROM tab2
----
4

skipif mysql # not compatible
query I rowsort label-2417
SELECT COUNT ( * ) / - - COUNT ( * ) + COUNT ( * ) FROM tab2
----
4

query I rowsort
SELECT DISTINCT col2 * - ( + + col1 ) FROM tab0
----
-210
-3807
-99

query I rowsort
SELECT DISTINCT + col1 + col2 * - - col0 FROM tab0 AS cor0
----
786
891
9604

onlyif mysql # aggregate syntax: 
query I rowsort label-2420
SELECT ALL MAX( + + col2 ) AS col0 FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-2420
SELECT ALL MAX ( + + col2 ) AS col0 FROM tab2
----
58

query I rowsort
SELECT ALL 93 * col0 AS col2 FROM tab1 WHERE - - 42 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2422
SELECT ALL COUNT( * ) * CAST( NULL AS SIGNED ) AS col0 FROM tab2 WHERE NOT + - col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2422
SELECT ALL COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col0 FROM tab2 WHERE NOT + - col2 IS NULL
----
NULL

query I rowsort
SELECT - col2 AS col1 FROM tab2 AS cor0 WHERE NOT col2 NOT IN ( - col0 + - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2424
SELECT ALL + 16 * + COUNT( * ) FROM tab1 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-2424
SELECT ALL + 16 * + COUNT ( * ) FROM tab1 AS cor0
----
48

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN 1 AND + 12
----

query II rowsort
SELECT DISTINCT + - col1 AS col1, col0 FROM tab2 AS cor0 WHERE NULL = - col1
----

query I rowsort
SELECT ALL + - 61 FROM tab0 AS cor0 WHERE col1 * - - 64 NOT IN ( - 82 + col2, col2 )
----
-61
-61
-61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2428
SELECT ALL - 7 DIV + + 19 + COUNT( * ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2428
SELECT ALL - 7 / + + 19 + COUNT ( * ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT + 61 * + col0 AS col2 FROM tab0 AS cor0
----
5307
5917
915

query II rowsort
SELECT DISTINCT + - col2, + col0 / 60 AS col0 FROM tab1 AS cor0 WHERE NOT - 62 IS NOT NULL
----

query I rowsort
SELECT - + 94 AS col0 FROM tab2 cor0
----
-94
-94
-94

query I rowsort
SELECT - col1 * - + 42 FROM tab1
----
1974
210
588

query I rowsort
SELECT - + 23 + + + col1 FROM tab1 WHERE NOT NULL < + + col2 * - 30 + + col2 - + + col0
----

query I rowsort
SELECT ALL col2 * - - col0 * - col2 AS col2 FROM tab1
----
-295885
-420784
-470016

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2435
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( + 64, col0 * CAST( col2 AS SIGNED ) * 26 + CAST( + col1 AS SIGNED ) - col2 + + + col1 * + col2 * - - col1 * - + 42 * + col1 - col0 )
----

skipif mysql # not compatible
query III rowsort label-2435
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( + 64, col0 * CAST ( col2 AS INTEGER ) * 26 + CAST ( + col1 AS INTEGER ) - col2 + + + col1 * + col2 * - - col1 * - + 42 * + col1 - col0 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE 7 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2437
SELECT ALL 20 * - + ( + SUM( - CAST( 28 AS SIGNED ) ) ) FROM tab0
----
1680

skipif mysql # not compatible
query I rowsort label-2437
SELECT ALL 20 * - + ( + SUM ( - CAST ( 28 AS INTEGER ) ) ) FROM tab0
----
1680

onlyif mysql # aggregate syntax: 
query I rowsort label-2438
SELECT - COUNT( - + col2 ) AS col0 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2438
SELECT - COUNT ( - + col2 ) AS col0 FROM tab0 cor0
----
-3

query I rowsort
SELECT ALL ( 84 ) AS col2 FROM tab2
----
84
84
84

query III rowsort
SELECT * FROM tab1 WHERE ( NULL <= NULL )
----

query I rowsort
SELECT DISTINCT col0 * - - 97 AS col1 FROM tab1
----
4947
8245
8827

query I rowsort
SELECT + col0 AS col2 FROM tab1 cor0 WHERE 89 NOT BETWEEN + + col2 + - col1 AND 46 + + col0
----

query I rowsort
SELECT + 89 AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL OR - + 99 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL ( 8 ) FROM tab0 AS cor0
----
8
8
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2446
SELECT ALL + - 47 + 73 - COUNT( * ) AS col0 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-2446
SELECT ALL + - 47 + 73 - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
23

query I rowsort
SELECT ALL + - col1 + + col0 * + ( + 23 ) FROM tab1 AS cor0
----
1159
1950
2046

onlyif mysql # aggregate syntax: 
query I rowsort label-2448
SELECT ALL - COUNT( DISTINCT - col1 ) AS col1 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2448
SELECT ALL - COUNT ( DISTINCT - col1 ) AS col1 FROM tab1 cor0
----
-3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 64 > + 99
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 84 + + col2 col0 FROM tab0 AS cor0
----
-37
-74
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 44 + + 31 col2 FROM tab1 AS cor0
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-2452
SELECT - ( - COUNT( * ) ) + MIN( + col2 ) FROM tab2 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-2452
SELECT - ( - COUNT ( * ) ) + MIN ( + col2 ) FROM tab2 AS cor0
----
26

query II rowsort
SELECT DISTINCT 58 * col0 * 68 - col2 AS col0, col0 * col1 * + 84 FROM tab1
----
201048
59976
335181
35700
358836
359268

query I rowsort
SELECT DISTINCT + ( + 73 ) * - col1 * - + ( + 11 ) + 9 - + col0 * - 36 FROM tab1
----
13087
41026
7084

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2455
SELECT - col0 AS col1 FROM tab0 WHERE CAST( - 47 AS SIGNED ) - - - col0 + - - 87 + - + col1 <> NULL
----

skipif mysql # not compatible
query I rowsort label-2455
SELECT - col0 AS col1 FROM tab0 WHERE CAST ( - 47 AS INTEGER ) - - - col0 + - - 87 + - + col1 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + + - col2 col2 FROM tab1
----
-118
-136
-192

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2457
SELECT ALL - col1 - - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2457
SELECT ALL - col1 - - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 36 * 42 - - - col2 FROM tab1
----
1416
1444
1453

onlyif mysql # aggregate syntax: 
query II rowsort label-2459
SELECT ALL 4, 5 - + COUNT( * ) AS col1 FROM tab0 AS cor0
----
4
2

skipif mysql # not compatible
query II rowsort label-2459
SELECT ALL 4, 5 - + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
4
2

query I rowsort
SELECT ALL col1 + 32 FROM tab2 AS cor0 WHERE col1 <> NULL
----

query I rowsort
SELECT ALL + col0 * - 14 + 86 AS col1 FROM tab2 cor0
----
-558
-810
-964

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2462
SELECT DISTINCT - + COUNT( * ) DIV 88 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2462
SELECT DISTINCT - + COUNT ( * ) / 88 FROM tab1 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-2463
SELECT DISTINCT col2, col1 DIV + + ( ( + col1 ) ) FROM tab2
----
23
1
40
1
58
1

skipif mysql # not compatible
query II rowsort label-2463
SELECT DISTINCT col2, col1 / + + ( ( + col1 ) ) FROM tab2
----
23
1
40
1
58
1

query I rowsort
SELECT col0 * 5 AS col0 FROM tab1
----
255
425
455

onlyif mysql # DIV for integer division: 
query I rowsort label-2465
SELECT DISTINCT - col1 DIV - col0 AS col0 FROM tab2
----
0
1

skipif mysql # not compatible
query I rowsort label-2465
SELECT DISTINCT - col1 / - col0 AS col0 FROM tab2
----
0
1

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NOT NULL NOT BETWEEN NULL AND NULL )
----

query II rowsort
SELECT ALL 4 AS col2, col2 AS col2 FROM tab1
----
4
59
4
68
4
96

query II rowsort
SELECT ( col2 ) * + + 77, + 75 AS col2 FROM tab0
----
3619
75
7623
75
770
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2469
SELECT ALL COUNT( * ) + - 57 * + + COUNT( * ) + ( COUNT( * ) ) AS col2 FROM tab1 AS cor0
----
-165

skipif mysql # not compatible
query I rowsort label-2469
SELECT ALL COUNT ( * ) + - 57 * + + COUNT ( * ) + ( COUNT ( * ) ) AS col2 FROM tab1 AS cor0
----
-165

query II rowsort
SELECT - col0 + col0 - + col2, col1 * - + col2 AS col0 FROM tab2 AS cor0
----
-23
-1173
-40
-3080
-58
-3886

query I rowsort
SELECT + col2 + ( + 14 ) FROM tab1
----
110
73
82

query II rowsort
SELECT DISTINCT col2 + 43 AS col2, col0 * - - 15 FROM tab1
----
102
1275
111
1365
139
765

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2473
SELECT ALL col0 + CAST( NULL AS SIGNED ), 62 col2 FROM tab2
----
NULL
62
NULL
62
NULL
62

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2473
SELECT ALL col0 + CAST ( NULL AS INTEGER ), 62 col2 FROM tab2
----
NULL
62
NULL
62
NULL
62

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 68 NOT BETWEEN NULL AND - + 67
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + col2 ) col2 FROM tab0 AS cor0 WHERE NOT col2 + + col0 IS NULL
----
10
47
99

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( - - col1 + 91 IS NULL )
----

query I rowsort
SELECT 92 - - - 13 FROM tab1 AS cor0
----
79
79
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 2 - - 72 col2 FROM tab1 AS cor0
----
70
70
70

query I rowsort
SELECT ALL + 43 + + col0 AS col2 FROM tab0 AS cor0
----
130
140
58

query I rowsort
SELECT col0 - - + 19 FROM tab2
----
65
83
94

query I rowsort
SELECT DISTINCT 81 + - col0 * 84 AS col0 FROM tab0
----
-1179
-7227
-8067

query I rowsort
SELECT + 69 - col0 * + col1 * - col1 FROM tab1
----
10065
201088
2194

onlyif mysql # aggregate syntax: 
query I rowsort label-2483
SELECT COUNT( * ) + 33 AS col2 FROM tab2
----
36

skipif mysql # not compatible
query I rowsort label-2483
SELECT COUNT ( * ) + 33 AS col2 FROM tab2
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-2484
SELECT - COUNT( * ) FROM tab0 WHERE ( + col2 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2484
SELECT - COUNT ( * ) FROM tab0 WHERE ( + col2 ) IS NULL
----
0

query I rowsort
SELECT col1 + + + 50 AS col1 FROM tab2
----
101
117
127

query I rowsort
SELECT DISTINCT + + 33 FROM tab0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 42 * + col1 IN ( col1 )
----

query I rowsort
SELECT 59 AS col0 FROM tab0 AS cor0 WHERE NOT + 31 BETWEEN col1 + + ( + col2 ) * + col2 * - - 6 * - col2 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 16, col0 col0 FROM tab0 AS cor0
----
16
15
16
87
16
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2490
SELECT DISTINCT SUM( DISTINCT + - col0 ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-185

skipif mysql # not compatible
query I rowsort label-2490
SELECT DISTINCT SUM ( DISTINCT + - col0 ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-185

onlyif mysql # DIV for integer division: 
query II rowsort label-2491
SELECT + 4 AS col2, col0 DIV - col1 AS col2 FROM tab2 AS cor0
----
4
-1
4
0
4
0

skipif mysql # not compatible
query II rowsort label-2491
SELECT + 4 AS col2, col0 / - col1 AS col2 FROM tab2 AS cor0
----
4
-1
4
0
4
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 47, + 63 col1 FROM tab2 AS cor0
----
47
63

onlyif mysql # aggregate syntax: 
query I rowsort label-2493
SELECT + - COUNT( ALL - + col2 ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2493
SELECT + - COUNT ( ALL - + col2 ) AS col1 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT DISTINCT col2 * + col0 + - 1 - - col0 FROM tab0 AS cor0
----
719
956
9699

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col0 + + - 17 IS NOT NULL OR ( - col2 + + col2 / - col0 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 * + 61 NOT BETWEEN + col1 + - col2 AND - - 13
----

query I rowsort
SELECT DISTINCT + col2 + + - col1 FROM tab0
----
-11
-34
98

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL <> - ( - col0 )
----

query I rowsort
SELECT DISTINCT 39 * col2 * + - ( - + col1 ) FROM tab2
----
120120
151554
45747

onlyif mysql # aggregate syntax: 
query I rowsort label-2500
SELECT + COUNT( * ) AS col2 FROM tab2 WHERE NOT - - 76 - + ( col0 ) + + 66 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2500
SELECT + COUNT ( * ) AS col2 FROM tab2 WHERE NOT - - 76 - + ( col0 ) + + 66 IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-2501
SELECT DISTINCT - col1 + - col0 AS col1, 36 DIV - col2 * col0 FROM tab1
----
-138
0
-65
0
-90
0

skipif mysql # not compatible
query II rowsort label-2501
SELECT DISTINCT - col1 + - col0 AS col1, 36 / - col2 * col0 FROM tab1
----
-138
0
-65
0
-90
0

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2502
SELECT ALL * FROM tab0 WHERE NOT NULL >= - CAST( - - 26 AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-2502
SELECT ALL * FROM tab0 WHERE NOT NULL >= - CAST ( - - 26 AS REAL )
----

onlyif mysql # DIV for integer division: 
query III rowsort label-2503
SELECT ALL + 11 DIV col0 AS col2, col1 AS col0, col1 FROM tab1
----
9 values hashing to 58ccb2217945177a0bd0c0eabddc2306

skipif mysql # not compatible
query III rowsort label-2503
SELECT ALL + 11 / col0 AS col2, col1 AS col0, col1 FROM tab1
----
9 values hashing to 58ccb2217945177a0bd0c0eabddc2306

onlyif mysql # aggregate syntax: 
query I rowsort label-2504
SELECT + MAX( - 97 ) + + - COUNT( * ) FROM tab1
----
-100

skipif mysql # not compatible
query I rowsort label-2504
SELECT + MAX ( - 97 ) + + - COUNT ( * ) FROM tab1
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-2505
SELECT DISTINCT + + ( MAX( + - col2 ) ) AS col1 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-2505
SELECT DISTINCT + + ( MAX ( + - col2 ) ) AS col1 FROM tab1 AS cor0
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2506
SELECT - 38 FROM tab2 AS cor0 WHERE + col2 * - ( - - 92 ) NOT BETWEEN CAST( col2 AS SIGNED ) AND NULL
----
-38
-38
-38

skipif mysql # not compatible
query I rowsort label-2506
SELECT - 38 FROM tab2 AS cor0 WHERE + col2 * - ( - - 92 ) NOT BETWEEN CAST ( col2 AS INTEGER ) AND NULL
----
-38
-38
-38

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NOT + + 48 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-2508
SELECT - + ( - - col1 ) DIV - 81 + - 73 FROM tab1 AS cor0
----
-73
-73
-73

skipif mysql # not compatible
query I rowsort label-2508
SELECT - + ( - - col1 ) / - 81 + - 73 FROM tab1 AS cor0
----
-73
-73
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2509
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - ( col1 ) + + col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2509
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - ( col1 ) + + col2 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2510
SELECT - 24 * - CAST( NULL AS SIGNED ) + - ( - 84 ) + + col2 * - col1 * - - 63 + col1 * + - 80 col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2510
SELECT - 24 * - CAST ( NULL AS INTEGER ) + - ( - 84 ) + + col2 * - col1 * - - 63 + col1 * + - 80 col0 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 92 col2 FROM tab2 AS cor0
----
-92
-92
-92

query I rowsort
SELECT - 7 + + - 59 FROM tab0 AS cor0
----
-66
-66
-66

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2513
SELECT DISTINCT col0 + - 85, + CAST( NULL AS SIGNED ) + + + col2 * - col1 AS col0 FROM tab1 AS cor0 WHERE NOT - 64 + + 88 * 61 > NULL
----

skipif mysql # not compatible
query II rowsort label-2513
SELECT DISTINCT col0 + - 85, + CAST ( NULL AS INTEGER ) + + + col2 * - col1 AS col0 FROM tab1 AS cor0 WHERE NOT - 64 + + 88 * 61 > NULL
----

query I rowsort
SELECT col2 + - - col1 FROM tab0 cor0
----
100
128
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - 84 col2 FROM tab2 AS cor0
----
-20
-38
-9

query II rowsort
SELECT DISTINCT + col2 AS col1, col2 - - col0 FROM tab0 AS cor0
----
10
97
47
62
99
196

query I rowsort
SELECT DISTINCT col2 + - 32 * - + 90 FROM tab2 AS cor0
----
2903
2920
2938

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2518
SELECT + col1 col2 FROM tab0 AS cor0 WHERE col2 + + CAST( NULL AS DECIMAL ) + + col2 + + 10 * + 60 BETWEEN - + col1 AND NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2518
SELECT + col1 col2 FROM tab0 AS cor0 WHERE col2 + + CAST ( NULL AS REAL ) + + col2 + + 10 * + 60 BETWEEN - + col1 AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + - 84 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-2520
SELECT 13 AS col2, COUNT( * ) FROM tab2, tab0 AS cor0
----
13
9

skipif mysql # not compatible
query II rowsort label-2520
SELECT 13 AS col2, COUNT ( * ) FROM tab2, tab0 AS cor0
----
13
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2521
SELECT DISTINCT + COUNT( * ) - + - 80 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
89

skipif mysql # not compatible
query I rowsort label-2521
SELECT DISTINCT + COUNT ( * ) - + - 80 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
89

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 + - - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 74 * 61 * col0 * + - col0 AS col0 FROM tab1 AS cor0 WHERE NOT - col1 = + col2 / 39 - + col0
----
11740914
32613650
37380434

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL IN ( 17 )
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT 66 = - 66
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT col0, ( + col0 ) + + + 9 AS col2 FROM tab0 AS cor0
----
15
24
87
96
97
106

query I rowsort
SELECT DISTINCT - + col0 * - + col1 - - + col0 FROM tab2 AS cor0
----
2392
4992
5100

query I rowsort
SELECT ALL col1 + + col2 * + - col1 AS col0 FROM tab1
----
-1330
-290
-3149

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2529
SELECT + CAST( NULL AS DECIMAL ) * + CAST( + COUNT( * ) AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2529
SELECT + CAST ( NULL AS REAL ) * + CAST ( + COUNT ( * ) AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT ALL - 78 + + col0 AS col2 FROM tab0
----
-63
19
9

onlyif mysql # aggregate syntax: 
query II rowsort label-2531
SELECT + 53, COUNT( * ) AS col1 FROM tab0
----
53
3

skipif mysql # not compatible
query II rowsort label-2531
SELECT + 53, COUNT ( * ) AS col1 FROM tab0
----
53
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2532
SELECT - COUNT( * ) * - ( 20 ) AS col2 FROM tab2
----
60

skipif mysql # not compatible
query I rowsort label-2532
SELECT - COUNT ( * ) * - ( 20 ) AS col2 FROM tab2
----
60

query II rowsort
SELECT - col2 * - col2, + col1 FROM tab0
----
100
21
2209
81
9801
1

query I rowsort
SELECT DISTINCT + ( + 95 ) FROM tab2 WHERE + col2 IS NOT NULL
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-2535
SELECT DISTINCT + 95 * + - COUNT( * ) AS col0 FROM tab1
----
-285

skipif mysql # not compatible
query I rowsort label-2535
SELECT DISTINCT + 95 * + - COUNT ( * ) AS col0 FROM tab1
----
-285

query I rowsort
SELECT + 2 * + 6 AS col0 FROM tab2
----
12
12
12

query I rowsort
SELECT DISTINCT + ( - 56 ) + ( - - col2 ) + - col1 - col1 FROM tab2 AS cor0
----
-132
-135
-170

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2538
SELECT + + 53 * - col1 + + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2538
SELECT + + 53 * - col1 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 53 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to fee5c00ad71c23e23683a32c71fe6e7d

query I rowsort
SELECT ALL + 88 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37

query I rowsort
SELECT DISTINCT - col2 - + - 30 FROM tab1
----
-29
-38
-66

query I rowsort
SELECT + col2 - + 48 * + + col0 AS col2 FROM tab2 AS cor0
----
-2185
-3032
-3542

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2543
SELECT DISTINCT - SUM( + col0 ) DIV - 14, + COUNT( * ) AS col0 FROM tab2 AS cor0
----
13
3

skipif mysql # not compatible
query II rowsort label-2543
SELECT DISTINCT - SUM ( + col0 ) / - 14, + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
13
3

query I rowsort
SELECT - 77 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-77
-77
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-2545
SELECT ALL - COUNT( DISTINCT - - col1 ) * - ( - - 91 ) AS col0 FROM tab2 AS cor0
----
273

skipif mysql # not compatible
query I rowsort label-2545
SELECT ALL - COUNT ( DISTINCT - - col1 ) * - ( - - 91 ) AS col0 FROM tab2 AS cor0
----
273

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2546
SELECT - 37 / - CAST( NULL AS SIGNED ) * col2 * - + 84 * 81 + + CAST( + col2 AS SIGNED ) + col0 * + + 97 + - col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2546
SELECT - 37 / - CAST ( NULL AS INTEGER ) * col2 * - + 84 * 81 + + CAST ( + col2 AS INTEGER ) + col0 * + + 97 + - col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2547
SELECT - COUNT( * ) * + MIN( + + 75 ) FROM tab0 AS cor0
----
-225

skipif mysql # not compatible
query I rowsort label-2547
SELECT - COUNT ( * ) * + MIN ( + + 75 ) FROM tab0 AS cor0
----
-225

query I rowsort
SELECT ALL ( - 12 ) AS col2 FROM tab1
----
-12
-12
-12

query I rowsort
SELECT + col1 * + - 82 FROM tab1
----
-1148
-3854
-410

query I rowsort
SELECT ALL - 76 * + + col2 FROM tab0
----
-3572
-7524
-760

query I rowsort
SELECT DISTINCT 61 * - + col1 FROM tab2
----
-3111
-4087
-4697

onlyif mysql # aggregate syntax: 
query I rowsort label-2552
SELECT COUNT( - 83 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2552
SELECT COUNT ( - 83 ) FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2553
SELECT + CAST( - 73 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-73
-73
-73

skipif mysql # not compatible
query I rowsort label-2553
SELECT + CAST ( - 73 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-73
-73
-73

query I rowsort
SELECT - ( - 13 ) FROM tab1 cor0
----
13
13
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2555
SELECT + 7 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2555
SELECT + 7 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + 4 * 10 FROM tab2 AS cor0
----
-40
-40
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-2557
SELECT + col2 DIV - 58 AS col2 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2557
SELECT + col2 / - 58 AS col2 FROM tab0
----
-1
0
0

query I rowsort
SELECT + col2 AS col1 FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----

query II rowsort
SELECT - + col1 + - - col1 AS col2, col1 FROM tab0 cor0
----
0
1
0
21
0
81

query I rowsort
SELECT - - col2 + + 32 * 7 FROM tab0 AS cor0
----
234
271
323

query I rowsort
SELECT DISTINCT col2 + - col2 + + + col1 FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT ALL + - ( + + col0 ) + - - 35 AS col0 FROM tab2 AS cor0
----
-11
-29
-40

query I rowsort
SELECT DISTINCT 61 + + 0 FROM tab1
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2564
SELECT DISTINCT + col0 + CAST( col2 AS SIGNED ) AS col0 FROM tab2
----
104
133
69

skipif mysql # not compatible
query I rowsort label-2564
SELECT DISTINCT + col0 + CAST ( col2 AS INTEGER ) AS col0 FROM tab2
----
104
133
69

query I rowsort
SELECT DISTINCT ( - 85 ) + + + col1 FROM tab0
----
-4
-64
-84

query I rowsort
SELECT + 38 AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + ( 2 ) * + - 73 FROM tab0 AS cor0
----
-146
-146
-146

query I rowsort
SELECT ( - + 13 ) AS col1 FROM tab0 AS cor0
----
-13
-13
-13

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 41 / - col0 * + 65 - + + col2 >= + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2570
SELECT DISTINCT + COUNT( * ) DIV 22 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2570
SELECT DISTINCT + COUNT ( * ) / 22 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL - col2 * - col0 + + + 8 * 30 FROM tab1
----
5136
5255
6428

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2572
SELECT + col0 * + - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2572
SELECT + col0 * + - CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2573
SELECT ALL + col1 * + CAST( + 70 AS SIGNED ) + + CAST( NULL AS SIGNED ) * + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2573
SELECT ALL + col1 * + CAST ( + 70 AS INTEGER ) + + CAST ( NULL AS INTEGER ) * + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - 90 * - - 6 AS col1 FROM tab1 AS cor0
----
-540
-540
-540

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT NULL NOT BETWEEN NULL AND + + col2 )
----

query I rowsort
SELECT - + col1 FROM tab1 AS cor0 WHERE NOT + col0 IN ( - col2 / - + 64, ( + + col0 ), - col0 )
----

query I rowsort
SELECT + 45 * + 76 FROM tab2 AS cor0 WHERE NOT col0 + - col1 + 40 - col2 * - col1 * + - col1 IS NOT NULL
----

query I rowsort
SELECT 99 + + col1 FROM tab1 AS cor0 WHERE NOT ( NOT ( ( NULL ) IS NULL ) )
----
104
113
146

onlyif mysql # aggregate syntax: 
query I rowsort label-2579
SELECT DISTINCT - SUM( - col0 ) col2 FROM tab2 cor0
----
185

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2579
SELECT DISTINCT - SUM ( - col0 ) col2 FROM tab2 cor0
----
185

query I rowsort
SELECT DISTINCT - 58 + 57 / + col0 AS col0 FROM tab1 AS cor0 WHERE NOT ( col1 ) NOT BETWEEN + col1 + - - 3 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col0 * 66 <> col0
----

query I rowsort
SELECT ( - - ( - col2 ) ) FROM tab0
----
-10
-47
-99

query II rowsort
SELECT col2 * + col1 AS col0, col0 + - col1 AS col2 FROM tab2
----
1173
-5
3080
-13
3886
8

onlyif mysql # DIV for integer division: 
query I rowsort label-2584
SELECT col0 DIV ( - + 97 ) AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2584
SELECT col0 / ( - + 97 ) AS col2 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2585
SELECT + 81 * + + col2 + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2585
SELECT + 81 * + + col2 + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE - 76 + - ( + col1 ) + col2 * + + col1 IS NULL
----

query I rowsort
SELECT DISTINCT + 15 - + col0 AS col1 FROM tab1 WHERE + col0 IS NULL
----

query I rowsort
SELECT DISTINCT - col1 / - col2 / + + col0 - - ( - + col2 ) FROM tab0 AS cor0 WHERE NULL NOT BETWEEN - col0 AND + 68 * ( - 69 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2589
SELECT DISTINCT COUNT( ALL + CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2589
SELECT DISTINCT COUNT ( ALL + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
0

query II rowsort
SELECT col1 AS col1, col1 FROM tab2 cor0
----
51
51
67
67
77
77

onlyif mysql # aggregate syntax: 
query II rowsort label-2591
SELECT - + COUNT( * ) AS col0, - 44 * + 54 AS col2 FROM tab2 cor0
----
-3
-2376

skipif mysql # not compatible
query II rowsort label-2591
SELECT - + COUNT ( * ) AS col0, - 44 * + 54 AS col2 FROM tab2 cor0
----
-3
-2376

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2592
SELECT * FROM tab1 AS cor0 WHERE col1 * - CAST( NULL AS SIGNED ) <> 91
----

skipif mysql # not compatible
query III rowsort label-2592
SELECT * FROM tab1 AS cor0 WHERE col1 * - CAST ( NULL AS INTEGER ) <> 91
----

query I rowsort
SELECT ALL - 57 + col2 * - - ( - + ( + 53 ) ) FROM tab0 cor0
----
-2548
-5304
-587

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 > + col2 / col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2595
SELECT ALL - CAST( - col0 AS SIGNED ) + - col2 FROM tab0
----
-2
-32
77

skipif mysql # not compatible
query I rowsort label-2595
SELECT ALL - CAST ( - col0 AS INTEGER ) + - col2 FROM tab0
----
-2
-32
77

query I rowsort
SELECT ALL + col2 * + col1 + - + col2 AS col2 FROM tab2
----
1150
3040
3828

onlyif mysql # DIV for integer division: 
query II rowsort label-2597
SELECT col2 - + 98 * + - col2 * + col1 AS col2, col1 DIV - col0 FROM tab2
----
114977
-1
301880
-1
380886
0

skipif mysql # not compatible
query II rowsort label-2597
SELECT col2 - + 98 * + - col2 * + col1 AS col2, col1 / - col0 FROM tab2
----
114977
-1
301880
-1
380886
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2598
SELECT - MIN( col1 ) + + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2598
SELECT - MIN ( col1 ) + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2599
SELECT AVG ( - ( + - CAST( NULL AS SIGNED ) ) ) + + 21 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2599
SELECT AVG ( - ( + - CAST ( NULL AS INTEGER ) ) ) + + 21 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT + - col0 * - - col2 AS col1 FROM tab0 WHERE NULL IS NULL AND NOT + col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 69 + + 18 col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT + ( - - col0 ) AS col2 FROM tab0 cor0
----
15
87
97

query I rowsort
SELECT ALL - 0 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) <> - + 72
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 BETWEEN + col0 AND NULL
----

query I rowsort
SELECT ALL + 78 FROM tab1 AS cor0 WHERE NOT - col1 + - - col0 IS NULL
----
78
78
78

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2606
SELECT * FROM tab2 AS cor0 WHERE NOT 78 + + CAST( NULL AS SIGNED ) * - 78 <> NULL
----

skipif mysql # not compatible
query III rowsort label-2606
SELECT * FROM tab2 AS cor0 WHERE NOT 78 + + CAST ( NULL AS INTEGER ) * - 78 <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2607
SELECT col0 DIV - - 29 FROM tab2
----
1
2
2

skipif mysql # not compatible
query I rowsort label-2607
SELECT col0 / - - 29 FROM tab2
----
1
2
2

query I rowsort
SELECT - col2 FROM tab1 WHERE NOT col1 * - - 12 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2609
SELECT col2 DIV - - 33 AS col2 FROM tab1
----
1
2
2

skipif mysql # not compatible
query I rowsort label-2609
SELECT col2 / - - 33 AS col2 FROM tab1
----
1
2
2

query II rowsort
SELECT + col0 AS col0, col1 FROM tab1 WHERE NOT + 12 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 21 * - col1 col2 FROM tab1 WHERE ( NULL ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 col1, - 92 FROM tab1 AS cor0
----
-51
-92
-85
-92
-91
-92

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2613
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NOT NULL NOT BETWEEN NULL AND - col2 + CAST( NULL AS SIGNED ) ) OR - col0 * + col1 + + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2613
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NOT NULL NOT BETWEEN NULL AND - col2 + CAST ( NULL AS INTEGER ) ) OR - col0 * + col1 + + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE + col2 * + + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( 46 ) + - 94 * col2 col0 FROM tab0 AS cor0
----
-4464
-9352
-986

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN 30 * - + 14 AND + col2
----

query II rowsort
SELECT DISTINCT - - col2 * - - ( 5 ), col0 AS col0 FROM tab1 AS cor0
----
295
85
340
91
480
51

query I rowsort
SELECT col0 * - - col2 * ( col2 ) + - - ( 27 ) FROM tab2 AS cor0
----
102427
24361
252327

query II rowsort
SELECT ALL - 33 * + col2 AS col0, col0 * + col1 + col2 FROM tab1 AS cor0 WHERE - col1 + 91 IS NULL
----

query I rowsort
SELECT - col2 + - + 40 FROM tab1 AS cor0
----
-108
-136
-99

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col1 > + 23 / - 30
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2622
SELECT ALL + - 55 FROM tab1 AS cor0 WHERE + col1 + + ( 32 ) - + + col1 * - CAST( NULL AS SIGNED ) IS NULL
----
-55
-55
-55

skipif mysql # not compatible
query I rowsort label-2622
SELECT ALL + - 55 FROM tab1 AS cor0 WHERE + col1 + + ( 32 ) - + + col1 * - CAST ( NULL AS INTEGER ) IS NULL
----
-55
-55
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2623
SELECT ALL 44 * col1 * col2 + - col1 * - CAST( NULL AS SIGNED ) * - col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2623
SELECT ALL 44 * col1 * col2 + - col1 * - CAST ( NULL AS INTEGER ) * - col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2624
SELECT ALL + SUM( col1 ) AS col0 FROM tab1 WHERE NOT ( + col2 ) * + 53 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2624
SELECT ALL + SUM ( col1 ) AS col0 FROM tab1 WHERE NOT ( + col2 ) * + 53 IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT 40 - + 76 FROM tab1
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2626
SELECT DISTINCT col2 * - ( + - col2 ) AS col1, - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
1600
NULL
3364
NULL
529
NULL

skipif mysql # not compatible
query II rowsort label-2626
SELECT DISTINCT col2 * - ( + - col2 ) AS col1, - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
1600
NULL
3364
NULL
529
NULL

query I rowsort
SELECT - + col1 - col0 * - 2 * + col1 FROM tab2 cor0
----
4641
9779
9983

query I rowsort
SELECT + + col2 - + 24 FROM tab0 AS cor0
----
-14
23
75

query III rowsort
SELECT * FROM tab2 WHERE NOT + - 31 * + + 48 * 42 NOT BETWEEN + col2 AND + + ( - - 0 )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2630
SELECT DISTINCT - - COUNT( + - col2 ) * + ( + - 60 ) + - COUNT( * ) + - - CAST( NULL AS DECIMAL ) * 8 * - COUNT( * ) FROM tab2 WHERE - - col1 = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2630
SELECT DISTINCT - - COUNT ( + - col2 ) * + ( + - 60 ) + - COUNT ( * ) + - - CAST ( NULL AS REAL ) * 8 * - COUNT ( * ) FROM tab2 WHERE - - col1 = NULL
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2631
SELECT + CAST( NULL AS DECIMAL ) * - col0 AS col0, col0 AS col0 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-2631
SELECT + CAST ( NULL AS REAL ) * - col0 AS col0, col0 AS col0 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

query II rowsort
SELECT + col1 * + + col0 - + ( - col2 ), col1 AS col1 FROM tab0 AS cor0
----
1262
81
1837
21
196
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2633
SELECT ALL CAST( NULL AS SIGNED ) * + 94 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2633
SELECT ALL CAST ( NULL AS INTEGER ) * + 94 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col1 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-14
-47
-5

query I rowsort
SELECT + col0 * - col2 * 79 FROM tab2
----
-202240
-343650
-83582

onlyif mysql # DIV for integer division: 
query I rowsort label-2636
SELECT col1 DIV + - col1 col1 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2636
SELECT col1 / + - col1 col1 FROM tab1
----
-1
-1
-1

query I rowsort
SELECT ALL + - ( - + col0 ) FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + col0 + - ( - col1 ) FROM tab2 AS cor0
----
141
142
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2639
SELECT - + COUNT( * ) + + 51 FROM tab1 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-2639
SELECT - + COUNT ( * ) + + 51 FROM tab1 AS cor0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-2640
SELECT DISTINCT + - 15 + - COUNT( * ) FROM tab2 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-2640
SELECT DISTINCT + - 15 + - COUNT ( * ) FROM tab2 AS cor0
----
-18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col1 + + ( col0 ), + 44 + + col0 col1 FROM tab1 AS cor0
----
138
135
65
95
90
129

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 col0 FROM tab2 WHERE NULL IS NULL
----
46
64
75

onlyif mysql # DIV for integer division: 
query I rowsort label-2643
SELECT ALL 18 + - col1 DIV - - col1 FROM tab0
----
17
17
17

skipif mysql # not compatible
query I rowsort label-2643
SELECT ALL 18 + - col1 / - - col1 FROM tab0
----
17
17
17

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col2 > ( NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2645
SELECT - COUNT( * ) AS col1, + COUNT( * ) FROM tab1 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-2645
SELECT - COUNT ( * ) AS col1, + COUNT ( * ) FROM tab1 AS cor0
----
-3
3

query I rowsort
SELECT + 91 * + 58 AS col1 FROM tab2 AS cor0
----
5278
5278
5278

onlyif mysql # aggregate syntax: 
query I rowsort label-2647
SELECT DISTINCT MIN( + - col0 ) col2 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2647
SELECT DISTINCT MIN ( + - col0 ) col2 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2648
SELECT DISTINCT 66 * + ( + + col0 ) + - - CAST( + 25 AS SIGNED ) DIV 41 FROM tab0 cor0
----
5742
6402
990

skipif mysql # not compatible
query I rowsort label-2648
SELECT DISTINCT 66 * + ( + + col0 ) + - - CAST ( + 25 AS INTEGER ) / 41 FROM tab0 cor0
----
5742
6402
990

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 col1 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2650
SELECT col1 - - 68 * - col0 + col0 DIV col2 col2 FROM tab0
----
-5887
-6595
-939

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2650
SELECT col1 - - 68 * - col0 + col0 / col2 col2 FROM tab0
----
-5887
-6595
-939

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2651
SELECT - 5 DIV + - COUNT( * ) - - 28 FROM tab2
----
29

skipif mysql # not compatible
query I rowsort label-2651
SELECT - 5 / + - COUNT ( * ) - - 28 FROM tab2
----
29

query I rowsort
SELECT - col2 - col2 + + col2 AS col2 FROM tab2
----
-23
-40
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-2653
SELECT 78 * + col1 - - col2 + col2 + - - col2 DIV - col0 - - 25 - + - 40 DIV - 90 * + 14 - + col2 FROM tab1
----
1212
3759
474

skipif mysql # not compatible
query I rowsort label-2653
SELECT 78 * + col1 - - col2 + col2 + - - col2 / - col0 - - 25 - + - 40 / - 90 * + 14 - + col2 FROM tab1
----
1212
3759
474

query I rowsort
SELECT ( + col1 ) * - col2 + - - col2 + - 69 AS col1 FROM tab2
----
-1219
-3109
-3897

query III rowsort
SELECT * FROM tab0 WHERE + + 85 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2656
SELECT ALL 30 DIV - - col0 - + 22 AS col1 FROM tab2
----
-22
-22
-22

skipif mysql # not compatible
query I rowsort label-2656
SELECT ALL 30 / - - col0 - + 22 AS col1 FROM tab2
----
-22
-22
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-2657
SELECT DISTINCT + MIN( DISTINCT ( - col0 ) ) AS col0 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-2657
SELECT DISTINCT + MIN ( DISTINCT ( - col0 ) ) AS col0 FROM tab2 AS cor0
----
-75

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2658
SELECT - AVG ( CAST( NULL AS DECIMAL ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2658
SELECT - AVG ( CAST ( NULL AS REAL ) ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - + 82 * - 78 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3b724acf28e8d80ecfb42caef6420911

onlyif mysql # DIV for integer division: 
query III rowsort label-2660
SELECT DISTINCT * FROM tab0 WHERE ( - col2 ) DIV - col1 IN ( + + col0 + - + col0 )
----
15
81
47
87
21
10

skipif mysql # not compatible
query III rowsort label-2660
SELECT DISTINCT * FROM tab0 WHERE ( - col2 ) / - col1 IN ( + + col0 + - + col0 )
----
15
81
47
87
21
10

query I rowsort
SELECT 62 * + 55 FROM tab1 AS cor0 JOIN tab0 AS cor1 ON NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2662
SELECT ALL + COUNT( + - col0 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2662
SELECT ALL + COUNT ( + - col0 ) AS col2 FROM tab0
----
3

query I rowsort
SELECT DISTINCT - 97 * + + 8 AS col0 FROM tab1 AS cor0
----
-776

query I rowsort
SELECT 31 * col0 AS col2 FROM tab1 AS cor0
----
1581
2635
2821

query I rowsort
SELECT col2 * + - 84 FROM tab2 AS cor0
----
-1932
-3360
-4872

query I rowsort
SELECT DISTINCT + 5 + - col1 FROM tab2 AS cor0
----
-46
-62
-72

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 58 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col2 * + + col0 * 97 + - - col2 FROM tab1
----
-474816
-486396
-600168

onlyif mysql # aggregate syntax: 
query I rowsort label-2669
SELECT - SUM( - + 18 ) + - 99 FROM tab0
----
-45

skipif mysql # not compatible
query I rowsort label-2669
SELECT - SUM ( - + 18 ) + - 99 FROM tab0
----
-45

query I rowsort
SELECT - col2 * - 67 + - 38 AS col2 FROM tab2
----
1503
2642
3848

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col2 = - 30
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE NOT + 79 = - - ( + + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - + 98 AS col2 FROM tab2 cor0
----
-98
-98
-98

query I rowsort
SELECT DISTINCT + - col0 * - + col1 AS col2 FROM tab2 AS cor0
----
2346
4928
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-2675
SELECT DISTINCT + + SUM( DISTINCT + 13 ) FROM tab0 cor0 WHERE col2 * + col2 BETWEEN ( - col2 ) AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2675
SELECT DISTINCT + + SUM ( DISTINCT + 13 ) FROM tab0 cor0 WHERE col2 * + col2 BETWEEN ( - col2 ) AND NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 col1 FROM tab1 AS cor0 WHERE NULL IN ( col2 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2677
SELECT DISTINCT CAST( NULL AS DECIMAL ) + - col1 * + col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2677
SELECT DISTINCT CAST ( NULL AS REAL ) + - col1 * + col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL 74 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

onlyif mysql # DIV for integer division: 
query I rowsort label-2679
SELECT ALL 47 DIV - col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2679
SELECT ALL 47 / - col2 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT - + col0 * + col2 - + 27 + + col0 FROM tab1 AS cor0
----
-4872
-4957
-6124

onlyif mysql # aggregate syntax: 
query I rowsort label-2681
SELECT - COUNT( * ) + + - ( + + COUNT( * ) ) FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-2681
SELECT - COUNT ( * ) + + - ( + + COUNT ( * ) ) FROM tab0 AS cor0
----
-6

query I rowsort
SELECT DISTINCT - 0 * + - 30 FROM tab2 AS cor0
----
0

query I rowsort
SELECT 62 + + + col1 FROM tab0 AS cor0
----
143
63
83

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN 90 AND col1 * - col2
----

query I rowsort
SELECT + - col1 AS col0 FROM tab1 WHERE NULL < + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2686
SELECT - SUM( + col0 ) col2 FROM tab1
----
-227

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2686
SELECT - SUM ( + col0 ) col2 FROM tab1
----
-227

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2687
SELECT + col0 * + col1 * - CAST( CAST( NULL AS SIGNED ) AS DECIMAL ) * - col1 + col1 AS col2, - 30 AS col0 FROM tab0
----
NULL
-30
NULL
-30
NULL
-30

skipif mysql # not compatible
query II rowsort label-2687
SELECT + col0 * + col1 * - CAST ( CAST ( NULL AS INTEGER ) AS REAL ) * - col1 + col1 AS col2, - 30 AS col0 FROM tab0
----
NULL
-30
NULL
-30
NULL
-30

query II rowsort
SELECT - 72 + + - col1 AS col1, 42 AS col0 FROM tab2 AS cor0 WHERE NOT col2 IS NOT NULL
----

query II rowsort
SELECT DISTINCT col2 AS col1, - col1 AS col1 FROM tab2 AS cor0
----
23
-51
40
-77
58
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-2690
SELECT DISTINCT col0 DIV + 98 AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2690
SELECT DISTINCT col0 / + 98 AS col0 FROM tab2 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL >= col2 - + + 43
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + ( 61 ) IN ( - 93, 69 * - col1 * - - col1, + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2693
SELECT DISTINCT - 27 + + - COUNT( * ) FROM tab0 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-2693
SELECT DISTINCT - 27 + + - COUNT ( * ) FROM tab0 AS cor0
----
-30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 col1 FROM tab0 AS cor0 WHERE NOT - col2 + + col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0, + col0 * - col0 * - 66 * + col1 col2 FROM tab2
----
-46
7122456
-64
20815872
-75
24873750

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2696
SELECT ALL col1 * - ( + CAST( + col0 AS SIGNED ) ) FROM tab1
----
-425
-4277
-714

skipif mysql # not compatible
query I rowsort label-2696
SELECT ALL col1 * - ( + CAST ( + col0 AS INTEGER ) ) FROM tab1
----
-425
-4277
-714

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2697
SELECT DISTINCT * FROM tab0 WHERE NOT CAST( NULL AS SIGNED ) + - col1 * - ( col1 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2697
SELECT DISTINCT * FROM tab0 WHERE NOT CAST ( NULL AS INTEGER ) + - col1 * - ( col1 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2698
SELECT COUNT( DISTINCT - 63 ) AS col0 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-2698
SELECT COUNT ( DISTINCT - 63 ) AS col0 FROM tab2
----
1

query III rowsort
SELECT * FROM tab2 WHERE - - col1 < ( - - col1 )
----

query I rowsort
SELECT 62 * col1 FROM tab0
----
1302
5022
62

onlyif mysql # DIV for integer division: 
query I rowsort label-2701
SELECT + col0 DIV - - ( + col0 ) AS col1 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2701
SELECT + col0 / - - ( + col0 ) AS col1 FROM tab1
----
1
1
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2702
SELECT + COUNT( * ), + COUNT( * ) AS col2 FROM tab0 WHERE + col2 * + col2 + + - col0 BETWEEN NULL AND NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-2702
SELECT + COUNT ( * ), + COUNT ( * ) AS col2 FROM tab0 WHERE + col2 * + col2 + + - col0 BETWEEN NULL AND NULL
----
0
0

query I rowsort
SELECT + 53 + + + col0 FROM tab0 AS cor0
----
140
150
68

query I rowsort
SELECT DISTINCT 41 + col1 AS col2 FROM tab0
----
122
42
62

query I rowsort
SELECT + 60 FROM tab0 WHERE NOT 58 < - col2 + 33 * + col1
----
60

query I rowsort
SELECT ALL - 26 + + 54 FROM tab1
----
28
28
28

onlyif mysql # aggregate syntax: 
query I rowsort label-2707
SELECT ALL + COUNT( * ) + + 29 AS col1 FROM tab0
----
32

skipif mysql # not compatible
query I rowsort label-2707
SELECT ALL + COUNT ( * ) + + 29 AS col1 FROM tab0
----
32

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab2 WHERE NOT NULL = NULL
----

query I rowsort
SELECT 91 FROM tab0 WHERE NOT + 6 * + 34 IS NULL
----
91
91
91

query I rowsort
SELECT - ( + col2 ) - - 10 AS col2 FROM tab1
----
-49
-58
-86

query I rowsort
SELECT ALL ( + 51 ) AS col1 FROM tab0
----
51
51
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 72 * col1 col0 FROM tab1
----
1008
3384
360

query I rowsort
SELECT col0 FROM tab0 WHERE - 66 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2714
SELECT DISTINCT + 82 DIV SUM( DISTINCT + ( + ( col1 ) ) ) col2 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2714
SELECT DISTINCT + 82 / SUM ( DISTINCT + ( + ( col1 ) ) ) col2 FROM tab0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2715
SELECT ALL 0 * + col0 FROM tab0 WHERE NOT ( + CAST( + col2 AS SIGNED ) ) NOT BETWEEN 92 + - col1 * 36 AND ( + 17 + - col2 / - 66 )
----
0

skipif mysql # not compatible
query I rowsort label-2715
SELECT ALL 0 * + col0 FROM tab0 WHERE NOT ( + CAST ( + col2 AS INTEGER ) ) NOT BETWEEN 92 + - col1 * 36 AND ( + 17 + - col2 / - 66 )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 col0 FROM tab1 WHERE col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2717
SELECT - col0 DIV + 53 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-2717
SELECT - col0 / + 53 FROM tab1
----
-1
-1
0

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab0 WHERE col1 + - col1 <= NULL
----

query I rowsort
SELECT DISTINCT col2 + - 19 AS col1 FROM tab0
----
-9
28
80

query I rowsort
SELECT DISTINCT + col0 * - col2 AS col0 FROM tab0 WHERE + 63 < ( col0 * - col1 + - col0 )
----

query I rowsort
SELECT DISTINCT + col1 - - 78 AS col2 FROM tab2
----
129
145
155

onlyif mysql # aggregate syntax: 
query I rowsort label-2722
SELECT - COUNT( * ) FROM tab2 WHERE - 49 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2722
SELECT - COUNT ( * ) FROM tab2 WHERE - 49 IS NOT NULL
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2723
SELECT ALL col1 * CAST( + col2 AS SIGNED ) AS col0 FROM tab2
----
1173
3080
3886

skipif mysql # not compatible
query I rowsort label-2723
SELECT ALL col1 * CAST ( + col2 AS INTEGER ) AS col0 FROM tab2
----
1173
3080
3886

query I rowsort
SELECT DISTINCT col2 + + 8 FROM tab2
----
31
48
66

query III rowsort
SELECT * FROM tab1 WHERE NULL = ( col1 * col2 )
----

query I rowsort
SELECT + 80 * col0 FROM tab0 WHERE NOT col1 > col1
----
1200
6960
7760

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN ( + 12 ) AND NULL
----

query I rowsort
SELECT ALL col0 * - col1 AS col2 FROM tab0 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT ALL + col2 * - col1 AS col1 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
-1173
-3080
-3886

onlyif mysql # aggregate syntax: 
query I rowsort label-2730
SELECT COUNT( * ) + COUNT( * ) col1 FROM tab0
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2730
SELECT COUNT ( * ) + COUNT ( * ) col1 FROM tab0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2731
SELECT MAX( ALL - 76 ) + ( + 94 ) * 39 FROM tab1
----
3590

skipif mysql # not compatible
query I rowsort label-2731
SELECT MAX ( ALL - 76 ) + ( + 94 ) * 39 FROM tab1
----
3590

onlyif mysql # DIV for integer division: 
query I rowsort label-2732
SELECT ALL + col2 DIV col2 FROM tab1 WHERE NOT ( col1 + col2 ) BETWEEN NULL AND col2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2732
SELECT ALL + col2 / col2 FROM tab1 WHERE NOT ( col1 + col2 ) BETWEEN NULL AND col2
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 62 col2 FROM tab1
----
62
62
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2734
SELECT DISTINCT CAST( ( - COUNT( * ) ) AS SIGNED ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-2734
SELECT DISTINCT CAST ( ( - COUNT ( * ) ) AS INTEGER ) AS col1 FROM tab1
----
-3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 * - 58 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-2736
SELECT ALL + col1 DIV + 73 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2736
SELECT ALL + col1 / + 73 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT ALL - col2 + col1 AS col2 FROM tab2 AS cor0 WHERE ( + col0 * col0 ) = ( col2 + 59 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2738
SELECT COUNT( * ) * MAX( ALL 94 ) AS col1 FROM tab2 AS cor0
----
282

skipif mysql # not compatible
query I rowsort label-2738
SELECT COUNT ( * ) * MAX ( ALL 94 ) AS col1 FROM tab2 AS cor0
----
282

onlyif mysql # aggregate syntax: 
query I rowsort label-2739
SELECT ALL - COUNT( - 38 ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2739
SELECT ALL - COUNT ( - 38 ) AS col2 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT + col1 * 7 FROM tab2 AS cor0
----
357
469
539

query I rowsort
SELECT ALL - ( + col1 ) * col0 FROM tab1
----
-425
-4277
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-2742
SELECT DISTINCT COUNT( ALL + 7 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2742
SELECT DISTINCT COUNT ( ALL + 7 ) AS col0 FROM tab2
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 67 col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT + 17 FROM tab0 AS cor0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2745
SELECT ALL - - SUM( DISTINCT - col2 ) FROM tab0 cor0
----
-156

skipif mysql # not compatible
query I rowsort label-2745
SELECT ALL - - SUM ( DISTINCT - col2 ) FROM tab0 cor0
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-2746
SELECT - COUNT( DISTINCT - 30 ) AS col0 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2746
SELECT - COUNT ( DISTINCT - 30 ) AS col0 FROM tab0 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2747
SELECT DISTINCT COUNT( ALL - col1 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2747
SELECT DISTINCT COUNT ( ALL - col1 ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT - + col1 * 83 FROM tab0 AS cor0
----
-1743
-6723
-83

query I rowsort
SELECT ALL - 22 * ( + col0 ) FROM tab0
----
-1914
-2134
-330

onlyif mysql # DIV for integer division: 
query I rowsort label-2750
SELECT col0 * col0 * + col2 + - col2 DIV 45 FROM tab2
----
163840
326249
48668

skipif mysql # not compatible
query I rowsort label-2750
SELECT col0 * col0 * + col2 + - col2 / 45 FROM tab2
----
163840
326249
48668

query I rowsort
SELECT col1 AS col0 FROM tab1 WHERE - col1 IN ( - col0 * col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2752
SELECT DISTINCT MAX( ALL - 6 ) FROM tab2 WHERE NOT - col1 BETWEEN 33 + - 90 AND NULL
----
-6

skipif mysql # not compatible
query I rowsort label-2752
SELECT DISTINCT MAX ( ALL - 6 ) FROM tab2 WHERE NOT - col1 BETWEEN 33 + - 90 AND NULL
----
-6

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN ( + 70 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2754
SELECT DISTINCT COUNT( * ) * + COUNT( * ) + - COUNT( * ) col1 FROM tab1
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2754
SELECT DISTINCT COUNT ( * ) * + COUNT ( * ) + - COUNT ( * ) col1 FROM tab1
----
6

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 27 IS NOT NULL
----

query I rowsort
SELECT col2 FROM tab1 WHERE - col2 + + col2 * col0 NOT BETWEEN ( NULL ) AND - col2
----
59
68
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - - col2 col1 FROM tab2
----
1058
2560
4350

query I rowsort
SELECT 31 * - col1 AS col2 FROM tab0
----
-2511
-31
-651

onlyif mysql # DIV for integer division: 
query I rowsort label-2759
SELECT + 68 DIV col1 * - col2 col2 FROM tab1
----
-384
-68
-767

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2759
SELECT + 68 / col1 * - col2 col2 FROM tab1
----
-384
-68
-767

onlyif mysql # aggregate syntax: 
query I rowsort label-2760
SELECT ALL SUM( - col0 ) + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-224

skipif mysql # not compatible
query I rowsort label-2760
SELECT ALL SUM ( - col0 ) + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-224

onlyif mysql # DIV for integer division: 
query I rowsort label-2761
SELECT + 63 * - col2 + col2 DIV - 25 FROM tab2 AS cor0
----
-1449
-2521
-3656

skipif mysql # not compatible
query I rowsort label-2761
SELECT + 63 * - col2 + col2 / - 25 FROM tab2 AS cor0
----
-1449
-2521
-3656

query I rowsort
SELECT DISTINCT col0 * + col2 FROM tab0 cor0 WHERE - 7 + col2 > NULL
----

query I rowsort
SELECT ALL 49 + - 91 * - ( + col1 ) AS col1 FROM tab2 AS cor0
----
4690
6146
7056

query I rowsort
SELECT - 55 AS col0 FROM tab0 AS cor0 WHERE col2 * + 47 + col0 < NULL
----

query I rowsort
SELECT ALL + - col1 + - col0 + - col0 * col2 AS col1 FROM tab1 AS cor0
----
-4961
-5105
-6326

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2766
SELECT - COUNT( * ) FROM tab1 WHERE ( + 79 + CAST( 7 + - col0 AS DECIMAL ) / col1 ) = + col1 * col1
----
0

skipif mysql # not compatible
query I rowsort label-2766
SELECT - COUNT ( * ) FROM tab1 WHERE ( + 79 + CAST ( 7 + - col0 AS REAL ) / col1 ) = + col1 * col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2767
SELECT - + COUNT( * ) DIV 73 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-2767
SELECT - + COUNT ( * ) / 73 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2768
SELECT - col2 + + col0 + - col0 DIV - col1 AS col1 FROM tab1
----
-42
24
43

skipif mysql # not compatible
query I rowsort label-2768
SELECT - col2 + + col0 + - col0 / - col1 AS col1 FROM tab1
----
-42
24
43

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2769
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 - + + col0 + col1 * CAST( col1 - col1 AS DECIMAL ) <> NULL
----

skipif mysql # not compatible
query III rowsort label-2769
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 - + + col0 + col1 * CAST ( col1 - col1 AS REAL ) <> NULL
----

query I rowsort
SELECT + - 7 * - ( ( col2 ) ) + + col1 FROM tab1 AS cor0
----
418
523
686

query I rowsort
SELECT - col0 + - 58 * + + col2 AS col2 FROM tab0 AS cor0
----
-2741
-5839
-667

query I rowsort
SELECT ALL + col2 FROM tab1 AS cor0 WHERE NOT - + col0 * 24 IS NOT NULL OR col0 = - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2773
SELECT DISTINCT + COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL <= ( col1 )
----
0

skipif mysql # not compatible
query I rowsort label-2773
SELECT DISTINCT + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL <= ( col1 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2774
SELECT + col1 * ( + - 35 ) DIV col0 + + col0 FROM tab1 AS cor0
----
42
73
83

skipif mysql # not compatible
query I rowsort label-2774
SELECT + col1 * ( + - 35 ) / col0 + + col0 FROM tab1 AS cor0
----
42
73
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2775
SELECT 33 FROM tab2 cor0 WHERE NOT CAST( - col1 AS SIGNED ) * col2 < col2 * ( - col2 )
----

skipif mysql # not compatible
query I rowsort label-2775
SELECT 33 FROM tab2 cor0 WHERE NOT CAST ( - col1 AS INTEGER ) * col2 < col2 * ( - col2 )
----

query II rowsort
SELECT DISTINCT + col1, col0 AS col2 FROM tab0 AS cor0
----
1
97
21
87
81
15

query III rowsort
SELECT * FROM tab1 WHERE - col1 IS NOT NULL AND NOT NULL IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - 40 * col1 AS col1, 94 * + col1 AS col1 FROM tab1
----
-1880
4418
-200
470
-560
1316

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN 58 AND + + col2
----

query I rowsort
SELECT - col2 * 30 * - - 24 * + ( col0 ) AS col1 FROM tab0 AS cor0
----
-507600
-626400
-6914160

onlyif mysql # aggregate syntax: 
query I rowsort label-2781
SELECT ALL + COUNT( * ) - + 58 FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN + 46 AND - col1 + - col1
----
-58

skipif mysql # not compatible
query I rowsort label-2781
SELECT ALL + COUNT ( * ) - + 58 FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN + 46 AND - col1 + - col1
----
-58

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col1 / - + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - - ( 54 ) * col1 FROM tab2 AS cor0 WHERE NOT col1 < NULL
----

query I rowsort
SELECT col2 * + col1 * + 65 * + 29 * + + 73 + - col1 FROM tab1
----
184941106
40593470
439785533

onlyif mysql # aggregate syntax: 
query I rowsort label-2785
SELECT ALL COUNT( * ) * MAX( ALL - 98 ) AS col0 FROM tab1
----
-294

skipif mysql # not compatible
query I rowsort label-2785
SELECT ALL COUNT ( * ) * MAX ( ALL - 98 ) AS col0 FROM tab1
----
-294

query I rowsort
SELECT DISTINCT + + col2 + 84 AS col1 FROM tab1 cor0
----
143
152
180

onlyif mysql # aggregate syntax: 
query I rowsort label-2787
SELECT + ( + + COUNT( * ) ) FROM tab1 AS cor0 WHERE col1 = + col2
----
0

skipif mysql # not compatible
query I rowsort label-2787
SELECT + ( + + COUNT ( * ) ) FROM tab1 AS cor0 WHERE col1 = + col2
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 + + + col0 BETWEEN - col0 / + col1 + col0 AND col2 * + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2789
SELECT ALL CAST( NULL AS SIGNED ) + + col1 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2789
SELECT ALL CAST ( NULL AS INTEGER ) + + col1 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) > ( + + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col0, + col2 AS col1 FROM tab2
----
46
23
64
40
75
58

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL <= ( col0 ) )
----

query I rowsort
SELECT - 95 * + col2 FROM tab2 WHERE - 70 BETWEEN ( NULL ) AND ( + col0 )
----

query I rowsort
SELECT col1 * - + col1 AS col1 FROM tab1
----
-196
-2209
-25

onlyif mysql # aggregate syntax: 
query II rowsort label-2795
SELECT DISTINCT COUNT( * ) + - COUNT( * ) AS col2, - 83 col2 FROM tab0
----
0
-83

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2795
SELECT DISTINCT COUNT ( * ) + - COUNT ( * ) AS col2, - 83 col2 FROM tab0
----
0
-83

query I rowsort
SELECT col2 + col0 FROM tab0 WHERE col1 + 29 + - + ( - 79 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE - 91 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT ( 44 ) FROM tab2
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-2799
SELECT MAX( DISTINCT col0 ) + + ( + 46 ) AS col1 FROM tab1
----
137

skipif mysql # not compatible
query I rowsort label-2799
SELECT MAX ( DISTINCT col0 ) + + ( + 46 ) AS col1 FROM tab1
----
137

onlyif mysql # aggregate syntax: 
query I rowsort label-2800
SELECT + COUNT( * ) * ( - COUNT( * ) ) + - - COUNT( * ) FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-2800
SELECT + COUNT ( * ) * ( - COUNT ( * ) ) + - - COUNT ( * ) FROM tab2 AS cor0
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2801
SELECT + CAST( - COUNT( + 64 ) AS SIGNED ), + COUNT( * ) col0 FROM tab1 AS cor0 WHERE NULL > NULL
----
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2801
SELECT + CAST ( - COUNT ( + 64 ) AS INTEGER ), + COUNT ( * ) col0 FROM tab1 AS cor0 WHERE NULL > NULL
----
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2802
SELECT DISTINCT + COUNT( * ) * MAX( + 72 * - 22 ) FROM tab2 AS cor0 WHERE NOT - col0 IN ( ( - + ( col0 ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2802
SELECT DISTINCT + COUNT ( * ) * MAX ( + 72 * - 22 ) FROM tab2 AS cor0 WHERE NOT - col0 IN ( ( - + ( col0 ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2803
SELECT - COUNT( DISTINCT - + col2 ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2803
SELECT - COUNT ( DISTINCT - + col2 ) FROM tab0 cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + ( col2 ) + + col1 / + + col1 / + col1 NOT IN ( + 27 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2805
SELECT ALL - - 12 * + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
108

skipif mysql # not compatible
query I rowsort label-2805
SELECT ALL - - 12 * + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
108

query I rowsort
SELECT DISTINCT 57 * col1 - - + col2 FROM tab0
----
1207
156
4664

query I rowsort
SELECT ALL + - ( 80 ) FROM tab2 AS cor0
----
-80
-80
-80

query I rowsort
SELECT col0 * + ( - col2 ) AS col0 FROM tab1 AS cor0
----
-4896
-5015
-6188

query I rowsort
SELECT ALL - col1 AS col0 FROM tab2 AS cor0 WHERE NOT + col0 * - + col1 + 6 * col1 * - col1 IS NULL
----
-51
-67
-77

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT col2 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2811
SELECT ( COUNT( * ) ) * - COUNT( * ) * + 79 FROM tab2 cor0
----
-711

skipif mysql # not compatible
query I rowsort label-2811
SELECT ( COUNT ( * ) ) * - COUNT ( * ) * + 79 FROM tab2 cor0
----
-711

onlyif mysql # aggregate syntax: 
query I rowsort label-2812
SELECT COUNT( * ) * - MIN( - - col2 ) col0 FROM tab0 AS cor0
----
-30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2812
SELECT COUNT ( * ) * - MIN ( - - col2 ) col0 FROM tab0 AS cor0
----
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2813
SELECT - COUNT( * ) DIV + 38 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2813
SELECT - COUNT ( * ) / + 38 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2814
SELECT ( - col0 ) * - CAST( NULL AS SIGNED ) - - - 86 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2814
SELECT ( - col0 ) * - CAST ( NULL AS INTEGER ) - - - 86 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2815
SELECT ( + SUM( - + col0 ) ) * + COUNT( * ) FROM tab1
----
-681

skipif mysql # not compatible
query I rowsort label-2815
SELECT ( + SUM ( - + col0 ) ) * + COUNT ( * ) FROM tab1
----
-681

onlyif mysql # aggregate syntax: 
query I rowsort label-2816
SELECT DISTINCT + 74 * COUNT( * ) * ( 23 ) FROM tab0
----
5106

skipif mysql # not compatible
query I rowsort label-2816
SELECT DISTINCT + 74 * COUNT ( * ) * ( 23 ) FROM tab0
----
5106

onlyif mysql # aggregate syntax: 
query I rowsort label-2817
SELECT COUNT( * ) * - 22 FROM tab0
----
-66

skipif mysql # not compatible
query I rowsort label-2817
SELECT COUNT ( * ) * - 22 FROM tab0
----
-66

query I rowsort
SELECT ALL + col1 * - 65 AS col1 FROM tab2
----
-3315
-4355
-5005

query II rowsort
SELECT ALL + col1 AS col0, col1 * - col1 FROM tab0
----
1
-1
21
-441
81
-6561

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 AS col2, + col1 col1 FROM tab2 AS cor0
----
-51
51
-67
67
-77
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2821
SELECT DISTINCT - MAX( ALL - col2 ) AS col0 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-2821
SELECT DISTINCT - MAX ( ALL - col2 ) AS col0 FROM tab1 AS cor0
----
59

query I rowsort
SELECT ALL col1 AS col2 FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
14
47
5

query I rowsort
SELECT + + 60 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2824
SELECT DISTINCT * FROM tab1 WHERE - + col1 / - - CAST( NULL AS SIGNED ) / + + 94 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2824
SELECT DISTINCT * FROM tab1 WHERE - + col1 / - - CAST ( NULL AS INTEGER ) / + + 94 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2825
SELECT DISTINCT 47 + + COUNT( * ) FROM tab0, tab2 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-2825
SELECT DISTINCT 47 + + COUNT ( * ) FROM tab0, tab2 AS cor0
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-2826
SELECT ALL ( + ( - - COUNT( * ) ) ) + 20 FROM tab2, tab2 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-2826
SELECT ALL ( + ( - - COUNT ( * ) ) ) + 20 FROM tab2, tab2 AS cor0
----
29

query I rowsort
SELECT ALL - 63 * + col1 FROM tab1
----
-2961
-315
-882

query I rowsort
SELECT DISTINCT + col0 * - col0 + 38 AS col0 FROM tab0 AS cor0
----
-187
-7531
-9371

query II rowsort
SELECT ALL - col0 * + col2 AS col2, col0 * + + ( col2 ) AS col2 FROM tab0 AS cor0
----
-705
705
-870
870
-9603
9603

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - 90 ) NOT BETWEEN ( NULL ) AND ( + col1 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2831
SELECT - 79 + + 34 AS col1, + MIN( DISTINCT - ( + col2 ) ) AS col0 FROM tab1 AS cor0
----
-45
-96

skipif mysql # not compatible
query II rowsort label-2831
SELECT - 79 + + 34 AS col1, + MIN ( DISTINCT - ( + col2 ) ) AS col0 FROM tab1 AS cor0
----
-45
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-2832
SELECT ALL ( - - MAX( - - ( col1 ) ) ) AS col0 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-2832
SELECT ALL ( - - MAX ( - - ( col1 ) ) ) AS col0 FROM tab0 AS cor0
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2833
SELECT + CAST( - MAX( DISTINCT - 45 ) AS SIGNED ) + - - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2833
SELECT + CAST ( - MAX ( DISTINCT - 45 ) AS INTEGER ) + - - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - 53 FROM tab0 AS cor0 WHERE NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2835
SELECT MAX( ALL + col2 ) + - + 99 FROM tab2 AS cor0
----
-41

skipif mysql # not compatible
query I rowsort label-2835
SELECT MAX ( ALL + col2 ) + - + 99 FROM tab2 AS cor0
----
-41

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( 49 / - col1 ) IS NULL
----

query I rowsort
SELECT col1 * + col1 * + + 19 + + + col0 + + col0 * col0 * col0 * + col0 AS col1 FROM tab1 AS cor0
----
52201185
6768976
68617023

query I rowsort
SELECT DISTINCT + col0 + col1 - + - col2 * + col2 * - 97 FROM tab2
----
-155059
-326166
-51216

query I rowsort
SELECT ALL 56 + - 47 FROM tab0
----
9
9
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2840
SELECT ALL - MIN( DISTINCT - - col1 ) AS col0 FROM tab1 WHERE - 82 * + col1 * col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2840
SELECT ALL - MIN ( DISTINCT - - col1 ) AS col0 FROM tab1 WHERE - 82 * + col1 * col2 IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2841
SELECT DISTINCT 1 + col2 DIV - col2 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2841
SELECT DISTINCT 1 + col2 / - col2 AS col0 FROM tab1
----
0

query I rowsort
SELECT ALL + col0 - + + col1 FROM tab2
----
-13
-5
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2843
SELECT - COUNT( * ) FROM tab2 WHERE - col2 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-2843
SELECT - COUNT ( * ) FROM tab2 WHERE - col2 < NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2844
SELECT 40 DIV 57 * - col0 * - col1 AS col0 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2844
SELECT 40 / 57 * - col0 * - col1 AS col0 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT - 24 * - 20 FROM tab1 AS cor0
----
480
480
480

query I rowsort
SELECT DISTINCT - 47 * + col2 * 44 + col2 + + 81 AS col2 FROM tab2 AS cor0
----
-119805
-47460
-82599

query I rowsort
SELECT + + col2 - - 3 FROM tab2 AS cor0
----
26
43
61

onlyif mysql # aggregate syntax: 
query I rowsort label-2848
SELECT DISTINCT SUM( + + col2 ) col0 FROM tab0
----
156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2848
SELECT DISTINCT SUM ( + + col2 ) col0 FROM tab0
----
156

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 66 col2 FROM tab2 AS cor0
----
66
66
66

query I rowsort
SELECT DISTINCT + col2 * col2 + - - ( - col1 ) * - 68 AS col1 FROM tab2 AS cor0
----
3997
6836
7920

query II rowsort
SELECT ALL + - col0, + col0 FROM tab0 AS cor0
----
-15
15
-87
87
-97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2852
SELECT 63 * COUNT( * ) FROM tab1
----
189

skipif mysql # not compatible
query I rowsort label-2852
SELECT 63 * COUNT ( * ) FROM tab1
----
189

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col2 * - ( - 52 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2854
SELECT 4 * + + COUNT( * ) FROM tab1
----
12

skipif mysql # not compatible
query I rowsort label-2854
SELECT 4 * + + COUNT ( * ) FROM tab1
----
12

query I rowsort
SELECT - col0 + - ( - 24 ) FROM tab2
----
-22
-40
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-2856
SELECT - COUNT( * ) * - 80 col2 FROM tab1
----
240

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2856
SELECT - COUNT ( * ) * - 80 col2 FROM tab1
----
240

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2857
SELECT ALL + CAST( NULL AS SIGNED ) * col0 + col1 AS col2, 7 FROM tab0 AS cor0
----
NULL
7
NULL
7
NULL
7

skipif mysql # not compatible
query II rowsort label-2857
SELECT ALL + CAST ( NULL AS INTEGER ) * col0 + col1 AS col2, 7 FROM tab0 AS cor0
----
NULL
7
NULL
7
NULL
7

query I rowsort
SELECT ALL + + col2 * + + col2 * - + 56 FROM tab0 AS cor0
----
-123704
-548856
-5600

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2859
SELECT DISTINCT col2 + + CAST( CAST( NULL AS SIGNED ) AS DECIMAL ) / - CAST( NULL AS SIGNED ) - + col1 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2859
SELECT DISTINCT col2 + + CAST ( CAST ( NULL AS INTEGER ) AS REAL ) / - CAST ( NULL AS INTEGER ) - + col1 FROM tab2 cor0
----
NULL

query I rowsort
SELECT - col0 + - ( - - 22 ) AS col0 FROM tab2 AS cor0 WHERE ( NOT NULL = col1 )
----

query I rowsort
SELECT ALL - + col0 * + - col0 FROM tab0 cor0
----
225
7569
9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + 43 + - ( 18 ) col1 FROM tab1 AS cor0
----
121
84
93

query I rowsort
SELECT DISTINCT + 24 * col2 AS col1 FROM tab2 AS cor0
----
1392
552
960

query I rowsort
SELECT - - 78 AS col0 FROM tab1 cor0
----
78
78
78

onlyif mysql # aggregate syntax: 
query I rowsort label-2865
SELECT - 3 * + 21 * - MAX( - col2 ) + - COUNT( * ) col0 FROM tab0
----
-633

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2865
SELECT - 3 * + 21 * - MAX ( - col2 ) + - COUNT ( * ) col0 FROM tab0
----
-633

query I rowsort
SELECT - 64 + - - col1 * - + col2 FROM tab1
----
-1408
-3260
-359

query I rowsort
SELECT ALL 38 - - col1 AS col0 FROM tab1
----
43
52
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2868
SELECT - MIN( + col0 ) + - - 11 * + - CAST( COUNT( * ) AS SIGNED ) * - + SUM( DISTINCT + 5 ) + 24 AS col0 FROM tab0
----
174

skipif mysql # not compatible
query I rowsort label-2868
SELECT - MIN ( + col0 ) + - - 11 * + - CAST ( COUNT ( * ) AS INTEGER ) * - + SUM ( DISTINCT + 5 ) + 24 AS col0 FROM tab0
----
174

query I rowsort
SELECT 60 * - - col1 + + col0 * 58 FROM tab1 AS cor0 WHERE ( - col1 ) IS NOT NULL
----
3798
5230
8098

onlyif mysql # aggregate syntax: 
query I rowsort label-2870
SELECT ALL MIN( DISTINCT - col0 ) + - 36 AS col1 FROM tab0 cor0
----
-133

skipif mysql # not compatible
query I rowsort label-2870
SELECT ALL MIN ( DISTINCT - col0 ) + - 36 AS col1 FROM tab0 cor0
----
-133

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL >= col0 * - + 44
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT BETWEEN NULL AND - + 28 / col2 - + col2 + + col0
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2873
SELECT * FROM tab1 WHERE NOT + + CAST( NULL AS DECIMAL ) <> 50
----

skipif mysql # not compatible
query III rowsort label-2873
SELECT * FROM tab1 WHERE NOT + + CAST ( NULL AS REAL ) <> 50
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2874
SELECT + - 69 * + + 0 - - COUNT( * ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2874
SELECT + - 69 * + + 0 - - COUNT ( * ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2875
SELECT + 27 * COUNT( * ) DIV COUNT( * ), COUNT( DISTINCT - 5 ) AS col0 FROM tab2 AS cor0
----
27
1

skipif mysql # not compatible
query II rowsort label-2875
SELECT + 27 * COUNT ( * ) / COUNT ( * ), COUNT ( DISTINCT - 5 ) AS col0 FROM tab2 AS cor0
----
27
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + 3 col0, 51 AS col0 FROM tab1 cor0
----
-3
51
-3
51
-3
51

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NULL <= + 80
----

query I rowsort
SELECT + col0 * - col2 * + ( col1 ) AS col2 FROM tab2
----
-197120
-291450
-53958

query I rowsort
SELECT - col2 * - 89 FROM tab0
----
4183
8811
890

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2880
SELECT DISTINCT + col2 * + CAST( - + 49 AS SIGNED ) FROM tab1
----
-2891
-3332
-4704

skipif mysql # not compatible
query I rowsort label-2880
SELECT DISTINCT + col2 * + CAST ( - + 49 AS INTEGER ) FROM tab1
----
-2891
-3332
-4704

query I rowsort
SELECT ALL - col0 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2882
SELECT + COUNT( + + col0 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2882
SELECT + COUNT ( + + col0 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL + col2 + - - col2 FROM tab1 AS cor0
----
118
136
192

query I rowsort
SELECT + col2 + + 18 * - 70 FROM tab2 AS cor0
----
-1202
-1220
-1237

query III rowsort
SELECT ALL col1 * - col0 * 40, 12 + 68 AS col1, + col0 FROM tab2 AS cor0
----
9 values hashing to 7e33c2366ee02bc9a00098508f7c3206

query I rowsort
SELECT 44 AS col1 FROM tab2 cor0 WHERE NULL IS NULL
----
44
44
44

query I rowsort
SELECT - - col1 + - 95 * - col2 FROM tab0 cor0
----
4546
9406
971

query I rowsort
SELECT 56 * - ( - col1 ) + - + 20 FROM tab0 AS cor0
----
1156
36
4516

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2889
SELECT 75 * - col1 * - col1 col2 FROM tab1 AS cor0 WHERE - col1 > ( + + col0 + - CAST( NULL AS DECIMAL ) / 1 / ( col1 ) )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2889
SELECT 75 * - col1 * - col1 col2 FROM tab1 AS cor0 WHERE - col1 > ( + + col0 + - CAST ( NULL AS REAL ) / 1 / ( col1 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 - + - col0 col2 FROM tab0
----
108
96
98

query I rowsort
SELECT - + col2 * - col1 - - + col2 AS col1 FROM tab0 cor0
----
198
220
3854

query I rowsort
SELECT col2 * + - 60 AS col0 FROM tab0 AS cor0
----
-2820
-5940
-600

onlyif mysql # DIV for integer division: 
query II rowsort label-2893
SELECT + 65 DIV - ( - col2 ), - col0 col1 FROM tab2 AS cor0
----
1
-64
1
-75
2
-46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2893
SELECT + 65 / - ( - col2 ), - col0 col1 FROM tab2 AS cor0
----
1
-64
1
-75
2
-46

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 10 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 46 * + - col0 AS col1 FROM tab0 cor0
----
-4002
-4462
-690

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 91 <= + - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + ( + col2 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + ( - 79 ) + - col2 AS col0 FROM tab2 AS cor0 WHERE NULL NOT IN ( - col1 + + 5 * - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 67 * - - col0 col2 FROM tab0
----
1005
5829
6499

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col1 IN ( col1 / - col2, col2, + + col2 * - col0, - col0, col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2901
SELECT + 86 * - CAST( - 43 AS SIGNED ) AS col0 FROM tab1
----
3698
3698
3698

skipif mysql # not compatible
query I rowsort label-2901
SELECT + 86 * - CAST ( - 43 AS INTEGER ) AS col0 FROM tab1
----
3698
3698
3698

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col0 BETWEEN NULL AND - 16 + + col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2903
SELECT DISTINCT - MIN( DISTINCT - + ( + 55 ) ) + - - MAX( 31 ), COUNT( DISTINCT - 23 ) col1 FROM tab0 AS cor0
----
86
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2903
SELECT DISTINCT - MIN ( DISTINCT - + ( + 55 ) ) + - - MAX ( 31 ), COUNT ( DISTINCT - 23 ) col1 FROM tab0 AS cor0
----
86
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2904
SELECT DISTINCT - - SUM( + + 0 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2904
SELECT DISTINCT - - SUM ( + + 0 ) FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2905
SELECT ALL - ( CAST( NULL AS SIGNED ) ) + AVG ( ALL - col2 ) AS col0 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2905
SELECT ALL - ( CAST ( NULL AS INTEGER ) ) + AVG ( ALL - col2 ) AS col0 FROM tab2 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2906
SELECT - SUM( - - 70 ) AS col2 FROM tab1 AS cor0
----
-210

skipif mysql # not compatible
query I rowsort label-2906
SELECT - SUM ( - - 70 ) AS col2 FROM tab1 AS cor0
----
-210

query I rowsort
SELECT - col1 - - 55 + col2 * - col2 FROM tab0 AS cor0
----
-2235
-66
-9747

onlyif mysql # aggregate syntax: 
query I rowsort label-2908
SELECT - COUNT( * ) FROM tab1 cor0 WHERE + col1 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-2908
SELECT - COUNT ( * ) FROM tab1 cor0 WHERE + col1 = NULL
----
0

query I rowsort
SELECT DISTINCT + ( col2 ) + - col0 FROM tab0 cor0
----
-77
2
32

query II rowsort
SELECT 54 - 87 AS col2, + col2 AS col2 FROM tab2
----
-33
23
-33
40
-33
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2911
SELECT ALL 40 + - CAST( NULL AS SIGNED ) + col2 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2911
SELECT ALL 40 + - CAST ( NULL AS INTEGER ) + col2 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT 33 + + col2 + - 99 * - 9 FROM tab0
----
1023
934
971

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2913
SELECT CAST( NULL AS SIGNED ) + - - col0 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2913
SELECT CAST ( NULL AS INTEGER ) + - - col0 AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2914
SELECT DISTINCT + col2 * + - col0 - 85 - - col1 DIV + - col0 * 46 AS col2 FROM tab1
----
-4981
-5100
-6273

skipif mysql # not compatible
query I rowsort label-2914
SELECT DISTINCT + col2 * + - col0 - 85 - - col1 / + - col0 * 46 AS col2 FROM tab1
----
-4981
-5100
-6273

query I rowsort
SELECT 26 + + col1 AS col0 FROM tab0
----
107
27
47

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT 36 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-2917
SELECT ALL 18 * 23 * + col2 DIV + - col2 FROM tab1 AS cor0
----
-414
-414
-414

skipif mysql # not compatible
query I rowsort label-2917
SELECT ALL 18 * 23 * + col2 / + - col2 FROM tab1 AS cor0
----
-414
-414
-414

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL < col0 * - - col0 * - col0 * - col1 / + 28
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2919
SELECT ALL - - 88 + - COUNT( * ) DIV 39 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
88

skipif mysql # not compatible
query I rowsort label-2919
SELECT ALL - - 88 + - COUNT ( * ) / 39 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
88

query I rowsort
SELECT - + ( 78 ) AS col1 FROM tab1 AS cor0
----
-78
-78
-78

query I rowsort
SELECT + - AVG ( 35 ) FROM tab2 AS cor0 WHERE NOT NULL >= - ( - + col0 )
----
NULL

query I rowsort
SELECT + ( - 78 ) * - col2 FROM tab1 AS cor0
----
4602
5304
7488

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2923
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - - SUM( DISTINCT + col2 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2923
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - - SUM ( DISTINCT + col2 ) FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2924
SELECT + CAST( - ( + MAX( DISTINCT 50 ) ) AS SIGNED ) FROM tab0 cor0
----
-50

skipif mysql # not compatible
query I rowsort label-2924
SELECT + CAST ( - ( + MAX ( DISTINCT 50 ) ) AS INTEGER ) FROM tab0 cor0
----
-50

query I rowsort
SELECT DISTINCT - + 66 + - col2 + - col2 * + 20 * col0 + - col0 + - ( + col1 ) * + col0 * - 40 AS col0 FROM tab0 AS cor0
----
-188442
34372
55517

query I rowsort
SELECT col0 + + + 42 AS col0 FROM tab0
----
129
139
57

query III rowsort
SELECT * FROM tab0 WHERE ( NOT NULL NOT IN ( 87, 24 + - col2 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2928
SELECT - 29 DIV + + col0 AS col0 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2928
SELECT - 29 / + + col0 AS col0 FROM tab0 AS cor0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2929
SELECT ALL MIN( ALL 2 ) FROM tab0 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-2929
SELECT ALL MIN ( ALL 2 ) FROM tab0 AS cor0
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2930
SELECT - col1 * - CAST( NULL AS SIGNED ) / col1 * ( - 26 ) - - + col2 + + col2 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2930
SELECT - col1 * - CAST ( NULL AS INTEGER ) / col1 * ( - 26 ) - - + col2 + + col2 AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2931
SELECT + - SUM( - + 48 ) * ( 7 ) + - 11 AS col0 FROM tab1 AS cor0
----
997

skipif mysql # not compatible
query I rowsort label-2931
SELECT + - SUM ( - + 48 ) * ( 7 ) + - 11 AS col0 FROM tab1 AS cor0
----
997

query I rowsort
SELECT 69 + + 42 AS col1 FROM tab1 cor0
----
111
111
111

query I rowsort
SELECT DISTINCT col2 * - - 30 FROM tab1 AS cor0
----
1770
2040
2880

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( NULL ) >= col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 * + col1 IS NOT NULL
----

query I rowsort
SELECT + - 95 + + 88 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-7
-7
-7

query II rowsort
SELECT DISTINCT 78, + col1 FROM tab1
----
78
14
78
47
78
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2938
SELECT COUNT( * ) + - COUNT( * ) FROM tab0 WHERE NOT 43 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2938
SELECT COUNT ( * ) + - COUNT ( * ) FROM tab0 WHERE NOT 43 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2939
SELECT ALL - 0 DIV - + SUM( ALL 51 ) col0 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2939
SELECT ALL - 0 / - + SUM ( ALL 51 ) col0 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2940
SELECT COUNT( DISTINCT + col2 ) * + 35 * + - MIN( ALL + col0 ) AS col0 FROM tab1
----
-5355

skipif mysql # not compatible
query I rowsort label-2940
SELECT COUNT ( DISTINCT + col2 ) * + 35 * + - MIN ( ALL + col0 ) AS col0 FROM tab1
----
-5355

query II rowsort
SELECT col0, 65 AS col2 FROM tab1
----
51
65
85
65
91
65

query I rowsort
SELECT - col2 * ( - - col1 ) AS col2 FROM tab0
----
-210
-3807
-99

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 42 <> NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2944
SELECT DISTINCT - + MIN( ALL + CAST( - col1 AS SIGNED ) ) FROM tab2 cor0
----
77

skipif mysql # not compatible
query I rowsort label-2944
SELECT DISTINCT - + MIN ( ALL + CAST ( - col1 AS INTEGER ) ) FROM tab2 cor0
----
77

query I rowsort
SELECT ALL - + 18 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 09afafec657a5e9f082beb6a16ec85de

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2946
SELECT - col1 * + 60 FROM tab0 AS cor0 WHERE NOT CAST( NULL AS DECIMAL ) BETWEEN col1 AND - col1 * 27 / + col1
----

skipif mysql # not compatible
query I rowsort label-2946
SELECT - col1 * + 60 FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS REAL ) BETWEEN col1 AND - col1 * 27 / + col1
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN col1 * + 56 - + - 11 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2948
SELECT ALL - COUNT( DISTINCT - col1 ) + + AVG ( - col2 ) + + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2948
SELECT ALL - COUNT ( DISTINCT - col1 ) + + AVG ( - col2 ) + + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2949
SELECT DISTINCT + COUNT( * ) * + 9 FROM tab2 cor0
----
27

skipif mysql # not compatible
query I rowsort label-2949
SELECT DISTINCT + COUNT ( * ) * + 9 FROM tab2 cor0
----
27

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col1 / + + 95 * col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 AS col2 FROM tab0 cor0 WHERE - 42 IS NOT NULL
----
1
21
81

query II rowsort
SELECT col0 AS col2, - col1 AS col0 FROM tab2
----
46
-51
64
-77
75
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-2953
SELECT ALL COUNT( - - col1 ) FROM tab2 WHERE ( col2 / - col0 ) <> ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-2953
SELECT ALL COUNT ( - - col1 ) FROM tab2 WHERE ( col2 / - col0 ) <> ( NULL )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + + 65 ) col1 FROM tab1
----
65
65
65

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 97 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2956
SELECT COUNT( * ) * + 33 + 35 AS col0 FROM tab2
----
134

skipif mysql # not compatible
query I rowsort label-2956
SELECT COUNT ( * ) * + 33 + 35 AS col0 FROM tab2
----
134

query I rowsort
SELECT DISTINCT - + col2 * + ( - col2 ) AS col0 FROM tab0 AS cor0
----
100
2209
9801

onlyif mysql # aggregate syntax: 
query I rowsort label-2958
SELECT ALL COUNT( + ( - ( + + col2 ) ) ) + 11 FROM tab1
----
14

skipif mysql # not compatible
query I rowsort label-2958
SELECT ALL COUNT ( + ( - ( + + col2 ) ) ) + 11 FROM tab1
----
14

query I rowsort
SELECT 24 * - 87 AS col1 FROM tab1
----
-2088
-2088
-2088

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 31 col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - - ( + - col1 ) col1 FROM tab2 cor0
----
-2346
-4928
-5025

query I rowsort
SELECT ALL - - col1 * + + col1 FROM tab2 AS cor0
----
2601
4489
5929

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col1 + col1 IS NOT NULL
----

query I rowsort
SELECT + + 95 AS col1 FROM tab0 cor0
----
95
95
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2965
SELECT ALL + - CAST( - + MAX( - col2 ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-2965
SELECT ALL + - CAST ( - + MAX ( - col2 ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-10

query I rowsort
SELECT - 34 * - + col1 + + col0 AS col1 FROM tab2 AS cor0
----
1780
2353
2682

query I rowsort
SELECT - + col1 * col0 AS col0 FROM tab1 cor0
----
-425
-4277
-714

query I rowsort
SELECT + 45 * col2 FROM tab2
----
1035
1800
2610

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col2 + + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2970
SELECT DISTINCT SUM( - - 32 ) FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-2970
SELECT DISTINCT SUM ( - - 32 ) FROM tab1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2971
SELECT MIN( ALL + - col0 ) FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-2971
SELECT MIN ( ALL + - col0 ) FROM tab0
----
-97

query I rowsort
SELECT - 77 AS col2 FROM tab2 WHERE NOT + col1 - col1 + col0 = + + col1
----
-77
-77
-77

query I rowsort
SELECT - - 86 AS col2 FROM tab0 AS cor0
----
86
86
86

query II rowsort
SELECT - col1 AS col2, + col2 * + col0 * + col1 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-51
53958
-67
291450
-77
197120

query I rowsort
SELECT ALL + 48 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b

query I rowsort
SELECT - 31 AS col0 FROM tab0 WHERE NOT + col1 IS NULL
----
-31
-31
-31

query I rowsort
SELECT - col1 FROM tab1 WHERE NOT NULL <> - ( col2 ) - col0 + - 19
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) = + - 91
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2979
SELECT DISTINCT - - CAST( + 70 AS SIGNED ) AS col2, AVG ( + col2 ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
70
NULL

skipif mysql # not compatible
query II rowsort label-2979
SELECT DISTINCT - - CAST ( + 70 AS INTEGER ) AS col2, AVG ( + col2 ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
70
NULL

query I rowsort
SELECT DISTINCT col2 + + 41 FROM tab1 AS cor0
----
100
109
137

query I rowsort
SELECT + col0 * col1 + - 91 AS col1 FROM tab0 AS cor0
----
1124
1736
6

query I rowsort
SELECT - col1 + + + 94 FROM tab2 AS cor0
----
17
27
43

onlyif mysql # aggregate syntax: 
query I rowsort label-2983
SELECT ALL + 67 * - SUM( 80 ) AS col2 FROM tab0 AS cor0
----
-16080

skipif mysql # not compatible
query I rowsort label-2983
SELECT ALL + 67 * - SUM ( 80 ) AS col2 FROM tab0 AS cor0
----
-16080

query I rowsort
SELECT ALL - + ( - 88 ) FROM tab2 AS cor0 WHERE - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2985
SELECT 99 + - ( - + COUNT( * ) ) * - 71 FROM tab1
----
-114

skipif mysql # not compatible
query I rowsort label-2985
SELECT 99 + - ( - + COUNT ( * ) ) * - 71 FROM tab1
----
-114

query I rowsort
SELECT - col1 AS col0 FROM tab1 cor0 WHERE - col1 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2987
SELECT + ( - MIN( - col2 ) ) DIV - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-19

skipif mysql # not compatible
query I rowsort label-2987
SELECT + ( - MIN ( - col2 ) ) / - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2988
SELECT ( + col2 ) * - + col1 - CAST( col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-1219
-3144
-3961

skipif mysql # not compatible
query I rowsort label-2988
SELECT ( + col2 ) * - + col1 - CAST ( col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-1219
-3144
-3961

query I rowsort
SELECT ALL - col2 + col2 + col2 AS col2 FROM tab0 AS cor0
----
10
47
99

onlyif mysql # DIV for integer division: 
query I rowsort label-2990
SELECT DISTINCT - col0 DIV 18 * + col1 * - col2 + - - col0 AS col2 FROM tab0
----
15
592
927

skipif mysql # not compatible
query I rowsort label-2990
SELECT DISTINCT - col0 / 18 * + col1 * - col2 + - - col0 AS col2 FROM tab0
----
15
592
927

query I rowsort
SELECT - 50 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to c7432a968c8352c12996dfa54dd4b9e8

onlyif mysql # aggregate syntax: 
query II rowsort label-2992
SELECT + 48 AS col1, + COUNT( * ) FROM tab0 AS cor0
----
48
3

skipif mysql # not compatible
query II rowsort label-2992
SELECT + 48 AS col1, + COUNT ( * ) FROM tab0 AS cor0
----
48
3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL = col0 + - - col2 * + col0
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - ( + 63 ) IS NOT NULL
----

query I rowsort
SELECT - ( 6 ) FROM tab0 AS cor0
----
-6
-6
-6

query II rowsort
SELECT + + col2 * + - col1 * 74 - col0, + 64 AS col1 FROM tab2 AS cor0
----
-227984
64
-287639
64
-86848
64

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( NULL ) IN ( col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2998
SELECT DISTINCT + col1 DIV - 69 AS col2 FROM tab0 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-2998
SELECT DISTINCT + col1 / - 69 AS col2 FROM tab0 AS cor0
----
-1
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2999
SELECT * FROM tab1 AS cor0 WHERE NOT 12 + col1 / + - col1 * 91 * col1 * + ( + CAST( NULL AS SIGNED ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2999
SELECT * FROM tab1 AS cor0 WHERE NOT 12 + col1 / + - col1 * 91 * col1 * + ( + CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - ( 21 ) FROM tab0
----
-21
-21
-21

query I rowsort
SELECT + + 50 AS col2 FROM tab1 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT DISTINCT + 91 * - col1 * col1 AS col0 FROM tab1
----
-17836
-201019
-2275

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3003
SELECT + COUNT( * ) * + 74 * + + CAST( - COUNT( * ) AS SIGNED ) AS col2 FROM tab1
----
-666

skipif mysql # not compatible
query I rowsort label-3003
SELECT + COUNT ( * ) * + 74 * + + CAST ( - COUNT ( * ) AS INTEGER ) AS col2 FROM tab1
----
-666

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3004
SELECT col2 AS col1, + ( CAST( - 16 AS SIGNED ) ) AS col1 FROM tab2 WHERE NOT + 35 BETWEEN + col2 + + + col2 AND - + col0
----
23
-16
40
-16
58
-16

skipif mysql # not compatible
query II rowsort label-3004
SELECT col2 AS col1, + ( CAST ( - 16 AS INTEGER ) ) AS col1 FROM tab2 WHERE NOT + 35 BETWEEN + col2 + + + col2 AND - + col0
----
23
-16
40
-16
58
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-3005
SELECT ALL - COUNT( DISTINCT - + col0 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-3005
SELECT ALL - COUNT ( DISTINCT - + col0 ) FROM tab2
----
-3

query I rowsort
SELECT - ( - - ( 66 ) ) AS col1 FROM tab2 AS cor0
----
-66
-66
-66

query III rowsort
SELECT * FROM tab0 WHERE NOT 74 NOT BETWEEN NULL AND ( ( - 93 ) )
----

query I rowsort
SELECT + col0 + 73 FROM tab2 cor0 WHERE NULL IS NULL
----
119
137
148

onlyif mysql # aggregate syntax: 
query I rowsort label-3009
SELECT + - SUM( DISTINCT 80 ) AS col2 FROM tab1 AS cor0
----
-80

skipif mysql # not compatible
query I rowsort label-3009
SELECT + - SUM ( DISTINCT 80 ) AS col2 FROM tab1 AS cor0
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-3010
SELECT DISTINCT + SUM( - 55 ) FROM tab0 AS cor0
----
-165

skipif mysql # not compatible
query I rowsort label-3010
SELECT DISTINCT + SUM ( - 55 ) FROM tab0 AS cor0
----
-165

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3011
SELECT ALL - + COUNT( * ) FROM tab1 AS cor0 WHERE 36 + + CAST( 31 AS SIGNED ) NOT IN ( + CAST( NULL AS SIGNED ), 0 - - col0 * - col1 / - 62, + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-3011
SELECT ALL - + COUNT ( * ) FROM tab1 AS cor0 WHERE 36 + + CAST ( 31 AS INTEGER ) NOT IN ( + CAST ( NULL AS INTEGER ), 0 - - col0 * - col1 / - 62, + col0 )
----
0

query I rowsort
SELECT - col1 - + - 78 FROM tab0
----
-3
57
77

query I rowsort
SELECT 68 - col0 AS col0 FROM tab1
----
-17
-23
17

query I rowsort
SELECT DISTINCT col0 * + col0 - - col2 AS col0 FROM tab0
----
272
7579
9508

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3015
SELECT ALL 76 DIV - + 90 + ( COUNT( * ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3015
SELECT ALL 76 / - + 90 + ( COUNT ( * ) ) FROM tab1
----
3

query I rowsort
SELECT + 14 + + + 75 AS col2 FROM tab2
----
89
89
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2, - 24 col2 FROM tab2
----
23
-24
40
-24
58
-24

query I rowsort
SELECT + col0 + - col0 * col0 * col1 + - 85 AS col1 FROM tab2
----
-107955
-315413
-376885

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 34 * col2 + + 21 * - col1 * + ( - - 31 ) * + - 17 + - col1 * col0 col2 FROM tab1
----
157488
518184
56916

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3020
SELECT ALL + ( - - col1 ) * - + col1 + + col1 * - + col0 / - + ( + col2 ) / - - col2 AS col2 FROM tab1 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-3020
SELECT ALL + ( - - col1 ) * - + col1 + + col1 * - + col0 / - + ( + col2 ) / - - col2 AS col2 FROM tab1 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT col2 * col2 - - col2 FROM tab2 cor0 WHERE col1 IN ( + col1 )
----
1640
3422
552

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3022
SELECT DISTINCT + CAST( + MIN( + 43 ) AS SIGNED ) FROM tab2 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-3022
SELECT DISTINCT + CAST ( + MIN ( + 43 ) AS INTEGER ) FROM tab2 AS cor0
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-3023
SELECT DISTINCT - 6 + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3023
SELECT DISTINCT - 6 + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3024
SELECT ALL - + CAST( NULL AS DECIMAL ) + + - col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3024
SELECT ALL - + CAST ( NULL AS REAL ) + + - col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3025
SELECT - - COUNT( * ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-3025
SELECT - - COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9

query I rowsort
SELECT ALL - 35 * - - 12 FROM tab1
----
-420
-420
-420

query I rowsort
SELECT DISTINCT - 14 * + ( - col2 ) AS col0 FROM tab0 AS cor0
----
1386
140
658

onlyif mysql # aggregate syntax: 
query I rowsort label-3028
SELECT ALL COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-3028
SELECT ALL COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3029
SELECT DISTINCT + + COUNT( DISTINCT + col1 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3029
SELECT DISTINCT + + COUNT ( DISTINCT + col1 ) AS col2 FROM tab2 AS cor0
----
3

query II rowsort
SELECT - col2, 53 FROM tab1 WHERE NOT NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL 72 * - - col1 AS col1 FROM tab1
----
1008
3384
360

onlyif mysql # aggregate syntax: 
query I rowsort label-3032
SELECT COUNT( * ) - + 40 FROM tab1 WHERE NOT NULL NOT IN ( + - col1 * - - col2 / + + 22 * + 30 / + col2 )
----
-40

skipif mysql # not compatible
query I rowsort label-3032
SELECT COUNT ( * ) - + 40 FROM tab1 WHERE NOT NULL NOT IN ( + - col1 * - - col2 / + + 22 * + 30 / + col2 )
----
-40

onlyif mysql # aggregate syntax: 
query II rowsort label-3033
SELECT - COUNT( * ) AS col2, - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-3
-3

skipif mysql # not compatible
query II rowsort label-3033
SELECT - COUNT ( * ) AS col2, - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-3
-3

query I rowsort
SELECT - - ( - - ( + - 34 ) ) FROM tab1 AS cor0
----
-34
-34
-34

query II rowsort
SELECT + col2 AS col0, 81 AS col2 FROM tab0 AS cor0
----
10
81
47
81
99
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3036
SELECT + SUM( - 39 ) AS col1 FROM tab2 AS cor0
----
-117

skipif mysql # not compatible
query I rowsort label-3036
SELECT + SUM ( - 39 ) AS col1 FROM tab2 AS cor0
----
-117

query I rowsort
SELECT DISTINCT - 66 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-66

query I rowsort
SELECT ALL - 99 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 64d06513850a26495bc6c2fddeb254b7

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT col1 * col0 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 + - 39 col1, + 11 FROM tab2 AS cor0
----
-62
11
-79
11
-97
11

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col2 * col0 NOT BETWEEN - 18 AND + col1 + + 68
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3042
SELECT - ( 32 ) + - - COUNT( * ) + + 67 * + - 79 AS col2 FROM tab1 AS cor0
----
-5322

skipif mysql # not compatible
query I rowsort label-3042
SELECT - ( 32 ) + - - COUNT ( * ) + + 67 * + - 79 AS col2 FROM tab1 AS cor0
----
-5322

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3043
SELECT - 94 + - ( 83 ) * + CAST( + col0 AS SIGNED ) * - col2 FROM tab0 AS cor0
----
58421
72116
796955

skipif mysql # not compatible
query I rowsort label-3043
SELECT - 94 + - ( 83 ) * + CAST ( + col0 AS INTEGER ) * - col2 FROM tab0 AS cor0
----
58421
72116
796955

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3044
SELECT - col1 * col2 * + - CAST( NULL AS SIGNED ) + - col0 + - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3044
SELECT - col1 * col2 * + - CAST ( NULL AS INTEGER ) + - col0 + - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL > col0 + + col2 * - - col0 * + - col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3046
SELECT ALL + 34 * COUNT( * ) + - + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3046
SELECT ALL + 34 * COUNT ( * ) + - + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL

query II rowsort
SELECT ALL col1 + - col0 + - - 89 AS col2, - ( col0 ) AS col1 FROM tab0
----
-7
-97
155
-15
23
-87

onlyif mysql # aggregate syntax: 
query II rowsort label-3048
SELECT ALL COUNT( * ) + - 16 * + + COUNT( * ) + + - MIN( ALL - 73 ) AS col2, COUNT( * ) * + 58 FROM tab0
----
28
174

skipif mysql # not compatible
query II rowsort label-3048
SELECT ALL COUNT ( * ) + - 16 * + + COUNT ( * ) + + - MIN ( ALL - 73 ) AS col2, COUNT ( * ) * + 58 FROM tab0
----
28
174

query I rowsort
SELECT DISTINCT - col0 + 81 FROM tab2
----
17
35
6

query I rowsort
SELECT DISTINCT - 11 AS col1 FROM tab1 WHERE NOT NULL >= col0
----

query I rowsort
SELECT DISTINCT + 29 + + col0 + + + 95 AS col0 FROM tab1
----
175
209
215

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 29 ) * + 75 col1 FROM tab1
----
2175
2175
2175

onlyif mysql # aggregate syntax: 
query I rowsort label-3053
SELECT ALL - - MIN( ALL col1 ) AS col1 FROM tab2 WHERE NOT NULL BETWEEN - - col1 + + col1 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3053
SELECT ALL - - MIN ( ALL col1 ) AS col1 FROM tab2 WHERE NOT NULL BETWEEN - - col1 + + col1 AND NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3054
SELECT DISTINCT col1 - + CAST( NULL AS SIGNED ) + - col0 / col2 * + 90 col2 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3054
SELECT DISTINCT col1 - + CAST ( NULL AS INTEGER ) + - col0 / col2 * + 90 col2 FROM tab0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE ( - col0 ) IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND col1
----

query II rowsort
SELECT ALL - col1 AS col1, col1 * + 20 * - - 87 FROM tab1 AS cor0
----
-14
24360
-47
81780
-5
8700

onlyif mysql # aggregate syntax: 
query I rowsort label-3058
SELECT DISTINCT - - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9

skipif mysql # not compatible
query I rowsort label-3058
SELECT DISTINCT - - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3059
SELECT ALL + - COUNT( * ) col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3059
SELECT ALL + - COUNT ( * ) col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 99 col0 FROM tab0 AS cor0
----
99
99
99

query I rowsort
SELECT - + ( - - col0 ) AS col2 FROM tab0 AS cor0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3062
SELECT - + COUNT( 11 ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3062
SELECT - + COUNT ( 11 ) AS col2 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3063
SELECT ALL SUM( col0 ) AS col2 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-3063
SELECT ALL SUM ( col0 ) AS col2 FROM tab1 AS cor0
----
227

query I rowsort
SELECT DISTINCT 19 FROM tab0 AS cor0 WHERE NOT NULL < 53
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3065
SELECT ALL + COUNT( + CAST( NULL AS SIGNED ) ) * + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3065
SELECT ALL + COUNT ( + CAST ( NULL AS INTEGER ) ) * + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT + + col0 + + - col0 <> NULL
----

query II rowsort
SELECT ALL - 38 + col0 AS col1, col0 AS col1 FROM tab2 WHERE NOT - + col2 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3068
SELECT DISTINCT * FROM tab1 WHERE NOT ( + + CAST( - col2 AS SIGNED ) + - ( + col2 ) * + col2 ) = NULL
----

skipif mysql # not compatible
query III rowsort label-3068
SELECT DISTINCT * FROM tab1 WHERE NOT ( + + CAST ( - col2 AS INTEGER ) + - ( + col2 ) * + col2 ) = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 col0 FROM tab1 WHERE NOT ( NOT ( + col1 <> col1 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 97 col0 FROM tab0
----
97

onlyif mysql # aggregate syntax: 
query II rowsort label-3071
SELECT ALL + 95 * + COUNT( * ) AS col0, + MIN( ALL - col2 ) AS col2 FROM tab1
----
285
-96

skipif mysql # not compatible
query II rowsort label-3071
SELECT ALL + 95 * + COUNT ( * ) AS col0, + MIN ( ALL - col2 ) AS col2 FROM tab1
----
285
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3072
SELECT - ( - CAST( NULL AS SIGNED ) ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3072
SELECT - ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3073
SELECT DISTINCT SUM( DISTINCT + + 85 ) AS col0 FROM tab2
----
85

skipif mysql # not compatible
query I rowsort label-3073
SELECT DISTINCT SUM ( DISTINCT + + 85 ) AS col0 FROM tab2
----
85

query I rowsort
SELECT col0 + + 46 AS col1 FROM tab0
----
133
143
61

onlyif mysql # DIV for integer division: 
query I rowsort label-3075
SELECT + + 60 DIV - col1 AS col0 FROM tab0 AS cor0
----
-2
-60
0

skipif mysql # not compatible
query I rowsort label-3075
SELECT + + 60 / - col1 AS col0 FROM tab0 AS cor0
----
-2
-60
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3076
SELECT DISTINCT - 80 * COUNT( DISTINCT - col1 ) AS col2 FROM tab1 AS cor0
----
-240

skipif mysql # not compatible
query I rowsort label-3076
SELECT DISTINCT - 80 * COUNT ( DISTINCT - col1 ) AS col2 FROM tab1 AS cor0
----
-240

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 37 NOT BETWEEN + col1 + - + col1 AND + + 82
----

query I rowsort
SELECT - ( - col0 ) * col1 * col2 * + ( col0 ) - - col1 FROM tab2 AS cor0
----
12615757
21858817
2482119

query I rowsort
SELECT DISTINCT col0 + - 51 FROM tab1
----
0
34
40

query I rowsort
SELECT DISTINCT - col2 - + col0 * col1 + + col2 FROM tab0
----
-1215
-1827
-97

query I rowsort
SELECT col2 * - + col0 + 5 FROM tab2
----
-1053
-2555
-4345

query I rowsort
SELECT 60 + ( + col1 ) AS col1 FROM tab0
----
141
61
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3083
SELECT - MIN( DISTINCT - 17 ) FROM tab0 WHERE NULL IS NULL
----
17

skipif mysql # not compatible
query I rowsort label-3083
SELECT - MIN ( DISTINCT - 17 ) FROM tab0 WHERE NULL IS NULL
----
17

query I rowsort
SELECT col2 + + - col0 * - - col0 FROM tab1
----
-2505
-7166
-8213

query I rowsort
SELECT DISTINCT 28 - + ( - col2 ) AS col1 FROM tab2
----
51
68
86

query I rowsort
SELECT ALL + col1 * + col1 + - col0 AS col1 FROM tab2
----
2555
4414
5865

onlyif mysql # aggregate syntax: 
query I rowsort label-3087
SELECT DISTINCT 55 * - MAX( DISTINCT - 79 ) AS col1 FROM tab1
----
4345

skipif mysql # not compatible
query I rowsort label-3087
SELECT DISTINCT 55 * - MAX ( DISTINCT - 79 ) AS col1 FROM tab1
----
4345

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 - + - col1 + + + 89 col1 FROM tab1
----
154
179
227

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 74 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 * col1 > col2 + - 38 + + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3091
SELECT + col1 DIV + 33 FROM tab0 cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-3091
SELECT + col1 / + 33 FROM tab0 cor0
----
0
0
2

query I rowsort
SELECT - 75 * 70 AS col2 FROM tab2
----
-5250
-5250
-5250

onlyif mysql # aggregate syntax: 
query I rowsort label-3093
SELECT + 41 * + - COUNT( * ) AS col0 FROM tab0
----
-123

skipif mysql # not compatible
query I rowsort label-3093
SELECT + 41 * + - COUNT ( * ) AS col0 FROM tab0
----
-123

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 <= - 9
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 50 col1 FROM tab2 AS cor0
----
-50
-50
-50

query II rowsort
SELECT col0 AS col2, col2 * + col1 FROM tab2 AS cor0
----
46
1173
64
3080
75
3886

query I rowsort
SELECT DISTINCT + + col1 FROM tab2 AS cor0 WHERE ( NULL ) <> - 31 * + + ( - - ( + col1 ) )
----

query I rowsort
SELECT DISTINCT - 28 + col0 FROM tab1 AS cor0
----
23
57
63

onlyif mysql # aggregate syntax: 
query I rowsort label-3099
SELECT - ( - COUNT( * ) ) * SUM( DISTINCT + - col1 ) + - 46 AS col1 FROM tab1
----
-244

skipif mysql # not compatible
query I rowsort label-3099
SELECT - ( - COUNT ( * ) ) * SUM ( DISTINCT + - col1 ) + - 46 AS col1 FROM tab1
----
-244

query I rowsort
SELECT 51 + 82 + col0 AS col0 FROM tab0
----
148
220
230

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col1, + 39 col2 FROM tab0
----
15
39
87
39
97
39

query I rowsort
SELECT DISTINCT - col1 FROM tab0 WHERE NOT + - 14 IS NULL
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-3103
SELECT MIN( ALL - - col0 ) + ( - 49 ) FROM tab1
----
2

skipif mysql # not compatible
query I rowsort label-3103
SELECT MIN ( ALL - - col0 ) + ( - 49 ) FROM tab1
----
2

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL <> 25 / 29
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3105
SELECT DISTINCT - CAST( + 26 AS SIGNED ) FROM tab2
----
-26

skipif mysql # not compatible
query I rowsort label-3105
SELECT DISTINCT - CAST ( + 26 AS INTEGER ) FROM tab2
----
-26

query II rowsort
SELECT ALL col1 AS col2, col1 + + 27 FROM tab1
----
14
41
47
74
5
32

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 * - + col1 < col2
----

query II rowsort
SELECT ALL + col0 + + - 2 / - - col0 AS col2, - col1 FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN + col1 AND 15 - + + ( + + 89 ) + col0 * - + col2 + + col2
----

query II rowsort
SELECT + col2 AS col1, - 76 * - + ( + + 57 ) FROM tab1 AS cor0
----
59
4332
68
4332
96
4332

query II rowsort
SELECT col2, - 16 + + - col2 FROM tab0 AS cor0
----
10
-26
47
-63
99
-115

onlyif mysql # aggregate syntax: 
query I rowsort label-3111
SELECT ALL - ( ( + ( 51 ) ) ) + - 74 * COUNT( * ) AS col1 FROM tab1 AS cor0
----
-273

skipif mysql # not compatible
query I rowsort label-3111
SELECT ALL - ( ( + ( 51 ) ) ) + - 74 * COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-273

query I rowsort
SELECT ALL - col2 AS col0 FROM tab2 WHERE col0 BETWEEN col1 / - 67 * - - col0 + - col1 + col2 AND - 65
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3113
SELECT DISTINCT - CAST( - + col2 AS SIGNED ) - - col2 FROM tab0
----
198
20
94

skipif mysql # not compatible
query I rowsort label-3113
SELECT DISTINCT - CAST ( - + col2 AS INTEGER ) - - col2 FROM tab0
----
198
20
94

query I rowsort
SELECT ALL col1 / - - 16 FROM tab2 WHERE NOT - - col2 <> NULL
----

query I rowsort
SELECT DISTINCT col1 - + ( - - col2 ) FROM tab1 AS cor0
----
-21
-54
-82

query I rowsort
SELECT DISTINCT col0 * - + 9 AS col2 FROM tab0 AS cor0
----
-135
-783
-873

query II rowsort
SELECT ALL - - col1 * + col0, col1 * 37 AS col2 FROM tab0 AS cor0
----
1215
2997
1827
777
97
37

query I rowsort
SELECT ALL - col1 + + 55 * ( - col0 ) * col1 * 39 + col0 AS col1 FROM tab2 AS cor0
----
-10570573
-10778617
-5032175

query II rowsort
SELECT 91 + - - col1 * + col1 + - col1 * 8 AS col1, - col1 * - col2 AS col2 FROM tab2 AS cor0
----
2284
1173
4044
3886
5404
3080

onlyif mysql # aggregate syntax: 
query I rowsort label-3120
SELECT DISTINCT + COUNT( * ) * + 47 FROM tab0 AS cor0
----
141

skipif mysql # not compatible
query I rowsort label-3120
SELECT DISTINCT + COUNT ( * ) * + 47 FROM tab0 AS cor0
----
141

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + + col0 col2 FROM tab2 AS cor0
----
1058
2560
4350

onlyif mysql # DIV for integer division: 
query I rowsort label-3122
SELECT + - col2 DIV + 48 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3122
SELECT + - col2 / + 48 FROM tab2 AS cor0
----
-1
0
0

query I rowsort
SELECT ALL + col2 + + - col0 AS col2 FROM tab1 AS cor0 WHERE + col2 / col1 IS NULL
----

query I rowsort
SELECT - 60 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 067a4b5daf8747042e3b07ca8459859f

onlyif mysql # aggregate syntax: 
query I rowsort label-3125
SELECT 29 * COUNT( * ) AS col1 FROM tab1
----
87

skipif mysql # not compatible
query I rowsort label-3125
SELECT 29 * COUNT ( * ) AS col1 FROM tab1
----
87

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 + - - col1 > + - col0 * - col1 * - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3127
SELECT ALL - COUNT( ALL + ( - + col1 ) ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3127
SELECT ALL - COUNT ( ALL + ( - + col1 ) ) FROM tab1 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 6 / col0 + col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 8 FROM tab1 WHERE NOT col2 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3130
SELECT 15 - CAST( ( col2 ) - 84 AS SIGNED ) * - ( 59 * - ( - 80 ) ) AS col0 FROM tab0
----
-174625
-349265
70815

skipif mysql # not compatible
query I rowsort label-3130
SELECT 15 - CAST ( ( col2 ) - 84 AS INTEGER ) * - ( 59 * - ( - 80 ) ) AS col0 FROM tab0
----
-174625
-349265
70815

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col0 + - 25 * + col1 IN ( - 16 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col1 FROM tab0 WHERE NOT - col2 = NULL
----

query III rowsort
SELECT * FROM tab1 WHERE col0 <= ( - col1 - col1 )
----

query I rowsort
SELECT DISTINCT + col0 - col0 * col1 FROM tab0
----
-1200
-1740
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3135
SELECT 8 + MAX( col2 ) AS col1 FROM tab1
----
104

skipif mysql # not compatible
query I rowsort label-3135
SELECT 8 + MAX ( col2 ) AS col1 FROM tab1
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-3136
SELECT DISTINCT - 90 * COUNT( * ) AS col2 FROM tab0
----
-270

skipif mysql # not compatible
query I rowsort label-3136
SELECT DISTINCT - 90 * COUNT ( * ) AS col2 FROM tab0
----
-270

onlyif mysql # aggregate syntax: 
query I rowsort label-3137
SELECT + COUNT( * ) AS col2 FROM tab0 WHERE ( col2 ) IN ( - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-3137
SELECT + COUNT ( * ) AS col2 FROM tab0 WHERE ( col2 ) IN ( - col0 )
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL IN ( + 89 )
----

query I rowsort
SELECT + 87 FROM tab0 WHERE NOT NULL > ( NULL )
----

query I rowsort
SELECT + 56 + - 96 FROM tab1
----
-40
-40
-40

query I rowsort
SELECT + ( - 0 ) FROM tab0
----
0
0
0

query I rowsort
SELECT ALL - 31 + col2 FROM tab2
----
-8
27
9

query I rowsort
SELECT + col0 + - ( col2 ) FROM tab0
----
-2
-32
77

query I rowsort
SELECT DISTINCT 3 - col2 / col0 FROM tab1 WHERE NOT + 2 + + col1 IS NOT NULL
----

query I rowsort
SELECT + col0 AS col0 FROM tab1 WHERE NOT ( ( col2 ) ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 col0 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3147
SELECT DISTINCT - 2 * COUNT( 57 ) AS col2 FROM tab1
----
-6

skipif mysql # not compatible
query I rowsort label-3147
SELECT DISTINCT - 2 * COUNT ( 57 ) AS col2 FROM tab1
----
-6

query III rowsort
SELECT * FROM tab1 WHERE 90 IN ( col2 - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3149
SELECT - COUNT( * ) * 22 + - 61 AS col0 FROM tab0
----
-127

skipif mysql # not compatible
query I rowsort label-3149
SELECT - COUNT ( * ) * 22 + - 61 AS col0 FROM tab0
----
-127

onlyif mysql # aggregate syntax: 
query I rowsort label-3150
SELECT MAX( DISTINCT - 15 ) + MAX( ALL - col1 ) AS col2 FROM tab2
----
-66

skipif mysql # not compatible
query I rowsort label-3150
SELECT MAX ( DISTINCT - 15 ) + MAX ( ALL - col1 ) AS col2 FROM tab2
----
-66

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3151
SELECT ALL + col0 AS col2 FROM tab1 WHERE ( + col1 * - CAST( NULL AS DECIMAL ) ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3151
SELECT ALL + col0 AS col2 FROM tab1 WHERE ( + col1 * - CAST ( NULL AS REAL ) ) IS NOT NULL
----

query I rowsort
SELECT 60 * + col2 AS col0 FROM tab0
----
2820
5940
600

onlyif mysql # aggregate syntax: 
query I rowsort label-3153
SELECT DISTINCT SUM( DISTINCT - 74 ) FROM tab0 AS cor0
----
-74

skipif mysql # not compatible
query I rowsort label-3153
SELECT DISTINCT SUM ( DISTINCT - 74 ) FROM tab0 AS cor0
----
-74

query I rowsort
SELECT + col0 FROM tab0 AS cor0 WHERE col2 + col2 IS NOT NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3155
SELECT DISTINCT - COUNT( * ) * + COUNT( col2 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-9

skipif mysql # not compatible
query I rowsort label-3155
SELECT DISTINCT - COUNT ( * ) * + COUNT ( col2 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-9

query I rowsort
SELECT - col2 * 31 + 76 FROM tab2 AS cor0
----
-1164
-1722
-637

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3157
SELECT + CAST( NULL AS SIGNED ) / - ( + col2 ) + - 51 FROM tab1 WHERE NULL > col1 * col2 + + 0
----

skipif mysql # not compatible
query I rowsort label-3157
SELECT + CAST ( NULL AS INTEGER ) / - ( + col2 ) + - 51 FROM tab1 WHERE NULL > col1 * col2 + + 0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3158
SELECT COUNT( * ) FROM tab1 AS cor0 WHERE ( col0 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3158
SELECT COUNT ( * ) FROM tab1 AS cor0 WHERE ( col0 ) IS NULL
----
0

query I rowsort
SELECT ALL - 15 AS col0 FROM tab1 AS cor0 WHERE NOT ( - 16 ) IS NULL
----
-15
-15
-15

query I rowsort
SELECT ALL + - col2 - 1 * - col1 AS col0 FROM tab2 cor0
----
28
37
9

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( + 52 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3162
SELECT DISTINCT - CAST( NULL AS SIGNED ) col2 FROM tab0 AS cor0 WHERE NOT col1 + - col1 * + 70 IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3162
SELECT DISTINCT - CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0 WHERE NOT col1 + - col1 * + 70 IS NULL
----
NULL

query I rowsort
SELECT - col1 - 16 AS col1 FROM tab0 AS cor0
----
-17
-37
-97

query I rowsort
SELECT 80 - - col0 * col2 AS col1 FROM tab1 AS cor0
----
4976
5095
6268

query I rowsort
SELECT + + 70 * - ( col0 ) - - col0 * col1 AS col1 FROM tab1 AS cor0
----
-2093
-2856
-5525

query I rowsort
SELECT ALL + 1 + - col0 FROM tab2 AS cor0
----
-45
-63
-74

query I rowsort
SELECT ALL 38 * ( + col2 ) + - 59 FROM tab1 AS cor0
----
2183
2525
3589

query I rowsort
SELECT + 99 + + col1 AS col2 FROM tab2 AS cor0
----
150
166
176

query I rowsort
SELECT ALL + 21 FROM tab1 AS cor0 WHERE NULL IN ( + 67 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3170
SELECT ALL * FROM tab0 AS cor0 WHERE ( + 49 ) + + ( CAST( NULL AS SIGNED ) + CAST( + col1 + 54 / col1 AS SIGNED ) ) BETWEEN ( 21 * col0 ) AND - col0
----

skipif mysql # not compatible
query III rowsort label-3170
SELECT ALL * FROM tab0 AS cor0 WHERE ( + 49 ) + + ( CAST ( NULL AS INTEGER ) + CAST ( + col1 + 54 / col1 AS INTEGER ) ) BETWEEN ( 21 * col0 ) AND - col0
----

query I rowsort
SELECT DISTINCT 92 AS col1 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-3172
SELECT ALL MIN( + - 49 ) AS col2 FROM tab0
----
-49

skipif mysql # not compatible
query I rowsort label-3172
SELECT ALL MIN ( + - 49 ) AS col2 FROM tab0
----
-49

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col0 NOT BETWEEN NULL AND col1
----
87
21
10
97
1
99

query I rowsort
SELECT ALL - col2 * + 46 * - 32 AS col1 FROM tab2
----
33856
58880
85376

query I rowsort
SELECT DISTINCT col1 * - col0 * - col2 AS col1 FROM tab2
----
197120
291450
53958

onlyif mysql # aggregate syntax: 
query I rowsort label-3176
SELECT DISTINCT + SUM( DISTINCT - col1 ) + - 27 FROM tab1 WHERE NULL IS NULL
----
-93

skipif mysql # not compatible
query I rowsort label-3176
SELECT DISTINCT + SUM ( DISTINCT - col1 ) + - 27 FROM tab1 WHERE NULL IS NULL
----
-93

query I rowsort
SELECT 67 * + col2 * - 1 FROM tab0
----
-3149
-6633
-670

onlyif mysql # DIV for integer division: 
query I rowsort label-3178
SELECT ALL col1 DIV - + 95 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3178
SELECT ALL col1 / - + 95 FROM tab1
----
0
0
0

query I rowsort
SELECT col1 AS col1 FROM tab0 WHERE NOT ( - ( 26 ) ) >= - col0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3180
SELECT MAX( ALL + + 63 ) FROM tab1
----
63

skipif mysql # not compatible
query I rowsort label-3180
SELECT MAX ( ALL + + 63 ) FROM tab1
----
63

query I rowsort
SELECT + col0 AS col1 FROM tab0 WHERE NOT ( ( - 61 ) ) * col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3182
SELECT col0 * + ( + col1 DIV col2 ) FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
64
75
92

skipif mysql # not compatible
query I rowsort label-3182
SELECT col0 * + ( + col1 / col2 ) FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
64
75
92

onlyif mysql # aggregate syntax: 
query I rowsort label-3183
SELECT COUNT( - col2 ) * + 48 FROM tab2
----
144

skipif mysql # not compatible
query I rowsort label-3183
SELECT COUNT ( - col2 ) * + 48 FROM tab2
----
144

onlyif mysql # DIV for integer division: 
query I rowsort label-3184
SELECT DISTINCT - 50 DIV 7 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-7

skipif mysql # not compatible
query I rowsort label-3184
SELECT DISTINCT - 50 / 7 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3185
SELECT * FROM tab0 WHERE NOT - col0 * - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-3185
SELECT * FROM tab0 WHERE NOT - col0 * - CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT 26 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + - col1 * - - col0 AS col1 FROM tab2 AS cor0
----
-2346
-4928
-5025

query I rowsort
SELECT + col0 AS col1 FROM tab2 AS cor0 WHERE NOT - 71 IN ( - - col0 )
----
46
64
75

query II rowsort
SELECT - col2 AS col1, - 39 * - 88 FROM tab0 cor0
----
-10
3432
-47
3432
-99
3432

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3190
SELECT ALL - col2 + - col1 - - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3190
SELECT ALL - col2 + - col1 - - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3191
SELECT MIN( DISTINCT + col1 ) + + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3191
SELECT MIN ( DISTINCT + col1 ) + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT 78 * + - 63 + - + col1 AS col2 FROM tab1 AS cor0
----
-4919
-4928
-4961

onlyif mysql # DIV for integer division: 
query I rowsort label-3193
SELECT ( col0 ) DIV + 61 + + 62 AS col2 FROM tab2 WHERE ( + 4 * + 81 DIV 79 ) NOT BETWEEN col0 - - col2 AND NULL
----
62
63
63

skipif mysql # not compatible
query I rowsort label-3193
SELECT ( col0 ) / + 61 + + 62 AS col2 FROM tab2 WHERE ( + 4 * + 81 / 79 ) NOT BETWEEN col0 - - col2 AND NULL
----
62
63
63

query I rowsort
SELECT + 5 * 72 * + + 29 + + col1 * + col1 AS col0 FROM tab2
----
13041
14929
16369

onlyif mysql # aggregate syntax: 
query I rowsort label-3195
SELECT ALL SUM( DISTINCT - - 68 ) * MAX( - col0 * 51 + + col2 ) FROM tab2 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3195
SELECT ALL SUM ( DISTINCT - - 68 ) * MAX ( - col0 * 51 + + col2 ) FROM tab2 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT ALL 53 + - col1 - + 56 AS col2 FROM tab2
----
-54
-70
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3197
SELECT - CAST( NULL AS SIGNED ) + 91 * 37 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3197
SELECT - CAST ( NULL AS INTEGER ) + 91 * 37 AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3198
SELECT DISTINCT MAX( ALL - + col1 ) + - COUNT( * ) FROM tab2
----
-54

skipif mysql # not compatible
query I rowsort label-3198
SELECT DISTINCT MAX ( ALL - + col1 ) + - COUNT ( * ) FROM tab2
----
-54

query III rowsort
SELECT * FROM tab1 WHERE ( + col0 * col2 ) IN ( - 90 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3200
SELECT col0 * - CAST( col0 / 9 AS SIGNED ) col1 FROM tab1 WHERE + CAST( - 24 AS SIGNED ) BETWEEN NULL AND NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3200
SELECT col0 * - CAST ( col0 / 9 AS INTEGER ) col1 FROM tab1 WHERE + CAST ( - 24 AS INTEGER ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL 25 * 89 FROM tab0
----
2225
2225
2225

query I rowsort
SELECT ALL 50 AS col2 FROM tab2 cor0
----
50
50
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3203
SELECT DISTINCT - COUNT( + + col2 ) + + - CAST( NULL AS SIGNED ) + - + COUNT( col1 ) * COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3203
SELECT DISTINCT - COUNT ( + + col2 ) + + - CAST ( NULL AS INTEGER ) + - + COUNT ( col1 ) * COUNT ( * ) FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - - col1 col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ( - 76 ) - - + 44 FROM tab1 AS cor0
----
-32
-32
-32

query I rowsort
SELECT DISTINCT - col2 * + - col1 + col2 * + + 82 + + 83 FROM tab1
----
5216
8855
9299

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT IN ( - + 7 + + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3208
SELECT DISTINCT * FROM tab0 WHERE NOT - 17 / - col1 + - + col1 / CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3208
SELECT DISTINCT * FROM tab0 WHERE NOT - 17 / - col1 + - + col1 / CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3209
SELECT + COUNT( * ) col1 FROM tab1 WHERE + col1 * + col0 * - 75 IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3209
SELECT + COUNT ( * ) col1 FROM tab1 WHERE + col1 * + col0 * - 75 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3210
SELECT + MIN( + col1 ) * - - COUNT( 38 ) + 96 + COUNT( * ) FROM tab0 AS cor0
----
102

skipif mysql # not compatible
query I rowsort label-3210
SELECT + MIN ( + col1 ) * - - COUNT ( 38 ) + 96 + COUNT ( * ) FROM tab0 AS cor0
----
102

query II rowsort
SELECT ALL - + col1 AS col2, + col0 FROM tab2 AS cor0
----
-51
46
-67
75
-77
64

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col0 AND + - 52
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3213
SELECT DISTINCT + MIN( + 97 ) FROM tab1 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-3213
SELECT DISTINCT + MIN ( + 97 ) FROM tab1 AS cor0
----
97

query I rowsort
SELECT DISTINCT + + 90 AS col1 FROM tab1 AS cor0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3215
SELECT + + MIN( - col1 ) AS col2 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-3215
SELECT + + MIN ( - col1 ) AS col2 FROM tab1 AS cor0
----
-47

query I rowsort
SELECT - 66 * - 64 * + + 35 AS col2 FROM tab2 AS cor0
----
147840
147840
147840

query I rowsort
SELECT ALL 44 * ( 79 ) AS col2 FROM tab2
----
3476
3476
3476

query I rowsort
SELECT DISTINCT col0 * col2 * + + ( - col2 ) FROM tab1
----
-295885
-420784
-470016

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3219
SELECT ALL - CAST( NULL AS SIGNED ) / + - ( - - COUNT( DISTINCT + col0 ) ) / + 86 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3219
SELECT ALL - CAST ( NULL AS INTEGER ) / + - ( - - COUNT ( DISTINCT + col0 ) ) / + 86 AS col0 FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT ( ( + - col0 ) + + + col2 ) IN ( col1 * - 33 + - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3221
SELECT ALL CAST( NULL AS SIGNED ) * - + col1 / col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3221
SELECT ALL CAST ( NULL AS INTEGER ) * - + col1 / col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3222
SELECT + CAST( NULL AS SIGNED ) col1, - 64 AS col0 FROM tab2
----
NULL
-64
NULL
-64
NULL
-64

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3222
SELECT + CAST ( NULL AS INTEGER ) col1, - 64 AS col0 FROM tab2
----
NULL
-64
NULL
-64
NULL
-64

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NULL ) IN ( 16 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3224
SELECT - SUM( + 68 ) AS col0 FROM tab1
----
-204

skipif mysql # not compatible
query I rowsort label-3224
SELECT - SUM ( + 68 ) AS col0 FROM tab1
----
-204

onlyif mysql # DIV for integer division: 
query I rowsort label-3225
SELECT ALL col1 DIV col2 + - col1 DIV col1 AS col1 FROM tab0 AS cor0 WHERE + ( - 33 ) * - + col1 + + col1 BETWEEN + col0 AND col0 * + col1
----
1

skipif mysql # not compatible
query I rowsort label-3225
SELECT ALL col1 / col2 + - col1 / col1 AS col1 FROM tab0 AS cor0 WHERE + ( - 33 ) * - + col1 + + col1 BETWEEN + col0 AND col0 * + col1
----
1

query I rowsort
SELECT ALL + col0 * + + col2 AS col2 FROM tab2 AS cor0
----
1058
2560
4350

onlyif mysql # aggregate syntax: 
query II rowsort label-3227
SELECT - 5, COUNT( * ) AS col1 FROM tab2 AS cor0
----
-5
3

skipif mysql # not compatible
query II rowsort label-3227
SELECT - 5, COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-5
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 9 > NULL
----

query I rowsort
SELECT DISTINCT + + 67 * col0 AS col1 FROM tab1 AS cor0
----
3417
5695
6097

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3230
SELECT col1 + - - CAST( NULL AS DECIMAL ) + + 94 * col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3230
SELECT col1 + - - CAST ( NULL AS REAL ) + + 94 * col2 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - col1 ) NOT IN ( col0 * - - 96 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 41 + - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 + - col2 NOT BETWEEN ( col0 * col2 + - col0 + + + 51 ) AND - 4 + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3234
SELECT ALL * FROM tab0 AS cor0 WHERE ( + - 83 ) * - CAST( NULL AS SIGNED ) + col0 * - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3234
SELECT ALL * FROM tab0 AS cor0 WHERE ( + - 83 ) * - CAST ( NULL AS INTEGER ) + col0 * - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col2 * - - 14 / + 22 FROM tab0 AS cor0 WHERE NULL < + 87
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 + - - col0 col2 FROM tab2 cor0
----
128
150
92

onlyif mysql # aggregate syntax: 
query I rowsort label-3237
SELECT DISTINCT SUM( col1 ) FROM tab2 AS cor0 WHERE ( NOT ( - col0 ) <> col1 + - - col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3237
SELECT DISTINCT SUM ( col1 ) FROM tab2 AS cor0 WHERE ( NOT ( - col0 ) <> col1 + - - col2 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3238
SELECT ALL col0 DIV col0 + + col1 * col0 + - col0 FROM tab1 AS cor0
----
341
4187
664

skipif mysql # not compatible
query I rowsort label-3238
SELECT ALL col0 / col0 + + col1 * col0 + - col0 FROM tab1 AS cor0
----
341
4187
664

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3239
SELECT ALL col0 + - CAST( NULL AS SIGNED ) / + - col1 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3239
SELECT ALL col0 + - CAST ( NULL AS INTEGER ) / + - col1 AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3240
SELECT ALL + 82 col1, + col1 AS col1 FROM tab2 WHERE col1 / CAST( - col2 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3240
SELECT ALL + 82 col1, + col1 AS col1 FROM tab2 WHERE col1 / CAST ( - col2 AS INTEGER ) IS NULL
----

query I rowsort
SELECT + col0 + ( col2 ) FROM tab2
----
104
133
69

onlyif mysql # aggregate syntax: 
query I rowsort label-3242
SELECT DISTINCT - COUNT( - 4 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3242
SELECT DISTINCT - COUNT ( - 4 ) FROM tab0
----
-3

query I rowsort
SELECT ALL col1 - - 15 FROM tab1
----
20
29
62

query I rowsort
SELECT ALL - col2 * - + col0 AS col2 FROM tab0
----
705
870
9603

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3245
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( ( CAST( - col1 AS DECIMAL ) ) + 36 * col2 ) NOT BETWEEN ( + col2 ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-3245
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( ( CAST ( - col1 AS REAL ) ) + 36 * col2 ) NOT BETWEEN ( + col2 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3246
SELECT COUNT( * ) AS col1, - 9 col0 FROM tab2 AS cor0
----
3
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3246
SELECT COUNT ( * ) AS col1, - 9 col0 FROM tab2 AS cor0
----
3
-9

query I rowsort
SELECT DISTINCT 14 AS col1 FROM tab1 WHERE + col0 <> ( - col2 * col2 )
----
14

query I rowsort
SELECT DISTINCT 16 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3249
SELECT CAST( - COUNT( * ) AS SIGNED ) col1 FROM tab0, tab1 AS cor0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3249
SELECT CAST ( - COUNT ( * ) AS INTEGER ) col1 FROM tab0, tab1 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3250
SELECT ALL COUNT( DISTINCT col0 ) - ( - + 18 ) FROM tab2
----
21

skipif mysql # not compatible
query I rowsort label-3250
SELECT ALL COUNT ( DISTINCT col0 ) - ( - + 18 ) FROM tab2
----
21

query I rowsort
SELECT ALL - 25 FROM tab0 AS cor0 WHERE - col2 IS NULL
----

query I rowsort
SELECT DISTINCT - - 53 FROM tab0 cor0
----
53

onlyif mysql # DIV for integer division: 
query II rowsort label-3253
SELECT + col2 DIV - + col0 AS col0, - 44 - + + col2 + - col1 AS col2 FROM tab2 cor0
----
0
-118
0
-161
0
-169

skipif mysql # not compatible
query II rowsort label-3253
SELECT + col2 / - + col0 AS col0, - 44 - + + col2 + - col1 AS col2 FROM tab2 cor0
----
0
-118
0
-161
0
-169

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 68 col0 FROM tab1 AS cor0
----
-68
-68
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-3255
SELECT ALL + COUNT( * ) * - + MIN( ALL - + col2 ) AS col2 FROM tab0
----
297

skipif mysql # not compatible
query I rowsort label-3255
SELECT ALL + COUNT ( * ) * - + MIN ( ALL - + col2 ) AS col2 FROM tab0
----
297

query I rowsort
SELECT ALL 8 AS col2 FROM tab0 WHERE - 45 IN ( + - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3257
SELECT ALL COUNT( ALL - + col1 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3257
SELECT ALL COUNT ( ALL - + col1 ) AS col0 FROM tab1
----
3

query II rowsort
SELECT ALL col2, + 44 * - col1 FROM tab2
----
23
-2244
40
-3388
58
-2948

query I rowsort
SELECT DISTINCT - col1 + 80 * - - col2 / - col2 + col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3260
SELECT ALL ( col0 ) * + CAST( NULL AS SIGNED ) + - + 20 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3260
SELECT ALL ( col0 ) * + CAST ( NULL AS INTEGER ) + - + 20 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) < + + 86 * - + col0
----

query I rowsort
SELECT ALL - + 46 * col2 * - col2 AS col0 FROM tab2 AS cor0
----
154744
24334
73600

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col1 <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3264
SELECT + 12 + COUNT( * ) FROM tab2
----
15

skipif mysql # not compatible
query I rowsort label-3264
SELECT + 12 + COUNT ( * ) FROM tab2
----
15

query I rowsort
SELECT ALL + 12 * col0 + + col2 FROM tab2 AS cor0
----
575
808
958

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3266
SELECT DISTINCT + COUNT( * ) * + 62 * + 91 + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3266
SELECT DISTINCT + COUNT ( * ) * + 62 * + 91 + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 / + 92 > - - col0 * col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3268
SELECT + + 23 + + + ( - MIN( DISTINCT 79 ) ) AS col2 FROM tab1 AS cor0
----
-56

skipif mysql # not compatible
query I rowsort label-3268
SELECT + + 23 + + + ( - MIN ( DISTINCT 79 ) ) AS col2 FROM tab1 AS cor0
----
-56

query I rowsort
SELECT ALL + - 47 + - - 31 FROM tab0 AS cor0
----
-16
-16
-16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 4 + + + col2 col2 FROM tab2 AS cor0
----
19
36
54

query I rowsort
SELECT DISTINCT + 64 + col0 - col0 AS col1 FROM tab2 cor0
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-3272
SELECT + COUNT( * ) + - + MAX( - col2 ) FROM tab2
----
26

skipif mysql # not compatible
query I rowsort label-3272
SELECT + COUNT ( * ) + - + MAX ( - col2 ) FROM tab2
----
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * ( - 76 ) + - col0 col0 FROM tab2
----
1702
2976
4333

onlyif mysql # aggregate syntax: 
query I rowsort label-3274
SELECT SUM( ALL - 55 ) FROM tab1, tab1 AS cor0
----
-495

skipif mysql # not compatible
query I rowsort label-3274
SELECT SUM ( ALL - 55 ) FROM tab1, tab1 AS cor0
----
-495

query II rowsort
SELECT DISTINCT + col2 + - - col0, col2 FROM tab0
----
196
99
62
47
97
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3276
SELECT + CAST( - 26 AS SIGNED ) AS col1 FROM tab0
----
-26
-26
-26

skipif mysql # not compatible
query I rowsort label-3276
SELECT + CAST ( - 26 AS INTEGER ) AS col1 FROM tab0
----
-26
-26
-26

query I rowsort
SELECT DISTINCT - 14 * - col2 AS col2 FROM tab2
----
322
560
812

query I rowsort
SELECT - - 18 - 85 + + + col2 FROM tab0 AS cor0
----
-20
-57
32

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT NULL > col1 / - col1
----

query I rowsort
SELECT + - col1 - + - ( col1 ) AS col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3281
SELECT - COUNT( col2 ) * - 49 * + 67 + + COUNT( * ) - - - COUNT( * ) FROM tab0 AS cor0
----
9849

skipif mysql # not compatible
query I rowsort label-3281
SELECT - COUNT ( col2 ) * - 49 * + 67 + + COUNT ( * ) - - - COUNT ( * ) FROM tab0 AS cor0
----
9849

onlyif mysql # DIV for integer division: 
query II rowsort label-3282
SELECT ALL + col1 DIV ( - - ( + col0 ) ) DIV - 34 AS col0, - col2 * col1 col1 FROM tab1 AS cor0
----
0
-1344
0
-295
0
-3196

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3282
SELECT ALL + col1 / ( - - ( + col0 ) ) / - 34 AS col0, - col2 * col1 col1 FROM tab1 AS cor0
----
0
-1344
0
-295
0
-3196

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( col1 + - - ( - - col2 ) ) IS NULL
----

query I rowsort
SELECT 77 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
77
77
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3285
SELECT 86 + ( - COUNT( * ) ) AS col2 FROM tab1
----
83

skipif mysql # not compatible
query I rowsort label-3285
SELECT 86 + ( - COUNT ( * ) ) AS col2 FROM tab1
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3286
SELECT ALL + - CAST( - CAST( - ( - COUNT( * ) ) AS SIGNED ) AS SIGNED ) AS col1 FROM tab0 WHERE col0 * col2 NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-3286
SELECT ALL + - CAST ( - CAST ( - ( - COUNT ( * ) ) AS INTEGER ) AS INTEGER ) AS col1 FROM tab0 WHERE col0 * col2 NOT BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT DISTINCT 36 * - ( - 81 ) FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
2916

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3288
SELECT ALL + + CAST( + - COUNT( * ) AS SIGNED ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3288
SELECT ALL + + CAST ( + - COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0
----
-3

query II rowsort
SELECT DISTINCT col1, - col1 FROM tab1 AS cor0
----
14
-14
47
-47
5
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2, col1 col2 FROM tab2 cor0
----
-23
51
-40
77
-58
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3291
SELECT ALL MIN( ( - col2 ) ) FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-3291
SELECT ALL MIN ( ( - col2 ) ) FROM tab1 AS cor0
----
-96

query I rowsort
SELECT ALL col0 * col2 FROM tab1 WHERE NOT ( + col1 / + col0 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3293
SELECT + col2 FROM tab1 WHERE NOT CAST( NULL AS SIGNED ) + + col2 + - - col2 + 34 + - col0 / - col0 * col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-3293
SELECT + col2 FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) + + col2 + - - col2 + 34 + - col0 / - col0 * col2 IS NULL
----

query I rowsort
SELECT - 38 * - 76 * - col1 FROM tab0
----
-233928
-2888
-60648

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3295
SELECT ALL + COUNT( * ) FROM tab2 WHERE NOT ( col1 ) NOT BETWEEN - CAST( NULL AS SIGNED ) AND - + col0
----
0

skipif mysql # not compatible
query I rowsort label-3295
SELECT ALL + COUNT ( * ) FROM tab2 WHERE NOT ( col1 ) NOT BETWEEN - CAST ( NULL AS INTEGER ) AND - + col0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col0 ) * - col0 col1 FROM tab1
----
2601
7225
8281

query II rowsort
SELECT DISTINCT + 5 + - col1 * col1 + - col2, col1 AS col2 FROM tab1 AS cor0
----
-2272
47
-287
14
-79
5

query I rowsort
SELECT DISTINCT - - col1 + - col2 * + col1 AS col0 FROM tab1 AS cor0
----
-1330
-290
-3149

query I rowsort
SELECT ALL - - 75 + + + col0 FROM tab0 cor0
----
162
172
90

query I rowsort
SELECT DISTINCT + - col1 * + col2 * - col1 + + 98 - + + col2 FROM tab1 cor0
----
150242
1514
18818

onlyif mysql # aggregate syntax: 
query I rowsort label-3301
SELECT ALL + SUM( DISTINCT - col2 ) FROM tab1 cor0
----
-223

skipif mysql # not compatible
query I rowsort label-3301
SELECT ALL + SUM ( DISTINCT - col2 ) FROM tab1 cor0
----
-223

query I rowsort
SELECT DISTINCT + 55 * + - col1 * - - col1 FROM tab0 AS cor0
----
-24255
-360855
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-3303
SELECT ALL + SUM( + 80 ) + + 72 AS col1 FROM tab2 AS cor0
----
312

skipif mysql # not compatible
query I rowsort label-3303
SELECT ALL + SUM ( + 80 ) + + 72 AS col1 FROM tab2 AS cor0
----
312

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3304
SELECT + col1 + + - CAST( - col0 AS DECIMAL ), col2 AS col1 FROM tab2 AS cor0 WHERE 69 IS NULL
----

skipif mysql # not compatible
query II rowsort label-3304
SELECT + col1 + + - CAST ( - col0 AS REAL ), col2 AS col1 FROM tab2 AS cor0 WHERE 69 IS NULL
----

query I rowsort
SELECT 94 AS col1 FROM tab1 cor0 WHERE ( NULL ) IS NULL
----
94
94
94

onlyif mysql # aggregate syntax: 
query I rowsort label-3306
SELECT DISTINCT + COUNT( * ) * - 78 AS col1 FROM tab1 AS cor0
----
-234

skipif mysql # not compatible
query I rowsort label-3306
SELECT DISTINCT + COUNT ( * ) * - 78 AS col1 FROM tab1 AS cor0
----
-234

onlyif mysql # DIV for integer division: 
query I rowsort label-3307
SELECT ALL - 96 DIV + - col1 + + - col0 + 80 + col0 DIV + col2 AS col1 FROM tab0 AS cor0
----
5
66
79

skipif mysql # not compatible
query I rowsort label-3307
SELECT ALL - 96 / + - col1 + + - col0 + 80 + col0 / + col2 AS col1 FROM tab0 AS cor0
----
5
66
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3308
SELECT ALL + col0 + CAST( NULL AS SIGNED ) * + 96 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3308
SELECT ALL + col0 + CAST ( NULL AS INTEGER ) * + 96 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 36 * - ( - - col2 ) + + + 84 col2, col1 AS col0 FROM tab0
----
-1608
81
-276
21
-3480
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3310
SELECT col2 + + col0 DIV + 67 + col1 FROM tab2
----
117
126
74

skipif mysql # not compatible
query I rowsort label-3310
SELECT col2 + + col0 / + 67 + col1 FROM tab2
----
117
126
74

query I rowsort
SELECT - + 23 AS col2 FROM tab0 WHERE + col0 <= col2
----
-23
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3312
SELECT DISTINCT - ( - ( col2 ) ) * - + CAST( + col2 AS SIGNED ) + - - ( col1 ) * 1 + - 15 FROM tab2
----
-1538
-3312
-493

skipif mysql # not compatible
query I rowsort label-3312
SELECT DISTINCT - ( - ( col2 ) ) * - + CAST ( + col2 AS INTEGER ) + - - ( col1 ) * 1 + - 15 FROM tab2
----
-1538
-3312
-493

onlyif mysql # aggregate syntax: 
query I rowsort label-3313
SELECT DISTINCT + 81 * - COUNT( * ) AS col1 FROM tab1
----
-243

skipif mysql # not compatible
query I rowsort label-3313
SELECT DISTINCT + 81 * - COUNT ( * ) AS col1 FROM tab1
----
-243

query I rowsort
SELECT + ( + 73 ) + - 84 FROM tab1
----
-11
-11
-11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 13 col0, + 80 AS col1 FROM tab0 WHERE col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3316
SELECT 92 + - - 14 - COUNT( * ) + + 1 FROM tab2
----
104

skipif mysql # not compatible
query I rowsort label-3316
SELECT 92 + - - 14 - COUNT ( * ) + + 1 FROM tab2
----
104

onlyif mysql # DIV for integer division: 
query I rowsort label-3317
SELECT ALL - + col1 DIV - + 55 + - 4 AS col0 FROM tab2 AS cor0
----
-3
-3
-4

skipif mysql # not compatible
query I rowsort label-3317
SELECT ALL - + col1 / - + 55 + - 4 AS col0 FROM tab2 AS cor0
----
-3
-3
-4

query I rowsort
SELECT 25 + + + 88 AS col1 FROM tab0 AS cor0
----
113
113
113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3319
SELECT DISTINCT + COUNT( * ) * - CAST( + SUM( - + 20 ) AS SIGNED ) * - + 10 * 76 + - 69 * - COUNT( 22 ) FROM tab1 AS cor0
----
-136593

skipif mysql # not compatible
query I rowsort label-3319
SELECT DISTINCT + COUNT ( * ) * - CAST ( + SUM ( - + 20 ) AS INTEGER ) * - + 10 * 76 + - 69 * - COUNT ( 22 ) FROM tab1 AS cor0
----
-136593

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3320
SELECT COUNT( * ) * - 43 + + COUNT( * ) FROM tab0 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3320
SELECT COUNT ( * ) * - 43 + + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3321
SELECT ALL - + CAST( - + col0 AS SIGNED ), col0 AS col2 FROM tab2 AS cor0
----
46
46
64
64
75
75

skipif mysql # not compatible
query II rowsort label-3321
SELECT ALL - + CAST ( - + col0 AS INTEGER ), col0 AS col2 FROM tab2 AS cor0
----
46
46
64
64
75
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3322
SELECT COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT + col1 NOT BETWEEN + col2 AND + 76 - ( - col2 )
----
2

skipif mysql # not compatible
query I rowsort label-3322
SELECT COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT + col1 NOT BETWEEN + col2 AND + 76 - ( - col2 )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3323
SELECT ALL 34 * - MIN( DISTINCT - 38 ) AS col1 FROM tab1 AS cor0
----
1292

skipif mysql # not compatible
query I rowsort label-3323
SELECT ALL 34 * - MIN ( DISTINCT - 38 ) AS col1 FROM tab1 AS cor0
----
1292

query I rowsort
SELECT ALL + 69 FROM tab0 AS cor0 WHERE ( NULL ) = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3325
SELECT ALL + - col0 DIV + - 84 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3325
SELECT ALL + - col0 / + - 84 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT col1 + 91 + + - 33 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IN ( + col2 * - col0, 87 * + 51 )
----

query II rowsort
SELECT - col0 * + + col1, - col2 AS col0 FROM tab1 AS cor0
----
-425
-59
-4277
-68
-714
-96

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 86 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3329
SELECT ALL COUNT( + 98 ) AS col2, COUNT( * ) FROM tab2 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-3329
SELECT ALL COUNT ( + 98 ) AS col2, COUNT ( * ) FROM tab2 AS cor0
----
3
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3330
SELECT col1 * + 87 * CAST( NULL AS DECIMAL ) * + + ( - 4 ) * - 68 / - 68 * + col0 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3330
SELECT col1 * + 87 * CAST ( NULL AS REAL ) * + + ( - 4 ) * - 68 / - 68 * + col0 AS col0 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col1 / - 51 < - col1 + - + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 47 * - 32 AS col0 FROM tab2
----
-1504

onlyif mysql # aggregate syntax: 
query I rowsort label-3333
SELECT ALL - COUNT( * ) AS col2 FROM tab2 WHERE NOT ( + col1 + - - col1 ) IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3333
SELECT ALL - COUNT ( * ) AS col2 FROM tab2 WHERE NOT ( + col1 + - - col1 ) IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-3334
SELECT ALL COUNT( * ) AS col2, + 99 FROM tab2
----
3
99

skipif mysql # not compatible
query II rowsort label-3334
SELECT ALL COUNT ( * ) AS col2, + 99 FROM tab2
----
3
99

query I rowsort
SELECT DISTINCT col0 * - + 86 AS col2 FROM tab2
----
-3956
-5504
-6450

query II rowsort
SELECT 80, - col2 + 64 AS col0 FROM tab0 AS cor0
----
80
-35
80
17
80
54

query I rowsort
SELECT - col2 * + col0 * col2 FROM tab2 AS cor0
----
-102400
-24334
-252300

onlyif mysql # aggregate syntax: 
query I rowsort label-3338
SELECT ALL - - 85 + + 87 - ( + - SUM( DISTINCT - - col2 ) ) + + MIN( DISTINCT - 18 ) FROM tab2 AS cor0
----
275

skipif mysql # not compatible
query I rowsort label-3338
SELECT ALL - - 85 + + 87 - ( + - SUM ( DISTINCT - - col2 ) ) + + MIN ( DISTINCT - 18 ) FROM tab2 AS cor0
----
275

onlyif mysql # aggregate syntax: 
query II rowsort label-3339
SELECT DISTINCT - COUNT( ALL 28 ) + + + 98, - COUNT( * ) col1 FROM tab1 AS cor0
----
95
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3339
SELECT DISTINCT - COUNT ( ALL 28 ) + + + 98, - COUNT ( * ) col1 FROM tab1 AS cor0
----
95
-3

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 + - col0 - col2 FROM tab1 AS cor0
----
-112
-133
-139

query II rowsort
SELECT ALL - col2 * - col0 * - 14 + - - col1 AS col1, 62 * ( + + col2 ) AS col1 FROM tab2 cor0
----
-14761
1426
-35763
2480
-60833
3596

onlyif mysql # DIV for integer division: 
query I rowsort label-3343
SELECT + ( + 2 ) * 4 DIV 16 + - col0 + 55 FROM tab1 AS cor0
----
-30
-36
4

skipif mysql # not compatible
query I rowsort label-3343
SELECT + ( + 2 ) * 4 / 16 + - col0 + 55 FROM tab1 AS cor0
----
-30
-36
4

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 60 IN ( + 75, col0, col1, + col1 + - 74 + - col2 / col0 * - - col1 * + col1 * + - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * + 39 col0 FROM tab1 AS cor0
----
-2301
-2652
-3744

query I rowsort
SELECT - 95 + - ( col2 ) FROM tab1 AS cor0
----
-154
-163
-191

onlyif mysql # DIV for integer division: 
query I rowsort label-3347
SELECT 63 DIV col2 FROM tab2 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-3347
SELECT 63 / col2 FROM tab2 AS cor0
----
1
1
2

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3348
SELECT DISTINCT - 87 - - col1 + + - CAST( NULL AS DECIMAL ) * col1 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3348
SELECT DISTINCT - 87 - - col1 + + - CAST ( NULL AS REAL ) * col1 AS col2 FROM tab2
----
NULL

query I rowsort
SELECT ALL - + col1 FROM tab1 WHERE + col0 IS NOT NULL
----
-14
-47
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3350
SELECT ALL - col2 * - 78 - + - CAST( - col0 AS SIGNED ) FROM tab1
----
4517
5213
7437

skipif mysql # not compatible
query I rowsort label-3350
SELECT ALL - col2 * - 78 - + - CAST ( - col0 AS INTEGER ) FROM tab1
----
4517
5213
7437

query I rowsort
SELECT - col2 * + ( 93 ) - + col0 FROM tab1
----
-5572
-6415
-8979

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 + - 49 * - 0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-3353
SELECT DISTINCT - 13 AS col0, - MAX( 56 ) col2 FROM tab2 AS cor0
----
-13
-56

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3353
SELECT DISTINCT - 13 AS col0, - MAX ( 56 ) col2 FROM tab2 AS cor0
----
-13
-56

query I rowsort
SELECT - col1 * col0 + - + 88 AS col1 FROM tab0 AS cor0
----
-1303
-185
-1915

onlyif mysql # aggregate syntax: 
query I rowsort label-3355
SELECT DISTINCT - SUM( DISTINCT + - 29 ) * - - MIN( DISTINCT + col2 ) FROM tab2 AS cor0
----
667

skipif mysql # not compatible
query I rowsort label-3355
SELECT DISTINCT - SUM ( DISTINCT + - 29 ) * - - MIN ( DISTINCT + col2 ) FROM tab2 AS cor0
----
667

onlyif mysql # aggregate syntax: 
query I rowsort label-3356
SELECT DISTINCT - 98 * COUNT( * ) AS col2 FROM tab0
----
-294

skipif mysql # not compatible
query I rowsort label-3356
SELECT DISTINCT - 98 * COUNT ( * ) AS col2 FROM tab0
----
-294

onlyif mysql # aggregate syntax: 
query II rowsort label-3357
SELECT COUNT( * ) AS col2, + COUNT( * ) FROM tab1
----
3
3

skipif mysql # not compatible
query II rowsort label-3357
SELECT COUNT ( * ) AS col2, + COUNT ( * ) FROM tab1
----
3
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3358
SELECT DISTINCT + 15 DIV + col1 * col2 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3358
SELECT DISTINCT + 15 / + col1 * col2 AS col2 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3359
SELECT - col2 AS col2, + CAST( NULL AS SIGNED ) + - col0 FROM tab0 AS cor0
----
-10
NULL
-47
NULL
-99
NULL

skipif mysql # not compatible
query II rowsort label-3359
SELECT - col2 AS col2, + CAST ( NULL AS INTEGER ) + - col0 FROM tab0 AS cor0
----
-10
NULL
-47
NULL
-99
NULL

query II rowsort
SELECT + + ( 93 ), col0 AS col0 FROM tab1 AS cor0
----
93
51
93
85
93
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3361
SELECT ALL - + 17 * MIN( DISTINCT - col2 ) FROM tab0 cor0
----
1683

skipif mysql # not compatible
query I rowsort label-3361
SELECT ALL - + 17 * MIN ( DISTINCT - col2 ) FROM tab0 cor0
----
1683

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3362
SELECT * FROM tab1 WHERE NOT NULL BETWEEN + CAST( + 95 AS SIGNED ) AND - + col1
----

skipif mysql # not compatible
query III rowsort label-3362
SELECT * FROM tab1 WHERE NOT NULL BETWEEN + CAST ( + 95 AS INTEGER ) AND - + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3363
SELECT COUNT( * ) * - COUNT( * ) * - 12 col0 FROM tab2
----
108

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3363
SELECT COUNT ( * ) * - COUNT ( * ) * - 12 col0 FROM tab2
----
108

query I rowsort
SELECT ALL + col0 * - ( + ( - 95 ) ) * - 22 FROM tab1
----
-106590
-177650
-190190

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3365
SELECT ALL - - CAST( NULL AS SIGNED ) col2 FROM tab0 WHERE NOT + col1 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3365
SELECT ALL - - CAST ( NULL AS INTEGER ) col2 FROM tab0 WHERE NOT + col1 IS NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3366
SELECT + - col1 col0 FROM tab1 WHERE + col0 + col0 IN ( + CAST( - col1 AS SIGNED ) * 41, col2 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3366
SELECT + - col1 col0 FROM tab1 WHERE + col0 + col0 IN ( + CAST ( - col1 AS INTEGER ) * 41, col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 50 IS NOT NULL
----

query I rowsort
SELECT ALL + col0 * - + col2 + - 6 + - col1 FROM tab0 AS cor0
----
-792
-897
-9610

query I rowsort
SELECT - 30 + + 99 * + ( - + 62 ) AS col1 FROM tab1
----
-6168
-6168
-6168

onlyif mysql # aggregate syntax: 
query I rowsort label-3370
SELECT DISTINCT COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3370
SELECT DISTINCT COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3371
SELECT ALL + 60 AS col0, - COUNT( * ) FROM tab1 AS cor0
----
60
-3

skipif mysql # not compatible
query II rowsort label-3371
SELECT ALL + 60 AS col0, - COUNT ( * ) FROM tab1 AS cor0
----
60
-3

query II rowsort
SELECT DISTINCT - col2 AS col1, col0 - + 68 + + col2 * + col0 AS col1 FROM tab2 AS cor0
----
-23
1036
-40
2556
-58
4357

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3373
SELECT col1 - + CAST( CAST( + - col1 AS SIGNED ) AS SIGNED ) FROM tab0 AS cor0 WHERE ( + 94 ) < + col1
----

skipif mysql # not compatible
query I rowsort label-3373
SELECT col1 - + CAST ( CAST ( + - col1 AS INTEGER ) AS INTEGER ) FROM tab0 AS cor0 WHERE ( + 94 ) < + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3374
SELECT ALL - + 76 + - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-79

skipif mysql # not compatible
query I rowsort label-3374
SELECT ALL - + 76 + - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3375
SELECT DISTINCT 79 * - - CAST( NULL AS SIGNED ) + col2 * - 50 * col0 * col2 - - 12 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3375
SELECT DISTINCT 79 * - - CAST ( NULL AS INTEGER ) + col2 * - 50 * col0 * col2 - - 12 FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3376
SELECT - col2 DIV + - col1 + + - 14 + - + col1 FROM tab1 AS cor0
----
-22
-60
-8

skipif mysql # not compatible
query I rowsort label-3376
SELECT - col2 / + - col1 + + - 14 + - + col1 FROM tab1 AS cor0
----
-22
-60
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3377
SELECT + col1 + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3377
SELECT + col1 + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 60 + + + 29 - - ( + 99 ) - + col2 AS col1 FROM tab2
----
10
28
45

query I rowsort
SELECT ALL - ( + 48 ) FROM tab0 WHERE NULL <= + - 4
----

query I rowsort
SELECT + + col2 * + + col2 * + col2 FROM tab0 AS cor0
----
1000
103823
970299

onlyif mysql # DIV for integer division: 
query I rowsort label-3381
SELECT ALL + 54 DIV + 60 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3381
SELECT ALL + 54 / + 60 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3382
SELECT ALL - MAX( ALL - 20 ) FROM tab2 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-3382
SELECT ALL - MAX ( ALL - 20 ) FROM tab2 AS cor0
----
20

query I rowsort
SELECT + + ( + 52 ) FROM tab1 AS cor0
----
52
52
52

query I rowsort
SELECT 5 + + 12 FROM tab1 AS cor0
----
17
17
17

query I rowsort
SELECT + 68 + - col0 FROM tab1 AS cor0
----
-17
-23
17

onlyif mysql # aggregate syntax: 
query I rowsort label-3386
SELECT ALL - MIN( ALL - + col1 ) + + SUM( - + 14 ) FROM tab2 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-3386
SELECT ALL - MIN ( ALL - + col1 ) + + SUM ( - + 14 ) FROM tab2 AS cor0
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-3387
SELECT DISTINCT + + col1 DIV + 91 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3387
SELECT DISTINCT + + col1 / + 91 AS col2 FROM tab1 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3388
SELECT DISTINCT 68 DIV - col2 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-3388
SELECT DISTINCT 68 / - col2 FROM tab1
----
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + 98 col0 FROM tab0
----
119
179
99

query I rowsort
SELECT ALL - col0 + - ( - col1 ) AS col1 FROM tab1
----
-37
-44
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 75 AS col2, - col0 col0 FROM tab0
----
-75
-15
-75
-87
-75
-97

query I rowsort
SELECT + 35 * + col2 FROM tab2
----
1400
2030
805

query I rowsort
SELECT - col2 FROM tab1 WHERE - col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3394
SELECT DISTINCT - col0 DIV 20 FROM tab2
----
-2
-3

skipif mysql # not compatible
query I rowsort label-3394
SELECT DISTINCT - col0 / 20 FROM tab2
----
-2
-3

query II rowsort
SELECT ALL + 98 AS col0, col2 - - ( - + 60 ) FROM tab1
----
98
-1
98
36
98
8

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + + ( - + 59 ) + + - 18 NOT BETWEEN NULL AND 21
----

query II rowsort
SELECT DISTINCT + 16, col0 FROM tab2
----
16
46
16
64
16
75

query II rowsort
SELECT ALL col1 AS col1, - col0 AS col2 FROM tab1
----
14
-51
47
-91
5
-85

query I rowsort
SELECT + ( + - 27 ) AS col0 FROM tab0
----
-27
-27
-27

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3400
SELECT ALL - CAST( NULL AS DECIMAL ) AS col0, - 7 * 21 col2 FROM tab2 AS cor0 WHERE NOT 61 * + 92 IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3400
SELECT ALL - CAST ( NULL AS REAL ) AS col0, - 7 * 21 col2 FROM tab2 AS cor0 WHERE NOT 61 * + 92 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + ( - - 84 ), 46 col1 FROM tab0 AS cor0
----
-84
46
-84
46
-84
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3402
SELECT MAX( ALL + CAST( NULL AS SIGNED ) ) col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3402
SELECT MAX ( ALL + CAST ( NULL AS INTEGER ) ) col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3403
SELECT + 19 FROM tab0 AS cor0 WHERE 7 - - col1 - + CAST( NULL AS SIGNED ) >= NULL
----

skipif mysql # not compatible
query I rowsort label-3403
SELECT + 19 FROM tab0 AS cor0 WHERE 7 - - col1 - + CAST ( NULL AS INTEGER ) >= NULL
----

query I rowsort
SELECT ALL - 9 + - - col2 * + 58 FROM tab0 AS cor0
----
2717
571
5733

onlyif mysql # DIV for integer division: 
query I rowsort label-3405
SELECT - 90 - + 69 DIV 46 AS col0 FROM tab2 AS cor0
----
-91
-91
-91

skipif mysql # not compatible
query I rowsort label-3405
SELECT - 90 - + 69 / 46 AS col0 FROM tab2 AS cor0
----
-91
-91
-91

query I rowsort
SELECT DISTINCT + + col2 + + + col0 AS col0 FROM tab0 AS cor0
----
196
62
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3407
SELECT 49 * - - COUNT( * ) FROM tab1 AS cor0
----
147

skipif mysql # not compatible
query I rowsort label-3407
SELECT 49 * - - COUNT ( * ) FROM tab1 AS cor0
----
147

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3408
SELECT * FROM tab2 AS cor0 WHERE col2 / - + CAST( + col0 AS SIGNED ) - - - 54 <> ( + col1 ) + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3408
SELECT * FROM tab2 AS cor0 WHERE col2 / - + CAST ( + col0 AS INTEGER ) - - - 54 <> ( + col1 ) + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 46 FROM tab0 AS cor0 WHERE NOT + col0 + + 58 IS NULL
----
-46
-46
-46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 85 col2 FROM tab0 AS cor0
----
-85
-85
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-3411
SELECT ALL + COUNT( * ) + + COUNT( * ) - - ( + + 67 ) FROM tab2 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-3411
SELECT ALL + COUNT ( * ) + + COUNT ( * ) - - ( + + 67 ) FROM tab2 AS cor0
----
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3412
SELECT + 31 AS col1, + COUNT( * ) DIV - + 86 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
31
0

skipif mysql # not compatible
query II rowsort label-3412
SELECT + 31 AS col1, + COUNT ( * ) / - + 86 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
31
0

query I rowsort
SELECT ALL - 94 * col0 FROM tab1
----
-4794
-7990
-8554

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3414
SELECT DISTINCT 60 DIV + - CAST( col1 AS SIGNED ) AS col0, col0 - 91 FROM tab0
----
-2
-4
-60
6
0
-76

skipif mysql # not compatible
query II rowsort label-3414
SELECT DISTINCT 60 / + - CAST ( col1 AS INTEGER ) AS col0, col0 - 91 FROM tab0
----
-2
-4
-60
6
0
-76

onlyif mysql # aggregate syntax: 
query II rowsort label-3415
SELECT + 56 AS col1, - MAX( ALL col0 ) AS col0 FROM tab1
----
56
-91

skipif mysql # not compatible
query II rowsort label-3415
SELECT + 56 AS col1, - MAX ( ALL col0 ) AS col0 FROM tab1
----
56
-91

query I rowsort
SELECT + col2 * 61 FROM tab2
----
1403
2440
3538

query I rowsort
SELECT ALL ( + - col0 ) AS col0 FROM tab1
----
-51
-85
-91

query I rowsort
SELECT ALL + col1 AS col0 FROM tab0 WHERE NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3419
SELECT - SUM( + - col0 ) FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-3419
SELECT - SUM ( + - col0 ) FROM tab0
----
199

query III rowsort
SELECT ALL * FROM tab0 WHERE - 56 + + ( col1 ) IS NULL
----

query II rowsort
SELECT - col2, - col2 AS col1 FROM tab0 AS cor0
----
-10
-10
-47
-47
-99
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3422
SELECT + CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3422
SELECT + CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - ( - 37 ) - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col2 AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-10
-47
-99

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3425
SELECT CAST( - + col2 AS SIGNED ) DIV + col0 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3425
SELECT CAST ( - + col2 AS INTEGER ) / + col0 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - 16 * - col2 * - col0 AS col2 FROM tab2 cor0
----
-16928
-40960
-69600

onlyif mysql # aggregate syntax: 
query I rowsort label-3427
SELECT DISTINCT - + 54 * + + COUNT( * ) FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3427
SELECT DISTINCT - + 54 * + + COUNT ( * ) FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

query I rowsort
SELECT - + col1 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN + 95 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3429
SELECT MIN( DISTINCT + + col1 ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3429
SELECT MIN ( DISTINCT + + col1 ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3430
SELECT + col2 DIV + col1 + 7 FROM tab1
----
13
18
8

skipif mysql # not compatible
query I rowsort label-3430
SELECT + col2 / + col1 + 7 FROM tab1
----
13
18
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3431
SELECT + col1 + - CAST( - 59 AS SIGNED ) FROM tab1
----
106
64
73

skipif mysql # not compatible
query I rowsort label-3431
SELECT + col1 + - CAST ( - 59 AS INTEGER ) FROM tab1
----
106
64
73

onlyif mysql # DIV for integer division: 
query I rowsort label-3432
SELECT 16 DIV 89 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3432
SELECT 16 / 89 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col2 + + - 43 FROM tab0
----
-33
4
56

query II rowsort
SELECT DISTINCT + - col0 AS col0, 37 FROM tab1 AS cor0
----
-51
37
-85
37
-91
37

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + col0 BETWEEN NULL AND NULL )
----

query II rowsort
SELECT - col2, 91 AS col1 FROM tab2 AS cor0
----
-23
91
-40
91
-58
91

query II rowsort
SELECT - 45 AS col0, + 34 FROM tab1 AS cor0
----
-45
34
-45
34
-45
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3438
SELECT DISTINCT + SUM( - 11 ) DIV COUNT( * ) AS col2 FROM tab2 AS cor0
----
-11

skipif mysql # not compatible
query I rowsort label-3438
SELECT DISTINCT + SUM ( - 11 ) / COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-11

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL >= + col1 - 7
----

query I rowsort
SELECT - col1 AS col2 FROM tab2 WHERE NOT + col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3441
SELECT - col1 DIV - + 63 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3441
SELECT - col1 / - + 63 FROM tab0
----
0
0
1

query I rowsort
SELECT ALL - col0 + - + 2 * - - col1 FROM tab0 WHERE NOT 81 IS NULL
----
-129
-177
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 50 col2 FROM tab1 AS cor0
----
50

query I rowsort
SELECT + 81 + + + 23 AS col0 FROM tab1 AS cor0 WHERE NOT + col2 IS NULL
----
104
104
104

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3445
SELECT CAST( + + 45 AS SIGNED ) * - col0 col2, + 13 col0 FROM tab1
----
-2295
13
-3825
13
-4095
13

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3445
SELECT CAST ( + + 45 AS INTEGER ) * - col0 col2, + 13 col0 FROM tab1
----
-2295
13
-3825
13
-4095
13

query I rowsort
SELECT ALL + ( + - 61 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 51f53697966a79d306a4570537cd91a1

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col2 >= NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - 76 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 col2, col2 - - - col2 FROM tab2 AS cor0
----
51
0
67
0
77
0

query I rowsort
SELECT - col2 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND - ( - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3451
SELECT ALL + CAST( NULL AS SIGNED ) + - + 56 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3451
SELECT ALL + CAST ( NULL AS INTEGER ) + - + 56 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3452
SELECT DISTINCT + 25 + + ( - - 62 ) + 0 + + COUNT( * ) FROM tab2 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-3452
SELECT DISTINCT + 25 + + ( - - 62 ) + 0 + + COUNT ( * ) FROM tab2 AS cor0
----
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3453
SELECT DISTINCT - 76 + - + COUNT( * ) DIV - + COUNT( * ) + - - 13 FROM tab1
----
-62

skipif mysql # not compatible
query I rowsort label-3453
SELECT DISTINCT - 76 + - + COUNT ( * ) / - + COUNT ( * ) + - - 13 FROM tab1
----
-62

query I rowsort
SELECT + col0 + - 53 * - + col1 + - 20 * - ( - col1 ) FROM tab2
----
1729
2286
2605

query I rowsort
SELECT ALL - col0 + + - 10 FROM tab1
----
-101
-61
-95

query I rowsort
SELECT ALL - col0 + + - 37 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-101
-112
-83

query I rowsort
SELECT DISTINCT - ( 32 ) * - ( + + col2 ) FROM tab1
----
1888
2176
3072

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + + ( - ( col0 ) ) + - col2 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col2 > ( + 45 )
----

query II rowsort
SELECT ALL - + col1 * col1 - + - col1 * + col2 AS col1, + 35 FROM tab1 AS cor0
----
1148
35
270
35
987
35

query I rowsort
SELECT DISTINCT + col0 + + 15 AS col0 FROM tab0 AS cor0
----
102
112
30

onlyif mysql # aggregate syntax: 
query I rowsort label-3462
SELECT - - COUNT( * ) - 16 + 26 FROM tab2 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-3462
SELECT - - COUNT ( * ) - 16 + 26 FROM tab2 AS cor0
----
13

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT BETWEEN 86 AND - 78
----

query I rowsort
SELECT - 85 * - col1 + + 30 - + 59 AS col0 FROM tab1 WHERE col0 IS NULL
----

query I rowsort
SELECT + col2 * - 62 + - 14 AS col2 FROM tab0 cor0
----
-2928
-6152
-634

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 * - ( + 73 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3467
SELECT DISTINCT MIN( ALL col0 ) col2 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3467
SELECT DISTINCT MIN ( ALL col0 ) col2 FROM tab0 AS cor0
----
15

query I rowsort
SELECT - ( 90 ) AS col2 FROM tab0 AS cor0
----
-90
-90
-90

query I rowsort
SELECT + - col2 * + - col1 FROM tab2 AS cor0
----
1173
3080
3886

query I rowsort
SELECT ALL + - 91 * - col1 FROM tab2 AS cor0
----
4641
6097
7007

query I rowsort
SELECT DISTINCT - - col2 FROM tab1 AS cor0 WHERE NOT col2 BETWEEN NULL AND + + 72 + + - 58
----
59
68
96

query I rowsort
SELECT DISTINCT - + col0 * + 11 * - col1 * col2 AS col0 FROM tab0 AS cor0
----
105633
200970
628155

onlyif mysql # DIV for integer division: 
query I rowsort label-3473
SELECT 38 DIV - col2 AS col2 FROM tab0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-3473
SELECT 38 / - col2 AS col2 FROM tab0
----
-3
0
0

query I rowsort
SELECT ALL - col1 * - + 11 FROM tab2
----
561
737
847

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3475
SELECT 55 DIV - - COUNT( DISTINCT col1 ) FROM tab1
----
18

skipif mysql # not compatible
query I rowsort label-3475
SELECT 55 / - - COUNT ( DISTINCT col1 ) FROM tab1
----
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 col2, - col2 FROM tab2
----
51
-23
67
-58
77
-40

query II rowsort
SELECT DISTINCT col1, - 47 + + ( + ( + - col2 ) ) AS col1 FROM tab0
----
1
-146
21
-57
81
-94

query I rowsort
SELECT ALL - 47 * + + col1 FROM tab0
----
-3807
-47
-987

query III rowsort
SELECT * FROM tab0 WHERE NOT + 12 >= - - col1
----
15
81
47
87
21
10

query II rowsort
SELECT 80 AS col2, 92 * + col1 AS col2 FROM tab1
----
80
1288
80
4324
80
460

onlyif mysql # DIV for integer division: 
query I rowsort label-3481
SELECT DISTINCT - col0 DIV + col2 + + + col1 FROM tab1 AS cor0
----
14
4
46

skipif mysql # not compatible
query I rowsort label-3481
SELECT DISTINCT - col0 / + col2 + + + col1 FROM tab1 AS cor0
----
14
4
46

onlyif mysql # DIV for integer division: 
query I rowsort label-3482
SELECT ALL + col0 DIV + - col0 + + col0 FROM tab1 AS cor0
----
50
84
90

skipif mysql # not compatible
query I rowsort label-3482
SELECT ALL + col0 / + - col0 + + col0 FROM tab1 AS cor0
----
50
84
90

query I rowsort
SELECT DISTINCT - col0 * - - col0 FROM tab0 AS cor0
----
-225
-7569
-9409

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3484
SELECT * FROM tab1 AS cor0 WHERE + CAST( NULL AS SIGNED ) * col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3484
SELECT * FROM tab1 AS cor0 WHERE + CAST ( NULL AS INTEGER ) * col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL >= + 12
----

query I rowsort
SELECT + 70 FROM tab1 AS cor0 WHERE col1 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3487
SELECT DISTINCT - COUNT( * ) + + COUNT( * ) - + + SUM( ALL + col0 ) + - + COUNT( * ) DIV - 38 FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-3487
SELECT DISTINCT - COUNT ( * ) + + COUNT ( * ) - + + SUM ( ALL + col0 ) + - + COUNT ( * ) / - 38 FROM tab2
----
-185

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3488
SELECT ALL CAST( NULL AS SIGNED ) * + + 90 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3488
SELECT ALL CAST ( NULL AS INTEGER ) * + + 90 AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 45 * + + col1 FROM tab0
----
3645
45
945

query I rowsort
SELECT DISTINCT col2 + + col1 * + + ( 49 ) AS col1 FROM tab0 WHERE - col0 > NULL
----

query I rowsort
SELECT - 72 + col0 FROM tab1
----
-21
13
19

onlyif mysql # aggregate syntax: 
query II rowsort label-3492
SELECT ALL 36, COUNT( * ) * + COUNT( * ) AS col1 FROM tab1 AS cor0
----
36
9

skipif mysql # not compatible
query II rowsort label-3492
SELECT ALL 36, COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
36
9

query I rowsort
SELECT DISTINCT 1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3494
SELECT AVG ( - - CAST( NULL AS DECIMAL ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3494
SELECT AVG ( - - CAST ( NULL AS REAL ) ) FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3495
SELECT - col0 + + 77 + - col2 DIV + col2 AS col2 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
-15
-9
25

skipif mysql # not compatible
query I rowsort label-3495
SELECT - col0 + + 77 + - col2 / + col2 AS col2 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
-15
-9
25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 * - + 86 col1 FROM tab1 AS cor0
----
-4386
-7310
-7826

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3497
SELECT + - CAST( NULL AS SIGNED ) * + COUNT( + 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-3497
SELECT + - CAST ( NULL AS INTEGER ) * + COUNT ( + CAST ( NULL AS INTEGER ) ) col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - - ( col0 ) * + col0 FROM tab1 AS cor0
----
2601
7225
8281

onlyif mysql # aggregate syntax: 
query I rowsort label-3499
SELECT DISTINCT + COUNT( * ) * - 78 FROM tab1 WHERE NOT NULL <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-3499
SELECT DISTINCT + COUNT ( * ) * - 78 FROM tab1 WHERE NOT NULL <> NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3500
SELECT 76 DIV - - col1 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-3500
SELECT 76 / - - col1 FROM tab2
----
0
1
1

query II rowsort
SELECT ALL + 62, col0 * col2 FROM tab2 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT ALL + 14 * + 27 AS col0 FROM tab2
----
378
378
378

query I rowsort
SELECT DISTINCT col1 * - + 72 AS col2 FROM tab2
----
-3672
-4824
-5544

query I rowsort
SELECT - + col0 * + col0 + 36 FROM tab0 AS cor0
----
-189
-7533
-9373

query II rowsort
SELECT ALL - 60, col1 AS col1 FROM tab1
----
-60
14
-60
47
-60
5

query II rowsort
SELECT ALL + - col0 AS col2, - col0 FROM tab1 AS cor0
----
-51
-51
-85
-85
-91
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3507
SELECT ALL + CAST( 9 AS SIGNED ) + + 80 col2 FROM tab0 AS cor0
----
89
89
89

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3507
SELECT ALL + CAST ( 9 AS INTEGER ) + + 80 col2 FROM tab0 AS cor0
----
89
89
89

query I rowsort
SELECT - - col0 + - col2 * + + 2 FROM tab2 AS cor0
----
-16
-41
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3509
SELECT DISTINCT SUM( + col2 ) FROM tab2 AS cor0 WHERE NOT 83 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3509
SELECT DISTINCT SUM ( + col2 ) FROM tab2 AS cor0 WHERE NOT 83 IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + - col1 - - + col2 * 78 col0 FROM tab2 AS cor0
----
1697
2979
4382

query I rowsort
SELECT - 60 + 37 * + col2 FROM tab2 AS cor0
----
1420
2086
791

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 68 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 58 + - - col1 < col0 * + 33 - + - col2 + - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col2 * 13 AS col2 FROM tab0
----
1287
130
611

onlyif mysql # aggregate syntax: 
query I rowsort label-3515
SELECT DISTINCT - 88 * 69 + COUNT( * ) FROM tab1, tab0 AS cor0
----
-6063

skipif mysql # not compatible
query I rowsort label-3515
SELECT DISTINCT - 88 * 69 + COUNT ( * ) FROM tab1, tab0 AS cor0
----
-6063

query I rowsort
SELECT ALL + + col2 AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
59
68
96

query I rowsort
SELECT ( + + col0 ) * col1 * + col0 AS col0 FROM tab0
----
158949
18225
9409

query I rowsort
SELECT - col2 - - 59 AS col2 FROM tab0
----
-40
12
49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3519
SELECT - 26 - col1 AS col2, + CAST( + 77 AS SIGNED ) FROM tab1 AS cor0
----
-31
77
-40
77
-73
77

skipif mysql # not compatible
query II rowsort label-3519
SELECT - 26 - col1 AS col2, + CAST ( + 77 AS INTEGER ) FROM tab1 AS cor0
----
-31
77
-40
77
-73
77

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 + + - col0 * - + col2 NOT BETWEEN - 42 AND - col0
----

query II rowsort
SELECT DISTINCT - col0 AS col0, + col0 * col1 * 31 FROM tab2
----
-46
72726
-64
152768
-75
155775

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 43 + - 89 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-3523
SELECT ALL - 56 AS col0, COUNT( col1 ) AS col0 FROM tab2 AS cor0
----
-56
3

skipif mysql # not compatible
query II rowsort label-3523
SELECT ALL - 56 AS col0, COUNT ( col1 ) AS col0 FROM tab2 AS cor0
----
-56
3

query I rowsort
SELECT + - ( + + col2 ) AS col1 FROM tab1 AS cor0
----
-59
-68
-96

query II rowsort
SELECT ALL - - col0, 61 AS col1 FROM tab2 AS cor0
----
46
61
64
61
75
61

query II rowsort
SELECT + 14 AS col1, col1 FROM tab0 cor0
----
14
1
14
21
14
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3527
SELECT DISTINCT - MAX( - col1 ) AS col0 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-3527
SELECT DISTINCT - MAX ( - col1 ) AS col0 FROM tab1 AS cor0
----
5

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 27 NOT BETWEEN + + 12 + + ( + col2 ) + - - 13 * - col0 - + col1 AND - 4
----

query I rowsort
SELECT DISTINCT 61 * + + col2 AS col2 FROM tab0
----
2867
6039
610

query I rowsort
SELECT DISTINCT - 47 + - 84 * + 31 FROM tab2 WHERE NOT NULL IN ( - - col1 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3531
SELECT col2 DIV col2 AS col0, - 26 FROM tab0
----
1
-26
1
-26
1
-26

skipif mysql # not compatible
query II rowsort label-3531
SELECT col2 / col2 AS col0, - 26 FROM tab0
----
1
-26
1
-26
1
-26

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3532
SELECT + + CAST( NULL AS SIGNED ), col1 AS col2 FROM tab1 WHERE NOT 26 BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query II rowsort label-3532
SELECT + + CAST ( NULL AS INTEGER ), col1 AS col2 FROM tab1 WHERE NOT 26 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3533
SELECT ALL + col1 * CAST( - col0 AS SIGNED ) + col2 * - col1 * + col0 * 14 AS col2 FROM tab1 AS cor0 WHERE + col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-3533
SELECT ALL + col1 * CAST ( - col0 AS INTEGER ) + col2 * - col1 * + col0 * 14 AS col2 FROM tab1 AS cor0 WHERE + col2 IS NULL
----

query I rowsort
SELECT ALL - col0 AS col1 FROM tab2 WHERE NOT NULL > - col0 * - 49 + ( + 45 ) + col2 - + col1 - + col2 / - + col0
----

query I rowsort
SELECT ALL + col1 + - col0 * + 9 FROM tab2
----
-363
-499
-608

onlyif mysql # aggregate syntax: 
query II rowsort label-3536
SELECT DISTINCT + COUNT( * ), - COUNT( * ) - - MAX( ALL + - col1 ) + - 35 * - COUNT( * ) * 37 col1 FROM tab2 AS cor0
----
3
3831

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3536
SELECT DISTINCT + COUNT ( * ), - COUNT ( * ) - - MAX ( ALL + - col1 ) + - 35 * - COUNT ( * ) * 37 col1 FROM tab2 AS cor0
----
3
3831

query I rowsort
SELECT DISTINCT - 83 FROM tab2 AS cor0 WHERE NOT - 18 + - + col1 * 10 >= 9
----
-83

query I rowsort
SELECT + col0 * + 84 * - col1 FROM tab0 AS cor0
----
-102060
-153468
-8148

query I rowsort
SELECT ALL col2 * + - col1 - col2 + - ( + col1 ) * - 24 + 75 * - ( + + col1 ) FROM tab1 cor0
----
-2154
-5661
-609

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 - + + col1 > + col0
----

query I rowsort
SELECT DISTINCT + + ( + 33 ) FROM tab0 AS cor0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-3542
SELECT DISTINCT + 53 + - SUM( DISTINCT col1 ) FROM tab0 AS cor0
----
-50

skipif mysql # not compatible
query I rowsort label-3542
SELECT DISTINCT + 53 + - SUM ( DISTINCT col1 ) FROM tab0 AS cor0
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-3543
SELECT ALL - + COUNT( * ) + - MIN( + col2 ) AS col0 FROM tab2 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-3543
SELECT ALL - + COUNT ( * ) + - MIN ( + col2 ) AS col0 FROM tab2 AS cor0
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-3544
SELECT DISTINCT - COUNT( * ) FROM tab2 AS cor0 WHERE NOT 66 - + col1 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-3544
SELECT DISTINCT - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT 66 - + col1 > NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3545
SELECT DISTINCT + MAX( col2 ) + - COUNT( * ) - + MAX( col1 ) * + COUNT( * ) * + 87 AS col1 FROM tab1
----
-12174

skipif mysql # not compatible
query I rowsort label-3545
SELECT DISTINCT + MAX ( col2 ) + - COUNT ( * ) - + MAX ( col1 ) * + COUNT ( * ) * + 87 AS col1 FROM tab1
----
-12174

query I rowsort
SELECT - col2 + + 22 * + col0 AS col1 FROM tab2
----
1368
1592
989

query I rowsort
SELECT + 98 + 20 * + + 23 FROM tab2
----
558
558
558

query I rowsort
SELECT + 56 * col2 + col0 AS col0 FROM tab0
----
2647
5641
647

query I rowsort
SELECT ALL - col2 - + col1 + - col0 * col2 FROM tab1
----
-5006
-5079
-6303

query I rowsort
SELECT col0 + col2 * - + col2 AS col0 FROM tab2
----
-1536
-3289
-483

onlyif mysql # aggregate syntax: 
query I rowsort label-3551
SELECT ALL + + COUNT( - col1 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3551
SELECT ALL + + COUNT ( - col1 ) AS col0 FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL + col2 FROM tab0 AS cor0 WHERE 17 / - col1 = - 44 * col1 - col0 - col0
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 NOT BETWEEN ( col2 ) AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3554
SELECT DISTINCT col2 * ( + - 90 ) DIV + + col1 + + + col2 DIV - - 32 FROM tab2 AS cor0
----
-40
-45
-76

skipif mysql # not compatible
query I rowsort label-3554
SELECT DISTINCT col2 * ( + - 90 ) / + + col1 + + + col2 / - - 32 FROM tab2 AS cor0
----
-40
-45
-76

onlyif mysql # DIV for integer division: 
query I rowsort label-3555
SELECT ALL - 89 + col2 DIV + + col2 AS col1 FROM tab0 AS cor0 WHERE NOT col0 * + col2 + + col0 * - - col0 IS NULL
----
-88
-88
-88

skipif mysql # not compatible
query I rowsort label-3555
SELECT ALL - 89 + col2 / + + col2 AS col1 FROM tab0 AS cor0 WHERE NOT col0 * + col2 + + col0 * - - col0 IS NULL
----
-88
-88
-88

query I rowsort
SELECT DISTINCT col0 + col0 + - + col2 FROM tab1 AS cor0
----
111
114
6

query I rowsort
SELECT ALL + col0 + + ( + col1 ) FROM tab1 AS cor0
----
138
65
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3558
SELECT ALL - COUNT( * ) + + 45 AS col1 FROM tab0 cor0 WHERE NOT 86 NOT BETWEEN ( col1 ) AND NULL
----
45

skipif mysql # not compatible
query I rowsort label-3558
SELECT ALL - COUNT ( * ) + + 45 AS col1 FROM tab0 cor0 WHERE NOT 86 NOT BETWEEN ( col1 ) AND NULL
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-3559
SELECT ALL + COUNT( * ) + + 61 FROM tab0 WHERE NOT - col0 IS NOT NULL
----
61

skipif mysql # not compatible
query I rowsort label-3559
SELECT ALL + COUNT ( * ) + + 61 FROM tab0 WHERE NOT - col0 IS NOT NULL
----
61

query I rowsort
SELECT ALL - 93 + - col1 FROM tab0
----
-114
-174
-94

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + + col0 - - - 90 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 3 + - - 46 + - col0 AS col0 FROM tab0
----
-38
-48
34

query I rowsort
SELECT - - col1 FROM tab0 WHERE ( - 13 + 22 IS NULL )
----

query I rowsort
SELECT - 10 * + - 30 FROM tab2
----
300
300
300

onlyif mysql # DIV for integer division: 
query I rowsort label-3565
SELECT 65 DIV - col1 FROM tab1
----
-1
-13
-4

skipif mysql # not compatible
query I rowsort label-3565
SELECT 65 / - col1 FROM tab1
----
-1
-13
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3566
SELECT DISTINCT - 3 - - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) * + CAST( - 12 AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3566
SELECT DISTINCT - 3 - - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) * + CAST ( - 12 AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3567
SELECT + CAST( + 75 AS SIGNED ) * + col2 FROM tab0
----
3525
7425
750

skipif mysql # not compatible
query I rowsort label-3567
SELECT + CAST ( + 75 AS INTEGER ) * + col2 FROM tab0
----
3525
7425
750

query I rowsort
SELECT - 11 * - col2 AS col2 FROM tab1
----
1056
649
748

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + 37 col0 FROM tab0
----
3219
3589
555

query I rowsort
SELECT 39 * - 12 FROM tab1
----
-468
-468
-468

onlyif mysql # DIV for integer division: 
query I rowsort label-3571
SELECT DISTINCT col0 + - 52 DIV + 3 AS col2 FROM tab1
----
34
68
74

skipif mysql # not compatible
query I rowsort label-3571
SELECT DISTINCT col0 + - 52 / + 3 AS col2 FROM tab1
----
34
68
74

query I rowsort
SELECT DISTINCT - col1 + ( - col1 ) FROM tab1 WHERE ( - col1 * col0 ) IS NOT NULL
----
-10
-28
-94

query I rowsort
SELECT - col1 * ( 30 ) AS col2 FROM tab2
----
-1530
-2010
-2310

query I rowsort
SELECT + col1 * 70 FROM tab2
----
3570
4690
5390

query I rowsort
SELECT + 84 * + col1 AS col1 FROM tab1
----
1176
3948
420

query III rowsort
SELECT * FROM tab1 WHERE ( - col2 * col0 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3577
SELECT DISTINCT - CAST( - col0 AS SIGNED ) + - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3577
SELECT DISTINCT - CAST ( - col0 AS INTEGER ) + - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE - 69 NOT IN ( - 71 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 94 * - 57 AS col2 FROM tab1
----
-5358
-5358
-5358

query III rowsort
SELECT * FROM tab0 WHERE NOT 69 + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3581
SELECT col1 * - CAST( NULL AS DECIMAL ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3581
SELECT col1 * - CAST ( NULL AS REAL ) AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 / + 72 AS col0 FROM tab2 WHERE NOT ( NULL ) NOT IN ( ( - 12 ) )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( 81 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( col0 ) BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3585
SELECT MAX( 62 ) AS col2 FROM tab1
----
62

skipif mysql # not compatible
query I rowsort label-3585
SELECT MAX ( 62 ) AS col2 FROM tab1
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-3586
SELECT MAX( ALL 94 ) AS col2 FROM tab2
----
94

skipif mysql # not compatible
query I rowsort label-3586
SELECT MAX ( ALL 94 ) AS col2 FROM tab2
----
94

query III rowsort
SELECT ALL * FROM tab1 WHERE col1 NOT IN ( + 58 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - ( 37 ) AS col1 FROM tab0
----
-37
-37
-37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3589
SELECT ALL + col2 col1 FROM tab0 WHERE col0 + CAST( + 92 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3589
SELECT ALL + col2 col1 FROM tab0 WHERE col0 + CAST ( + 92 AS INTEGER ) IS NULL
----

query I rowsort
SELECT ALL - ( 68 ) AS col1 FROM tab0
----
-68
-68
-68

query III rowsort
SELECT * FROM tab0 WHERE ( col0 ) BETWEEN ( + col2 ) AND col0 * col0 + + 79
----
87
21
10

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3592
SELECT col0 + - col0 * - CAST( NULL AS DECIMAL ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3592
SELECT col0 + - col0 * - CAST ( NULL AS REAL ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col0 AS col1 FROM tab2 WHERE col2 IS NOT NULL
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-3594
SELECT COUNT( * ) + 57 FROM tab1
----
60

skipif mysql # not compatible
query I rowsort label-3594
SELECT COUNT ( * ) + 57 FROM tab1
----
60

query I rowsort
SELECT ALL col1 * - 47 FROM tab2 WHERE ( - col1 - col1 ) BETWEEN - ( ( + col2 ) ) AND - col0
----

query I rowsort
SELECT - col0 * ( + col1 ) AS col2 FROM tab1 cor0 WHERE NOT + 2 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3597
SELECT CAST( NULL AS SIGNED ) * + 61 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3597
SELECT CAST ( NULL AS INTEGER ) * + 61 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) <= - ( + 82 ) * + col0
----

query I rowsort
SELECT ALL + col0 FROM tab1 WHERE + col0 - - col1 IS NULL
----

query I rowsort
SELECT 99 * col2 AS col0 FROM tab2
----
2277
3960
5742

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 75 - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT ( 13 ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-3603
SELECT SUM( DISTINCT + col1 ) AS col1 FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-3603
SELECT SUM ( DISTINCT + col1 ) AS col1 FROM tab2
----
195

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + 77 ) NOT BETWEEN + 91 / 75 AND col0 * - col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + 4 * col2 + - col1 ) = + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3606
SELECT * FROM tab2 AS cor0 WHERE NOT NULL <> CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3606
SELECT * FROM tab2 AS cor0 WHERE NOT NULL <> CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL > + 57 * + 94
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3608
SELECT ALL 16 * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3608
SELECT ALL 16 * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 + - 85 col0 FROM tab0 AS cor0
----
-4
-64
-84

query I rowsort
SELECT - col1 AS col1 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col0 / + ( - 34 ) )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 / + 48 + col2 * col2 IN ( - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - col1 + - 11 ) <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col2 + - col1 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3614
SELECT DISTINCT + - COUNT( ( col2 ) ) AS col2 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3614
SELECT DISTINCT + - COUNT ( ( col2 ) ) AS col2 FROM tab0 cor0
----
-3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 * + col0 IS NOT NULL
----

query I rowsort
SELECT ALL - 68 + - 42 * - col1 FROM tab2 AS cor0
----
2074
2746
3166

onlyif mysql # aggregate syntax: 
query I rowsort label-3617
SELECT DISTINCT MAX( DISTINCT + col2 ) * COUNT( * ) FROM tab2 AS cor0 WHERE - col2 * 94 IS NOT NULL
----
174

skipif mysql # not compatible
query I rowsort label-3617
SELECT DISTINCT MAX ( DISTINCT + col2 ) * COUNT ( * ) FROM tab2 AS cor0 WHERE - col2 * 94 IS NOT NULL
----
174

query III rowsort
SELECT ALL * FROM tab1 WHERE - col2 <> ( 62 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE - 77 * - col0 <= NULL
----

query I rowsort
SELECT DISTINCT 80 + 81 + - col0 * 13 FROM tab1
----
-1022
-502
-944

query I rowsort
SELECT ALL - col2 * - + 96 * - 22 AS col2 FROM tab2
----
-122496
-48576
-84480

onlyif mysql # aggregate syntax: 
query I rowsort label-3622
SELECT - ( + + COUNT( * ) ) + - 77 FROM tab0
----
-80

skipif mysql # not compatible
query I rowsort label-3622
SELECT - ( + + COUNT ( * ) ) + - 77 FROM tab0
----
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 53 * + col2 col2 FROM tab1
----
3127
3604
5088

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 22 col0 FROM tab1 AS cor0 WHERE NULL = ( + 23 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3625
SELECT DISTINCT + COUNT( * ) + 1 FROM tab0 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-3625
SELECT DISTINCT + COUNT ( * ) + 1 FROM tab0 AS cor0
----
4

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( 58 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 42 FROM tab2 WHERE + col1 + - col0 IS NOT NULL
----
-42
-42
-42

query I rowsort
SELECT DISTINCT - 10 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 14 * ( - - 54 ) col0 FROM tab1
----
756
756
756

query I rowsort
SELECT DISTINCT 10 AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
10

query I rowsort
SELECT + 58 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ef6e63aeed2581a168f07646d258f666

query I rowsort
SELECT - 69 AS col0 FROM tab1 cor0 WHERE ( - 85 ) * 39 IN ( 36 * 46 )
----

query I rowsort
SELECT col2 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IN ( + col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND ( col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - col2 ) >= ( NULL )
----

query I rowsort
SELECT - col2 FROM tab2 AS cor0 WHERE 26 * col1 IS NOT NULL
----
-23
-40
-58

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 IN ( - 83 * + 78 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3638
SELECT + MIN( DISTINCT 48 ) FROM tab1 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-3638
SELECT + MIN ( DISTINCT 48 ) FROM tab1 AS cor0
----
48

query I rowsort
SELECT col0 * - 47 AS col2 FROM tab2 AS cor0 WHERE NOT + col1 <= - + 41 + 37
----
-2162
-3008
-3525

query I rowsort
SELECT DISTINCT - col1 * + col2 * + col1 AS col1 FROM tab0
----
-308367
-4410
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-3641
SELECT - 59 DIV - col2 FROM tab2
----
1
1
2

skipif mysql # not compatible
query I rowsort label-3641
SELECT - 59 / - col2 FROM tab2
----
1
1
2

query I rowsort
SELECT + col2 / - col2 + - col2 FROM tab1 WHERE NOT - col0 <> NULL
----

query I rowsort
SELECT - col2 * ( + col0 ) AS col2 FROM tab1
----
-4896
-5015
-6188

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3644
SELECT - CAST( NULL AS SIGNED ) * - 95 AS col1 FROM tab2 WHERE NOT + - col1 + 55 NOT BETWEEN NULL AND ( + col1 )
----

skipif mysql # not compatible
query I rowsort label-3644
SELECT - CAST ( NULL AS INTEGER ) * - 95 AS col1 FROM tab2 WHERE NOT + - col1 + 55 NOT BETWEEN NULL AND ( + col1 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + - col1 NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT DISTINCT 51 FROM tab0 WHERE ( - 98 - - + 25 ) IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + col0 / - + col0 + col0 * - col0 ) NOT IN ( + 79 - col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( col0 ) BETWEEN col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3649
SELECT + - COUNT( 37 ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3649
SELECT + - COUNT ( 37 ) AS col2 FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3650
SELECT ALL + - 71 * - CAST( NULL AS SIGNED ) * + - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3650
SELECT ALL + - 71 * - CAST ( NULL AS INTEGER ) * + - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 FROM tab0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3652
SELECT DISTINCT + + COUNT( * ) * 16 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
144

skipif mysql # not compatible
query I rowsort label-3652
SELECT DISTINCT + + COUNT ( * ) * 16 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
144

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 INNER JOIN tab2 AS cor1 ON NOT 69 IS NOT NULL WHERE NOT NULL IS NOT NULL
----

query I rowsort
SELECT 82 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 22 AS col0, - col1 col1 FROM tab1
----
22
-14
22
-47
22
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3656
SELECT DISTINCT + - COUNT( - - col0 ) DIV + - 53 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3656
SELECT DISTINCT + - COUNT ( - - col0 ) / + - 53 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3657
SELECT DISTINCT COUNT( * ) + COUNT( * ) * + 21 FROM tab2 cor0
----
66

skipif mysql # not compatible
query I rowsort label-3657
SELECT DISTINCT COUNT ( * ) + COUNT ( * ) * + 21 FROM tab2 cor0
----
66

query I rowsort
SELECT col0 * + + 39 + + 83 AS col1 FROM tab2 AS cor0
----
1877
2579
3008

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 3 * - col0 > NULL
----

query I rowsort
SELECT - + 90 + - col1 * col1 * - col1 AS col1 FROM tab2 AS cor0
----
132561
300673
456443

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3661
SELECT DISTINCT + 71 + + 56 + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3661
SELECT DISTINCT + 71 + + 56 + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - + col2 + 12 AS col1 FROM tab1 AS cor0
----
-47
-56
-84

query I rowsort
SELECT DISTINCT - ( 60 ) FROM tab1
----
-60

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN + 36 * + - col0 AND NULL
----

query I rowsort
SELECT + col1 FROM tab1 WHERE ( NULL ) IN ( - ( + 40 ) )
----

query III rowsort
SELECT * FROM tab0 WHERE - + 97 IN ( - - col2 * col1 )
----

query I rowsort
SELECT ALL ( - 95 ) FROM tab1 AS cor0
----
-95
-95
-95

query II rowsort
SELECT DISTINCT - - 55, 14 * col1 * + col2 AS col0 FROM tab2 AS cor0
----
55
16422
55
43120
55
54404

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3669
SELECT ALL - 46 + 78 + + col1 * + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( 76 )
----

skipif mysql # not compatible
query I rowsort label-3669
SELECT ALL - 46 + 78 + + col1 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( 76 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3670
SELECT DISTINCT + - CAST( + ( + + COUNT( - col0 ) ) AS SIGNED ) + - COUNT( * ) FROM tab1 AS cor0 WHERE NOT - col1 IS NULL
----
-6

skipif mysql # not compatible
query I rowsort label-3670
SELECT DISTINCT + - CAST ( + ( + + COUNT ( - col0 ) ) AS INTEGER ) + - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT - col1 IS NULL
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-3671
SELECT ALL 6 DIV + - col2 + - + col1 col1 FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3671
SELECT ALL 6 / + - col2 + - + col1 col1 FROM tab1
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3672
SELECT ALL SUM( - + ( + + 59 ) ) - - 67 FROM tab1
----
-110

skipif mysql # not compatible
query I rowsort label-3672
SELECT ALL SUM ( - + ( + + 59 ) ) - - 67 FROM tab1
----
-110

query I rowsort
SELECT DISTINCT + col1 - + 56 FROM tab0
----
-35
-55
25

query I rowsort
SELECT ALL + + col0 - col0 - - 88 FROM tab0 AS cor0
----
88
88
88

query I rowsort
SELECT ALL - 0 AS col2 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN - col0 + - col2 AND + 4
----

query I rowsort
SELECT + + col2 * - 82 * + 99 AS col2 FROM tab0 cor0
----
-381546
-803682
-81180

query II rowsort
SELECT col2 * 26 AS col0, 33 FROM tab2 AS cor0
----
1040
33
1508
33
598
33

query II rowsort
SELECT - + col0 * + 46, col1 AS col2 FROM tab1 AS cor0
----
-2346
14
-3910
5
-4186
47

query I rowsort
SELECT ALL - 17 * + col0 AS col2 FROM tab1
----
-1445
-1547
-867

query I rowsort
SELECT DISTINCT + col2 * 83 * + - ( - + col0 ) FROM tab1
----
406368
416245
513604

query I rowsort
SELECT ALL + ( + 51 ) AS col0 FROM tab0 WHERE NOT ( col0 + + ( + - col1 ) ) >= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3682
SELECT ALL - CAST( NULL AS SIGNED ) * MAX( 91 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3682
SELECT ALL - CAST ( NULL AS INTEGER ) * MAX ( 91 ) FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( - 25 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col1, + ( + 85 ) AS col1 FROM tab0
----
15
85
87
85
97
85

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 11 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3686
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( + col0 ) + CAST( - col1 AS SIGNED ) = - - ( + + col2 )
----

skipif mysql # not compatible
query III rowsort label-3686
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( + col0 ) + CAST ( - col1 AS INTEGER ) = - - ( + + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 0 col0, 80 AS col1 FROM tab2 AS cor0
----
0
80

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3688
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 54 <> col1 + - - ( - - CAST( NULL AS DECIMAL ) ) + 30
----

skipif mysql # not compatible
query III rowsort label-3688
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 54 <> col1 + - - ( - - CAST ( NULL AS REAL ) ) + 30
----

query I rowsort
SELECT - 55 * + + col1 AS col1 FROM tab2
----
-2805
-3685
-4235

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT + 78 IS NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

onlyif mysql # DIV for integer division: 
query I rowsort label-3691
SELECT ALL col1 - - col2 DIV + col0 FROM tab1 AS cor0 WHERE col2 + + col2 * col2 * - col1 IS NOT NULL
----
15
47
5

skipif mysql # not compatible
query I rowsort label-3691
SELECT ALL col1 - - col2 / + col0 FROM tab1 AS cor0 WHERE col2 + + col2 * col2 * - col1 IS NOT NULL
----
15
47
5

query II rowsort
SELECT + + ( col1 ), col1 AS col2 FROM tab0 AS cor0
----
1
1
21
21
81
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 53 col0 FROM tab0 AS cor0
----
-53

query I rowsort
SELECT DISTINCT - + 93 + col2 AS col2 FROM tab2 cor0
----
-35
-53
-70

onlyif mysql # DIV for integer division: 
query III rowsort label-3695
SELECT ALL + 14 + col2 DIV col2 * + col2 AS col1, col2 AS col2, + col1 col0 FROM tab1 AS cor0
----
9 values hashing to bc1d101ff3a2e6acf9d39202585b67d6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-3695
SELECT ALL + 14 + col2 / col2 * + col2 AS col1, col2 AS col2, + col1 col0 FROM tab1 AS cor0
----
9 values hashing to bc1d101ff3a2e6acf9d39202585b67d6

onlyif mysql # aggregate syntax: 
query I rowsort label-3696
SELECT 27 + COUNT( * ) AS col0 FROM tab0
----
30

skipif mysql # not compatible
query I rowsort label-3696
SELECT 27 + COUNT ( * ) AS col0 FROM tab0
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-3697
SELECT DISTINCT 61 DIV + col1 FROM tab1
----
1
12
4

skipif mysql # not compatible
query I rowsort label-3697
SELECT DISTINCT 61 / + col1 FROM tab1
----
1
12
4

query I rowsort
SELECT ALL - col2 + + + col1 AS col1 FROM tab2
----
28
37
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 33 + - - col1 AS col1, 69 col0 FROM tab0 WHERE - col1 IS NULL
----

query I rowsort
SELECT DISTINCT 27 - + 29 AS col2 FROM tab1
----
-2

query I rowsort
SELECT col1 + + 89 AS col2 FROM tab0
----
110
170
90

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 41 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 18 col1, col0 FROM tab0 AS cor0
----
-18
15
-18
87
-18
97

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col0 BETWEEN NULL AND + - 74
----
15
81
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3705
SELECT 10 DIV COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
1

skipif mysql # not compatible
query I rowsort label-3705
SELECT 10 / COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3706
SELECT COUNT( - + 30 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3706
SELECT COUNT ( - + 30 ) AS col0 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-3707
SELECT DISTINCT + - COUNT( * ) AS col2, COUNT( * ) FROM tab1 cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-3707
SELECT DISTINCT + - COUNT ( * ) AS col2, COUNT ( * ) FROM tab1 cor0
----
-3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3708
SELECT DISTINCT + MAX( col2 ) col0 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3708
SELECT DISTINCT + MAX ( col2 ) col0 FROM tab2 AS cor0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3709
SELECT - COUNT( * ) + - 75 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) >= + col2
----
-75

skipif mysql # not compatible
query I rowsort label-3709
SELECT - COUNT ( * ) + - 75 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) >= + col2
----
-75

query I rowsort
SELECT DISTINCT - - 58 * + 70 FROM tab0 cor0
----
4060

query I rowsort
SELECT DISTINCT + + 83 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
83

query I rowsort
SELECT DISTINCT 39 * col1 FROM tab2 AS cor0
----
1989
2613
3003

onlyif mysql # aggregate syntax: 
query I rowsort label-3713
SELECT + COUNT( * ) AS col2 FROM tab0 WHERE NOT - col2 + 14 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-3713
SELECT + COUNT ( * ) AS col2 FROM tab0 WHERE NOT - col2 + 14 = NULL
----
0

query I rowsort
SELECT 41 * - col0 * - col0 * col1 AS col2 FROM tab2
----
12931072
15451875
4424556

query II rowsort
SELECT col1 * - - col0, col0 AS col2 FROM tab1
----
425
85
4277
91
714
51

query I rowsort
SELECT DISTINCT - 12 AS col1 FROM tab0 WHERE NOT NULL IN ( + col2, ( - 95 ) * col1 * 71 + 85 - + col0 * + + col1 * + col2 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3717
SELECT + MIN( ALL - 39 ) col0, 69 DIV + SUM( 34 ) AS col2 FROM tab0 AS cor0
----
-39
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3717
SELECT + MIN ( ALL - 39 ) col0, 69 / + SUM ( 34 ) AS col2 FROM tab0 AS cor0
----
-39
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT + 33 + - - 96 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL <> - 4
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( col0 NOT BETWEEN NULL AND - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-3721
SELECT DISTINCT + col0 DIV - - col2 + - col1 DIV - 63 AS col0 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-3721
SELECT DISTINCT + col0 / - - col2 + - col1 / - 63 AS col0 FROM tab1 AS cor0
----
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3722
SELECT ALL * FROM tab1 cor0 WHERE NOT col0 <> col0 * - ( + - col1 ) + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3722
SELECT ALL * FROM tab1 cor0 WHERE NOT col0 <> col0 * - ( + - col1 ) + - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT 42 + + - ( col2 ) + + col1 * 44 * + col0 FROM tab0 AS cor0
----
4211
53455
80420

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3724
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - - 96 / - 18 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3724
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - - 96 / - 18 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + col2 + - 38 AS col0 FROM tab0 AS cor0
----
-28
61
9

query I rowsort
SELECT ALL + col1 + - 12 AS col2 FROM tab2 AS cor0
----
39
55
65

onlyif mysql # aggregate syntax: 
query I rowsort label-3727
SELECT - COUNT( * ) * - - MIN( ALL + + 90 ) col1 FROM tab2 AS cor0 WHERE + 43 IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3727
SELECT - COUNT ( * ) * - - MIN ( ALL + + 90 ) col1 FROM tab2 AS cor0 WHERE + 43 IS NULL
----
NULL

query II rowsort
SELECT ALL 61 / - col1 * - 83 AS col0, col1 + + col1 - 7 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - col0 + col0 + + col0 * - col2 * col0 - - + 67 AS col0 FROM tab1
----
-249629
-426208
-563041

query III rowsort
SELECT * FROM tab1 WHERE col1 NOT IN ( 0, - col0 / + 45 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3731
SELECT DISTINCT 58 + + MAX( DISTINCT + col2 ) col1 FROM tab0
----
157

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3731
SELECT DISTINCT 58 + + MAX ( DISTINCT + col2 ) col1 FROM tab0
----
157

onlyif mysql # aggregate syntax: 
query I rowsort label-3732
SELECT - COUNT( 24 ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-3732
SELECT - COUNT ( 24 ) AS col2 FROM tab2
----
-3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + - col0 * + col1 * - 70 - - + col0 >= 92 AND NOT - 87 BETWEEN NULL AND NULL
----

query II rowsort
SELECT ALL - - 69 + 46 AS col2, ( - ( - + ( - + col2 ) ) ) AS col2 FROM tab1 AS cor0
----
115
-59
115
-68
115
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3735
SELECT - COUNT( * ) + - - SUM( + 53 ) col0 FROM tab1 cor0
----
156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3735
SELECT - COUNT ( * ) + - - SUM ( + 53 ) col0 FROM tab1 cor0
----
156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3736
SELECT - col2 + 7 + 46 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3736
SELECT - col2 + 7 + 46 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3737
SELECT ALL - COUNT( * ) * 1 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-3737
SELECT ALL - COUNT ( * ) * 1 col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

query I rowsort
SELECT ALL - + ( - + col0 ) AS col0 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT + 17 * col1 AS col2 FROM tab1 AS cor0
----
238
799
85

onlyif mysql # aggregate syntax: 
query I rowsort label-3740
SELECT MIN( ALL col0 ) AS col1 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-3740
SELECT MIN ( ALL col0 ) AS col1 FROM tab1 AS cor0
----
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 83 ) col1 FROM tab0 cor0
----
-83
-83
-83

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 / + 27 < NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 NOT IN ( + + 41, + col1, + 37 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3744
SELECT DISTINCT + 14 AS col0 FROM tab1 AS cor0 WHERE NOT ( CAST( - col1 AS SIGNED ) ) IS NULL
----
14

skipif mysql # not compatible
query I rowsort label-3744
SELECT DISTINCT + 14 AS col0 FROM tab1 AS cor0 WHERE NOT ( CAST ( - col1 AS INTEGER ) ) IS NULL
----
14

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 + + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 - 35 FROM tab0 AS cor0 WHERE NOT ( col2 ) IS NULL
----
-20
52
62

onlyif mysql # aggregate syntax: 
query I rowsort label-3747
SELECT - - COUNT( + col1 ) * 17 * - 45 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-2295

skipif mysql # not compatible
query I rowsort label-3747
SELECT - - COUNT ( + col1 ) * 17 * - 45 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-2295

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3748
SELECT DISTINCT + CAST( + - 26 AS SIGNED ) col1 FROM tab1
----
-26

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3748
SELECT DISTINCT + CAST ( + - 26 AS INTEGER ) col1 FROM tab1
----
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 80 col1 FROM tab1
----
-80
-80
-80

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 * + col2 - + col2 NOT BETWEEN - col1 AND - + 78 + 51 + - ( + 58 )
----

query II rowsort
SELECT + 79, col1 AS col1 FROM tab2 AS cor0
----
79
51
79
67
79
77

query II rowsort
SELECT + 44, 74 AS col1 FROM tab0 AS cor0
----
44
74
44
74
44
74

query II rowsort
SELECT ALL + - 31 + col2 AS col2, - col0 * col1 FROM tab1 cor0
----
28
-425
37
-4277
65
-714

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col2 BETWEEN - col2 / - 88 AND + ( - + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col0 + + col0 + - col0 AS col1 FROM tab2 AS cor0
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3756
SELECT COUNT( * ) + - + 80 + 72 AS col0 FROM tab0
----
-5

skipif mysql # not compatible
query I rowsort label-3756
SELECT COUNT ( * ) + - + 80 + 72 AS col0 FROM tab0
----
-5

query III rowsort
SELECT * FROM tab2 WHERE 9 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3758
SELECT DISTINCT COUNT( * ) col2 FROM tab0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3758
SELECT DISTINCT COUNT ( * ) col2 FROM tab0 WHERE NULL IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3759
SELECT + - COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-3759
SELECT + - COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-9

query II rowsort
SELECT DISTINCT - col2 + + - col0 * + 40 AS col2, col2 FROM tab0 AS cor0 WHERE 14 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3761
SELECT DISTINCT + COUNT( * ) * ( - 66 ) FROM tab0 AS cor0
----
-198

skipif mysql # not compatible
query I rowsort label-3761
SELECT DISTINCT + COUNT ( * ) * ( - 66 ) FROM tab0 AS cor0
----
-198

onlyif mysql # aggregate syntax: 
query I rowsort label-3762
SELECT DISTINCT + - MAX( + col1 ) * - 97 AS col2 FROM tab2 AS cor0
----
7469

skipif mysql # not compatible
query I rowsort label-3762
SELECT DISTINCT + - MAX ( + col1 ) * - 97 AS col2 FROM tab2 AS cor0
----
7469

query I rowsort
SELECT + 1 * - col2 + col0 * col0 AS col0 FROM tab1 AS cor0
----
2505
7166
8213

query II rowsort
SELECT ALL col2, 62 + + - col2 AS col1 FROM tab0 WHERE NULL IS NULL
----
10
52
47
15
99
-37

query I rowsort
SELECT DISTINCT 46 + - col2 AS col1 FROM tab2
----
-12
23
6

query I rowsort
SELECT - 34 + + ( - 91 ) * - + col2 AS col1 FROM tab1
----
5335
6154
8702

query I rowsort
SELECT DISTINCT - col1 + + - col1 AS col1 FROM tab2
----
-102
-134
-154

onlyif mysql # DIV for integer division: 
query I rowsort label-3768
SELECT ALL - col2 DIV + col1 + - col1 + - + col0 + + - col0 * col0 FROM tab1
----
-2672
-7326
-8420

skipif mysql # not compatible
query I rowsort label-3768
SELECT ALL - col2 / + col1 + - col1 + - + col0 + + - col0 * col0 FROM tab1
----
-2672
-7326
-8420

query I rowsort
SELECT col0 * - - col2 + 17 + - col2 AS col0 FROM tab1
----
4817
4973
6137

onlyif mysql # aggregate syntax: 
query I rowsort label-3770
SELECT DISTINCT - COUNT( col2 ) AS col1 FROM tab0 WHERE - col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3770
SELECT DISTINCT - COUNT ( col2 ) AS col1 FROM tab0 WHERE - col0 IS NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3771
SELECT DISTINCT col0 * + col2 + - col1 + + 82 DIV - col2 - col1 FROM tab1
----
4868
5004
6093

skipif mysql # not compatible
query I rowsort label-3771
SELECT DISTINCT col0 * + col2 + - col1 + + 82 / - col2 - col1 FROM tab1
----
4868
5004
6093

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + - col0 IN ( - + col2, + 22 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col2 FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN NULL AND + 78
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3774
SELECT DISTINCT + 4 DIV - - COUNT( * ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3774
SELECT DISTINCT + 4 / - - COUNT ( * ) FROM tab0 AS cor0
----
1

query I rowsort
SELECT ALL + 54 * - + col1 FROM tab1 cor0
----
-2538
-270
-756

onlyif mysql # DIV for integer division: 
query I rowsort label-3776
SELECT ALL + + col2 DIV - - 77 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3776
SELECT ALL + + col2 / - - 77 AS col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3777
SELECT - - COUNT( * ) * - 66 FROM tab1 cor0
----
-198

skipif mysql # not compatible
query I rowsort label-3777
SELECT - - COUNT ( * ) * - 66 FROM tab1 cor0
----
-198

query I rowsort
SELECT ALL 24 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab1 WHERE NOT NULL NOT IN ( - 80 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3780
SELECT ALL col1 / + CAST( NULL AS DECIMAL ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3780
SELECT ALL col1 / + CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 91 * + 73 FROM tab1 AS cor0
----
6643
6643
6643

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - 27 AND NULL
----

query I rowsort
SELECT - + col1 * - 99 - + col0 * col1 + - - col0 FROM tab1 AS cor0
----
155
467
723

onlyif mysql # aggregate syntax: 
query I rowsort label-3784
SELECT - - MAX( DISTINCT col2 ) FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-3784
SELECT - - MAX ( DISTINCT col2 ) FROM tab1 AS cor0
----
96

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col2 > ( NULL )
----

query II rowsort
SELECT ALL col1 AS col2, col1 AS col2 FROM tab2
----
51
51
67
67
77
77

query I rowsort
SELECT DISTINCT + 6 AS col0 FROM tab0 WHERE NOT - 86 BETWEEN NULL AND + col1
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 97 * - col2 * col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE NOT NULL <> + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3790
SELECT + COUNT( * ) AS col2 FROM tab1 WHERE NULL IS NULL OR NULL <> NULL
----
3

skipif mysql # not compatible
query I rowsort label-3790
SELECT + COUNT ( * ) AS col2 FROM tab1 WHERE NULL IS NULL OR NULL <> NULL
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3791
SELECT ALL + COUNT( ALL col1 ) * - 57 AS col0, - CAST( + 0 AS SIGNED ) FROM tab0 WHERE NOT NULL BETWEEN NULL AND NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-3791
SELECT ALL + COUNT ( ALL col1 ) * - 57 AS col0, - CAST ( + 0 AS INTEGER ) FROM tab0 WHERE NOT NULL BETWEEN NULL AND NULL
----
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3792
SELECT - CAST( SUM( - col2 ) AS SIGNED ) AS col2 FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-3792
SELECT - CAST ( SUM ( - col2 ) AS INTEGER ) AS col2 FROM tab1
----
223

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - col2 ) col0 FROM tab0 WHERE NOT + - ( - col1 ) IS NULL
----
-10
-47
-99

query I rowsort
SELECT col0 * ( + - 51 ) AS col1 FROM tab1 cor0 WHERE - 81 IS NOT NULL
----
-2601
-4335
-4641

query I rowsort
SELECT + col2 * + ( + col0 ) FROM tab2 AS cor0
----
1058
2560
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-3796
SELECT - MIN( ALL + ( + 21 ) ) FROM tab0 cor0
----
-21

skipif mysql # not compatible
query I rowsort label-3796
SELECT - MIN ( ALL + ( + 21 ) ) FROM tab0 cor0
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-3797
SELECT - MAX( - col1 ) * + + 64 + COUNT( * ) FROM tab2 AS cor0
----
3267

skipif mysql # not compatible
query I rowsort label-3797
SELECT - MAX ( - col1 ) * + + 64 + COUNT ( * ) FROM tab2 AS cor0
----
3267

query I rowsort
SELECT ALL + 38 FROM tab1 cor0 WHERE NOT + col0 - col2 * - - col2 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3799
SELECT - col1 + CAST( - 28 AS SIGNED ) FROM tab1 cor0
----
-33
-42
-75

skipif mysql # not compatible
query I rowsort label-3799
SELECT - col1 + CAST ( - 28 AS INTEGER ) FROM tab1 cor0
----
-33
-42
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-3800
SELECT + + 46 + + MAX( - - 92 ) FROM tab1 AS cor0
----
138

skipif mysql # not compatible
query I rowsort label-3800
SELECT + + 46 + + MAX ( - - 92 ) FROM tab1 AS cor0
----
138

query II rowsort
SELECT - + col2 AS col1, - col1 FROM tab0 AS cor0
----
-10
-21
-47
-81
-99
-1

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL > + col1 + + 83
----

query I rowsort
SELECT ALL + col0 * - col2 + - 33 + col0 - + + 89 FROM tab2 AS cor0
----
-1134
-2618
-4397

query I rowsort
SELECT DISTINCT + col1 - + - 16 AS col0 FROM tab0
----
17
37
97

query I rowsort
SELECT ALL 31 - + + ( + - col1 ) - + 40 FROM tab2
----
42
58
68

query II rowsort
SELECT DISTINCT col2 + - + col2 AS col1, col0 AS col0 FROM tab2
----
0
46
0
64
0
75

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3807
SELECT 21 - - col2 * + - 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-3807
SELECT 21 - - col2 * + - CAST ( NULL AS REAL ) col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3808
SELECT DISTINCT COUNT( * ) * + ( - COUNT( * ) ) AS col0 FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-3808
SELECT DISTINCT COUNT ( * ) * + ( - COUNT ( * ) ) AS col0 FROM tab1
----
-9

query I rowsort
SELECT DISTINCT 45 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL ) IS NOT NULL
----
45

query I rowsort
SELECT DISTINCT col2 * 35 FROM tab0
----
1645
3465
350

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3811
SELECT 27 AS col2, + col2 + CAST( NULL AS SIGNED ) FROM tab2
----
27
NULL
27
NULL
27
NULL

skipif mysql # not compatible
query II rowsort label-3811
SELECT 27 AS col2, + col2 + CAST ( NULL AS INTEGER ) FROM tab2
----
27
NULL
27
NULL
27
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3812
SELECT - COUNT( + - 58 ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3812
SELECT - COUNT ( + - 58 ) AS col2 FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3813
SELECT + CAST( - COUNT( * ) AS SIGNED ) AS col1 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3813
SELECT + CAST ( - COUNT ( * ) AS INTEGER ) AS col1 FROM tab0 cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3814
SELECT + + CAST( - + CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3814
SELECT + + CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 - + col0 FROM tab1 AS cor0 WHERE NOT NULL >= col2 + + col2 + - ( + 71 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3816
SELECT ALL COUNT( * ) + 2 + + COUNT( * ) col0, + COUNT( * ) FROM tab1 AS cor0
----
8
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3816
SELECT ALL COUNT ( * ) + 2 + + COUNT ( * ) col0, + COUNT ( * ) FROM tab1 AS cor0
----
8
3

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL < + 56
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3818
SELECT + 87 * - SUM( - - 34 ) FROM tab0
----
-8874

skipif mysql # not compatible
query I rowsort label-3818
SELECT + 87 * - SUM ( - - 34 ) FROM tab0
----
-8874

onlyif mysql # aggregate syntax: 
query I rowsort label-3819
SELECT COUNT( * ) * - 4 AS col1 FROM tab1
----
-12

skipif mysql # not compatible
query I rowsort label-3819
SELECT COUNT ( * ) * - 4 AS col1 FROM tab1
----
-12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + col2 * ( + col2 ) col0 FROM tab0
----
1000
103823
970299

query I rowsort
SELECT ( + - 2 ) * - + 47 AS col2 FROM tab2
----
94
94
94

query I rowsort
SELECT + 3 + col0 AS col0 FROM tab1
----
54
88
94

query III rowsort
SELECT ALL * FROM tab2 WHERE 86 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3824
SELECT ( + MAX( ALL - - ( 97 ) ) ) + - 64 + - + 78 DIV - COUNT( * ) FROM tab0
----
59

skipif mysql # not compatible
query I rowsort label-3824
SELECT ( + MAX ( ALL - - ( 97 ) ) ) + - 64 + - + 78 / - COUNT ( * ) FROM tab0
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3825
SELECT DISTINCT CAST( + col1 AS SIGNED ), col2 AS col0 FROM tab0
----
1
99
21
10
81
47

skipif mysql # not compatible
query II rowsort label-3825
SELECT DISTINCT CAST ( + col1 AS INTEGER ), col2 AS col0 FROM tab0
----
1
99
21
10
81
47

query I rowsort
SELECT + 28 + col0 - - col1 AS col2 FROM tab0 AS cor0
----
124
126
136

query I rowsort
SELECT DISTINCT ( - 6 ) + 99 FROM tab0 AS cor0
----
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 + - col1 col2, + col1 FROM tab1 AS cor0
----
-110
14
-115
47
-64
5

query III rowsort
SELECT * FROM tab2 WHERE + 54 < NULL
----

query II rowsort
SELECT - col1 AS col1, - col0 FROM tab1
----
-14
-51
-47
-91
-5
-85

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + + 34 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3832
SELECT - col2 * col1 - CAST( - col2 AS SIGNED ) + + col0 + - ( - 81 ) + + + col1 AS col2, - 29 col0 FROM tab0 AS cor0
----
-11
-29
-3583
-29
179
-29

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3832
SELECT - col2 * col1 - CAST ( - col2 AS INTEGER ) + + col0 + - ( - 81 ) + + + col1 AS col2, - 29 col0 FROM tab0 AS cor0
----
-11
-29
-3583
-29
179
-29

query I rowsort
SELECT DISTINCT - col0 FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
-46
-64
-75

query I rowsort
SELECT - col0 - - 95 AS col2 FROM tab2 AS cor0
----
20
31
49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL <> 38
----

query II rowsort
SELECT DISTINCT col0, - 58 FROM tab1 AS cor0
----
51
-58
85
-58
91
-58

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 3 BETWEEN - col2 * - ( col1 ) * - + col2 + col2 AND + 87
----

query I rowsort
SELECT - col2 + + - 51 * + col2 FROM tab0 AS cor0
----
-2444
-5148
-520

query I rowsort
SELECT + col0 + - ( + 80 ) FROM tab0
----
-65
17
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3840
SELECT DISTINCT - col0 * + - ( + - CAST( - col0 AS SIGNED ) ) FROM tab0
----
225
7569
9409

skipif mysql # not compatible
query I rowsort label-3840
SELECT DISTINCT - col0 * + - ( + - CAST ( - col0 AS INTEGER ) ) FROM tab0
----
225
7569
9409

query I rowsort
SELECT DISTINCT 60 * + ( + 76 ) FROM tab2
----
4560

query I rowsort
SELECT DISTINCT + - col2 + col0 AS col0 FROM tab2 WHERE ( - col2 ) = NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - 39 IN ( + col0, col0 + col1 * + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + + col0 + - col2 AS col0 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND + col1
----

query II rowsort
SELECT col1 * col1 AS col0, + col1 + ( + col0 ) FROM tab2 AS cor0
----
2601
97
4489
142
5929
141

query I rowsort
SELECT + col1 * - - 79 FROM tab1 AS cor0
----
1106
3713
395

query I rowsort
SELECT ALL + col0 FROM tab0 AS cor0 WHERE NOT - col2 > NULL
----

query I rowsort
SELECT - - 56 * + col1 + + - col0 FROM tab2 AS cor0
----
2810
3677
4248

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3849
SELECT DISTINCT COUNT( * ) DIV - 17 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3849
SELECT DISTINCT COUNT ( * ) / - 17 AS col2 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3850
SELECT DISTINCT + MIN( - 59 ) FROM tab2 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-3850
SELECT DISTINCT + MIN ( - 59 ) FROM tab2 AS cor0
----
-59

onlyif mysql # aggregate syntax: 
query II rowsort label-3851
SELECT - SUM( - col0 ) col0, 0 FROM tab2 AS cor0
----
185
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3851
SELECT - SUM ( - col0 ) col0, 0 FROM tab2 AS cor0
----
185
0

query I rowsort
SELECT col1 + + 21 FROM tab2 AS cor0
----
72
88
98

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 NOT BETWEEN NULL AND + col2
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3854
SELECT - 41 + - - 34 + + col2 + - CAST( - col2 AS SIGNED ) DIV - ( 36 ) FROM tab1 cor0
----
51
60
87

skipif mysql # not compatible
query I rowsort label-3854
SELECT - 41 + - - 34 + + col2 + - CAST ( - col2 AS INTEGER ) / - ( 36 ) FROM tab1 cor0
----
51
60
87

onlyif mysql # aggregate syntax: 
query I rowsort label-3855
SELECT ALL COUNT( * ) * - + 5 AS col2 FROM tab1
----
-15

skipif mysql # not compatible
query I rowsort label-3855
SELECT ALL COUNT ( * ) * - + 5 AS col2 FROM tab1
----
-15

query I rowsort
SELECT + col1 + ( 45 ) + - col0 FROM tab2 WHERE col1 BETWEEN - 18 + + 15 AND - col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3857
SELECT ALL - SUM( - ( + 67 ) ) AS col2, 48 AS col2 FROM tab2
----
201
48

skipif mysql # not compatible
query II rowsort label-3857
SELECT ALL - SUM ( - ( + 67 ) ) AS col2, 48 AS col2 FROM tab2
----
201
48

query III rowsort
SELECT * FROM tab0 WHERE - + col2 IN ( col2 + - - col1 + - col1 / - - 95, 39 * + ( col0 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 col0, col0 AS col1 FROM tab0
----
15
15
87
87
97
97

query II rowsort
SELECT DISTINCT - 79, ( 56 ) AS col2 FROM tab1
----
-79
56

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 25 * col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-3862
SELECT col2 DIV + col1 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3862
SELECT col2 / + col1 AS col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3863
SELECT ALL - SUM( DISTINCT - 80 ) FROM tab1 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-3863
SELECT ALL - SUM ( DISTINCT - 80 ) FROM tab1 AS cor0
----
80

query I rowsort
SELECT - + 67 - + - col0 AS col0 FROM tab2 AS cor0
----
-21
-3
8

query I rowsort
SELECT + - col2 - + ( + - col0 ) - + 80 FROM tab0 AS cor0
----
-112
-3
-82

query I rowsort
SELECT + - col2 + - - col0 * - + col2 * + 39 + col2 FROM tab2 AS cor0
----
-169650
-41262
-99840

query I rowsort
SELECT ALL + - col2 + - 28 * + + col2 * + - col2 FROM tab2 AS cor0
----
14789
44760
94134

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 16 col1 FROM tab2 AS cor0
----
-16
-16
-16

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL < + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3870
SELECT DISTINCT - - 61 + COUNT( * ) - - + MAX( ( col2 ) ) FROM tab1 AS cor0
----
160

skipif mysql # not compatible
query I rowsort label-3870
SELECT DISTINCT - - 61 + COUNT ( * ) - - + MAX ( ( col2 ) ) FROM tab1 AS cor0
----
160

onlyif mysql # DIV for integer division: 
query I rowsort label-3871
SELECT col0 DIV - ( - - 29 ) AS col0 FROM tab0 AS cor0
----
-3
-3
0

skipif mysql # not compatible
query I rowsort label-3871
SELECT col0 / - ( - - 29 ) AS col0 FROM tab0 AS cor0
----
-3
-3
0

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col1 * col1 + - col2 + - 81 + - + 90 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + col2, ( - + 93 ) AS col1 FROM tab0
----
10
-93
47
-93
99
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-3874
SELECT MAX( + ( - - col1 ) ) FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-3874
SELECT MAX ( + ( - - col1 ) ) FROM tab1 AS cor0
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3875
SELECT ALL + CAST( + COUNT( * ) AS SIGNED ) col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3875
SELECT ALL + CAST ( + COUNT ( * ) AS INTEGER ) col0 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3876
SELECT DISTINCT col1 AS col0, col1 * + CAST( + + CAST( - + CAST( - 0 AS SIGNED ) AS SIGNED ) AS SIGNED ) FROM tab2
----
51
0
67
0
77
0

skipif mysql # not compatible
query II rowsort label-3876
SELECT DISTINCT col1 AS col0, col1 * + CAST ( + + CAST ( - + CAST ( - 0 AS INTEGER ) AS INTEGER ) AS INTEGER ) FROM tab2
----
51
0
67
0
77
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 31 * + - col0 = col0 * + 83 * - + 77
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3878
SELECT + 23 DIV + + 36 * - 89 col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3878
SELECT + 23 / + + 36 * - 89 col1 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3879
SELECT - MIN( DISTINCT + col1 ) AS col0 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-3879
SELECT - MIN ( DISTINCT + col1 ) AS col0 FROM tab2
----
-51

query I rowsort
SELECT - 38 * col1 * 88 AS col2 FROM tab2 AS cor0
----
-170544
-224048
-257488

query I rowsort
SELECT ALL + 99 + col1 - + col2 FROM tab1 AS cor0
----
17
45
78

query I rowsort
SELECT - col2 * col0 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) = 35
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3883
SELECT DISTINCT SUM( ALL + col1 ) AS col0 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-3883
SELECT DISTINCT SUM ( ALL + col1 ) AS col0 FROM tab1 AS cor0
----
66

query III rowsort
SELECT * FROM tab0 cor0 WHERE col2 < NULL
----

query I rowsort
SELECT - - 82 AS col2 FROM tab1 WHERE NULL BETWEEN + col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3886
SELECT DISTINCT - MIN( + col2 ) + + 38 AS col2 FROM tab2
----
15

skipif mysql # not compatible
query I rowsort label-3886
SELECT DISTINCT - MIN ( + col2 ) + + 38 AS col2 FROM tab2
----
15

query II rowsort
SELECT 61 * 32, col2 + + col2 AS col1 FROM tab0
----
1952
198
1952
20
1952
94

query I rowsort
SELECT DISTINCT col1 + + 48 - - col1 * - col0 AS col1 FROM tab1
----
-372
-4182
-652

onlyif mysql # aggregate syntax: 
query I rowsort label-3889
SELECT ALL + MAX( ALL 98 ) col2 FROM tab0
----
98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3889
SELECT ALL + MAX ( ALL 98 ) col2 FROM tab0
----
98

query I rowsort
SELECT 10 + - 17 AS col1 FROM tab1
----
-7
-7
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-3891
SELECT ALL + 89 * SUM( - + col2 ) + + COUNT( * ) FROM tab0
----
-13881

skipif mysql # not compatible
query I rowsort label-3891
SELECT ALL + 89 * SUM ( - + col2 ) + + COUNT ( * ) FROM tab0
----
-13881

query I rowsort
SELECT + 77 * - + 80 + + + 78 FROM tab1 AS cor0
----
-6082
-6082
-6082

query I rowsort
SELECT ALL - col2 + col1 + + col2 AS col0 FROM tab2 AS cor0
----
51
67
77

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col1 + - - 96 AND + 9
----

query I rowsort
SELECT + 14 - - 37 AS col1 FROM tab2
----
51
51
51

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NOT col2 * + col2 * - + col0 + + 37 / + ( + 95 ) * + col1 <> ( - 89 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3897
SELECT ALL MIN( - 40 ) FROM tab2 AS cor0 WHERE NULL NOT BETWEEN - col0 AND 22
----
NULL

skipif mysql # not compatible
query I rowsort label-3897
SELECT ALL MIN ( - 40 ) FROM tab2 AS cor0 WHERE NULL NOT BETWEEN - col0 AND 22
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3898
SELECT DISTINCT - + col1 * col2 DIV 44 FROM tab0 AS cor0
----
-2
-4
-86

skipif mysql # not compatible
query I rowsort label-3898
SELECT DISTINCT - + col1 * col2 / 44 FROM tab0 AS cor0
----
-2
-4
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-3899
SELECT ALL - col2 DIV + 50 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3899
SELECT ALL - col2 / + 50 FROM tab0 AS cor0
----
-1
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3900
SELECT DISTINCT - 61 DIV - col1 + - 15 AS col2 FROM tab2 AS cor0
----
-14
-15

skipif mysql # not compatible
query I rowsort label-3900
SELECT DISTINCT - 61 / - col1 + - 15 AS col2 FROM tab2 AS cor0
----
-14
-15

query I rowsort
SELECT + 4 * - col2 AS col0 FROM tab1 AS cor0
----
-236
-272
-384

onlyif mysql # aggregate syntax: 
query II rowsort label-3902
SELECT 52 * + SUM( ALL 65 ) - - - 10 AS col2, - SUM( col0 ) FROM tab2 AS cor0
----
10130
-185

skipif mysql # not compatible
query II rowsort label-3902
SELECT 52 * + SUM ( ALL 65 ) - - - 10 AS col2, - SUM ( col0 ) FROM tab2 AS cor0
----
10130
-185

query I rowsort
SELECT DISTINCT - ( 44 ) FROM tab2
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-3904
SELECT DISTINCT - COUNT( + 77 ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-3904
SELECT DISTINCT - COUNT ( + 77 ) AS col0 FROM tab1
----
-3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL = ( - 83 - - col2 + - - col0 + 89 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3906
SELECT - ( + ( COUNT( ALL - - 63 ) ) ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-3906
SELECT - ( + ( COUNT ( ALL - - 63 ) ) ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3907
SELECT - - 51 - + - 12 FROM tab0 AS cor0 WHERE - 92 + CAST( NULL AS SIGNED ) < - col0 - col2
----

skipif mysql # not compatible
query I rowsort label-3907
SELECT - - 51 - + - 12 FROM tab0 AS cor0 WHERE - 92 + CAST ( NULL AS INTEGER ) < - col0 - col2
----

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab0 AS cor0 WHERE col1 * col1 < - + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3909
SELECT 97 + - - SUM( - col0 ) * + 84 AS col0 FROM tab2 AS cor0
----
-15443

skipif mysql # not compatible
query I rowsort label-3909
SELECT 97 + - - SUM ( - col0 ) * + 84 AS col0 FROM tab2 AS cor0
----
-15443

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * - 98 + - col2 col2 FROM tab2 cor0
----
-4531
-6312
-7408

query I rowsort
SELECT ALL - + col1 / col0 AS col2 FROM tab2 cor0 WHERE NOT col2 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3912
SELECT COUNT( * ) + + ( + 43 ) FROM tab0 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-3912
SELECT COUNT ( * ) + + ( + 43 ) FROM tab0 AS cor0
----
46

query I rowsort
SELECT DISTINCT - col2 + + 66 FROM tab2 AS cor0
----
26
43
8

query III rowsort
SELECT * FROM tab1 cor0 WHERE 8 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3915
SELECT col0 * + + col1 * - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3915
SELECT col0 * + + col1 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 * - - 48 FROM tab1
----
2256
240
672

query I rowsort
SELECT ALL + col0 + - 10 AS col0 FROM tab1
----
41
75
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3918
SELECT + COUNT( * ) - - - MAX( - 95 ) FROM tab2 WHERE ( NULL IS NULL )
----
98

skipif mysql # not compatible
query I rowsort label-3918
SELECT + COUNT ( * ) - - - MAX ( - 95 ) FROM tab2 WHERE ( NULL IS NULL )
----
98

query I rowsort
SELECT + 92 * + + col1 FROM tab2
----
4692
6164
7084

onlyif mysql # aggregate syntax: 
query I rowsort label-3920
SELECT - 41 - - COUNT( * ) FROM tab0 AS cor0
----
-38

skipif mysql # not compatible
query I rowsort label-3920
SELECT - 41 - - COUNT ( * ) FROM tab0 AS cor0
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3921
SELECT + CAST( - COUNT( * ) AS SIGNED ) + CAST( NULL AS DECIMAL ) * - 70 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3921
SELECT + CAST ( - COUNT ( * ) AS INTEGER ) + CAST ( NULL AS REAL ) * - 70 FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT DISTINCT col1 AS col1, 76 * + col1 + + col0 AS col1 FROM tab0 cor0 WHERE NULL BETWEEN NULL AND + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3923
SELECT ALL - 52 * + col1 + - CAST( - + ( + col2 ) AS SIGNED ) FROM tab0 AS cor0
----
-1082
-4165
47

skipif mysql # not compatible
query I rowsort label-3923
SELECT ALL - 52 * + col1 + - CAST ( - + ( + col2 ) AS INTEGER ) FROM tab0 AS cor0
----
-1082
-4165
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 col1 FROM tab0 AS cor0 WHERE 69 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3925
SELECT DISTINCT + + 54 * - col1 DIV col1 FROM tab2 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-3925
SELECT DISTINCT + + 54 * - col1 / col1 FROM tab2 AS cor0
----
-54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3926
SELECT + 83 * + - MAX( + ( 6 ) ) * - - COUNT( * ) DIV COUNT( ALL - 19 ) FROM tab2 AS cor0
----
-498

skipif mysql # not compatible
query I rowsort label-3926
SELECT + 83 * + - MAX ( + ( 6 ) ) * - - COUNT ( * ) / COUNT ( ALL - 19 ) FROM tab2 AS cor0
----
-498

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NOT ( NOT + 72 IS NOT NULL ) )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND - ( - col2 )
----

query II rowsort
SELECT DISTINCT 88 * + col2 AS col1, col1 AS col1 FROM tab2 AS cor0
----
2024
51
3520
77
5104
67

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col0 IN ( - col2 + - col2, col1 / - 68 * ( - 99 ) )
----

query I rowsort
SELECT ALL - col0 / + col1 * col1 FROM tab0 AS cor0 WHERE NOT 13 = NULL
----

query I rowsort
SELECT DISTINCT 31 FROM tab2 WHERE NOT col2 IS NULL
----
31

query I rowsort
SELECT DISTINCT 44 * + col0 FROM tab2
----
2024
2816
3300

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col2 + - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3935
SELECT DISTINCT + COUNT( * ) DIV - CAST( - AVG ( DISTINCT + col0 ) AS SIGNED ) * - COUNT( * ) * + ( + - 92 ) + + + COUNT( * ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3935
SELECT DISTINCT + COUNT ( * ) / - CAST ( - AVG ( DISTINCT + col0 ) AS INTEGER ) * - COUNT ( * ) * + ( + - 92 ) + + + COUNT ( * ) AS col1 FROM tab1
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 74 + col1 col1 FROM tab2 AS cor0
----
-23
-7
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3937
SELECT MAX( DISTINCT + + 75 ) DIV + 51 AS col2 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-3937
SELECT MAX ( DISTINCT + + 75 ) / + 51 AS col2 FROM tab0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3938
SELECT - 83 DIV + 30 FROM tab1 AS cor0
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-3938
SELECT - 83 / + 30 FROM tab1 AS cor0
----
-2
-2
-2

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3939
SELECT ALL * FROM tab0 AS cor0 WHERE + col0 <> + - col0 + - + col2 * - - col1 + CAST( col0 AS SIGNED )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3939
SELECT ALL * FROM tab0 AS cor0 WHERE + col0 <> + - col0 + - + col2 * - - col1 + CAST ( col0 AS INTEGER )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + + 40 * + + col2 + - - col0 FROM tab2 cor0
----
1664
2395
966

query I rowsort
SELECT ALL + + col1 + col1 * - col1 AS col0 FROM tab2 cor0
----
-2550
-4422
-5852

onlyif mysql # DIV for integer division: 
query I rowsort label-3942
SELECT ALL + col1 DIV + + col2 + - col1 AS col0 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-3942
SELECT ALL + col1 / + + col2 + - col1 AS col0 FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3943
SELECT MAX( - col2 ) + + + 54 * + 14 FROM tab1
----
697

skipif mysql # not compatible
query I rowsort label-3943
SELECT MAX ( - col2 ) + + + 54 * + 14 FROM tab1
----
697

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3944
SELECT COUNT( * ) / + 24 * - CAST( NULL AS SIGNED ) + + MAX( DISTINCT col2 ) * - COUNT( * ) * + COUNT( ALL + col0 ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3944
SELECT COUNT ( * ) / + 24 * - CAST ( NULL AS INTEGER ) + + MAX ( DISTINCT col2 ) * - COUNT ( * ) * + COUNT ( ALL + col0 ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT ALL + 72 - col2 FROM tab2
----
14
32
49

query I rowsort
SELECT + 2 * + + 20 + + col0 AS col0 FROM tab2
----
104
115
86

query I rowsort
SELECT DISTINCT + col2 - + 77 FROM tab1
----
-18
-9
19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 49 + - col1 col2 FROM tab1
----
-54
-63
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3949
SELECT DISTINCT COUNT( * ) * 72 DIV COUNT( - ( + + 55 ) ) FROM tab1
----
72

skipif mysql # not compatible
query I rowsort label-3949
SELECT DISTINCT COUNT ( * ) * 72 / COUNT ( - ( + + 55 ) ) FROM tab1
----
72

query I rowsort
SELECT DISTINCT + 29 - + 87 AS col0 FROM tab0 cor0
----
-58

query I rowsort
SELECT ALL - - col0 * + 99 * col1 * col0 FROM tab0 AS cor0
----
15735951
1804275
931491

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3952
SELECT ( + col1 ) * - CAST( 28 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-1428
-1876
-2156

skipif mysql # not compatible
query I rowsort label-3952
SELECT ( + col1 ) * - CAST ( 28 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-1428
-1876
-2156

onlyif mysql # DIV for integer division: 
query I rowsort label-3953
SELECT + 25 DIV + col2 FROM tab0 AS cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-3953
SELECT + 25 / + col2 FROM tab0 AS cor0
----
0
0
2

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 - col1 < - + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query II rowsort label-3955
SELECT DISTINCT - col2 AS col0, - col0 DIV - col0 FROM tab0 cor0
----
-10
1
-47
1
-99
1

skipif mysql # not compatible
query II rowsort label-3955
SELECT DISTINCT - col2 AS col0, - col0 / - col0 FROM tab0 cor0
----
-10
1
-47
1
-99
1

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 40 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - - col1 * - ( col0 ) + - col1 + col0 FROM tab1 AS cor0
----
-345
-4233
-677

onlyif mysql # aggregate syntax: 
query I rowsort label-3958
SELECT ALL + MAX( col1 ) FROM tab2 cor0
----
77

skipif mysql # not compatible
query I rowsort label-3958
SELECT ALL + MAX ( col1 ) FROM tab2 cor0
----
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 11 col2 FROM tab1 AS cor0
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-3960
SELECT - + col0 DIV + - ( col0 ) AS col1 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3960
SELECT - + col0 / + - ( col0 ) AS col1 FROM tab1 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3961
SELECT COUNT( DISTINCT - - 64 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-3961
SELECT COUNT ( DISTINCT - - 64 ) FROM tab0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3962
SELECT 24 * + - ( + SUM( DISTINCT col1 ) ) * - + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3962
SELECT 24 * + - ( + SUM ( DISTINCT col1 ) ) * - + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3963
SELECT - 86 DIV + SUM( + ( - - 26 ) ) AS col0 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-3963
SELECT - 86 / + SUM ( + ( - - 26 ) ) AS col0 FROM tab2
----
-1

query I rowsort
SELECT - - 68 + col1 AS col0 FROM tab1 WHERE NOT - - col0 >= 91
----
73
82

onlyif mysql # DIV for integer division: 
query I rowsort label-3965
SELECT ALL col1 DIV - - col2 AS col1 FROM tab0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-3965
SELECT ALL col1 / - - col2 AS col1 FROM tab0
----
0
1
2

onlyif mysql # aggregate syntax: 
query II rowsort label-3966
SELECT 99, MAX( + 90 ) AS col2 FROM tab2 AS cor0 WHERE NOT col2 IN ( + - 77, col0 )
----
99
90

skipif mysql # not compatible
query II rowsort label-3966
SELECT 99, MAX ( + 90 ) AS col2 FROM tab2 AS cor0 WHERE NOT col2 IN ( + - 77, col0 )
----
99
90

query I rowsort
SELECT ALL + 34 * - col2 * col1 + + - 90 AS col0 FROM tab0 AS cor0
----
-129528
-3456
-7230

query I rowsort
SELECT col0 * + + col1 * + + col1 FROM tab2
----
119646
336675
379456

query I rowsort
SELECT col0 * - - 22 AS col1 FROM tab0
----
1914
2134
330

query I rowsort
SELECT + col2 * + 53 + ( col2 ) FROM tab2 AS cor0
----
1242
2160
3132

query II rowsort
SELECT DISTINCT col2 AS col1, col0 AS col1 FROM tab2 AS cor0
----
23
46
40
64
58
75

query I rowsort
SELECT - col2 * - col2 + 86 + + col0 AS col2 FROM tab2 AS cor0
----
1750
3525
661

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3973
SELECT * FROM tab1 cor0 WHERE ( ( NOT NULL BETWEEN col1 AND CAST( + + 37 AS SIGNED ) + 66 * col0 ) )
----

skipif mysql # not compatible
query III rowsort label-3973
SELECT * FROM tab1 cor0 WHERE ( ( NOT NULL BETWEEN col1 AND CAST ( + + 37 AS INTEGER ) + 66 * col0 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3974
SELECT ALL - 93 + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-3974
SELECT ALL - 93 + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-90

query I rowsort
SELECT DISTINCT col1 - + col1 * + - col1 * + col2 AS col0 FROM tab2
----
237237
260429
59874

query III rowsort
SELECT ALL * FROM tab1 WHERE col2 NOT IN ( + + 89 + col1, 40 + + 59, - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3977
SELECT ALL - COUNT( * ) - + 59 AS col0 FROM tab1
----
-62

skipif mysql # not compatible
query I rowsort label-3977
SELECT ALL - COUNT ( * ) - + 59 AS col0 FROM tab1
----
-62

query II rowsort
SELECT ALL 47 - 50, col2 AS col1 FROM tab1
----
-3
59
-3
68
-3
96

query II rowsort
SELECT col2 - - col1 AS col1, + col2 FROM tab2
----
117
40
125
58
74
23

query I rowsort
SELECT DISTINCT 32 - 54 * - col1 FROM tab0
----
1166
4406
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3981
SELECT CAST( NULL AS SIGNED ) - + + SUM( DISTINCT col1 ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3981
SELECT CAST ( NULL AS INTEGER ) - + + SUM ( DISTINCT col1 ) AS col0 FROM tab0
----
NULL

query II rowsort
SELECT + col0 * - 88 AS col0, col2 FROM tab2 cor0
----
-4048
23
-5632
40
-6600
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3983
SELECT ALL + + SUM( - - 40 ) col2 FROM tab2 AS cor0
----
120

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3983
SELECT ALL + + SUM ( - - 40 ) col2 FROM tab2 AS cor0
----
120

onlyif mysql # DIV for integer division: 
query I rowsort label-3984
SELECT 94 DIV + col0 FROM tab2 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-3984
SELECT 94 / + col0 FROM tab2 AS cor0
----
1
1
2

onlyif mysql # DIV for integer division: 
query I rowsort label-3985
SELECT + col2 DIV + + col2 AS col2 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3985
SELECT + col2 / + + col2 AS col2 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT ALL - ( + 36 ) FROM tab1
----
-36
-36
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-3987
SELECT DISTINCT - MAX( DISTINCT col2 ) FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-3987
SELECT DISTINCT - MAX ( DISTINCT col2 ) FROM tab2 AS cor0
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3988
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL <> + 61 / CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) / + col0 + - col2
----

skipif mysql # not compatible
query III rowsort label-3988
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL <> + 61 / CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) / + col0 + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3989
SELECT ALL - COUNT( + - col1 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3989
SELECT ALL - COUNT ( + - col1 ) FROM tab1 AS cor0
----
-3

query II rowsort
SELECT ALL + - ( + col2 ) * - 20, col2 AS col1 FROM tab0 AS cor0
----
1980
99
200
10
940
47

query I rowsort
SELECT ALL - col0 * + col2 + ( + col2 ) FROM tab1 AS cor0
----
-4800
-4956
-6120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3992
SELECT ALL col2 FROM tab2 WHERE NOT + - CAST( 21 AS SIGNED ) / + - 46 * + col0 NOT BETWEEN NULL AND - col2
----

skipif mysql # not compatible
query I rowsort label-3992
SELECT ALL col2 FROM tab2 WHERE NOT + - CAST ( 21 AS INTEGER ) / + - 46 * + col0 NOT BETWEEN NULL AND - col2
----

query I rowsort
SELECT ALL ( - col2 ) * col0 AS col0 FROM tab1
----
-4896
-5015
-6188

query I rowsort
SELECT col0 * + + 71 AS col0 FROM tab0
----
1065
6177
6887

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3995
SELECT DISTINCT 38 * CAST( + - ( + COUNT( * ) ) AS SIGNED ) FROM tab0
----
-114

skipif mysql # not compatible
query I rowsort label-3995
SELECT DISTINCT 38 * CAST ( + - ( + COUNT ( * ) ) AS INTEGER ) FROM tab0
----
-114

query II rowsort
SELECT 93 * 2, col2 FROM tab0
----
186
10
186
47
186
99

onlyif mysql # DIV for integer division: 
query I rowsort label-3997
SELECT col1 DIV + ( - col2 ) FROM tab2
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-3997
SELECT col1 / + ( - col2 ) FROM tab2
----
-1
-1
-2

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3998
SELECT - CAST( - - CAST( NULL AS SIGNED ) AS DECIMAL ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3998
SELECT - CAST ( - - CAST ( NULL AS INTEGER ) AS REAL ) AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - 59 * col0 FROM tab1 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT - col0 AS col1, - col1 * - 59 AS col2 FROM tab1
----
-51
826
-85
295
-91
2773

onlyif mysql # aggregate syntax: 
query I rowsort label-4001
SELECT DISTINCT + - MAX( ALL + 9 ) FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4001
SELECT DISTINCT + - MAX ( ALL + 9 ) FROM tab1 AS cor0
----
-9

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) <> - - col2 * - 64
----

query I rowsort
SELECT DISTINCT + + col2 FROM tab1 AS cor0 WHERE + col1 BETWEEN col0 + - col1 * + col0 AND - - col1
----
59
68
96

onlyif mysql # DIV for integer division: 
query I rowsort label-4004
SELECT ALL 89 DIV - 37 FROM tab2 cor0
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-4004
SELECT ALL 89 / - 37 FROM tab2 cor0
----
-2
-2
-2

query II rowsort
SELECT - 56 + - 94, col2 FROM tab2 cor0
----
-150
23
-150
40
-150
58

query I rowsort
SELECT + 43 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4007
SELECT COUNT( DISTINCT - col0 ) col0 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4007
SELECT COUNT ( DISTINCT - col0 ) col0 FROM tab1
----
3

query I rowsort
SELECT + ( 75 ) AS col2 FROM tab2
----
75
75
75

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT + ( + 76 ) IS NOT NULL
----

query II rowsort
SELECT ALL + 66 * - 68 - - 56 AS col2, 49 AS col1 FROM tab0
----
-4432
49
-4432
49
-4432
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4011
SELECT ALL - + COUNT( DISTINCT + + CAST( NULL AS SIGNED ) ) FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-4011
SELECT ALL - + COUNT ( DISTINCT + + CAST ( NULL AS INTEGER ) ) FROM tab0 cor0
----
0

query I rowsort
SELECT ALL + ( + col1 ) * + - col2 AS col0 FROM tab2 AS cor0
----
-1173
-3080
-3886

onlyif mysql # aggregate syntax: 
query I rowsort label-4013
SELECT ALL - COUNT( * ) + - 33 AS col2 FROM tab1 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-4013
SELECT ALL - COUNT ( * ) + - 33 AS col2 FROM tab1 AS cor0
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4014
SELECT DISTINCT CAST( NULL AS SIGNED ) * - col0 + + 13 / - 97 * col1 + ( - col0 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4014
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - col0 + + 13 / - 97 * col1 + ( - col0 ) FROM tab0
----
NULL

query I rowsort
SELECT - 8 AS col1 FROM tab2, tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 + + 44 FROM tab0
----
125
45
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 AS col0, + col0 col1 FROM tab2
----
51
46
67
75
77
64

onlyif mysql # aggregate syntax: 
query I rowsort label-4018
SELECT ALL + ( + MAX( col1 ) ) FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-4018
SELECT ALL + ( + MAX ( col1 ) ) FROM tab1
----
47

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 17 <> + col1 / - col2
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 <> + col1
----

query I rowsort
SELECT 51 - - 50 AS col0 FROM tab2
----
101
101
101

onlyif mysql # aggregate syntax: 
query I rowsort label-4022
SELECT + MAX( DISTINCT - col1 ) col2 FROM tab2
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4022
SELECT + MAX ( DISTINCT - col1 ) col2 FROM tab2
----
-51

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab1 WHERE + 82 * 12 IS NULL
----

query I rowsort
SELECT DISTINCT - 5 FROM tab0 WHERE ( 85 ) * col2 >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col0 / - col1 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL <> 54
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4027
SELECT SUM( - 15 ) FROM tab1
----
-45

skipif mysql # not compatible
query I rowsort label-4027
SELECT SUM ( - 15 ) FROM tab1
----
-45

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) NOT IN ( - col0 )
----

query I rowsort
SELECT + col0 AS col2 FROM tab1 WHERE NOT ( NULL ) BETWEEN col1 AND 68
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4030
SELECT ALL CAST( NULL AS SIGNED ) - col0 AS col0 FROM tab0 WHERE NOT 86 <= NULL
----

skipif mysql # not compatible
query I rowsort label-4030
SELECT ALL CAST ( NULL AS INTEGER ) - col0 AS col0 FROM tab0 WHERE NOT 86 <= NULL
----

query I rowsort
SELECT col1 + 78 AS col0 FROM tab2
----
129
145
155

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 48 col0 FROM tab1
----
48

query I rowsort
SELECT + 85 + - 25 AS col2 FROM tab2
----
60
60
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4034
SELECT CAST( - col1 AS SIGNED ) * 93 AS col2 FROM tab1
----
-1302
-4371
-465

skipif mysql # not compatible
query I rowsort label-4034
SELECT CAST ( - col1 AS INTEGER ) * 93 AS col2 FROM tab1
----
-1302
-4371
-465

query I rowsort
SELECT ALL col1 * - col1 - 24 FROM tab1
----
-220
-2233
-49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4036
SELECT * FROM tab2 WHERE + 30 * - ( CAST( NULL AS SIGNED ) ) + col1 / - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4036
SELECT * FROM tab2 WHERE + 30 * - ( CAST ( NULL AS INTEGER ) ) + col1 / - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 99 + 57 FROM tab1 WHERE NOT col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE ( - col0 * + col1 + + col2 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col1 FROM tab2 WHERE - col0 * col1 IS NULL
----

query I rowsort
SELECT + 20 * 88 FROM tab2
----
1760
1760
1760

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL <> ( - col2 * col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4042
SELECT COUNT( * ) FROM tab2 WHERE NOT 98 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4042
SELECT COUNT ( * ) FROM tab2 WHERE NOT 98 IS NOT NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN ( col2 / 98 + 25 ) AND ( NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE - col0 + col2 IS NULL
----

query I rowsort
SELECT - col0 FROM tab0 WHERE NOT ( - 97 * col0 ) IS NULL
----
-15
-87
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-4046
SELECT 72 DIV + col0 + - 59 * col2 col0 FROM tab2
----
-1356
-2359
-3422

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4046
SELECT 72 / + col0 + - 59 * col2 col0 FROM tab2
----
-1356
-2359
-3422

onlyif mysql # aggregate syntax: 
query I rowsort label-4047
SELECT + COUNT( * ) * + 58 FROM tab2 AS cor0
----
174

skipif mysql # not compatible
query I rowsort label-4047
SELECT + COUNT ( * ) * + 58 FROM tab2 AS cor0
----
174

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 66 + col2 col2 FROM tab0 AS cor0
----
113
165
76

query I rowsort
SELECT col1 AS col0 FROM tab1 AS cor0 WHERE NULL IN ( 98 * 34 + - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4050
SELECT 38 FROM tab0 AS cor0 WHERE ( + CAST( NULL AS SIGNED ) * col0 ) IN ( 60 )
----

skipif mysql # not compatible
query I rowsort label-4050
SELECT 38 FROM tab0 AS cor0 WHERE ( + CAST ( NULL AS INTEGER ) * col0 ) IN ( 60 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - col1 + + 1 FROM tab2 AS cor0
----
-50
-66
-76

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col2 - 88 BETWEEN + col1 AND ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4054
SELECT DISTINCT 19 DIV - 4 - - 71 FROM tab0 AS cor0
----
67

skipif mysql # not compatible
query I rowsort label-4054
SELECT DISTINCT 19 / - 4 - - 71 FROM tab0 AS cor0
----
67

query I rowsort
SELECT + col0 * 69 + + col1 AS col2 FROM tab1
----
3533
5870
6326

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4056
SELECT DISTINCT - COUNT( + 62 ) DIV ( + ( - ( 19 ) ) ) FROM ( tab0 cor0 CROSS JOIN tab1 )
----
0

skipif mysql # not compatible
query I rowsort label-4056
SELECT DISTINCT - COUNT ( + 62 ) / ( + ( - ( 19 ) ) ) FROM ( tab0 cor0 CROSS JOIN tab1 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4057
SELECT DISTINCT - 79 - + col0 DIV - col1 FROM tab1
----
-62
-76
-78

skipif mysql # not compatible
query I rowsort label-4057
SELECT DISTINCT - 79 - + col0 / - col1 FROM tab1
----
-62
-76
-78

query I rowsort
SELECT + col2 * + col2 + col0 AS col1 FROM tab2 AS cor0
----
1664
3439
575

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - 16 ) - - 22 > - 45 * col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4060
SELECT ALL + 44 * COUNT( * ) + 73 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
73

skipif mysql # not compatible
query I rowsort label-4060
SELECT ALL + 44 * COUNT ( * ) + 73 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-4061
SELECT DISTINCT - + COUNT( DISTINCT + col2 ) AS col1 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4061
SELECT DISTINCT - + COUNT ( DISTINCT + col2 ) AS col1 FROM tab2 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4062
SELECT MIN( 97 ) AS col0 FROM tab0 cor0
----
97

skipif mysql # not compatible
query I rowsort label-4062
SELECT MIN ( 97 ) AS col0 FROM tab0 cor0
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-4063
SELECT col0 DIV + 65 FROM tab2 cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4063
SELECT col0 / + 65 FROM tab2 cor0
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 93 * 38 col2 FROM tab1 AS cor0
----
3534

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN col2 * col0 AND - col2 * col2
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 NOT BETWEEN ( col1 + col2 ) AND ( ( - 11 ) * - 86 + 63 * + 51 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + + 51 + 73 AS col0 FROM tab0 AS cor0
----
124

query I rowsort
SELECT DISTINCT - + 52 * + col0 AS col1 FROM tab0 AS cor0
----
-4524
-5044
-780

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4069
SELECT * FROM tab2 AS cor0 WHERE + CAST( NULL AS SIGNED ) * - col2 IN ( - 73 )
----

skipif mysql # not compatible
query III rowsort label-4069
SELECT * FROM tab2 AS cor0 WHERE + CAST ( NULL AS INTEGER ) * - col2 IN ( - 73 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4070
SELECT ALL + col2 + + col0 DIV col0 FROM tab2
----
24
41
59

skipif mysql # not compatible
query I rowsort label-4070
SELECT ALL + col2 + + col0 / col0 FROM tab2
----
24
41
59

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 * - 16 + - 10 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4072
SELECT ALL + CAST( NULL AS SIGNED ) AS col1 FROM tab0 WHERE ( NULL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4072
SELECT ALL + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 WHERE ( NULL ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + col2 col2 FROM tab0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4074
SELECT COUNT( * ) * + 41 AS col0 FROM tab1
----
123

skipif mysql # not compatible
query I rowsort label-4074
SELECT COUNT ( * ) * + 41 AS col0 FROM tab1
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-4075
SELECT COUNT( - 33 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4075
SELECT COUNT ( - 33 ) AS col0 FROM tab2
----
3

query III rowsort
SELECT ALL * FROM tab1 WHERE ( col2 * col1 + 28 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col2 NOT IN ( - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4078
SELECT - 16 FROM tab2 AS cor0 WHERE NOT ( + col1 - 22 ) IN ( - CAST( - col0 AS SIGNED ) )
----
-16
-16
-16

skipif mysql # not compatible
query I rowsort label-4078
SELECT - 16 FROM tab2 AS cor0 WHERE NOT ( + col1 - 22 ) IN ( - CAST ( - col0 AS INTEGER ) )
----
-16
-16
-16

query I rowsort
SELECT - col2 * - 58 FROM tab0 WHERE NOT NULL IS NOT NULL
----
2726
5742
580

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 + + - 4 BETWEEN ( + col2 ) AND ( NULL )
----
15
81
47
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4081
SELECT DISTINCT 83 + - 38 + - - COUNT( * ) - - 71 * COUNT( * ) FROM tab0 AS cor0
----
261

skipif mysql # not compatible
query I rowsort label-4081
SELECT DISTINCT 83 + - 38 + - - COUNT ( * ) - - 71 * COUNT ( * ) FROM tab0 AS cor0
----
261

query I rowsort
SELECT ALL - ( col2 ) + - col0 + col0 * + 82 FROM tab2 AS cor0
----
3703
5144
6017

query I rowsort
SELECT - + col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT - 96 * col1 FROM tab1 AS cor0 WHERE NOT col0 * col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 - - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 72 + col2 + + ( - + 9 ) FROM tab1
----
122
131
159

query III rowsort
SELECT ALL * FROM tab0 WHERE - - col0 >= NULL
----

query I rowsort
SELECT 93 + - 3 - - + col1 * + col1 + - col2 FROM tab2
----
2668
4521
5979

query I rowsort
SELECT + ( + col1 ) FROM tab2 WHERE NULL <= - col0 / - col2 - 97 * col2
----

query I rowsort
SELECT col1 * + 35 + - - ( - ( col2 ) ) FROM tab1
----
116
1577
394

query I rowsort
SELECT + 5 * col1 + - col2 AS col0 FROM tab1 AS cor0
----
-26
-34
167

query I rowsort
SELECT ALL - col1 * - col0 + + + col2 + 88 FROM tab0 AS cor0
----
1350
1925
284

query I rowsort
SELECT DISTINCT + ( + col0 ) * col0 - + - 70 + - + col2 AS col0 FROM tab1 cor0
----
2575
7236
8283

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4094
SELECT COUNT( * ) - CAST( - COUNT( * ) AS SIGNED ) + + 43 AS col0 FROM tab0 AS cor0
----
49

skipif mysql # not compatible
query I rowsort label-4094
SELECT COUNT ( * ) - CAST ( - COUNT ( * ) AS INTEGER ) + + 43 AS col0 FROM tab0 AS cor0
----
49

query I rowsort
SELECT ALL 81 * + col2 FROM tab0 AS cor0
----
3807
8019
810

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab2 AS cor0 WHERE NOT - col1 NOT IN ( - 2 * 51 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4097
SELECT DISTINCT + 38, COUNT( * ) AS col2 FROM tab0 AS cor0
----
38
3

skipif mysql # not compatible
query II rowsort label-4097
SELECT DISTINCT + 38, COUNT ( * ) AS col2 FROM tab0 AS cor0
----
38
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4098
SELECT + 71 DIV - COUNT( * ) AS col0 FROM tab0 cor0
----
-23

skipif mysql # not compatible
query I rowsort label-4098
SELECT + 71 / - COUNT ( * ) AS col0 FROM tab0 cor0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-4099
SELECT MIN( ALL + - 55 ) AS col1 FROM tab0
----
-55

skipif mysql # not compatible
query I rowsort label-4099
SELECT MIN ( ALL + - 55 ) AS col1 FROM tab0
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-4100
SELECT ALL - COUNT( - col2 ) col1 FROM tab2
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4100
SELECT ALL - COUNT ( - col2 ) col1 FROM tab2
----
-3

query I rowsort
SELECT 84 * - 21 FROM tab2
----
-1764
-1764
-1764

query I rowsort
SELECT DISTINCT + col0 * col1 * - - 9 AS col1 FROM tab1
----
3825
38493
6426

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 49 * + 26 col1, + col0 FROM tab0
----
1274
15
1274
87
1274
97

query I rowsort
SELECT DISTINCT col2 * - col2 * 66 AS col2 FROM tab0
----
-145794
-646866
-6600

query I rowsort
SELECT ALL + col0 * - col0 * col2 FROM tab0
----
-10575
-75690
-931491

query II rowsort
SELECT col0, + 21 FROM tab0
----
15
21
87
21
97
21

query II rowsort
SELECT 89 AS col1, + col1 + + col2 AS col2 FROM tab2
----
89
117
89
125
89
74

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4108
SELECT * FROM tab2 AS cor0 WHERE NOT - 48 * col2 BETWEEN + col1 AND + CAST( NULL AS SIGNED )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4108
SELECT * FROM tab2 AS cor0 WHERE NOT - 48 * col2 BETWEEN + col1 AND + CAST ( NULL AS INTEGER )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - 71 col2 FROM tab0 cor0
----
-1491
-5751
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4110
SELECT ALL CAST( MIN( DISTINCT 63 ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-4110
SELECT ALL CAST ( MIN ( DISTINCT 63 ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
63

query I rowsort
SELECT col2 * - - 5 AS col1 FROM tab2 AS cor0
----
115
200
290

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + 1 col1 FROM tab0 AS cor0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4113
SELECT MIN( ALL + 32 ) FROM tab0 AS cor0 WHERE NOT 59 * + col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4113
SELECT MIN ( ALL + 32 ) FROM tab0 AS cor0 WHERE NOT 59 * + col0 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4114
SELECT * FROM tab2 WHERE NOT - col2 + - CAST( - col1 AS SIGNED ) <= + - ( + - col2 ) * col1
----

skipif mysql # not compatible
query III rowsort label-4114
SELECT * FROM tab2 WHERE NOT - col2 + - CAST ( - col1 AS INTEGER ) <= + - ( + - col2 ) * col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4115
SELECT DISTINCT - col0 DIV - - col1 FROM tab0
----
-4
-97
0

skipif mysql # not compatible
query I rowsort label-4115
SELECT DISTINCT - col0 / - - col1 FROM tab0
----
-4
-97
0

query I rowsort
SELECT + col0 * 88 FROM tab2 WHERE NOT NULL NOT BETWEEN - 71 + + col0 AND + col0 + + 34
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4117
SELECT ALL - - SUM( 32 ) FROM tab0 AS cor0 WHERE NOT - 21 * - col1 NOT BETWEEN ( NULL ) AND - ( - col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4117
SELECT ALL - - SUM ( 32 ) FROM tab0 AS cor0 WHERE NOT - 21 * - col1 NOT BETWEEN ( NULL ) AND - ( - col2 )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4118
SELECT CAST( 31 AS DECIMAL ) AS col0 FROM tab0 AS cor0 WHERE ( ( 60 + - col2 / + + 30 ) IS NULL )
----

skipif mysql # not compatible
query I rowsort label-4118
SELECT CAST ( 31 AS REAL ) AS col0 FROM tab0 AS cor0 WHERE ( ( 60 + - col2 / + + 30 ) IS NULL )
----

query I rowsort
SELECT + + col1 + 35 FROM tab1 AS cor0
----
40
49
82

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4120
SELECT - col0 * col1 FROM tab2 AS cor0 WHERE col2 * ( - col2 ) IN ( col2, - CAST( NULL AS DECIMAL ) / - + col2 )
----

skipif mysql # not compatible
query I rowsort label-4120
SELECT - col0 * col1 FROM tab2 AS cor0 WHERE col2 * ( - col2 ) IN ( col2, - CAST ( NULL AS REAL ) / - + col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( ( ( NOT ( + col0 / - col2 + - col2 * + col0 ) IN ( + col0 ) ) ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4122
SELECT + - col0 + + col0 DIV col1 FROM tab2 AS cor0
----
-46
-64
-74

skipif mysql # not compatible
query I rowsort label-4122
SELECT + - col0 + + col0 / col1 FROM tab2 AS cor0
----
-46
-64
-74

query I rowsort
SELECT + 67 + + + col2 AS col1 FROM tab0 cor0
----
114
166
77

query I rowsort
SELECT ALL - col2 + - ( 85 ) AS col0 FROM tab0 AS cor0
----
-132
-184
-95

query II rowsort
SELECT DISTINCT col1, col2 FROM tab2 WHERE NULL <> col2
----

query II rowsort
SELECT ALL 3 AS col2, + col2 AS col2 FROM tab1
----
3
59
3
68
3
96

query III rowsort
SELECT ALL * FROM tab2 WHERE 75 + col1 NOT IN ( ( - col2 ) + 2 * + - col2 / - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col2 + - 28 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4129
SELECT ALL MAX( 99 ) * + - 90 + 13 + - - 5 AS col2 FROM tab1
----
-8892

skipif mysql # not compatible
query I rowsort label-4129
SELECT ALL MAX ( 99 ) * + - 90 + 13 + - - 5 AS col2 FROM tab1
----
-8892

query II rowsort
SELECT DISTINCT 93 AS col0, - 54 FROM tab0
----
93
-54

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4131
SELECT * FROM tab0 WHERE - CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) <> ( NULL )
----

skipif mysql # not compatible
query III rowsort label-4131
SELECT * FROM tab0 WHERE - CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) <> ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col2 + - ( - col2 ) - - col0 * + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 26 + + col2 + + 97 * - col1 FROM tab1 WHERE NOT ( - + ( - + 52 ) ) NOT BETWEEN NULL AND col2
----

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN NULL AND ( - 75 )
----

query I rowsort
SELECT + col0 * - + 10 AS col0 FROM tab1
----
-510
-850
-910

query I rowsort
SELECT + ( col1 ) * - - 19 AS col0 FROM tab2 cor0
----
1273
1463
969

onlyif mysql # aggregate syntax: 
query I rowsort label-4137
SELECT + + COUNT( * ) - - - 10 AS col2 FROM tab1 AS cor0
----
-7

skipif mysql # not compatible
query I rowsort label-4137
SELECT + + COUNT ( * ) - - - 10 AS col2 FROM tab1 AS cor0
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4138
SELECT - col0 col1 FROM tab2 WHERE - CAST( - col2 AS SIGNED ) NOT IN ( + col2 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4138
SELECT - col0 col1 FROM tab2 WHERE - CAST ( - col2 AS INTEGER ) NOT IN ( + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4139
SELECT - + ( + + 48 ) AS col0, + 87 + - + CAST( NULL AS SIGNED ) + - - col2 + 97 FROM tab0 AS cor0
----
-48
NULL
-48
NULL
-48
NULL

skipif mysql # not compatible
query II rowsort label-4139
SELECT - + ( + + 48 ) AS col0, + 87 + - + CAST ( NULL AS INTEGER ) + - - col2 + 97 FROM tab0 AS cor0
----
-48
NULL
-48
NULL
-48
NULL

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT ( + col0 + - - ( ( + - col0 ) ) ) NOT BETWEEN + 50 + + col0 AND ( col1 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 / - - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4142
SELECT - MAX( ALL ( - col2 ) ) * - - 55 col1 FROM tab2 AS cor0
----
1265

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4142
SELECT - MAX ( ALL ( - col2 ) ) * - - 55 col1 FROM tab2 AS cor0
----
1265

onlyif mysql # aggregate syntax: 
query I rowsort label-4143
SELECT + 53 * + COUNT( * ) + - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT col0 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-4143
SELECT + 53 * + COUNT ( * ) + - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT col0 >= NULL
----
0

query I rowsort
SELECT + 38 * - col0 + - 67 AS col1 FROM tab0 AS cor0
----
-3373
-3753
-637

query I rowsort
SELECT DISTINCT + ( + col0 ) * - 5 FROM tab1
----
-255
-425
-455

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( - col2, + col0 * + 95 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4147
SELECT ALL + 82 - - COUNT( * ) FROM tab1 WHERE NOT ( - - 48 * - + col0 * - CAST( NULL AS SIGNED ) ) < ( 30 + + col0 )
----
82

skipif mysql # not compatible
query I rowsort label-4147
SELECT ALL + 82 - - COUNT ( * ) FROM tab1 WHERE NOT ( - - 48 * - + col0 * - CAST ( NULL AS INTEGER ) ) < ( 30 + + col0 )
----
82

query I rowsort
SELECT ( ( + col1 ) ) AS col1 FROM tab1
----
14
47
5

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + 87 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 47 * 9 FROM tab1
----
-423
-423
-423

query I rowsort
SELECT - col2 * + - col0 AS col2 FROM tab2 WHERE NOT - col1 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 4 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + col1 ) col2 FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT DISTINCT col1 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
1
21
81

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) <> + 85
----

query I rowsort
SELECT - col1 * 51 FROM tab0
----
-1071
-4131
-51

query I rowsort
SELECT col2 * col2 * + + col2 FROM tab0
----
1000
103823
970299

query II rowsort
SELECT - - col2, + col0 FROM tab0 AS cor0
----
10
87
47
15
99
97

query I rowsort
SELECT + + ( 21 ) FROM tab0 AS cor0
----
21
21
21

query II rowsort
SELECT - - col0 AS col1, ( - col0 ) AS col2 FROM tab0 AS cor0
----
15
-15
87
-87
97
-97

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) > + - col2 + 56 * + - 24
----

query I rowsort
SELECT DISTINCT - 79 + - - col0 FROM tab0
----
-64
18
8

query I rowsort
SELECT ALL + col1 + 81 * - + 92 FROM tab2
----
-7375
-7385
-7401

query I rowsort
SELECT DISTINCT 19 + + col1 FROM tab2
----
70
86
96

onlyif mysql # DIV for integer division: 
query I rowsort label-4165
SELECT ( + col0 ) DIV + col0 + + col0 FROM tab0
----
16
88
98

skipif mysql # not compatible
query I rowsort label-4165
SELECT ( + col0 ) / + col0 + + col0 FROM tab0
----
16
88
98

query II rowsort
SELECT col1 * + col1, - col1 AS col1 FROM tab1 AS cor0
----
196
-14
2209
-47
25
-5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4167
SELECT * FROM tab2 WHERE - CAST( NULL AS SIGNED ) NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-4167
SELECT * FROM tab2 WHERE - CAST ( NULL AS INTEGER ) NOT BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1, 91 col2 FROM tab1
----
14
91
47
91
5
91

query II rowsort
SELECT + 60 AS col1, - 10 AS col1 FROM tab2
----
60
-10
60
-10
60
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-4170
SELECT DISTINCT + MAX( - + col2 ) FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-4170
SELECT DISTINCT + MAX ( - + col2 ) FROM tab1 AS cor0
----
-59

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( NULL <= + col2 )
----

query I rowsort
SELECT - - col0 * + 68 AS col1 FROM tab1 AS cor0
----
3468
5780
6188

query I rowsort
SELECT DISTINCT 76 AS col2 FROM tab2 AS cor0 WHERE NOT ( ( + col0 ) NOT IN ( + col2 + - col2, - col0 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4174
SELECT + 91 * - COUNT( DISTINCT col0 ) AS col0 FROM tab0
----
-273

skipif mysql # not compatible
query I rowsort label-4174
SELECT + 91 * - COUNT ( DISTINCT col0 ) AS col0 FROM tab0
----
-273

onlyif mysql # aggregate syntax: 
query I rowsort label-4175
SELECT + COUNT( * ) * + 77 FROM tab1
----
231

skipif mysql # not compatible
query I rowsort label-4175
SELECT + COUNT ( * ) * + 77 FROM tab1
----
231

query I rowsort
SELECT ALL + 63 * + - col0 * 65 AS col2 FROM tab0
----
-356265
-397215
-61425

onlyif mysql # aggregate syntax: 
query I rowsort label-4177
SELECT DISTINCT + 19 * COUNT( * ) col2 FROM tab0
----
57

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4177
SELECT DISTINCT + 19 * COUNT ( * ) col2 FROM tab0
----
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 97 col1 FROM tab1 AS cor0
----
-97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4179
SELECT * FROM tab0 AS cor0 WHERE NOT - CAST( - - col1 AS SIGNED ) <> NULL
----

skipif mysql # not compatible
query III rowsort label-4179
SELECT * FROM tab0 AS cor0 WHERE NOT - CAST ( - - col1 AS INTEGER ) <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4180
SELECT DISTINCT col1 + + - CAST( NULL AS SIGNED ) - - - 71 * + col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4180
SELECT DISTINCT col1 + + - CAST ( NULL AS INTEGER ) - - - 71 * + col1 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-4181
SELECT ALL * FROM tab0, tab0 AS cor0 WHERE ( - CAST( NULL AS SIGNED ) ) > NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-4181
SELECT ALL * FROM tab0, tab0 AS cor0 WHERE ( - CAST ( NULL AS INTEGER ) ) > NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4182
SELECT ALL + + MAX( ALL + CAST( col0 AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-4182
SELECT ALL + + MAX ( ALL + CAST ( col0 AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
75

query I rowsort
SELECT - + col2 + + 74 FROM tab0 AS cor0
----
-25
27
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col2 ) + + + 68 + - col1 * - + 32 col2 FROM tab1 AS cor0 WHERE col2 >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4185
SELECT 22 DIV + - col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4185
SELECT 22 / + - col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col1 + + ( 48 ) + col0 AS col0 FROM tab2 AS cor0
----
35
43
56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 79 col1 FROM tab2 AS cor0
----
79
79
79

onlyif mysql # aggregate syntax: 
query I rowsort label-4188
SELECT MAX( DISTINCT - 43 ) AS col1 FROM tab1 AS cor0
----
-43

skipif mysql # not compatible
query I rowsort label-4188
SELECT MAX ( DISTINCT - 43 ) AS col1 FROM tab1 AS cor0
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-4189
SELECT ALL + COUNT( * ) + + 8 AS col0 FROM tab1
----
11

skipif mysql # not compatible
query I rowsort label-4189
SELECT ALL + COUNT ( * ) + + 8 AS col0 FROM tab1
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4190
SELECT CAST( NULL AS SIGNED ), + COUNT( * ) AS col1 FROM tab2
----
NULL
3

skipif mysql # not compatible
query II rowsort label-4190
SELECT CAST ( NULL AS INTEGER ), + COUNT ( * ) AS col1 FROM tab2
----
NULL
3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + - col0 + - - col1 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4192
SELECT ALL + CAST( NULL AS SIGNED ) AS col0 FROM tab1 WHERE + - col1 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4192
SELECT ALL + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 WHERE + - col1 IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 * + + col1 - + ( 39 ) FROM tab2
----
1134
3041
3847

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + ( + - 48 ) * - col0 BETWEEN ( - + col2 ) AND - 17
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + - col2 FROM tab0 WHERE + 91 + col0 IS NULL
----

query II rowsort
SELECT DISTINCT 0, - 83 * + col1 AS col1 FROM tab1
----
0
-1162
0
-3901
0
-415

query I rowsort
SELECT ALL - - 61 FROM tab0 AS cor0 WHERE NOT NULL = 13
----

query I rowsort
SELECT - + col1 + + + col0 AS col0 FROM tab1 cor0
----
37
44
80

query I rowsort
SELECT ALL 59 FROM tab1 AS cor0 WHERE NOT + 53 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4200
SELECT + 44 + + + col2 - col2 DIV col1 + col2 col0 FROM tab2 AS cor0
----
124
160
90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4200
SELECT + 44 + + + col2 - col2 / col1 + col2 col0 FROM tab2 AS cor0
----
124
160
90

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE 33 IS NOT NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

query I rowsort
SELECT ALL - 37 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ed4644af7729c2425ea6cc3d84c6504f

onlyif mysql # aggregate syntax: 
query I rowsort label-4203
SELECT + MIN( ALL - - ( + 94 ) ) FROM tab1 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-4203
SELECT + MIN ( ALL - - ( + 94 ) ) FROM tab1 AS cor0
----
94

query I rowsort
SELECT DISTINCT - + 95 AS col2 FROM tab2 AS cor0
----
-95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4205
SELECT DISTINCT - + 13 * col2 + + 96 + col2 + CAST( NULL AS SIGNED ) AS col2 FROM tab1 cor0 WHERE NOT + col0 + - - 89 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4205
SELECT DISTINCT - + 13 * col2 + + 96 + col2 + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 cor0 WHERE NOT + col0 + - - 89 IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4206
SELECT DISTINCT col2 + - CAST( NULL AS SIGNED ) AS col0 FROM tab2 WHERE NOT + col1 / - + col2 + col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4206
SELECT DISTINCT col2 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 WHERE NOT + col1 / - + col2 + col0 IS NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 94 * + col2 NOT IN ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4208
SELECT DISTINCT + 3 * COUNT( * ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-4208
SELECT DISTINCT + 3 * COUNT ( * ) FROM tab0
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 37 * col1 col1 FROM tab0
----
2997
37
777

query II rowsort
SELECT ALL 24 AS col1, + 43 + col0 + - col1 + + col2 * - + 40 FROM tab1
----
24
-2237
24
-2633
24
-3760

onlyif mysql # aggregate syntax: 
query II rowsort label-4211
SELECT ALL - 24, + MIN( DISTINCT col1 ) * - 56 * + 69 AS col2 FROM tab2
----
-24
-197064

skipif mysql # not compatible
query II rowsort label-4211
SELECT ALL - 24, + MIN ( DISTINCT col1 ) * - 56 * + 69 AS col2 FROM tab2
----
-24
-197064

query II rowsort
SELECT DISTINCT - col2, 4 * - col2 * - - col2 AS col2 FROM tab2 AS cor0
----
-23
-2116
-40
-6400
-58
-13456

onlyif mysql # DIV for integer division: 
query I rowsort label-4213
SELECT 23 + + 84 + + col2 DIV - 49 FROM tab2 AS cor0
----
106
107
107

skipif mysql # not compatible
query I rowsort label-4213
SELECT 23 + + 84 + + col2 / - 49 FROM tab2 AS cor0
----
106
107
107

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4214
SELECT - ( - CAST( NULL AS SIGNED ) ) + - MIN( ALL 46 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-4214
SELECT - ( - CAST ( NULL AS INTEGER ) ) + - MIN ( ALL 46 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4215
SELECT - COUNT( DISTINCT - col1 ) * - CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4215
SELECT - COUNT ( DISTINCT - col1 ) * - CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4216
SELECT 46 + + COUNT( * ) + + - 19 AS col2 FROM tab2 AS cor0 WHERE ( CAST( - + col2 AS SIGNED ) IS NULL )
----
27

skipif mysql # not compatible
query I rowsort label-4216
SELECT 46 + + COUNT ( * ) + + - 19 AS col2 FROM tab2 AS cor0 WHERE ( CAST ( - + col2 AS INTEGER ) IS NULL )
----
27

query I rowsort
SELECT ALL + - 58 * - 33 FROM tab1 cor0
----
1914
1914
1914

query I rowsort
SELECT + col0 + - col2 * + 49 FROM tab2 AS cor0
----
-1081
-1896
-2767

query I rowsort
SELECT ALL ( - col1 ) - + 85 + + + col2 * + - 0 FROM tab1
----
-132
-90
-99

query I rowsort
SELECT DISTINCT - 70 + - col2 - + col1 FROM tab2
----
-144
-187
-195

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4221
SELECT col2 + 14 - CAST( NULL AS SIGNED ) + + col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4221
SELECT col2 + 14 - CAST ( NULL AS INTEGER ) + + col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT 18 + + + 8 * col2 FROM tab0
----
394
810
98

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL <= + 29
----

query I rowsort
SELECT ALL + 96 * - col1 AS col2 FROM tab2
----
-4896
-6432
-7392

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4225
SELECT ALL + col1 * - - col2 AS col2 FROM tab2 WHERE - + ( + 34 ) * - ( + 48 ) + col1 + + + ( - - CAST( 4 AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-4225
SELECT ALL + col1 * - - col2 AS col2 FROM tab2 WHERE - + ( + 34 ) * - ( + 48 ) + col1 + + + ( - - CAST ( 4 AS INTEGER ) ) IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE - col0 NOT BETWEEN NULL AND + 65
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4227
SELECT DISTINCT - COUNT( * ) * - 63 FROM tab2 cor0
----
189

skipif mysql # not compatible
query I rowsort label-4227
SELECT DISTINCT - COUNT ( * ) * - 63 FROM tab2 cor0
----
189

onlyif mysql # aggregate syntax: 
query II rowsort label-4228
SELECT COUNT( * ) * SUM( - col2 ), + 1 AS col1 FROM tab0 AS cor0
----
-468
1

skipif mysql # not compatible
query II rowsort label-4228
SELECT COUNT ( * ) * SUM ( - col2 ), + 1 AS col1 FROM tab0 AS cor0
----
-468
1

query II rowsort
SELECT + col0, col1 * + col0 AS col1 FROM tab1
----
51
714
85
425
91
4277

onlyif mysql # DIV for integer division: 
query II rowsort label-4230
SELECT - 74 AS col2, - 39 DIV 28 FROM tab0
----
-74
-1
-74
-1
-74
-1

skipif mysql # not compatible
query II rowsort label-4230
SELECT - 74 AS col2, - 39 / 28 FROM tab0
----
-74
-1
-74
-1
-74
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4231
SELECT DISTINCT COUNT( * ) * - 18 AS col2 FROM tab2
----
-54

skipif mysql # not compatible
query I rowsort label-4231
SELECT DISTINCT COUNT ( * ) * - 18 AS col2 FROM tab2
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-4232
SELECT + SUM( - + 90 ) AS col2 FROM tab0
----
-270

skipif mysql # not compatible
query I rowsort label-4232
SELECT + SUM ( - + 90 ) AS col2 FROM tab0
----
-270

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 46 col0 FROM tab0
----
46
46
46

query I rowsort
SELECT DISTINCT 6 * - + col0 + + col1 FROM tab0 AS cor0
----
-501
-581
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4235
SELECT ALL + - MAX( + + ( - + col1 ) ) FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-4235
SELECT ALL + - MAX ( + + ( - + col1 ) ) FROM tab1 AS cor0
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4236
SELECT ALL - - col1 AS col1 FROM tab0 AS cor0 WHERE 54 + col2 + 18 * 60 + CAST( NULL AS SIGNED ) / col1 / col1 * - - col2 + + 52 >= + - col1
----

skipif mysql # not compatible
query I rowsort label-4236
SELECT ALL - - col1 AS col1 FROM tab0 AS cor0 WHERE 54 + col2 + 18 * 60 + CAST ( NULL AS INTEGER ) / col1 / col1 * - - col2 + + 52 >= + - col1
----

query I rowsort
SELECT col2 * + + col1 + 4 FROM tab1 AS cor0
----
1348
299
3200

query I rowsort
SELECT ALL 71 + + + col2 FROM tab2 AS cor0
----
111
129
94

query I rowsort
SELECT 26 + - 68 AS col2 FROM tab2 AS cor0
----
-42
-42
-42

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4240
SELECT DISTINCT * FROM tab1 WHERE NOT + CAST( NULL AS SIGNED ) > - col1
----

skipif mysql # not compatible
query III rowsort label-4240
SELECT DISTINCT * FROM tab1 WHERE NOT + CAST ( NULL AS INTEGER ) > - col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4241
SELECT - COUNT( * ) DIV + + 71 AS col2, COUNT( * ) AS col2 FROM tab2
----
0
3

skipif mysql # not compatible
query II rowsort label-4241
SELECT - COUNT ( * ) / + + 71 AS col2, COUNT ( * ) AS col2 FROM tab2
----
0
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4242
SELECT DISTINCT 62 + + - COUNT( * ) FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-4242
SELECT DISTINCT 62 + + - COUNT ( * ) FROM tab1
----
59

query I rowsort
SELECT DISTINCT ( + 38 ) FROM tab1
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4244
SELECT DISTINCT MAX( ALL CAST( NULL AS SIGNED ) ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4244
SELECT DISTINCT MAX ( ALL CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT - col1 + - - col0 AS col0 FROM tab1 AS cor0 WHERE NOT - col2 IS NULL
----
37
44
80

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 45 * + col2 * - col0 NOT BETWEEN NULL AND + + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col2 + 24 + + col0 FROM tab2 AS cor0
----
41
47
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4248
SELECT + MAX( ALL CAST( NULL AS SIGNED ) ) col0, 35 AS col2 FROM tab2 AS cor0
----
NULL
35

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4248
SELECT + MAX ( ALL CAST ( NULL AS INTEGER ) ) col0, 35 AS col2 FROM tab2 AS cor0
----
NULL
35

query I rowsort
SELECT ALL - 59 + + + col1 AS col1 FROM tab0 AS cor0
----
-38
-58
22

onlyif mysql # aggregate syntax: 
query I rowsort label-4250
SELECT DISTINCT - + 89 + + - ( COUNT( * ) ) col2 FROM tab2 AS cor0
----
-92

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4250
SELECT DISTINCT - + 89 + + - ( COUNT ( * ) ) col2 FROM tab2 AS cor0
----
-92

query III rowsort
SELECT * FROM tab0 WHERE ( + + col0 ) * 56 + col2 <> + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4252
SELECT DISTINCT + 31 * + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4252
SELECT DISTINCT + 31 * + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT ALL 50 * - col2 AS col2 FROM tab2
----
-1150
-2000
-2900

query I rowsort
SELECT - col0 + + 28 * - col2 AS col1 FROM tab2 cor0
----
-1184
-1699
-690

query I rowsort
SELECT + - col1 + - 7 AS col0 FROM tab1 AS cor0
----
-12
-21
-54

query I rowsort
SELECT - col1 AS col1 FROM tab2 AS cor0 WHERE col2 IS NULL
----

query I rowsort
SELECT - 49 * + + 30 * col2 + + col1 AS col0 FROM tab2 AS cor0
----
-33759
-58723
-85193

query I rowsort
SELECT ALL + ( - 75 ) + - col0 + ( + col1 ) FROM tab2 AS cor0
----
-62
-70
-83

query I rowsort
SELECT - + 39 * + 66 + + - 15 + + ( - + col2 ) AS col2 FROM tab2 AS cor0
----
-2612
-2629
-2647

query I rowsort
SELECT - + col0 * + 2 FROM tab2 AS cor0
----
-128
-150
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-4261
SELECT + COUNT( ALL + 35 ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4261
SELECT + COUNT ( ALL + 35 ) FROM tab1 cor0
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-4262
SELECT col1 DIV + col2 + + col1, + 48 * - col0 AS col2 FROM tab2 cor0
----
53
-2208
68
-3600
78
-3072

skipif mysql # not compatible
query II rowsort label-4262
SELECT col1 / + col2 + + col1, + 48 * - col0 AS col2 FROM tab2 cor0
----
53
-2208
68
-3600
78
-3072

query II rowsort
SELECT ALL col1, 3 FROM tab1 AS cor0
----
14
3
47
3
5
3

query III rowsort
SELECT ALL * FROM tab0 WHERE + + ( + - 43 ) + 72 + - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col2 + - + col1 * 26 * + - col0 AS col2 FROM tab2
----
128168
130708
61019

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 26 NOT IN ( - col1, col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-4267
SELECT ALL + - col2 DIV - 59 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4267
SELECT ALL + - col2 / - 59 AS col1 FROM tab2 AS cor0
----
0
0
0

query II rowsort
SELECT - + ( - 23 ), + 8 AS col1 FROM tab1 cor0
----
23
8
23
8
23
8

query I rowsort
SELECT ALL - + 9 AS col0 FROM tab0 AS cor0
----
-9
-9
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4270
SELECT ALL - - SUM( - ( col0 ) ) AS col1 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-4270
SELECT ALL - - SUM ( - ( col0 ) ) AS col1 FROM tab2 AS cor0
----
-185

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4271
SELECT DISTINCT 87 * + + col2 / + - CAST( NULL AS SIGNED ) * + - col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4271
SELECT DISTINCT 87 * + + col2 / + - CAST ( NULL AS INTEGER ) * + - col2 FROM tab0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4272
SELECT - ( + - CAST( - COUNT( * ) AS SIGNED ) ) FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4272
SELECT - ( + - CAST ( - COUNT ( * ) AS INTEGER ) ) FROM tab2 cor0
----
-3

query I rowsort
SELECT + col1 * - - 46 FROM tab1 AS cor0 WHERE NOT col1 IS NULL
----
2162
230
644

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 10 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4275
SELECT MIN( - + col2 ) FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-4275
SELECT MIN ( - + col2 ) FROM tab1 AS cor0
----
-96

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( + + col0 * - col2 / + 57 / - col1 / - col0 + - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 40 + + col1 col1 FROM tab0 AS cor0
----
121
41
61

query I rowsort
SELECT DISTINCT + 22 + + col2 FROM tab0 AS cor0
----
121
32
69

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4279
SELECT CAST( NULL AS DECIMAL ) * - col2 * + 75 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4279
SELECT CAST ( NULL AS REAL ) * - col2 * + 75 AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4280
SELECT ALL - col2 DIV + col1 + + col2 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-4280
SELECT ALL - col2 / + col1 + + col2 FROM tab2
----
23
40
58

query II rowsort
SELECT ALL 30, col1 AS col1 FROM tab2
----
30
51
30
67
30
77

query I rowsort
SELECT + col1 + - 52 AS col2 FROM tab2
----
-1
15
25

query I rowsort
SELECT - 76 * col2 + - col0 AS col2 FROM tab0
----
-3587
-7621
-847

query II rowsort
SELECT + col1 * + 35, 19 AS col0 FROM tab0 AS cor0 WHERE + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4285
SELECT - + 71 + + COUNT( * ) * COUNT( * ) - + COUNT( * ) - + - 44 FROM tab0 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-4285
SELECT - + 71 + + COUNT ( * ) * COUNT ( * ) - + COUNT ( * ) - + - 44 FROM tab0 AS cor0
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-4286
SELECT COUNT( * ) FROM tab2 cor0 WHERE ( NULL ) IN ( + + col2, + 15 )
----
0

skipif mysql # not compatible
query I rowsort label-4286
SELECT COUNT ( * ) FROM tab2 cor0 WHERE ( NULL ) IN ( + + col2, + 15 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4287
SELECT + - CAST( NULL AS SIGNED ) / + - 71 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4287
SELECT + - CAST ( NULL AS INTEGER ) / + - 71 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - 14 + + 64 FROM tab1 AS cor0
----
50
50
50

query I rowsort
SELECT 73 * + + col1 AS col1 FROM tab2
----
3723
4891
5621

onlyif mysql # aggregate syntax: 
query I rowsort label-4290
SELECT ALL + + COUNT( * ) AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-4290
SELECT ALL + + COUNT ( * ) AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9

query I rowsort
SELECT ( col0 ) * - 86 FROM tab0
----
-1290
-7482
-8342

query I rowsort
SELECT 49 - - + col1 FROM tab2 AS cor0
----
100
116
126

query I rowsort
SELECT DISTINCT 41 * col2 - + - col1 FROM tab2 AS cor0
----
1717
2445
994

onlyif mysql # DIV for integer division: 
query II rowsort label-4294
SELECT col2 - + + col1 DIV - col1 AS col2, col1 FROM tab1 AS cor0
----
60
5
69
47
97
14

skipif mysql # not compatible
query II rowsort label-4294
SELECT col2 - + + col1 / - col1 AS col2, col1 FROM tab1 AS cor0
----
60
5
69
47
97
14

query I rowsort
SELECT DISTINCT + - col1 + + 81 + 21 / + - col0 AS col0 FROM tab1 AS cor0 WHERE NOT 42 + ( + - col1 ) * + - col1 * + col2 + - 90 / - col0 * + 68 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN + 25 * col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4297
SELECT DISTINCT - COUNT( - 31 ), + 25 AS col2 FROM tab1 AS cor0
----
-3
25

skipif mysql # not compatible
query II rowsort label-4297
SELECT DISTINCT - COUNT ( - 31 ), + 25 AS col2 FROM tab1 AS cor0
----
-3
25

onlyif mysql # DIV for integer division: 
query I rowsort label-4298
SELECT + col2 DIV + col0 * 67 + - - col0 AS col2 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-4298
SELECT + col2 / + col0 * 67 + - - col0 AS col2 FROM tab2 AS cor0
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4299
SELECT MIN( DISTINCT 44 ) FROM tab2
----
44

skipif mysql # not compatible
query I rowsort label-4299
SELECT MIN ( DISTINCT 44 ) FROM tab2
----
44

query I rowsort
SELECT ALL + 69 * + 30 FROM tab0
----
2070
2070
2070

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 12 * + col2 col1 FROM tab2
----
276
480
696

onlyif mysql # aggregate syntax: 
query I rowsort label-4302
SELECT COUNT( DISTINCT 71 ) AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-4302
SELECT COUNT ( DISTINCT 71 ) AS col1 FROM tab0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4303
SELECT ALL col2 * + - 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-4303
SELECT ALL col2 * + - CAST ( NULL AS INTEGER ) col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4304
SELECT DISTINCT CAST( + 38 AS SIGNED ) FROM tab1
----
38

skipif mysql # not compatible
query I rowsort label-4304
SELECT DISTINCT CAST ( + 38 AS INTEGER ) FROM tab1
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4305
SELECT - col2 + col1 FROM tab0 WHERE NOT - 73 - + CAST( NULL AS SIGNED ) + - col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-4305
SELECT - col2 + col1 FROM tab0 WHERE NOT - 73 - + CAST ( NULL AS INTEGER ) + - col2 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4306
SELECT DISTINCT SUM( + - 16 ) DIV + - 77 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4306
SELECT DISTINCT SUM ( + - 16 ) / + - 77 AS col0 FROM tab1
----
0

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT + 40 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4308
SELECT * FROM tab1 WHERE NOT + col0 * + - col1 - + + col1 - + CAST( - col2 AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4308
SELECT * FROM tab1 WHERE NOT + col0 * + - col1 - + + col1 - + CAST ( - col2 AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4309
SELECT DISTINCT MAX( - col0 ) * 49 DIV - ( - - 34 ) FROM tab0
----
21

skipif mysql # not compatible
query I rowsort label-4309
SELECT DISTINCT MAX ( - col0 ) * 49 / - ( - - 34 ) FROM tab0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-4310
SELECT DISTINCT + 69 * + COUNT( * ) FROM tab0
----
207

skipif mysql # not compatible
query I rowsort label-4310
SELECT DISTINCT + 69 * + COUNT ( * ) FROM tab0
----
207

onlyif mysql # DIV for integer division: 
query II rowsort label-4311
SELECT - col2 DIV - col0 AS col1, + col2 FROM tab0 AS cor0
----
0
10
1
99
3
47

skipif mysql # not compatible
query II rowsort label-4311
SELECT - col2 / - col0 AS col1, + col2 FROM tab0 AS cor0
----
0
10
1
99
3
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4312
SELECT - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4312
SELECT - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-23
-40
-58

query I rowsort
SELECT - 25 * + - col2 * - col0 + - 14 + - 77 AS col0 FROM tab1 AS cor0
----
-122491
-125466
-154791

onlyif mysql # aggregate syntax: 
query I rowsort label-4315
SELECT DISTINCT - - COUNT( * ) FROM tab1 cor0 WHERE - 29 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4315
SELECT DISTINCT - - COUNT ( * ) FROM tab1 cor0 WHERE - 29 IS NULL
----
0

query I rowsort
SELECT + col1 + 6 AS col1 FROM tab2 AS cor0
----
57
73
83

query I rowsort
SELECT ALL 8 + - col1 FROM tab1 AS cor0
----
-39
-6
3

query I rowsort
SELECT DISTINCT col2 * 55 FROM tab0 AS cor0
----
2585
5445
550

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE - 8 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4320
SELECT - 37 * + 45 * - + CAST( - col0 AS SIGNED ) AS col2 FROM tab0
----
-144855
-161505
-24975

skipif mysql # not compatible
query I rowsort label-4320
SELECT - 37 * + 45 * - + CAST ( - col0 AS INTEGER ) AS col2 FROM tab0
----
-144855
-161505
-24975

query I rowsort
SELECT DISTINCT + col1 + - 46 FROM tab0
----
-25
-45
35

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4322
SELECT DISTINCT * FROM tab0 WHERE ( NOT - 7 = + - col0 * CAST( NULL AS DECIMAL ) + - 8 + - + col0 - 29 )
----

skipif mysql # not compatible
query III rowsort label-4322
SELECT DISTINCT * FROM tab0 WHERE ( NOT - 7 = + - col0 * CAST ( NULL AS REAL ) + - 8 + - + col0 - 29 )
----

query III rowsort
SELECT * FROM tab0 WHERE - col1 = + 46
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4324
SELECT + COUNT( * ) * - + ( 75 ) AS col2 FROM tab2
----
-225

skipif mysql # not compatible
query I rowsort label-4324
SELECT + COUNT ( * ) * - + ( 75 ) AS col2 FROM tab2
----
-225

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4325
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( + col1 + 81, - col2, 15, + - CAST( NULL AS SIGNED ), - - ( - col0 ) )
----

skipif mysql # not compatible
query III rowsort label-4325
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( + col1 + 81, - col2, 15, + - CAST ( NULL AS INTEGER ), - - ( - col0 ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4326
SELECT - 64 DIV - COUNT( * ) col2 FROM tab0 AS cor0
----
21

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4326
SELECT - 64 / - COUNT ( * ) col2 FROM tab0 AS cor0
----
21

query I rowsort
SELECT DISTINCT + - col1 + - 17 FROM tab2 AS cor0
----
-68
-84
-94

query I rowsort
SELECT ALL 89 + - - 55 AS col1 FROM tab0
----
144
144
144

query III rowsort
SELECT * FROM tab2 WHERE + 75 IS NULL
----

query II rowsort
SELECT DISTINCT - col0 AS col0, - 91 AS col2 FROM tab0 AS cor0
----
-15
-91
-87
-91
-97
-91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4331
SELECT ALL - CAST( - col0 AS SIGNED ), col1 FROM tab0 AS cor0
----
15
81
87
21
97
1

skipif mysql # not compatible
query II rowsort label-4331
SELECT ALL - CAST ( - col0 AS INTEGER ), col1 FROM tab0 AS cor0
----
15
81
87
21
97
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4332
SELECT col1 * + CAST( NULL AS SIGNED ) + + 25 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4332
SELECT col1 * + CAST ( NULL AS INTEGER ) + + 25 FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT - - 74 AS col2, - col0 FROM tab1 AS cor0
----
74
-51
74
-85
74
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-4334
SELECT DISTINCT 88 AS col2, COUNT( * ) AS col2 FROM tab2 AS cor0
----
88
3

skipif mysql # not compatible
query II rowsort label-4334
SELECT DISTINCT 88 AS col2, COUNT ( * ) AS col2 FROM tab2 AS cor0
----
88
3

query II rowsort
SELECT + col0, col2 AS col2 FROM tab1 AS cor0
----
51
96
85
59
91
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4336
SELECT ALL - CAST( - COUNT( * ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4336
SELECT ALL - CAST ( - COUNT ( * ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
3

query II rowsort
SELECT DISTINCT + col0 AS col2, - ( - ( - col0 ) ) * - 79 AS col2 FROM tab1 cor0
----
51
4029
85
6715
91
7189

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 85 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + + 29 ) NOT IN ( col1 * col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4340
SELECT DISTINCT CAST( - 18 AS SIGNED ) AS col1 FROM tab2
----
-18

skipif mysql # not compatible
query I rowsort label-4340
SELECT DISTINCT CAST ( - 18 AS INTEGER ) AS col1 FROM tab2
----
-18

query I rowsort
SELECT DISTINCT ( + col2 ) * - col0 * - + 12 AS col1 FROM tab1
----
58752
60180
74256

query I rowsort
SELECT ALL 27 FROM tab0 WHERE NULL >= col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 60 col0 FROM tab1 AS cor0
----
-60
-60
-60

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL < + 8
----

query I rowsort
SELECT ALL - col2 * - + col1 FROM tab2 AS cor0
----
1173
3080
3886

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 <> + + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4347
SELECT ALL - COUNT( * ) * - + 58 FROM tab1 cor0
----
174

skipif mysql # not compatible
query I rowsort label-4347
SELECT ALL - COUNT ( * ) * - + 58 FROM tab1 cor0
----
174

onlyif mysql # aggregate syntax: 
query I rowsort label-4348
SELECT - MIN( - 44 ) FROM tab2
----
44

skipif mysql # not compatible
query I rowsort label-4348
SELECT - MIN ( - 44 ) FROM tab2
----
44

onlyif mysql # DIV for integer division: 
query I rowsort label-4349
SELECT DISTINCT 84 DIV + 74 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
1

skipif mysql # not compatible
query I rowsort label-4349
SELECT DISTINCT 84 / + 74 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4350
SELECT ALL - + MIN( ALL + col2 ) AS col1 FROM tab2 cor0
----
-23

skipif mysql # not compatible
query I rowsort label-4350
SELECT ALL - + MIN ( ALL + col2 ) AS col1 FROM tab2 cor0
----
-23

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE NULL <= ( NULL )
----

query I rowsort
SELECT DISTINCT + 30 * + + 27 FROM tab2 AS cor0
----
810

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col0 * + col2 IS NULL
----

query I rowsort
SELECT ALL col0 + + 73 FROM tab0 AS cor0
----
160
170
88

onlyif mysql # aggregate syntax: 
query I rowsort label-4355
SELECT DISTINCT - COUNT( * ) + + COUNT( * ) * COUNT( * ) FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-4355
SELECT DISTINCT - COUNT ( * ) + + COUNT ( * ) * COUNT ( * ) FROM tab2
----
6

query I rowsort
SELECT ALL col1 + + col2 + col1 * col2 AS col1 FROM tab1
----
1454
3311
359

query I rowsort
SELECT col2 * + col0 + - 43 AS col2 FROM tab1
----
4853
4972
6145

query I rowsort
SELECT ( + - col0 ) * ( + col1 ) + - col1 + + + col2 AS col1 FROM tab1
----
-371
-4256
-632

query I rowsort
SELECT + col0 + + col0 + - col2 - + 87 * - + col2 AS col2 FROM tab0
----
1034
4072
8708

query I rowsort
SELECT col1 + - + col0 + - 72 + + 56 + col0 FROM tab1
----
-11
-2
31

query I rowsort
SELECT 85 * col0 + + + col0 FROM tab2
----
3956
5504
6450

query I rowsort
SELECT - 18 FROM tab2 WHERE - - 21 * + col2 >= 80 / + col2 * col0 + - + col2 - - 22
----
-18
-18
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4363
SELECT DISTINCT - col2 - - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4363
SELECT DISTINCT - col2 - - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT col0 AS col1 FROM tab1 WHERE + col2 IS NOT NULL
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4365
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col2 + CAST( NULL AS SIGNED ) NOT IN ( - col0, + 81, col1 )
----

skipif mysql # not compatible
query III rowsort label-4365
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col2 + CAST ( NULL AS INTEGER ) NOT IN ( - col0, + 81, col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4366
SELECT - MIN( DISTINCT + + 13 ) FROM tab1 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-4366
SELECT - MIN ( DISTINCT + + 13 ) FROM tab1 AS cor0
----
-13

query II rowsort
SELECT + - col2 AS col0, col2 FROM tab1 cor0
----
-59
59
-68
68
-96
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4368
SELECT - SUM( DISTINCT col0 ) AS col1 FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-4368
SELECT - SUM ( DISTINCT col0 ) AS col1 FROM tab0
----
-199

query I rowsort
SELECT DISTINCT - ( + 71 ) FROM tab1
----
-71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + col1 col0 FROM tab2 WHERE NOT 85 > - 10
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 < + col2 * 6
----

query II rowsort
SELECT 35, col1 FROM tab1 AS cor0
----
35
14
35
47
35
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4373
SELECT DISTINCT COUNT( * ) FROM tab2 WHERE NOT 18 - - + 28 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4373
SELECT DISTINCT COUNT ( * ) FROM tab2 WHERE NOT 18 - - + 28 IS NOT NULL
----
0

query I rowsort
SELECT + col0 + + col2 + col2 FROM tab0 AS cor0
----
107
109
295

query I rowsort
SELECT + + 49 + + col1 + + col0 FROM tab1 AS cor0
----
114
139
187

query I rowsort
SELECT + col0 + - 25 AS col0 FROM tab1 AS cor0
----
26
60
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4377
SELECT + + COUNT( DISTINCT + 29 ) FROM tab0 AS cor0 WHERE 63 * + 12 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4377
SELECT + + COUNT ( DISTINCT + 29 ) FROM tab0 AS cor0 WHERE 63 * + 12 IS NULL
----
0

query I rowsort
SELECT DISTINCT + col0 + + 82 * col1 AS col0 FROM tab0 AS cor0
----
179
1809
6657

query I rowsort
SELECT DISTINCT 76 + - col2 AS col2 FROM tab0
----
-23
29
66

query I rowsort
SELECT DISTINCT ( + 18 ) + - col1 FROM tab2
----
-33
-49
-59

query II rowsort
SELECT ALL + col2 * + col0 + + col1 AS col0, - 56 AS col0 FROM tab0
----
786
-56
891
-56
9604
-56

query I rowsort
SELECT ALL 64 * + + col0 AS col1 FROM tab1
----
3264
5440
5824

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 44 - - col1 + - - 62, 79 + ( - col0 ) col2 FROM tab1
----
111
-6
120
28
153
-12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 70 - 26 col2 FROM tab0
----
-96

query I rowsort
SELECT + col1 - + col2 AS col0 FROM tab0 cor0
----
-98
11
34

query I rowsort
SELECT - col0 + - 15 AS col1 FROM tab1 AS cor0
----
-100
-106
-66

query I rowsort
SELECT ALL col2 * - col2 * col1 FROM tab0 AS cor0
----
-178929
-2100
-9801

query I rowsort
SELECT + col1 AS col2 FROM tab0 AS cor0 WHERE - col0 * + col0 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4389
SELECT ALL - 46 DIV COUNT( * ) col0 FROM tab1 AS cor0
----
-15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4389
SELECT ALL - 46 / COUNT ( * ) col0 FROM tab1 AS cor0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-4390
SELECT DISTINCT + MAX( ALL - 48 ) - - 55 FROM tab0
----
7

skipif mysql # not compatible
query I rowsort label-4390
SELECT DISTINCT + MAX ( ALL - 48 ) - - 55 FROM tab0
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4391
SELECT DISTINCT - col1 * - - CAST( NULL AS SIGNED ) + + col1 + 68 AS col2 FROM tab0 WHERE NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4391
SELECT DISTINCT - col1 * - - CAST ( NULL AS INTEGER ) + + col1 + 68 AS col2 FROM tab0 WHERE NULL IS NULL
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 3 + + col2 BETWEEN ( - col0 + - col1 + ( 77 ) + - + 83 + col2 * col2 + col1 * - + col1 ) AND col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4393
SELECT - + COUNT( * ) * + 71 FROM tab1 AS cor0
----
-213

skipif mysql # not compatible
query I rowsort label-4393
SELECT - + COUNT ( * ) * + 71 FROM tab1 AS cor0
----
-213

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4394
SELECT DISTINCT + 70 FROM tab1 AS cor0 WHERE NOT col2 <= - - 16 * CAST( - 10 AS SIGNED )
----
70

skipif mysql # not compatible
query I rowsort label-4394
SELECT DISTINCT + 70 FROM tab1 AS cor0 WHERE NOT col2 <= - - 16 * CAST ( - 10 AS INTEGER )
----
70

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND + col1 * + + col1 - - ( + col0 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4396
SELECT ALL + - 28 DIV + MIN( DISTINCT 47 ) AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4396
SELECT ALL + - 28 / + MIN ( DISTINCT 47 ) AS col0 FROM tab2 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) <= + col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4398
SELECT COUNT( * ), - COUNT( * ) * + 49 FROM tab0 cor0 WHERE NOT NULL IS NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-4398
SELECT COUNT ( * ), - COUNT ( * ) * + 49 FROM tab0 cor0 WHERE NOT NULL IS NULL
----
0
0

query III rowsort
SELECT ALL * FROM tab1 WHERE col2 / - col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4400
SELECT ALL CAST( - 64 AS SIGNED ) AS col1 FROM tab1
----
-64
-64
-64

skipif mysql # not compatible
query I rowsort label-4400
SELECT ALL CAST ( - 64 AS INTEGER ) AS col1 FROM tab1
----
-64
-64
-64

query I rowsort
SELECT DISTINCT + col1 * - 8 AS col2 FROM tab0
----
-168
-648
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-4402
SELECT 10 DIV + col0 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4402
SELECT 10 / + col0 AS col0 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4403
SELECT + COUNT( * ) * - - MIN( 12 ) FROM tab2
----
36

skipif mysql # not compatible
query I rowsort label-4403
SELECT + COUNT ( * ) * - - MIN ( 12 ) FROM tab2
----
36

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - - ( + ( + col0 ) ) * + 68 * col1 IS NULL
----

query II rowsort
SELECT ( + col2 ) * col2, - col0 + col1 AS col1 FROM tab2
----
1600
13
3364
-8
529
5

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) >= col1 * + 88
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4407
SELECT MAX( + + 12 ) AS col2 FROM tab1
----
12

skipif mysql # not compatible
query I rowsort label-4407
SELECT MAX ( + + 12 ) AS col2 FROM tab1
----
12

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - col1 + + - col2 + - col1, + ( - col0 ), + col2 )
----

query I rowsort
SELECT - 5 + + 41 AS col2 FROM tab1 AS cor0
----
36
36
36

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT 94 IS NOT NULL
----

query I rowsort
SELECT ( 31 ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4412
SELECT ALL 68 + - MAX( DISTINCT - - col0 ) + - 39 FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-4412
SELECT ALL 68 + - MAX ( DISTINCT - - col0 ) + - 39 FROM tab2
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4413
SELECT SUM( - - CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4413
SELECT SUM ( - - CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

query I rowsort
SELECT - ( + 54 ) FROM tab0
----
-54
-54
-54

query II rowsort
SELECT ALL - 9, + 30 AS col0 FROM tab2 AS cor0
----
-9
30
-9
30
-9
30

query II rowsort
SELECT + - col1, col0 AS col0 FROM tab2 AS cor0
----
-51
46
-67
75
-77
64

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - ( + - 20 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4418
SELECT + col2 DIV 46 AS col1, + 24 FROM tab0 AS cor0
----
0
24
1
24
2
24

skipif mysql # not compatible
query II rowsort label-4418
SELECT + col2 / 46 AS col1, + 24 FROM tab0 AS cor0
----
0
24
1
24
2
24

query I rowsort
SELECT DISTINCT + - 94 * ( col1 ) FROM tab0 cor0
----
-1974
-7614
-94

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4420
SELECT - 41 AS col2, col1 col1 FROM tab1 AS cor0 WHERE + col0 * + CAST( NULL AS SIGNED ) IS NULL
----
-41
14
-41
47
-41
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4420
SELECT - 41 AS col2, col1 col1 FROM tab1 AS cor0 WHERE + col0 * + CAST ( NULL AS INTEGER ) IS NULL
----
-41
14
-41
47
-41
5

query I rowsort
SELECT ALL - + col2 + ( + 6 ) AS col1 FROM tab2 cor0
----
-17
-34
-52

query I rowsort
SELECT ALL - 73 + col2 AS col2 FROM tab1 AS cor0
----
-14
-5
23

query I rowsort
SELECT col0 + + + 70 + + col0 * - + col2 * col1 AS col2 FROM tab1
----
-24920
-290675
-68423

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4424
SELECT DISTINCT * FROM tab0 WHERE - - CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4424
SELECT DISTINCT * FROM tab0 WHERE - - CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4425
SELECT - 73 + - COUNT( * ) col0 FROM tab2
----
-76

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4425
SELECT - 73 + - COUNT ( * ) col0 FROM tab2
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-4426
SELECT + COUNT( * ) + + 37 FROM tab1
----
40

skipif mysql # not compatible
query I rowsort label-4426
SELECT + COUNT ( * ) + + 37 FROM tab1
----
40

query I rowsort
SELECT ALL - col0 - - - 13 FROM tab1
----
-104
-64
-98

query I rowsort
SELECT DISTINCT 59 + + + 64 * - - col1 AS col1 FROM tab1
----
3067
379
955

query I rowsort
SELECT ALL - col1 * - col2 * - - col2 FROM tab0
----
178929
2100
9801

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4430
SELECT 57 * col1 AS col2, CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
1197
NULL
4617
NULL
57
NULL

skipif mysql # not compatible
query II rowsort label-4430
SELECT 57 * col1 AS col2, CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
1197
NULL
4617
NULL
57
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4431
SELECT ALL - col1 - ( + 68 ) + - 5 DIV - col2 AS col2, 76 + - + 9 FROM tab1
----
-115
67
-73
67
-82
67

skipif mysql # not compatible
query II rowsort label-4431
SELECT ALL - col1 - ( + 68 ) + - 5 / - col2 AS col2, 76 + - + 9 FROM tab1
----
-115
67
-73
67
-82
67

query I rowsort
SELECT col1 * + col2 + 64 FROM tab1 AS cor0
----
1408
3260
359

query II rowsort
SELECT ALL - col1, col1 - - - 70 + - col2 AS col2 FROM tab2
----
-51
-42
-67
-61
-77
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-4434
SELECT - + COUNT( * ) + + 79 AS col2, - 27 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
70
-27

skipif mysql # not compatible
query II rowsort label-4434
SELECT - + COUNT ( * ) + + 79 AS col2, - 27 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
70
-27

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 27 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 + + - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 76 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 40, - col1 * + col2 col0 FROM tab0 AS cor0
----
-40
-210
-40
-3807
-40
-99

query II rowsort
SELECT ALL col1 AS col1, col1 FROM tab2 AS cor0
----
51
51
67
67
77
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4440
SELECT + CAST( col2 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-4440
SELECT + CAST ( col2 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4441
SELECT - - ( - - SUM( col0 ) ) FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-4441
SELECT - - ( - - SUM ( col0 ) ) FROM tab1 AS cor0
----
227

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 IN ( col0, - 76, - - 14, + col0, + col1, col0 )
----

query I rowsort
SELECT DISTINCT + ( - + 23 ) * - ( col0 ) - + - col0 * - col0 * - col0 FROM tab2
----
263616
423600
98394

query II rowsort
SELECT ALL - 98 AS col0, + 3 AS col0 FROM tab2 WHERE NOT - col1 IN ( - col1 / + + col2 + - 39 )
----
-98
3
-98
3
-98
3

query I rowsort
SELECT - col1 * 79 FROM tab1
----
-1106
-3713
-395

query II rowsort
SELECT + col0 * 48, col1 AS col1 FROM tab1
----
2448
14
4080
5
4368
47

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4447
SELECT * FROM tab1 WHERE NOT - + col2 NOT IN ( + CAST( NULL AS DECIMAL ) * col1, + col0 )
----

skipif mysql # not compatible
query III rowsort label-4447
SELECT * FROM tab1 WHERE NOT - + col2 NOT IN ( + CAST ( NULL AS REAL ) * col1, + col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4448
SELECT ALL - ( - 64 ) DIV col2 * - col1 col1 FROM tab1
----
-5
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4448
SELECT ALL - ( - 64 ) / col2 * - col1 col1 FROM tab1
----
-5
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4449
SELECT DISTINCT - col2 + - CAST( 43 AS SIGNED ) col0 FROM tab2 WHERE + - col2 IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4449
SELECT DISTINCT - col2 + - CAST ( 43 AS INTEGER ) col0 FROM tab2 WHERE + - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4450
SELECT ALL COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT - col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4450
SELECT ALL COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT - col2 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4451
SELECT - COUNT( ALL - col1 ) AS col1, 25 FROM tab2 AS cor0
----
-3
25

skipif mysql # not compatible
query II rowsort label-4451
SELECT - COUNT ( ALL - col1 ) AS col1, 25 FROM tab2 AS cor0
----
-3
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4452
SELECT ALL AVG ( 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-4452
SELECT ALL AVG ( CAST ( NULL AS INTEGER ) ) col0 FROM tab0
----
NULL

query I rowsort
SELECT + - col1 + - 93 AS col1 FROM tab2 AS cor0
----
-144
-160
-170

query I rowsort
SELECT ALL 44 + 93 AS col2 FROM tab2 AS cor0
----
137
137
137

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 = - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4456
SELECT - COUNT( * ) + - 50 AS col2 FROM tab0 AS cor0
----
-53

skipif mysql # not compatible
query I rowsort label-4456
SELECT - COUNT ( * ) + - 50 AS col2 FROM tab0 AS cor0
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-4457
SELECT ALL - COUNT( - 49 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4457
SELECT ALL - COUNT ( - 49 ) FROM tab2 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col1 * + col0 + - 8 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-4459
SELECT - - 45 * col1 DIV + 59 AS col2 FROM tab2 AS cor0
----
38
51
58

skipif mysql # not compatible
query I rowsort label-4459
SELECT - - 45 * col1 / + 59 AS col2 FROM tab2 AS cor0
----
38
51
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4460
SELECT - + CAST( + COUNT( - CAST( + col0 AS DECIMAL ) ) AS SIGNED ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4460
SELECT - + CAST ( + COUNT ( - CAST ( + col0 AS REAL ) ) AS INTEGER ) FROM tab0 cor0
----
-3

query I rowsort
SELECT col2 * - - 63 FROM tab2 cor0
----
1449
2520
3654

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 + + col2 col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT 9 * col0 + + col1 FROM tab2
----
465
653
742

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT IN ( col1, + ( + col0 ), - + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4465
SELECT DISTINCT 57 - - COUNT( * ) AS col0 FROM tab1
----
60

skipif mysql # not compatible
query I rowsort label-4465
SELECT DISTINCT 57 - - COUNT ( * ) AS col0 FROM tab1
----
60

query I rowsort
SELECT + 90 - + - col0 FROM tab1
----
141
175
181

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4467
SELECT + col2 * + col1 * 78 * - CAST( + - 89 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
2047890
22186632
9330048

skipif mysql # not compatible
query I rowsort label-4467
SELECT + col2 * + col1 * 78 * - CAST ( + - 89 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
2047890
22186632
9330048

query II rowsort
SELECT - - col2 AS col0, + col2 + 90 * + + ( - 3 ) + col0 FROM tab2 AS cor0
----
23
-201
40
-166
58
-137

onlyif mysql # aggregate syntax: 
query I rowsort label-4469
SELECT ALL + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + + 45 AND col2
----
0

skipif mysql # not compatible
query I rowsort label-4469
SELECT ALL + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + + 45 AND col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4470
SELECT DISTINCT - ( + col1 ) * + CAST( + 77 AS SIGNED ) FROM tab1 AS cor0
----
-1078
-3619
-385

skipif mysql # not compatible
query I rowsort label-4470
SELECT DISTINCT - ( + col1 ) * + CAST ( + 77 AS INTEGER ) FROM tab1 AS cor0
----
-1078
-3619
-385

query I rowsort
SELECT - 19 FROM tab1 WHERE NOT + 59 - - 22 IS NULL
----
-19
-19
-19

query I rowsort
SELECT ALL + - col1 * + + col0 AS col2 FROM tab2 cor0
----
-2346
-4928
-5025

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4473
SELECT DISTINCT + CAST( + MAX( ALL + - col2 ) AS SIGNED ) + COUNT( * ) AS col1 FROM tab1
----
-56

skipif mysql # not compatible
query I rowsort label-4473
SELECT DISTINCT + CAST ( + MAX ( ALL + - col2 ) AS INTEGER ) + COUNT ( * ) AS col1 FROM tab1
----
-56

query I rowsort
SELECT + col2 + + - col1 FROM tab2 WHERE NOT ( NOT NULL BETWEEN ( NULL ) AND - col0 / + 66 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4475
SELECT COUNT( * ) DIV + + 38 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4475
SELECT COUNT ( * ) / + + 38 AS col1 FROM tab0
----
0

query III rowsort
SELECT * FROM tab1 WHERE - - ( + col1 ) IS NULL
----

query I rowsort
SELECT ALL - col1 * - 21 FROM tab1
----
105
294
987

onlyif mysql # aggregate syntax: 
query I rowsort label-4478
SELECT DISTINCT + ( MAX( + - col1 ) ) AS col1 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-4478
SELECT DISTINCT + ( MAX ( + - col1 ) ) AS col1 FROM tab2 AS cor0
----
-51

query I rowsort
SELECT ALL 48 * + - col2 * + col0 * - + col2 + - col0 FROM tab0 AS cor0
----
1590465
417513
45633359

onlyif mysql # aggregate syntax: 
query I rowsort label-4480
SELECT DISTINCT + MAX( col0 ) FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-4480
SELECT DISTINCT + MAX ( col0 ) FROM tab1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4481
SELECT ALL MIN( ALL col2 ) * - 20 FROM tab1
----
-1180

skipif mysql # not compatible
query I rowsort label-4481
SELECT ALL MIN ( ALL col2 ) * - 20 FROM tab1
----
-1180

query III rowsort
SELECT * FROM tab0 WHERE - 9 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4483
SELECT ALL + COUNT( + 38 ) * 83 AS col2 FROM tab1
----
249

skipif mysql # not compatible
query I rowsort label-4483
SELECT ALL + COUNT ( + 38 ) * 83 AS col2 FROM tab1
----
249

query I rowsort
SELECT col1 FROM tab2 WHERE - 81 + col0 NOT IN ( - col0 )
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4485
SELECT ALL * FROM tab0 WHERE NOT ( col0 * CAST( NULL AS SIGNED ) + + col1 * col2 ) = NULL
----

skipif mysql # not compatible
query III rowsort label-4485
SELECT ALL * FROM tab0 WHERE NOT ( col0 * CAST ( NULL AS INTEGER ) + + col1 * col2 ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4486
SELECT - SUM( ALL col1 ) AS col1 FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-4486
SELECT - SUM ( ALL col1 ) AS col1 FROM tab2
----
-195

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4487
SELECT + CAST( NULL AS SIGNED ) / - MAX( ALL - col2 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4487
SELECT + CAST ( NULL AS INTEGER ) / - MAX ( ALL - col2 ) FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4488
SELECT - 64 DIV - 75 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4488
SELECT - 64 / - 75 AS col0 FROM tab2
----
0
0
0

query III rowsort
SELECT ALL * FROM tab0 WHERE col0 IN ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4490
SELECT COUNT( * ) * 41 FROM tab2
----
123

skipif mysql # not compatible
query I rowsort label-4490
SELECT COUNT ( * ) * 41 FROM tab2
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-4491
SELECT MAX( - 72 ) * COUNT( * ) col1 FROM tab2
----
-216

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4491
SELECT MAX ( - 72 ) * COUNT ( * ) col1 FROM tab2
----
-216

query I rowsort
SELECT + 72 * 42 AS col2 FROM tab0
----
3024
3024
3024

query I rowsort
SELECT ( col2 ) * col0 AS col1 FROM tab1
----
4896
5015
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-4494
SELECT DISTINCT COUNT( * ) FROM tab1 WHERE 48 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4494
SELECT DISTINCT COUNT ( * ) FROM tab1 WHERE 48 IS NULL
----
0

query I rowsort
SELECT 71 FROM tab0 WHERE NOT col0 = ( NULL )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4496
SELECT DISTINCT col0 AS col1 FROM tab1 WHERE col0 = + CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-4496
SELECT DISTINCT col0 AS col1 FROM tab1 WHERE col0 = + CAST ( NULL AS REAL )
----

query III rowsort
SELECT * FROM tab0 WHERE col1 <> - col2 / + 60
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 51 + col1 FROM tab0
----
132
52
72

onlyif mysql # DIV for integer division: 
query I rowsort label-4499
SELECT col0 + col1 DIV col2 AS col0 FROM tab2
----
48
65
76

skipif mysql # not compatible
query I rowsort label-4499
SELECT col0 + col1 / col2 AS col0 FROM tab2
----
48
65
76

onlyif mysql # aggregate syntax: 
query I rowsort label-4500
SELECT COUNT( ALL 68 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4500
SELECT COUNT ( ALL 68 ) FROM tab1
----
3

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) BETWEEN - 81 AND ( + 21 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4502
SELECT - col0 * - col2 AS col0 FROM tab1 WHERE col0 NOT IN ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-4502
SELECT - col0 * - col2 AS col0 FROM tab1 WHERE col0 NOT IN ( CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4503
SELECT + CAST( NULL AS SIGNED ) / col2 col1 FROM tab0 WHERE NULL BETWEEN NULL AND - col0 + - 22 / col1
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4503
SELECT + CAST ( NULL AS INTEGER ) / col2 col1 FROM tab0 WHERE NULL BETWEEN NULL AND - col0 + - 22 / col1
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( - 26 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4505
SELECT + 86 DIV - col2 AS col0 FROM tab2
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-4505
SELECT + 86 / - col2 AS col0 FROM tab2
----
-1
-2
-3

query I rowsort
SELECT DISTINCT col0 FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
46
64
75

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND 79 * 45
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 * + col0 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 97 + col1 col0 FROM tab1 cor0
----
-50
-83
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4510
SELECT DISTINCT - ( CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4510
SELECT DISTINCT - ( CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL - col2 * - 93 AS col2 FROM tab0 AS cor0
----
4371
9207
930

onlyif mysql # DIV for integer division: 
query I rowsort label-4512
SELECT - + col0 + col0 * - ( + 99 DIV 8 ) col2 FROM tab0 cor0
----
-1131
-1261
-195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4512
SELECT - + col0 + col0 * - ( + 99 / 8 ) col2 FROM tab0 cor0
----
-1131
-1261
-195

query I rowsort
SELECT ALL 70 + col1 AS col1 FROM tab0 AS cor0
----
151
71
91

query I rowsort
SELECT DISTINCT - + 64 + - col1 FROM tab0 cor0
----
-145
-65
-85

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL IN ( - 24 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4516
SELECT - COUNT( * ) + 48 AS col2 FROM tab0 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-4516
SELECT - COUNT ( * ) + 48 AS col2 FROM tab0 AS cor0
----
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 82 * - + col0 col0 FROM tab2
----
-3772
-5248
-6150

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4518
SELECT DISTINCT COUNT( 23 ) DIV 14 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4518
SELECT DISTINCT COUNT ( 23 ) / 14 AS col0 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4519
SELECT ALL ( CAST( col2 AS SIGNED ) ) AS col2 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-4519
SELECT ALL ( CAST ( col2 AS INTEGER ) ) AS col2 FROM tab1
----
59
68
96

query I rowsort
SELECT ALL col1 * col0 FROM tab2 WHERE 33 IS NULL
----

query I rowsort
SELECT DISTINCT col0 * col0 + - 58 * col2 AS col2 FROM tab2
----
1776
2261
782

query I rowsort
SELECT col1 * - 50 * - col0 FROM tab0
----
4850
60750
91350

query III rowsort
SELECT ALL * FROM tab1 WHERE ( - 28 ) > NULL
----

query I rowsort
SELECT - + 39 * - ( + 1 ) AS col0 FROM tab0 AS cor0
----
39
39
39

onlyif mysql # aggregate syntax: 
query I rowsort label-4525
SELECT + - MIN( DISTINCT - ( col0 ) ) * + 36 AS col2 FROM tab0 cor0
----
3492

skipif mysql # not compatible
query I rowsort label-4525
SELECT + - MIN ( DISTINCT - ( col0 ) ) * + 36 AS col2 FROM tab0 cor0
----
3492

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN 34 AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + 1 ) = ( NULL )
----

query I rowsort
SELECT ALL - col0 * - col2 * + col1 + 1 AS col0 FROM tab2 AS cor0
----
197121
291451
53959

onlyif mysql # aggregate syntax: 
query I rowsort label-4529
SELECT 55 + - COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE + col2 <= ( NULL )
----
55

skipif mysql # not compatible
query I rowsort label-4529
SELECT 55 + - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE + col2 <= ( NULL )
----
55

query I rowsort
SELECT 76 + col0 AS col0 FROM tab1
----
127
161
167

query I rowsort
SELECT ALL 57 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

query I rowsort
SELECT 57 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

query I rowsort
SELECT DISTINCT + - 6 * col0 * - col0 * + col0 AS col1 FROM tab2 AS cor0
----
1572864
2531250
584016

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab2 AS cor0 WHERE NOT ( - 1 ) <> NULL
----

query I rowsort
SELECT + col1 * col1 * + col0 * 94 AS col1 FROM tab1 AS cor0
----
18895786
199750
939624

onlyif mysql # DIV for integer division: 
query I rowsort label-4536
SELECT ALL 48 AS col1 FROM tab0 AS cor0 WHERE NOT col0 DIV col2 + col0 NOT BETWEEN ( 30 ) AND + col0
----
48

skipif mysql # not compatible
query I rowsort label-4536
SELECT ALL 48 AS col1 FROM tab0 AS cor0 WHERE NOT col0 / col2 + col0 NOT BETWEEN ( 30 ) AND + col0
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-4537
SELECT + + 6 DIV + ( + 77 ) FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4537
SELECT + + 6 / + ( + 77 ) FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + col1 * + 80 * + col2 AS col1 FROM tab1 AS cor0
----
107520
23600
255680

onlyif mysql # aggregate syntax: 
query I rowsort label-4539
SELECT - - 36 * + ( COUNT( * ) ) - 46 AS col0 FROM tab1 cor0
----
62

skipif mysql # not compatible
query I rowsort label-4539
SELECT - - 36 * + ( COUNT ( * ) ) - 46 AS col0 FROM tab1 cor0
----
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - - + 86 col2 FROM tab0 cor0
----
101
173
183

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4541
SELECT - 74 * - + CAST( NULL AS SIGNED ) + 27 AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4541
SELECT - 74 * - + CAST ( NULL AS INTEGER ) + 27 AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + 59 AS col2 FROM tab2 WHERE NOT NULL BETWEEN col2 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - 73 col0 FROM tab1 WHERE - col0 + - col2 BETWEEN ( NULL ) AND ( - ( + col1 ) )
----

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE NOT + - 90 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col2 NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT DISTINCT - col0 FROM tab0 WHERE NULL NOT BETWEEN + 58 * + col0 AND 24
----

query I rowsort
SELECT + 21 FROM tab0 WHERE NOT - ( + 89 ) * col1 IS NULL
----
21
21
21

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab1 WHERE ( + 70 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4549
SELECT DISTINCT + - CAST( - col1 AS SIGNED ) FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-4549
SELECT DISTINCT + - CAST ( - col1 AS INTEGER ) FROM tab0 AS cor0
----
1
21
81

query I rowsort
SELECT - 11 + 93 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL NOT BETWEEN + col1 AND + 42 + ( + col0 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + ( - col0 ) col2, col1 * 72 FROM tab1 AS cor0
----
-51
1008
-85
360
-91
3384

query I rowsort
SELECT col2 * 57 FROM tab1
----
3363
3876
5472

query IIIIII rowsort
SELECT * FROM tab1 cor0 LEFT JOIN tab0 AS cor1 ON NOT NULL < ( NULL )
----
18 values hashing to d882cc47988b8673bd5cc0da3b69bcc6

query I rowsort
SELECT - col1 * - col0 FROM tab2 AS cor0 WHERE NOT ( - ( + col0 ) ) BETWEEN col0 AND ( - 12 )
----
2346
4928
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-4555
SELECT - SUM( DISTINCT + col0 ) + - 78 AS col1 FROM tab1 AS cor0 WHERE col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4555
SELECT - SUM ( DISTINCT + col0 ) + - 78 AS col1 FROM tab1 AS cor0 WHERE col2 IS NULL
----
NULL

query I rowsort
SELECT ALL 2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
2
2
2

query I rowsort
SELECT DISTINCT - col0 + + 0 FROM tab0
----
-15
-87
-97

query III rowsort
SELECT * FROM tab1 WHERE ( ( ( NOT NULL IN ( + 57 + 7 ) ) ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4559
SELECT - ( SUM( col2 ) ) + CAST( COUNT( ALL + + col1 ) AS SIGNED ) FROM tab2
----
-118

skipif mysql # not compatible
query I rowsort label-4559
SELECT - ( SUM ( col2 ) ) + CAST ( COUNT ( ALL + + col1 ) AS INTEGER ) FROM tab2
----
-118

query I rowsort
SELECT - col2 + - + col1 FROM tab0
----
-100
-128
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-4561
SELECT - 35 + + COUNT( * ) col2 FROM tab1
----
-32

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4561
SELECT - 35 + + COUNT ( * ) col2 FROM tab1
----
-32

query I rowsort
SELECT ALL - 2 * + - 53 FROM tab2 AS cor0
----
106
106
106

onlyif mysql # aggregate syntax: 
query I rowsort label-4563
SELECT + SUM( DISTINCT col0 ) AS col2 FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-4563
SELECT + SUM ( DISTINCT col0 ) AS col2 FROM tab1
----
227

query I rowsort
SELECT DISTINCT 57 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
57

query I rowsort
SELECT DISTINCT + 77 + + col1 AS col2 FROM tab1
----
124
82
91

query I rowsort
SELECT 45 - - col1 FROM tab1
----
50
59
92

query I rowsort
SELECT - AVG ( DISTINCT col1 ) FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4568
SELECT DISTINCT + + CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED ) + + 33, - 65 AS col2 FROM tab2 AS cor0
----
NULL
-65

skipif mysql # not compatible
query II rowsort label-4568
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) + + 33, - 65 AS col2 FROM tab2 AS cor0
----
NULL
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4569
SELECT - 33 * col1 * - + ( - CAST( col0 AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
-3201
-40095
-60291

skipif mysql # not compatible
query I rowsort label-4569
SELECT - 33 * col1 * - + ( - CAST ( col0 AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
-3201
-40095
-60291

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4570
SELECT + + col2 * + col0 * + CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4570
SELECT + + col2 * + col0 * + CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 56 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-56

query I rowsort
SELECT + col1 FROM tab1 cor0 WHERE NOT 4 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( + col1 - - - col1 ) <= NULL
----

query I rowsort
SELECT ALL + col2 AS col2 FROM tab0 WHERE NULL IS NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4575
SELECT MIN( - 45 ) FROM tab0
----
-45

skipif mysql # not compatible
query I rowsort label-4575
SELECT MIN ( - 45 ) FROM tab0
----
-45

query I rowsort
SELECT DISTINCT 74 * col2 AS col2 FROM tab0
----
3478
7326
740

query I rowsort
SELECT - col0 FROM tab1 WHERE NOT col0 = col0
----

query II rowsort
SELECT DISTINCT - 80 AS col2, 45 AS col2 FROM tab1
----
-80
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4579
SELECT DISTINCT MAX( - 4 ) col1 FROM tab1 AS cor0
----
-4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4579
SELECT DISTINCT MAX ( - 4 ) col1 FROM tab1 AS cor0
----
-4

query I rowsort
SELECT col1 + + col1 AS col0 FROM tab0 cor0
----
162
2
42

query I rowsort
SELECT ALL + 25 + 49 FROM tab1 AS cor0
----
74
74
74

query I rowsort
SELECT + + col2 * + col2 * - + col2 + - col2 FROM tab1 AS cor0
----
-205438
-314500
-884832

query I rowsort
SELECT DISTINCT + - col1 + col2 - + - col1 AS col2 FROM tab2 AS cor0
----
23
40
58

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NULL < col2 * - col0 / + col2 / - col0 * + ( + ( col0 ) )
----

query II rowsort
SELECT - 14 AS col2, col2 AS col2 FROM tab0
----
-14
10
-14
47
-14
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 44 + - 97 col2 FROM tab2
----
-53
-53
-53

query III rowsort
SELECT * FROM tab2 WHERE + + 32 NOT BETWEEN - col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4588
SELECT DISTINCT - COUNT( * ), COUNT( * ) col2 FROM tab2
----
-3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4588
SELECT DISTINCT - COUNT ( * ), COUNT ( * ) col2 FROM tab2
----
-3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4589
SELECT DISTINCT - 82 * + COUNT( * ) AS col1 FROM tab2
----
-246

skipif mysql # not compatible
query I rowsort label-4589
SELECT DISTINCT - 82 * + COUNT ( * ) AS col1 FROM tab2
----
-246

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + ( + col1 ) * + col0 NOT IN ( - ( - col0 ) )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 88 NOT BETWEEN - col0 + - 18 AND + - 1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 93 - + - col0 FROM tab0 AS cor0 WHERE NOT + col1 IN ( + ( + col0 ) )
----
-6
-78
4

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - + ( + col2 ) <> NULL )
----

query I rowsort
SELECT - - col2 - - + col1 * col0 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
4345
484
810

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL IN ( - - 81 * col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4596
SELECT + col2, - 32 / + + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
query II rowsort label-4596
SELECT + col2, - 32 / + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
23
NULL
40
NULL
58
NULL

query I rowsort
SELECT 17 * - col0 + - + 18 FROM tab1 AS cor0
----
-1463
-1565
-885

query I rowsort
SELECT + + col0 AS col0 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col0, - col2 + col2 + + col1, + 78 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col0 + + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4600
SELECT - COUNT( * ) DIV + 77 col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4600
SELECT - COUNT ( * ) / + 77 col1 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4601
SELECT ALL + SUM( ALL + + col2 ) AS col2 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-4601
SELECT ALL + SUM ( ALL + + col2 ) AS col2 FROM tab1 AS cor0
----
223

query I rowsort
SELECT + 68 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
68
68
68

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4603
SELECT DISTINCT CAST( NULL AS DECIMAL ) AS col2 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4603
SELECT DISTINCT CAST ( NULL AS REAL ) AS col2 FROM tab1 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 * + col2 col1 FROM tab2 AS cor0
----
-1058
-2560
-4350

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4605
SELECT DISTINCT COUNT( * ) DIV + ( - 95 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4605
SELECT DISTINCT COUNT ( * ) / + ( - 95 ) FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4606
SELECT + - CAST( + 0 AS SIGNED ) + + col2 AS col2, + col2 * + col0 FROM tab0 AS cor0
----
10
870
47
705
99
9603

skipif mysql # not compatible
query II rowsort label-4606
SELECT + - CAST ( + 0 AS INTEGER ) + + col2 AS col2, + col2 * + col0 FROM tab0 AS cor0
----
10
870
47
705
99
9603

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 53 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4608
SELECT ALL + col0 DIV 87 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4608
SELECT ALL + col0 / 87 FROM tab2
----
0
0
0

query II rowsort
SELECT DISTINCT - 28, col1 AS col1 FROM tab2
----
-28
51
-28
67
-28
77

query I rowsort
SELECT DISTINCT + col2 FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col0 * + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 28 + + + col1 AS col0 FROM tab2 AS cor0
----
23
39
49

query I rowsort
SELECT DISTINCT + col0 + - + col0 * + - 88 + + col2 AS col0 FROM tab0 cor0
----
1382
7753
8732

onlyif mysql # DIV for integer division: 
query I rowsort label-4614
SELECT DISTINCT col1 + - + 42 DIV + + 52 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-4614
SELECT DISTINCT col1 + - + 42 / + + 52 FROM tab2 AS cor0
----
51
67
77

query III rowsort
SELECT * FROM tab0 WHERE - + col0 <> col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 41 + + 99 - + - col1 * - + col0 * + col2 AS col1 FROM tab0
----
-18212
-57047
-9545

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4617
SELECT * FROM tab1 WHERE NULL IN ( - col2, + col1 * + + col1 + - col0 * + 18 * - CAST( NULL AS SIGNED ), - - col2 + col2 )
----

skipif mysql # not compatible
query III rowsort label-4617
SELECT * FROM tab1 WHERE NULL IN ( - col2, + col1 * + + col1 + - col0 * + 18 * - CAST ( NULL AS INTEGER ), - - col2 + col2 )
----

query I rowsort
SELECT + col0 + + 9 FROM tab1
----
100
60
94

query I rowsort
SELECT + col2 AS col0 FROM tab0 WHERE - 45 - 11 * - ( + col0 ) + col1 * col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 + - col1 col1 FROM tab2 WHERE NOT - col1 IS NOT NULL
----

query I rowsort
SELECT - 89 * - 30 FROM tab0
----
2670
2670
2670

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 54 + - - col0 NOT IN ( + 87, col0 * + col1, + col1 - + + 73 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col0 - + + col1 FROM tab0
----
-108
-96
-98

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 + - 41 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4625
SELECT ALL + 81 + + COUNT( * ) col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4625
SELECT ALL + 81 + + COUNT ( * ) col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
90

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4626
SELECT DISTINCT - ( CAST( NULL AS DECIMAL ) ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-4626
SELECT DISTINCT - ( CAST ( NULL AS REAL ) ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4627
SELECT ALL SUM( DISTINCT - 69 ) col2 FROM tab2
----
-69

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4627
SELECT ALL SUM ( DISTINCT - 69 ) col2 FROM tab2
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-4628
SELECT ALL - COUNT( DISTINCT + 57 ) FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4628
SELECT ALL - COUNT ( DISTINCT + 57 ) FROM tab2 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4629
SELECT ALL + - MIN( + col1 ) AS col2 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-4629
SELECT ALL + - MIN ( + col1 ) AS col2 FROM tab2 AS cor0
----
-51

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE NOT - col0 / ( - 97 ) / - + col2 IS NULL
----
51
85
91

query I rowsort
SELECT col1 * - + col1 AS col2 FROM tab2 AS cor0
----
-2601
-4489
-5929

onlyif mysql # aggregate syntax: 
query I rowsort label-4632
SELECT + - MIN( DISTINCT - + col1 ) * - ( - - COUNT( * ) ) col0 FROM tab0 AS cor0
----
-243

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4632
SELECT + - MIN ( DISTINCT - + col1 ) * - ( - - COUNT ( * ) ) col0 FROM tab0 AS cor0
----
-243

onlyif mysql # aggregate syntax: 
query I rowsort label-4633
SELECT DISTINCT - MIN( - col1 ) col2 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4633
SELECT DISTINCT - MIN ( - col1 ) col2 FROM tab2 AS cor0
----
77

query I rowsort
SELECT DISTINCT - + col0 FROM tab2 cor0 WHERE NOT col0 IS NOT NULL
----

query I rowsort
SELECT - col2 * + + 90 FROM tab0 AS cor0
----
-4230
-8910
-900

query I rowsort
SELECT ALL - col2 * + 27 AS col0 FROM tab2
----
-1080
-1566
-621

query I rowsort
SELECT ALL - col0 * - 60 * col2 FROM tab1
----
293760
300900
371280

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL <> + - ( + col0 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE - 60 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4640
SELECT + + COUNT( ALL col0 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4640
SELECT + + COUNT ( ALL col0 ) AS col0 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4641
SELECT DISTINCT 23 + - COUNT( DISTINCT - col1 ) AS col2 FROM tab0 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-4641
SELECT DISTINCT 23 + - COUNT ( DISTINCT - col1 ) AS col2 FROM tab0 AS cor0
----
20

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 1 > + - col0
----

query I rowsort
SELECT - 8 FROM tab0 AS cor0 CROSS JOIN tab2 cor1 WHERE - 67 IS NULL
----

query I rowsort
SELECT ( + ( + + 52 ) ) AS col1 FROM tab2 AS cor0
----
52
52
52

onlyif mysql # aggregate syntax: 
query I rowsort label-4645
SELECT - - COUNT( * ) FROM tab1 AS cor0 WHERE NULL <= 36 - - ( - + ( + - col1 ) )
----
0

skipif mysql # not compatible
query I rowsort label-4645
SELECT - - COUNT ( * ) FROM tab1 AS cor0 WHERE NULL <= 36 - - ( - + ( + - col1 ) )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4646
SELECT - MAX( DISTINCT + - col2 ) AS col2, 23 FROM tab2 AS cor0
----
23
23

skipif mysql # not compatible
query II rowsort label-4646
SELECT - MAX ( DISTINCT + - col2 ) AS col2, 23 FROM tab2 AS cor0
----
23
23

query I rowsort
SELECT - 70 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 35707a5d99c98b2657c084a50ff1b073

query I rowsort
SELECT ALL 49 * col1 + + col2 AS col2 FROM tab0
----
1039
148
4016

query I rowsort
SELECT DISTINCT col0 * - + col2 - - + 74 AS col2 FROM tab1
----
-4822
-4941
-6114

query III rowsort
SELECT * FROM tab2 WHERE ( col0 + + col0 + - ( - - col1 ) * - + col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4651
SELECT - COUNT( * ) - - + COUNT( * ) + + 12 - - - MAX( ALL + col0 ) FROM tab2
----
-63

skipif mysql # not compatible
query I rowsort label-4651
SELECT - COUNT ( * ) - - + COUNT ( * ) + + 12 - - - MAX ( ALL + col0 ) FROM tab2
----
-63

query II rowsort
SELECT + + col1 AS col1, 80 FROM tab2 WHERE 44 IS NOT NULL
----
51
80
67
80
77
80

query I rowsort
SELECT + col1 * 7 * ( - 31 ) + + 9 AS col0 FROM tab1 AS cor0
----
-10190
-1076
-3029

query I rowsort
SELECT + + ( + col2 ) + - + 63 FROM tab0 AS cor0
----
-16
-53
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4655
SELECT DISTINCT - ( 23 ) + + ( + CAST( + col1 AS SIGNED ) ) * 55 * - 37 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-4655
SELECT DISTINCT - ( 23 ) + + ( + CAST ( + col1 AS INTEGER ) ) * 55 * - 37 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT col1 + - 28 FROM tab1 AS cor0 WHERE col0 <= ( + + col2 )
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4657
SELECT ALL - + col1 * + CAST( - + 80 AS SIGNED ) + - 71 FROM tab2 WHERE NULL = NULL
----

skipif mysql # not compatible
query I rowsort label-4657
SELECT ALL - + col1 * + CAST ( - + 80 AS INTEGER ) + - 71 FROM tab2 WHERE NULL = NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( 26 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col2 * col1 + - + 82 FROM tab1 AS cor0 WHERE NOT col1 * + - 21 IN ( - + ( - - 51 ) )
----
1262
213
3114

query I rowsort
SELECT - 83 * 40 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-3320
-3320
-3320

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 + + col1 + - + col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + - col0 NOT IN ( 81, - col1, - - col0 - + col0, col2 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 70 - col1 = - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - ( + 61 ) FROM tab2
----
-61
-61
-61

query I rowsort
SELECT - col1 * + - 84 AS col1 FROM tab2
----
4284
5628
6468

query I rowsort
SELECT + col2 + - - col2 AS col2 FROM tab1 cor0
----
118
136
192

onlyif mysql # aggregate syntax: 
query I rowsort label-4667
SELECT DISTINCT 17 * COUNT( ALL - col2 ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
51

skipif mysql # not compatible
query I rowsort label-4667
SELECT DISTINCT 17 * COUNT ( ALL - col2 ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
51

query I rowsort
SELECT DISTINCT col0 + + + ( - + 57 ) AS col0 FROM tab2
----
-11
18
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4669
SELECT ( 7 ) * MIN( ALL - CAST( - + col0 AS SIGNED ) ) FROM tab1
----
357

skipif mysql # not compatible
query I rowsort label-4669
SELECT ( 7 ) * MIN ( ALL - CAST ( - + col0 AS INTEGER ) ) FROM tab1
----
357

query II rowsort
SELECT DISTINCT + col1 AS col1, 93 FROM tab1
----
14
93
47
93
5
93

onlyif mysql # aggregate syntax: 
query I rowsort label-4671
SELECT 38 * COUNT( ALL - 6 ) FROM tab1
----
114

skipif mysql # not compatible
query I rowsort label-4671
SELECT 38 * COUNT ( ALL - 6 ) FROM tab1
----
114

query I rowsort
SELECT - col1 * - + col1 - + col2 AS col0 FROM tab2 AS cor0
----
2578
4431
5889

onlyif mysql # aggregate syntax: 
query II rowsort label-4673
SELECT ALL ( + MIN( 47 ) ) * + COUNT( * ), ( + + COUNT( * ) ) + 45 AS col2 FROM tab1 AS cor0
----
141
48

skipif mysql # not compatible
query II rowsort label-4673
SELECT ALL ( + MIN ( 47 ) ) * + COUNT ( * ), ( + + COUNT ( * ) ) + 45 AS col2 FROM tab1 AS cor0
----
141
48

query I rowsort
SELECT - 68 FROM tab0 cor0 WHERE ( + 57 ) IS NULL
----

query I rowsort
SELECT + + 40 + 29 + - 44 * + + col0 FROM tab1 AS cor0
----
-2175
-3671
-3935

onlyif mysql # DIV for integer division: 
query I rowsort label-4676
SELECT + col0 + col1 + + - 63 + + 2 DIV + col0 FROM tab0
----
33
35
45

skipif mysql # not compatible
query I rowsort label-4676
SELECT + col0 + col1 + + - 63 + + 2 / + col0 FROM tab0
----
33
35
45

query I rowsort
SELECT + 16 + + 67 + - col0 * col0 AS col2 FROM tab2
----
-2033
-4013
-5542

query II rowsort
SELECT ALL + col0 + - col2 + - col2 AS col1, - 30 FROM tab2
----
-16
-30
-41
-30
0
-30

query I rowsort
SELECT DISTINCT + col0 + + 62 FROM tab1 WHERE + col0 + - col0 IS NOT NULL
----
113
147
153

onlyif mysql # DIV for integer division: 
query I rowsort label-4680
SELECT + 18 DIV - col1 + + + 44 FROM tab1
----
41
43
44

skipif mysql # not compatible
query I rowsort label-4680
SELECT + 18 / - col1 + + + 44 FROM tab1
----
41
43
44

onlyif mysql # aggregate syntax: 
query I rowsort label-4681
SELECT DISTINCT - 26 - MIN( DISTINCT - + col2 ) FROM tab0
----
73

skipif mysql # not compatible
query I rowsort label-4681
SELECT DISTINCT - 26 - MIN ( DISTINCT - + col2 ) FROM tab0
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-4682
SELECT 74 * + COUNT( * ) * - 84 FROM tab2
----
-18648

skipif mysql # not compatible
query I rowsort label-4682
SELECT 74 * + COUNT ( * ) * - 84 FROM tab2
----
-18648

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4683
SELECT ALL * FROM tab1 WHERE + col0 < - ( + 60 ) * col0 + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4683
SELECT ALL * FROM tab1 WHERE + col0 < - ( + 60 ) * col0 + CAST ( NULL AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4684
SELECT ALL - 33 - - col0 - - - ( + col1 ) * + col2 - col0 * - - 35, col2 * col2 DIV + + col2 AS col2 FROM tab2
----
-2770
23
-5289
40
-6469
58

skipif mysql # not compatible
query II rowsort label-4684
SELECT ALL - 33 - - col0 - - - ( + col1 ) * + col2 - col0 * - - 35, col2 * col2 / + + col2 AS col2 FROM tab2
----
-2770
23
-5289
40
-6469
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 15 * - col1 col0, - col0 * - 79 - col1 FROM tab2
----
-1005
5858
-1155
4979
-765
3583

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4686
SELECT DISTINCT COUNT( * ) - + COUNT( + + col2 ) DIV + - 35 col2 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4686
SELECT DISTINCT COUNT ( * ) - + COUNT ( + + col2 ) / + - 35 col2 FROM tab2
----
3

query I rowsort
SELECT ALL - + col2 * + 79 FROM tab2 AS cor0
----
-1817
-3160
-4582

onlyif mysql # DIV for integer division: 
query I rowsort label-4688
SELECT DISTINCT - + col2 DIV + 98 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4688
SELECT DISTINCT - + col2 / + 98 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4689
SELECT + 80 AS col2, COUNT( - col1 ) AS col1 FROM tab2
----
80
3

skipif mysql # not compatible
query II rowsort label-4689
SELECT + 80 AS col2, COUNT ( - col1 ) AS col1 FROM tab2
----
80
3

query I rowsort
SELECT ALL 82 * - + 51 FROM tab2
----
-4182
-4182
-4182

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 71 * - - col2 + + col1 BETWEEN NULL AND - ( + ( + 15 ) )
----

query I rowsort
SELECT - col0 * col1 + - - 64 * + - 37 AS col0 FROM tab2 AS cor0
----
-4714
-7296
-7393

onlyif mysql # aggregate syntax: 
query I rowsort label-4693
SELECT - COUNT( * ) * + COUNT( col0 ) AS col0 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-4693
SELECT - COUNT ( * ) * + COUNT ( col0 ) AS col0 FROM tab2
----
-9

query II rowsort
SELECT DISTINCT + + col2, col2 + - + col2 FROM tab1 WHERE NOT + col1 IS NULL
----
59
0
68
0
96
0

query I rowsort
SELECT + AVG ( DISTINCT + 79 ) AS col1 FROM tab1 WHERE NULL <= + col2 * - ( - ( - col1 ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4696
SELECT - CAST( + col2 AS SIGNED ) * - col0 AS col0 FROM tab1 WHERE ( col0 >= - col1 )
----
4896
5015
6188

skipif mysql # not compatible
query I rowsort label-4696
SELECT - CAST ( + col2 AS INTEGER ) * - col0 AS col0 FROM tab1 WHERE ( col0 >= - col1 )
----
4896
5015
6188

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4697
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT IN ( + col1, 73 * + - col2, CAST( col1 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-4697
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT IN ( + col1, 73 * + - col2, CAST ( col1 AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4698
SELECT DISTINCT - 61 * + - COUNT( * ) + + - MIN( ALL col0 ) AS col1 FROM tab2 AS cor0
----
137

skipif mysql # not compatible
query I rowsort label-4698
SELECT DISTINCT - 61 * + - COUNT ( * ) + + - MIN ( ALL col0 ) AS col1 FROM tab2 AS cor0
----
137

query I rowsort
SELECT DISTINCT + - 43 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-43

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - + col0 + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT - - col1, + 13 FROM tab0 AS cor0 WHERE col2 BETWEEN + + 91 AND - col1
----

query I rowsort
SELECT - + col0 * + ( col2 ) AS col0 FROM tab0 cor0
----
-705
-870
-9603

query II rowsort
SELECT + col1 AS col2, col0 + - col1 AS col0 FROM tab2 AS cor0
----
51
-5
67
8
77
-13

query I rowsort
SELECT + 55 * - col2 + + 30 FROM tab0 cor0
----
-2555
-520
-5415

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT 31 IS NOT NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 98 col2 FROM tab2 AS cor0 WHERE NOT ( - 86 + - 34 >= NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4707
SELECT + 25 - + - COUNT( * ) * - 48 AS col2 FROM tab0
----
-119

skipif mysql # not compatible
query I rowsort label-4707
SELECT + 25 - + - COUNT ( * ) * - 48 AS col2 FROM tab0
----
-119

onlyif mysql # aggregate syntax: 
query I rowsort label-4708
SELECT ALL - SUM( ALL + col0 ) AS col0 FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-4708
SELECT ALL - SUM ( ALL + col0 ) AS col0 FROM tab1
----
-227

onlyif mysql # aggregate syntax: 
query I rowsort label-4709
SELECT DISTINCT + 66 * + SUM( + 86 ) FROM tab1
----
17028

skipif mysql # not compatible
query I rowsort label-4709
SELECT DISTINCT + 66 * + SUM ( + 86 ) FROM tab1
----
17028

query I rowsort
SELECT + 54 FROM tab2 WHERE NOT - + col0 BETWEEN - 17 + - col1 * - - col1 / 33 AND col1 + col2 * + col0
----

query I rowsort
SELECT ALL ( 60 ) * + ( col2 ) AS col0 FROM tab0
----
2820
5940
600

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4712
SELECT * FROM tab1 AS cor0 WHERE NOT CAST( NULL AS DECIMAL ) BETWEEN - + 38 AND NULL
----

skipif mysql # not compatible
query III rowsort label-4712
SELECT * FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS REAL ) BETWEEN - + 38 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE 57 * + + col2 NOT BETWEEN NULL AND + - 18
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col1 + + + col2 FROM tab2 AS cor0 WHERE NOT - col1 IS NULL
----
117
125
74

query I rowsort
SELECT DISTINCT 85 AS col1 FROM tab2 AS cor0 WHERE NOT - col1 IS NULL
----
85

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 > col0 + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4717
SELECT SUM( ALL + 84 ) AS col2 FROM tab0
----
252

skipif mysql # not compatible
query I rowsort label-4717
SELECT SUM ( ALL + 84 ) AS col2 FROM tab0
----
252

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( 69 IS NOT NULL )
----

query I rowsort
SELECT - ( - 20 ) AS col1 FROM tab0 AS cor0
----
20
20
20

onlyif mysql # aggregate syntax: 
query II rowsort label-4720
SELECT DISTINCT SUM( DISTINCT + + col0 ) AS col0, - COUNT( * ) FROM tab1 AS cor0
----
227
-3

skipif mysql # not compatible
query II rowsort label-4720
SELECT DISTINCT SUM ( DISTINCT + + col0 ) AS col0, - COUNT ( * ) FROM tab1 AS cor0
----
227
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4721
SELECT - - ( MIN( + col2 ) ) FROM tab0 cor0
----
10

skipif mysql # not compatible
query I rowsort label-4721
SELECT - - ( MIN ( + col2 ) ) FROM tab0 cor0
----
10

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 >= 0
----

query I rowsort
SELECT ALL 12 * + + col0 * - - ( - 12 ) * - 2 FROM tab2 cor0
----
13248
18432
21600

query I rowsort
SELECT DISTINCT - 66 + + col2 FROM tab2
----
-26
-43
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-4725
SELECT ALL COUNT( * ) + 79 FROM tab2
----
82

skipif mysql # not compatible
query I rowsort label-4725
SELECT ALL COUNT ( * ) + 79 FROM tab2
----
82

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 NOT BETWEEN NULL AND + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4727
SELECT ALL - MAX( ALL 42 ) AS col0 FROM tab1
----
-42

skipif mysql # not compatible
query I rowsort label-4727
SELECT ALL - MAX ( ALL 42 ) AS col0 FROM tab1
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4728
SELECT 82 + COUNT( * ) + + 2 * SUM( - - col0 ) + + 1 + 98 * - + 97 + - - CAST( NULL AS SIGNED ) + - COUNT( ALL - - col1 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4728
SELECT 82 + COUNT ( * ) + + 2 * SUM ( - - col0 ) + + 1 + 98 * - + 97 + - - CAST ( NULL AS INTEGER ) + - COUNT ( ALL - - col1 ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4729
SELECT ALL - 65 DIV - COUNT( + col2 ) FROM tab1
----
21

skipif mysql # not compatible
query I rowsort label-4729
SELECT ALL - 65 / - COUNT ( + col2 ) FROM tab1
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-4730
SELECT DISTINCT COUNT( * ) + + + 21 - 2 * ( - COUNT( * ) ) * + MAX( ALL + col2 ) FROM tab1 AS cor0
----
600

skipif mysql # not compatible
query I rowsort label-4730
SELECT DISTINCT COUNT ( * ) + + + 21 - 2 * ( - COUNT ( * ) ) * + MAX ( ALL + col2 ) FROM tab1 AS cor0
----
600

query II rowsort
SELECT + col2, ( 59 ) AS col1 FROM tab1 AS cor0
----
59
59
68
59
96
59

query I rowsort
SELECT - col1 - ( - + col2 ) + 62 * + col0 * + + col2 AS col1 FROM tab2 AS cor0
----
158683
269691
65568

onlyif mysql # aggregate syntax: 
query II rowsort label-4733
SELECT DISTINCT - 44 * + + COUNT( * ), MIN( DISTINCT + + 25 ) + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-132
28

skipif mysql # not compatible
query II rowsort label-4733
SELECT DISTINCT - 44 * + + COUNT ( * ), MIN ( DISTINCT + + 25 ) + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-132
28

query I rowsort
SELECT ALL 47 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN + col1 AND NULL
----

query I rowsort
SELECT DISTINCT - 90 + - col1 AS col1 FROM tab2 AS cor0
----
-141
-157
-167

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 71 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-4737
SELECT 47 DIV + col1 - + col1 + - - col2 * + col2 + col2 AS col1 FROM tab1 AS cor0
----
3544
4646
9301

skipif mysql # not compatible
query I rowsort label-4737
SELECT 47 / + col1 - + col1 + - - col2 * + col2 + col2 AS col1 FROM tab1 AS cor0
----
3544
4646
9301

onlyif mysql # aggregate syntax: 
query I rowsort label-4738
SELECT DISTINCT + MAX( ALL + 29 ) FROM tab1
----
29

skipif mysql # not compatible
query I rowsort label-4738
SELECT DISTINCT + MAX ( ALL + 29 ) FROM tab1
----
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4739
SELECT DISTINCT 88 DIV - + COUNT( * ) FROM tab1
----
-29

skipif mysql # not compatible
query I rowsort label-4739
SELECT DISTINCT 88 / - + COUNT ( * ) FROM tab1
----
-29

query II rowsort
SELECT - 53, - col0 AS col0 FROM tab0
----
-53
-15
-53
-87
-53
-97

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL <> + 20
----

query II rowsort
SELECT - + 51 AS col0, col1 * - 88 FROM tab1 AS cor0
----
-51
-1232
-51
-4136
-51
-440

query I rowsort
SELECT + + 97 AS col1 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 BETWEEN - + 8 AND 99 * - col0 * + 44 + + col2 * - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-4745
SELECT + 40 DIV col1 AS col1 FROM tab0
----
0
1
40

skipif mysql # not compatible
query I rowsort label-4745
SELECT + 40 / col1 AS col1 FROM tab0
----
0
1
40

query I rowsort
SELECT 66 + + - col1 + - - col1 FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 25 * + + 31 + + + col0 col2 FROM tab0 AS cor0
----
-678
-688
-760

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col2 + + ( col2 ) IS NULL
----

query I rowsort
SELECT DISTINCT - - 18 AS col2 FROM tab0 AS cor0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-4750
SELECT ALL + - 87 + COUNT( * ) + + COUNT( * ) col2 FROM tab2 AS cor0
----
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4750
SELECT ALL + - 87 + COUNT ( * ) + + COUNT ( * ) col2 FROM tab2 AS cor0
----
-81

query I rowsort
SELECT ALL - 42 * col1 * + col2 * + col2 + - col0 + + ( - 75 ) + + col2 FROM tab1 AS cor0
----
-5419038
-731111
-9127874

onlyif mysql # aggregate syntax: 
query I rowsort label-4752
SELECT COUNT( * ) + + - MAX( 58 ) AS col0 FROM tab2 AS cor0
----
-55

skipif mysql # not compatible
query I rowsort label-4752
SELECT COUNT ( * ) + + - MAX ( 58 ) AS col0 FROM tab2 AS cor0
----
-55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - col1 * - ( + col1 ) col2 FROM tab0
----
2
462
6642

onlyif mysql # aggregate syntax: 
query I rowsort label-4754
SELECT COUNT( - - col1 ) col0 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4754
SELECT COUNT ( - - col1 ) col0 FROM tab1
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4755
SELECT MAX( + col1 ) * + CAST( - 15 AS SIGNED ) FROM tab0
----
-1215

skipif mysql # not compatible
query I rowsort label-4755
SELECT MAX ( + col1 ) * + CAST ( - 15 AS INTEGER ) FROM tab0
----
-1215

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4756
SELECT DISTINCT COUNT( * ) DIV + + COUNT( * ) AS col0 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-4756
SELECT DISTINCT COUNT ( * ) / + + COUNT ( * ) AS col0 FROM tab1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4757
SELECT DISTINCT + col0 / + - col0 + + CAST( NULL AS SIGNED ) FROM tab2 WHERE NOT - 1 * 71 - - + col2 + - 49 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4757
SELECT DISTINCT + col0 / + - col0 + + CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT - 1 * 71 - - + col2 + - 49 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4758
SELECT ALL ( - col0 ) DIV - 46 AS col0 FROM tab0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-4758
SELECT ALL ( - col0 ) / - 46 AS col0 FROM tab0
----
0
1
2

query I rowsort
SELECT DISTINCT - + ( + col0 ) AS col0 FROM tab1 cor0
----
-51
-85
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4760
SELECT DISTINCT + 67 + ( + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4760
SELECT DISTINCT + 67 + ( + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT 65 + - + 87 FROM tab0 AS cor0
----
-22
-22
-22

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 30 IS NOT NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

query I rowsort
SELECT DISTINCT + ( - 17 ) AS col1 FROM tab0 AS cor0
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4764
SELECT + col0 * ( CAST( NULL AS SIGNED ) ) - + - col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4764
SELECT + col0 * ( CAST ( NULL AS INTEGER ) ) - + - col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4765
SELECT * FROM tab1 AS cor0 WHERE NOT CAST( NULL AS DECIMAL ) - - col1 / + ( - + col1 ) > NULL
----

skipif mysql # not compatible
query III rowsort label-4765
SELECT * FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS REAL ) - - col1 / + ( - + col1 ) > NULL
----

query I rowsort
SELECT - ( + 82 ) AS col1 FROM tab1 AS cor0
----
-82
-82
-82

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4767
SELECT ALL + col0 AS col1, - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-4767
SELECT ALL + col0 AS col1, - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4768
SELECT + 95 * - + ( MAX( + col2 ) ) col0 FROM tab1 AS cor0
----
-9120

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4768
SELECT + 95 * - + ( MAX ( + col2 ) ) col0 FROM tab1 AS cor0
----
-9120

query II rowsort
SELECT - 75, col0 FROM tab0 AS cor0
----
-75
15
-75
87
-75
97

query II rowsort
SELECT DISTINCT - + col1, + col0 FROM tab2 AS cor0
----
-51
46
-67
75
-77
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - - col1 col0 FROM tab1
----
1344
295
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-4772
SELECT DISTINCT + 39 + + 0 - - + COUNT( DISTINCT col0 ) FROM tab1 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-4772
SELECT DISTINCT + 39 + + 0 - - + COUNT ( DISTINCT col0 ) FROM tab1 AS cor0
----
42

query I rowsort
SELECT ALL col2 * 70 AS col1 FROM tab0
----
3290
6930
700

query I rowsort
SELECT DISTINCT - + col2 * - + col0 * + + col2 * - 17 FROM tab1 WHERE NOT + - col2 / 59 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4775
SELECT DISTINCT - COUNT( * ) * + - ( - MAX( + 28 ) ) FROM tab2 WHERE NULL IS NULL
----
-84

skipif mysql # not compatible
query I rowsort label-4775
SELECT DISTINCT - COUNT ( * ) * + - ( - MAX ( + 28 ) ) FROM tab2 WHERE NULL IS NULL
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4776
SELECT ALL - col2 * + CAST( - 4 AS SIGNED ) + - col2 AS col0 FROM tab1 AS cor0
----
177
204
288

skipif mysql # not compatible
query I rowsort label-4776
SELECT ALL - col2 * + CAST ( - 4 AS INTEGER ) + - col2 AS col0 FROM tab1 AS cor0
----
177
204
288

query I rowsort
SELECT ALL + col1 FROM tab1 cor0 WHERE NOT - col2 IS NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4778
SELECT + COUNT( col2 ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4778
SELECT + COUNT ( col2 ) FROM tab0 cor0
----
3

query I rowsort
SELECT DISTINCT col0 + 78 FROM tab2 AS cor0
----
124
142
153

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4780
SELECT * FROM tab0 WHERE NULL >= - + CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-4780
SELECT * FROM tab0 WHERE NULL >= - + CAST ( NULL AS REAL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 - + col2 col1 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4782
SELECT DISTINCT + 55 * - MAX( - - col1 ) AS col1 FROM tab0
----
-4455

skipif mysql # not compatible
query I rowsort label-4782
SELECT DISTINCT + 55 * - MAX ( - - col1 ) AS col1 FROM tab0
----
-4455

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col0 = - 96 * - + col1 + + + 78
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 cor0 WHERE + 91 BETWEEN + col1 * - 56 AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND - 37
----

query I rowsort
SELECT 20 - + + col0 + + col0 * 37 AS col2 FROM tab1
----
1856
3080
3296

query I rowsort
SELECT col0 - + - ( + col0 ) FROM tab1
----
102
170
182

onlyif mysql # DIV for integer division: 
query I rowsort label-4788
SELECT 51 DIV 83 FROM tab2 cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL ) IS NULL
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-4788
SELECT 51 / 83 FROM tab2 cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL ) IS NULL
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + 44 ) >= - col2 / col1 * + ( - 69 ) * + 45
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col1 * - + col1 + col1 + - + col2 * - 47 AS col1 FROM tab0 AS cor0
----
4655
8851
932

query I rowsort
SELECT DISTINCT 66 AS col2 FROM tab0 cor0
----
66

query I rowsort
SELECT DISTINCT + - col1 AS col1 FROM tab2 AS cor0 WHERE NOT + 41 IS NULL
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4793
SELECT ALL CAST( + - 11 AS SIGNED ) AS col2 FROM tab2 cor0
----
-11
-11
-11

skipif mysql # not compatible
query I rowsort label-4793
SELECT ALL CAST ( + - 11 AS INTEGER ) AS col2 FROM tab2 cor0
----
-11
-11
-11

query II rowsort
SELECT + ( - + col2 ) AS col2, col1 FROM tab1 AS cor0
----
-59
5
-68
47
-96
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4795
SELECT SUM( ALL - - col0 ) FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-4795
SELECT SUM ( ALL - - col0 ) FROM tab2 AS cor0
----
185

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4796
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-4796
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4797
SELECT DISTINCT * FROM tab1 WHERE NOT - CAST( + - 9 AS SIGNED ) + + + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4797
SELECT DISTINCT * FROM tab1 WHERE NOT - CAST ( + - 9 AS INTEGER ) + + + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4798
SELECT + COUNT( * ) * + 5 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-4798
SELECT + COUNT ( * ) * + 5 FROM tab0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4799
SELECT ALL + - 75 + + - 44 + - COUNT( * ) * + 68 AS col0 FROM tab1 WHERE NOT NULL IS NULL
----
-119

skipif mysql # not compatible
query I rowsort label-4799
SELECT ALL + - 75 + + - 44 + - COUNT ( * ) * + 68 AS col0 FROM tab1 WHERE NOT NULL IS NULL
----
-119

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL BETWEEN NULL AND - + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4801
SELECT ALL + - 73 * COUNT( * ) AS col1 FROM tab1 cor0
----
-219

skipif mysql # not compatible
query I rowsort label-4801
SELECT ALL + - 73 * COUNT ( * ) AS col1 FROM tab1 cor0
----
-219

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4802
SELECT DISTINCT - CAST( 8 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-4802
SELECT DISTINCT - CAST ( 8 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-8

query I rowsort
SELECT ALL + ( - col1 ) FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-4804
SELECT ALL - - COUNT( - + col0 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4804
SELECT ALL - - COUNT ( - + col0 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT - 14 * - col2 + 61 AS col2 FROM tab1 AS cor0
----
1013
1405
887

query I rowsort
SELECT DISTINCT 36 AS col0 FROM tab0 cor0
----
36

query I rowsort
SELECT DISTINCT - + col0 + + - col0 AS col0 FROM tab2 cor0
----
-128
-150
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-4808
SELECT ALL MAX( - - 81 ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
81

skipif mysql # not compatible
query I rowsort label-4808
SELECT ALL MAX ( - - 81 ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-4809
SELECT DISTINCT + 9 DIV + col2 * col2 + + + col1 * + - col1 + - - col0 AS col2 FROM tab1 AS cor0
----
-145
-2118
60

skipif mysql # not compatible
query I rowsort label-4809
SELECT DISTINCT + 9 / + col2 * col2 + + + col1 * + - col1 + - - col0 AS col2 FROM tab1 AS cor0
----
-145
-2118
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4810
SELECT + COUNT( * ) DIV - 2 AS col2 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4810
SELECT + COUNT ( * ) / - 2 AS col2 FROM tab2 AS cor0
----
-1

query I rowsort
SELECT ALL + - 44 + - col2 FROM tab0 AS cor0
----
-143
-54
-91

query I rowsort
SELECT + 35 * col2 AS col1 FROM tab2
----
1400
2030
805

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4813
SELECT CAST( NULL AS SIGNED ) AS col1, + col0 * + col2 AS col2 FROM tab0
----
NULL
705
NULL
870
NULL
9603

skipif mysql # not compatible
query II rowsort label-4813
SELECT CAST ( NULL AS INTEGER ) AS col1, + col0 * + col2 AS col2 FROM tab0
----
NULL
705
NULL
870
NULL
9603

query I rowsort
SELECT ALL 50 + + - col2 AS col2 FROM tab1 WHERE NULL BETWEEN + - col2 AND + ( col1 )
----

query I rowsort
SELECT - ( - 53 ) AS col2 FROM tab2
----
53
53
53

onlyif mysql # aggregate syntax: 
query I rowsort label-4816
SELECT ALL COUNT( col1 ) + - - COUNT( + - col0 ) AS col0 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-4816
SELECT ALL COUNT ( col1 ) + - - COUNT ( + - col0 ) AS col0 FROM tab2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4817
SELECT ALL - ( - 43 ) * COUNT( * ) AS col0 FROM tab0
----
129

skipif mysql # not compatible
query I rowsort label-4817
SELECT ALL - ( - 43 ) * COUNT ( * ) AS col0 FROM tab0
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-4818
SELECT ALL + - MAX( ALL + 64 ) FROM tab1 WHERE NULL IS NULL
----
-64

skipif mysql # not compatible
query I rowsort label-4818
SELECT ALL + - MAX ( ALL + 64 ) FROM tab1 WHERE NULL IS NULL
----
-64

query I rowsort
SELECT DISTINCT col1 * - col1 * - + 25 * - 50 AS col0 FROM tab2
----
-3251250
-5611250
-7411250

query I rowsort
SELECT ALL + col0 * - + col2 FROM tab1
----
-4896
-5015
-6188

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + - 48 ) IS NULL
----

query I rowsort
SELECT DISTINCT + + col2 + - + col0 AS col0 FROM tab1 AS cor0
----
-23
-26
45

query I rowsort
SELECT - 18 + col0 AS col2 FROM tab0 AS cor0
----
-3
69
79

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4824
SELECT 30, + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
30
NULL
30
NULL
30
NULL

skipif mysql # not compatible
query II rowsort label-4824
SELECT 30, + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
30
NULL
30
NULL
30
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col0 ) * 99 * + - col2 col2 FROM tab2 AS cor0
----
-104742
-253440
-430650

query II rowsort
SELECT ALL col1 AS col2, 71 * + col0 FROM tab2 AS cor0
----
51
3266
67
5325
77
4544

query II rowsort
SELECT + col1 AS col2, + 9 * - 84 AS col2 FROM tab1 AS cor0
----
14
-756
47
-756
5
-756

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 84 col1, + col2 + col2 AS col1 FROM tab2 AS cor0
----
-84
116
-84
46
-84
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4829
SELECT DISTINCT + - ( - COUNT( * ) ) AS col0, SUM( ALL col0 ) * - ( - CAST( NULL AS SIGNED ) ) / COUNT( * ) FROM tab2 AS cor0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-4829
SELECT DISTINCT + - ( - COUNT ( * ) ) AS col0, SUM ( ALL col0 ) * - ( - CAST ( NULL AS INTEGER ) ) / COUNT ( * ) FROM tab2 AS cor0
----
3
NULL

query II rowsort
SELECT + col0 AS col0, col0 * col2 AS col2 FROM tab2 AS cor0
----
46
1058
64
2560
75
4350

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <= + 86
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4832
SELECT ALL + COUNT( + col2 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4832
SELECT ALL + COUNT ( + col2 ) AS col2 FROM tab1
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + + col1 * 64 col0 FROM tab0
----
13440
243648
6336

query II rowsort
SELECT col2 + + + col2 AS col1, - col1 FROM tab0 AS cor0
----
198
-1
20
-21
94
-81

query I rowsort
SELECT DISTINCT + col2 + + col1 * + + col1 AS col2 FROM tab1 AS cor0
----
2277
292
84

query I rowsort
SELECT ALL col1 + + + ( + + ( - col0 ) ) AS col1 FROM tab1 cor0
----
-37
-44
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-4837
SELECT DISTINCT + SUM( DISTINCT - - col2 ) FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-4837
SELECT DISTINCT + SUM ( DISTINCT - - col2 ) FROM tab2 AS cor0
----
121

query I rowsort
SELECT DISTINCT + 40 FROM tab1 WHERE NOT - + col0 IS NULL
----
40

query I rowsort
SELECT - 10 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f68f33032846e21ee6b2c668fc10355e

query I rowsort
SELECT + ( 69 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

query I rowsort
SELECT DISTINCT - + 89 FROM tab2 WHERE NOT - + 52 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4842
SELECT - SUM( DISTINCT - col1 ) * COUNT( * ) * + 1 AS col1 FROM tab2
----
585

skipif mysql # not compatible
query I rowsort label-4842
SELECT - SUM ( DISTINCT - col1 ) * COUNT ( * ) * + 1 AS col1 FROM tab2
----
585

onlyif mysql # aggregate syntax: 
query I rowsort label-4843
SELECT + 41 * + SUM( 8 ) FROM tab1 AS cor0
----
984

skipif mysql # not compatible
query I rowsort label-4843
SELECT + 41 * + SUM ( 8 ) FROM tab1 AS cor0
----
984

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 95 + - 26 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4845
SELECT ALL - 44 * - - COUNT( * ) + - + 97 + COUNT( * ) AS col0, COUNT( * ) * 46 AS col1 FROM tab1 AS cor0
----
-226
138

skipif mysql # not compatible
query II rowsort label-4845
SELECT ALL - 44 * - - COUNT ( * ) + - + 97 + COUNT ( * ) AS col0, COUNT ( * ) * 46 AS col1 FROM tab1 AS cor0
----
-226
138

onlyif mysql # aggregate syntax: 
query I rowsort label-4846
SELECT ALL + ( + + COUNT( * ) ) + + COUNT( * ) AS col1 FROM tab0 cor0
----
6

skipif mysql # not compatible
query I rowsort label-4846
SELECT ALL + ( + + COUNT ( * ) ) + + COUNT ( * ) AS col1 FROM tab0 cor0
----
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 55 + - + 91 + 16 * + 99 * - - col1 col0 FROM tab2 AS cor0
----
106092
121932
80748

query I rowsort
SELECT DISTINCT - - col1 * - - ( + + 33 ) FROM tab0 AS cor0
----
2673
33
693

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4849
SELECT ALL - col1 AS col2, 17 - ( - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
-51
NULL
-67
NULL
-77
NULL

skipif mysql # not compatible
query II rowsort label-4849
SELECT ALL - col1 AS col2, 17 - ( - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
-51
NULL
-67
NULL
-77
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4850
SELECT ALL - COUNT( * ) - + 5 FROM tab0 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-4850
SELECT ALL - COUNT ( * ) - + 5 FROM tab0 AS cor0
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-4851
SELECT DISTINCT - ( SUM( DISTINCT - col1 ) ) - + MIN( DISTINCT + + col0 ) AS col1 FROM tab2
----
149

skipif mysql # not compatible
query I rowsort label-4851
SELECT DISTINCT - ( SUM ( DISTINCT - col1 ) ) - + MIN ( DISTINCT + + col0 ) AS col1 FROM tab2
----
149

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN - + col0 * col2 - + - col1 * - - col2 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4853
SELECT DISTINCT + col0 DIV - 91 + - 40 + 99 * ( + - 1 ) FROM tab2
----
-139

skipif mysql # not compatible
query I rowsort label-4853
SELECT DISTINCT + col0 / - 91 + - 40 + 99 * ( + - 1 ) FROM tab2
----
-139

query I rowsort
SELECT DISTINCT + col0 * + - col0 * - + col0 FROM tab0
----
3375
658503
912673

query I rowsort
SELECT + 17 * - col0 FROM tab1
----
-1445
-1547
-867

query I rowsort
SELECT DISTINCT - 10 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4857
SELECT ALL - COUNT( * ) - - 23 AS col0 FROM tab2 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-4857
SELECT ALL - COUNT ( * ) - - 23 AS col0 FROM tab2 AS cor0
----
20

query I rowsort
SELECT ALL + + 62 AS col0 FROM tab2 cor0
----
62
62
62

onlyif mysql # DIV for integer division: 
query I rowsort label-4859
SELECT ALL + col0 * col2 DIV 90 AS col2 FROM tab2
----
11
28
48

skipif mysql # not compatible
query I rowsort label-4859
SELECT ALL + col0 * col2 / 90 AS col2 FROM tab2
----
11
28
48

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4860
SELECT DISTINCT - - 11 DIV - 25 * - ( - CAST( 84 AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4860
SELECT DISTINCT - - 11 / - 25 * - ( - CAST ( 84 AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4861
SELECT DISTINCT + + CAST( NULL AS SIGNED ) AS col1, 0 + - 42 + 59 col2 FROM tab2 cor0
----
NULL
17

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4861
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) AS col1, 0 + - 42 + 59 col2 FROM tab2 cor0
----
NULL
17

onlyif mysql # aggregate syntax: 
query I rowsort label-4862
SELECT DISTINCT SUM( ALL - - col0 ) FROM tab1 cor0
----
227

skipif mysql # not compatible
query I rowsort label-4862
SELECT DISTINCT SUM ( ALL - - col0 ) FROM tab1 cor0
----
227

query I rowsort
SELECT DISTINCT + - col2 * - 2 + - - col1 AS col2 FROM tab0 AS cor0
----
175
199
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 col1 FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT ALL 57 * + + ( + - col1 ) AS col1 FROM tab2
----
-2907
-3819
-4389

query II rowsort
SELECT ALL col1, - col2 + col0 * - col0 + + col1 + col0 FROM tab1
----
14
-2632
47
-8211
5
-7194

onlyif mysql # aggregate syntax: 
query I rowsort label-4867
SELECT ( MIN( - col0 ) ) FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-4867
SELECT ( MIN ( - col0 ) ) FROM tab0
----
-97

query II rowsort
SELECT + col1 + + - 73, col0 AS col2 FROM tab0
----
-52
87
-72
97
8
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4869
SELECT + MIN( ALL - 83 ) DIV + - COUNT( DISTINCT - 96 ) col1 FROM tab0 AS cor0
----
83

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4869
SELECT + MIN ( ALL - 83 ) / + - COUNT ( DISTINCT - 96 ) col1 FROM tab0 AS cor0
----
83

query I rowsort
SELECT ALL - col0 FROM tab1 AS cor0 WHERE + 44 + - col2 * col0 IS NOT NULL
----
-51
-85
-91

query II rowsort
SELECT ALL + col2, 25 AS col1 FROM tab1 WHERE NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4872
SELECT COUNT( * ) - 49 FROM tab0
----
-46

skipif mysql # not compatible
query I rowsort label-4872
SELECT COUNT ( * ) - 49 FROM tab0
----
-46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + col2 * - col1 * - + 97 col1 FROM tab2
----
113827
298824
377017

query I rowsort
SELECT DISTINCT + 84 FROM tab0, tab0 AS cor0
----
84

onlyif mysql # aggregate syntax: 
query II rowsort label-4875
SELECT + COUNT( * ) col1, 68 AS col0 FROM tab0
----
3
68

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4875
SELECT + COUNT ( * ) col1, 68 AS col0 FROM tab0
----
3
68

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4876
SELECT - - 85 AS col2, CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0
----
85
NULL
85
NULL
85
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4876
SELECT - - 85 AS col2, CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
85
NULL
85
NULL
85
NULL

query I rowsort
SELECT ALL - col2 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-10
-47
-99

query I rowsort
SELECT 0 * col1 AS col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4879
SELECT COUNT( * ) FROM tab0 WHERE NOT - 31 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-4879
SELECT COUNT ( * ) FROM tab0 WHERE NOT - 31 <> NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 56 <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 62 col0 FROM tab2
----
62
62
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - col2 - 28 col1 FROM tab1
----
-3509
-4652
-9244

query I rowsort
SELECT - col2 FROM tab2 WHERE NOT - col0 + - col1 * col2 < NULL
----

query III rowsort
SELECT * FROM tab1 WHERE + 12 * + col1 - col0 / + col1 NOT IN ( col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 23 AS col2 FROM tab0 WHERE ( + col2 + + col0 ) NOT BETWEEN col0 + 33 AND NULL
----
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + 18 col2 FROM tab0
----
-29
-81
8

query I rowsort
SELECT ALL + col1 / col2 - col0 FROM tab2 WHERE NOT - col2 IS NOT NULL
----

query I rowsort
SELECT col2 + 27 FROM tab0 WHERE NULL < col1
----

query I rowsort
SELECT + 69 + col2 AS col0 FROM tab1
----
128
137
165

query I rowsort
SELECT - 59 + - col0 FROM tab0
----
-146
-156
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4891
SELECT DISTINCT + ( - col0 ) * + ( CAST( col1 AS SIGNED ) ) col2 FROM tab2
----
-2346
-4928
-5025

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4891
SELECT DISTINCT + ( - col0 ) * + ( CAST ( col1 AS INTEGER ) ) col2 FROM tab2
----
-2346
-4928
-5025

query I rowsort
SELECT - col0 + + col1 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - 50 * - col1 FROM tab1
----
2350
250
700

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 * + col2 NOT IN ( + 14 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4895
SELECT col2 - 46 FROM tab0 WHERE NOT CAST( NULL AS SIGNED ) * - col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-4895
SELECT col2 - 46 FROM tab0 WHERE NOT CAST ( NULL AS INTEGER ) * - col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-4896
SELECT * FROM tab1 WHERE CAST( CAST( - 73 AS SIGNED ) AS DECIMAL ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4896
SELECT * FROM tab1 WHERE CAST ( CAST ( - 73 AS INTEGER ) AS REAL ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4897
SELECT + SUM( DISTINCT - 21 ) * 23 + + COUNT( * ) AS col2 FROM tab2
----
-480

skipif mysql # not compatible
query I rowsort label-4897
SELECT + SUM ( DISTINCT - 21 ) * 23 + + COUNT ( * ) AS col2 FROM tab2
----
-480

query I rowsort
SELECT DISTINCT ( - ( col2 ) ) * - col1 FROM tab0
----
210
3807
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4899
SELECT ALL MIN( + 56 ) FROM tab2
----
56

skipif mysql # not compatible
query I rowsort label-4899
SELECT ALL MIN ( + 56 ) FROM tab2
----
56

query III rowsort
SELECT ALL * FROM tab1 WHERE + col0 <> + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col2 + + 19 AS col2 FROM tab0 AS cor0
----
118
29
66

query I rowsort
SELECT ALL - col2 - ( - 57 ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + col2 ) col2 FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT DISTINCT - col2 FROM tab2 AS cor0 WHERE - 63 < NULL
----

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab2 AS cor0 WHERE ( 67 + col1 * col1 ) IS NULL
----

query I rowsort
SELECT 93 * 97 - col1 AS col0 FROM tab0
----
8940
9000
9020

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab2 AS cor0 WHERE NOT - col2 IS NOT NULL
----

query I rowsort
SELECT col2 * + col1 - + col1 AS col0 FROM tab0 cor0
----
189
3726
98

query I rowsort
SELECT + 54 * - col1 + 85 AS col0 FROM tab1 AS cor0
----
-185
-2453
-671

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4910
SELECT + - CAST( NULL AS SIGNED ) + + 79 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4910
SELECT + - CAST ( NULL AS INTEGER ) + + 79 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 15 AS col2 FROM tab2 AS cor0 WHERE NULL >= NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4912
SELECT DISTINCT - 18 DIV 93 + + COUNT( * ) * MAX( - ( col2 ) ) FROM tab1 AS cor0
----
-177

skipif mysql # not compatible
query I rowsort label-4912
SELECT DISTINCT - 18 / 93 + + COUNT ( * ) * MAX ( - ( col2 ) ) FROM tab1 AS cor0
----
-177

onlyif mysql # aggregate syntax: 
query I rowsort label-4913
SELECT DISTINCT - + COUNT( ALL + 16 ) FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4913
SELECT DISTINCT - + COUNT ( ALL + 16 ) FROM tab2 cor0
----
-3

query I rowsort
SELECT ALL col2 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN - col1 + col2 AND ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4915
SELECT DISTINCT - COUNT( + CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 cor0 WHERE NOT + 76 NOT BETWEEN NULL AND ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-4915
SELECT DISTINCT - COUNT ( + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 cor0 WHERE NOT + 76 NOT BETWEEN NULL AND ( NULL )
----
0

query I rowsort
SELECT DISTINCT - 51 + 49 AS col1 FROM tab2
----
-2

query III rowsort
SELECT ALL * FROM tab2 WHERE - col2 NOT IN ( col1 / 89 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col0 - - 4 FROM tab2
----
50
68
79

onlyif mysql # aggregate syntax: 
query I rowsort label-4919
SELECT DISTINCT MAX( ALL + col0 ) FROM tab2 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4919
SELECT DISTINCT MAX ( ALL + col0 ) FROM tab2 WHERE ( NULL ) IS NOT NULL
----
NULL

query I rowsort
SELECT ( - + 45 ) FROM tab0
----
-45
-45
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4921
SELECT ALL - ( + CAST( NULL AS SIGNED ) ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4921
SELECT ALL - ( + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4922
SELECT - MAX( + + ( col0 ) ) FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-4922
SELECT - MAX ( + + ( col0 ) ) FROM tab1
----
-91

query I rowsort
SELECT ALL col1 + + 26 AS col1 FROM tab2 WHERE NOT col0 IS NULL
----
103
77
93

onlyif mysql # aggregate syntax: 
query I rowsort label-4924
SELECT + + MAX( + - col0 ) FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-4924
SELECT + + MAX ( + - col0 ) FROM tab2 AS cor0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-4925
SELECT ALL - + SUM( DISTINCT - col2 ) FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-4925
SELECT ALL - + SUM ( DISTINCT - col2 ) FROM tab1 AS cor0
----
223

query I rowsort
SELECT DISTINCT 18 AS col2 FROM tab2 AS cor0 WHERE NOT ( col1 ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4927
SELECT ALL - AVG ( + CAST( NULL AS SIGNED ) ) * CAST( NULL AS SIGNED ) - - COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) NOT BETWEEN - 64 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4927
SELECT ALL - AVG ( + CAST ( NULL AS INTEGER ) ) * CAST ( NULL AS INTEGER ) - - COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) NOT BETWEEN - 64 AND NULL
----
NULL

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT + 9 IS NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

query I rowsort
SELECT 52 FROM tab0 WHERE NOT ( NOT ( - col2 ) NOT BETWEEN NULL AND ( - col1 ) )
----
52
52

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 JOIN tab1 cor1 ON NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + 53 * 28 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
1484

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4932
SELECT ( - col0 ) * CAST( col1 * + col2 AS SIGNED ) FROM tab2 AS cor0 WHERE NOT - col0 = NULL
----

skipif mysql # not compatible
query I rowsort label-4932
SELECT ( - col0 ) * CAST ( col1 * + col2 AS INTEGER ) FROM tab2 AS cor0 WHERE NOT - col0 = NULL
----

query I rowsort
SELECT ALL - ( - - 67 ) FROM tab2 AS cor0
----
-67
-67
-67

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT 23 <= ( - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 35 + + col0 * + col2 AS col1 FROM tab0 AS cor0 WHERE NOT ( col1 * + col2 + col1 * - col1 ) NOT BETWEEN col1 + 68 AND - col1 - + col2
----

query I rowsort
SELECT DISTINCT + 16 - col2 AS col0 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND + col0 * + + col2 + 78 / 77
----

query II rowsort
SELECT + 95, col2 FROM tab0 AS cor0
----
95
10
95
47
95
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4938
SELECT ALL - COUNT( * ) * MAX( ALL col2 ) AS col2 FROM tab2 AS cor0
----
-174

skipif mysql # not compatible
query I rowsort label-4938
SELECT ALL - COUNT ( * ) * MAX ( ALL col2 ) AS col2 FROM tab2 AS cor0
----
-174

query I rowsort
SELECT - col0 * - col1 * col2 FROM tab1 AS cor0
----
25075
290836
68544

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + - col2 / - col1 + 61 ) BETWEEN col2 AND ( NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4941
SELECT DISTINCT COUNT( + + col0 ) * COUNT( DISTINCT + 19 ) + - 37 DIV + SUM( DISTINCT + 74 * + col0 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4941
SELECT DISTINCT COUNT ( + + col0 ) * COUNT ( DISTINCT + 19 ) + - 37 / + SUM ( DISTINCT + 74 * + col0 ) FROM tab1
----
3

query I rowsort
SELECT col1 FROM tab1 WHERE + - col0 NOT IN ( - - 65 )
----
14
47
5

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL >= + 35
----

query I rowsort
SELECT - 84 FROM tab2 WHERE + + ( + + col2 ) IS NULL
----

query I rowsort
SELECT ALL - 72 AS col0 FROM tab0 WHERE - 12 NOT IN ( + col1 )
----
-72
-72
-72

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col2 * - 94 IN ( - 47 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE + col1 + col2 * col0 IS NULL
----

query I rowsort
SELECT + + col2 FROM tab2 WHERE NULL < - col2
----

query I rowsort
SELECT ALL + ( 51 ) FROM tab1
----
51
51
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4950
SELECT + COUNT( + ( - col0 ) ) * + 72 FROM tab1
----
216

skipif mysql # not compatible
query I rowsort label-4950
SELECT + COUNT ( + ( - col0 ) ) * + 72 FROM tab1
----
216

query I rowsort
SELECT + col1 AS col0 FROM tab1 AS cor0 WHERE + col2 > ( col1 )
----
14
47
5

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - 98 > ( NULL ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4953
SELECT col2 * + col0 + + CAST( CAST( 99 AS SIGNED ) AS SIGNED ) + col0 FROM tab2 cor0
----
1203
2723
4524

skipif mysql # not compatible
query I rowsort label-4953
SELECT col2 * + col0 + + CAST ( CAST ( 99 AS INTEGER ) AS INTEGER ) + col0 FROM tab2 cor0
----
1203
2723
4524

query I rowsort
SELECT DISTINCT col0 + - 94 FROM tab1 AS cor0
----
-3
-43
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 13 col2 FROM tab1 cor0 WHERE NULL IN ( - 38 )
----

query I rowsort
SELECT ALL col0 FROM tab1 cor0 WHERE NOT ( - 4 ) NOT IN ( col2 * - - col1 * - col0 + + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4957
SELECT - CAST( + col2 AS SIGNED ) * ( + col1 ) + 64 AS col2 FROM tab2 cor0
----
-1109
-3016
-3822

skipif mysql # not compatible
query I rowsort label-4957
SELECT - CAST ( + col2 AS INTEGER ) * ( + col1 ) + 64 AS col2 FROM tab2 cor0
----
-1109
-3016
-3822

query I rowsort
SELECT DISTINCT col1 + + col2 - 8 - + col1 AS col2 FROM tab0
----
2
39
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4959
SELECT + COUNT( * ) + + 95 FROM tab0
----
98

skipif mysql # not compatible
query I rowsort label-4959
SELECT + COUNT ( * ) + + 95 FROM tab0
----
98

query I rowsort
SELECT 74 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 col1, col2 FROM tab2
----
51
23
67
58
77
40

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 * + + col2 >= - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 * - col2 - + - col2 FROM tab0 cor0 WHERE NULL <= ( NULL )
----

query I rowsort
SELECT col2 - - ( + col2 ) FROM tab2 AS cor0
----
116
46
80

query I rowsort
SELECT ALL ( 51 ) + + ( + + 3 ) FROM tab2 AS cor0
----
54
54
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4966
SELECT ALL col2 * - 3 col0 FROM tab2 cor0 WHERE NOT - ( - ( - CAST( + 39 AS SIGNED ) ) ) + col0 * - col0 IS NULL
----
-120
-174
-69

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4966
SELECT ALL col2 * - 3 col0 FROM tab2 cor0 WHERE NOT - ( - ( - CAST ( + 39 AS INTEGER ) ) ) + col0 * - col0 IS NULL
----
-120
-174
-69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 AS col0, - col1 col0 FROM tab2
----
-51
-51
-67
-67
-77
-77

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + + col1 * col0 * col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab1 WHERE NULL NOT IN ( - col2 )
----

query II rowsort
SELECT DISTINCT col0, 5 FROM tab1
----
51
5
85
5
91
5

query I rowsort
SELECT ( + - 60 ) FROM tab0 cor0
----
-60
-60
-60

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 * - col1 + col2 IS NOT NULL
----

query II rowsort
SELECT - col2 AS col1, - 94 AS col1 FROM tab2 AS cor0
----
-23
-94
-40
-94
-58
-94

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 32 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4975
SELECT - col0 FROM tab1 AS cor0 WHERE NOT - col0 * - col2 * + + col1 - + - ( col0 ) NOT BETWEEN ( - + col0 + + col0 ) AND - ( - CAST( NULL AS SIGNED ) ) * - col1
----

skipif mysql # not compatible
query I rowsort label-4975
SELECT - col0 FROM tab1 AS cor0 WHERE NOT - col0 * - col2 * + + col1 - + - ( col0 ) NOT BETWEEN ( - + col0 + + col0 ) AND - ( - CAST ( NULL AS INTEGER ) ) * - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4976
SELECT + SUM( + + ( + ( - col0 ) ) ) FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-4976
SELECT + SUM ( + + ( + ( - col0 ) ) ) FROM tab0 AS cor0
----
-199

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT IN ( + col0, - col0, + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4978
SELECT DISTINCT - MIN( + + col0 ) + - 58 AS col2 FROM tab1 AS cor0
----
-109

skipif mysql # not compatible
query I rowsort label-4978
SELECT DISTINCT - MIN ( + + col0 ) + - 58 AS col2 FROM tab1 AS cor0
----
-109

query I rowsort
SELECT DISTINCT col0 + - col0 + + - col0 FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4980
SELECT DISTINCT + col2 FROM tab0 AS cor0 WHERE + col2 * - 9 <= - + CAST( ( + - ( + 41 ) ) AS SIGNED ) * - col0 + 95
----

skipif mysql # not compatible
query I rowsort label-4980
SELECT DISTINCT + col2 FROM tab0 AS cor0 WHERE + col2 * - 9 <= - + CAST ( ( + - ( + 41 ) ) AS INTEGER ) * - col0 + 95
----

query I rowsort
SELECT - - ( - - col1 ) + - 23 FROM tab1 cor0 WHERE ( col0 ) IN ( + - 59, + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4982
SELECT - COUNT( * ) + - 76 AS col1 FROM tab1
----
-79

skipif mysql # not compatible
query I rowsort label-4982
SELECT - COUNT ( * ) + - 76 AS col1 FROM tab1
----
-79

query I rowsort
SELECT ALL - + col0 FROM tab2 WHERE + + col1 - - 34 * col2 IS NULL
----

query I rowsort
SELECT - + 4 FROM tab2 WHERE - - ( 5 ) IS NOT NULL
----
-4
-4
-4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + - 29 col0 FROM tab1
----
-15
-24
18

query I rowsort
SELECT col1 * + 71 + - col1 FROM tab1
----
3290
350
980

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col2 * - col2 IN ( + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( + 30 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4989
SELECT * FROM tab0 AS cor0 WHERE ( - 43 * + CAST( col0 AS SIGNED ) * + 21 - - col2 - + col0 * - - ( 75 ) / + col0 ) < ( NULL )
----

skipif mysql # not compatible
query III rowsort label-4989
SELECT * FROM tab0 AS cor0 WHERE ( - 43 * + CAST ( col0 AS INTEGER ) * + 21 - - col2 - + col0 * - - ( 75 ) / + col0 ) < ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4990
SELECT DISTINCT MIN( ALL + 42 ) FROM tab2 AS cor0 WHERE NOT + col0 IN ( 21 / + 10 * - - col2 )
----
42

skipif mysql # not compatible
query I rowsort label-4990
SELECT DISTINCT MIN ( ALL + 42 ) FROM tab2 AS cor0 WHERE NOT + col0 IN ( 21 / + 10 * - - col2 )
----
42

onlyif mysql # aggregate syntax: 
query II rowsort label-4991
SELECT - - ( 1 ), + COUNT( * ) AS col0 FROM tab1 WHERE - 61 NOT BETWEEN col1 AND - 93
----
1
3

skipif mysql # not compatible
query II rowsort label-4991
SELECT - - ( 1 ), + COUNT ( * ) AS col0 FROM tab1 WHERE - 61 NOT BETWEEN col1 AND - 93
----
1
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 10 BETWEEN - col0 AND + ( - - 66 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4993
SELECT DISTINCT + + ( - + COUNT( * ) ) AS col0 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4993
SELECT DISTINCT + + ( - + COUNT ( * ) ) AS col0 FROM tab2 cor0
----
-3

query I rowsort
SELECT + - 37 * - - col2 AS col2 FROM tab1 AS cor0
----
-2183
-2516
-3552

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4995
SELECT ALL 8 DIV + 14 + MAX( - - 2 ) AS col2 FROM tab0 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-4995
SELECT ALL 8 / + 14 + MAX ( - - 2 ) AS col2 FROM tab0 AS cor0
----
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 * + col2 * + col1 AS col2, - col2 col1 FROM tab1
----
25075
-59
290836
-68
68544
-96

query I rowsort
SELECT - 64 * - 9 FROM tab2
----
576
576
576

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4998
SELECT ( - COUNT( * ) ) + + 36 DIV + CAST( 67 AS SIGNED ) FROM tab2 WHERE NOT - col0 + - + col1 + - 26 * - + ( col2 ) DIV + 63 + + ( - col2 ) DIV col1 BETWEEN NULL AND + col1
----
0

skipif mysql # not compatible
query I rowsort label-4998
SELECT ( - COUNT ( * ) ) + + 36 / + CAST ( 67 AS INTEGER ) FROM tab2 WHERE NOT - col0 + - + col1 + - 26 * - + ( col2 ) / + 63 + + ( - col2 ) / col1 BETWEEN NULL AND + col1
----
0

query I rowsort
SELECT ALL - - ( - 53 ) + - AVG ( ALL - - 99 ) FROM tab1 WHERE - - col1 IS NULL
----
NULL

query I rowsort
SELECT DISTINCT - col0 * - - col0 AS col0 FROM tab2 AS cor0
----
-2116
-4096
-5625

query I rowsort
SELECT ALL + + 56 * - + col1 AS col2 FROM tab1 AS cor0
----
-2632
-280
-784

query I rowsort
SELECT ALL + ( + 45 ) + - ( + + col0 ) + + + col2 FROM tab0 AS cor0 WHERE NULL <> NULL
----

query II rowsort
SELECT + col2, 29 FROM tab0
----
10
29
47
29
99
29

query I rowsort
SELECT DISTINCT + ( + 74 ) + + ( + 46 ) FROM tab0 WHERE NOT + 7 BETWEEN 30 AND + - col1
----
120

query III rowsort
SELECT * FROM tab0 WHERE ( + 93 / + 87 * col1 ) <= NULL
----

query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab2 AS cor1 WHERE 3 IS NOT NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 84 col1 FROM tab0
----
-84

query III rowsort
SELECT ALL + col0, col0 AS col0, + - col1 * + ( col1 ) + - 95 FROM tab2 cor0
----
9 values hashing to 34e85a6e76ecb84dd36d534a3d8371b6

onlyif mysql # aggregate syntax: 
query I rowsort label-5009
SELECT MAX( + col2 ) AS col0 FROM tab1 AS cor0 WHERE ( + 48 ) NOT BETWEEN col0 AND 21 / - col1 * + col0 * - col0
----
96

skipif mysql # not compatible
query I rowsort label-5009
SELECT MAX ( + col2 ) AS col0 FROM tab1 AS cor0 WHERE ( + 48 ) NOT BETWEEN col0 AND 21 / - col1 * + col0 * - col0
----
96

query I rowsort
SELECT ALL + 37 * + col0 - - 61 + + - ( - + col1 ) FROM tab1 cor0
----
1962
3211
3475

query III rowsort
SELECT * FROM tab2 cor0 WHERE + col2 + + 4 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5012
SELECT * FROM tab2 cor0 WHERE ( col1 / 68 ) IN ( + col0, - ( + + col0 ) - - col0 * col2, - col0 * CAST( NULL AS SIGNED ) * - col2 - + col1 / col2 )
----

skipif mysql # not compatible
query III rowsort label-5012
SELECT * FROM tab2 cor0 WHERE ( col1 / 68 ) IN ( + col0, - ( + + col0 ) - - col0 * col2, - col0 * CAST ( NULL AS INTEGER ) * - col2 - + col1 / col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5013
SELECT - col2 AS col0, + col1 * + 52 + ( + col0 ) / col2 / + 57 / + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
-10
NULL
-47
NULL
-99
NULL

skipif mysql # not compatible
query II rowsort label-5013
SELECT - col2 AS col0, + col1 * + 52 + ( + col0 ) / col2 / + 57 / + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
-10
NULL
-47
NULL
-99
NULL

query I rowsort
SELECT col2 * - 70 AS col0 FROM tab1 AS cor0 WHERE col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 AS col1, + ( col0 ) col2 FROM tab0 AS cor0
----
10
87
47
15
99
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5016
SELECT COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE - col2 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-5016
SELECT COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE - col2 IS NOT NULL
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5017
SELECT DISTINCT - CAST( NULL AS SIGNED ) * COUNT( * ) + - + 35 * - + COUNT( * ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5017
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * COUNT ( * ) + - + 35 * - + COUNT ( * ) AS col2 FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE - 22 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5019
SELECT * FROM tab1 WHERE ( + + ( - - col2 ) ) NOT BETWEEN ( - col0 ) AND CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5019
SELECT * FROM tab1 WHERE ( + + ( - - col2 ) ) NOT BETWEEN ( - col0 ) AND CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT + AVG ( ALL - + col1 ) FROM tab2 WHERE ( col1 * - col0 IS NULL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5021
SELECT DISTINCT 95 * COUNT( * ) FROM tab2 AS cor0
----
285

skipif mysql # not compatible
query I rowsort label-5021
SELECT DISTINCT 95 * COUNT ( * ) FROM tab2 AS cor0
----
285

query I rowsort
SELECT - col1 + col0 AS col0 FROM tab2 AS cor0 WHERE 74 NOT IN ( - + 42, ( + col1 ) * + 42 )
----
-13
-5
8

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 / - 50 IS NULL
----

query I rowsort
SELECT + 75 + - col2 AS col0 FROM tab2 AS cor0
----
17
35
52

query II rowsort
SELECT DISTINCT col0 + + col2, 79 AS col0 FROM tab0 AS cor0
----
196
79
62
79
97
79

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col1 <= + ( + 42 )
----
15
81
47

query I rowsort
SELECT DISTINCT col1 + - + col0 AS col0 FROM tab0 AS cor0
----
-66
-96
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 13 col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

onlyif mysql # aggregate syntax: 
query II rowsort label-5029
SELECT 17 AS col1, - COUNT( * ) AS col0 FROM tab1 AS cor0
----
17
-3

skipif mysql # not compatible
query II rowsort label-5029
SELECT 17 AS col1, - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
17
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5030
SELECT - - COUNT( * ) * 95 AS col2 FROM tab2 cor0
----
285

skipif mysql # not compatible
query I rowsort label-5030
SELECT - - COUNT ( * ) * 95 AS col2 FROM tab2 cor0
----
285

query I rowsort
SELECT DISTINCT - col0 * + - 94 * - 83 FROM tab0 AS cor0
----
-117030
-678774
-756794

onlyif mysql # aggregate syntax: 
query I rowsort label-5032
SELECT DISTINCT - + MIN( ALL col0 ) FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-5032
SELECT DISTINCT - + MIN ( ALL col0 ) FROM tab2 AS cor0
----
-46

query I rowsort
SELECT 96 * + col2 + + - col2 AS col2 FROM tab1 AS cor0
----
5605
6460
9120

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( col1, + col2 )
----

query II rowsort
SELECT DISTINCT - - col1 AS col1, + col1 FROM tab1 AS cor0
----
14
14
47
47
5
5

query I rowsort
SELECT ALL 73 AS col2 FROM tab0 cor0
----
73
73
73

query I rowsort
SELECT + 10 * + 66 * - + col0 FROM tab0 cor0
----
-57420
-64020
-9900

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5038
SELECT - COUNT( * ) FROM tab0 WHERE NOT + - col0 IN ( + CAST( - 88 AS DECIMAL ) )
----
-3

skipif mysql # not compatible
query I rowsort label-5038
SELECT - COUNT ( * ) FROM tab0 WHERE NOT + - col0 IN ( + CAST ( - 88 AS REAL ) )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5039
SELECT DISTINCT COUNT( * ) * 42 FROM tab1
----
126

skipif mysql # not compatible
query I rowsort label-5039
SELECT DISTINCT COUNT ( * ) * 42 FROM tab1
----
126

query I rowsort
SELECT ALL - 95 * + 50 FROM tab0
----
-4750
-4750
-4750

onlyif mysql # aggregate syntax: 
query I rowsort label-5041
SELECT ALL + COUNT( * ) + - COUNT( * ) * + 57 AS col0 FROM tab0 AS cor0
----
-168

skipif mysql # not compatible
query I rowsort label-5041
SELECT ALL + COUNT ( * ) + - COUNT ( * ) * + 57 AS col0 FROM tab0 AS cor0
----
-168

onlyif mysql # DIV for integer division: 
query I rowsort label-5042
SELECT 33 + - 18 DIV - - col0 AS col1 FROM tab1 cor0
----
33
33
33

skipif mysql # not compatible
query I rowsort label-5042
SELECT 33 + - 18 / - - col0 AS col1 FROM tab1 cor0
----
33
33
33

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL > col0 * + col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5044
SELECT DISTINCT + + MAX( ALL + 93 ) * + 8, - 52 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
744
-52

skipif mysql # not compatible
query II rowsort label-5044
SELECT DISTINCT + + MAX ( ALL + 93 ) * + 8, - 52 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
744
-52

query I rowsort
SELECT 2 * - 30 AS col1 FROM tab0
----
-60
-60
-60

onlyif mysql # aggregate syntax: 
query II rowsort label-5046
SELECT ALL - + 33, - MAX( 95 ) AS col1 FROM tab0 WHERE NOT ( + col1 IS NOT NULL )
----
-33
NULL

skipif mysql # not compatible
query II rowsort label-5046
SELECT ALL - + 33, - MAX ( 95 ) AS col1 FROM tab0 WHERE NOT ( + col1 IS NOT NULL )
----
-33
NULL

query I rowsort
SELECT - 42 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-42
-42
-42

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( + 94 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5049
SELECT ALL + COUNT( ALL + col0 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5049
SELECT ALL + COUNT ( ALL + col0 ) AS col1 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5050
SELECT - COUNT( + + col0 ) + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5050
SELECT - COUNT ( + + col0 ) + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5051
SELECT ALL 43 - COUNT( * ) FROM tab1 AS cor0 WHERE - 34 IS NULL
----
43

skipif mysql # not compatible
query I rowsort label-5051
SELECT ALL 43 - COUNT ( * ) FROM tab1 AS cor0 WHERE - 34 IS NULL
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-5052
SELECT DISTINCT - MAX( DISTINCT - - col1 ) AS col0 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-5052
SELECT DISTINCT - MAX ( DISTINCT - - col1 ) AS col0 FROM tab1 AS cor0
----
-47

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5053
SELECT DISTINCT + col1 DIV col1 + CAST( col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
2
22
82

skipif mysql # not compatible
query I rowsort label-5053
SELECT DISTINCT + col1 / col1 + CAST ( col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
2
22
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5054
SELECT ALL + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NULL IN ( 14 )
----

skipif mysql # not compatible
query I rowsort label-5054
SELECT ALL + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NULL IN ( 14 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5055
SELECT DISTINCT + col2 + + - col1 * CAST( + col1 AS SIGNED ) col0 FROM tab2 AS cor0
----
-2578
-4431
-5889

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5055
SELECT DISTINCT + col2 + + - col1 * CAST ( + col1 AS INTEGER ) col0 FROM tab2 AS cor0
----
-2578
-4431
-5889

query I rowsort
SELECT ALL + - 60 FROM tab0 AS cor0 WHERE 88 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5057
SELECT - col1 + - CAST( NULL AS SIGNED ) - + 77 / - col2 * - + col0 + - col1 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5057
SELECT - col1 + - CAST ( NULL AS INTEGER ) - + 77 / - col2 * - + col0 + - col1 AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5058
SELECT + ( + col1 ) + + CAST( + col0 AS SIGNED ) * + + col0 col1 FROM tab0
----
306
7590
9410

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5058
SELECT + ( + col1 ) + + CAST ( + col0 AS INTEGER ) * + + col0 col1 FROM tab0
----
306
7590
9410

query I rowsort
SELECT col0 FROM tab1 WHERE - + col0 * col0 BETWEEN + 47 * + 48 AND NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5060
SELECT ALL col0 DIV col1 - col0 + + 32 + + col2 + col0 AS col2, col2 FROM tab0
----
228
99
46
10
79
47

skipif mysql # not compatible
query II rowsort label-5060
SELECT ALL col0 / col1 - col0 + + 32 + + col2 + col0 AS col2, col2 FROM tab0
----
228
99
46
10
79
47

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND + - ( + col1 ) * + col0
----

query II rowsort
SELECT DISTINCT - col0 AS col1, - col0 + - + col2 - + col1 AS col1 FROM tab0 AS cor0
----
-15
-143
-87
-118
-97
-197

query III rowsort
SELECT * FROM tab2 WHERE NOT - + 33 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col2 * - + ( + ( + - col1 ) ) FROM tab2 AS cor0 WHERE NOT col0 + - 28 + + col0 BETWEEN 78 - - col1 AND NULL
----
1173
3080
3886

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + 83 * - col1 * + + 78 col1, - col2 AS col1 FROM tab1 AS cor0
----
-304278
-68
-32370
-59
-90636
-96

query I rowsort
SELECT ALL + 46 * col1 FROM tab0
----
3726
46
966

onlyif mysql # DIV for integer division: 
query I rowsort label-5067
SELECT DISTINCT 39 DIV 37 col2 FROM tab0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5067
SELECT DISTINCT 39 / 37 col2 FROM tab0
----
1

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT - col2 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE NOT ( ( NOT + col1 + + - col2 > - col0 / - col1 - + col0 ) )
----
15
81
47
87
21
10

query II rowsort
SELECT DISTINCT + col0 AS col2, - col0 FROM tab1
----
51
-51
85
-85
91
-91

onlyif mysql # DIV for integer division: 
query II rowsort label-5071
SELECT - 94 AS col2, + ( + 54 ) + + col2 + - col2 * + col2 + - 19 * ( - col2 ) DIV + col1 + + + 94 FROM tab2 AS cor0
----
-94
-1403
-94
-3142
-94
-350

skipif mysql # not compatible
query II rowsort label-5071
SELECT - 94 AS col2, + ( + 54 ) + + col2 + - col2 * + col2 + - 19 * ( - col2 ) / + col1 + + + 94 FROM tab2 AS cor0
----
-94
-1403
-94
-3142
-94
-350

query I rowsort
SELECT DISTINCT + - col0 AS col1 FROM tab2 AS cor0 WHERE NOT + ( + col0 ) IS NOT NULL
----

query I rowsort
SELECT + 86 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

query I rowsort
SELECT + 77 AS col0 FROM tab1 WHERE 98 IS NOT NULL
----
77
77
77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5075
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) <= + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5075
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) <= + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL + ( - ( 18 ) ) AS col2 FROM tab1 AS cor0
----
-18
-18
-18

query I rowsort
SELECT ALL - col0 * - 39 + - col1 AS col1 FROM tab0 AS cor0
----
3372
3782
504

query I rowsort
SELECT ALL - + 53 * 22 + col1 AS col0 FROM tab2 AS cor0
----
-1089
-1099
-1115

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 10 / - col2 col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5080
SELECT ALL - COUNT( * ) * + COUNT( * ) FROM tab0 AS cor0 WHERE - col1 = 57
----
0

skipif mysql # not compatible
query I rowsort label-5080
SELECT ALL - COUNT ( * ) * + COUNT ( * ) FROM tab0 AS cor0 WHERE - col1 = 57
----
0

query I rowsort
SELECT DISTINCT + - 86 - + + col2 * + + col0 FROM tab0 AS cor0
----
-791
-956
-9689

query I rowsort
SELECT DISTINCT - 28 + - - col2 AS col2 FROM tab0
----
-18
19
71

query III rowsort
SELECT * FROM tab1 WHERE + - ( + col2 ) >= 87
----

query III rowsort
SELECT * FROM tab1 WHERE + - 75 IS NULL
----

query I rowsort
SELECT ALL 61 AS col0 FROM tab1 WHERE NOT col1 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5086
SELECT DISTINCT COUNT( + + 52 ) * + ( SUM( + col2 ) ) - + COUNT( * ) + - - 71 FROM tab0
----
536

skipif mysql # not compatible
query I rowsort label-5086
SELECT DISTINCT COUNT ( + + 52 ) * + ( SUM ( + col2 ) ) - + COUNT ( * ) + - - 71 FROM tab0
----
536

query II rowsort
SELECT ALL + col0 AS col1, - ( + 68 ) AS col0 FROM tab0 AS cor0
----
15
-68
87
-68
97
-68

query II rowsort
SELECT DISTINCT 78, + col1 AS col0 FROM tab0 AS cor0
----
78
1
78
21
78
81

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 10 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - col0, 27 AS col2 FROM tab0
----
-15
27
-87
27
-97
27

query I rowsort
SELECT DISTINCT 39 AS col0 FROM tab0, tab0 AS cor0
----
39

query I rowsort
SELECT ( - ( - col1 ) ) * - col2 AS col0 FROM tab2 AS cor0
----
-1173
-3080
-3886

query II rowsort
SELECT 31, - col0 AS col2 FROM tab0 AS cor0
----
31
-15
31
-87
31
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5094
SELECT - + 20 * - COUNT( * ) * - 66 AS col0 FROM tab1 AS cor0
----
-3960

skipif mysql # not compatible
query I rowsort label-5094
SELECT - + 20 * - COUNT ( * ) * - 66 AS col0 FROM tab1 AS cor0
----
-3960

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 89 col2, ( - + 95 ) col0 FROM tab2 AS cor0
----
-89
-95
-89
-95
-89
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5096
SELECT ALL + - COUNT( * ) * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5096
SELECT ALL + - COUNT ( * ) * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col2 * + col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
1173
3080
3886

query II rowsort
SELECT ALL + col2 + - + 77, col1 AS col1 FROM tab2
----
-19
67
-37
77
-54
51

query I rowsort
SELECT ( + - col2 ) FROM tab2 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 * col0 AS col0, - 74 col1 FROM tab0
----
225
-74
7569
-74
9409
-74

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col1 + 7 + + 51 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL <> ( + 19 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5103
SELECT - col1 DIV + 97 + 38 AS col2 FROM tab0
----
38
38
38

skipif mysql # not compatible
query I rowsort label-5103
SELECT - col1 / + 97 + 38 AS col2 FROM tab0
----
38
38
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5104
SELECT + + COUNT( * ) + - + SUM( col1 ) DIV - 2 FROM tab1 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-5104
SELECT + + COUNT ( * ) + - + SUM ( col1 ) / - 2 FROM tab1 AS cor0
----
36

query II rowsort
SELECT DISTINCT col1 + + col2, + col0 FROM tab0 AS cor0
----
100
97
128
15
31
87

query I rowsort
SELECT ALL + + 97 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

onlyif mysql # aggregate syntax: 
query II rowsort label-5107
SELECT - 52 + + COUNT( - col1 ) col0, 89 FROM tab2 AS cor0
----
-49
89

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5107
SELECT - 52 + + COUNT ( - col1 ) col0, 89 FROM tab2 AS cor0
----
-49
89

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 21 * + col0 NOT BETWEEN - - col1 + - col0 + - col0 * - + ( col1 ) + - + col0 + - + col1 AND ( + ( + - col0 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 28 FROM tab2 AS cor0 WHERE col2 NOT BETWEEN NULL AND - + 41
----
-28
-28
-28

query I rowsort
SELECT 42 + col1 + - col0 FROM tab0
----
-24
-54
108

query II rowsort
SELECT + + col1 AS col1, + col1 FROM tab1 WHERE + col1 / + 50 * - + col2 + + col1 * + col0 - - + 88 IS NOT NULL
----
14
14
47
47
5
5

query I rowsort
SELECT DISTINCT col2 * col1 + - 26 + + 83 FROM tab1
----
1401
3253
352

query I rowsort
SELECT ALL 74 - - - ( 78 ) FROM tab0
----
-4
-4
-4

query III rowsort
SELECT ALL * FROM tab1 WHERE - 91 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5115
SELECT - MIN( - 9 ) AS col0 FROM tab1, tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-5115
SELECT - MIN ( - 9 ) AS col0 FROM tab1, tab2 AS cor0
----
9

query I rowsort
SELECT ALL - col0 FROM tab0 WHERE - col0 * 6 IS NULL
----

query I rowsort
SELECT - col2 * ( + 19 ) FROM tab2
----
-1102
-437
-760

query I rowsort
SELECT DISTINCT col1 - - + 85 FROM tab2
----
136
152
162

query I rowsort
SELECT DISTINCT - 57 - + col0 + - - col0 * - col2 FROM tab2
----
-1161
-2681
-4482

query II rowsort
SELECT DISTINCT ( - + col2 ), col2 AS col1 FROM tab1
----
-59
59
-68
68
-96
96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5121
SELECT DISTINCT * FROM tab2 WHERE + - ( + ( col0 ) ) / - + ( + + col1 ) * - col0 - ( - + col0 ) + - + 92 * col0 BETWEEN + - ( - - col1 ) * - col0 + - col0 AND 50 - + col2 + - - ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5121
SELECT DISTINCT * FROM tab2 WHERE + - ( + ( col0 ) ) / - + ( + + col1 ) * - col0 - ( - + col0 ) + - + 92 * col0 BETWEEN + - ( - - col1 ) * - col0 + - col0 AND 50 - + col2 + - - ( CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT ALL col2 AS col2 FROM tab1 WHERE + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5123
SELECT - + 36 * + CAST( NULL AS SIGNED ) * + 30 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5123
SELECT - + 36 * + CAST ( NULL AS INTEGER ) * + 30 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL IN ( + 89 * col1 )
----

query II rowsort
SELECT DISTINCT ( col0 ), + col1 AS col0 FROM tab2 AS cor0
----
46
51
64
77
75
67

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 * - 16 - - col1 + + col0 / - col1 IN ( + col0, col2, + col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL IN ( 83 * - + 3, + 9 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5128
SELECT - COUNT( ALL - col1 ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-5128
SELECT - COUNT ( ALL - col1 ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - col0 )
----
0

query I rowsort
SELECT DISTINCT + - 24 FROM tab0 AS cor0 WHERE NULL <= col2 * - 96
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5130
SELECT - + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL >= ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-5130
SELECT - + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL >= ( NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5131
SELECT COUNT( DISTINCT + - col0 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5131
SELECT COUNT ( DISTINCT + - col0 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT 99 FROM tab1 cor0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5133
SELECT + MIN( DISTINCT + col1 ) * - 74 * - - COUNT( * ) + + 1 FROM tab1 AS cor0
----
-1109

skipif mysql # not compatible
query I rowsort label-5133
SELECT + MIN ( DISTINCT + col1 ) * - 74 * - - COUNT ( * ) + + 1 FROM tab1 AS cor0
----
-1109

query III rowsort
SELECT * FROM tab1 WHERE NOT - - col0 + + col2 / - - col0 + + + ( - col2 ) * + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-5135
SELECT DISTINCT 2 col1, + COUNT( * ) AS col0 FROM tab2
----
2
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5135
SELECT DISTINCT 2 col1, + COUNT ( * ) AS col0 FROM tab2
----
2
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0, - col2 + + + col1 + - + ( + col0 ) col0 FROM tab1
----
51
-133
85
-139
91
-112

query II rowsort
SELECT + 14, 29 * - col0 + + - col2 AS col2 FROM tab0
----
14
-2533
14
-2912
14
-482

onlyif mysql # aggregate syntax: 
query I rowsort label-5138
SELECT DISTINCT - SUM( ALL col1 ) * + COUNT( * ) AS col2 FROM tab0
----
-309

skipif mysql # not compatible
query I rowsort label-5138
SELECT DISTINCT - SUM ( ALL col1 ) * + COUNT ( * ) AS col2 FROM tab0
----
-309

query III rowsort
SELECT 79 AS col2, col1, + col1 FROM tab1
----
9 values hashing to 1fd8d3bc7c7bdd10dc02019a8f57bc27

query I rowsort
SELECT DISTINCT - col0 * col1 * 84 + - 16 AS col2 FROM tab0 AS cor0
----
-102076
-153484
-8164

query I rowsort
SELECT - col2 + - - ( - - 92 ) AS col2 FROM tab0 AS cor0
----
-7
45
82

query I rowsort
SELECT ALL + 65 + col2 + + ( - col2 ) FROM tab2 AS cor0
----
65
65
65

query I rowsort
SELECT - col2 + + + 43 FROM tab2 AS cor0
----
-15
20
3

query II rowsort
SELECT DISTINCT - 33, - 30 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-33
-30

query I rowsort
SELECT DISTINCT + 77 AS col0 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5146
SELECT ALL - - COUNT( * ) * COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
81

skipif mysql # not compatible
query I rowsort label-5146
SELECT ALL - - COUNT ( * ) * COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
81

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE - 6 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5148
SELECT ( 57 ) * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5148
SELECT ( 57 ) * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col2 * - col1 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5150
SELECT ALL - - COUNT( * ) + + CAST( NULL AS SIGNED ) - - + ( - 45 ) col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5150
SELECT ALL - - COUNT ( * ) + + CAST ( NULL AS INTEGER ) - - + ( - 45 ) col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5151
SELECT - 25 DIV - COUNT( * ) FROM tab1 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-5151
SELECT - 25 / - COUNT ( * ) FROM tab1 AS cor0
----
8

query I rowsort
SELECT + col0 * + 36 FROM tab2 AS cor0
----
1656
2304
2700

query I rowsort
SELECT ALL - AVG ( ALL - col2 ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5154
SELECT DISTINCT - COUNT( * ) + + COUNT( * ) + + + 42 * + - 94 FROM tab0 AS cor0
----
-3948

skipif mysql # not compatible
query I rowsort label-5154
SELECT DISTINCT - COUNT ( * ) + + COUNT ( * ) + + + 42 * + - 94 FROM tab0 AS cor0
----
-3948

onlyif mysql # aggregate syntax: 
query I rowsort label-5155
SELECT + 31 * + - COUNT( * ) FROM tab1 cor0
----
-93

skipif mysql # not compatible
query I rowsort label-5155
SELECT + 31 * + - COUNT ( * ) FROM tab1 cor0
----
-93

query I rowsort
SELECT col2 - - col2 * - col0 + col1 * - - col2 FROM tab1 AS cor0
----
-2924
-3456
-4661

onlyif mysql # aggregate syntax: 
query I rowsort label-5157
SELECT DISTINCT + SUM( DISTINCT - - ( - 57 ) ) AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5157
SELECT DISTINCT + SUM ( DISTINCT - - ( - 57 ) ) AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5158
SELECT - CAST( NULL AS SIGNED ) - - COUNT( * ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5158
SELECT - CAST ( NULL AS INTEGER ) - - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5159
SELECT ( 77 ) DIV - - col2 - + col2 + - col0 * - col0 AS col1, - 10 AS col1 FROM tab2
----
2096
-10
4057
-10
5568
-10

skipif mysql # not compatible
query II rowsort label-5159
SELECT ( 77 ) / - - col2 - + col2 + - col0 * - col0 AS col1, - 10 AS col1 FROM tab2
----
2096
-10
4057
-10
5568
-10

query I rowsort
SELECT ALL - - col0 * + col2 * - ( + 90 ) + - col0 AS col0 FROM tab1 WHERE NULL IS NULL
----
-440691
-451435
-557011

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5161
SELECT DISTINCT + SUM( DISTINCT + 29 ) * + CAST( NULL AS SIGNED ) / + 50 AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5161
SELECT DISTINCT + SUM ( DISTINCT + 29 ) * + CAST ( NULL AS INTEGER ) / + 50 AS col0 FROM tab1
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE - + ( + 86 ) * - 16 IN ( - col1, - col1, + + 52, 20 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2, + col0 col1 FROM tab1
----
59
85
68
91
96
51

query I rowsort
SELECT DISTINCT col1 * - - 52 * - + col2 * - col0 AS col1 FROM tab2
----
10250240
15155400
2805816

query I rowsort
SELECT ALL col1 * + + col2 * col2 FROM tab1
----
129024
17405
217328

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5166
SELECT ALL + 79 * + 45 + - 23 + - 72 AS col1, COUNT( + CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
3460
0

skipif mysql # not compatible
query II rowsort label-5166
SELECT ALL + 79 * + 45 + - 23 + - 72 AS col1, COUNT ( + CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
3460
0

query I rowsort
SELECT + + 6 * - col0 FROM tab2 AS cor0
----
-276
-384
-450

onlyif mysql # DIV for integer division: 
query I rowsort label-5168
SELECT ALL - 56 DIV 83 + col0 AS col2 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-5168
SELECT ALL - 56 / 83 + col0 AS col2 FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT ALL - 15 + + col1 FROM tab1 AS cor0
----
-1
-10
32

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5170
SELECT DISTINCT - 66 / + ( - - 57 ) / - + 1 + - + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5170
SELECT DISTINCT - 66 / + ( - - 57 ) / - + 1 + - + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5171
SELECT ALL - + 33 + + - COUNT( * ) - + - 85 AS col0 FROM tab1 AS cor0
----
49

skipif mysql # not compatible
query I rowsort label-5171
SELECT ALL - + 33 + + - COUNT ( * ) - + - 85 AS col0 FROM tab1 AS cor0
----
49

query I rowsort
SELECT DISTINCT col1 + + + 22 AS col0 FROM tab0 cor0
----
103
23
43

query I rowsort
SELECT + 50 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
50
50
50

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( + col0 ) <= NULL
----

query I rowsort
SELECT DISTINCT 16 * + col1 + - 97 + - 55 FROM tab1
----
-72
600
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5176
SELECT COUNT( + - col1 ) FROM tab0 WHERE ( ( NOT CAST( + 23 AS SIGNED ) BETWEEN col1 AND + + ( col0 ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-5176
SELECT COUNT ( + - col1 ) FROM tab0 WHERE ( ( NOT CAST ( + 23 AS INTEGER ) BETWEEN col1 AND + + ( col0 ) ) )
----
1

query I rowsort
SELECT + 95 + - col1 FROM tab0
----
14
74
94

query I rowsort
SELECT + col0 + + 27 FROM tab1
----
112
118
78

query I rowsort
SELECT + col1 + + - col0 AS col0 FROM tab1 AS cor0
----
-37
-44
-80

query III rowsort
SELECT * FROM tab0 WHERE + col2 + col2 <= col1
----
87
21
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5181
SELECT ALL - col0 FROM tab1 AS cor0 WHERE NOT col1 - - - col1 + - + 92 NOT BETWEEN NULL AND - + CAST( NULL AS SIGNED ) + - + col2 / col1 * - + col2
----

skipif mysql # not compatible
query I rowsort label-5181
SELECT ALL - col0 FROM tab1 AS cor0 WHERE NOT col1 - - - col1 + - + 92 NOT BETWEEN NULL AND - + CAST ( NULL AS INTEGER ) + - + col2 / col1 * - + col2
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 + - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5183
SELECT - ( + CAST( - AVG ( - col1 ) AS SIGNED ) ) col0 FROM tab2 AS cor0
----
-65

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5183
SELECT - ( + CAST ( - AVG ( - col1 ) AS INTEGER ) ) col0 FROM tab2 AS cor0
----
-65

query I rowsort
SELECT DISTINCT col1 * - 37 * + + 59 AS col0 FROM tab2
----
-111333
-146261
-168091

query I rowsort
SELECT col0 * ( + + 13 ) AS col2 FROM tab2
----
598
832
975

query II rowsort
SELECT ( + - col0 ), + col2 FROM tab1
----
-51
96
-85
59
-91
68

query II rowsort
SELECT col0 * + col1 AS col1, - col1 AS col0 FROM tab0
----
1215
-81
1827
-21
97
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5188
SELECT DISTINCT 78 * + + SUM( - col0 ) FROM tab0
----
-15522

skipif mysql # not compatible
query I rowsort label-5188
SELECT DISTINCT 78 * + + SUM ( - col0 ) FROM tab0
----
-15522

query I rowsort
SELECT ( ( + 58 ) ) FROM tab0
----
58
58
58

onlyif mysql # DIV for integer division: 
query I rowsort label-5190
SELECT ALL col2 DIV - col1 AS col0 FROM tab0 AS cor0
----
-99
0
0

skipif mysql # not compatible
query I rowsort label-5190
SELECT ALL col2 / - col1 AS col0 FROM tab0 AS cor0
----
-99
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 90 col1 FROM tab1 AS cor0
----
90
90
90

query I rowsort
SELECT DISTINCT + ( ( - 26 ) ) AS col2 FROM tab0 AS cor0
----
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-5193
SELECT + col1 DIV + + col2 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5193
SELECT + col1 / + + col2 AS col1 FROM tab1
----
0
0
0

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE - 0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5195
SELECT COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE col0 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-5195
SELECT COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE col0 IS NOT NULL
----
3

query I rowsort
SELECT + col1 + - col0 AS col2 FROM tab2 AS cor0 WHERE NULL >= 47
----

query I rowsort
SELECT ALL + col2 + - col2 + - - col0 * + col1 AS col1 FROM tab1 AS cor0
----
425
4277
714

onlyif mysql # aggregate syntax: 
query I rowsort label-5198
SELECT ALL COUNT( * ) + - ( 82 ) * + MIN( - col1 ) FROM tab1 AS cor0
----
3857

skipif mysql # not compatible
query I rowsort label-5198
SELECT ALL COUNT ( * ) + - ( 82 ) * + MIN ( - col1 ) FROM tab1 AS cor0
----
3857

onlyif mysql # aggregate syntax: 
query I rowsort label-5199
SELECT DISTINCT COUNT( * ) * 28 FROM tab1
----
84

skipif mysql # not compatible
query I rowsort label-5199
SELECT DISTINCT COUNT ( * ) * 28 FROM tab1
----
84

onlyif mysql # DIV for integer division: 
query II rowsort label-5200
SELECT DISTINCT + 6 DIV + col2 AS col0, + col2 + - col1 * + - col2 - col0 + col1 - col0 FROM tab1
----
0
1352
0
189
0
3129

skipif mysql # not compatible
query II rowsort label-5200
SELECT DISTINCT + 6 / + col2 AS col0, + col2 + - col1 * + - col2 - col0 + col1 - col0 FROM tab1
----
0
1352
0
189
0
3129

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5201
SELECT * FROM tab1 WHERE + ( - - CAST( - col0 AS DECIMAL ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5201
SELECT * FROM tab1 WHERE + ( - - CAST ( - col0 AS REAL ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 * - - ( - 56 ) IS NOT NULL AND ( + col0 ) / + 73 * + col0 IS NULL
----

query I rowsort
SELECT + 41 + col0 FROM tab0 AS cor0
----
128
138
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5204
SELECT 75 / - col1 + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5204
SELECT 75 / - col1 + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5205
SELECT ALL COUNT( DISTINCT - 16 ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5205
SELECT ALL COUNT ( DISTINCT - 16 ) FROM tab2 AS cor0
----
1

query I rowsort
SELECT - + ( - 90 ) + - col2 - - - 29 FROM tab1 AS cor0
----
-35
-7
2

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5207
SELECT * FROM tab2 WHERE NULL BETWEEN + CAST( - - col1 AS SIGNED ) AND - + ( - 49 )
----

skipif mysql # not compatible
query III rowsort label-5207
SELECT * FROM tab2 WHERE NULL BETWEEN + CAST ( - - col1 AS INTEGER ) AND - + ( - 49 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5208
SELECT ALL COUNT( * ) AS col0 FROM tab0 WHERE - col2 BETWEEN ( col1 ) + + 96 AND + 98
----
0

skipif mysql # not compatible
query I rowsort label-5208
SELECT ALL COUNT ( * ) AS col0 FROM tab0 WHERE - col2 BETWEEN ( col1 ) + + 96 AND + 98
----
0

query I rowsort
SELECT + - col0 * + ( + col0 ) FROM tab2 AS cor0
----
-2116
-4096
-5625

query I rowsort
SELECT - 67 * col2 AS col0 FROM tab2 cor0
----
-1541
-2680
-3886

query I rowsort
SELECT ALL - - 80 AS col0 FROM tab0 AS cor0 WHERE NOT 64 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5212
SELECT DISTINCT - 6 * - 36 / ( - MIN( DISTINCT 92 ) ) FROM tab0 WHERE NULL IN ( - 41 * - col0, + 66 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5212
SELECT DISTINCT - 6 * - 36 / ( - MIN ( DISTINCT 92 ) ) FROM tab0 WHERE NULL IN ( - 41 * - col0, + 66 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5213
SELECT CAST( - col1 AS SIGNED ) * - - ( + col2 ), col1 FROM tab0
----
-210
21
-3807
81
-99
1

skipif mysql # not compatible
query II rowsort label-5213
SELECT CAST ( - col1 AS INTEGER ) * - - ( + col2 ), col1 FROM tab0
----
-210
21
-3807
81
-99
1

query I rowsort
SELECT DISTINCT col2 * 30 * - col1 FROM tab2
----
-116580
-35190
-92400

query II rowsort
SELECT DISTINCT col0 AS col1, - 83 AS col1 FROM tab1
----
51
-83
85
-83
91
-83

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 * ( col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ( + - col0 ) FROM tab2 AS cor0 WHERE NOT NULL < NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5218
SELECT ALL - - COUNT( * ) col0, COUNT( * ) FROM tab2 AS cor0
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5218
SELECT ALL - - COUNT ( * ) col0, COUNT ( * ) FROM tab2 AS cor0
----
3
3

query I rowsort
SELECT ALL - ( + col0 ) * - - col2 * - col2 * col0 AS col0 FROM tab2
----
1119364
18922500
6553600

onlyif mysql # DIV for integer division: 
query I rowsort label-5220
SELECT ALL + ( - - 84 ) DIV col2 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-5220
SELECT ALL + ( - - 84 ) / col2 FROM tab1
----
0
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5221
SELECT ALL * FROM tab0 AS cor0 WHERE + CAST( NULL AS SIGNED ) / + - col1 NOT BETWEEN + 4 AND 39
----

skipif mysql # not compatible
query III rowsort label-5221
SELECT ALL * FROM tab0 AS cor0 WHERE + CAST ( NULL AS INTEGER ) / + - col1 NOT BETWEEN + 4 AND 39
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL IN ( - - 28, 27, + 69 + + 91, + - col2 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5223
SELECT ALL - COUNT( * ), + MIN( + col2 ) AS col0 FROM tab2
----
-3
23

skipif mysql # not compatible
query II rowsort label-5223
SELECT ALL - COUNT ( * ), + MIN ( + col2 ) AS col0 FROM tab2
----
-3
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5224
SELECT CAST( + + col0 AS SIGNED ) + + 0 AS col0 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-5224
SELECT CAST ( + + col0 AS INTEGER ) + + 0 AS col0 FROM tab2
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5225
SELECT 74 + + COUNT( * ) AS col2 FROM tab0
----
77

skipif mysql # not compatible
query I rowsort label-5225
SELECT 74 + + COUNT ( * ) AS col2 FROM tab0
----
77

query II rowsort
SELECT + 7 AS col2, - col0 AS col2 FROM tab0
----
7
-15
7
-87
7
-97

query I rowsort
SELECT - col2 * - col2 * col2 AS col2 FROM tab0 AS cor0
----
1000
103823
970299

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT NULL IN ( 29, + 32 * - - ( 8 ) + + col2 + + - col0 / + 62, + - ( + 70 ) )
----

query II rowsort
SELECT - + col0 AS col2, - col0 FROM tab2 AS cor0
----
-46
-46
-64
-64
-75
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-5230
SELECT + 51, + 70 - + ( + 96 ) AS col0, + - MAX( - + CAST( + col1 AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
51
-26
5

skipif mysql # not compatible
query III rowsort label-5230
SELECT + 51, + 70 - + ( + 96 ) AS col0, + - MAX ( - + CAST ( + col1 AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
51
-26
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5231
SELECT DISTINCT + 16 * - CAST( - 49 AS SIGNED ) + - col0 AS col0 FROM tab0 cor0
----
687
697
769

skipif mysql # not compatible
query I rowsort label-5231
SELECT DISTINCT + 16 * - CAST ( - 49 AS INTEGER ) + - col0 AS col0 FROM tab0 cor0
----
687
697
769

onlyif mysql # aggregate syntax: 
query I rowsort label-5232
SELECT DISTINCT COUNT( - col2 ) + - + COUNT( * ) AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5232
SELECT DISTINCT COUNT ( - col2 ) + - + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - + 46 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 491ad1fb79fec0b5715ea54949d1aa2d

query I rowsort
SELECT 2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

query I rowsort
SELECT - + 94 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to a95bfa539191d3f72f6548147d7efb9e

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 99 > + 30
----

query III rowsort
SELECT ALL * FROM tab1 WHERE - 38 <> NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 4 < NULL
----

query II rowsort
SELECT ALL col2 * + + 71, - col2 + + col0 AS col2 FROM tab1 AS cor0
----
4189
26
4828
23
6816
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-5240
SELECT 73 * + COUNT( * ) col0 FROM tab1
----
219

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5240
SELECT 73 * + COUNT ( * ) col0 FROM tab1
----
219

onlyif mysql # aggregate syntax: 
query I rowsort label-5241
SELECT + MAX( DISTINCT col1 ) * + COUNT( * ) AS col2 FROM tab2
----
231

skipif mysql # not compatible
query I rowsort label-5241
SELECT + MAX ( DISTINCT col1 ) * + COUNT ( * ) AS col2 FROM tab2
----
231

onlyif mysql # DIV for integer division: 
query I rowsort label-5242
SELECT col2 DIV + ( col0 ) FROM tab0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-5242
SELECT col2 / + ( col0 ) FROM tab0
----
0
1
3

query I rowsort
SELECT 21 * 41 FROM tab2
----
861
861
861

query II rowsort
SELECT DISTINCT + 72 AS col0, 87 + col2 * + + col1 AS col1 FROM tab0 AS cor0
----
72
186
72
297
72
3894

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + 75 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5246
SELECT ALL + - CAST( NULL AS SIGNED ) + - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5246
SELECT ALL + - CAST ( NULL AS INTEGER ) + - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5247
SELECT DISTINCT - - ( + + CAST( NULL AS DECIMAL ) ) + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5247
SELECT DISTINCT - - ( + + CAST ( NULL AS REAL ) ) + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NULL = - col2
----

query II rowsort
SELECT col1 AS col2, + col1 + 47 FROM tab2
----
51
98
67
114
77
124

query I rowsort
SELECT - col0 * - ( - col2 ) + - col2 AS col0 FROM tab0
----
-752
-880
-9702

query I rowsort
SELECT - 54 FROM tab0 WHERE 88 IS NOT NULL
----
-54
-54
-54

query I rowsort
SELECT + col1 * - col1 + - - 53 AS col2 FROM tab1
----
-143
-2156
28

onlyif mysql # aggregate syntax: 
query I rowsort label-5253
SELECT ALL COUNT( * ) * + 28 FROM tab0 cor0
----
84

skipif mysql # not compatible
query I rowsort label-5253
SELECT ALL COUNT ( * ) * + 28 FROM tab0 cor0
----
84

query II rowsort
SELECT - ( col2 ) AS col2, col0 AS col2 FROM tab1 cor0
----
-59
85
-68
91
-96
51

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 * - ( + col1 ) + col1 < - - col0 * + - ( 49 ) + + + col1 * - + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5256
SELECT DISTINCT CAST( + 58 AS SIGNED ) * - 66 FROM tab2 cor0
----
-3828

skipif mysql # not compatible
query I rowsort label-5256
SELECT DISTINCT CAST ( + 58 AS INTEGER ) * - 66 FROM tab2 cor0
----
-3828

query I rowsort
SELECT DISTINCT + 35 + - col1 + 50 AS col2 FROM tab1 AS cor0
----
38
71
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 AS col0, + 2 col0 FROM tab1 AS cor0
----
-14
2
-47
2
-5
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5259
SELECT SUM( + 0 ) col1 FROM tab2 cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5259
SELECT SUM ( + 0 ) col1 FROM tab2 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5260
SELECT - ( - MIN( DISTINCT + - 11 ) ) FROM tab0 AS cor0
----
-11

skipif mysql # not compatible
query I rowsort label-5260
SELECT - ( - MIN ( DISTINCT + - 11 ) ) FROM tab0 AS cor0
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-5261
SELECT MIN( ALL + + col1 ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5261
SELECT MIN ( ALL + + col1 ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT ALL + - 69 + col0 AS col0 FROM tab2 AS cor0
----
-23
-5
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5263
SELECT ALL ( - COUNT( * ) ) FROM tab2 WHERE ( - 28 / - - 33 * - 99 < - col1 )
----
0

skipif mysql # not compatible
query I rowsort label-5263
SELECT ALL ( - COUNT ( * ) ) FROM tab2 WHERE ( - 28 / - - 33 * - 99 < - col1 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5264
SELECT DISTINCT + CAST( NULL AS SIGNED ) + COUNT( * ) - + + MIN( + - col0 ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5264
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + COUNT ( * ) - + + MIN ( + - col0 ) AS col0 FROM tab1
----
NULL

query I rowsort
SELECT 94 * + 3 * - 22 FROM tab1
----
-6204
-6204
-6204

query I rowsort
SELECT ALL col2 * + 55 + col2 AS col0 FROM tab1
----
3304
3808
5376

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5267
SELECT ALL - CAST( NULL AS SIGNED ) * - - 16 * + CAST( NULL AS SIGNED ) * - col0 - + col0 * - col0 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5267
SELECT ALL - CAST ( NULL AS INTEGER ) * - - 16 * + CAST ( NULL AS INTEGER ) * - col0 - + col0 * - col0 AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5268
SELECT - + AVG ( DISTINCT + + col0 ) + - - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5268
SELECT - + AVG ( DISTINCT + + col0 ) + - - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + 81 + ( + - col2 ) + col1 AS col0 FROM tab1 AS cor0
----
-1
27
60

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN + 61 AND ( col2 )
----

query I rowsort
SELECT + 85 + + + 92 AS col2 FROM tab2 cor0
----
177
177
177

query I rowsort
SELECT - col2 AS col0 FROM tab0 WHERE NOT - 58 IS NULL
----
-10
-47
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5273
SELECT DISTINCT + COUNT( - + CAST( NULL AS SIGNED ) ) * + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-5273
SELECT DISTINCT + COUNT ( - + CAST ( NULL AS INTEGER ) ) * + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
0

query II rowsort
SELECT ALL - 22, col0 FROM tab2
----
-22
46
-22
64
-22
75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5275
SELECT - col2 AS col2, + CAST( col1 AS SIGNED ) FROM tab0
----
-10
21
-47
81
-99
1

skipif mysql # not compatible
query II rowsort label-5275
SELECT - col2 AS col2, + CAST ( col1 AS INTEGER ) FROM tab0
----
-10
21
-47
81
-99
1

query II rowsort
SELECT - 15 AS col1, col1 FROM tab0 AS cor0
----
-15
1
-15
21
-15
81

query II rowsort
SELECT col0, + col0 + + 96 - - + 41 AS col1 FROM tab2 AS cor0
----
46
183
64
201
75
212

onlyif mysql # aggregate syntax: 
query I rowsort label-5278
SELECT - + MAX( ALL col1 ) * + - 53 FROM tab2 AS cor0
----
4081

skipif mysql # not compatible
query I rowsort label-5278
SELECT - + MAX ( ALL col1 ) * + - 53 FROM tab2 AS cor0
----
4081

onlyif mysql # aggregate syntax: 
query I rowsort label-5279
SELECT COUNT( - col0 ) col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5279
SELECT COUNT ( - col0 ) col2 FROM tab0 AS cor0
----
3

query II rowsort
SELECT DISTINCT 77 AS col0, - 24 AS col0 FROM tab2 AS cor0
----
77
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5281
SELECT DISTINCT + + COUNT( * ) AS col1 FROM tab0 WHERE NOT - CAST( - col2 AS SIGNED ) + 95 BETWEEN - - col0 AND + col2
----
3

skipif mysql # not compatible
query I rowsort label-5281
SELECT DISTINCT + + COUNT ( * ) AS col1 FROM tab0 WHERE NOT - CAST ( - col2 AS INTEGER ) + 95 BETWEEN - - col0 AND + col2
----
3

query II rowsort
SELECT DISTINCT + ( col2 ), - col2 * + col0 FROM tab2
----
23
-1058
40
-2560
58
-4350

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 37 * + 5 NOT BETWEEN NULL AND - col0
----

query I rowsort
SELECT 34 + + + 63 * - - col1 * col1 - - - col0 FROM tab1
----
12331
139110
1524

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5285
SELECT col1 + - CAST( NULL AS SIGNED ) + - col0 * - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5285
SELECT col1 + - CAST ( NULL AS INTEGER ) + - col0 * - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 NOT BETWEEN col2 AND NULL
----

query I rowsort
SELECT DISTINCT + 80 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
80

query I rowsort
SELECT + ( col1 ) * + ( - col2 ) AS col0 FROM tab0
----
-210
-3807
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-5289
SELECT - COUNT( * ) - - ( + + SUM( + col1 ) ) - - + 61 * + COUNT( * ) AS col0 FROM tab0 cor0
----
283

skipif mysql # not compatible
query I rowsort label-5289
SELECT - COUNT ( * ) - - ( + + SUM ( + col1 ) ) - - + 61 * + COUNT ( * ) AS col0 FROM tab0 cor0
----
283

query I rowsort
SELECT ALL 43 + + col0 AS col0 FROM tab0 AS cor0
----
130
140
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5291
SELECT DISTINCT - + MAX( DISTINCT - + ( - + col2 ) ) AS col2 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-5291
SELECT DISTINCT - + MAX ( DISTINCT - + ( - + col2 ) ) AS col2 FROM tab0 AS cor0
----
-99

query I rowsort
SELECT - AVG ( DISTINCT + col1 ) * 27 / 86 AS col2 FROM tab2 AS cor0 WHERE 80 IS NULL
----
NULL

query I rowsort
SELECT ALL ( - col2 ) + - col1 AS col2 FROM tab1 cor0
----
-110
-115
-64

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col0 <= + - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 51 * - col0 NOT BETWEEN NULL AND - + col0 * - col0 * col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5296
SELECT - CAST( + - col1 AS SIGNED ) * - col0 + - 34, + 51 + - col1 AS col2 FROM tab0
----
-1249
-30
-131
50
-1861
30

skipif mysql # not compatible
query II rowsort label-5296
SELECT - CAST ( + - col1 AS INTEGER ) * - col0 + - 34, + 51 + - col1 AS col2 FROM tab0
----
-1249
-30
-131
50
-1861
30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - - 15 ) col0 FROM tab0
----
15
15
15

query III rowsort
SELECT * FROM tab2 WHERE - + 91 NOT BETWEEN NULL AND + - col1
----

query II rowsort
SELECT 40, - col0 + + + col0 AS col2 FROM tab0
----
40
0
40
0
40
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5300
SELECT ALL 28 * + + MAX( - 34 ) AS col2 FROM tab2
----
-952

skipif mysql # not compatible
query I rowsort label-5300
SELECT ALL 28 * + + MAX ( - 34 ) AS col2 FROM tab2
----
-952

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 80 * - - 68 - + col1 col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5302
SELECT DISTINCT COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-5302
SELECT DISTINCT COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5303
SELECT MAX( ALL + - 94 ) AS col1 FROM tab0
----
-94

skipif mysql # not compatible
query I rowsort label-5303
SELECT MAX ( ALL + - 94 ) AS col1 FROM tab0
----
-94

query I rowsort
SELECT - 92 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1af709a79a3e56281ffdce4d931d5965

query I rowsort
SELECT - 42 * + 18 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to bb6facf480a24944b871ebecee70e2e1

query I rowsort
SELECT DISTINCT ( - + 43 ) FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
-43

onlyif mysql # aggregate syntax: 
query II rowsort label-5307
SELECT + MAX( - - col0 ) AS col2, ( COUNT( * ) ) AS col0 FROM tab0 AS cor0
----
97
3

skipif mysql # not compatible
query II rowsort label-5307
SELECT + MAX ( - - col0 ) AS col2, ( COUNT ( * ) ) AS col0 FROM tab0 AS cor0
----
97
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5308
SELECT DISTINCT - CAST( NULL AS SIGNED ) / + COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5308
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / + COUNT ( * ) FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5309
SELECT DISTINCT CAST( - 45 AS SIGNED ) FROM tab1 cor0
----
-45

skipif mysql # not compatible
query I rowsort label-5309
SELECT DISTINCT CAST ( - 45 AS INTEGER ) FROM tab1 cor0
----
-45

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col0 / col1 - - 70 < NULL
----

query I rowsort
SELECT - 59 * col1 FROM tab1
----
-2773
-295
-826

query I rowsort
SELECT ALL - col0 + col0 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5313
SELECT ALL + col2 DIV + - col2 AS col2 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5313
SELECT ALL + col2 / + - col2 AS col2 FROM tab2
----
-1
-1
-1

query III rowsort
SELECT * FROM tab0 WHERE NOT ( 21 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT 6, col1 * + col1 * 61 AS col2 FROM tab2
----
6
158661
6
273829
6
361669

onlyif mysql # aggregate syntax: 
query I rowsort label-5316
SELECT COUNT( * ) AS col1 FROM tab1 WHERE ( + + col1 * + 2 / + - col2 * + - col2 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5316
SELECT COUNT ( * ) AS col1 FROM tab1 WHERE ( + + col1 * + 2 / + - col2 * + - col2 ) IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5317
SELECT DISTINCT - COUNT( * ) + + 86 AS col0 FROM tab2 AS cor0
----
83

skipif mysql # not compatible
query I rowsort label-5317
SELECT DISTINCT - COUNT ( * ) + + 86 AS col0 FROM tab2 AS cor0
----
83

query I rowsort
SELECT + - 36 + + col2 AS col1 FROM tab0 AS cor0
----
-26
11
63

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 46 = ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col2 * col0 <= + col0 * + 11
----
87
21
10

query I rowsort
SELECT col0 * - 63 AS col2 FROM tab2
----
-2898
-4032
-4725

query I rowsort
SELECT ( - col2 ) * + 64 AS col0 FROM tab0
----
-3008
-6336
-640

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - col1 ) NOT BETWEEN - col2 * + col1 AND 67 + + 57
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + 38 * col1 + 80 FROM tab2
----
2018
2626
3006

query I rowsort
SELECT DISTINCT 58 * col0 FROM tab2
----
2668
3712
4350

query I rowsort
SELECT - col0 * 48 FROM tab1 WHERE NOT - col2 IS NULL
----
-2448
-4080
-4368

query I rowsort
SELECT ALL - col0 FROM tab1 WHERE - 31 NOT IN ( + col1 )
----
-51
-85
-91

query I rowsort
SELECT col0 FROM tab0 WHERE - ( col0 ) + 1 IS NOT NULL
----
15
87
97

query I rowsort
SELECT ALL 87 + col1 AS col0 FROM tab0
----
108
168
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5330
SELECT ALL - col1 col1 FROM tab0 WHERE NOT - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5330
SELECT ALL - col1 col1 FROM tab0 WHERE NOT - CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5331
SELECT 11 DIV col2 AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5331
SELECT 11 / col2 AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
0
0
0

query I rowsort
SELECT 39 + - 29 * - col0 AS col0 FROM tab2 WHERE NULL IS NULL
----
1373
1895
2214

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 49 / - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL = + ( col0 ) * ( - 56 + col2 * + col1 )
----

query I rowsort
SELECT + ( col0 ) FROM tab0 WHERE NOT col2 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5336
SELECT + 46 DIV 73 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5336
SELECT + 46 / 73 FROM tab1
----
0
0
0

query III rowsort
SELECT ALL * FROM tab2 WHERE - col2 > ( - ( col1 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-5338
SELECT ALL col2 DIV 94 AS col1 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5338
SELECT ALL col2 / 94 AS col1 FROM tab1
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 91 col1 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5340
SELECT ALL + CAST( + AVG ( ALL col0 ) AS DECIMAL ) AS col1 FROM tab1 WHERE ( col0 ) <= col2 + - 63
----
NULL

skipif mysql # not compatible
query I rowsort label-5340
SELECT ALL + CAST ( + AVG ( ALL col0 ) AS REAL ) AS col1 FROM tab1 WHERE ( col0 ) <= col2 + - 63
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5341
SELECT + MIN( DISTINCT + 13 ) - 80 * 47 FROM tab0
----
-3747

skipif mysql # not compatible
query I rowsort label-5341
SELECT + MIN ( DISTINCT + 13 ) - 80 * 47 FROM tab0
----
-3747

query I rowsort
SELECT col1 * - col2 FROM tab0 WHERE NOT col2 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5343
SELECT DISTINCT + 61 + + col2 DIV + col2 AS col1 FROM tab1
----
62

skipif mysql # not compatible
query I rowsort label-5343
SELECT DISTINCT + 61 + + col2 / + col2 AS col1 FROM tab1
----
62

query I rowsort
SELECT + 99 FROM tab0 WHERE + col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + col2 col0 FROM tab1 WHERE NOT ( col0 ) < col0
----
1344
295
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-5346
SELECT ALL - 95 * COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL IN ( - 28 )
----
0

skipif mysql # not compatible
query I rowsort label-5346
SELECT ALL - 95 * COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL IN ( - 28 )
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 - + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5348
SELECT DISTINCT + col0 + 72 FROM tab1 AS cor0 WHERE NOT col2 IN ( CAST( + col1 AS DECIMAL ) * - col1 )
----
123
157
163

skipif mysql # not compatible
query I rowsort label-5348
SELECT DISTINCT + col0 + 72 FROM tab1 AS cor0 WHERE NOT col2 IN ( CAST ( + col1 AS REAL ) * - col1 )
----
123
157
163

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5350
SELECT + - MIN( - col1 ) FROM tab0 cor0
----
81

skipif mysql # not compatible
query I rowsort label-5350
SELECT + - MIN ( - col1 ) FROM tab0 cor0
----
81

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 * col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 72 * + col2 FROM tab2 AS cor0
----
1656
2880
4176

onlyif mysql # aggregate syntax: 
query I rowsort label-5353
SELECT ALL + + 73 * + COUNT( * ) FROM tab1 AS cor0
----
219

skipif mysql # not compatible
query I rowsort label-5353
SELECT ALL + + 73 * + COUNT ( * ) FROM tab1 AS cor0
----
219

onlyif mysql # aggregate syntax: 
query I rowsort label-5354
SELECT DISTINCT MIN( DISTINCT col1 ) FROM tab0 AS cor0 WHERE NOT + col0 < + col2
----
21

skipif mysql # not compatible
query I rowsort label-5354
SELECT DISTINCT MIN ( DISTINCT col1 ) FROM tab0 AS cor0 WHERE NOT + col0 < + col2
----
21

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 BETWEEN 23 * + col0 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col1 + + - 22 AS col2 FROM tab0
----
-1
-21
59

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 11 <> NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5358
SELECT - 39 + + CAST( 57 AS DECIMAL ) FROM tab2 WHERE NOT NULL BETWEEN NULL AND col0
----

skipif mysql # not compatible
query I rowsort label-5358
SELECT - 39 + + CAST ( 57 AS REAL ) FROM tab2 WHERE NOT NULL BETWEEN NULL AND col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - col1 ) * col1 col1 FROM tab0
----
-1
-441
-6561

query I rowsort
SELECT DISTINCT + col2 FROM tab1 WHERE NOT ( - col1 ) IS NULL
----
59
68
96

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( - col1 ) <= NULL
----

query I rowsort
SELECT - col1 + + 64 AS col2 FROM tab1
----
17
50
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5363
SELECT DISTINCT CAST( 21 AS SIGNED ) - COUNT( * ) AS col1 FROM tab1 WHERE NOT 91 <> col1 + col1
----
21

skipif mysql # not compatible
query I rowsort label-5363
SELECT DISTINCT CAST ( 21 AS INTEGER ) - COUNT ( * ) AS col1 FROM tab1 WHERE NOT 91 <> col1 + col1
----
21

query III rowsort
SELECT * FROM tab0 WHERE col1 * 97 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 62 + - 74 FROM tab0
----
-12
-12
-12

query I rowsort
SELECT ( - ( - col0 ) ) + col2 AS col1 FROM tab0
----
196
62
97

query I rowsort
SELECT - col0 + - 9 AS col2 FROM tab1
----
-100
-60
-94

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 95 * - 93 = col2 * 7
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 21 * col1 + 48 * col0 FROM tab0
----
2421
4617
4677

onlyif mysql # aggregate syntax: 
query I rowsort label-5370
SELECT DISTINCT + - MAX( DISTINCT + 21 ) FROM tab2 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-5370
SELECT DISTINCT + - MAX ( DISTINCT + 21 ) FROM tab2 AS cor0
----
-21

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE ( 69 ) <> - col2
----
51
67
77

query I rowsort
SELECT - ( - 14 ) AS col2 FROM tab1 AS cor0 WHERE NULL <= ( + col0 + + 76 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 99 col2 FROM tab2 cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) IS NULL
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

query I rowsort
SELECT ALL 21 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( col2 * + 37 / - col1 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT + col2 AS col1, - col1 * - col0 FROM tab2 AS cor0
----
23
2346
40
4928
58
5025

query I rowsort
SELECT ALL + ( - 32 ) AS col1 FROM tab0 cor0
----
-32
-32
-32

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 * ( - col0 ) / - 98 - - 87 * - col0 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + + col1 AS col2 FROM tab0 AS cor0 WHERE NOT 33 IS NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5380
SELECT - COUNT( * ) + - - 15 FROM tab0 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-5380
SELECT - COUNT ( * ) + - - 15 FROM tab0 AS cor0
----
12

query I rowsort
SELECT + - col1 * - 51 FROM tab0 AS cor0
----
1071
4131
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5382
SELECT ALL col1 + + 25 + - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5382
SELECT ALL col1 + + 25 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - 34 * col1 * - - col0 * - 32 * + col1 FROM tab0
----
105536
107075520
41743296

query I rowsort
SELECT col0 FROM tab1 WHERE NOT col0 <= ( 41 )
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5385
SELECT ( ( + ( + - COUNT( * ) ) ) ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-5385
SELECT ( ( + ( + - COUNT ( * ) ) ) ) AS col0 FROM tab2
----
-3

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 BETWEEN + - 68 AND - ( - col0 ) * 8
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5387
SELECT ALL ( + COUNT( * ) ) col2 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5387
SELECT ALL ( + COUNT ( * ) ) col2 FROM tab0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5388
SELECT ALL + ( SUM( CAST( col0 AS SIGNED ) ) ) AS col0 FROM tab1 WHERE NULL NOT IN ( + col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5388
SELECT ALL + ( SUM ( CAST ( col0 AS INTEGER ) ) ) AS col0 FROM tab1 WHERE NULL NOT IN ( + col0 )
----
NULL

query I rowsort
SELECT + 27 * col0 FROM tab0 WHERE NOT - col0 IS NULL
----
2349
2619
405

query III rowsort
SELECT ALL * FROM tab2 WHERE ( - col0 ) = col0 * col2
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - 4 ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5392
SELECT DISTINCT - - SUM( DISTINCT ( - + col1 ) ) AS col0 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-5392
SELECT DISTINCT - - SUM ( DISTINCT ( - + col1 ) ) AS col0 FROM tab1 AS cor0
----
-66

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col2 + 22 + + + col1 * col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5394
SELECT col2 * col1 DIV col1 col0 FROM tab0
----
10
47
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5394
SELECT col2 * col1 / col1 col0 FROM tab0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5395
SELECT - MAX( + - col0 ) AS col1 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-5395
SELECT - MAX ( + - col0 ) AS col1 FROM tab1
----
51

query I rowsort
SELECT ALL col0 FROM tab1 AS cor0 WHERE col0 NOT BETWEEN NULL AND - col1 / col1 + + col0 * + 82
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( col2 + - - col0 ) IS NOT NULL
----

query I rowsort
SELECT - + 14 + 21 FROM tab2 AS cor0
----
7
7
7

query I rowsort
SELECT - 83 FROM tab0 cor0
----
-83
-83
-83

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( 99 * + col2 * col2 ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5401
SELECT DISTINCT - COUNT( * ) + ( + SUM( DISTINCT - col2 ) ) * 54 AS col1 FROM tab2 AS cor0
----
-6537

skipif mysql # not compatible
query I rowsort label-5401
SELECT DISTINCT - COUNT ( * ) + ( + SUM ( DISTINCT - col2 ) ) * 54 AS col1 FROM tab2 AS cor0
----
-6537

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( + 66 * 78 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5403
SELECT DISTINCT MIN( ALL + col0 ) + + 92 AS col1 FROM tab1
----
143

skipif mysql # not compatible
query I rowsort label-5403
SELECT DISTINCT MIN ( ALL + col0 ) + + 92 AS col1 FROM tab1
----
143

onlyif mysql # aggregate syntax: 
query II rowsort label-5404
SELECT 56 AS col1, + COUNT( * ) FROM tab1
----
56
3

skipif mysql # not compatible
query II rowsort label-5404
SELECT 56 AS col1, + COUNT ( * ) FROM tab1
----
56
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5405
SELECT DISTINCT CAST( col1 AS SIGNED ) col2 FROM tab0 WHERE ( 86 * + col0 ) IS NOT NULL
----
1
21
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5405
SELECT DISTINCT CAST ( col1 AS INTEGER ) col2 FROM tab0 WHERE ( 86 * + col0 ) IS NOT NULL
----
1
21
81

query I rowsort
SELECT ALL - col1 + + + 54 AS col2 FROM tab0
----
-27
33
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5407
SELECT 47 * - + CAST( + - SUM( - col2 ) AS SIGNED ) FROM tab1
----
-10481

skipif mysql # not compatible
query I rowsort label-5407
SELECT 47 * - + CAST ( + - SUM ( - col2 ) AS INTEGER ) FROM tab1
----
-10481

query III rowsort
SELECT * FROM tab0 WHERE - 94 NOT IN ( col1 * - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE ( ( NULL ) NOT IN ( col2 ) )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col2 + + - 40 + - 75 <= ( col1 )
----

query I rowsort
SELECT DISTINCT - - 10 AS col0 FROM tab2 AS cor0
----
10

query I rowsort
SELECT - - 96 + - col0 AS col0 FROM tab1 cor0
----
11
45
5

query I rowsort
SELECT + col1 + col0 * + - col2 * - - col1 FROM tab2
----
-197043
-291383
-53907

query III rowsort
SELECT * FROM tab1 WHERE - col1 + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5415
SELECT DISTINCT + COUNT( 78 ) AS col1 FROM tab1 AS cor0 WHERE NOT col2 - + + 42 + + ( + col1 ) <= - - col0 + + + col0
----
0

skipif mysql # not compatible
query I rowsort label-5415
SELECT DISTINCT + COUNT ( 78 ) AS col1 FROM tab1 AS cor0 WHERE NOT col2 - + + 42 + + ( + col1 ) <= - - col0 + + + col0
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 NOT IN ( col0, - col0 * + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5417
SELECT + COUNT( * ) - 37 FROM tab1 AS cor0
----
-34

skipif mysql # not compatible
query I rowsort label-5417
SELECT + COUNT ( * ) - 37 FROM tab1 AS cor0
----
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5418
SELECT ( 47 ) - CAST( + 50 AS SIGNED ) + MAX( DISTINCT 94 ) + - - 44 + + COUNT( * ) AS col2 FROM tab2 cor0
----
138

skipif mysql # not compatible
query I rowsort label-5418
SELECT ( 47 ) - CAST ( + 50 AS INTEGER ) + MAX ( DISTINCT 94 ) + - - 44 + + COUNT ( * ) AS col2 FROM tab2 cor0
----
138

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5419
SELECT DISTINCT - MIN( + 90 ) AS col1 FROM tab2 AS cor0 WHERE NOT ( - col0 * - 9 * - col1 * + + 55 ) IN ( - col2 * + col1 * CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5419
SELECT DISTINCT - MIN ( + 90 ) AS col1 FROM tab2 AS cor0 WHERE NOT ( - col0 * - 9 * - col1 * + + 55 ) IN ( - col2 * + col1 * CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5420
SELECT - MAX( - - col2 ) AS col0 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-5420
SELECT - MAX ( - - col2 ) AS col0 FROM tab0 AS cor0
----
-99

query I rowsort
SELECT - + col1 * - 96 * + col2 * + col0 FROM tab1 AS cor0
----
2407200
27920256
6580224

onlyif mysql # DIV for integer division: 
query I rowsort label-5422
SELECT + col2 DIV 26 * col2 FROM tab1 AS cor0
----
118
136
288

skipif mysql # not compatible
query I rowsort label-5422
SELECT + col2 / 26 * col2 FROM tab1 AS cor0
----
118
136
288

query I rowsort
SELECT + - col0 AS col0 FROM tab2 AS cor0 WHERE NOT 16 IS NOT NULL
----

query II rowsort
SELECT ALL col0, 62 FROM tab1
----
51
62
85
62
91
62

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab2 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE - col0 * - col0 + + + col0 + + col1 + 11 * + col0 / col1 + + col1 * + 37 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - ( - col2 ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) <= - + col0 + + 49
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5428
SELECT + CAST( + - col1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-5428
SELECT + CAST ( + - col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-14
-47
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + ( - 45 ) col2 FROM tab1 AS cor0
----
-45

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE - col0 > ( + col0 ) * + - 55 / + col1 * - + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1, 12 * - col0 col0 FROM tab1 AS cor0
----
14
-612
47
-1092
5
-1020

onlyif mysql # aggregate syntax: 
query I rowsort label-5432
SELECT - + COUNT( * ) AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-9

skipif mysql # not compatible
query I rowsort label-5432
SELECT - + COUNT ( * ) AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-9

query I rowsort
SELECT + - 37 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ed4644af7729c2425ea6cc3d84c6504f

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5434
SELECT DISTINCT - MAX( - + CAST( NULL AS SIGNED ) ) col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5434
SELECT DISTINCT - MAX ( - + CAST ( NULL AS INTEGER ) ) col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

query I rowsort
SELECT DISTINCT + 17 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
17

query I rowsort
SELECT DISTINCT - - 54 FROM tab1 WHERE col2 NOT BETWEEN NULL AND col1 / - 16 * 95 + - + ( + col2 )
----
54

query I rowsort
SELECT + - 72 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE - 86 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5438
SELECT COUNT( DISTINCT - col2 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5438
SELECT COUNT ( DISTINCT - col2 ) AS col0 FROM tab1 AS cor0
----
3

query III rowsort
SELECT * FROM tab0 cor0 WHERE col2 NOT BETWEEN - 38 - + col2 AND ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5440
SELECT ( + - 42 ) + - - COUNT( - CAST( + col0 AS DECIMAL ) ) + + + MIN( ALL + 10 ) AS col1 FROM tab2
----
-29

skipif mysql # not compatible
query I rowsort label-5440
SELECT ( + - 42 ) + - - COUNT ( - CAST ( + col0 AS REAL ) ) + + + MIN ( ALL + 10 ) AS col1 FROM tab2
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-5441
SELECT 28 * 84 + COUNT( * ) + + 81 FROM tab0
----
2436

skipif mysql # not compatible
query I rowsort label-5441
SELECT 28 * 84 + COUNT ( * ) + + 81 FROM tab0
----
2436

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL BETWEEN - 0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5443
SELECT ALL ( + 24 ) + MAX( col2 ) FROM tab2
----
82

skipif mysql # not compatible
query I rowsort label-5443
SELECT ALL ( + 24 ) + MAX ( col2 ) FROM tab2
----
82

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5444
SELECT 16 + - - CAST( NULL AS DECIMAL ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5444
SELECT 16 + - - CAST ( NULL AS REAL ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query III rowsort label-5445
SELECT - 64 + col2 + - col0 - - + col2 DIV + - col0, col2 + - col2 DIV + - 79 col2, 55 AS col1 FROM tab0
----
9 values hashing to c09159264f9126158f7e09ae630d3643

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-5445
SELECT - 64 + col2 + - col0 - - + col2 / + - col0, col2 + - col2 / + - 79 col2, 55 AS col1 FROM tab0
----
9 values hashing to c09159264f9126158f7e09ae630d3643

query I rowsort
SELECT DISTINCT + 13 * + + col1 * + col0 FROM tab1
----
5525
55601
9282

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 23 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5448
SELECT ALL + 53 + + col0 * CAST( + col2 AS SIGNED ) + + CAST( NULL AS SIGNED ) * - + col0 - col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5448
SELECT ALL + 53 + + col0 * CAST ( + col2 AS INTEGER ) + + CAST ( NULL AS INTEGER ) * - + col0 - col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5449
SELECT DISTINCT - COUNT( * ) + + SUM( ALL - col2 ) FROM tab2 AS cor0
----
-124

skipif mysql # not compatible
query I rowsort label-5449
SELECT DISTINCT - COUNT ( * ) + + SUM ( ALL - col2 ) FROM tab2 AS cor0
----
-124

query I rowsort
SELECT ALL + - col2 + + 4 FROM tab1 AS cor0
----
-55
-64
-92

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( ( - 42 + - ( - 22 ) IS NULL ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5452
SELECT MAX( ALL - ( - col0 ) ) FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-5452
SELECT MAX ( ALL - ( - col0 ) ) FROM tab2 AS cor0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5453
SELECT DISTINCT MIN( + - 29 ) AS col2 FROM tab2 AS cor0
----
-29

skipif mysql # not compatible
query I rowsort label-5453
SELECT DISTINCT MIN ( + - 29 ) AS col2 FROM tab2 AS cor0
----
-29

onlyif mysql # aggregate syntax: 
query II rowsort label-5454
SELECT ALL - COUNT( * ) AS col1, ( - 24 ) FROM tab2 AS cor0 WHERE ( ( + + col1 ) ) IS NOT NULL
----
-3
-24

skipif mysql # not compatible
query II rowsort label-5454
SELECT ALL - COUNT ( * ) AS col1, ( - 24 ) FROM tab2 AS cor0 WHERE ( ( + + col1 ) ) IS NOT NULL
----
-3
-24

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 82 / + + col1 > NULL
----

query I rowsort
SELECT ALL 19 * - + col0 AS col1 FROM tab1 AS cor0
----
-1615
-1729
-969

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5457
SELECT ALL + - CAST( NULL AS SIGNED ) + + + col0 - col2 AS col2 FROM tab0 AS cor0 WHERE NOT NULL <= + 84
----

skipif mysql # not compatible
query I rowsort label-5457
SELECT ALL + - CAST ( NULL AS INTEGER ) + + + col0 - col2 AS col2 FROM tab0 AS cor0 WHERE NOT NULL <= + 84
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5458
SELECT + 5 * - 97 * - COUNT( * ) + - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5458
SELECT + 5 * - 97 * - COUNT ( * ) + - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - col0 * + + col2 FROM tab2 AS cor0
----
-1058
-2560
-4350

query II rowsort
SELECT - col1 AS col2, - 3 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-51
-3
-67
-3
-77
-3

query II rowsort
SELECT - col1 * col2 AS col2, + ( + - 91 ) AS col1 FROM tab0
----
-210
-91
-3807
-91
-99
-91

query III rowsort
SELECT * FROM tab1 WHERE NOT + + 41 <= + 92 * 55 + - 5
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5463
SELECT MIN( + - col1 ) AS col2 FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-5463
SELECT MIN ( + - col1 ) AS col2 FROM tab2
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5464
SELECT ALL col1 AS col2 FROM tab2 WHERE NULL BETWEEN NULL AND CAST( NULL AS SIGNED ) - - - 11
----

skipif mysql # not compatible
query I rowsort label-5464
SELECT ALL col1 AS col2 FROM tab2 WHERE NULL BETWEEN NULL AND CAST ( NULL AS INTEGER ) - - - 11
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NOT ( NOT ( + - col1 ) * 61 IS NOT NULL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query II rowsort label-5466
SELECT ALL col2 DIV + col1 AS col1, + col0 FROM tab0
----
0
15
0
87
99
97

skipif mysql # not compatible
query II rowsort label-5466
SELECT ALL col2 / + col1 AS col1, + col0 FROM tab0
----
0
15
0
87
99
97

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 / col0 - - + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + - 86 * - 82 + 56 AS col1 FROM tab2 AS cor0
----
7108
7108
7108

onlyif mysql # aggregate syntax: 
query I rowsort label-5469
SELECT ALL - ( + - SUM( ALL col2 ) ) AS col2 FROM tab2 cor0
----
121

skipif mysql # not compatible
query I rowsort label-5469
SELECT ALL - ( + - SUM ( ALL col2 ) ) AS col2 FROM tab2 cor0
----
121

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5470
SELECT DISTINCT - + ( - CAST( - + 24 AS SIGNED ) ) + - col2 - 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-5470
SELECT DISTINCT - + ( - CAST ( - + 24 AS INTEGER ) ) + - col2 - CAST ( NULL AS INTEGER ) col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5471
SELECT - + SUM( ALL - - col2 ) AS col2 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-5471
SELECT - + SUM ( ALL - - col2 ) AS col2 FROM tab1 AS cor0
----
-223

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - col1 ) * + 82 col1 FROM tab0 AS cor0 WHERE - col1 IS NOT NULL
----
-1722
-6642
-82

query I rowsort
SELECT ALL + col1 AS col0 FROM tab1 WHERE ( NULL ) > 4
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5474
SELECT ALL + 97 * + COUNT( * ) - + COUNT( * ) FROM tab2
----
288

skipif mysql # not compatible
query I rowsort label-5474
SELECT ALL + 97 * + COUNT ( * ) - + COUNT ( * ) FROM tab2
----
288

query I rowsort
SELECT col1 - + 50 FROM tab2
----
1
17
27

onlyif mysql # DIV for integer division: 
query I rowsort label-5476
SELECT ALL - col0 DIV + 97 + + 4 FROM tab2
----
4
4
4

skipif mysql # not compatible
query I rowsort label-5476
SELECT ALL - col0 / + 97 + + 4 FROM tab2
----
4
4
4

query I rowsort
SELECT DISTINCT - + col2 * - col0 - 38 * - col1 * col2 * - - col2 AS col1 FROM tab0 WHERE NOT - col0 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5478
SELECT COUNT( * ) FROM tab2 WHERE - col0 * col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5478
SELECT COUNT ( * ) FROM tab2 WHERE - col0 * col0 IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5479
SELECT DISTINCT - - col2 * - + 71 + - - CAST( - col1 AS SIGNED ) DIV + + col0 AS col1 FROM tab2 AS cor0
----
-1634
-2841
-4118

skipif mysql # not compatible
query I rowsort label-5479
SELECT DISTINCT - - col2 * - + 71 + - - CAST ( - col1 AS INTEGER ) / + + col0 AS col1 FROM tab2 AS cor0
----
-1634
-2841
-4118

query I rowsort
SELECT + col2 + + + 80 * col1 FROM tab1 AS cor0
----
1216
3828
459

query II rowsort
SELECT + col2 + - + ( - col2 ) + - + col0 AS col0, - col0 FROM tab0 cor0
----
-67
-87
101
-97
79
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5482
SELECT - col1 + + col0 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5482
SELECT - col1 + + col0 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - ( - col1 ) + col0 * - col1 FROM tab2 AS cor0
----
-2295
-4851
-4958

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * + + col2 + col0 col1 FROM tab1 AS cor0
----
1395
3287
380

query I rowsort
SELECT - 55 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ac76841ceecd2311e80c621d15bacdd3

query I rowsort
SELECT col1 * - col1 * 13 FROM tab2
----
-33813
-58357
-77077

query I rowsort
SELECT DISTINCT col2 * - 71 FROM tab1 AS cor0
----
-4189
-4828
-6816

query I rowsort
SELECT ALL - - 47 * 12 FROM tab0 AS cor0
----
564
564
564

onlyif mysql # aggregate syntax: 
query I rowsort label-5489
SELECT + + COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5489
SELECT + + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5490
SELECT - CAST( NULL AS SIGNED ) * 75 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5490
SELECT - CAST ( NULL AS INTEGER ) * 75 FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT 26 AS col1, - col2 AS col1 FROM tab2 AS cor0
----
26
-23
26
-40
26
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-5492
SELECT COUNT( * ) * SUM( - col2 ) FROM tab1 AS cor0
----
-669

skipif mysql # not compatible
query I rowsort label-5492
SELECT COUNT ( * ) * SUM ( - col2 ) FROM tab1 AS cor0
----
-669

query II rowsort
SELECT ALL col2, 63 FROM tab2 AS cor0
----
23
63
40
63
58
63

onlyif mysql # DIV for integer division: 
query I rowsort label-5494
SELECT DISTINCT ( - col2 ) DIV 62 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5494
SELECT DISTINCT ( - col2 ) / 62 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT + - 98 AS col2 FROM tab1 AS cor0
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-5496
SELECT - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT ( + 11 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5496
SELECT - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT ( + 11 ) IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT - col0 * + - col1 AS col1 FROM tab0 AS cor0
----
1215
1827
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5498
SELECT - CAST( NULL AS SIGNED ) * COUNT( * ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5498
SELECT - CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5499
SELECT * FROM tab2 WHERE NOT col1 * + - col1 * - col0 NOT BETWEEN + col2 + 51 + + col1 AND CAST( + col0 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5499
SELECT * FROM tab2 WHERE NOT col1 * + - col1 * - col0 NOT BETWEEN + col2 + 51 + + col1 AND CAST ( + col0 AS INTEGER )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + + 39 = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5501
SELECT DISTINCT MIN( ALL + + 4 ) * - - 56 AS col0 FROM tab0
----
224

skipif mysql # not compatible
query I rowsort label-5501
SELECT DISTINCT MIN ( ALL + + 4 ) * - - 56 AS col0 FROM tab0
----
224

onlyif mysql # aggregate syntax: 
query II rowsort label-5502
SELECT ALL ( + + COUNT( * ) ) AS col1, MAX( 72 ) FROM tab0 WHERE col0 * col0 IS NULL
----
0
NULL

skipif mysql # not compatible
query II rowsort label-5502
SELECT ALL ( + + COUNT ( * ) ) AS col1, MAX ( 72 ) FROM tab0 WHERE col0 * col0 IS NULL
----
0
NULL

query I rowsort
SELECT DISTINCT col0 * + 69 FROM tab0
----
1035
6003
6693

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - + 32 NOT BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5505
SELECT DISTINCT - 42 DIV + 84 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5505
SELECT DISTINCT - 42 / + 84 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5506
SELECT - COUNT( * ) + COUNT( * ) + + 1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5506
SELECT - COUNT ( * ) + COUNT ( * ) + + 1 FROM tab0 AS cor0
----
1

query I rowsort
SELECT ALL 85 + + - ( - col2 ) * - 95 + - - col2 * + col2 AS col1 FROM tab1
----
-1751
-2039
181

query III rowsort
SELECT * FROM tab0 WHERE ( + col1 * - - 20 ) NOT BETWEEN NULL AND col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5509
SELECT 18 * COUNT( * ) AS col2 FROM tab0 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-5509
SELECT 18 * COUNT ( * ) AS col2 FROM tab0 AS cor0
----
54

query I rowsort
SELECT - 10 * col1 - - - 70 + col1 FROM tab2 AS cor0
----
-529
-673
-763

query I rowsort
SELECT - col0 + 3 AS col2 FROM tab1 AS cor0
----
-48
-82
-88

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5512
SELECT + col2 * - col2 * - col2 + + - CAST( - col1 AS SIGNED ) - - col1 DIV col0 * col0 DIV - + 37 AS col0 FROM tab2 AS cor0
----
12217
195179
64076

skipif mysql # not compatible
query I rowsort label-5512
SELECT + col2 * - col2 * - col2 + + - CAST ( - col1 AS INTEGER ) - - col1 / col0 * col0 / - + 37 AS col0 FROM tab2 AS cor0
----
12217
195179
64076

query I rowsort
SELECT DISTINCT + - ( + - col1 ) + + + col2 FROM tab0 cor0
----
100
128
31

query I rowsort
SELECT ALL + - col0 + - + col2 AS col0 FROM tab2 AS cor0
----
-104
-133
-69

query I rowsort
SELECT ALL + + 52 FROM tab1 AS cor0 WHERE col2 >= - ( - 72 )
----
52

query I rowsort
SELECT + + 9 FROM tab0 WHERE NULL < + 73
----

query I rowsort
SELECT - - ( + col2 ) + + - col0 AS col0 FROM tab2 WHERE NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT - col2 + 31 FROM tab2
----
-27
-9
8

query I rowsort
SELECT DISTINCT + col2 - - 87 FROM tab2
----
110
127
145

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 col0, col0 col0 FROM tab1
----
59
85
68
91
96
51

query I rowsort
SELECT ALL - 42 - - 29 AS col0 FROM tab2
----
-13
-13
-13

query I rowsort
SELECT - col0 * - col2 + - 89 + + 81 AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - col2 * - - 98 AS col0 FROM tab1
----
-5782
-6664
-9408

onlyif mysql # aggregate syntax: 
query I rowsort label-5524
SELECT - + COUNT( * ) * + MAX( + col0 ) FROM tab0 AS cor0
----
-291

skipif mysql # not compatible
query I rowsort label-5524
SELECT - + COUNT ( * ) * + MAX ( + col0 ) FROM tab0 AS cor0
----
-291

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5525
SELECT col1 + - 23 AS col0, - col1 AS col0 FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-5525
SELECT col1 + - 23 AS col0, - col1 AS col0 FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5526
SELECT ALL - - COUNT( ALL - 23 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5526
SELECT ALL - - COUNT ( ALL - 23 ) AS col1 FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT + + col2 * - 40 AS col1 FROM tab2 AS cor0
----
-1600
-2320
-920

query I rowsort
SELECT - col0 * - + 55 * col2 * + col2 * - col0 AS col2 FROM tab0 AS cor0 WHERE NOT + col2 + col0 + - col0 - - + col0 * + 92 IS NOT NULL
----

query II rowsort
SELECT ALL + col2 * + col0, 48 + - + col2 AS col1 FROM tab2 AS cor0
----
1058
25
2560
8
4350
-10

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT 28 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5531
SELECT ALL COUNT( * ) * + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
9

skipif mysql # not compatible
query I rowsort label-5531
SELECT ALL COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
9

query I rowsort
SELECT ALL - 82 AS col1 FROM tab1 AS cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5533
SELECT + MAX( 57 ) AS col2 FROM tab1
----
57

skipif mysql # not compatible
query I rowsort label-5533
SELECT + MAX ( 57 ) AS col2 FROM tab1
----
57

onlyif mysql # aggregate syntax: 
query II rowsort label-5534
SELECT DISTINCT 73, - COUNT( * ) AS col2 FROM tab0
----
73
-3

skipif mysql # not compatible
query II rowsort label-5534
SELECT DISTINCT 73, - COUNT ( * ) AS col2 FROM tab0
----
73
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 23, col0 col0 FROM tab1
----
23
51
23
85
23
91

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col2 - - col0 + - + col0 <> col1
----

query II rowsort
SELECT - 86, col1 AS col1 FROM tab2
----
-86
51
-86
67
-86
77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5538
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN + CAST( NULL AS SIGNED ) AND - ( + + ( + ( col0 ) ) )
----

skipif mysql # not compatible
query III rowsort label-5538
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN + CAST ( NULL AS INTEGER ) AND - ( + + ( + ( col0 ) ) )
----

query III rowsort
SELECT * FROM tab2 WHERE - - col2 * col2 = ( - col1 )
----

query I rowsort
SELECT 42 + - 98 AS col2 FROM tab0
----
-56
-56
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-5541
SELECT DISTINCT + COUNT( DISTINCT - + col2 ) + + - COUNT( * ) + - COUNT( * ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-5541
SELECT DISTINCT + COUNT ( DISTINCT - + col2 ) + + - COUNT ( * ) + - COUNT ( * ) FROM tab0
----
-3

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) = 35
----

query I rowsort
SELECT DISTINCT - - 81 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
81

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 + - 82 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + 7 AS col1, 42 * - - 4 AS col0 FROM tab2 AS cor0
----
7
168
7
168
7
168

query I rowsort
SELECT ALL - col2 + col1 + - + col0 AS col0 FROM tab1 AS cor0
----
-112
-133
-139

query I rowsort
SELECT DISTINCT - - col2 + - + col1 FROM tab0 AS cor0
----
-11
-34
98

onlyif mysql # DIV for integer division: 
query I rowsort label-5548
SELECT + 41 DIV col1 * - - 64 * - + col2 col1 FROM tab1 cor0
----
-12288
-30208
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5548
SELECT + 41 / col1 * - - 64 * - + col2 col1 FROM tab1 cor0
----
-12288
-30208
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5549
SELECT ALL col2 - + ( + 55 ) + + 46 DIV + 36 FROM tab2
----
-14
-31
4

skipif mysql # not compatible
query I rowsort label-5549
SELECT ALL col2 - + ( + 55 ) + + 46 / + 36 FROM tab2
----
-14
-31
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5550
SELECT col2 - ( - CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5550
SELECT col2 - ( - CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 67 - - 55, 84 + + - 9 col0 FROM tab1
----
-12
75
-12
75
-12
75

query I rowsort
SELECT ALL 23 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL AND NOT ( NULL ) BETWEEN NULL AND - - ( col1 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + col0 + col2 * + ( 94 ) / 70 <= NULL )
----

query I rowsort
SELECT DISTINCT 86 * col1 FROM tab0
----
1806
6966
86

onlyif mysql # aggregate syntax: 
query I rowsort label-5555
SELECT - COUNT( * ) * + 78 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-702

skipif mysql # not compatible
query I rowsort label-5555
SELECT - COUNT ( * ) * + 78 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-702

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT IN ( - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5557
SELECT + COUNT( * ) * - 89 AS col0 FROM tab1 AS cor0
----
-267

skipif mysql # not compatible
query I rowsort label-5557
SELECT + COUNT ( * ) * - 89 AS col0 FROM tab1 AS cor0
----
-267

onlyif mysql # aggregate syntax: 
query I rowsort label-5558
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-5558
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
3

query I rowsort
SELECT DISTINCT + 75 * - - 68 * - col2 FROM tab2
----
-117300
-204000
-295800

query III rowsort
SELECT * FROM tab0 WHERE NOT + 44 - - col0 * - 5 IS NOT NULL
----

query I rowsort
SELECT ALL + + col2 * col1 FROM tab0 WHERE NOT NULL <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col1 IN ( - + col2, - col1, col2, - + col1 + + + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5563
SELECT + MAX( - col2 ) + + - 5 AS col2 FROM tab2
----
-28

skipif mysql # not compatible
query I rowsort label-5563
SELECT + MAX ( - col2 ) + + - 5 AS col2 FROM tab2
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-5564
SELECT + + COUNT( * ) AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-5564
SELECT + + COUNT ( * ) AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
3

query I rowsort
SELECT ALL + + 48 * - 62 + 53 + col1 + 10 FROM tab1 cor0
----
-2866
-2899
-2908

query II rowsort
SELECT ALL + col1 AS col2, - col1 AS col0 FROM tab0
----
1
-1
21
-21
81
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 32 - + + 21 col1 FROM tab1
----
11
11
11

query I rowsort
SELECT + col0 - + 67 AS col2 FROM tab2
----
-21
-3
8

query I rowsort
SELECT ALL + - 78 + + ( col1 ) AS col2 FROM tab2 cor0 WHERE NOT - 24 >= + - col0 + col0 / + col1
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( + col0 BETWEEN NULL AND - + col0 * - - col1 + - col0 + + 66 + 28 - 54 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5571
SELECT DISTINCT MAX( + - 41 ) * 54 AS col2 FROM tab0 AS cor0
----
-2214

skipif mysql # not compatible
query I rowsort label-5571
SELECT DISTINCT MAX ( + - 41 ) * 54 AS col2 FROM tab0 AS cor0
----
-2214

query I rowsort
SELECT ALL - 79 * + col1 * + 27 FROM tab0 cor0
----
-172773
-2133
-44793

query I rowsort
SELECT ALL - 11 + + 34 AS col0 FROM tab1 cor0
----
23
23
23

query I rowsort
SELECT + + col1 + + 61 FROM tab1 AS cor0
----
108
66
75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5575
SELECT - CAST( NULL AS SIGNED ) AS col0, + col1 - + col2 AS col0 FROM tab2
----
NULL
28
NULL
37
NULL
9

skipif mysql # not compatible
query II rowsort label-5575
SELECT - CAST ( NULL AS INTEGER ) AS col0, + col1 - + col2 AS col0 FROM tab2
----
NULL
28
NULL
37
NULL
9

query I rowsort
SELECT ALL ( - + 19 ) + - 55 AS col0 FROM tab1
----
-74
-74
-74

query I rowsort
SELECT ALL 50 - + 31 * + 59 AS col2 FROM tab0
----
-1779
-1779
-1779

onlyif mysql # aggregate syntax: 
query I rowsort label-5578
SELECT DISTINCT - COUNT( * ) + + COUNT( * ) col1 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5578
SELECT DISTINCT - COUNT ( * ) + + COUNT ( * ) col1 FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - + col1 col2 FROM tab0 WHERE col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5580
SELECT + col2 AS col2, - 71 DIV col1 AS col0 FROM tab1
----
59
-14
68
-1
96
-5

skipif mysql # not compatible
query II rowsort label-5580
SELECT + col2 AS col2, - 71 / col1 AS col0 FROM tab1
----
59
-14
68
-1
96
-5

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5581
SELECT CAST( NULL AS DECIMAL ) * 85 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5581
SELECT CAST ( NULL AS REAL ) * 85 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5582
SELECT DISTINCT col1 AS col1, 32 DIV + col1 AS col2 FROM tab1
----
14
2
47
0
5
6

skipif mysql # not compatible
query II rowsort label-5582
SELECT DISTINCT col1 AS col1, 32 / + col1 AS col2 FROM tab1
----
14
2
47
0
5
6

query III rowsort
SELECT ALL * FROM tab1 WHERE - 70 * 16 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 * - 50 * - col1 FROM tab2
----
117300
246400
251250

query I rowsort
SELECT ALL - - col1 AS col1 FROM tab1 AS cor0 WHERE NOT + 32 IS NOT NULL
----

query I rowsort
SELECT col2 FROM tab0 cor0 WHERE NOT - 71 IS NOT NULL
----

query II rowsort
SELECT + 2 AS col0, col2 AS col1 FROM tab1 cor0 WHERE - col1 >= + col0 * + - col2 OR NOT NULL IS NULL
----
2
59
2
68
2
96

query III rowsort
SELECT ALL * FROM tab0 WHERE 18 * + - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5589
SELECT - MIN( + col1 ) col1 FROM tab2
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5589
SELECT - MIN ( + col1 ) col1 FROM tab2
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-5590
SELECT - ( - - COUNT( * ) ) * 10 FROM tab0
----
-30

skipif mysql # not compatible
query I rowsort label-5590
SELECT - ( - - COUNT ( * ) ) * 10 FROM tab0
----
-30

query II rowsort
SELECT DISTINCT - col0, + col1 + + col2 AS col2 FROM tab2
----
-46
74
-64
117
-75
125

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5592
SELECT - 22 FROM tab2 WHERE - + 41 + 73 - 77 / - 68 * - - 54 + CAST( NULL AS SIGNED ) IS NULL
----
-22
-22
-22

skipif mysql # not compatible
query I rowsort label-5592
SELECT - 22 FROM tab2 WHERE - + 41 + 73 - 77 / - 68 * - - 54 + CAST ( NULL AS INTEGER ) IS NULL
----
-22
-22
-22

query I rowsort
SELECT col2 * + - 74 AS col0 FROM tab1
----
-4366
-5032
-7104

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL <> - 10
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5595
SELECT - 64 AS col0, + col2 + col0 * + col2 + - col0 + - CAST( - + col2 AS SIGNED ) FROM tab2
----
-64
1058
-64
2576
-64
4391

skipif mysql # not compatible
query II rowsort label-5595
SELECT - 64 AS col0, + col2 + col0 * + col2 + - col0 + - CAST ( - + col2 AS INTEGER ) FROM tab2
----
-64
1058
-64
2576
-64
4391

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5596
SELECT ALL CAST( - + col1 AS SIGNED ) AS col2 FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-5596
SELECT ALL CAST ( - + col1 AS INTEGER ) AS col2 FROM tab1
----
-14
-47
-5

query I rowsort
SELECT ALL col1 FROM tab0 WHERE NOT + col1 + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5598
SELECT + - CAST( NULL AS SIGNED ) * - 31 FROM tab0 WHERE - 77 * + - 73 + - col1 + + col2 * - + 9 NOT BETWEEN + col2 AND NULL
----

skipif mysql # not compatible
query I rowsort label-5598
SELECT + - CAST ( NULL AS INTEGER ) * - 31 FROM tab0 WHERE - 77 * + - 73 + - col1 + + col2 * - + 9 NOT BETWEEN + col2 AND NULL
----

query II rowsort
SELECT DISTINCT col2 + + col1, - col0 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
117
-64
125
-75
74
-46

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT IN ( col1 * - col0, col0, - - ( + 71 ), + + 90, - - 24 )
----

query II rowsort
SELECT ALL - + col0, - ( + col0 ) AS col1 FROM tab2 AS cor0
----
-46
-46
-64
-64
-75
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-5602
SELECT ALL + + COUNT( * ) + + - ( 94 ) AS col0 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-5602
SELECT ALL + + COUNT ( * ) + + - ( 94 ) AS col0 FROM tab1 AS cor0
----
-91

query I rowsort
SELECT DISTINCT - 41 - - 11 AS col1 FROM tab0 AS cor0
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-5604
SELECT ALL - MIN( - + col2 ) FROM tab0 cor0
----
99

skipif mysql # not compatible
query I rowsort label-5604
SELECT ALL - MIN ( - + col2 ) FROM tab0 cor0
----
99

query I rowsort
SELECT ALL 17 + - 29 FROM tab1 AS cor0
----
-12
-12
-12

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 13 * + ( - - col0 ) * + - col2 + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 27 - - ( col1 ) FROM tab1 AS cor0
----
32
41
74

query I rowsort
SELECT DISTINCT + 43 * + ( - 85 ) * + - col0 * + + 97 + + - col1 + + col1 * + col1 FROM tab1 AS cor0
----
18081467
30135495
32264847

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5609
SELECT ALL + - col1 * - 53 + - CAST( NULL AS SIGNED ) + - + 67 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5609
SELECT ALL + - col1 * - 53 + - CAST ( NULL AS INTEGER ) + - + 67 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - col0 * + col0 + - col0 + + col0 + + col1 AS col1 FROM tab0 AS cor0
----
-144
-7548
-9408

onlyif mysql # aggregate syntax: 
query I rowsort label-5611
SELECT - ( ( COUNT( * ) ) ) - + 3 FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-5611
SELECT - ( ( COUNT ( * ) ) ) - + 3 FROM tab1 AS cor0
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-5612
SELECT DISTINCT - col2 DIV + 93 col2 FROM tab0 AS cor0
----
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5612
SELECT DISTINCT - col2 / + 93 col2 FROM tab0 AS cor0
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5613
SELECT DISTINCT - + 50 + - 50 * + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-200

skipif mysql # not compatible
query I rowsort label-5613
SELECT DISTINCT - + 50 + - 50 * + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5614
SELECT + CAST( - + col1 AS SIGNED ) col0 FROM tab0
----
-1
-21
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5614
SELECT + CAST ( - + col1 AS INTEGER ) col0 FROM tab0
----
-1
-21
-81

query II rowsort
SELECT DISTINCT col1, - 45 AS col1 FROM tab1
----
14
-45
47
-45
5
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-5616
SELECT DISTINCT MIN( ALL 20 ) col1 FROM tab0
----
20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5616
SELECT DISTINCT MIN ( ALL 20 ) col1 FROM tab0
----
20

query I rowsort
SELECT ALL - 81 * + + col0 FROM tab2
----
-3726
-5184
-6075

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN - col1 AND + col2
----

query II rowsort
SELECT DISTINCT col0 * - col1 * - col2, 29 AS col0 FROM tab2
----
197120
29
291450
29
53958
29

onlyif mysql # aggregate syntax: 
query II rowsort label-5620
SELECT COUNT( * ), + 96 AS col0 FROM tab1 AS cor0
----
3
96

skipif mysql # not compatible
query II rowsort label-5620
SELECT COUNT ( * ), + 96 AS col0 FROM tab1 AS cor0
----
3
96

query I rowsort
SELECT ( + col2 ) * - col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-210
-3807
-99

query II rowsort
SELECT col0 AS col2, - col1 AS col0 FROM tab2 AS cor0
----
46
-51
64
-77
75
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-5623
SELECT - COUNT( * ) * - COUNT( ( + col1 ) ) col0 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5623
SELECT - COUNT ( * ) * - COUNT ( ( + col1 ) ) col0 FROM tab1 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-5624
SELECT DISTINCT + COUNT( * ) col2, + COUNT( * ) AS col1 FROM tab0
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5624
SELECT DISTINCT + COUNT ( * ) col2, + COUNT ( * ) AS col1 FROM tab0
----
3
3

query III rowsort
SELECT ALL * FROM tab2 WHERE + 79 * 16 + + - col0 IS NULL
----

query I rowsort
SELECT DISTINCT 7 * + - col0 AS col1 FROM tab2 AS cor0
----
-322
-448
-525

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - - col1 NOT BETWEEN + - col1 * + col0 / 7 * - col1 AND ( NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5628
SELECT - - MIN( + + 11 ) FROM tab1 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-5628
SELECT - - MIN ( + + 11 ) FROM tab1 AS cor0
----
11

query I rowsort
SELECT - + 33 * - + ( - ( - - col0 ) ) FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN col2 - 32 AND 50 + + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5630
SELECT - - MIN( + col2 ) col2 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5630
SELECT - - MIN ( + col2 ) col2 FROM tab0 AS cor0
----
10

query I rowsort
SELECT ALL - 38 + - - col2 AS col1 FROM tab0 AS cor0
----
-28
61
9

query II rowsort
SELECT DISTINCT - col0 AS col2, - 14 FROM tab1 AS cor0
----
-51
-14
-85
-14
-91
-14

query I rowsort
SELECT + ( - - ( - col0 ) ) AS col1 FROM tab0 cor0
----
-15
-87
-97

query II rowsort
SELECT ALL - + col0 AS col1, 72 - + - col0 FROM tab2 AS cor0
----
-46
118
-64
136
-75
147

query II rowsort
SELECT + 5, + col0 AS col2 FROM tab1 AS cor0
----
5
51
5
85
5
91

query I rowsort
SELECT + col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT col2 + - - col1 + - col1 + col1 AS col2 FROM tab2
----
117
125
74

query I rowsort
SELECT + col2 + - 70 FROM tab1
----
-11
-2
26

query I rowsort
SELECT col0 + + - 97 AS col0 FROM tab2
----
-22
-33
-51

query I rowsort
SELECT DISTINCT - col0 + + col1 + + - 33 AS col0 FROM tab1 AS cor0
----
-113
-70
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-5641
SELECT - COUNT( ALL - col2 ) - - COUNT( * ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5641
SELECT - COUNT ( ALL - col2 ) - - COUNT ( * ) FROM tab0
----
0

query I rowsort
SELECT - 37 - col2 FROM tab1
----
-105
-133
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5643
SELECT ALL CAST( col1 AS SIGNED ) * + col0 AS col2 FROM tab2
----
2346
4928
5025

skipif mysql # not compatible
query I rowsort label-5643
SELECT ALL CAST ( col1 AS INTEGER ) * + col0 AS col2 FROM tab2
----
2346
4928
5025

query II rowsort
SELECT 52 + + 8 * - col1 AS col1, + col2 FROM tab2
----
-356
23
-484
58
-564
40

query I rowsort
SELECT + 8 + + col2 FROM tab0 AS cor0
----
107
18
55

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5646
SELECT col1 * - CAST( NULL AS DECIMAL ) * + col2 + + 84 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5646
SELECT col1 * - CAST ( NULL AS REAL ) * + col2 + + 84 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5647
SELECT DISTINCT - CAST( + col0 AS SIGNED ) + - col0 AS col0 FROM tab2 cor0
----
-128
-150
-92

skipif mysql # not compatible
query I rowsort label-5647
SELECT DISTINCT - CAST ( + col0 AS INTEGER ) + - col0 AS col0 FROM tab2 cor0
----
-128
-150
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-5648
SELECT + 67 * + ( + SUM( ALL - ( - - col2 ) ) ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
-8107

skipif mysql # not compatible
query I rowsort label-5648
SELECT + 67 * + ( + SUM ( ALL - ( - - col2 ) ) ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
-8107

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL IN ( col0, + col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5650
SELECT 90 DIV + 88 AS col0 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5650
SELECT 90 / + 88 AS col0 FROM tab2
----
1
1
1

query I rowsort
SELECT DISTINCT - 64 * - 45 AS col2 FROM tab1
----
2880

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL = 33
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5653
SELECT DISTINCT 70 * COUNT( * ) FROM tab1
----
210

skipif mysql # not compatible
query I rowsort label-5653
SELECT DISTINCT 70 * COUNT ( * ) FROM tab1
----
210

onlyif mysql # aggregate syntax: 
query I rowsort label-5654
SELECT COUNT( ALL - - ( + + col2 ) ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5654
SELECT COUNT ( ALL - - ( + + col2 ) ) AS col2 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5655
SELECT SUM( DISTINCT - col2 ) AS col2 FROM tab1 WHERE NOT - col1 * - 78 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5655
SELECT SUM ( DISTINCT - col2 ) AS col2 FROM tab1 WHERE NOT - col1 * - 78 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5656
SELECT - COUNT( * ) * 57 * + + 75 col1 FROM tab2
----
-12825

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5656
SELECT - COUNT ( * ) * 57 * + + 75 col1 FROM tab2
----
-12825

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + + ( - - col1 ) ) col0 FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5658
SELECT MAX( + ( - col2 ) ) DIV COUNT( * ) FROM tab2
----
-7

skipif mysql # not compatible
query I rowsort label-5658
SELECT MAX ( + ( - col2 ) ) / COUNT ( * ) FROM tab2
----
-7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5659
SELECT - ( + CAST( NULL AS DECIMAL ) ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5659
SELECT - ( + CAST ( NULL AS REAL ) ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5660
SELECT SUM( DISTINCT 36 ) * - MIN( - 62 ) FROM tab2
----
2232

skipif mysql # not compatible
query I rowsort label-5660
SELECT SUM ( DISTINCT 36 ) * - MIN ( - 62 ) FROM tab2
----
2232

onlyif mysql # aggregate syntax: 
query I rowsort label-5661
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 91 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5661
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 91 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5662
SELECT ALL - COUNT( * ) * 28 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-252

skipif mysql # not compatible
query I rowsort label-5662
SELECT ALL - COUNT ( * ) * 28 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-252

onlyif mysql # aggregate syntax: 
query I rowsort label-5663
SELECT DISTINCT SUM( ALL + col2 ) col2 FROM tab0
----
156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5663
SELECT DISTINCT SUM ( ALL + col2 ) col2 FROM tab0
----
156

query I rowsort
SELECT - col2 + col1 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5665
SELECT ALL 76 DIV - 68 col1 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5665
SELECT ALL 76 / - 68 col1 FROM tab0 AS cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5666
SELECT ALL + + COUNT( * ) + - 96 FROM tab2 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-5666
SELECT ALL + + COUNT ( * ) + - 96 FROM tab2 AS cor0
----
-93

query I rowsort
SELECT DISTINCT + 60 + + col0 AS col2 FROM tab2 AS cor0
----
106
124
135

onlyif mysql # DIV for integer division: 
query I rowsort label-5668
SELECT DISTINCT + col0 DIV + 63 AS col2 FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-5668
SELECT DISTINCT + col0 / + 63 AS col2 FROM tab0 AS cor0
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5669
SELECT DISTINCT + + COUNT( * ) + - 28 AS col1 FROM tab0 cor0
----
-25

skipif mysql # not compatible
query I rowsort label-5669
SELECT DISTINCT + + COUNT ( * ) + - 28 AS col1 FROM tab0 cor0
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-5670
SELECT - + SUM( ALL + ( - - 26 ) ) col0 FROM tab1 cor0
----
-78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output co