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 columns
query I rowsort label-5670
SELECT - + SUM ( ALL + ( - - 26 ) ) col0 FROM tab1 cor0
----
-78

query I rowsort
SELECT DISTINCT + 12 + - col0 FROM tab1 AS cor0
----
-39
-73
-79

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

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

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

query III rowsort
SELECT * FROM tab1 WHERE col2 * - col1 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5675
SELECT DISTINCT + col2 col1 FROM tab1 WHERE - col1 * - CAST( NULL AS SIGNED ) * + col2 <= ( - + ( + 70 ) )
----

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

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN NULL AND + 17
----

query II rowsort
SELECT DISTINCT col1, - 53 FROM tab1
----
14
-53
47
-53
5
-53

query I rowsort
SELECT DISTINCT col1 * 49 * - 62 FROM tab1 AS cor0
----
-142786
-15190
-42532

onlyif mysql # aggregate syntax: 
query I rowsort label-5679
SELECT DISTINCT + + COUNT( * ) * + + COUNT( * ) + + 41 FROM tab2 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-5679
SELECT DISTINCT + + COUNT ( * ) * + + COUNT ( * ) + + 41 FROM tab2 AS cor0
----
50

query I rowsort
SELECT ALL - col2 * - 93 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + col1 - - + 23 FROM tab2
----
100
74
90

query I rowsort
SELECT ALL + 8 - + ( + 94 ) AS col2 FROM tab1
----
-86
-86
-86

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

query I rowsort
SELECT col0 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 + 94 col1 FROM tab0 cor0
----
94
94
94

onlyif mysql # aggregate syntax: 
query I rowsort label-5686
SELECT COUNT( * ) * + + ( - + 28 ) AS col2 FROM tab1 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-5686
SELECT COUNT ( * ) * + + ( - + 28 ) AS col2 FROM tab1 AS cor0
----
-84

query I rowsort
SELECT - 37 * 18 + - col1 AS col1 FROM tab1 AS cor0
----
-671
-680
-713

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

skipif mysql # not compatible
query I rowsort label-5688
SELECT - 81 / + COUNT ( * ) FROM tab0
----
-27

query I rowsort
SELECT DISTINCT col2 * - + 90 FROM tab0
----
-4230
-8910
-900

onlyif mysql # aggregate syntax: 
query I rowsort label-5690
SELECT - COUNT( - 30 ) FROM tab1 WHERE NOT + - ( col0 ) * - 87 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5690
SELECT - COUNT ( - 30 ) FROM tab1 WHERE NOT + - ( col0 ) * - 87 IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + 57 col1 FROM tab2
----
-2907
-3819
-4389

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5692
SELECT DISTINCT + CAST( 31 AS SIGNED ) FROM tab1
----
31

skipif mysql # not compatible
query I rowsort label-5692
SELECT DISTINCT + CAST ( 31 AS INTEGER ) FROM tab1
----
31

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5695
SELECT ALL - ( + col2 ) + - - CAST( NULL AS DECIMAL ) FROM tab2 AS cor0 WHERE 52 IS NULL
----

skipif mysql # not compatible
query I rowsort label-5695
SELECT ALL - ( + col2 ) + - - CAST ( NULL AS REAL ) FROM tab2 AS cor0 WHERE 52 IS NULL
----

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

skipif mysql # not compatible
query II rowsort label-5696
SELECT DISTINCT COUNT ( * ), 9 AS col0 FROM tab0 AS cor0
----
3
9

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5697
SELECT + col0 AS col1, - col0 + - CAST( NULL AS DECIMAL ) AS col2 FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-5697
SELECT + col0 AS col1, - col0 + - CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5700
SELECT DISTINCT 66 DIV COUNT( * ), COUNT( * ) + + - 70 AS col1 FROM tab2
----
22
-67

skipif mysql # not compatible
query II rowsort label-5700
SELECT DISTINCT 66 / COUNT ( * ), COUNT ( * ) + + - 70 AS col1 FROM tab2
----
22
-67

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5702
SELECT + CAST( - 74 AS SIGNED ) DIV - col0 FROM tab0 cor0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-5702
SELECT + CAST ( - 74 AS INTEGER ) / - col0 FROM tab0 cor0
----
0
0
4

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

query I rowsort
SELECT ALL + col1 + - + 41 + + + col2 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

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

query I rowsort
SELECT + + 15 + 12 AS col1 FROM tab0 AS cor0
----
27
27
27

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

query I rowsort
SELECT ALL - col2 * - 21 + ( - - col2 ) * + 94 AS col1 FROM tab2 cor0
----
2645
4600
6670

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 60 * 29 * + 81 >= col1 / + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5710
SELECT ALL 49 DIV - col0 - - + col1 col2 FROM tab2
----
50
67
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5710
SELECT ALL 49 / - col0 - - + col1 col2 FROM tab2
----
50
67
77

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5712
SELECT DISTINCT + col2 DIV + 93 - + col2 AS col0 FROM tab1
----
-59
-68
-95

skipif mysql # not compatible
query I rowsort label-5712
SELECT DISTINCT + col2 / + 93 - + col2 AS col0 FROM tab1
----
-59
-68
-95

query I rowsort
SELECT 88 * 3 AS col0 FROM tab1
----
264
264
264

onlyif mysql # aggregate syntax: 
query I rowsort label-5714
SELECT - MAX( - 35 ) AS col1 FROM tab2
----
35

skipif mysql # not compatible
query I rowsort label-5714
SELECT - MAX ( - 35 ) AS col1 FROM tab2
----
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - 77 ) col1 FROM tab0
----
-77

query I rowsort
SELECT ALL - 70 * + + 87 FROM tab2
----
-6090
-6090
-6090

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5717
SELECT DISTINCT 24 * + col1 * col0 FROM tab1 AS cor0 WHERE ( NULL ) <= + - CAST( NULL AS SIGNED ) * + col1
----

skipif mysql # not compatible
query I rowsort label-5717
SELECT DISTINCT 24 * + col1 * col0 FROM tab1 AS cor0 WHERE ( NULL ) <= + - CAST ( NULL AS INTEGER ) * + col1
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 <> + ( + col0 ) - - - col2 + - 62
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 26 - 65 AS col0 FROM tab0
----
-39
-39
-39

onlyif mysql # DIV for integer division: 
query II rowsort label-5720
SELECT ALL - col2 DIV - col2, + 64 * + col0 * + col1 AS col0 FROM tab1
----
1
27200
1
273728
1
45696

skipif mysql # not compatible
query II rowsort label-5720
SELECT ALL - col2 / - col2, + 64 * + col0 * + col1 AS col0 FROM tab1
----
1
27200
1
273728
1
45696

onlyif mysql # aggregate syntax: 
query I rowsort label-5721
SELECT COUNT( * ) * - SUM( col2 ) AS col2 FROM tab2
----
-363

skipif mysql # not compatible
query I rowsort label-5721
SELECT COUNT ( * ) * - SUM ( col2 ) AS col2 FROM tab2
----
-363

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5722
SELECT + CAST( NULL AS SIGNED ) AS col0, COUNT( * ) FROM tab0 cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-5722
SELECT + CAST ( NULL AS INTEGER ) AS col0, COUNT ( * ) FROM tab0 cor0
----
NULL
3

query I rowsort
SELECT + col1 FROM tab0 AS cor0 WHERE NOT NULL >= - 12 - - - 30
----

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

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

query II rowsort
SELECT DISTINCT col0, 31 AS col0 FROM tab2 AS cor0
----
46
31
64
31
75
31

query II rowsort
SELECT ALL col0 * + 17, col2 FROM tab1
----
1445
59
1547
68
867
96

query I rowsort
SELECT DISTINCT col1 FROM tab0 WHERE NULL NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL IN ( + 20 * col0, col0 )
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5731
SELECT + CAST( - col2 AS SIGNED ) AS col0, col1 AS col2 FROM tab0
----
-10
21
-47
81
-99
1

skipif mysql # not compatible
query II rowsort label-5731
SELECT + CAST ( - col2 AS INTEGER ) AS col0, col1 AS col2 FROM tab0
----
-10
21
-47
81
-99
1

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

query II rowsort
SELECT 51 * - col0, - col1 AS col1 FROM tab2 AS cor0
----
-2346
-51
-3264
-77
-3825
-67

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) = - - 49 AND NULL IS NULL
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5737
SELECT - - 93 * ( - 57 ) DIV - + col2 FROM tab0 cor0
----
112
53
530

skipif mysql # not compatible
query I rowsort label-5737
SELECT - - 93 * ( - 57 ) / - + col2 FROM tab0 cor0
----
112
53
530

query II rowsort
SELECT + 17 AS col1, ( - - 54 ) FROM tab2 AS cor0
----
17
54
17
54
17
54

query I rowsort
SELECT - 82 - + + col0 AS col1 FROM tab0
----
-169
-179
-97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5740
SELECT DISTINCT - ( - CAST( NULL AS SIGNED ) ), + col2 AS col1 FROM tab1
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-5740
SELECT DISTINCT - ( - CAST ( NULL AS INTEGER ) ), + col2 AS col1 FROM tab1
----
NULL
59
NULL
68
NULL
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 - col0 * 42 col0 FROM tab2
----
-1983
-2765
-3217

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL > + + 63
----

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

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

query I rowsort
SELECT - - ( + - 36 ) + col0 + + col0 FROM tab0 AS cor0
----
-6
138
158

query I rowsort
SELECT col1 FROM tab1 cor0 WHERE NOT NULL <= ( col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5746
SELECT ALL - col0 DIV - 38 + + + 39 AS col1 FROM tab0 AS cor0
----
39
41
41

skipif mysql # not compatible
query I rowsort label-5746
SELECT ALL - col0 / - 38 + + + 39 AS col1 FROM tab0 AS cor0
----
39
41
41

query I rowsort
SELECT - 14 * - col1 - + + 90 * + col2 FROM tab2 cor0
----
-1356
-2522
-4282

query I rowsort
SELECT 52 * - 80 AS col1 FROM tab2 AS cor0
----
-4160
-4160
-4160

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col2 < + + 81 / + + ( - 62 ) OR NOT NULL IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + 69 AS col1, 49 col0 FROM tab2 AS cor0
----
-69
49
-69
49
-69
49

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col0 * col1 <= NULL
----

query I rowsort
SELECT DISTINCT ( - - col0 ) * - ( col2 ) AS col1 FROM tab1
----
-4896
-5015
-6188

onlyif mysql # aggregate syntax: 
query I rowsort label-5755
SELECT DISTINCT - COUNT( - 70 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-5755
SELECT DISTINCT - COUNT ( - 70 ) FROM tab2
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5756
SELECT * FROM tab2 WHERE NOT NULL IN ( + col2 + ( + CAST( NULL AS SIGNED ) ), 95, + col1 ) AND ( NULL ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5756
SELECT * FROM tab2 WHERE NOT NULL IN ( + col2 + ( + CAST ( NULL AS INTEGER ) ), 95, + col1 ) AND ( NULL ) IS NOT NULL
----

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

query I rowsort
SELECT 41 + - col1 * 55 AS col2 FROM tab2
----
-2764
-3644
-4194

onlyif mysql # aggregate syntax: 
query I rowsort label-5759
SELECT SUM( ALL + ( + col2 ) ) FROM tab2 AS cor0 WHERE NOT ( NOT ( NOT NULL IS NOT NULL ) )
----
121

skipif mysql # not compatible
query I rowsort label-5759
SELECT SUM ( ALL + ( + col2 ) ) FROM tab2 AS cor0 WHERE NOT ( NOT ( NOT NULL IS NOT NULL ) )
----
121

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 + 22 AS col1, + 6 col0 FROM tab1 AS cor0
----
118
6
81
6
90
6

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

skipif mysql # not compatible
query I rowsort label-5761
SELECT + COUNT ( * ) AS col2 FROM tab2 WHERE NULL < - - col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5762
SELECT - - CAST( col0 AS SIGNED ) + - col0 * ( + 13 ) * - - col2 - + CAST( + col1 AS SIGNED ) FROM tab0 AS cor0
----
-11244
-124743
-9231

skipif mysql # not compatible
query I rowsort label-5762
SELECT - - CAST ( col0 AS INTEGER ) + - col0 * ( + 13 ) * - - col2 - + CAST ( + col1 AS INTEGER ) FROM tab0 AS cor0
----
-11244
-124743
-9231

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

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

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

query I rowsort
SELECT ALL + col0 + col2 + - + 84 - - + col2 * - + col2 * + + col1 FROM tab1 AS cor0
----
-128961
-17345
-217253

onlyif mysql # aggregate syntax: 
query I rowsort label-5767
SELECT ALL + COUNT( * ) * - - 19 + MIN( ALL + col1 ) + - SUM( DISTINCT + - ( 5 ) ) AS col2 FROM tab0 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-5767
SELECT ALL + COUNT ( * ) * - - 19 + MIN ( ALL + col1 ) + - SUM ( DISTINCT + - ( 5 ) ) AS col2 FROM tab0 AS cor0
----
63

query I rowsort
SELECT DISTINCT + + col1 + + - 94 FROM tab0 AS cor0
----
-13
-73
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-5769
SELECT ALL 18 - + + COUNT( * ) FROM tab1
----
15

skipif mysql # not compatible
query I rowsort label-5769
SELECT ALL 18 - + + COUNT ( * ) FROM tab1
----
15

query I rowsort
SELECT DISTINCT col1 + - - col1 + - ( - col2 ) AS col1 FROM tab1
----
124
162
69

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

query I rowsort
SELECT DISTINCT + col1 / - 12 FROM tab1 WHERE NULL NOT BETWEEN + 51 AND NULL
----

query II rowsort
SELECT DISTINCT col0 + - 33 * + + 5 AS col2, + col2 + + col1 FROM tab1
----
-114
110
-74
115
-80
64

onlyif mysql # aggregate syntax: 
query I rowsort label-5774
SELECT ALL - + MIN( + col1 ) / - + 64 AS col0 FROM tab1 WHERE ( - col0 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5774
SELECT ALL - + MIN ( + col1 ) / - + 64 AS col0 FROM tab1 WHERE ( - col0 ) IS NULL
----
NULL

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT ALL - col0 * + + 15 * - - 33 AS col1, 73 col0, + - col1 * + + 63 + col1 + + - 32 AS col2 FROM tab2
----
9 values hashing to 3d3bd62e16f635a6002c31b81444874f

query I rowsort
SELECT DISTINCT col2 * + col1 - - 95 + - 55 FROM tab0
----
139
250
3847

onlyif mysql # aggregate syntax: 
query I rowsort label-5778
SELECT DISTINCT - 22 * + MIN( - col1 ) FROM tab2 AS cor0
----
1694

skipif mysql # not compatible
query I rowsort label-5778
SELECT DISTINCT - 22 * + MIN ( - col1 ) FROM tab2 AS cor0
----
1694

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5779
SELECT ALL * FROM tab0 AS cor0 WHERE - 51 + col1 BETWEEN + col1 + 1 / CAST( col2 AS SIGNED ) AND - 39 + - col1
----

skipif mysql # not compatible
query III rowsort label-5779
SELECT ALL * FROM tab0 AS cor0 WHERE - 51 + col1 BETWEEN + col1 + 1 / CAST ( col2 AS INTEGER ) AND - 39 + - col1
----

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

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

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

query I rowsort
SELECT ALL + 50 + - col1 FROM tab2 WHERE NOT NULL > 57
----

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

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN 77 AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + 37 * col1 < NULL
----

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

skipif mysql # not compatible
query III rowsort label-5786
SELECT * FROM tab0 WHERE CAST ( NULL AS INTEGER ) NOT IN ( - col0 * - CAST ( - col0 AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5787
SELECT SUM( - col2 ) FROM tab1 WHERE NULL <> ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5787
SELECT SUM ( - col2 ) FROM tab1 WHERE NULL <> ( NULL )
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT + 94 - 54 * - 79 = NULL
----

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

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

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

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

query I rowsort
SELECT ALL 54 + ( col2 + + col0 ) AS col2 FROM tab1
----
198
201
213

query I rowsort
SELECT DISTINCT 93 FROM tab1 WHERE col2 IS NOT NULL
----
93

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5794
SELECT COUNT( * ) AS col0 FROM tab0 WHERE ( NULL ) NOT IN ( 70 )
----
0

skipif mysql # not compatible
query I rowsort label-5794
SELECT COUNT ( * ) AS col0 FROM tab0 WHERE ( NULL ) NOT IN ( 70 )
----
0

query I rowsort
SELECT + 49 + + col1 AS col2 FROM tab2
----
100
116
126

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5796
SELECT ALL CAST( col2 AS SIGNED ) + - ( - col0 ) col2 FROM tab1
----
144
147
159

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5796
SELECT ALL CAST ( col2 AS INTEGER ) + - ( - col0 ) col2 FROM tab1
----
144
147
159

query I rowsort
SELECT - 39 + 23 AS col2 FROM tab1
----
-16
-16
-16

query III rowsort
SELECT ALL * FROM tab2 WHERE - col0 BETWEEN + col2 * col2 AND col2
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5800
SELECT SUM( - ( col0 ) ) FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-5800
SELECT SUM ( - ( col0 ) ) FROM tab0
----
-199

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5801
SELECT - ( - CAST( + MAX( ALL 10 ) AS SIGNED ) ) FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-5801
SELECT - ( - CAST ( + MAX ( ALL 10 ) AS INTEGER ) ) FROM tab0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-5802
SELECT DISTINCT - 31 + + MAX( DISTINCT 38 ) col1 FROM tab1
----
7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5802
SELECT DISTINCT - 31 + + MAX ( DISTINCT 38 ) col1 FROM tab1
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-5803
SELECT ALL ( + 9 ) * 65 + COUNT( * ) col0 FROM tab2 WHERE NOT 70 >= ( NULL )
----
585

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5803
SELECT ALL ( + 9 ) * 65 + COUNT ( * ) col0 FROM tab2 WHERE NOT 70 >= ( NULL )
----
585

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

query I rowsort
SELECT col0 * col0 + + col1 * 84 FROM tab2
----
10564
11253
6400

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 > + ( col0 )
----
87
21
10
97
1
99

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col2 + + ( - 79 ) BETWEEN NULL AND ( - col1 )
----
51
14
96
91
47
68

query I rowsort
SELECT ALL - col1 * - col1 + col1 FROM tab1 WHERE NOT ( col0 ) BETWEEN + col2 AND col0
----
210

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 38 * col1 IS NULL
----

query I rowsort
SELECT + 8 FROM tab0 AS cor0 WHERE NULL IN ( + col1 )
----

query I rowsort
SELECT ( + col0 ) * col0 + + 7 FROM tab1 AS cor0
----
2608
7232
8288

query I rowsort
SELECT 99 + + col0 AS col0 FROM tab0 AS cor0
----
114
186
196

onlyif mysql # DIV for integer division: 
query I rowsort label-5813
SELECT + ( - 82 ) DIV 30 + ( + col1 ) AS col2 FROM tab1 cor0
----
12
3
45

skipif mysql # not compatible
query I rowsort label-5813
SELECT + ( - 82 ) / 30 + ( + col1 ) AS col2 FROM tab1 cor0
----
12
3
45

query I rowsort
SELECT col2 * - col1 + col0 FROM tab2
----
-1127
-3016
-3811

query I rowsort
SELECT ALL + col0 + + col0 * + ( col2 ) FROM tab0
----
720
957
9700

query I rowsort
SELECT DISTINCT + 62 FROM tab1 AS cor0 CROSS JOIN tab2
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5817
SELECT - col1 + + CAST( - 53 AS SIGNED ) * - col2 AS col1 FROM tab0
----
2410
509
5246

skipif mysql # not compatible
query I rowsort label-5817
SELECT - col1 + + CAST ( - 53 AS INTEGER ) * - col2 AS col1 FROM tab0
----
2410
509
5246

query III rowsort
SELECT * FROM tab1 WHERE + col0 + 58 NOT IN ( - 57 / + 38 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5820
SELECT 87 * + MAX( - col2 ) FROM tab1 cor0
----
-5133

skipif mysql # not compatible
query I rowsort label-5820
SELECT 87 * + MAX ( - col2 ) FROM tab1 cor0
----
-5133

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5822
SELECT ALL * FROM tab2 AS cor0 WHERE NULL <> ( - CAST( NULL AS SIGNED ) - - col0 * col1 )
----

skipif mysql # not compatible
query III rowsort label-5822
SELECT ALL * FROM tab2 AS cor0 WHERE NULL <> ( - CAST ( NULL AS INTEGER ) - - col0 * col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5823
SELECT + col0 * 61 - - col1 DIV - col0 AS col1 FROM tab2 AS cor0
----
2805
3903
4575

skipif mysql # not compatible
query I rowsort label-5823
SELECT + col0 * 61 - - col1 / - col0 AS col1 FROM tab2 AS cor0
----
2805
3903
4575

query I rowsort
SELECT DISTINCT + col2 FROM tab1 cor0 WHERE - col0 BETWEEN + col2 AND 16
----

query I rowsort
SELECT + col1 - - 30 FROM tab2 AS cor0
----
107
81
97

query I rowsort
SELECT DISTINCT + col2 * + col1 + - col1 * col2 AS col1 FROM tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 - 73 col1 FROM tab2
----
-22
-6
4

query I rowsort
SELECT DISTINCT col1 FROM tab2 WHERE 96 * - col0 IS NOT NULL
----
51
67
77

query I rowsort
SELECT ALL + 72 * - + 75 * + 30 FROM tab1
----
-162000
-162000
-162000

query I rowsort
SELECT DISTINCT - col1 - col1 FROM tab2 AS cor0 WHERE 98 > 94
----
-102
-134
-154

query I rowsort
SELECT ALL + - 30 * - - col1 FROM tab2 AS cor0
----
-1530
-2010
-2310

query I rowsort
SELECT - col0 * - 21 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
1071
1785
1911

query I rowsort
SELECT ALL - AVG ( ALL col2 ) FROM tab2 WHERE NOT NULL NOT BETWEEN - 8 AND 82 / + col2
----
NULL

query I rowsort
SELECT DISTINCT - 37 * 46 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-1702

query I rowsort
SELECT DISTINCT col0 * + 29 AS col1 FROM tab0
----
2523
2813
435

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5837
SELECT ( SUM( ALL - 69 ) ) + + COUNT( * ) col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) IS NOT NULL
----
-612

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5837
SELECT ( SUM ( ALL - 69 ) ) + + COUNT ( * ) col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) IS NOT NULL
----
-612

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

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

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

query I rowsort
SELECT 57 AS col2 FROM tab1 AS cor0 WHERE NOT ( 39 * + 72 * - 36 ) IS NULL
----
57
57
57

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 94 * 15 col2 FROM tab2 AS cor0
----
1410
1410
1410

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

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

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

query I rowsort
SELECT + col2 * + - col2 + - col2 FROM tab0 cor0
----
-110
-2256
-9900

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5846
SELECT ALL + 61 * + - ( + - 65 ) * + CAST( NULL AS DECIMAL ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5846
SELECT ALL + 61 * + - ( + - 65 ) * + CAST ( NULL AS REAL ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL < ( - - col0 )
----

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab1 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT - 34 + + col0 FROM tab1
----
17
51
57

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

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

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

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

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

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

query I rowsort
SELECT 35 + col2 AS col2 FROM tab2
----
58
75
93

onlyif mysql # DIV for integer division: 
query I rowsort label-5855
SELECT + 54 + 21 - - 68 DIV - col1 AS col1 FROM tab2 AS cor0
----
74
74
75

skipif mysql # not compatible
query I rowsort label-5855
SELECT + 54 + 21 - - 68 / - col1 AS col1 FROM tab2 AS cor0
----
74
74
75

query III rowsort
SELECT * FROM tab0 cor0 WHERE col1 - + 30 <= - col0 * 96 * + col0
----

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 AS col2, - col2 * + col1 col2 FROM tab0
----
-15
-3807
-87
-210
-97
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-5860
SELECT - col1 DIV + col0 + - col1 FROM tab1 AS cor0 WHERE NOT col1 DIV + col1 * 31 = + - col1
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-5860
SELECT - col1 / + col0 + - col1 FROM tab1 AS cor0 WHERE NOT col1 / + col1 * 31 = + - col1
----
-14
-47
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5861
SELECT DISTINCT 1 - + - CAST( col1 AS SIGNED ) + col1 FROM tab1 AS cor0 WHERE NOT col0 NOT BETWEEN 33 AND NULL
----

skipif mysql # not compatible
query I rowsort label-5861
SELECT DISTINCT 1 - + - CAST ( col1 AS INTEGER ) + col1 FROM tab1 AS cor0 WHERE NOT col0 NOT BETWEEN 33 AND NULL
----

query I rowsort
SELECT ALL - col1 * - ( 20 ) * + col1 * col1 FROM tab1 AS cor0
----
2076460
2500
54880

query I rowsort
SELECT ALL - col2 * - + col0 * col1 FROM tab0
----
18270
57105
9603

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

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

skipif mysql # not compatible
query I rowsort label-5865
SELECT DISTINCT + COUNT ( * ) * - + 80 FROM tab0
----
-240

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

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

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

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

query I rowsort
SELECT DISTINCT + + col0 AS col2 FROM tab1 AS cor0 WHERE ( NOT + - 21 > + col2 )
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5869
SELECT DISTINCT - col0 * ( CAST( 94 AS SIGNED ) ) FROM tab1 AS cor0
----
-4794
-7990
-8554

skipif mysql # not compatible
query I rowsort label-5869
SELECT DISTINCT - col0 * ( CAST ( 94 AS INTEGER ) ) FROM tab1 AS cor0
----
-4794
-7990
-8554

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5871
SELECT DISTINCT + 33 DIV 30 AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-5871
SELECT DISTINCT + 33 / 30 AS col0 FROM tab0
----
1

query I rowsort
SELECT DISTINCT - col1 FROM tab1 WHERE - col0 / + + col1 IS NOT NULL
----
-14
-47
-5

onlyif mysql # DIV for integer division: 
query II rowsort label-5873
SELECT - col1 * col2 * - 7 AS col1, + ( + col2 ) DIV 82 * - 95 AS col0 FROM tab2
----
21560
0
27202
0
8211
0

skipif mysql # not compatible
query II rowsort label-5873
SELECT - col1 * col2 * - 7 AS col1, + ( + col2 ) / 82 * - 95 AS col0 FROM tab2
----
21560
0
27202
0
8211
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5874
SELECT - SUM( + col1 ) * + COUNT( * ) col0, - 66 AS col0 FROM tab2
----
-585
-66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5874
SELECT - SUM ( + col1 ) * + COUNT ( * ) col0, - 66 AS col0 FROM tab2
----
-585
-66

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

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

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

skipif mysql # not compatible
query I rowsort label-5876
SELECT + COUNT ( * ) * 35 FROM tab2
----
105

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

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

query I rowsort
SELECT DISTINCT - col0 * + 61 AS col2 FROM tab2
----
-2806
-3904
-4575

query I rowsort
SELECT - col2 * + + 6 FROM tab0
----
-282
-594
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5880
SELECT - 20 + - 19 + COUNT( * ) * 61 FROM tab2 WHERE col2 + ( CAST( NULL AS SIGNED ) ) IS NULL
----
144

skipif mysql # not compatible
query I rowsort label-5880
SELECT - 20 + - 19 + COUNT ( * ) * 61 FROM tab2 WHERE col2 + ( CAST ( NULL AS INTEGER ) ) IS NULL
----
144

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( col2 + - col0 - - 6 ) BETWEEN - col2 AND ( NULL ) AND NOT ( - 42 / col2 IN ( ( + 67 ) + col2 * + 90 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5882
SELECT - col0 + + + col2 + + CAST( - col0 AS SIGNED ) FROM tab1 AS cor0
----
-111
-114
-6

skipif mysql # not compatible
query I rowsort label-5882
SELECT - col0 + + + col2 + + CAST ( - col0 AS INTEGER ) FROM tab1 AS cor0
----
-111
-114
-6

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

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

query I rowsort
SELECT + 36 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752

query I rowsort
SELECT DISTINCT col0 + - - 85 + ( col1 ) + + col2 * + 44 * 90 * 98 + - col1 * + col0 * + 5 FROM tab0
----
18233866
38419618
3871858

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5888
SELECT + col2 DIV + + col1 + - col1 * - ( - 32 ) FROM tab1 AS cor0
----
-149
-1503
-442

skipif mysql # not compatible
query I rowsort label-5888
SELECT + col2 / + + col1 + - col1 * - ( - 32 ) FROM tab1 AS cor0
----
-149
-1503
-442

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5890
SELECT 59 DIV + + col0 AS col0 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5890
SELECT 59 / + + col0 AS col0 FROM tab1 AS cor0
----
0
0
1

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

query I rowsort
SELECT + + col0 * + 97 AS col1 FROM tab1 AS cor0
----
4947
8245
8827

query I rowsort
SELECT - col1 * - + ( + + 31 ) + + col0 FROM tab0 AS cor0
----
128
2526
738

query I rowsort
SELECT + 39 AS col1 FROM tab2 WHERE NOT - col2 IS NULL
----
39
39
39

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5896
SELECT DISTINCT - MIN( - col0 ) FROM tab2 WHERE - - ( + col0 ) <> + col1 * col2 * - col1
----
75

skipif mysql # not compatible
query I rowsort label-5896
SELECT DISTINCT - MIN ( - col0 ) FROM tab2 WHERE - - ( + col0 ) <> + col1 * col2 * - col1
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5897
SELECT ALL 52 + COUNT( ALL - col2 ) AS col1 FROM tab0 WHERE ( CAST( - col1 AS SIGNED ) * col1 - + col1 + - ( + 98 ) ) NOT BETWEEN col2 AND - col1 + + CAST( - col0 AS SIGNED ) * 55
----
55

skipif mysql # not compatible
query I rowsort label-5897
SELECT ALL 52 + COUNT ( ALL - col2 ) AS col1 FROM tab0 WHERE ( CAST ( - col1 AS INTEGER ) * col1 - + col1 + - ( + 98 ) ) NOT BETWEEN col2 AND - col1 + + CAST ( - col0 AS INTEGER ) * 55
----
55

query I rowsort
SELECT 48 * + + col2 FROM tab2 AS cor0
----
1104
1920
2784

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE NOT NULL < 67
----

query I rowsort
SELECT DISTINCT + - ( - - col2 ) AS col2 FROM tab2 AS cor0 WHERE NOT + 95 IS NULL
----
-23
-40
-58

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

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

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

query II rowsort
SELECT - 61 AS col2, 67 * 93 AS col2 FROM tab2
----
-61
6231
-61
6231
-61
6231

query I rowsort
SELECT ALL - 70 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 35707a5d99c98b2657c084a50ff1b073

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

query II rowsort
SELECT + 68, col1 * + col0 AS col1 FROM tab1 AS cor0
----
68
425
68
4277
68
714

query II rowsort
SELECT col1 AS col1, + 61 * + + col0 FROM tab2 AS cor0
----
51
2806
67
4575
77
3904

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5910
SELECT - - CAST( - CAST( col2 AS SIGNED ) AS SIGNED ) + + + 61, + col0 AS col1 FROM tab2 AS cor0
----
21
64
3
75
38
46

skipif mysql # not compatible
query II rowsort label-5910
SELECT - - CAST ( - CAST ( col2 AS INTEGER ) AS INTEGER ) + + + 61, + col0 AS col1 FROM tab2 AS cor0
----
21
64
3
75
38
46

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5913
SELECT 18 DIV + 52 + - - 35 FROM tab2
----
35
35
35

skipif mysql # not compatible
query I rowsort label-5913
SELECT 18 / + 52 + - - 35 FROM tab2
----
35
35
35

query I rowsort
SELECT col1 + - col2 + + 97 AS col0 FROM tab1
----
15
43
76

onlyif mysql # aggregate syntax: 
query I rowsort label-5915
SELECT ALL + 5 * - COUNT( + + col2 ) FROM tab2 WHERE - + 95 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-5915
SELECT ALL + 5 * - COUNT ( + + col2 ) FROM tab2 WHERE - + 95 >= NULL
----
0

query I rowsort
SELECT DISTINCT + ( - 74 ) FROM tab2
----
-74

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

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

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

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

query I rowsort
SELECT DISTINCT - 37 FROM tab2 AS cor0 WHERE 92 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - col2 * - col0 + + + ( - col1 ) - + col1 col0 FROM tab1 AS cor0
----
-295895
-420878
-470044

onlyif mysql # DIV for integer division: 
query I rowsort label-5921
SELECT ALL 51 + + col2 DIV - col1 * - + col2 FROM tab2 AS cor0
----
51
51
51

skipif mysql # not compatible
query I rowsort label-5921
SELECT ALL 51 + + col2 / - col1 * - + col2 FROM tab2 AS cor0
----
51
51
51

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5923
SELECT + COUNT( * ) * - MAX( DISTINCT - - col0 ) - - 20 col2 FROM tab0
----
-271

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

query I rowsort
SELECT ALL 73 + - col0 AS col1 FROM tab0
----
-14
-24
58

query I rowsort
SELECT col2 - col1 + + - col1 * + 88 + + col2 + 14 * + ( + ( + col0 ) ) * + col1 + 71 FROM tab1
----
55902
5694
9013

query I rowsort
SELECT 68 + + 19 - + col2 - ( + col1 ) AS col2 FROM tab1
----
-23
-28
23

query I rowsort
SELECT + col2 + + + 39 AS col1 FROM tab0
----
138
49
86

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

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

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NOT NULL NOT BETWEEN + - 80 + ( 48 ) - - - 48 - + col2 + 37 AND - col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( ( NOT ( NOT - - 73 IN ( col1 * col0, col1 ) ) ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + - col2 * + col0 + - col1 + - - col1 * - 69 FROM tab1 AS cor0
----
-5365
-5876
-9478

onlyif mysql # DIV for integer division: 
query I rowsort label-5934
SELECT ALL + col0 DIV + + 68 - + 54 + - 94 * col1 AS col1 FROM tab0 AS cor0
----
-147
-2027
-7668

skipif mysql # not compatible
query I rowsort label-5934
SELECT ALL + col0 / + + 68 - + 54 + - 94 * col1 AS col1 FROM tab0 AS cor0
----
-147
-2027
-7668

query I rowsort
SELECT DISTINCT - col2 * + + col2 AS col1 FROM tab1 AS cor0
----
-3481
-4624
-9216

onlyif mysql # DIV for integer division: 
query I rowsort label-5936
SELECT ALL + 62 DIV 70 * col1 DIV - 16 AS col1 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5936
SELECT ALL + 62 / 70 * col1 / - 16 AS col1 FROM tab0 cor0
----
0
0
0

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5937
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NOT + 84 NOT IN ( + CAST( + 95 AS DECIMAL ), col1 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5937
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NOT + 84 NOT IN ( + CAST ( + 95 AS REAL ), col1 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

query I rowsort
SELECT + - col1 * - - 31 FROM tab1 AS cor0
----
-1457
-155
-434

query I rowsort
SELECT ALL + 95 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL IS NOT NULL )
----
95
95
95

query I rowsort
SELECT 56 FROM tab0 AS cor0 WHERE NOT col2 - + - col1 / + col2 * + col2 IS NOT NULL
----

query I rowsort
SELECT - col0 * + - col2 * col1 AS col0 FROM tab1
----
25075
290836
68544

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5943
SELECT DISTINCT CAST ( + ( - + col2 ) AS INTEGER ) col2 FROM tab0
----
-10
-47
-99

query I rowsort
SELECT col1 * + col2 * - col1 AS col1 FROM tab1
----
-1475
-150212
-18816

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL < + + 61
----

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5948
SELECT ( + - col0 ) DIV + + col1 + + + 80 col0 FROM tab0
----
-17
76
80

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5948
SELECT ( + - col0 ) / + + col1 + + + 80 col0 FROM tab0
----
-17
76
80

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

skipif mysql # not compatible
query I rowsort label-5949
SELECT + + CAST ( + 38 AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col2 IN ( + col2, 95 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 68 * - col1 col1 FROM tab0 AS cor0
----
1428
5508
68

query I rowsort
SELECT + 2 FROM tab0 AS cor0 WHERE NOT - 29 IS NULL OR NOT NULL IS NULL AND NOT NULL BETWEEN + col1 - + 60 AND + 37 * + col1 + + col0
----
2
2
2

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

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

query I rowsort
SELECT DISTINCT 43 * + col0 - 5 AS col1 FROM tab2
----
1973
2747
3220

query II rowsort
SELECT ALL - col0 + + 99, + col1 FROM tab0
----
12
21
2
1
84
81

query II rowsort
SELECT DISTINCT col1, + 80 + 87 AS col1 FROM tab1
----
14
167
47
167
5
167

onlyif mysql # aggregate syntax: 
query I rowsort label-5957
SELECT ALL MIN( - 95 ) - + MIN( ALL col1 ) * - - 52 FROM tab2
----
-2747

skipif mysql # not compatible
query I rowsort label-5957
SELECT ALL MIN ( - 95 ) - + MIN ( ALL col1 ) * - - 52 FROM tab2
----
-2747

query III rowsort
SELECT * FROM tab2 WHERE + ( col1 ) * - + col1 * + - 7 < - col1 * - 29
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col0 + + col2 col0 FROM tab0 AS cor0
----
-178
-7559
-9310

query I rowsort
SELECT 16 + + col1 FROM tab0 cor0
----
17
37
97

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5961
SELECT ALL + + 10 * col0 / - + CAST( NULL AS DECIMAL ) + + - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5961
SELECT ALL + + 10 * col0 / - + CAST ( NULL AS REAL ) + + - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

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

query I rowsort
SELECT DISTINCT col0 + 94 AS col1 FROM tab1 AS cor0
----
145
179
185

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5965
SELECT ALL + COUNT( * ) * - + COUNT( * ) AS col2, - ( + 39 ) FROM tab0
----
-9
-39

skipif mysql # not compatible
query II rowsort label-5965
SELECT ALL + COUNT ( * ) * - + COUNT ( * ) AS col2, - ( + 39 ) FROM tab0
----
-9
-39

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( + + 86 ) IS NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

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

query I rowsort
SELECT DISTINCT - - col0 * + + 7 * + col0 + + 16 AS col1 FROM tab0 AS cor0
----
1591
52999
65879

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

query II rowsort
SELECT DISTINCT + 44 * - col1, col1 FROM tab2 AS cor0
----
-2244
51
-2948
67
-3388
77

query I rowsort
SELECT + - col2 * 17 AS col2 FROM tab2 AS cor0
----
-391
-680
-986

query I rowsort
SELECT - + 55 AS col2 FROM tab1 cor0
----
-55
-55
-55

query I rowsort
SELECT 90 * + col2 + - 69 AS col2 FROM tab1 AS cor0
----
5241
6051
8571

query I rowsort
SELECT + + 71 * - col0 + + col2 AS col2 FROM tab0 AS cor0
----
-1018
-6167
-6788

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5975
SELECT ALL SUM( 0 ) / + SUM( DISTINCT - + CAST( NULL AS DECIMAL ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5975
SELECT ALL SUM ( 0 ) / + SUM ( DISTINCT - + CAST ( NULL AS REAL ) ) FROM tab0
----
NULL

query II rowsort
SELECT ALL 38, + col1 FROM tab2
----
38
51
38
67
38
77

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5977
SELECT - col1 + - 19 DIV + 68 col2, + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
-14
NULL
-47
NULL
-5
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5977
SELECT - col1 + - 19 / + 68 col2, + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
-14
NULL
-47
NULL
-5
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5979
SELECT - CAST( 52 AS SIGNED ) AS col2 FROM tab2
----
-52
-52
-52

skipif mysql # not compatible
query I rowsort label-5979
SELECT - CAST ( 52 AS INTEGER ) AS col2 FROM tab2
----
-52
-52
-52

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

query I rowsort
SELECT + 84 + - - 5 * - + col0 FROM tab2 AS cor0
----
-146
-236
-291

query I rowsort
SELECT + - 21 + - col2 * + 47 AS col1 FROM tab0 AS cor0
----
-2230
-4674
-491

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

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

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

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

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

query I rowsort
SELECT col1 + + 60 FROM tab1 cor0 WHERE ( NULL ) <> NULL
----

query I rowsort
SELECT DISTINCT 95 + + 42 FROM tab0
----
137

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 54 col2 FROM tab0
----
2538
5346
540

query I rowsort
SELECT DISTINCT + 67 - + col1 - - col1 FROM tab2
----
67

query II rowsort
SELECT DISTINCT + col2 AS col1, 84 * - col0 AS col0 FROM tab0
----
10
-7308
47
-1260
99
-8148

query I rowsort
SELECT + 0 - + col1 FROM tab2 AS cor0
----
-51
-67
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 86 * + - ( - col2 ) - + 94 - + - 42 col0 FROM tab0 AS cor0
----
3990
808
8462

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5993
SELECT - 67 DIV COUNT( * ) FROM tab1
----
-22

skipif mysql # not compatible
query I rowsort label-5993
SELECT - 67 / COUNT ( * ) FROM tab1
----
-22

query I rowsort
SELECT DISTINCT - col1 * 48 AS col2 FROM tab2
----
-2448
-3216
-3696

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

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

query I rowsort
SELECT + col0 * - 57 * - + col2 FROM tab0 AS cor0
----
40185
49590
547371

query II rowsort
SELECT ALL + 7 AS col2, 66 FROM tab2 AS cor0
----
7
66
7
66
7
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5998
SELECT CAST( NULL AS SIGNED ) * col1 FROM tab0 AS cor0 WHERE NOT col1 = 93
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5998
SELECT CAST ( NULL AS INTEGER ) * col1 FROM tab0 AS cor0 WHERE NOT col1 = 93
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5999
SELECT col2 * + col0 AS col1, col2 DIV + 9 FROM tab1
----
4896
10
5015
6
6188
7

skipif mysql # not compatible
query II rowsort label-5999
SELECT col2 * + col0 AS col1, col2 / + 9 FROM tab1
----
4896
10
5015
6
6188
7

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL IN ( - - col0 * - + 76, 97 * 78 )
----

query I rowsort
SELECT DISTINCT - 61 * + col1 * + col1 FROM tab2
----
-158661
-273829
-361669

query II rowsort
SELECT + col2 * - + col0 * 17 * col0 * - col1, - col2 + - col0 AS col2 FROM tab1
----
36233375
-144
449923292
-159
59427648
-147

query I rowsort
SELECT ALL col2 * 77 FROM tab0
----
3619
7623
770

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

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

query I rowsort
SELECT DISTINCT 86 * - col1 AS col0 FROM tab2
----
-4386
-5762
-6622

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL > - 0 * col2 / + - col0 + + + 78
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6008
SELECT ALL - + 44 * + + COUNT( DISTINCT - 99 ) AS col2 FROM tab0 WHERE NOT col1 * + + 73 + + 45 + - col2 IS NULL
----
-44

skipif mysql # not compatible
query I rowsort label-6008
SELECT ALL - + 44 * + + COUNT ( DISTINCT - 99 ) AS col2 FROM tab0 WHERE NOT col1 * + + 73 + + 45 + - col2 IS NULL
----
-44

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6010
SELECT ALL col1 DIV + ( col2 ) + 85 FROM tab2 cor0
----
86
86
87

skipif mysql # not compatible
query I rowsort label-6010
SELECT ALL col1 / + ( col2 ) + 85 FROM tab2 cor0
----
86
86
87

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

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

query I rowsort
SELECT + + ( + 38 ) FROM tab2 cor0
----
38
38
38

query I rowsort
SELECT + 87 + - - col1 - ( - + col2 ) FROM tab0 AS cor0
----
118
187
215

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

query I rowsort
SELECT 18 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

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

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

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6020
SELECT DISTINCT - + COUNT ( - 42 ) + + 34 * - - ( - CAST ( NULL AS INTEGER ) ) FROM tab1 cor0
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6023
SELECT ALL + col1 + - CAST( + col1 AS SIGNED ) col0 FROM tab0 AS cor0
----
0
0
0

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6025
SELECT ALL - ( + - COUNT( + + 22 ) ) - 88, COUNT( - - col1 ) AS col1 FROM tab1
----
-85
3

skipif mysql # not compatible
query II rowsort label-6025
SELECT ALL - ( + - COUNT ( + + 22 ) ) - 88, COUNT ( - - col1 ) AS col1 FROM tab1
----
-85
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6026
SELECT - MIN( + col0 ) - + + 35 FROM tab1
----
-86

skipif mysql # not compatible
query I rowsort label-6026
SELECT - MIN ( + col0 ) - + + 35 FROM tab1
----
-86

query I rowsort
SELECT DISTINCT + 40 + - ( - col0 ) AS col0 FROM tab2
----
104
115
86

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( - + 50 + ( 70 ) ) = + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query I rowsort
SELECT - col1 * + 49 * - 38 AS col0 FROM tab1
----
26068
87514
9310

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

skipif mysql # not compatible
query I rowsort label-6032
SELECT + COUNT ( * ) / - 99 AS col2 FROM tab1 AS cor0
----
0

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6033
SELECT DISTINCT MIN ( DISTINCT col0 ) col0 FROM tab1 AS cor0
----
51

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

query I rowsort
SELECT DISTINCT - 19 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-19

query I rowsort
SELECT 77 * col2 * - col2 FROM tab2 cor0
----
-123200
-259028
-40733

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6037
SELECT DISTINCT * FROM tab0 cor0 WHERE + col0 * - ( - CAST( NULL AS SIGNED ) ) * - col2 - col2 * - 71 / + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-6037
SELECT DISTINCT * FROM tab0 cor0 WHERE + col0 * - ( - CAST ( NULL AS INTEGER ) ) * - col2 - col2 * - 71 / + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * 58 col2 FROM tab2 AS cor0
----
2668
3712
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-6040
SELECT DISTINCT 51 * - COUNT( * ) FROM tab1
----
-153

skipif mysql # not compatible
query I rowsort label-6040
SELECT DISTINCT 51 * - COUNT ( * ) FROM tab1
----
-153

onlyif mysql # aggregate syntax: 
query I rowsort label-6041
SELECT ALL ( + SUM( - col0 ) ) AS col1 FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-6041
SELECT ALL ( + SUM ( - col0 ) ) AS col1 FROM tab0
----
-199

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

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

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

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

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

query I rowsort
SELECT + col2 * - col0 * - col2 + 59 + + col1 FROM tab1
----
295949
420890
470089

onlyif mysql # DIV for integer division: 
query I rowsort label-6046
SELECT - col2 DIV - col0 + col1 + - col0 col1 FROM tab2 WHERE + 71 IS NOT NULL
----
-8
13
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6046
SELECT - col2 / - col0 + col1 + - col0 col1 FROM tab2 WHERE + 71 IS NOT NULL
----
-8
13
5

onlyif mysql # aggregate syntax: 
query II rowsort label-6047
SELECT ALL COUNT( * ), - 4 AS col2 FROM tab1
----
3
-4

skipif mysql # not compatible
query II rowsort label-6047
SELECT ALL COUNT ( * ), - 4 AS col2 FROM tab1
----
3
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6048
SELECT + 47 * - CAST( - MIN( col2 ) AS SIGNED ) * + 18 * - - 44 + + COUNT( * ) FROM tab1
----
2196219

skipif mysql # not compatible
query I rowsort label-6048
SELECT + 47 * - CAST ( - MIN ( col2 ) AS INTEGER ) * + 18 * - - 44 + + COUNT ( * ) FROM tab1
----
2196219

query I rowsort
SELECT ALL 74 FROM tab0 WHERE NULL IS NULL
----
74
74
74

query II rowsort
SELECT ALL + - col0 * - 42, col2 FROM tab2 AS cor0
----
1932
23
2688
40
3150
58

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 67 IN ( - col2, + col2, - 71, + ( 37 ), + col0 )
----

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

query I rowsort
SELECT - + 16 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to be22ac76b42c6f7212ecc0ba7c89eb34

onlyif mysql # aggregate syntax: 
query I rowsort label-6054
SELECT 37 + - MIN( - - col0 ) AS col2 FROM tab2 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-6054
SELECT 37 + - MIN ( - - col0 ) AS col2 FROM tab2 cor0
----
-9

query I rowsort
SELECT DISTINCT + col0 + + 80 * col0 AS col1 FROM tab1 cor0
----
4131
6885
7371

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

query I rowsort
SELECT ALL + - col1 FROM tab1 WHERE + 38 < 42
----
-14
-47
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6058
SELECT ALL 88 DIV COUNT( * ) FROM tab2
----
29

skipif mysql # not compatible
query I rowsort label-6058
SELECT ALL 88 / COUNT ( * ) FROM tab2
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-6059
SELECT - 54 * + - COUNT( * ) AS col0 FROM tab0
----
162

skipif mysql # not compatible
query I rowsort label-6059
SELECT - 54 * + - COUNT ( * ) AS col0 FROM tab0
----
162

query II rowsort
SELECT ALL 79 AS col1, col0 + + col0 AS col1 FROM tab1
----
79
102
79
170
79
182

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

query I rowsort
SELECT DISTINCT + + 12 FROM tab2 AS cor0 WHERE col1 * + 8 / + - col0 + - col0 + + ( + 16 ) IS NOT NULL
----
12

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6065
SELECT ALL - MIN ( ALL - - 9 ) FROM tab0 AS cor0
----
-9

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 59 NOT BETWEEN NULL AND NULL AND NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col0 + 93 * - ( + 50 ) AS col2 FROM tab1 AS cor0
----
-4701
-4735
-4741

query I rowsort
SELECT DISTINCT - col2 * - 84 + - + col0 FROM tab0 AS cor0
----
3933
753
8219

query I rowsort
SELECT 96 * - col0 * - col2 FROM tab1
----
470016
481440
594048

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

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

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

skipif mysql # not compatible
query I rowsort label-6071
SELECT ALL - SUM ( ( - col2 ) ) FROM tab1
----
223

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

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

query I rowsort
SELECT DISTINCT - 72 AS col0 FROM tab1, tab0 AS cor0
----
-72

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6076
SELECT DISTINCT MAX( - - 1 ) AS col2 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-6076
SELECT DISTINCT MAX ( - - 1 ) AS col2 FROM tab2
----
1

query I rowsort
SELECT ALL col2 * - - 68 FROM tab1 AS cor0 WHERE NOT ( + - col1 ) >= col2 OR NOT NULL IS NULL
----
4012
4624
6528

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6079
SELECT DISTINCT * FROM tab0 WHERE NOT + col1 * + - CAST( NULL AS SIGNED ) NOT BETWEEN + col0 + + ( + - col1 ) AND + col2
----

skipif mysql # not compatible
query III rowsort label-6079
SELECT DISTINCT * FROM tab0 WHERE NOT + col1 * + - CAST ( NULL AS INTEGER ) NOT BETWEEN + col0 + + ( + - col1 ) AND + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - col0 + + - 61 col0 FROM tab2 cor0
----
2055
4035
5564

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6082
SELECT DISTINCT COUNT( * ) + - 78 AS col1, MIN( - col1 ) AS col2 FROM tab2 AS cor0
----
-75
-77

skipif mysql # not compatible
query II rowsort label-6082
SELECT DISTINCT COUNT ( * ) + - 78 AS col1, MIN ( - col1 ) AS col2 FROM tab2 AS cor0
----
-75
-77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6083
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 * + - 14 + col2 IN ( + 47, + col2 / CAST( NULL AS SIGNED ) + - 69, - col0 )
----

skipif mysql # not compatible
query III rowsort label-6083
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 * + - 14 + col2 IN ( + 47, + col2 / CAST ( NULL AS INTEGER ) + - 69, - col0 )
----

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

query I rowsort
SELECT - + AVG ( - - col0 ) FROM tab1 WHERE NOT NULL >= + col0 + - 82
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + 43 ) col2 FROM tab0
----
43
43
43

query I rowsort
SELECT + col1 AS col2 FROM tab0 WHERE NOT col2 >= + + col1
----
21
81

query I rowsort
SELECT + + col2 AS col1 FROM tab2 WHERE NOT NULL BETWEEN NULL AND NULL
----

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

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

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

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

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

query I rowsort
SELECT - col2 * - 74 FROM tab0
----
3478
7326
740

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6094
SELECT MIN ( ALL + + col0 ) col1 FROM tab0 AS cor0
----
15

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6098
SELECT + col1 * + col1 + col2 AS col1, CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
2624
NULL
4547
NULL
5969
NULL

skipif mysql # not compatible
query II rowsort label-6098
SELECT + col1 * + col1 + col2 AS col1, CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
2624
NULL
4547
NULL
5969
NULL

query I rowsort
SELECT ALL 43 + col1 FROM tab0
----
124
44
64

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

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

query II rowsort
SELECT - col1 * - - 92, 25 AS col1 FROM tab0
----
-1932
25
-7452
25
-92
25

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

query I rowsort
SELECT ALL + col0 * - 37 AS col1 FROM tab2
----
-1702
-2368
-2775

query I rowsort
SELECT + + col2 * + col1 * col0 FROM tab0 AS cor0
----
18270
57105
9603

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

query I rowsort
SELECT 28 * + 95 AS col0 FROM tab1 AS cor0
----
2660
2660
2660

query I rowsort
SELECT DISTINCT col1 * - 82 AS col2 FROM tab1 AS cor0
----
-1148
-3854
-410

onlyif mysql # DIV for integer division: 
query I rowsort label-6108
SELECT ALL + - 84 * col1 DIV 48 + col2 FROM tab0 AS cor0
----
-26
-94
98

skipif mysql # not compatible
query I rowsort label-6108
SELECT ALL + - 84 * col1 / 48 + col2 FROM tab0 AS cor0
----
-26
-94
98

query I rowsort
SELECT - col2 + 38 AS col1 FROM tab1
----
-21
-30
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-6110
SELECT ALL 76 - + MAX( ALL + 20 ) + MIN( DISTINCT - col0 ) * - 9 FROM tab1 AS cor0
----
875

skipif mysql # not compatible
query I rowsort label-6110
SELECT ALL 76 - + MAX ( ALL + 20 ) + MIN ( DISTINCT - col0 ) * - 9 FROM tab1 AS cor0
----
875

query I rowsort
SELECT - col0 * + + 3 * col1 + - col2 AS col0 FROM tab1 AS cor0
----
-12899
-1334
-2238

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

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 83 / col2 * + 26 BETWEEN - 8 + - + 62 AND + + 45
----
46
51
23
64
77
40

query II rowsort
SELECT DISTINCT - 34, + 18 AS col1 FROM tab0 AS cor0
----
-34
18

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

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6121
SELECT ALL 11 DIV col1 FROM tab0 AS cor0
----
0
0
11

skipif mysql # not compatible
query I rowsort label-6121
SELECT ALL 11 / col1 FROM tab0 AS cor0
----
0
0
11

query I rowsort
SELECT - 43 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ab0c314d2b589ccedb9a875beeb1f86a

onlyif mysql # aggregate syntax: 
query I rowsort label-6123
SELECT + MAX( - 11 ) AS col1 FROM tab2 WHERE NULL NOT BETWEEN - 31 AND + - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6123
SELECT + MAX ( - 11 ) AS col1 FROM tab2 WHERE NULL NOT BETWEEN - 31 AND + - col2
----
NULL

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

skipif mysql # not compatible
query II rowsort label-6124
SELECT DISTINCT + - CAST ( NULL AS REAL ) / - col2 + + col1 * + col2 * - col0 AS col2, col0 FROM tab2 AS cor0 WHERE col0 IS NULL
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6127
SELECT - + MAX( DISTINCT 87 ) FROM tab2 cor0
----
-87

skipif mysql # not compatible
query I rowsort label-6127
SELECT - + MAX ( DISTINCT 87 ) FROM tab2 cor0
----
-87

query I rowsort
SELECT ALL + + col1 + - + 64 AS col2 FROM tab0 AS cor0
----
-43
-63
17

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + + 34 * + col0 col0 FROM tab0 AS cor0
----
2948
3199
463

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6131
SELECT ALL - col2 * CAST( NULL AS SIGNED ) + + col2 + - col1 + + 87 * col0 + col2 - - 95 + + - 19 / - 55, + 72 AS col1 FROM tab0 AS cor0
----
NULL
72
NULL
72
NULL
72

skipif mysql # not compatible
query II rowsort label-6131
SELECT ALL - col2 * CAST ( NULL AS INTEGER ) + + col2 + - col1 + + 87 * col0 + col2 - - 95 + + - 19 / - 55, + 72 AS col1 FROM tab0 AS cor0
----
NULL
72
NULL
72
NULL
72

query I rowsort
SELECT ALL col2 + + + 35 + col0 * + 24 AS col0 FROM tab1
----
1355
2134
2287

query I rowsort
SELECT DISTINCT - col0 + + 18 FROM tab1
----
-33
-67
-73

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6134
SELECT col0 col1, col2 * + + CAST ( NULL AS INTEGER ) FROM tab2
----
46
NULL
64
NULL
75
NULL

query I rowsort
SELECT DISTINCT 67 + 86 AS col0 FROM tab1
----
153

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab0 WHERE 57 <= - + col0 * + col2
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6138
SELECT ALL SUM( 93 ) FROM tab2
----
279

skipif mysql # not compatible
query I rowsort label-6138
SELECT ALL SUM ( 93 ) FROM tab2
----
279

onlyif mysql # aggregate syntax: 
query I rowsort label-6139
SELECT DISTINCT + - MAX( ALL + + 45 ) + - COUNT( ALL - - 57 ) FROM tab1 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-6139
SELECT DISTINCT + - MAX ( ALL + + 45 ) + - COUNT ( ALL - - 57 ) FROM tab1 AS cor0
----
-48

query I rowsort
SELECT ALL - - 13 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

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

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

query I rowsort
SELECT ALL - - col1 * col0 * + col2 FROM tab2 AS cor0
----
197120
291450
53958

query I rowsort
SELECT + 25 * 92 * - - col0 + - col1 AS col2 FROM tab2 cor0
----
105749
147123
172433

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 * 74 IS NOT NULL
----

query I rowsort
SELECT - + col2 * + + 22 + - - col2 FROM tab1 AS cor0
----
-1239
-1428
-2016

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

skipif mysql # not compatible
query II rowsort label-6146
SELECT - MAX ( col2 ), + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-99
3

query I rowsort
SELECT + 38 * + col2 * col0 AS col1 FROM tab2 AS cor0
----
165300
40204
97280

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

skipif mysql # not compatible
query II rowsort label-6148
SELECT col1 / + col2 AS col2, col0 FROM tab2 AS cor0
----
1
64
1
75
2
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6149
SELECT DISTINCT - - AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 AS cor0 WHERE NOT col2 + + 65 - - col2 + col2 / + col2 * 48 <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6149
SELECT DISTINCT - - AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 AS cor0 WHERE NOT col2 + + 65 - - col2 + col2 / + col2 * 48 <= NULL
----
NULL

query I rowsort
SELECT DISTINCT col2 * 61 AS col0 FROM tab1
----
3599
4148
5856

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

skipif mysql # not compatible
query I rowsort label-6151
SELECT col0 / - 51 AS col1 FROM tab0
----
-1
-1
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6153
SELECT DISTINCT 76 * COUNT( * ) AS col0 FROM tab2
----
228

skipif mysql # not compatible
query I rowsort label-6153
SELECT DISTINCT 76 * COUNT ( * ) AS col0 FROM tab2
----
228

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6154
SELECT 76 * + CAST( - col0 AS SIGNED ) AS col1, col1 FROM tab0
----
-1140
81
-6612
21
-7372
1

skipif mysql # not compatible
query II rowsort label-6154
SELECT 76 * + CAST ( - col0 AS INTEGER ) AS col1, col1 FROM tab0
----
-1140
81
-6612
21
-7372
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6155
SELECT DISTINCT + 16 * - COUNT( * ) col1 FROM tab0 AS cor0
----
-48

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

query II rowsort
SELECT ( 99 ) * - + 30, - col0 - col2 + - + col1 * + col1 AS col0 FROM tab2 AS cor0
----
-2970
-2670
-2970
-4622
-2970
-6033

query I rowsort
SELECT 77 * 73 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 1d896d34b2bf9ebcfe0b2d4a135673e9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6158
SELECT DISTINCT SUM( ALL + + col2 ) DIV - + 52 AS col2 FROM tab2
----
-2

skipif mysql # not compatible
query I rowsort label-6158
SELECT DISTINCT SUM ( ALL + + col2 ) / - + 52 AS col2 FROM tab2
----
-2

query I rowsort
SELECT DISTINCT ( - + col2 ) + - 5 + + + 11 FROM tab0
----
-4
-41
-93

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

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

query I rowsort
SELECT - 50 + + + ( + col2 ) FROM tab2 AS cor0
----
-10
-27
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 31 + - col0 + 91 col2 FROM tab0 AS cor0
----
-27
-37
45

query I rowsort
SELECT ALL - - col2 + col2 + - + col0 FROM tab2 AS cor0
----
0
16
41

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

query III rowsort
SELECT * FROM tab0 cor0 WHERE - 63 NOT BETWEEN NULL AND col1 * + + 96 * + ( - 17 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 80 + - - 67 AS col1 FROM tab2 cor0
----
147
147
147

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + ( - 34 ) - - col0 - + col1 / - col0 * 31 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6168
SELECT ALL 49 + - ( + - SUM( + + col2 ) ) FROM tab2
----
170

skipif mysql # not compatible
query I rowsort label-6168
SELECT ALL 49 + - ( + - SUM ( + + col2 ) ) FROM tab2
----
170

query I rowsort
SELECT ALL + 69 - - + ( - col2 ) - 76 AS col2 FROM tab1
----
-103
-66
-75

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6173
SELECT + + 87 * ( - COUNT( * ) ) FROM tab0 cor0
----
-261

skipif mysql # not compatible
query I rowsort label-6173
SELECT + + 87 * ( - COUNT ( * ) ) FROM tab0 cor0
----
-261

onlyif mysql # aggregate syntax: 
query I rowsort label-6174
SELECT DISTINCT - MAX( - + ( + - 20 ) ) + + - 52 FROM tab1 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-6174
SELECT DISTINCT - MAX ( - + ( + - 20 ) ) + + - 52 FROM tab1 AS cor0
----
-72

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6176
SELECT DISTINCT + ( 40 ) * + - COUNT( * ) + - - COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-351

skipif mysql # not compatible
query I rowsort label-6176
SELECT DISTINCT + ( 40 ) * + - COUNT ( * ) + - - COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-351

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

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

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

skipif mysql # not compatible
query I rowsort label-6179
SELECT - MAX ( DISTINCT + + 34 ) FROM tab2 AS cor0
----
-34

query I rowsort
SELECT + col0 / - col1 FROM tab1 AS cor0 WHERE NOT + 8 <> NULL
----

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

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

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

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

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

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

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

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

query I rowsort
SELECT 27 * + ( + col1 ) AS col0 FROM tab1
----
1269
135
378

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

query I rowsort
SELECT DISTINCT - ( 15 ) FROM tab0
----
-15

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

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

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

skipif mysql # not compatible
query II rowsort label-6190
SELECT COUNT ( * ) * 78 AS col0, + COUNT ( * ) AS col2 FROM tab2 cor0
----
234
3

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6193
SELECT - COUNT( * ) + + 46 + 45 FROM tab0
----
88

skipif mysql # not compatible
query I rowsort label-6193
SELECT - COUNT ( * ) + + 46 + 45 FROM tab0
----
88

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

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

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

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

query I rowsort
SELECT ALL + ( 0 ) + - - col1 AS col1 FROM tab2 AS cor0
----
51
67
77

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + 8 + - col2 + + 78 col0, - 84 FROM tab1 AS cor0
----
-10
-84
18
-84
27
-84

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6200
SELECT ALL 14 + COUNT( * ) AS col0 FROM tab1
----
17

skipif mysql # not compatible
query I rowsort label-6200
SELECT ALL 14 + COUNT ( * ) AS col0 FROM tab1
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6201
SELECT DISTINCT + 52 - COUNT( * ) * + CAST( - + 75 AS SIGNED ) AS col0 FROM tab0
----
277

skipif mysql # not compatible
query I rowsort label-6201
SELECT DISTINCT + 52 - COUNT ( * ) * + CAST ( - + 75 AS INTEGER ) AS col0 FROM tab0
----
277

query I rowsort
SELECT - col1 FROM tab1 WHERE ( 54 ) IS NOT NULL
----
-14
-47
-5

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6204
SELECT + col0 - + 28 AS col0, - col0 DIV col2 AS col1 FROM tab2
----
18
-2
36
-1
47
-1

skipif mysql # not compatible
query II rowsort label-6204
SELECT + col0 - + 28 AS col0, - col0 / col2 AS col1 FROM tab2
----
18
-2
36
-1
47
-1

query I rowsort
SELECT ALL - ( col2 ) + - col1 FROM tab0
----
-100
-128
-31

query I rowsort
SELECT 91 FROM tab1 AS cor0 WHERE 0 < col2 / + + 51 * + - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6207
SELECT DISTINCT col0 DIV + ( - col2 ) + - + ( - col1 ) FROM tab2 AS cor0
----
49
66
76

skipif mysql # not compatible
query I rowsort label-6207
SELECT DISTINCT col0 / + ( - col2 ) + - + ( - col1 ) FROM tab2 AS cor0
----
49
66
76

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * + - col0 * - - col0 * col2 col2 FROM tab2
----
-10485760
-2238728
-24468750

onlyif mysql # aggregate syntax: 
query I rowsort label-6210
SELECT - 51 * + 67 * COUNT( * ) AS col1 FROM tab0
----
-10251

skipif mysql # not compatible
query I rowsort label-6210
SELECT - 51 * + 67 * COUNT ( * ) AS col1 FROM tab0
----
-10251

query II rowsort
SELECT ALL - + ( + 35 ), col1 AS col1 FROM tab0 AS cor0
----
-35
1
-35
21
-35
81

query II rowsort
SELECT ALL + ( 74 ) AS col0, + 83 AS col1 FROM tab2 AS cor0
----
74
83
74
83
74
83

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT - 26 AS col0 FROM tab1 AS cor0 WHERE NULL <> + 72
----

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

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

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

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

query I rowsort
SELECT DISTINCT col0 * + col0 * + ( col0 ) AS col2 FROM tab2 WHERE NOT + + 79 IS NULL
----
262144
421875
97336

onlyif mysql # aggregate syntax: 
query I rowsort label-6220
SELECT ALL - COUNT( * ) + - + ( + 42 ) AS col0 FROM tab1, tab0 cor0
----
-51

skipif mysql # not compatible
query I rowsort label-6220
SELECT ALL - COUNT ( * ) + - + ( + 42 ) AS col0 FROM tab1, tab0 cor0
----
-51

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

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

query I rowsort
SELECT - col1 + 75 FROM tab0
----
-6
54
74

query I rowsort
SELECT + 84 + col1 + - + col1 FROM tab1
----
84
84
84

query I rowsort
SELECT - col2 + - 95 FROM tab1
----
-154
-163
-191

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

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

query I rowsort
SELECT ALL 35 + + + col0 FROM tab1 AS cor0
----
120
126
86

query I rowsort
SELECT + 20 * + 21 AS col0 FROM tab1 AS cor0
----
420
420
420

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

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6231
SELECT + COUNT( * ) + - 81 DIV + 86 FROM tab2 WHERE 10 IN ( col0 * - col1 - + 19 )
----
0

skipif mysql # not compatible
query I rowsort label-6231
SELECT + COUNT ( * ) + - 81 / + 86 FROM tab2 WHERE 10 IN ( col0 * - col1 - + 19 )
----
0

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

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

skipif mysql # not compatible
query I rowsort label-6233
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * COUNT ( ALL + col1 ) AS col2 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT - col1 - 91 AS col2 FROM tab2
----
-142
-158
-168

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

query I rowsort
SELECT DISTINCT col0 + - 5 FROM tab0
----
10
82
92

query I rowsort
SELECT DISTINCT ( - 9 ) FROM tab0
----
-9

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

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

query I rowsort
SELECT col1 * - 97 FROM tab0
----
-2037
-7857
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-6240
SELECT COUNT( * ) * 15 FROM tab1
----
45

skipif mysql # not compatible
query I rowsort label-6240
SELECT COUNT ( * ) * 15 FROM tab1
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-6241
SELECT ALL - COUNT( * ) + MAX( ALL - 54 ) FROM tab2
----
-57

skipif mysql # not compatible
query I rowsort label-6241
SELECT ALL - COUNT ( * ) + MAX ( ALL - 54 ) FROM tab2
----
-57

query I rowsort
SELECT 55 * + 30 AS col1 FROM tab2
----
1650
1650
1650

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col2 ) <= + col0
----
51
14
96

query I rowsort
SELECT 61 * col1 FROM tab1
----
2867
305
854

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 65 * - col0 col1 FROM tab0
----
-5655
-6305
-975

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6246
SELECT * FROM tab0 WHERE - CAST( ( 16 ) AS SIGNED ) * + col2 >= ( col0 * col1 )
----

skipif mysql # not compatible
query III rowsort label-6246
SELECT * FROM tab0 WHERE - CAST ( ( 16 ) AS INTEGER ) * + col2 >= ( col0 * col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6247
SELECT - 36 * MAX( ALL col2 ) FROM tab0
----
-3564

skipif mysql # not compatible
query I rowsort label-6247
SELECT - 36 * MAX ( ALL col2 ) FROM tab0
----
-3564

query I rowsort
SELECT + col2 * 67 AS col1 FROM tab1
----
3953
4556
6432

query I rowsort
SELECT + ( - col1 ) + + 30 FROM tab1
----
-17
16
25

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

skipif mysql # not compatible
query I rowsort label-6250
SELECT ALL + col2 * + col2 FROM tab0 WHERE NOT NULL BETWEEN ( - col0 + - col0 * CAST ( NULL AS INTEGER ) ) AND ( 59 + 27 * - 96 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6251
SELECT - MAX( DISTINCT col1 ) + + MAX( DISTINCT + col1 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6251
SELECT - MAX ( DISTINCT col1 ) + + MAX ( DISTINCT + col1 ) FROM tab2
----
0

query I rowsort
SELECT DISTINCT - 39 + ( col1 ) AS col1 FROM tab1
----
-25
-34
8

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6253
SELECT DISTINCT * FROM tab2 WHERE + col1 NOT IN ( CAST( NULL AS SIGNED ) * 56 )
----

skipif mysql # not compatible
query III rowsort label-6253
SELECT DISTINCT * FROM tab2 WHERE + col1 NOT IN ( CAST ( NULL AS INTEGER ) * 56 )
----

query I rowsort
SELECT ALL 79 + - col1 * + col1 FROM tab2
----
-2522
-4410
-5850

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6256
SELECT - MIN( + 51 ) AS col0 FROM tab0 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-6256
SELECT - MIN ( + 51 ) AS col0 FROM tab0 AS cor0
----
-51

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6258
SELECT DISTINCT COUNT( * ) FROM tab1 AS cor0 WHERE NULL <> ( col2 )
----
0

skipif mysql # not compatible
query I rowsort label-6258
SELECT DISTINCT COUNT ( * ) FROM tab1 AS cor0 WHERE NULL <> ( col2 )
----
0

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6263
SELECT ALL ( - SUM( - col1 ) ) + 51 AS col0 FROM tab0 WHERE NOT - col1 BETWEEN NULL AND ( + col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6263
SELECT ALL ( - SUM ( - col1 ) ) + 51 AS col0 FROM tab0 WHERE NOT - col1 BETWEEN NULL AND ( + col1 )
----
NULL

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

query I rowsort
SELECT - ( + 43 ) * 97 FROM tab1
----
-4171
-4171
-4171

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6266
SELECT 12 * CAST( NULL AS DECIMAL ) * ( - col2 ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6266
SELECT 12 * CAST ( NULL AS REAL ) * ( - col2 ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6267
SELECT - 62 DIV col2 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6267
SELECT - 62 / col2 FROM tab1
----
-1
0
0

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

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

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

query I rowsort
SELECT DISTINCT - col0 + - - 10 FROM tab1 AS cor0
----
-41
-75
-81

query I rowsort
SELECT ALL col0 + - ( 7 ) + col2 AS col0 FROM tab0 AS cor0
----
189
55
90

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6273
SELECT ALL - + 46 + - + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-49

skipif mysql # not compatible
query I rowsort label-6273
SELECT ALL - + 46 + - + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-6274
SELECT ( SUM( 97 ) ) FROM tab0 AS cor0 WHERE ( 48 ) IS NOT NULL
----
291

skipif mysql # not compatible
query I rowsort label-6274
SELECT ( SUM ( 97 ) ) FROM tab0 AS cor0 WHERE ( 48 ) IS NOT NULL
----
291

query I rowsort
SELECT - 34 + ( + - col2 ) FROM tab2
----
-57
-74
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-6276
SELECT 16 + + COUNT( * ) FROM tab1
----
19

skipif mysql # not compatible
query I rowsort label-6276
SELECT 16 + + COUNT ( * ) FROM tab1
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-6277
SELECT ALL COUNT( * ) + COUNT( * ) * 32 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
297

skipif mysql # not compatible
query I rowsort label-6277
SELECT ALL COUNT ( * ) + COUNT ( * ) * 32 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
297

query II rowsort
SELECT ALL col2, 2 FROM tab0
----
10
2
47
2
99
2

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6280
SELECT + 54 * - COUNT( * ) FROM tab1 cor0
----
-162

skipif mysql # not compatible
query I rowsort label-6280
SELECT + 54 * - COUNT ( * ) FROM tab1 cor0
----
-162

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col1 * col2 ) IS NULL
----

query I rowsort
SELECT + 43 * - col1 - + + col2 AS col0 FROM tab1 AS cor0
----
-2089
-274
-698

onlyif mysql # aggregate syntax: 
query I rowsort label-6283
SELECT - 64 - + - COUNT( * ) FROM tab0 AS cor0
----
-61

skipif mysql # not compatible
query I rowsort label-6283
SELECT - 64 - + - COUNT ( * ) FROM tab0 AS cor0
----
-61

query I rowsort
SELECT col0 + + 17 FROM tab0 AS cor0 WHERE NULL IN ( - 48 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6285
SELECT - 68 - + 80 DIV COUNT( * ) FROM tab2 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-6285
SELECT - 68 - + 80 / COUNT ( * ) FROM tab2 AS cor0
----
-94

query I rowsort
SELECT ALL - col0 FROM tab1 cor0 WHERE col2 BETWEEN ( NULL ) AND ( 45 )
----

query I rowsort
SELECT ALL 18 AS col2 FROM tab0 AS cor0 WHERE NULL IN ( 63 * + + col0 )
----

query I rowsort
SELECT DISTINCT col2 + - - col0 * - col2 FROM tab0
----
-658
-860
-9504

query III rowsort
SELECT * FROM tab1 WHERE - 32 <= NULL
----

query I rowsort
SELECT 3 + + 81 AS col2 FROM tab2
----
84
84
84

query I rowsort
SELECT 51 * - col2 + + 17 + + col0 * - col1 AS col2 FROM tab2
----
-3502
-6951
-7966

onlyif mysql # aggregate syntax: 
query I rowsort label-6292
SELECT ALL COUNT( col0 ) * - - 98 col1 FROM tab1
----
294

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6292
SELECT ALL COUNT ( col0 ) * - - 98 col1 FROM tab1
----
294

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6293
SELECT CAST( COUNT( + - 60 ) AS SIGNED ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-6293
SELECT CAST ( COUNT ( + - 60 ) AS INTEGER ) AS col2 FROM tab2
----
3

query I rowsort
SELECT ALL + col0 * - col2 * + + col2 AS col1 FROM tab1
----
-295885
-420784
-470016

query I rowsort
SELECT 58 * - col0 AS col1 FROM tab2 WHERE NOT ( NULL ) <= col2
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - + col1 / 13 * col2 + - 6 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6298
SELECT ALL - - 11 * + MIN( DISTINCT - col1 ) FROM tab1 AS cor0
----
-517

skipif mysql # not compatible
query I rowsort label-6298
SELECT ALL - - 11 * + MIN ( DISTINCT - col1 ) FROM tab1 AS cor0
----
-517

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT + ( + col2 ) * + 6 >= - col1 * 17
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6300
SELECT DISTINCT col2 * 39 DIV - - col1 AS col0 FROM tab2
----
17
20
33

skipif mysql # not compatible
query I rowsort label-6300
SELECT DISTINCT col2 * 39 / - - col1 AS col0 FROM tab2
----
17
20
33

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6302
SELECT ALL - COUNT( DISTINCT - - 27 ) + - + 51 AS col1 FROM tab2 AS cor0
----
-52

skipif mysql # not compatible
query I rowsort label-6302
SELECT ALL - COUNT ( DISTINCT - - 27 ) + - + 51 AS col1 FROM tab2 AS cor0
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-6303
SELECT ALL MIN( 67 ) AS col2 FROM tab0 AS cor0 WHERE + col0 NOT BETWEEN + + col2 AND + col0
----
67

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6304
SELECT DISTINCT col0 + - 62 AS col1 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN - 52 - - 78 + col2 * + + 79 AND CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-6304
SELECT DISTINCT col0 + - 62 AS col1 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN - 52 - - 78 + col2 * + + 79 AND CAST ( NULL AS INTEGER )
----

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

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

query I rowsort
SELECT ALL - 2 + - col0 FROM tab1 AS cor0
----
-53
-87
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-6307
SELECT + + SUM( - 87 ) FROM tab2 AS cor0
----
-261

skipif mysql # not compatible
query I rowsort label-6307
SELECT + + SUM ( - 87 ) FROM tab2 AS cor0
----
-261

query I rowsort
SELECT ALL + col0 + - col0 * - col2 AS col2 FROM tab1 AS cor0
----
4947
5100
6279

onlyif mysql # aggregate syntax: 
query I rowsort label-6309
SELECT 18 * - COUNT( * ) * + 23 + + 76 FROM tab1 cor0
----
-1166

skipif mysql # not compatible
query I rowsort label-6309
SELECT 18 * - COUNT ( * ) * + 23 + + 76 FROM tab1 cor0
----
-1166

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6310
SELECT DISTINCT * FROM tab2 WHERE NOT NULL = ( + col0 * + col1 * - + 66 / 28 + col1 * + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-6310
SELECT DISTINCT * FROM tab2 WHERE NOT NULL = ( + col0 * + col1 * - + 66 / 28 + col1 * + CAST ( NULL AS INTEGER ) )
----

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6313
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col0, - 20 - + + MIN( - - ( col1 ) ) + - 12 FROM tab1
----
NULL
-37

skipif mysql # not compatible
query II rowsort label-6313
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col0, - 20 - + + MIN ( - - ( col1 ) ) + - 12 FROM tab1
----
NULL
-37

query I rowsort
SELECT + 79 + col2 AS col2 FROM tab0
----
126
178
89

query I rowsort
SELECT 11 * col0 + col0 FROM tab1
----
1020
1092
612

query I rowsort
SELECT DISTINCT col0 + col0 FROM tab2 WHERE NOT ( ( - + col0 ) < ( col0 ) )
----

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6318
SELECT ALL col1 AS col1, - col2 DIV col2 DIV - col0 * - col0 * 37 + col2 FROM tab1
----
14
96
47
68
5
59

skipif mysql # not compatible
query II rowsort label-6318
SELECT ALL col1 AS col1, - col2 / col2 / - col0 * - col0 * 37 + col2 FROM tab1
----
14
96
47
68
5
59

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6321
SELECT DISTINCT 85 DIV col1 * - + col2 + - col0 * col2 AS col0 FROM tab1
----
-5472
-6018
-6256

skipif mysql # not compatible
query I rowsort label-6321
SELECT DISTINCT 85 / col1 * - + col2 + - col0 * col2 AS col0 FROM tab1
----
-5472
-6018
-6256

onlyif mysql # aggregate syntax: 
query II rowsort label-6322
SELECT + 86 AS col1, COUNT( * ) FROM tab2 cor0
----
86
3

skipif mysql # not compatible
query II rowsort label-6322
SELECT + 86 AS col1, COUNT ( * ) FROM tab2 cor0
----
86
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6323
SELECT ALL COUNT( * ) * 29 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
261

skipif mysql # not compatible
query I rowsort label-6323
SELECT ALL COUNT ( * ) * 29 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
261

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6324
SELECT DISTINCT 91 - col0 AS col1, CAST( NULL AS DECIMAL ) * - + ( + + 23 ) FROM tab0
----
-6
NULL
4
NULL
76
NULL

skipif mysql # not compatible
query II rowsort label-6324
SELECT DISTINCT 91 - col0 AS col1, CAST ( NULL AS REAL ) * - + ( + + 23 ) FROM tab0
----
-6
NULL
4
NULL
76
NULL

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

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

query I rowsort
SELECT col2 + - col2 + ( 5 ) + + ( - col2 ) + - col2 / ( col0 * col2 ) AS col1 FROM tab0 AS cor0 WHERE NULL IN ( 54 )
----

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

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

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

query I rowsort
SELECT + 25 + 66 * + - col2 * - 82 FROM tab1 AS cor0
----
319333
368041
519577

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

query I rowsort
SELECT + col2 * 81 * + col1 FROM tab1 AS cor0
----
108864
23895
258876

query I rowsort
SELECT - 46 FROM tab2 AS cor0 WHERE 74 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6333
SELECT - + MAX( - ( - col1 ) ) * + + 64 FROM tab0 AS cor0
----
-5184

skipif mysql # not compatible
query I rowsort label-6333
SELECT - + MAX ( - ( - col1 ) ) * + + 64 FROM tab0 AS cor0
----
-5184

query I rowsort
SELECT + 15 AS col1 FROM tab1 WHERE NOT ( + + 2 * - col1 + col1 ) NOT BETWEEN 23 AND + - col0
----

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

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

query II rowsort
SELECT 76 AS col0, - col1 AS col1 FROM tab0
----
76
-1
76
-21
76
-81

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL >= col0 / - col2
----

query I rowsort
SELECT DISTINCT - col1 * 8 FROM tab2
----
-408
-536
-616

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 46 >= - col0 + + - 15
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

query II rowsort
SELECT - ( - ( 83 ) ) AS col1, col1 AS col2 FROM tab1 WHERE NOT - col0 IS NULL
----
83
14
83
47
83
5

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6344
SELECT ALL - MIN( col2 ) + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-7

skipif mysql # not compatible
query I rowsort label-6344
SELECT ALL - MIN ( col2 ) + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-7

query II rowsort
SELECT - - col1 AS col2, col0 * - - ( col1 ) FROM tab2 AS cor0
----
51
2346
67
5025
77
4928

onlyif mysql # aggregate syntax: 
query I rowsort label-6346
SELECT ALL MAX( - - col1 ) * 11 FROM tab1 AS cor0
----
517

skipif mysql # not compatible
query I rowsort label-6346
SELECT ALL MAX ( - - col1 ) * 11 FROM tab1 AS cor0
----
517

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

query II rowsort
SELECT DISTINCT + 23, + col2 FROM tab1 cor0
----
23
59
23
68
23
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6349
SELECT - 68 DIV ( MIN( DISTINCT - - col1 ) ) FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6349
SELECT - 68 / ( MIN ( DISTINCT - - col1 ) ) FROM tab2 AS cor0
----
-1

query I rowsort
SELECT + 83 * col2 FROM tab1
----
4897
5644
7968

onlyif mysql # aggregate syntax: 
query I rowsort label-6351
SELECT ALL MIN( DISTINCT + ( - col1 ) ) * + 38 FROM tab1
----
-1786

skipif mysql # not compatible
query I rowsort label-6351
SELECT ALL MIN ( DISTINCT + ( - col1 ) ) * + 38 FROM tab1
----
-1786

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6352
SELECT DISTINCT CAST( 25 AS SIGNED ) DIV - col1 AS col0 FROM tab0
----
-1
-25
0

skipif mysql # not compatible
query I rowsort label-6352
SELECT DISTINCT CAST ( 25 AS INTEGER ) / - col1 AS col0 FROM tab0
----
-1
-25
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6353
SELECT + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT 45 + - - col0 + + + 40 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6353
SELECT + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT 45 + - - col0 + + + 40 IS NOT NULL
----
0

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6355
SELECT - COUNT( * ) AS col2, 58 AS col0 FROM tab1 AS cor0 WHERE col1 NOT BETWEEN ( + 17 ) AND - col2
----
-3
58

skipif mysql # not compatible
query II rowsort label-6355
SELECT - COUNT ( * ) AS col2, 58 AS col0 FROM tab1 AS cor0 WHERE col1 NOT BETWEEN ( + 17 ) AND - col2
----
-3
58

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

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( col1 * col0 + col0 + + col1 + + col1 * + 29 - + + col2 * + col1 ) > NULL OR - 36 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6358
SELECT + - SUM( ALL - - 37 ) AS col0 FROM tab0 AS cor0
----
-111

skipif mysql # not compatible
query I rowsort label-6358
SELECT + - SUM ( ALL - - 37 ) AS col0 FROM tab0 AS cor0
----
-111

onlyif mysql # DIV for integer division: 
query I rowsort label-6359
SELECT ALL - 39 DIV + - col0 + - - col2 AS col1 FROM tab0 AS cor0
----
10
49
99

skipif mysql # not compatible
query I rowsort label-6359
SELECT ALL - 39 / + - col0 + - - col2 AS col1 FROM tab0 AS cor0
----
10
49
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6360
SELECT MIN( ALL + - 54 ) FROM tab0
----
-54

skipif mysql # not compatible
query I rowsort label-6360
SELECT MIN ( ALL + - 54 ) FROM tab0
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6361
SELECT + col0 * CAST( - 74 AS SIGNED ), + col1 AS col1 FROM tab1
----
-3774
14
-6290
5
-6734
47

skipif mysql # not compatible
query II rowsort label-6361
SELECT + col0 * CAST ( - 74 AS INTEGER ), + col1 AS col1 FROM tab1
----
-3774
14
-6290
5
-6734
47

onlyif mysql # aggregate syntax: 
query I rowsort label-6362
SELECT ALL MIN( DISTINCT + 92 ) FROM tab2
----
92

skipif mysql # not compatible
query I rowsort label-6362
SELECT ALL MIN ( DISTINCT + 92 ) FROM tab2
----
92

query I rowsort
SELECT DISTINCT - col2 FROM tab0 WHERE NULL IS NULL
----
-10
-47
-99

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

query I rowsort
SELECT DISTINCT + col1 + col1 * - ( + + col0 ) AS col2 FROM tab2
----
-2295
-4851
-4958

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6368
SELECT ALL 71 * + - COUNT( * ) FROM tab0 AS cor0 WHERE NULL BETWEEN - col1 AND ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-6368
SELECT ALL 71 * + - COUNT ( * ) FROM tab0 AS cor0 WHERE NULL BETWEEN - col1 AND ( NULL )
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 = 25
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 87 + col2 * + col2 + - + col2 col2 FROM tab2 AS cor0
----
1473
3219
419

query I rowsort
SELECT - 63 + - + col2 AS col2 FROM tab2 AS cor0
----
-103
-121
-86

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6374
SELECT SUM( 97 ) FROM tab2
----
291

skipif mysql # not compatible
query I rowsort label-6374
SELECT SUM ( 97 ) FROM tab2
----
291

query II rowsort
SELECT ALL - + 18, + col0 AS col0 FROM tab2 cor0
----
-18
46
-18
64
-18
75

query II rowsort
SELECT DISTINCT - - ( col2 ) AS col1, 25 FROM tab0 cor0
----
10
25
47
25
99
25

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

query I rowsort
SELECT 45 AS col1 FROM tab2 AS cor0 WHERE NOT col1 BETWEEN + - 42 AND ( + col1 )
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6379
SELECT - 4 / - col2 col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6380
SELECT - ( + MAX( DISTINCT - col2 ) ) * + 77 * 35 AS col1 FROM tab1 AS cor0
----
159005

skipif mysql # not compatible
query I rowsort label-6380
SELECT - ( + MAX ( DISTINCT - col2 ) ) * + 77 * 35 AS col1 FROM tab1 AS cor0
----
159005

query I rowsort
SELECT + col1 * - 69 + - - col0 + - col0 AS col0 FROM tab0 AS cor0
----
-1449
-5589
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6382
SELECT DISTINCT + 36 * + ( - CAST( + 74 AS SIGNED ) ) FROM tab2
----
-2664

skipif mysql # not compatible
query I rowsort label-6382
SELECT DISTINCT + 36 * + ( - CAST ( + 74 AS INTEGER ) ) FROM tab2
----
-2664

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

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

query I rowsort
SELECT ALL - 43 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ab0c314d2b589ccedb9a875beeb1f86a

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

skipif mysql # not compatible
query I rowsort label-6386
SELECT + CAST ( 54 AS INTEGER ) FROM tab2
----
54
54
54

onlyif mysql # DIV for integer division: 
query I rowsort label-6387
SELECT - col1 * col2 DIV - ( 12 ) + - col1 * - - ( + 87 ) FROM tab0 AS cor0
----
-1810
-6730
-79

skipif mysql # not compatible
query I rowsort label-6387
SELECT - col1 * col2 / - ( 12 ) + - col1 * - - ( + 87 ) FROM tab0 AS cor0
----
-1810
-6730
-79

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6389
SELECT DISTINCT + CAST( + - 90 AS SIGNED ) * - 84 + + COUNT( col0 ) FROM tab2 AS cor0
----
7563

skipif mysql # not compatible
query I rowsort label-6389
SELECT DISTINCT + CAST ( + - 90 AS INTEGER ) * - 84 + + COUNT ( col0 ) FROM tab2 AS cor0
----
7563

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6391
SELECT + SUM( - ( + col0 ) ) + - CAST( NULL AS SIGNED ) + - - 76 FROM tab2 AS cor0
----
NULL

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

query I rowsort
SELECT ALL + 59 + - 33 + col1 FROM tab2 AS cor0
----
103
77
93

onlyif mysql # aggregate syntax: 
query I rowsort label-6393
SELECT - 35 * - ( COUNT( * ) ) AS col2 FROM tab0 AS cor0 WHERE col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6393
SELECT - 35 * - ( COUNT ( * ) ) AS col2 FROM tab0 AS cor0 WHERE col2 IS NULL
----
0

query I rowsort
SELECT DISTINCT + 96 * + 34 + - col2 AS col0 FROM tab1
----
3168
3196
3205

onlyif mysql # aggregate syntax: 
query I rowsort label-6395
SELECT ALL + 35 + + + 80 * - 58 * SUM( + ( + col0 ) ) FROM tab0
----
-923325

skipif mysql # not compatible
query I rowsort label-6395
SELECT ALL + 35 + + + 80 * - 58 * SUM ( + ( + col0 ) ) FROM tab0
----
-923325

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

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

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

skipif mysql # not compatible
query I rowsort label-6397
SELECT DISTINCT + MAX ( DISTINCT col2 ) FROM tab1
----
96

query I rowsort
SELECT + 98 * ( 40 ) AS col1 FROM tab0
----
3920
3920
3920

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6399
SELECT col2 / - 27 / 59 / CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6399
SELECT col2 / - 27 / 59 / CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 * + + col1 * - col2 FROM tab0
----
178929
2100
9801

onlyif mysql # aggregate syntax: 
query II rowsort label-6401
SELECT - MAX( - 14 ), 2 AS col0 FROM tab1
----
14
2

skipif mysql # not compatible
query II rowsort label-6401
SELECT - MAX ( - 14 ), 2 AS col0 FROM tab1
----
14
2

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6402
SELECT DISTINCT - col2 * + col1 col0, CAST( NULL AS DECIMAL ) - col1 * 55 col2 FROM tab2 cor0
----
-1173
NULL
-3080
NULL
-3886
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6402
SELECT DISTINCT - col2 * + col1 col0, CAST ( NULL AS REAL ) - col1 * 55 col2 FROM tab2 cor0
----
-1173
NULL
-3080
NULL
-3886
NULL

query I rowsort
SELECT ALL + 34 + col1 - + ( - 11 ) - + col1 * - col0 + - ( + + col0 ) * - - col0 * - - 91 AS col2 FROM tab0 AS cor0
----
-19134
-686886
-856076

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 88 col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 467301f887614eb7beda22c561b0fad2

query II rowsort
SELECT + col2 AS col1, col0 AS col1 FROM tab1
----
59
85
68
91
96
51

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6407
SELECT COUNT( * ) * + COUNT( * ) + + + 63 col2 FROM tab2 cor0
----
72

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IN ( + 1 + - col2 + + 97 + + + col1 * + 21 * - col0, - 34, - + col1 )
----

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6413
SELECT DISTINCT + - 55 / - CAST( NULL AS SIGNED ) + + col0 col1 FROM tab2 WHERE NOT ( 32 ) + - col2 + + - col1 = col1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6413
SELECT DISTINCT + - 55 / - CAST ( NULL AS INTEGER ) + + col0 col1 FROM tab2 WHERE NOT ( 32 ) + - col2 + + - col1 = col1
----
NULL

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 + - - col0 col2 FROM tab0 cor0
----
174
194
30

query I rowsort
SELECT DISTINCT - col1 - col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-110
-115
-64

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL >= - col2 * + 39 * - col1 )
----

query II rowsort
SELECT DISTINCT col1, ( - col1 ) AS col0 FROM tab0 WHERE NOT NULL IS NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6421
SELECT ALL * FROM tab1 AS cor0 WHERE col0 IN ( + col2, - col2, - col0, + CAST( + col1 AS SIGNED ) * col1 * 86 + ( + 95 ) * + 44 )
----

skipif mysql # not compatible
query III rowsort label-6421
SELECT ALL * FROM tab1 AS cor0 WHERE col0 IN ( + col2, - col2, - col0, + CAST ( + col1 AS INTEGER ) * col1 * 86 + ( + 95 ) * + 44 )
----

query II rowsort
SELECT ALL col0, 70 * + col1 FROM tab2
----
46
3570
64
5390
75
4690

onlyif mysql # aggregate syntax: 
query I rowsort label-6423
SELECT DISTINCT 30 + - COUNT( + col0 ) FROM tab0
----
27

skipif mysql # not compatible
query I rowsort label-6423
SELECT DISTINCT 30 + - COUNT ( + col0 ) FROM tab0
----
27

query I rowsort
SELECT + 16 * - - col1 - - col2 * - + col1 * + ( - - 56 ) * col0 FROM tab2
----
-11037488
-16320128
-3020832

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6426
SELECT - col2 * col1 DIV + CAST( col2 AS SIGNED ) + + + 87 FROM tab0 AS cor0
----
6
66
86

skipif mysql # not compatible
query I rowsort label-6426
SELECT - col2 * col1 / + CAST ( col2 AS INTEGER ) + + + 87 FROM tab0 AS cor0
----
6
66
86

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

skipif mysql # not compatible
query I rowsort label-6427
SELECT ALL - - col2 / + 62 FROM tab2 AS cor0
----
0
0
0

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

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

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

query I rowsort
SELECT - ( + + 30 ) AS col2 FROM tab1
----
-30
-30
-30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 84 * + 98 + col1 - + - col1 col1, - col1 AS col1 FROM tab0 AS cor0
----
8234
-1
8274
-21
8394
-81

query I rowsort
SELECT + + ( - - 72 ) * + col1 FROM tab1 AS cor0
----
1008
3384
360

onlyif mysql # aggregate syntax: 
query I rowsort label-6433
SELECT + MIN( 90 ) FROM tab0 cor0
----
90

skipif mysql # not compatible
query I rowsort label-6433
SELECT + MIN ( 90 ) FROM tab0 cor0
----
90

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT NULL > - 50
----

query I rowsort
SELECT ALL - 33 * - - col0 FROM tab2 AS cor0
----
-1518
-2112
-2475

query I rowsort
SELECT 51 * - col2 FROM tab2
----
-1173
-2040
-2958

query I rowsort
SELECT DISTINCT 48 * - + col2 FROM tab1
----
-2832
-3264
-4608

query I rowsort
SELECT ALL 21 * - 64 AS col2 FROM tab2
----
-1344
-1344
-1344

query I rowsort
SELECT DISTINCT + 90 * - col1 AS col2 FROM tab1
----
-1260
-4230
-450

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

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

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

query I rowsort
SELECT ALL col1 * + col0 + - col2 + + 59 * 33 FROM tab2
----
4270
6835
6914

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

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab1 AS cor1 WHERE NULL >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6445
SELECT DISTINCT - + CAST( NULL AS SIGNED ) * - 97 * - col1 FROM tab1 AS cor0 WHERE NULL IS NULL OR - col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6445
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * - 97 * - col1 FROM tab1 AS cor0 WHERE NULL IS NULL OR - col0 IS NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6446
SELECT + CAST( NULL AS DECIMAL ) * + - 46 + - SUM( DISTINCT + col1 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6446
SELECT + CAST ( NULL AS REAL ) * + - 46 + - SUM ( DISTINCT + col1 ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL - col2 * - col2 + - col2 FROM tab2 AS cor0
----
1560
3306
506

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

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

skipif mysql # not compatible
query I rowsort label-6449
SELECT - - 75 + COUNT ( * ) * + CAST ( NULL AS REAL ) / - + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN + 77 AND - 67 * col1 / - col1
----

query III rowsort
SELECT * FROM tab0 WHERE + col1 + - col2 * - 95 < - 1
----

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

skipif mysql # not compatible
query I rowsort label-6452
SELECT 14 * + - COUNT ( * ) AS col2 FROM tab2
----
-42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 57 - + col0 col1 FROM tab1
----
-28
-34
6

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

skipif mysql # not compatible
query I rowsort label-6454
SELECT COUNT ( - CAST ( + + 86 AS INTEGER ) ) AS col2 FROM tab1
----
3

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

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL >= + 4
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6458
SELECT col2 DIV + 96 AS col0 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6458
SELECT col2 / + 96 AS col0 FROM tab1
----
0
0
1

query II rowsort
SELECT ALL - col0 AS col2, col1 AS col1 FROM tab1 AS cor0 WHERE ( 78 ) <= ( + + 35 + 7 + - 64 / col2 + col1 )
----
-91
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * + 81 col2 FROM tab0 AS cor0
----
-3807
-8019
-810

query II rowsort
SELECT DISTINCT + col0 AS col1, ( + col2 ) FROM tab2 AS cor0 WHERE NULL < col2
----

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

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

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

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

query I rowsort
SELECT ( - 19 ) * - ( - ( + + col2 ) ) FROM tab2
----
-1102
-437
-760

query I rowsort
SELECT + col2 * 26 FROM tab1
----
1534
1768
2496

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6467
SELECT CAST( NULL AS SIGNED ) / + COUNT( * ) * AVG ( ALL + 32 ) * - + COUNT( * ) col1 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6467
SELECT CAST ( NULL AS INTEGER ) / + COUNT ( * ) * AVG ( ALL + 32 ) * - + COUNT ( * ) col1 FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6468
SELECT ALL ( + - col0 ) DIV + col2 + + + col2 AS col0 FROM tab2
----
21
39
57

skipif mysql # not compatible
query I rowsort label-6468
SELECT ALL ( + - col0 ) / + col2 + + + col2 AS col0 FROM tab2
----
21
39
57

query I rowsort
SELECT ALL col1 * + - col1 FROM tab2 AS cor0 WHERE NOT + 5 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6470
SELECT + col2 + - - CAST( + col2 AS SIGNED ) + + col0 + + col1 * - - ( + col0 ) FROM tab0 AS cor0
----
1324
1934
392

skipif mysql # not compatible
query I rowsort label-6470
SELECT + col2 + - - CAST ( + col2 AS INTEGER ) + + col0 + + col1 * - - ( + col0 ) FROM tab0 AS cor0
----
1324
1934
392

onlyif mysql # DIV for integer division: 
query I rowsort label-6471
SELECT + 80 DIV col0 + col0 col0 FROM tab2 AS cor0
----
47
65
76

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6471
SELECT + 80 / col0 + col0 col0 FROM tab2 AS cor0
----
47
65
76

onlyif mysql # DIV for integer division: 
query I rowsort label-6472
SELECT DISTINCT - col2 DIV + col0 FROM tab2 AS cor0 WHERE - 73 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6472
SELECT DISTINCT - col2 / + col0 FROM tab2 AS cor0 WHERE - 73 IS NOT NULL
----
0

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

query I rowsort
SELECT ALL col2 + - col2 * + col0 + - col2 AS col0 FROM tab1 AS cor0
----
-4896
-5015
-6188

query I rowsort
SELECT DISTINCT - 96 * + + col1 FROM tab0
----
-2016
-7776
-96

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6478
SELECT ALL + MAX( ALL 73 ) + COUNT( * ) * - COUNT( * ) col2 FROM tab1 cor0
----
64

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6478
SELECT ALL + MAX ( ALL 73 ) + COUNT ( * ) * - COUNT ( * ) col2 FROM tab1 cor0
----
64

query I rowsort
SELECT + col1 * - col1 - + - col2 AS col2 FROM tab2 cor0
----
-2578
-4431
-5889

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6480
SELECT ALL CAST( + - 39 AS DECIMAL ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-6480
SELECT ALL CAST ( + - 39 AS REAL ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + col0 + + col1 + + col1 * + 31 FROM tab0 AS cor0
----
129
2607
759

query I rowsort
SELECT + col2 - + 50 - - col0 + - 75 AS col0 FROM tab2 AS cor0
----
-21
-56
8

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

query I rowsort
SELECT 76 - + - col0 AS col1 FROM tab2
----
122
140
151

query II rowsort
SELECT ALL - col1 - col2, + col2 + 34 AS col0 FROM tab0
----
-100
133
-128
81
-31
44

query I rowsort
SELECT ALL + 96 + - col0 + 74 FROM tab0
----
155
73
83

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

query I rowsort
SELECT + col0 * - col1 + col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-1134
-1806
-96

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6490
SELECT ALL MIN( 16 ) * + 70 AS col2 FROM tab2
----
1120

skipif mysql # not compatible
query I rowsort label-6490
SELECT ALL MIN ( 16 ) * + 70 AS col2 FROM tab2
----
1120

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

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

query I rowsort
SELECT DISTINCT col2 * + 37 FROM tab1
----
2183
2516
3552

onlyif mysql # aggregate syntax: 
query I rowsort label-6493
SELECT DISTINCT + - COUNT( * ) FROM tab1 WHERE NOT ( - col1 * - 88 BETWEEN - col1 / - 99 AND col0 - + - 4 )
----
-3

skipif mysql # not compatible
query I rowsort label-6493
SELECT DISTINCT + - COUNT ( * ) FROM tab1 WHERE NOT ( - col1 * - 88 BETWEEN - col1 / - 99 AND col0 - + - 4 )
----
-3

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

query I rowsort
SELECT ALL + 8 AS col1 FROM tab0 cor0 WHERE + 79 IS NULL
----

query I rowsort
SELECT + col0 * 81 * ( col2 ) + 95 * + + col2 AS col1 FROM tab2 AS cor0
----
211160
357860
87883

onlyif mysql # aggregate syntax: 
query I rowsort label-6497
SELECT + MIN( - + 53 ) * - 10 + 71 AS col0 FROM tab2 AS cor0
----
601

skipif mysql # not compatible
query I rowsort label-6497
SELECT + MIN ( - + 53 ) * - 10 + 71 AS col0 FROM tab2 AS cor0
----
601

onlyif mysql # DIV for integer division: 
query II rowsort label-6498
SELECT ALL 15 DIV col1 col0, + col0 AS col0 FROM tab1 cor0
----
0
91
1
51
3
85

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6498
SELECT ALL 15 / col1 col0, + col0 AS col0 FROM tab1 cor0
----
0
91
1
51
3
85

onlyif mysql # aggregate syntax: 
query I rowsort label-6499
SELECT DISTINCT - 63 * + COUNT( * ) FROM tab2
----
-189

skipif mysql # not compatible
query I rowsort label-6499
SELECT DISTINCT - 63 * + COUNT ( * ) FROM tab2
----
-189

query II rowsort
SELECT DISTINCT col1, 70 * - - 42 AS col0 FROM tab1
----
14
2940
47
2940
5
2940

query I rowsort
SELECT 15 + + 77 + + col0 * col0 + col1 FROM tab2
----
2259
4265
5784

query I rowsort
SELECT + col0 * - + 41 * col2 + + col0 + col0 FROM tab1
----
-200634
-205445
-253526

onlyif mysql # aggregate syntax: 
query I rowsort label-6503
SELECT - SUM( ALL 29 ) FROM tab2
----
-87

skipif mysql # not compatible
query I rowsort label-6503
SELECT - SUM ( ALL 29 ) FROM tab2
----
-87

query I rowsort
SELECT + + col2 * - + col2 AS col1 FROM tab0 WHERE NULL IS NULL
----
-100
-2209
-9801

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6507
SELECT col1 DIV + col0 - + + col1 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-6507
SELECT col1 / + col0 - + + col1 FROM tab1 AS cor0
----
-14
-47
-5

query I rowsort
SELECT ALL + + 52 FROM tab1 WHERE - col0 IS NOT NULL
----
52
52
52

query III rowsort
SELECT * FROM tab0 WHERE ( + 66 ) IS NULL
----

query I rowsort
SELECT + 20 + - 45 AS col0 FROM tab1 cor0
----
-25
-25
-25

query I rowsort
SELECT DISTINCT + + 56 + + col2 AS col1 FROM tab2 cor0
----
114
79
96

query I rowsort
SELECT DISTINCT 52 * col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
1092
4212
52

query I rowsort
SELECT DISTINCT + col1 + 96 FROM tab0
----
117
177
97

query II rowsort
SELECT - + col1 - - col1 * 9, + col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
112
51
376
91
40
85

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6516
SELECT + MAX( - col1 ) AS col0 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-6516
SELECT + MAX ( - col1 ) AS col0 FROM tab2
----
-51

query II rowsort
SELECT ALL + col1 AS col2, - 32 + - col2 FROM tab2
----
51
-55
67
-90
77
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-6518
SELECT 58 * - - MIN( + 19 ) FROM tab2 cor0
----
1102

skipif mysql # not compatible
query I rowsort label-6518
SELECT 58 * - - MIN ( + 19 ) FROM tab2 cor0
----
1102

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

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

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

skipif mysql # not compatible
query I rowsort label-6520
SELECT COUNT ( * ) * COUNT ( * ) * - COUNT ( * ) * ( - + COUNT ( * ) ) FROM tab0
----
81

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6522
SELECT + + 85 DIV + - col1 AS col2 FROM tab0 AS cor0
----
-1
-4
-85

skipif mysql # not compatible
query I rowsort label-6522
SELECT + + 85 / + - col1 AS col2 FROM tab0 AS cor0
----
-1
-4
-85

query I rowsort
SELECT DISTINCT - + col2 * + 1 + + ( - col0 ) * - col0 AS col0 FROM tab2 AS cor0 WHERE + col0 <= NULL
----

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

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

query I rowsort
SELECT ALL - - AVG ( DISTINCT col0 ) FROM tab0 AS cor0 WHERE - col2 / 44 + - col0 * - 46 BETWEEN + col0 * + col1 - - + 19 + + - col0 AND + col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6526
SELECT + 48 AS col2, COUNT( * ) * 56 AS col0 FROM tab1 AS cor0
----
48
168

skipif mysql # not compatible
query II rowsort label-6526
SELECT + 48 AS col2, COUNT ( * ) * 56 AS col0 FROM tab1 AS cor0
----
48
168

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

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

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

skipif mysql # not compatible
query I rowsort label-6528
SELECT col2 * + - CAST ( NULL AS REAL ) / 36 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 / - + col1 * - col1 * - 70 * + + col1 FROM tab2 WHERE NOT 16 / + 54 <> NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6530
SELECT + col2 / ( - CAST( NULL AS DECIMAL ) ) + - - 76 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6530
SELECT + col2 / ( - CAST ( NULL AS REAL ) ) + - - 76 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 FROM tab0 AS cor0 WHERE + 61 IS NOT NULL AND NOT col2 * - col0 <= col1
----

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

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

query I rowsort
SELECT DISTINCT - + 87 - + + col0 * + 64 FROM tab0 AS cor0
----
-1047
-5655
-6295

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0, col0 - 48 col1 FROM tab0
----
15
-33
87
39
97
49

onlyif mysql # aggregate syntax: 
query II rowsort label-6537
SELECT ALL + 86 * - ( + + COUNT( * ) ) AS col1, 12 + + - 89 col1 FROM tab1 AS cor0
----
-258
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6537
SELECT ALL + 86 * - ( + + COUNT ( * ) ) AS col1, 12 + + - 89 col1 FROM tab1 AS cor0
----
-258
-77

query II rowsort
SELECT DISTINCT + + col2 * col2 * - col0 AS col0, col1 FROM tab2 AS cor0
----
-102400
77
-24334
51
-252300
67

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6539
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col0, + 59 * + col1 FROM tab2 AS cor0
----
NULL
3009
NULL
3953
NULL
4543

skipif mysql # not compatible
query II rowsort label-6539
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col0, + 59 * + col1 FROM tab2 AS cor0
----
NULL
3009
NULL
3953
NULL
4543

onlyif mysql # aggregate syntax: 
query I rowsort label-6540
SELECT ALL COUNT( DISTINCT - - col0 ) * + COUNT( * ) - - 11 AS col1 FROM tab0 AS cor0 WHERE NOT - 62 IS NULL
----
20

skipif mysql # not compatible
query I rowsort label-6540
SELECT ALL COUNT ( DISTINCT - - col0 ) * + COUNT ( * ) - - 11 AS col1 FROM tab0 AS cor0 WHERE NOT - 62 IS NULL
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-6541
SELECT ALL + MIN( DISTINCT + - 45 ) * + + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-135

skipif mysql # not compatible
query I rowsort label-6541
SELECT ALL + MIN ( DISTINCT + - 45 ) * + + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-135

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6542
SELECT DISTINCT + CAST( COUNT( * ) AS SIGNED ) DIV + 29 AS col2 FROM tab1 AS cor0
----
0

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6543
SELECT 75 / + MIN( DISTINCT + CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6543
SELECT 75 / + MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT + col1 * + 73 FROM tab2
----
3723
4891
5621

onlyif mysql # DIV for integer division: 
query I rowsort label-6545
SELECT ALL + + col1 + + 71 DIV - - col2 AS col0 FROM tab2 WHERE - col1 IS NOT NULL
----
54
68
78

skipif mysql # not compatible
query I rowsort label-6545
SELECT ALL + + col1 + + 71 / - - col2 AS col0 FROM tab2 WHERE - col1 IS NOT NULL
----
54
68
78

onlyif mysql # aggregate syntax: 
query I rowsort label-6546
SELECT ALL SUM( ALL - 32 ) AS col1 FROM tab2 AS cor0 WHERE ( + col1 IS NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6546
SELECT ALL SUM ( ALL - 32 ) AS col1 FROM tab2 AS cor0 WHERE ( + col1 IS NULL )
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 80 IN ( + + 19, col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6548
SELECT ALL MIN( ALL - CAST( + + 62 AS SIGNED ) ) FROM tab2 cor0
----
-62

skipif mysql # not compatible
query I rowsort label-6548
SELECT ALL MIN ( ALL - CAST ( + + 62 AS INTEGER ) ) FROM tab2 cor0
----
-62

onlyif mysql # DIV for integer division: 
query II rowsort label-6549
SELECT DISTINCT - col0 AS col1, - col2 * - 87 + + col1 + + - col1 - + 27 DIV + col1 AS col1 FROM tab1
----
-51
8351
-85
5128
-91
5916

skipif mysql # not compatible
query II rowsort label-6549
SELECT DISTINCT - col0 AS col1, - col2 * - 87 + + col1 + + - col1 - + 27 / + col1 AS col1 FROM tab1
----
-51
8351
-85
5128
-91
5916

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

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

query I rowsort
SELECT - 51 * 36 FROM tab0 AS cor0
----
-1836
-1836
-1836

query I rowsort
SELECT + ( 95 ) FROM tab2 cor0
----
95
95
95

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

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

query I rowsort
SELECT DISTINCT + - 97 + 49 FROM tab2 cor0
----
-48

query I rowsort
SELECT col2 * + 83 + - + 99 FROM tab1 AS cor0
----
4798
5545
7869

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

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

query I rowsort
SELECT - 0 FROM tab0 cor0 WHERE NULL IS NULL
----
0
0
0

query II rowsort
SELECT DISTINCT col0, - 11 AS col0 FROM tab2
----
46
-11
64
-11
75
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6560
SELECT CAST( NULL AS SIGNED ) + - 44 * + + 13 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6560
SELECT CAST ( NULL AS INTEGER ) + - 44 * + + 13 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 4 col1 FROM tab2 WHERE - - 97 + + + col1 <> + col0 + + 81
----
4
4
4

query I rowsort
SELECT ALL + col0 * - - col2 FROM tab0
----
705
870
9603

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6563
SELECT ( + - 45 ), - SUM( DISTINCT col0 ) DIV - 44 AS col0 FROM tab0
----
-45
4

skipif mysql # not compatible
query II rowsort label-6563
SELECT ( + - 45 ), - SUM ( DISTINCT col0 ) / - 44 AS col0 FROM tab0
----
-45
4

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

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

query I rowsort
SELECT 57 * 33 AS col1 FROM tab0 AS cor0
----
1881
1881
1881

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

query II rowsort
SELECT + col1 - col0 * - + col2, - 10 * + + 31 AS col0 FROM tab2 AS cor0 WHERE NOT ( NOT NULL NOT IN ( + - col1 * 1 * + 58 * - col2, 30, col1 ) )
----

query I rowsort
SELECT ALL + col1 * + - 52 FROM tab1 cor0
----
-2444
-260
-728

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6569
SELECT DISTINCT - CAST( - - col0 AS SIGNED ) AS col1 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-6569
SELECT DISTINCT - CAST ( - - col0 AS INTEGER ) AS col1 FROM tab2
----
-46
-64
-75

query I rowsort
SELECT - 71 * 6 FROM tab0
----
-426
-426
-426

query II rowsort
SELECT + col0 AS col1, col2 - - col0 FROM tab1
----
51
147
85
144
91
159

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6572
SELECT * FROM tab2 WHERE NOT + - CAST( NULL AS SIGNED ) + - + col2 + col2 = col2
----

skipif mysql # not compatible
query III rowsort label-6572
SELECT * FROM tab2 WHERE NOT + - CAST ( NULL AS INTEGER ) + - + col2 + col2 = col2
----

query I rowsort
SELECT ALL - col2 * col1 * - - 66 AS col1 FROM tab1
----
-19470
-210936
-88704

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6577
SELECT DISTINCT 74 DIV col1 + - col1 col1, + 10 * - col0 FROM tab0 AS cor0
----
-18
-870
-81
-150
73
-970

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6577
SELECT DISTINCT 74 / col1 + - col1 col1, + 10 * - col0 FROM tab0 AS cor0
----
-18
-870
-81
-150
73
-970

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6579
SELECT - col0 * - - ( col1 ) * - CAST( + col0 AS SIGNED ) FROM tab2 AS cor0
----
107916
315392
376875

skipif mysql # not compatible
query I rowsort label-6579
SELECT - col0 * - - ( col1 ) * - CAST ( + col0 AS INTEGER ) FROM tab2 AS cor0
----
107916
315392
376875

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

query I rowsort
SELECT ALL ( - ( col1 ) ) FROM tab0 cor0
----
-1
-21
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 91 * col2 col0 FROM tab1 AS cor0 WHERE NOT 23 * + + ( - 79 ) >= col0
----
-5369
-6188
-8736

query I rowsort
SELECT ALL - 56 - + 94 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e5af916819b090fbb4fa18997d625c07

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 43 + + col1 - - + col1 col1 FROM tab0
----
-1
-41
119

onlyif mysql # aggregate syntax: 
query I rowsort label-6585
SELECT ALL - ( - + 43 ) * + COUNT( * ) FROM tab2
----
129

skipif mysql # not compatible
query I rowsort label-6585
SELECT ALL - ( - + 43 ) * + COUNT ( * ) FROM tab2
----
129

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab1 AS cor1 WHERE 1 IS NOT NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

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

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

query I rowsort
SELECT col2 * + - 65 AS col2 FROM tab2 AS cor0 WHERE + col2 IS NOT NULL
----
-1495
-2600
-3770

query III rowsort
SELECT * FROM tab1 cor0 WHERE 6 + - - col2 / - 32 - + 40 IS NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6591
SELECT ALL ( SUM( ALL - col1 ) ) * - - 85 AS col2 FROM tab2
----
-16575

skipif mysql # not compatible
query I rowsort label-6591
SELECT ALL ( SUM ( ALL - col1 ) ) * - - 85 AS col2 FROM tab2
----
-16575

query I rowsort
SELECT - 92 + - 58 FROM tab1
----
-150
-150
-150

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

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

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE ( NOT - 9 + - - 38 + + + 99 = NULL )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6596
SELECT - MIN( - 32 ) AS col2 FROM tab0 AS cor0 WHERE + col0 IS NOT NULL
----
32

skipif mysql # not compatible
query I rowsort label-6596
SELECT - MIN ( - 32 ) AS col2 FROM tab0 AS cor0 WHERE + col0 IS NOT NULL
----
32

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

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

query I rowsort
SELECT DISTINCT col1 + - + ( 18 ) AS col2 FROM tab2
----
33
49
59

query I rowsort
SELECT + - 47 AS col0 FROM tab0 AS cor0
----
-47
-47
-47

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6600
SELECT DISTINCT CAST( NULL AS SIGNED ) col2, col1 DIV - + col0 + col0 col1 FROM tab0 cor0
----
NULL
10
NULL
87
NULL
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6600
SELECT DISTINCT CAST ( NULL AS INTEGER ) col2, col1 / - + col0 + col0 col1 FROM tab0 cor0
----
NULL
10
NULL
87
NULL
97

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6601
SELECT - + CAST( NULL AS DECIMAL ) AS col0, COUNT( * ) AS col0 FROM tab1 AS cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-6601
SELECT - + CAST ( NULL AS REAL ) AS col0, COUNT ( * ) AS col0 FROM tab1 AS cor0
----
NULL
3

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

query I rowsort
SELECT - 9 * + col0 AS col0 FROM tab1 cor0
----
-459
-765
-819

query II rowsort
SELECT DISTINCT ( + + 24 ) AS col1, - col2 FROM tab1 AS cor0
----
24
-59
24
-68
24
-96

query I rowsort
SELECT - col2 + - col1 FROM tab0 WHERE NOT ( - col0 ) + + 6 NOT BETWEEN NULL AND + - 39 + - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6606
SELECT ALL CAST( - + col0 AS SIGNED ) * + ( 37 ) + + col2 * 60, - ( 89 ) FROM tab0 WHERE col1 + 62 + - + col1 + - col2 IS NULL
----

skipif mysql # not compatible
query II rowsort label-6606
SELECT ALL CAST ( - + col0 AS INTEGER ) * + ( 37 ) + + col2 * 60, - ( 89 ) FROM tab0 WHERE col1 + 62 + - + col1 + - col2 IS NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6608
SELECT col0 / + CAST( NULL AS SIGNED ) AS col0 FROM tab1 WHERE NOT 69 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6608
SELECT col0 / + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 WHERE NOT 69 IS NOT NULL
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6610
SELECT 11 DIV - col0 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6610
SELECT 11 / - col0 AS col2 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6611
SELECT - COUNT( + + col2 ) * COUNT( * ) + + - MIN( ALL + col1 ) FROM tab2
----
-60

skipif mysql # not compatible
query I rowsort label-6611
SELECT - COUNT ( + + col2 ) * COUNT ( * ) + + - MIN ( ALL + col1 ) FROM tab2
----
-60

query I rowsort
SELECT + col0 + - col1 AS col0 FROM tab1 WHERE + 90 - + - col2 + + col1 IS NOT NULL
----
37
44
80

query I rowsort
SELECT col1 + + - 28 + - 74 * col2 AS col2 FROM tab1 cor0
----
-4389
-5013
-7118

onlyif mysql # DIV for integer division: 
query I rowsort label-6614
SELECT DISTINCT 12 DIV + col2 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6614
SELECT DISTINCT 12 / + col2 AS col2 FROM tab1 AS cor0
----
0

query II rowsort
SELECT DISTINCT + - 20 AS col2, 61 FROM tab0 AS cor0
----
-20
61

onlyif mysql # aggregate syntax: 
query I rowsort label-6616
SELECT DISTINCT + - 19 * + - 10 + - - MAX( + ( - 37 ) ) AS col1 FROM tab2 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-6616
SELECT DISTINCT + - 19 * + - 10 + - - MAX ( + ( - 37 ) ) AS col1 FROM tab2 AS cor0
----
153

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6617
SELECT - 36 DIV - CAST( + 20 AS SIGNED ) + + col2 FROM tab0 AS cor0
----
100
11
48

skipif mysql # not compatible
query I rowsort label-6617
SELECT - 36 / - CAST ( + 20 AS INTEGER ) + + col2 FROM tab0 AS cor0
----
100
11
48

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 45 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6620
SELECT DISTINCT + SUM( ALL + + 62 ) AS col0 FROM tab1 AS cor0
----
186

skipif mysql # not compatible
query I rowsort label-6620
SELECT DISTINCT + SUM ( ALL + + 62 ) AS col0 FROM tab1 AS cor0
----
186

onlyif mysql # aggregate syntax: 
query I rowsort label-6621
SELECT DISTINCT ( 76 ) + SUM( DISTINCT 16 ) col2 FROM tab0 AS cor0
----
92

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6621
SELECT DISTINCT ( 76 ) + SUM ( DISTINCT 16 ) col2 FROM tab0 AS cor0
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-6622
SELECT ALL MAX( - + ( ( + col1 ) ) ) * COUNT( * ) - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-6622
SELECT ALL MAX ( - + ( ( + col1 ) ) ) * COUNT ( * ) - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-156

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 54 + 38 + + 29 * + + col2 col1 FROM tab0 cor0
----
1455
2963
382

query I rowsort
SELECT ALL col1 + col2 - - - 21 FROM tab2
----
104
53
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6627
SELECT + + 64 * - SUM( - col2 ) AS col2, 20 AS col1 FROM tab1 WHERE - col1 / CAST( - - col0 AS SIGNED ) + + 26 < + 85
----
14272
20

skipif mysql # not compatible
query II rowsort label-6627
SELECT + + 64 * - SUM ( - col2 ) AS col2, 20 AS col1 FROM tab1 WHERE - col1 / CAST ( - - col0 AS INTEGER ) + + 26 < + 85
----
14272
20

onlyif mysql # DIV for integer division: 
query I rowsort label-6628
SELECT DISTINCT 39 - col1 DIV + - ( + + col1 ) AS col0 FROM tab1
----
40

skipif mysql # not compatible
query I rowsort label-6628
SELECT DISTINCT 39 - col1 / + - ( + + col1 ) AS col0 FROM tab1
----
40

query I rowsort
SELECT ALL + col2 + - + col1 FROM tab0 WHERE NOT - 38 IS NOT NULL
----

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6633
SELECT DISTINCT - + MAX ( DISTINCT - 43 ) FROM tab2 AS cor0
----
43

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6635
SELECT ALL + col0 * CAST( col1 AS SIGNED ) * + - 3 + + 65 FROM tab0 AS cor0
----
-226
-3580
-5416

skipif mysql # not compatible
query I rowsort label-6635
SELECT ALL + col0 * CAST ( col1 AS INTEGER ) * + - 3 + + 65 FROM tab0 AS cor0
----
-226
-3580
-5416

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6637
SELECT - col2 DIV - ( - 27 ) FROM tab1 AS cor0
----
-2
-2
-3

skipif mysql # not compatible
query I rowsort label-6637
SELECT - col2 / - ( - 27 ) FROM tab1 AS cor0
----
-2
-2
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6638
SELECT MAX( + col0 ) AS col1 FROM tab2 WHERE NOT - - 38 BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6638
SELECT MAX ( + col0 ) AS col1 FROM tab2 WHERE NOT - - 38 BETWEEN NULL AND NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6639
SELECT + COUNT( * ) * - CAST( NULL AS DECIMAL ) col2 FROM tab2
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6640
SELECT - col1 DIV 35 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6640
SELECT - col1 / 35 FROM tab1
----
-1
0
0

query I rowsort
SELECT + col2 * + col2 * col2 FROM tab2
----
12167
195112
64000

query II rowsort
SELECT - ( + - 80 ) AS col2, col2 FROM tab1
----
80
59
80
68
80
96

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6643
SELECT + CAST( NULL AS DECIMAL ) / - col0 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6643
SELECT + CAST ( NULL AS REAL ) / - col0 AS col2 FROM tab2
----
NULL
NULL
NULL

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6646
SELECT DISTINCT col1, + 5 DIV + col0 FROM tab1
----
14
0
47
0
5
0

skipif mysql # not compatible
query II rowsort label-6646
SELECT DISTINCT col1, + 5 / + col0 FROM tab1
----
14
0
47
0
5
0

query I rowsort
SELECT ALL - col0 * 54 * + col0 * + 34 + - col1 AS col2 FROM tab0
----
-13896705
-17274925
-413181

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

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

query I rowsort
SELECT ALL - 87 + + - ( col2 ) FROM tab1 AS cor0
----
-146
-155
-183

query I rowsort
SELECT 68 * 42 + + + 53 FROM tab1
----
2909
2909
2909

onlyif mysql # aggregate syntax: 
query I rowsort label-6651
SELECT DISTINCT - - MAX( - 18 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-18

skipif mysql # not compatible
query I rowsort label-6651
SELECT DISTINCT - - MAX ( - 18 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-18

query I rowsort
SELECT ALL + + 5 AS col1 FROM tab2 WHERE NOT ( + 48 ) = - col0 + + col1
----
5
5
5

query I rowsort
SELECT ALL + 47 + + col1 * - col1 + col1 AS col2 FROM tab0 AS cor0
----
-373
-6433
47

query I rowsort
SELECT DISTINCT 94 * + + col1 * - 79 * + col0 AS col0 FROM tab0 cor0
----
-13567302
-720322
-9022590

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6655
SELECT ALL CAST( col1 AS SIGNED ) DIV - 30 + - - 17 FROM tab2 AS cor0
----
15
15
16

skipif mysql # not compatible
query I rowsort label-6655
SELECT ALL CAST ( col1 AS INTEGER ) / - 30 + - - 17 FROM tab2 AS cor0
----
15
15
16

query II rowsort
SELECT DISTINCT col2 AS col2, col2 * + col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT 66 - col0 * 39 AS col1 FROM tab2 AS cor0
----
-1728
-2430
-2859

query I rowsort
SELECT - 0 * + 43 - + 18 AS col2 FROM tab0
----
-18
-18
-18

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

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

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

query I rowsort
SELECT DISTINCT + col1 + + 5 FROM tab0
----
26
6
86

query III rowsort
SELECT * FROM tab0 WHERE NULL IN ( + + col1, - col2 * - 37 * - - col2 * - 91 / + + col2 )
----

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6665
SELECT ALL col0, + col2 * col0 DIV + - col0 AS col1 FROM tab1
----
51
-96
85
-59
91
-68

skipif mysql # not compatible
query II rowsort label-6665
SELECT ALL col0, + col2 * col0 / + - col0 AS col1 FROM tab1
----
51
-96
85
-59
91
-68

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT ( - ( col1 ) ) AS col2, 2 + col0 col2 FROM tab0
----
-1
99
-21
89
-81
17

query III rowsort
SELECT * FROM tab1 WHERE + col2 + - 53 * + 60 = - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6669
SELECT ALL + - 12 * + + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-6669
SELECT ALL + - 12 * + + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-36

query I rowsort
SELECT 38 * col0 AS col2 FROM tab2 AS cor0
----
1748
2432
2850

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6673
SELECT DISTINCT - 53 + - col1 DIV + col0 AS col0 FROM tab1
----
-53

skipif mysql # not compatible
query I rowsort label-6673
SELECT DISTINCT - 53 + - col1 / + col0 AS col0 FROM tab1
----
-53

query I rowsort
SELECT ALL - 30 + - 91 AS col0 FROM tab0
----
-121
-121
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-6675
SELECT DISTINCT + 10 * + COUNT( * ) + MAX( DISTINCT col0 ) FROM tab1
----
121

skipif mysql # not compatible
query I rowsort label-6675
SELECT DISTINCT + 10 * + COUNT ( * ) + MAX ( DISTINCT col0 ) FROM tab1
----
121

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6676
SELECT DISTINCT MIN( col0 ) DIV + MIN( - col2 * - col2 - - 19 ) - 4 FROM tab0
----
-4

skipif mysql # not compatible
query I rowsort label-6676
SELECT DISTINCT MIN ( col0 ) / + MIN ( - col2 * - col2 - - 19 ) - 4 FROM tab0
----
-4

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

query I rowsort
SELECT DISTINCT 3 + - 1 AS col1 FROM tab1
----
2

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 = - ( + col0 )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6681
SELECT + 56 + + 8 * - COUNT( ALL - 66 ) AS col1 FROM tab1 WHERE ( 76 ) NOT BETWEEN NULL AND ( 61 )
----
32

skipif mysql # not compatible
query I rowsort label-6681
SELECT + 56 + + 8 * - COUNT ( ALL - 66 ) AS col1 FROM tab1 WHERE ( 76 ) NOT BETWEEN NULL AND ( 61 )
----
32

onlyif mysql # DIV for integer division: 
query I rowsort label-6682
SELECT DISTINCT - 42 + col0 DIV + col0 AS col2 FROM tab1
----
-41

skipif mysql # not compatible
query I rowsort label-6682
SELECT DISTINCT - 42 + col0 / + col0 AS col2 FROM tab1
----
-41

query I rowsort
SELECT ALL ( + 62 ) FROM tab2
----
62
62
62

query I rowsort
SELECT 53 - + 39 * + 65 FROM tab1
----
-2482
-2482
-2482

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

query III rowsort
SELECT * FROM tab1 WHERE NOT 79 * 40 + - col0 IS NOT NULL
----

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

query I rowsort
SELECT col1 * 62 + - col1 AS col2 FROM tab1
----
2867
305
854

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

query III rowsort
SELECT * FROM tab0 WHERE NOT - 31 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE + 98 NOT BETWEEN 35 AND NULL
----

query I rowsort
SELECT DISTINCT - 16 + 1 * + col0 FROM tab2
----
30
48
59

query I rowsort
SELECT DISTINCT + ( col1 ) - col0 AS col0 FROM tab1
----
-37
-44
-80

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6695
SELECT ALL COUNT( * ) + COUNT( * ) FROM tab2 WHERE 58 > ( col2 )
----
4

skipif mysql # not compatible
query I rowsort label-6695
SELECT ALL COUNT ( * ) + COUNT ( * ) FROM tab2 WHERE 58 > ( col2 )
----
4

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

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

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

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

query I rowsort
SELECT col1 * + 62 AS col1 FROM tab1 AS cor0
----
2914
310
868

onlyif mysql # aggregate syntax: 
query I rowsort label-6699
SELECT DISTINCT 76 + + MIN( ALL - col2 ) FROM tab2 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-6699
SELECT DISTINCT 76 + + MIN ( ALL - col2 ) FROM tab2 AS cor0
----
18

query I rowsort
SELECT DISTINCT col1 + + 93 FROM tab2 AS cor0
----
144
160
170

onlyif mysql # aggregate syntax: 
query I rowsort label-6701
SELECT ALL COUNT( ALL - col1 ) + ( COUNT( * ) ) * + 53 FROM tab1 AS cor0
----
162

skipif mysql # not compatible
query I rowsort label-6701
SELECT ALL COUNT ( ALL - col1 ) + ( COUNT ( * ) ) * + 53 FROM tab1 AS cor0
----
162

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6703
SELECT DISTINCT 13 * COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2
----
117

skipif mysql # not compatible
query I rowsort label-6703
SELECT DISTINCT 13 * COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2
----
117

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

query I rowsort
SELECT col2 + col0 * 45 FROM tab2 cor0
----
2093
2920
3433

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

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

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

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

query I rowsort
SELECT ALL col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6709
SELECT ALL - COUNT( * ) * - MAX( - 53 * 82 ) AS col2 FROM tab1 AS cor0
----
-13038

skipif mysql # not compatible
query I rowsort label-6709
SELECT ALL - COUNT ( * ) * - MAX ( - 53 * 82 ) AS col2 FROM tab1 AS cor0
----
-13038

query I rowsort
SELECT DISTINCT 50 * - col1 AS col2 FROM tab0 cor0 WHERE NOT NULL IN ( - 38 )
----

query I rowsort
SELECT 37 + 33 AS col0 FROM tab0 AS cor0
----
70
70
70

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 47 BETWEEN + 31 AND - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6713
SELECT + - COUNT( * ) * 43 FROM tab0 cor0
----
-129

skipif mysql # not compatible
query I rowsort label-6713
SELECT + - COUNT ( * ) * 43 FROM tab0 cor0
----
-129

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

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

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

query I rowsort
SELECT ALL - - col1 + - 68 AS col0 FROM tab2 AS cor0
----
-1
-17
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6717
SELECT DISTINCT col1 + + CAST( + col1 AS SIGNED ) AS col2 FROM tab1
----
10
28
94

skipif mysql # not compatible
query I rowsort label-6717
SELECT DISTINCT col1 + + CAST ( + col1 AS INTEGER ) AS col2 FROM tab1
----
10
28
94

query I rowsort
SELECT DISTINCT col1 FROM tab0 WHERE - col0 * - col0 IS NOT NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6719
SELECT 79 * - COUNT( * ) AS col0 FROM tab0
----
-237

skipif mysql # not compatible
query I rowsort label-6719
SELECT 79 * - COUNT ( * ) AS col0 FROM tab0
----
-237

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6720
SELECT COUNT( * ) / - CAST( NULL AS SIGNED ) - 23 / + 35 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6720
SELECT COUNT ( * ) / - CAST ( NULL AS INTEGER ) - 23 / + 35 FROM tab1
----
NULL

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

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

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) <= + 72 * col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - 69 col0 FROM tab1
----
-4071
-4692
-6624

query I rowsort
SELECT ALL - 59 FROM tab1 AS cor0 WHERE NOT ( ( col2 ) ) NOT BETWEEN col0 * col0 AND 14
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6727
SELECT DISTINCT 68 * + COUNT( * ) FROM tab1
----
204

skipif mysql # not compatible
query I rowsort label-6727
SELECT DISTINCT 68 * + COUNT ( * ) FROM tab1
----
204

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 col2 FROM tab1 WHERE NOT + 57 <= + col2
----

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6731
SELECT ( col1 ) FROM tab1 AS cor0 WHERE ( NULL ) < ( col0 + col0 ) OR CAST( NULL AS SIGNED ) * 12 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6731
SELECT ( col1 ) FROM tab1 AS cor0 WHERE ( NULL ) < ( col0 + col0 ) OR CAST ( NULL AS INTEGER ) * 12 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 + - + 25 + - 11 IN ( col0 * col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

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

query I rowsort
SELECT + ( 71 ) FROM tab2
----
71
71
71

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

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col0 >= 57
----
46
51
23

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6739
SELECT - col2 * - col1 AS col2, ( + + CAST( NULL AS DECIMAL ) ) AS col0 FROM tab1
----
1344
NULL
295
NULL
3196
NULL

skipif mysql # not compatible
query II rowsort label-6739
SELECT - col2 * - col1 AS col2, ( + + CAST ( NULL AS REAL ) ) AS col0 FROM tab1
----
1344
NULL
295
NULL
3196
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6740
SELECT col0 DIV - CAST( + 49 AS SIGNED ) FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6740
SELECT col0 / - CAST ( + 49 AS INTEGER ) FROM tab1
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6741
SELECT * FROM tab2 WHERE + col1 * ( col0 ) <> CAST( - 70 AS SIGNED ) + 66
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6741
SELECT * FROM tab2 WHERE + col1 * ( col0 ) <> CAST ( - 70 AS INTEGER ) + 66
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6742
SELECT COUNT( * ) * - 15 AS col0 FROM tab0
----
-45

skipif mysql # not compatible
query I rowsort label-6742
SELECT COUNT ( * ) * - 15 AS col0 FROM tab0
----
-45

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6743
SELECT ( - col2 ) col2 FROM tab2 WHERE col1 + - 60 NOT BETWEEN ( ( col1 ) * - col2 ) AND ( + CAST ( NULL AS INTEGER ) / - col0 )
----

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

skipif mysql # not compatible
query I rowsort label-6744
SELECT ALL 72 + + col0 FROM tab2 cor0 WHERE ( NULL < col1 * - CAST ( NULL AS INTEGER ) - + 67 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6745
SELECT DISTINCT + 81 * - col1 FROM tab1 AS cor0 WHERE col1 / - CAST( - + col1 AS SIGNED ) >= ( + col0 )
----

skipif mysql # not compatible
query I rowsort label-6745
SELECT DISTINCT + 81 * - col1 FROM tab1 AS cor0 WHERE col1 / - CAST ( - + col1 AS INTEGER ) >= ( + col0 )
----

query I rowsort
SELECT col0 + col2 AS col1 FROM tab0 cor0 WHERE + 55 - - col2 + - 98 * - col1 * 33 IS NOT NULL
----
196
62
97

query I rowsort
SELECT + col2 + + col1 - col1 + - col0 + col0 FROM tab0 AS cor0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6748
SELECT - MAX( + 29 ) FROM tab1
----
-29

skipif mysql # not compatible
query I rowsort label-6748
SELECT - MAX ( + 29 ) FROM tab1
----
-29

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

query I rowsort
SELECT ALL + 75 FROM tab0 WHERE NOT + col2 <= NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6753
SELECT DISTINCT 31 * + 7 + + COUNT( * ) AS col2 FROM tab2 AS cor0
----
220

skipif mysql # not compatible
query I rowsort label-6753
SELECT DISTINCT 31 * + 7 + + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
220

onlyif mysql # aggregate syntax: 
query I rowsort label-6754
SELECT ( - 43 ) - COUNT( * ) FROM tab0 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-6754
SELECT ( - 43 ) - COUNT ( * ) FROM tab0 AS cor0
----
-46

query I rowsort
SELECT + col2 - - + col2 FROM tab2 AS cor0
----
116
46
80

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6757
SELECT - + SUM( - - col2 ) - - MAX( - - 53 ) * - SUM( - col2 ) + COUNT( * ) FROM tab2 AS cor0
----
6295

skipif mysql # not compatible
query I rowsort label-6757
SELECT - + SUM ( - - col2 ) - - MAX ( - - 53 ) * - SUM ( - col2 ) + COUNT ( * ) FROM tab2 AS cor0
----
6295

onlyif mysql # aggregate syntax: 
query I rowsort label-6758
SELECT ALL - 82 + + COUNT( * ) AS col1 FROM tab2
----
-79

skipif mysql # not compatible
query I rowsort label-6758
SELECT ALL - 82 + + COUNT ( * ) AS col1 FROM tab2
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-6759
SELECT DISTINCT 43 * COUNT( * ) * + MIN( + - 31 ) col2 FROM tab2
----
-3999

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6759
SELECT DISTINCT 43 * COUNT ( * ) * + MIN ( + - 31 ) col2 FROM tab2
----
-3999

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

query I rowsort
SELECT DISTINCT col1 * - ( + 99 ) AS col2 FROM tab0
----
-2079
-8019
-99

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col0 * + col2, 20 * + - col1 col2 FROM tab0 AS cor0
----
705
-1620
870
-420
9603
-20

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6766
SELECT DISTINCT + MIN( - col1 ), - ( - 7 ) AS col1 FROM tab2 AS cor0
----
-77
7

skipif mysql # not compatible
query II rowsort label-6766
SELECT DISTINCT + MIN ( - col1 ), - ( - 7 ) AS col1 FROM tab2 AS cor0
----
-77
7

onlyif mysql # aggregate syntax: 
query III rowsort label-6767
SELECT ALL + + ( COUNT( * ) ) * - - 7 AS col2, - 65 * + COUNT( * ) AS col1, - 98 AS col1 FROM tab0 AS cor0
----
21
-195
-98

skipif mysql # not compatible
query III rowsort label-6767
SELECT ALL + + ( COUNT ( * ) ) * - - 7 AS col2, - 65 * + COUNT ( * ) AS col1, - 98 AS col1 FROM tab0 AS cor0
----
21
-195
-98

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 NOT IN ( + - 74 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col2 * - 35 * 70 AS col0, col0 col1 FROM tab2 AS cor0
----
-142100
75
-56350
46
-98000
64

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

query I rowsort
SELECT 50 * + - col0 + col0 AS col0 FROM tab0 AS cor0
----
-4263
-4753
-735

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

query I rowsort
SELECT DISTINCT ( - 75 ) + - col2 AS col1 FROM tab0 AS cor0
----
-122
-174
-85

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

skipif mysql # not compatible
query II rowsort label-6774
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1, + COUNT ( * ) * - COUNT ( * ) FROM tab1
----
NULL
-9

query III rowsort
SELECT * FROM tab0 WHERE - 87 = + 20
----

query I rowsort
SELECT + 2 + - col2 AS col2 FROM tab0
----
-45
-8
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-6777
SELECT col0 DIV 75 * + 10 * ( - + col2 ) FROM tab2
----
-580
0
0

skipif mysql # not compatible
query I rowsort label-6777
SELECT col0 / 75 * + 10 * ( - + col2 ) FROM tab2
----
-580
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6778
SELECT * FROM tab0 WHERE 47 NOT IN ( + + 87 / - CAST( NULL AS SIGNED ) * - - col1 / + - 75 )
----

skipif mysql # not compatible
query III rowsort label-6778
SELECT * FROM tab0 WHERE 47 NOT IN ( + + 87 / - CAST ( NULL AS INTEGER ) * - - col1 / + - 75 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6779
SELECT * FROM tab1 WHERE NULL NOT BETWEEN ( - 11 - + col2 * - col1 ) AND ( CAST( + 29 AS DECIMAL ) * - + 88 * col0 + col2 )
----

skipif mysql # not compatible
query III rowsort label-6779
SELECT * FROM tab1 WHERE NULL NOT BETWEEN ( - 11 - + col2 * - col1 ) AND ( CAST ( + 29 AS REAL ) * - + 88 * col0 + col2 )
----

query I rowsort
SELECT + - 62 AS col0 FROM tab0 WHERE + 19 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1, + 76 col2 FROM tab1
----
14
76
47
76
5
76

onlyif mysql # aggregate syntax: 
query II rowsort label-6782
SELECT + 77 AS col1, MIN( ALL - 80 ) AS col1 FROM tab2
----
77
-80

skipif mysql # not compatible
query II rowsort label-6782
SELECT + 77 AS col1, MIN ( ALL - 80 ) AS col1 FROM tab2
----
77
-80

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

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

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

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

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

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

query I rowsort
SELECT + + 13 * - - 84 + 18 + + + ( col1 ) FROM tab2 WHERE col1 / + col2 + - + 17 IS NULL
----

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

query II rowsort
SELECT ( - + col1 ), col1 AS col2 FROM tab0 AS cor0
----
-1
1
-21
21
-81
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6791
SELECT ( + + 7 ) * + COUNT( * ) FROM tab2 cor0
----
21

skipif mysql # not compatible
query I rowsort label-6791
SELECT ( + + 7 ) * + COUNT ( * ) FROM tab2 cor0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-6792
SELECT ALL 85 + COUNT( ALL 28 + col1 ) FROM tab0 AS cor0 WHERE NOT NULL BETWEEN 25 * - + col0 * - col0 - col2 / + col2 * 75 AND - col0
----
85

skipif mysql # not compatible
query I rowsort label-6792
SELECT ALL 85 + COUNT ( ALL 28 + col1 ) FROM tab0 AS cor0 WHERE NOT NULL BETWEEN 25 * - + col0 * - col0 - col2 / + col2 * 75 AND - col0
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-6793
SELECT - 31 * 25 DIV col0 + + 22 + + - col0 + - 91 col0 FROM tab1 AS cor0
----
-135
-163
-168

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6793
SELECT - 31 * 25 / col0 + + 22 + + - col0 + - 91 col0 FROM tab1 AS cor0
----
-135
-163
-168

query I rowsort
SELECT DISTINCT 31 FROM tab2 AS cor0 WHERE NOT ( 91 * + col2 + + col2 ) IS NULL
----
31

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 NOT BETWEEN - col2 * - + 16 * + + 25 AND col2
----

query I rowsort
SELECT DISTINCT 21 / + 51 + + 30 + col1 AS col2 FROM tab1 WHERE NOT + + col1 * + 64 <= NULL
----

query I rowsort
SELECT ALL col1 AS col0 FROM tab2 WHERE + 1 <> NULL
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6799
SELECT + ( col1 ) DIV - + ( - col2 ) AS col1 FROM tab2
----
1
1
2

skipif mysql # not compatible
query I rowsort label-6799
SELECT + ( col1 ) / - + ( - col2 ) AS col1 FROM tab2
----
1
1
2

query I rowsort
SELECT DISTINCT + col1 * + + 40 AS col2 FROM tab1
----
1880
200
560

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6801
SELECT DISTINCT - ( + col0 ) + CAST( - + col1 AS SIGNED ) FROM tab0 WHERE + + col1 IS NOT NULL
----
-108
-96
-98

skipif mysql # not compatible
query I rowsort label-6801
SELECT DISTINCT - ( + col0 ) + CAST ( - + col1 AS INTEGER ) FROM tab0 WHERE + + col1 IS NOT NULL
----
-108
-96
-98

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

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

query I rowsort
SELECT + + ( + col0 ) AS col2 FROM tab1 WHERE NOT + + 72 * col2 >= - + ( - + col2 )
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 INNER JOIN tab1 AS cor1 ON NOT - ( 3 ) IS NOT NULL
----

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

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

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

skipif mysql # not compatible
query I rowsort label-6806
SELECT - - CAST ( CAST ( - 25 AS INTEGER ) AS INTEGER ) FROM tab1 AS cor0
----
-25
-25
-25

query I rowsort
SELECT col2 * col1 * + + col0 * col2 AS col0 FROM tab2
----
1241034
16904100
7884800

query I rowsort
SELECT 1 * - 84 AS col1 FROM tab0
----
-84
-84
-84

query II rowsort
SELECT - col2 * + col1 * - - 5 AS col1, 16 AS col0 FROM tab2
----
-15400
16
-19430
16
-5865
16

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

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

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

skipif mysql # not compatible
query I rowsort label-6811
SELECT DISTINCT MIN ( - - col1 ) / + - COUNT ( * ) AS col1 FROM tab1
----
-1

query I rowsort
SELECT ALL - col0 + + 77 * - col2 FROM tab1
----
-4628
-5327
-7443

query I rowsort
SELECT ALL - 3 + 81 AS col1 FROM tab1 WHERE NOT - col1 <> NULL
----

query I rowsort
SELECT DISTINCT + col0 + col2 * - - col2 * + + 40 * col1 FROM tab2
----
1079206
4928064
9015595

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

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

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

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

query I rowsort
SELECT + col1 * - + col0 * + 41 FROM tab0 cor0
----
-3977
-49815
-74907

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6823
SELECT - + MIN( ALL - col0 ) FROM tab2 WHERE NOT 14 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6823
SELECT - + MIN ( ALL - col0 ) FROM tab2 WHERE NOT 14 IS NOT NULL
----
NULL

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6828
SELECT DISTINCT - + ( + CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 AS cor0 WHERE NULL < 21
----

skipif mysql # not compatible
query I rowsort label-6828
SELECT DISTINCT - + ( + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 AS cor0 WHERE NULL < 21
----

query I rowsort
SELECT - col0 + - 35 * - col1 AS col1 FROM tab0 AS cor0
----
-62
2820
648

query I rowsort
SELECT + + 60 + - col0 AS col1 FROM tab0 AS cor0
----
-27
-37
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( col0 ) + - col2 col2 FROM tab0 AS cor0
----
-2
-32
77

query I rowsort
SELECT - 62 + - ( - col1 ) AS col2 FROM tab1 cor0
----
-15
-48
-57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - - 84 ) col1 FROM tab0 AS cor0 WHERE col0 NOT IN ( col1 )
----
84

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

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

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

query I rowsort
SELECT DISTINCT + col1 * + 62 + col2 FROM tab2 AS cor0
----
3185
4212
4814

onlyif mysql # aggregate syntax: 
query I rowsort label-6837
SELECT ALL - COUNT( * ) - 16 AS col1 FROM tab1 cor0
----
-19

skipif mysql # not compatible
query I rowsort label-6837
SELECT ALL - COUNT ( * ) - 16 AS col1 FROM tab1 cor0
----
-19

query II rowsort
SELECT DISTINCT - col1 - + + col2 * - col2 * + col2, + col1 FROM tab0
----
103742
81
970298
1
979
21

query I rowsort
SELECT ( - - 47 ) FROM tab2
----
47
47
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6840
SELECT - COUNT( ALL - col2 ) DIV 42 col0 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6840
SELECT - COUNT ( ALL - col2 ) / 42 col0 FROM tab2
----
0

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6844
SELECT - SUM( - - col1 ) FROM tab1 cor0
----
-66

skipif mysql # not compatible
query I rowsort label-6844
SELECT - SUM ( - - col1 ) FROM tab1 cor0
----
-66

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

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

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + ( - + col0 ) NOT BETWEEN - + 63 AND + - col0 * col2 / - col1
----
51
14
96

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6848
SELECT ALL + SUM ( ALL - + 89 ) col1 FROM tab0
----
-267

query II rowsort
SELECT - 83, + 84 + + col1 AS col1 FROM tab1
----
-83
131
-83
89
-83
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6850
SELECT CAST( + 56 AS SIGNED ) AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa

skipif mysql # not compatible
query I rowsort label-6850
SELECT CAST ( + 56 AS INTEGER ) AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa

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

query I rowsort
SELECT - col1 * 46 FROM tab1
----
-2162
-230
-644

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

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

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

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

query I rowsort
SELECT ALL col2 + - col1 * 10 FROM tab0 AS cor0
----
-200
-763
89

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6858
SELECT + col2 DIV - + col0 * col0 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6858
SELECT + col2 / - + col0 * col0 FROM tab2 cor0
----
0
0
0

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

query I rowsort
SELECT ALL AVG ( + col0 ) FROM tab0 WHERE NOT NULL IS NULL
----
NULL

query II rowsort
SELECT DISTINCT - 59 AS col1, + col0 AS col1 FROM tab2
----
-59
46
-59
64
-59
75

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

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

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

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

query I rowsort
SELECT ALL col1 + - 64 * + col0 FROM tab2 AS cor0
----
-2893
-4019
-4733

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6866
SELECT - SUM( - - CAST( + col2 AS SIGNED ) ) AS col1 FROM tab0 cor0
----
-156

skipif mysql # not compatible
query I rowsort label-6866
SELECT - SUM ( - - CAST ( + col2 AS INTEGER ) ) AS col1 FROM tab0 cor0
----
-156

query I rowsort
SELECT col0 * - 53 AS col1 FROM tab1 AS cor0
----
-2703
-4505
-4823

query I rowsort
SELECT ALL 85 * - 10 FROM tab1
----
-850
-850
-850

query I rowsort
SELECT DISTINCT + 15 * 48 FROM tab1
----
720

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 89 col0, 17 FROM tab0 AS cor0
----
-89
17
-89
17
-89
17

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6874
SELECT DISTINCT + 25 DIV + CAST( 76 AS SIGNED ) col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6874
SELECT DISTINCT + 25 / + CAST ( 76 AS INTEGER ) col0 FROM tab0 AS cor0
----
0

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

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

query II rowsort
SELECT ALL + col2 AS col1, + ( - 17 ) AS col0 FROM tab0 AS cor0
----
10
-17
47
-17
99
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6878
SELECT DISTINCT + - COUNT( * ) FROM tab0 cor0 WHERE NOT - 67 = - + col2 / - CAST( + col2 AS SIGNED ) * - col1 - 88 * col1 + - col1
----
-3

skipif mysql # not compatible
query I rowsort label-6878
SELECT DISTINCT + - COUNT ( * ) FROM tab0 cor0 WHERE NOT - 67 = - + col2 / - CAST ( + col2 AS INTEGER ) * - col1 - 88 * col1 + - col1
----
-3

query I rowsort
SELECT DISTINCT - col2 + col0 FROM tab1 WHERE NOT NULL = - ( - 70 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6880
SELECT - COUNT( * ) AS col2 FROM tab1 WHERE NOT 30 * 62 + + col1 + col1 + - - col0 - - + col1 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-6880
SELECT - COUNT ( * ) AS col2 FROM tab1 WHERE NOT 30 * 62 + + col1 + col1 + - - col0 - - + col1 = NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6881
SELECT ALL ( + MAX( ALL - 60 ) ) * - 94 FROM tab1
----
5640

skipif mysql # not compatible
query I rowsort label-6881
SELECT ALL ( + MAX ( ALL - 60 ) ) * - 94 FROM tab1
----
5640

query I rowsort
SELECT ALL - 48 * col0 * - 49 AS col0 FROM tab2
----
108192
150528
176400

onlyif mysql # aggregate syntax: 
query I rowsort label-6883
SELECT ALL - 15 * - + ( + COUNT( * ) ) FROM tab1
----
45

skipif mysql # not compatible
query I rowsort label-6883
SELECT ALL - 15 * - + ( + COUNT ( * ) ) FROM tab1
----
45

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 <> - col2 - - col0
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6886
SELECT + - ( - CAST( col2 AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-6886
SELECT + - ( - CAST ( col2 AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
23
40
58

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

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

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

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

query I rowsort
SELECT + + 39 - - - 96 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 520dc393896969e02a72ab6c5d92126b

query III rowsort
SELECT * FROM tab1 WHERE - ( 27 ) < NULL
----

query I rowsort
SELECT col1 + - col0 + - 71 * - col0 * 88 + + ( - col0 ) * + col1 AS col2 FROM tab2
----
285067
394957
463567

query I rowsort
SELECT - 46 + - col2 AS col1 FROM tab0 AS cor0
----
-145
-56
-93

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6895
SELECT DISTINCT - 12 * - CAST( NULL AS SIGNED ) + - AVG ( - - 3 ) + - - 90 AS col2 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6895
SELECT DISTINCT - 12 * - CAST ( NULL AS INTEGER ) + - AVG ( - - 3 ) + - - 90 AS col2 FROM tab2 cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE - col1 * 5 + - col2 + + 98 + + 36 - - + col2 + - col2 * col0 BETWEEN + col0 AND NULL
----

query II rowsort
SELECT 59, col2 * 51 FROM tab1 WHERE + col1 >= NULL
----

query I rowsort
SELECT DISTINCT col2 + + - 92 FROM tab2
----
-34
-52
-69

query I rowsort
SELECT 77 * + col1 AS col1 FROM tab0
----
1617
6237
77

query I rowsort
SELECT ALL - 82 - + - col1 AS col0 FROM tab0
----
-1
-61
-81

query I rowsort
SELECT DISTINCT 49 * + 83 FROM tab0
----
4067

query I rowsort
SELECT - ( col0 ) - - col0 AS col2 FROM tab1
----
0
0
0

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

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

query I rowsort
SELECT + 88 FROM tab1 WHERE - col1 NOT IN ( - 51, 42 )
----
88
88
88

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT col0 + col1 AS col1 FROM tab2 cor0 WHERE + 84 IS NOT NULL
----
141
142
97

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

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

query I rowsort
SELECT ALL - 76 * + col0 AS col1 FROM tab1
----
-3876
-6460
-6916

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6913
SELECT + 1 DIV + col2 * - col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6913
SELECT + 1 / + col2 * - col2 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT - col2 + 13 * + col0 FROM tab1
----
1046
1115
567

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6916
SELECT DISTINCT - COUNT( * ) + + - 24 FROM tab0 AS cor0 WHERE NOT + col0 <> 33 AND NOT 61 + - CAST( NULL AS SIGNED ) < - col0
----
-24

skipif mysql # not compatible
query I rowsort label-6916
SELECT DISTINCT - COUNT ( * ) + + - 24 FROM tab0 AS cor0 WHERE NOT + col0 <> 33 AND NOT 61 + - CAST ( NULL AS INTEGER ) < - col0
----
-24

query I rowsort
SELECT + 55 + col1 + + 60 * 74 * col1 AS col0 FROM tab2 AS cor0
----
226546
297602
342012

onlyif mysql # aggregate syntax: 
query I rowsort label-6918
SELECT DISTINCT + + COUNT( * ) + - 79 AS col2 FROM tab2 AS cor0
----
-76

skipif mysql # not compatible
query I rowsort label-6918
SELECT DISTINCT + + COUNT ( * ) + - 79 AS col2 FROM tab2 AS cor0
----
-76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 5 * + - col0 col0, col0 - col2 AS col1 FROM tab2
----
-230
23
-320
24
-375
17

query I rowsort
SELECT + 21 * - 96 FROM tab0
----
-2016
-2016
-2016

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

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

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

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

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

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

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

query I rowsort
SELECT ALL 5 + + + 37 FROM tab0 AS cor0
----
42
42
42

onlyif mysql # aggregate syntax: 
query I rowsort label-6926
SELECT - MAX( + col2 ) - 92 col2 FROM tab0 AS cor0
----
-191

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6926
SELECT - MAX ( + col2 ) - 92 col2 FROM tab0 AS cor0
----
-191

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 7 <= - 68
----

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

query II rowsort
SELECT DISTINCT 80, + col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + 86 + - - 52 * + col1 AS col1 FROM tab1 AS cor0
----
2530
346
814

query I rowsort
SELECT + 6 + 82 AS col2 FROM tab1
----
88
88
88

query I rowsort
SELECT ALL - 54 + - 11 FROM tab0
----
-65
-65
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-6933
SELECT ALL MAX( ALL + - col2 ) AS col1 FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-6933
SELECT ALL MAX ( ALL + - col2 ) AS col1 FROM tab1
----
-59

query I rowsort
SELECT DISTINCT 46 * + + col1 * - + col2 AS col0 FROM tab1
----
-13570
-147016
-61824

query I rowsort
SELECT DISTINCT - 49 + + col0 / + 85 * - col2 AS col0 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN - 58 AND NULL
----

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

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

query I rowsort
SELECT ALL - + ( - - col1 ) FROM tab1 cor0
----
-14
-47
-5

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

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

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

skipif mysql # not compatible
query I rowsort label-6941
SELECT - - SUM ( ALL + ( col0 ) ) * + + 31 AS col1 FROM tab0 AS cor0
----
6169

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

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

query I rowsort
SELECT + col1 * + 30 AS col1 FROM tab0 AS cor0
----
2430
30
630

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

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

query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 cor0 WHERE NOT NULL IS NOT NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

onlyif mysql # aggregate syntax: 
query I rowsort label-6947
SELECT DISTINCT + ( 45 ) * - + COUNT( * ) + - 68 col1 FROM tab2
----
-203

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6947
SELECT DISTINCT + ( 45 ) * - + COUNT ( * ) + - 68 col1 FROM tab2
----
-203

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

query I rowsort
SELECT 80 FROM tab1 WHERE - col0 NOT BETWEEN + ( + col0 ) / col0 AND NULL
----
80
80
80

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - - 1 - + col0 + + 48 >= - col2 * + + 41
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6951
SELECT ALL - MIN( - - CAST( NULL AS SIGNED ) ) AS col1 FROM tab0
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6952
SELECT ALL col2 DIV - 65 + - col1 AS col0 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-6952
SELECT ALL col2 / - 65 + - col1 AS col0 FROM tab2
----
-51
-67
-77

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

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

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

query I rowsort
SELECT 71 * - + col2 + 16 * - 3 * + + col1 FROM tab0
----
-1718
-7077
-7225

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

query I rowsort
SELECT - + 34 * + col2 + - + col1 FROM tab0 AS cor0
----
-1679
-3367
-361

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6962
SELECT SUM( 66 ) FROM tab1
----
198

skipif mysql # not compatible
query I rowsort label-6962
SELECT SUM ( 66 ) FROM tab1
----
198

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6963
SELECT + 78 DIV + + 4 AS col1 FROM tab0 WHERE NOT ( CAST( 18 AS SIGNED ) ) IS NULL
----
19
19
19

skipif mysql # not compatible
query I rowsort label-6963
SELECT + 78 / + + 4 AS col1 FROM tab0 WHERE NOT ( CAST ( 18 AS INTEGER ) ) IS NULL
----
19
19
19

query I rowsort
SELECT - col1 * + + 58 FROM tab0
----
-1218
-4698
-58

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 28 col1 FROM ( tab2 AS cor0 CROSS JOIN tab0 cor1 )
----
9 values hashing to c3e7fa3d059fc708f03c60e9cef0c115

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6969
SELECT DISTINCT - COUNT( * ) * - - CAST( NULL AS SIGNED ) + - - AVG ( 45 ) + - MAX( ALL ( - ( + col0 ) ) ) / + COUNT( * ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6969
SELECT DISTINCT - COUNT ( * ) * - - CAST ( NULL AS INTEGER ) + - - AVG ( 45 ) + - MAX ( ALL ( - ( + col0 ) ) ) / + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 + 63 * + + col0 NOT BETWEEN + 55 AND 77
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

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

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

query II rowsort
SELECT + 56 AS col1, - 28 AS col1 FROM tab2 AS cor0
----
56
-28
56
-28
56
-28

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

query I rowsort
SELECT + 2 FROM tab1 AS cor0 WHERE - 85 * + + col0 IS NOT NULL
----
2
2
2

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

query I rowsort
SELECT ALL - ( + - 43 ) * - + 82 - + 34 + - 23 + - col2 FROM tab1
----
-3642
-3651
-3679

query I rowsort
SELECT - col2 * - col0 * - col0 AS col1 FROM tab2
----
-163840
-326250
-48668

query I rowsort
SELECT ALL - col0 * - col1 + - 8 AS col2 FROM tab1
----
417
4269
706

onlyif mysql # aggregate syntax: 
query I rowsort label-6980
SELECT ALL + MIN( ALL + col1 ) FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-6980
SELECT ALL + MIN ( ALL + col1 ) FROM tab2
----
51

query I rowsort
SELECT col0 + - - col0 * - col2 AS col2 FROM tab1
----
-4845
-4930
-6097

query I rowsort
SELECT + 27 + - col1 * - col0 FROM tab0
----
124
1242
1854

onlyif mysql # aggregate syntax: 
query I rowsort label-6983
SELECT + MAX( DISTINCT col0 ) + COUNT( * ) FROM tab0
----
100

skipif mysql # not compatible
query I rowsort label-6983
SELECT + MAX ( DISTINCT col0 ) + COUNT ( * ) FROM tab0
----
100

query I rowsort
SELECT ALL ( - + col1 ) * + 98 * + 84 * - col1 + + - col0 AS col0 FROM tab0 AS cor0
----
3630225
54010137
8135

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

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

query I rowsort
SELECT 47 + 11 FROM tab1 AS cor0
----
58
58
58

onlyif mysql # aggregate syntax: 
query II rowsort label-6987
SELECT DISTINCT 54 * + MAX( + + col1 ) - + 63 + - 31 AS col2, 7 col0 FROM tab0
----
4280
7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6987
SELECT DISTINCT 54 * + MAX ( + + col1 ) - + 63 + - 31 AS col2, 7 col0 FROM tab0
----
4280
7

query I rowsort
SELECT ALL + 25 * col2 * 69 AS col0 FROM tab0 AS cor0
----
170775
17250
81075

onlyif mysql # DIV for integer division: 
query I rowsort label-6989
SELECT - + 76 DIV + ( + 70 ) AS col2 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6989
SELECT - + 76 / + ( + 70 ) AS col2 FROM tab2 AS cor0
----
-1
-1
-1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6991
SELECT 70 * + COUNT( * ) FROM tab0 AS cor0
----
210

skipif mysql # not compatible
query I rowsort label-6991
SELECT 70 * + COUNT ( * ) FROM tab0 AS cor0
----
210

onlyif mysql # DIV for integer division: 
query I rowsort label-6992
SELECT - col2 DIV - 13 - + 33 * - 99 AS col0 FROM tab2 AS cor0
----
3268
3270
3271

skipif mysql # not compatible
query I rowsort label-6992
SELECT - col2 / - 13 - + 33 * - 99 AS col0 FROM tab2 AS cor0
----
3268
3270
3271

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

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

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE - 91 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6996
SELECT DISTINCT + col1 FROM tab1 WHERE + 17 NOT BETWEEN - ( CAST( - 21 AS SIGNED ) ) AND + col0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-6996
SELECT DISTINCT + col1 FROM tab1 WHERE + 17 NOT BETWEEN - ( CAST ( - 21 AS INTEGER ) ) AND + col0
----
14
47
5

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <= + 55 - ( + col2 )
----

query I rowsort
SELECT ALL col1 * col1 FROM tab0 WHERE - col1 + - col1 BETWEEN + col2 AND col2
----

query II rowsort
SELECT + - col0 AS col0, 96 - + - 66 AS col2 FROM tab0 AS cor0
----
-15
162
-87
162
-97
162

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7000
SELECT + col2 DIV + col2 AS col2, CAST( NULL AS SIGNED ) * - + col2 FROM tab2
----
1
NULL
1
NULL
1
NULL

skipif mysql # not compatible
query II rowsort label-7000
SELECT + col2 / + col2 AS col2, CAST ( NULL AS INTEGER ) * - + col2 FROM tab2
----
1
NULL
1
NULL
1
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7002
SELECT ALL * FROM tab2 WHERE NOT - CAST( + col2 AS SIGNED ) * + + 8 * 45 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-7002
SELECT ALL * FROM tab2 WHERE NOT - CAST ( + col2 AS INTEGER ) * + + 8 * 45 IS NOT NULL
----

query II rowsort
SELECT + + col2 + - col0 AS col2, col0 * + col2 + - - col0 AS col0 FROM tab0 cor0
----
-77
957
2
9700
32
720

onlyif mysql # aggregate syntax: 
query I rowsort label-7004
SELECT DISTINCT + COUNT( * ) * + + ( 27 ) + COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND ( + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-7004
SELECT DISTINCT + COUNT ( * ) * + + ( 27 ) + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND ( + col2 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7005
SELECT ALL + CAST( - - AVG ( ALL + col1 ) AS SIGNED ) FROM tab0 AS cor0
----
34

skipif mysql # not compatible
query I rowsort label-7005
SELECT ALL + CAST ( - - AVG ( ALL + col1 ) AS INTEGER ) FROM tab0 AS cor0
----
34

query I rowsort
SELECT DISTINCT - - col1 + + 1 FROM tab1 AS cor0
----
15
48
6

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

skipif mysql # not compatible
query I rowsort label-7007
SELECT DISTINCT + + CAST ( col0 AS INTEGER ) + - - CAST ( - + col2 AS INTEGER ) FROM tab2 AS cor0
----
17
23
24

query I rowsort
SELECT col1 AS col0 FROM tab1 AS cor0 WHERE NULL >= 5 * col0 * col1
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7010
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL IN ( CAST( NULL AS SIGNED ), - col0 / col1, - col0, + + col0 / - col0, + col1 )
----

skipif mysql # not compatible
query III rowsort label-7010
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL IN ( CAST ( NULL AS INTEGER ), - col0 / col1, - col0, + + col0 / - col0, + col1 )
----

query I rowsort
SELECT - col2 + ( - 61 ) FROM tab1
----
-120
-129
-157

onlyif mysql # DIV for integer division: 
query II rowsort label-7012
SELECT ALL - col0 AS col2, 66 DIV + + col2 + + col1 + col1 AS col2 FROM tab1
----
-51
28
-85
11
-91
94

skipif mysql # not compatible
query II rowsort label-7012
SELECT ALL - col0 AS col2, 66 / + + col2 + + col1 + col1 AS col2 FROM tab1
----
-51
28
-85
11
-91
94

query I rowsort
SELECT - 44 * - - col2 AS col0 FROM tab0
----
-2068
-4356
-440

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7014
SELECT CAST( NULL AS SIGNED ) AS col0, COUNT( * ) AS col1 FROM tab1
----
NULL
3

skipif mysql # not compatible
query II rowsort label-7014
SELECT CAST ( NULL AS INTEGER ) AS col0, COUNT ( * ) AS col1 FROM tab1
----
NULL
3

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7016
SELECT ALL COUNT( DISTINCT - + CAST( + ( 41 ) AS SIGNED ) ) * MIN( 75 ) FROM tab1 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-7016
SELECT ALL COUNT ( DISTINCT - + CAST ( + ( 41 ) AS INTEGER ) ) * MIN ( 75 ) FROM tab1 AS cor0
----
75

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

skipif mysql # not compatible
query I rowsort label-7017
SELECT + MIN ( ALL - - ( - col2 ) ) - - 46 - COUNT ( * ) FROM tab1 AS cor0
----
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7018
SELECT ALL col2 * + - CAST( col2 AS SIGNED ) + + col1 AS col2 FROM tab2 AS cor0
----
-1523
-3297
-478

skipif mysql # not compatible
query I rowsort label-7018
SELECT ALL col2 * + - CAST ( col2 AS INTEGER ) + + col1 AS col2 FROM tab2 AS cor0
----
-1523
-3297
-478

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7019
SELECT * FROM tab1 WHERE - + col2 + - col2 + + + col1 * + 29 / + CAST( NULL AS SIGNED ) < + 1 / - 63 - + col2 - + + col2
----

skipif mysql # not compatible
query III rowsort label-7019
SELECT * FROM tab1 WHERE - + col2 + - col2 + + + col1 * + 29 / + CAST ( NULL AS INTEGER ) < + 1 / - 63 - + col2 - + + col2
----

query I rowsort
SELECT DISTINCT - 79 * - + 90 FROM tab1
----
7110

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 48 * - ( + + col2 ) col2 FROM tab0 AS cor0
----
-2256
-4752
-480

query II rowsort
SELECT ALL - 99 AS col1, - 94 AS col2 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col1 AND col0
----

query I rowsort
SELECT DISTINCT + - 20 * - col1 + - col0 FROM tab1 cor0
----
15
229
849

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

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

query I rowsort
SELECT - col1 / col2 AS col2 FROM tab0 AS cor0 WHERE NOT - 81 * - 96 - + - 95 - + - col0 / + + col1 IS NOT NULL
----

query I rowsort
SELECT - ( 52 ) FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7030
SELECT col0, - CAST( NULL AS SIGNED ) col0 FROM tab2
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7030
SELECT col0, - CAST ( NULL AS INTEGER ) col0 FROM tab2
----
46
NULL
64
NULL
75
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7033
SELECT + COUNT( * ) FROM tab2 WHERE NOT + 87 <= + CAST( + 37 AS SIGNED )
----
3

skipif mysql # not compatible
query I rowsort label-7033
SELECT + COUNT ( * ) FROM tab2 WHERE NOT + 87 <= + CAST ( + 37 AS INTEGER )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7034
SELECT DISTINCT COUNT( + + 95 ) * MAX( ALL col1 ) AS col0 FROM tab2
----
231

skipif mysql # not compatible
query I rowsort label-7034
SELECT DISTINCT COUNT ( + + 95 ) * MAX ( ALL col1 ) AS col0 FROM tab2
----
231

query I rowsort
SELECT DISTINCT 63 * + col2 AS col2 FROM tab1
----
3717
4284
6048

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7036
SELECT ALL - CAST( NULL AS SIGNED ) / - 43 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7036
SELECT ALL - CAST ( NULL AS INTEGER ) / - 43 FROM tab1
----
NULL
NULL
NULL

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

skipif mysql # not compatible
query I rowsort label-7037
SELECT DISTINCT - MIN ( + 20 ) FROM tab2 cor0
----
-20

query I rowsort
SELECT ALL 85 * + col2 + + ( - + col0 ) AS col0 FROM tab1 AS cor0
----
4930
5689
8109

onlyif mysql # DIV for integer division: 
query I rowsort label-7039
SELECT - - 17 DIV - col2 * + 31 * - col2 + + ( - col0 ) * - 96 FROM tab1 AS cor0
----
4896
8160
8736

skipif mysql # not compatible
query I rowsort label-7039
SELECT - - 17 / - col2 * + 31 * - col2 + + ( - col0 ) * - 96 FROM tab1 AS cor0
----
4896
8160
8736

query II rowsort
SELECT col1 + 46 AS col1, + 73 * + col0 AS col2 FROM tab2
----
113
5475
123
4672
97
3358

query I rowsort
SELECT ALL - + 27 AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab2 cor1 )
----
9 values hashing to 90b76caf54a4e48ee4a9784f52997a6a

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7044
SELECT ALL + + CAST( col1 AS SIGNED ) * - - col2 + col0 * - ( + 35 ) + - + col2 FROM tab2 AS cor0
----
-460
1203
800

skipif mysql # not compatible
query I rowsort label-7044
SELECT ALL + + CAST ( col1 AS INTEGER ) * - - col2 + col0 * - ( + 35 ) + - + col2 FROM tab2 AS cor0
----
-460
1203
800

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

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

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

query I rowsort
SELECT DISTINCT col0 + + col0 + col1 FROM tab1 AS cor0
----
116
175
229

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

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

query I rowsort
SELECT 35 + + + ( - col2 ) AS col2 FROM tab1
----
-24
-33
-61

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

skipif mysql # not compatible
query I rowsort label-7050
SELECT DISTINCT COUNT ( ALL + col0 ) + + 47 FROM tab2
----
50

query I rowsort
SELECT 60 + - col2 AS col0 FROM tab1
----
-36
-8
1

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

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

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

query I rowsort
SELECT ALL 42 * 42 FROM tab2 AS cor0
----
1764
1764
1764

query I rowsort
SELECT DISTINCT - col2 + - col0 + + 84 FROM tab2 AS cor0
----
-20
-49
15

query III rowsort
SELECT ALL * FROM tab1 WHERE - - 28 * + - col0 <> + - 83
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT - col0 AS col0, + 60 FROM tab2 cor0
----
-46
60
-64
60
-75
60

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7059
SELECT CAST( NULL AS SIGNED ) AS col0, 37 AS col1 FROM tab0 cor0
----
NULL
37
NULL
37
NULL
37

skipif mysql # not compatible
query II rowsort label-7059
SELECT CAST ( NULL AS INTEGER ) AS col0, 37 AS col1 FROM tab0 cor0
----
NULL
37
NULL
37
NULL
37

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

query II rowsort
SELECT - col0 * + 33 + + - col1 AS col1, 23 * + col0 FROM tab2 AS cor0
----
-1569
1058
-2189
1472
-2542
1725

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7062
SELECT ALL CAST( NULL AS DECIMAL ) AS col2, + COUNT( * ) FROM tab1 AS cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-7062
SELECT ALL CAST ( NULL AS REAL ) AS col2, + COUNT ( * ) FROM tab1 AS cor0
----
NULL
3

query I rowsort
SELECT ALL - + col1 * col2 * + + 64 - + - col0 FROM tab0 AS cor0
----
-13353
-243633
-6239

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7066
SELECT col2 DIV + 35 FROM tab1 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-7066
SELECT col2 / + 35 FROM tab1 AS cor0
----
1
1
2

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7068
SELECT col0 * + col1 DIV - + col1 AS col1 FROM tab0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-7068
SELECT col0 * + col1 / - + col1 AS col1 FROM tab0
----
-15
-87
-97

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7070
SELECT + CAST( NULL AS SIGNED ) AS col0 FROM tab1 WHERE NOT + + 47 IS NULL
----
NULL
NULL
NULL

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

query I rowsort
SELECT ALL - col2 * - col2 * - col1 AS col1 FROM tab1 AS cor0
----
-129024
-17405
-217328

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 99 * - + ( + + col0 ) col0 FROM tab2 AS cor0
----
-4554
-6336
-7425

query I rowsort
SELECT + 54 + + - 97 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ab0c314d2b589ccedb9a875beeb1f86a

query I rowsort
SELECT 42 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442

onlyif mysql # DIV for integer division: 
query II rowsort label-7075
SELECT ALL col1 + col1 * + col1 AS col2, + 42 DIV 66 * - - 36 AS col2 FROM tab2
----
2652
0
4556
0
6006
0

skipif mysql # not compatible
query II rowsort label-7075
SELECT ALL col1 + col1 * + col1 AS col2, + 42 / 66 * - - 36 AS col2 FROM tab2
----
2652
0
4556
0
6006
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7076
SELECT DISTINCT - + 14 + - 79 + + - COUNT( * ) * - 97 + - COUNT( * ) * - ( + 76 ) * + + 86 AS col2 FROM tab1 AS cor0
----
19806

skipif mysql # not compatible
query I rowsort label-7076
SELECT DISTINCT - + 14 + - 79 + + - COUNT ( * ) * - 97 + - COUNT ( * ) * - ( + 76 ) * + + 86 AS col2 FROM tab1 AS cor0
----
19806

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

query I rowsort
SELECT - 73 + + col1 FROM tab1 AS cor0
----
-26
-59
-68

query I rowsort
SELECT ALL 24 * 67 + - - 82 * - col1 * + col2 FROM tab1
----
-108600
-22582
-260464

query I rowsort
SELECT ALL - col2 * - - 44 * + 89 - - + col1 AS col1 FROM tab1
----
-231039
-266241
-375922

query I rowsort
SELECT DISTINCT - 83 - col2 AS col0 FROM tab0
----
-130
-182
-93

query I rowsort
SELECT - + col2 AS col0 FROM tab0 WHERE NULL IS NULL
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-7083
SELECT - MIN( + 76 ) AS col2 FROM tab1
----
-76

skipif mysql # not compatible
query I rowsort label-7083
SELECT - MIN ( + 76 ) AS col2 FROM tab1
----
-76

query I rowsort
SELECT DISTINCT col1 - - 2 FROM tab0
----
23
3
83

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7085
SELECT DISTINCT CAST( - + 7 AS SIGNED ) AS col0, - 23 FROM tab1
----
-7
-23

skipif mysql # not compatible
query II rowsort label-7085
SELECT DISTINCT CAST ( - + 7 AS INTEGER ) AS col0, - 23 FROM tab1
----
-7
-23

query I rowsort
SELECT + - col2 + - ( col1 ) AS col0 FROM tab2 WHERE + 63 - - col0 + col2 + - 11 IS NOT NULL
----
-117
-125
-74

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

query I rowsort
SELECT DISTINCT + + col1 + + col1 FROM tab0 AS cor0 WHERE NOT - col2 BETWEEN NULL AND - col2 / + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + 22 col0 FROM tab2 AS cor0
----
45
62
80

query I rowsort
SELECT DISTINCT - 3 + + 74 + - - col1 + - col0 + + col1 * 12 FROM tab2 AS cor0
----
1008
688
867

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 29 * + 35 col1 FROM tab1 AS cor0
----
1015
1015
1015

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7093
SELECT + 3 * CAST( - - col0 AS SIGNED ) FROM tab1
----
153
255
273

skipif mysql # not compatible
query I rowsort label-7093
SELECT + 3 * CAST ( - - col0 AS INTEGER ) FROM tab1
----
153
255
273

onlyif mysql # aggregate syntax: 
query II rowsort label-7094
SELECT + COUNT( * ) AS col0, COUNT( * ) AS col1 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9
9

skipif mysql # not compatible
query II rowsort label-7094
SELECT + COUNT ( * ) AS col0, COUNT ( * ) AS col1 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7095
SELECT + ( + - SUM( - col2 ) ) FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-7095
SELECT + ( + - SUM ( - col2 ) ) FROM tab1
----
223

query I rowsort
SELECT - - 32 FROM tab2 cor0
----
32
32
32

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7099
SELECT ALL - MIN( 46 ) col1 FROM tab2 cor0
----
-46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7099
SELECT ALL - MIN ( 46 ) col1 FROM tab2 cor0
----
-46

query I rowsort
SELECT ALL + col1 AS col0 FROM tab1 AS cor0 WHERE NOT 1 + 65 IS NULL
----
14
47
5

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

query I rowsort
SELECT DISTINCT - 46 * ( 43 ) + col0 + - col2 AS col2 FROM tab2 AS cor0
----
-1954
-1955
-1961

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

query I rowsort
SELECT DISTINCT + ( - + 61 ) + + - col1 FROM tab2 AS cor0
----
-112
-128
-138

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

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

query I rowsort
SELECT + ( - 92 ) + - 15 AS col1 FROM tab1 cor0
----
-107
-107
-107

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + + col1 + ( + + col1 ) col1 FROM tab0 cor0
----
129
177
99

query I rowsort
SELECT ALL + 81 + col1 * col0 * + col0 + 72 FROM tab2 AS cor0
----
108069
315545
377028

onlyif mysql # DIV for integer division: 
query I rowsort label-7110
SELECT ALL col0 DIV col1 + 98 AS col0 FROM tab1
----
101
115
99

skipif mysql # not compatible
query I rowsort label-7110
SELECT ALL col0 / col1 + 98 AS col0 FROM tab1
----
101
115
99

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7114
SELECT col2 / + 92 AS col0 FROM tab2 WHERE NOT NULL NOT IN ( - CAST( NULL AS SIGNED ) + col1 )
----

skipif mysql # not compatible
query I rowsort label-7114
SELECT col2 / + 92 AS col0 FROM tab2 WHERE NOT NULL NOT IN ( - CAST ( NULL AS INTEGER ) + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7115
SELECT - SUM( DISTINCT - 1 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-7115
SELECT - SUM ( DISTINCT - 1 ) FROM tab0
----
1

query I rowsort
SELECT - 52 - - col2 FROM tab2
----
-12
-29
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 43 * + col1 col0 FROM tab2
----
2193
2881
3311

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7118
SELECT - 59 DIV COUNT( * ) AS col2 FROM tab0
----
-19

skipif mysql # not compatible
query I rowsort label-7118
SELECT - 59 / COUNT ( * ) AS col2 FROM tab0
----
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-7119
SELECT col2 DIV - 74 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7119
SELECT col2 / - 74 FROM tab1
----
-1
0
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7121
SELECT col1 DIV 2 AS col2 FROM tab0
----
0
10
40

skipif mysql # not compatible
query I rowsort label-7121
SELECT col1 / 2 AS col2 FROM tab0
----
0
10
40

query I rowsort
SELECT + col2 * 86 AS col2 FROM tab1
----
5074
5848
8256

query I rowsort
SELECT DISTINCT 39 + 91 FROM tab2
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-7124
SELECT 63 + - COUNT( col2 ) col2 FROM tab2
----
60

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

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

skipif mysql # not compatible
query I rowsort label-7125
SELECT DISTINCT + COUNT ( * ) / 22 AS col0 FROM tab1
----
0

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

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

query I rowsort
SELECT 74 FROM tab1 WHERE NOT ( NULL ) IN ( 17 * - 8 )
----

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7129
SELECT DISTINCT col1 DIV - CAST( 65 * col0 AS SIGNED ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7129
SELECT DISTINCT col1 / - CAST ( 65 * col0 AS INTEGER ) AS col1 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7130
SELECT 12 * + CAST( col1 AS SIGNED ) AS col2 FROM tab0
----
12
252
972

skipif mysql # not compatible
query I rowsort label-7130
SELECT 12 * + CAST ( col1 AS INTEGER ) AS col2 FROM tab0
----
12
252
972

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7134
SELECT + SUM( - 25 ) + + 45 AS col1 FROM tab1
----
-30

skipif mysql # not compatible
query I rowsort label-7134
SELECT + SUM ( - 25 ) + + 45 AS col1 FROM tab1
----
-30

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

query I rowsort
SELECT ALL + col1 * 34 AS col2 FROM tab1 cor0
----
1598
170
476

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

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

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT NULL NOT IN ( 38 )
----

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7141
SELECT DISTINCT col2 + - col2 DIV - col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
10
198
47

skipif mysql # not compatible
query I rowsort label-7141
SELECT DISTINCT col2 + - col2 / - col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
10
198
47

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

query I rowsort
SELECT DISTINCT col1 FROM tab1 AS cor0 WHERE NOT - col0 BETWEEN + col1 / + 80 + col1 AND ( col2 )
----
14
47
5

query I rowsort
SELECT - col1 AS col0 FROM tab1 WHERE NOT col0 * col1 IS NULL
----
-14
-47
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-7145
SELECT - ( + col1 ) DIV + col2 FROM tab2 WHERE NOT - col1 IS NULL
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-7145
SELECT - ( + col1 ) / + col2 FROM tab2 WHERE NOT - col1 IS NULL
----
-1
-1
-2

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

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

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

query I rowsort
SELECT col0 AS col2 FROM tab1 AS cor0 WHERE NOT 4 = ( col0 * + col1 )
----
51
85
91

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

query I rowsort
SELECT col2 * + col1 + 55 AS col2 FROM tab2
----
1228
3135
3941

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7152
SELECT DISTINCT 53 * COUNT( * ) FROM tab2
----
159

skipif mysql # not compatible
query I rowsort label-7152
SELECT DISTINCT 53 * COUNT ( * ) FROM tab2
----
159

query I rowsort
SELECT + ( + ( - col1 ) ) + + 71 FROM tab2
----
-6
20
4

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

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

query I rowsort
SELECT col2 AS col1 FROM tab2 WHERE NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7157
SELECT SUM( 20 ) AS col1 FROM tab1 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-7157
SELECT SUM ( 20 ) AS col1 FROM tab1 AS cor0
----
60

query I rowsort
SELECT DISTINCT 18 FROM tab0 AS cor0 WHERE 4 <> - col2 - col0
----
18

query I rowsort
SELECT + col0 + + col0 AS col2 FROM tab2 AS cor0 WHERE col1 NOT BETWEEN ( NULL ) AND 68
----
128

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + + + 19 col1 FROM tab1 AS cor0
----
104
110
70

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

query I rowsort
SELECT DISTINCT col0 * col2 AS col2 FROM tab2 WHERE + 65 + - 79 NOT BETWEEN NULL AND col2 / col2
----

query I rowsort
SELECT ALL 72 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49

query IIIIII rowsort
SELECT * FROM tab2, tab1 cor0 WHERE NULL = NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7166
SELECT 37 * CAST( NULL AS DECIMAL ) * - 99 * 89 + - col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7166
SELECT 37 * CAST ( NULL AS REAL ) * - 99 * 89 + - col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + - 89 FROM tab1 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 924a74d31360fa4301c953b423a4710e

query I rowsort
SELECT ALL - 12 + - col2 + ( col0 ) AS col2 FROM tab1 AS cor0
----
-57
11
14

onlyif mysql # aggregate syntax: 
query I rowsort label-7169
SELECT ALL ( COUNT( * ) ) col2 FROM tab1 cor0 WHERE NOT ( NULL ) IN ( + 99 - 30 * - col1 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7169
SELECT ALL ( COUNT ( * ) ) col2 FROM tab1 cor0 WHERE NOT ( NULL ) IN ( + 99 - 30 * - col1 )
----
0

query I rowsort
SELECT + + col0 + + col1 - - 69 - col1 AS col2 FROM tab1 AS cor0
----
120
154
160

query I rowsort
SELECT + 57 + + 38 + + + 92 AS col2 FROM tab0 cor0
----
187
187
187

query I rowsort
SELECT DISTINCT - - col0 * + col1 AS col1 FROM tab1 AS cor0
----
425
4277
714

onlyif mysql # aggregate syntax: 
query I rowsort label-7173
SELECT + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE + col0 NOT IN ( - col0 )
----
3

skipif mysql # not compatible
query I rowsort label-7173
SELECT + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE + col0 NOT IN ( - col0 )
----
3

query I rowsort
SELECT + col0 * 80 * - col1 * - 57 FROM tab1 AS cor0
----
1938000
19503120
3255840

onlyif mysql # aggregate syntax: 
query I rowsort label-7175
SELECT ALL - COUNT( * ) * - 68 AS col1 FROM tab0 AS cor0
----
204

skipif mysql # not compatible
query I rowsort label-7175
SELECT ALL - COUNT ( * ) * - 68 AS col1 FROM tab0 AS cor0
----
204

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7177
SELECT DISTINCT - - col1 DIV - col0 + + col2 + - 36 * 84 AS col2 FROM tab2 cor0
----
-2966
-2985
-3002

skipif mysql # not compatible
query I rowsort label-7177
SELECT DISTINCT - - col1 / - col0 + + col2 + - 36 * 84 AS col2 FROM tab2 cor0
----
-2966
-2985
-3002

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 12 BETWEEN ( + 37 / col0 ) AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 43 FROM tab2 WHERE + col1 + + + col2 IS NOT NULL
----
43
43
43

onlyif mysql # DIV for integer division: 
query I rowsort label-7180
SELECT ALL + 12 + ( + 86 ) DIV + 60 AS col2 FROM tab1
----
13
13
13

skipif mysql # not compatible
query I rowsort label-7180
SELECT ALL + 12 + ( + 86 ) / + 60 AS col2 FROM tab1
----
13
13
13

onlyif mysql # aggregate syntax: 
query I rowsort label-7181
SELECT COUNT( * ) * + 77 - - - 12 * + 46 AS col2 FROM tab2
----
-321

skipif mysql # not compatible
query I rowsort label-7181
SELECT COUNT ( * ) * + 77 - - - 12 * + 46 AS col2 FROM tab2
----
-321

query I rowsort
SELECT DISTINCT + 79 + - col1 + col2 AS col1 FROM tab0
----
177
45
68

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

query III rowsort
SELECT ALL * FROM tab1 WHERE + col0 + col0 + - 59 * - col1 < col1
----

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( - 84 * + - 18 ) NOT BETWEEN 29 AND NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7188
SELECT DISTINCT + 78 * - COUNT( * ) FROM tab1
----
-234

skipif mysql # not compatible
query I rowsort label-7188
SELECT DISTINCT + 78 * - COUNT ( * ) FROM tab1
----
-234

query I rowsort
SELECT ALL - col0 * - col2 + - - 17 FROM tab0
----
722
887
9620

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 14 * - - 57 col0 FROM tab1 cor0
----
798
798
798

query I rowsort
SELECT ALL - 15 * 41 AS col0 FROM tab0 AS cor0 WHERE ( col2 ) NOT IN ( - 33 + - col0 )
----
-615
-615
-615

onlyif mysql # aggregate syntax: 
query I rowsort label-7193
SELECT DISTINCT - + SUM( + col2 ) * - COUNT( * ) * - MIN( DISTINCT + + col0 ) + + MIN( DISTINCT col2 ) AS col0 FROM tab2 AS cor0
----
-16675

skipif mysql # not compatible
query I rowsort label-7193
SELECT DISTINCT - + SUM ( + col2 ) * - COUNT ( * ) * - MIN ( DISTINCT + + col0 ) + + MIN ( DISTINCT col2 ) AS col0 FROM tab2 AS cor0
----
-16675

query I rowsort
SELECT DISTINCT - 5 + - - 0 + col2 AS col2 FROM tab2 AS cor0
----
18
35
53

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 89 + + + 32 - - - col2 > - - col0 / + 88 - 81
----

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

query II rowsort
SELECT ALL col0 AS col1, col2 - col2 AS col1 FROM tab2
----
46
0
64
0
75
0

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

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

query II rowsort
SELECT DISTINCT + 18, 51 AS col1 FROM tab0
----
18
51

query I rowsort
SELECT ALL - 66 * col2 * ( - col1 ) + - + col1 FROM tab2
----
203203
256409
77367

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

query I rowsort
SELECT ALL + - 77 + col2 * + col2 * + 52 FROM tab0 AS cor0
----
114791
509575
5123

query II rowsort
SELECT + col2 + 64, 7 AS col0 FROM tab0 AS cor0
----
111
7
163
7
74
7

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

query I rowsort
SELECT DISTINCT 17 - - 75 FROM tab0
----
92

onlyif mysql # aggregate syntax: 
query II rowsort label-7208
SELECT MIN( ALL - col0 ) AS col2, + 11 * COUNT( - - col2 ) AS col1 FROM tab0
----
-97
33

skipif mysql # not compatible
query II rowsort label-7208
SELECT MIN ( ALL - col0 ) AS col2, + 11 * COUNT ( - - col2 ) AS col1 FROM tab0
----
-97
33

query I rowsort
SELECT ALL - + 25 - + + 39 FROM tab0 AS cor0
----
-64
-64
-64

query I rowsort
SELECT ALL + 36 FROM tab2 AS cor0 WHERE NOT + 1 IN ( - col0 )
----
36
36
36

onlyif mysql # aggregate syntax: 
query I rowsort label-7211
SELECT DISTINCT - 0 * + MAX( - col1 ) * 77 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7211
SELECT DISTINCT - 0 * + MAX ( - col1 ) * 77 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - col2 AS col2 FROM tab1 AS cor0 WHERE col2 IN ( + ( - 90 ) * col1 + - - 1 )
----

query I rowsort
SELECT ALL - col0 AS col2 FROM tab1 AS cor0 WHERE - col2 <> + col2
----
-51
-85
-91

query I rowsort
SELECT ALL + col1 + + col0 + col0 + - + 72 FROM tab1 AS cor0
----
103
157
44

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7216
SELECT ALL + 82 DIV + COUNT( * ) + + 66 * + 87 * - ( + + 40 ) AS col0 FROM tab1 AS cor0
----
-229653

skipif mysql # not compatible
query I rowsort label-7216
SELECT ALL + 82 / + COUNT ( * ) + + 66 * + 87 * - ( + + 40 ) AS col0 FROM tab1 AS cor0
----
-229653

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

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

query I rowsort
SELECT col0 + + col2 * + 58 AS col0 FROM tab1 AS cor0
----
3507
4035
5619

query I rowsort
SELECT DISTINCT 16 * - - col1 FROM tab2 AS cor0
----
1072
1232
816

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

query II rowsort
SELECT 73 AS col1, + col0 * + 96 * - + 39 FROM tab1
----
73
-190944
73
-318240
73
-340704

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7225
SELECT DISTINCT 53 DIV - col0 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-7225
SELECT DISTINCT 53 / - col0 FROM tab1
----
-1
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7226
SELECT DISTINCT - - ( - col1 ) DIV - col1 AS col1 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7226
SELECT DISTINCT - - ( - col1 ) / - col1 AS col1 FROM tab1 AS cor0
----
1

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

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7230
SELECT DISTINCT + MAX ( + col0 ) col0 FROM tab1 AS cor0
----
91

query I rowsort
SELECT ALL + 58 FROM tab0, tab1 AS cor0 WHERE NULL IS NULL
----
9 values hashing to ef6e63aeed2581a168f07646d258f666

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab2 WHERE NOT NULL NOT IN ( + col1 )
----

query I rowsort
SELECT 37 / + 96 - - 0 FROM tab2 WHERE NOT - col2 NOT BETWEEN NULL AND ( NULL )
----

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7235
SELECT ALL + COUNT( * ) + - COUNT( * ) + + - 14 * + MIN( DISTINCT - ( - CAST( NULL AS DECIMAL ) ) ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7235
SELECT ALL + COUNT ( * ) + - COUNT ( * ) + + - 14 * + MIN ( DISTINCT - ( - CAST ( NULL AS REAL ) ) ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7236
SELECT ALL CAST( NULL AS DECIMAL ) / + 92 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7236
SELECT ALL CAST ( NULL AS REAL ) / + 92 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7237
SELECT DISTINCT - CAST( 95 AS SIGNED ) * 2 + col0 * - col0 AS col0 FROM tab1 AS cor0
----
-2791
-7415
-8471

skipif mysql # not compatible
query I rowsort label-7237
SELECT DISTINCT - CAST ( 95 AS INTEGER ) * 2 + col0 * - col0 AS col0 FROM tab1 AS cor0
----
-2791
-7415
-8471

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + col0 + - 52 col1 FROM tab1 AS cor0
----
13
38
86

query I rowsort
SELECT + col0 + + col0 * - 94 FROM tab1 AS cor0
----
-4743
-7905
-8463

query I rowsort
SELECT - - 23 + 5 AS col2 FROM tab0 AS cor0
----
28
28
28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + 80 - + + 2 col0 FROM tab1 AS cor0
----
125
83
92

query I rowsort
SELECT ALL - col1 + col2 + - col2 * 64 * + col0 * + 90 AS col2 FROM tab0 AS cor0
----
-4060834
-5011211
-55313182

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

query I rowsort
SELECT + - 69 + + + col2 FROM tab0 AS cor0
----
-22
-59
30

query I rowsort
SELECT col2 + + col1 + - 61 FROM tab1 AS cor0
----
3
49
54

query I rowsort
SELECT ALL col1 + 95 FROM tab1
----
100
109
142

onlyif mysql # DIV for integer division: 
query I rowsort label-7247
SELECT ALL + col0 DIV + + 11 AS col2 FROM tab0
----
1
7
8

skipif mysql # not compatible
query I rowsort label-7247
SELECT ALL + col0 / + + 11 AS col2 FROM tab0
----
1
7
8

query III rowsort
SELECT * FROM tab2 WHERE + 79 > + - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7249
SELECT * FROM tab0 WHERE + col2 + + col1 - + 56 * + col2 / + + 67 * - col2 * - CAST( NULL AS SIGNED ) / + col0 + + 65 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7249
SELECT * FROM tab0 WHERE + col2 + + col1 - + 56 * + col2 / + + 67 * - col2 * - CAST ( NULL AS INTEGER ) / + col0 + + 65 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL - 46, col2 AS col2 FROM tab1
----
-46
59
-46
68
-46
96

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7252
SELECT AVG ( + + col2 ) * - - COUNT( * ) / - 55 AS col0, 25 AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL
25

skipif mysql # not compatible
query II rowsort label-7252
SELECT AVG ( + + col2 ) * - - COUNT ( * ) / - 55 AS col0, 25 AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL
25

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

query II rowsort
SELECT - col1 AS col1, + 9 * + col2 FROM tab2 AS cor0
----
-51
207
-67
522
-77
360

onlyif mysql # aggregate syntax: 
query I rowsort label-7255
SELECT - MAX( DISTINCT + col1 ) + + 54 * + + ( - - 77 ) FROM tab0
----
4077

skipif mysql # not compatible
query I rowsort label-7255
SELECT - MAX ( DISTINCT + col1 ) + + 54 * + + ( - - 77 ) FROM tab0
----
4077

query I rowsort
SELECT - - col2 * - - col2 FROM tab2 AS cor0
----
1600
3364
529

query I rowsort
SELECT col2 * - col0 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-705
-870
-9603

onlyif mysql # aggregate syntax: 
query II rowsort label-7258
SELECT DISTINCT - SUM( - - 16 ), + 94 * + ( 89 ) - 75 AS col1 FROM tab0 AS cor0
----
-48
8291

skipif mysql # not compatible
query II rowsort label-7258
SELECT DISTINCT - SUM ( - - 16 ), + 94 * + ( 89 ) - 75 AS col1 FROM tab0 AS cor0
----
-48
8291

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7261
SELECT ALL - 19 + - COUNT ( * ) col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-22

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

query I rowsort
SELECT ALL col1 AS col1 FROM tab2 WHERE - + 92 <> - col1 * + ( - + 97 )
----
51
67
77

query I rowsort
SELECT - col1 * col1 * + col1 AS col1 FROM tab1
----
-103823
-125
-2744

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7267
SELECT + SUM( 34 ) * - - COUNT( * ) FROM tab1 WHERE NOT col2 NOT IN ( col1 * col0 * + col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7267
SELECT + SUM ( 34 ) * - - COUNT ( * ) FROM tab1 WHERE NOT col2 NOT IN ( col1 * col0 * + col0 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7268
SELECT DISTINCT 35 * - ( COUNT( * ) ) * + 11 FROM tab2 AS cor0
----
-1155

skipif mysql # not compatible
query I rowsort label-7268
SELECT DISTINCT 35 * - ( COUNT ( * ) ) * + 11 FROM tab2 AS cor0
----
-1155

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

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

query I rowsort
SELECT ALL - col1 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( - 77 - + - 39 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7271
SELECT MAX( DISTINCT - 40 ) + + + 76 * - 5, 42 col0 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-420
42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7271
SELECT MAX ( DISTINCT - 40 ) + + + 76 * - 5, 42 col0 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-420
42

query II rowsort
SELECT 68 * col1 * + col2 + - - 0 AS col2, - ( col1 ) AS col0 FROM tab0
----
14280
-21
258876
-81
6732
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7273
SELECT - ( - + COUNT( * ) ) * CAST( 52 AS SIGNED ) AS col2, COUNT( * ) col2 FROM tab1
----
156
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7273
SELECT - ( - + COUNT ( * ) ) * CAST ( 52 AS INTEGER ) AS col2, COUNT ( * ) col2 FROM tab1
----
156
3

query I rowsort
SELECT - col1 * - 36 AS col1 FROM tab1
----
1692
180
504

query II rowsort
SELECT col1, + 62 FROM tab0 WHERE NOT NULL IS NOT NULL
----
1
62
21
62
81
62

onlyif mysql # DIV for integer division: 
query I rowsort label-7276
SELECT DISTINCT - col0 DIV - col2 AS col0 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-7276
SELECT DISTINCT - col0 / - col2 AS col0 FROM tab1 AS cor0
----
0
1

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

query I rowsort
SELECT ALL 86 + + 61 FROM tab2 cor0
----
147
147
147

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7280
SELECT ALL + 86 + - ( - 87 ) AS col1, MAX( - col0 ) * + COUNT( * ) col2 FROM tab1 AS cor0
----
173
-153

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7280
SELECT ALL + 86 + - ( - 87 ) AS col1, MAX ( - col0 ) * + COUNT ( * ) col2 FROM tab1 AS cor0
----
173
-153

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7281
SELECT DISTINCT + 97 * - + col2 * - + CAST( + 14 AS SIGNED ) + col1 * - col2 col0 FROM tab2 AS cor0
----
30061
51240
74878

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7281
SELECT DISTINCT + 97 * - + col2 * - + CAST ( + 14 AS INTEGER ) + col1 * - col2 col0 FROM tab2 AS cor0
----
30061
51240
74878

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7283
SELECT + - ( - - CAST( 16 AS SIGNED ) ) FROM tab0 AS cor0 WHERE col1 NOT BETWEEN + - 26 * - 29 AND col1 * - col0 * - 84
----
-16
-16
-16

skipif mysql # not compatible
query I rowsort label-7283
SELECT + - ( - - CAST ( 16 AS INTEGER ) ) FROM tab0 AS cor0 WHERE col1 NOT BETWEEN + - 26 * - 29 AND col1 * - col0 * - 84
----
-16
-16
-16

query I rowsort
SELECT 84 * + + col1 AS col1 FROM tab0
----
1764
6804
84

query I rowsort
SELECT + 92 FROM tab1 WHERE + col2 <> + ( col2 ) + + col1 + col0 / 12 * + col0
----
92
92
92

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7287
SELECT - COUNT( * ) * + 7 * + + 7 + 36 + - 36 DIV 40 AS col0 FROM tab2
----
-111

skipif mysql # not compatible
query I rowsort label-7287
SELECT - COUNT ( * ) * + 7 * + + 7 + 36 + - 36 / 40 AS col0 FROM tab2
----
-111

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7289
SELECT ALL + col1 + 87 + - 4 DIV + - col2 - 84 AS col2 FROM tab1
----
17
50
8

skipif mysql # not compatible
query I rowsort label-7289
SELECT ALL + col1 + 87 + - 4 / + - col2 - 84 AS col2 FROM tab1
----
17
50
8

onlyif mysql # DIV for integer division: 
query II rowsort label-7290
SELECT - - 6 + - col1 AS col1, col2 DIV col0 FROM tab2 AS cor0
----
-45
0
-61
0
-71
0

skipif mysql # not compatible
query II rowsort label-7290
SELECT - - 6 + - col1 AS col1, col2 / col0 FROM tab2 AS cor0
----
-45
0
-61
0
-71
0

query I rowsort
SELECT ALL 51 AS col1 FROM tab2 AS cor0 WHERE NOT - 64 IS NULL
----
51
51
51

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7292
SELECT * FROM tab0 cor0 WHERE NULL NOT BETWEEN + col2 * - CAST( NULL AS SIGNED ) AND - 70
----

skipif mysql # not compatible
query III rowsort label-7292
SELECT * FROM tab0 cor0 WHERE NULL NOT BETWEEN + col2 * - CAST ( NULL AS INTEGER ) AND - 70
----

query I rowsort
SELECT + col0 * - col0 * + col0 AS col1 FROM tab0 AS cor0
----
-3375
-658503
-912673

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

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

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

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

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

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

query I rowsort
SELECT + - 18 * + + col1 FROM tab1 AS cor0
----
-252
-846
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7298
SELECT MAX( ALL 7 ) * - ( CAST( - MIN( + col1 ) AS SIGNED ) ) AS col0 FROM tab0
----
7

skipif mysql # not compatible
query I rowsort label-7298
SELECT MAX ( ALL 7 ) * - ( CAST ( - MIN ( + col1 ) AS INTEGER ) ) AS col0 FROM tab0
----
7

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

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

query I rowsort
SELECT + col1 + col0 AS col0 FROM tab2 WHERE NOT + 69 * - - col2 + + + 86 - col0 IS NULL
----
141
142
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7301
SELECT DISTINCT COUNT( * ) * + 83 FROM tab0
----
249

skipif mysql # not compatible
query I rowsort label-7301
SELECT DISTINCT COUNT ( * ) * + 83 FROM tab0
----
249

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - 26 col1 FROM tab0
----
-2262
-2522
-390

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

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

query II rowsort
SELECT ALL - col2, + 59 AS col0 FROM tab1
----
-59
59
-68
59
-96
59

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

query I rowsort
SELECT DISTINCT + col2 * + ( + + col2 ) - - - 31 FROM tab0 AS cor0
----
2178
69
9770

query I rowsort
SELECT + col1 FROM tab2 AS cor0 WHERE NOT NULL = + col1 * + col2 / 41 / ( ( - col1 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 74 * + - 77 col2 FROM tab0 AS cor0
----
5698
5698
5698

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

query I rowsort
SELECT + 8 * + + ( - - col2 ) AS col0 FROM tab2
----
184
320
464

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + + col1 <= + + 18
----
91
47
68

onlyif mysql # aggregate syntax: 
query I rowsort label-7312
SELECT ALL + + COUNT( * ) + - 31 * + + ( 63 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-1944

skipif mysql # not compatible
query I rowsort label-7312
SELECT ALL + + COUNT ( * ) + - 31 * + + ( 63 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-1944

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

query II rowsort
SELECT DISTINCT + col1, col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT - col0 + + - 17 AS col1 FROM tab1 cor0
----
-102
-108
-68

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7316
SELECT DISTINCT + ( col1 ) FROM tab2 cor0 WHERE + CAST( + col0 AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-7316
SELECT DISTINCT + ( col1 ) FROM tab2 cor0 WHERE + CAST ( + col0 AS REAL ) IS NULL
----

query I rowsort
SELECT + 62 + + col1 AS col0 FROM tab2 cor0
----
113
129
139

query I rowsort
SELECT + + 83 + - col2 + + col2 FROM tab1 AS cor0
----
83
83
83

query I rowsort
SELECT - col2 + + 25 AS col2 FROM tab1 AS cor0
----
-34
-43
-71

query I rowsort
SELECT - 38 + - - col2 AS col2 FROM tab2 AS cor0
----
-15
2
20

onlyif mysql # DIV for integer division: 
query I rowsort label-7321
SELECT ALL - + col0 + - col2 + - 16 DIV - - 68 AS col2 FROM tab2 cor0
----
-104
-133
-69

skipif mysql # not compatible
query I rowsort label-7321
SELECT ALL - + col0 + - col2 + - 16 / - - 68 AS col2 FROM tab2 cor0
----
-104
-133
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-7322
SELECT ALL COUNT( * ) - 79 FROM tab0 cor0 WHERE NULL <> NULL
----
-79

skipif mysql # not compatible
query I rowsort label-7322
SELECT ALL COUNT ( * ) - 79 FROM tab0 cor0 WHERE NULL <> NULL
----
-79

query II rowsort
SELECT DISTINCT + col1 AS col2, 43 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7324
SELECT DISTINCT - - COUNT( * ) + + + 11 * + 42 AS col0 FROM tab1 AS cor0
----
465

skipif mysql # not compatible
query I rowsort label-7324
SELECT DISTINCT - - COUNT ( * ) + + + 11 * + 42 AS col0 FROM tab1 AS cor0
----
465

onlyif mysql # aggregate syntax: 
query I rowsort label-7325
SELECT DISTINCT 94 - - COUNT( + col2 ) + 27 col1 FROM tab0
----
124

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7325
SELECT DISTINCT 94 - - COUNT ( + col2 ) + 27 col1 FROM tab0
----
124

query I rowsort
SELECT ALL 8 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57

onlyif mysql # aggregate syntax: 
query II rowsort label-7327
SELECT + 37 AS col1, + COUNT( * ) AS col0 FROM tab1
----
37
3

skipif mysql # not compatible
query II rowsort label-7327
SELECT + 37 AS col1, + COUNT ( * ) AS col0 FROM tab1
----
37
3

query I rowsort
SELECT - col1 * - col1 * + 39 FROM tab2
----
101439
175071
231231

query I rowsort
SELECT ALL - ( + - col1 ) AS col0 FROM tab0 AS cor0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7330
SELECT - 69 + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-60

skipif mysql # not compatible
query I rowsort label-7330
SELECT - 69 + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-7331
SELECT ALL - COUNT( + + col0 ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-7331
SELECT ALL - COUNT ( + + col0 ) AS col2 FROM tab0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7332
SELECT - CAST( - 41 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
41
41
41

skipif mysql # not compatible
query I rowsort label-7332
SELECT - CAST ( - 41 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
41
41
41

onlyif mysql # aggregate syntax: 
query I rowsort label-7333
SELECT COUNT( * ) * + + 14 + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-7333
SELECT COUNT ( * ) * + + 14 + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
39

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 / 19 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 * 49 * - + col2 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NOT - col0 + - - col1 NOT BETWEEN 37 AND col1 )
----
87
21
10
97
1
99

query I rowsort
SELECT - + 61 * + col1 * - + 10 AS col2 FROM tab2 WHERE NOT - col2 IS NULL
----
31110
40870
46970

query II rowsort
SELECT + 65, 29 AS col0 FROM tab0
----
65
29
65
29
65
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7339
SELECT - CAST( - 75 AS SIGNED ) AS col0 FROM tab1
----
75
75
75

skipif mysql # not compatible
query I rowsort label-7339
SELECT - CAST ( - 75 AS INTEGER ) AS col0 FROM tab1
----
75
75
75

query I rowsort
SELECT col0 * - ( - + col2 ) AS col1 FROM tab0
----
705
870
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-7341
SELECT MAX( 17 ) AS col0 FROM tab0
----
17

skipif mysql # not compatible
query I rowsort label-7341
SELECT MAX ( 17 ) AS col0 FROM tab0
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7342
SELECT - CAST( + ( - col2 ) AS SIGNED ) AS col2, 83 col2 FROM tab1
----
59
83
68
83
96
83

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7342
SELECT - CAST ( + ( - col2 ) AS INTEGER ) AS col2, 83 col2 FROM tab1
----
59
83
68
83
96
83

onlyif mysql # aggregate syntax: 
query I rowsort label-7343
SELECT DISTINCT COUNT( ALL col0 ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7343
SELECT DISTINCT COUNT ( ALL col0 ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7344
SELECT + COUNT( * ) AS col0 FROM tab1 WHERE + 87 * + 32 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7344
SELECT + COUNT ( * ) AS col0 FROM tab1 WHERE + 87 * + 32 IS NULL
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-7345
SELECT - + col0 AS col2, - 23 DIV + 98 FROM tab0 AS cor0
----
-15
0
-87
0
-97
0

skipif mysql # not compatible
query II rowsort label-7345
SELECT - + col0 AS col2, - 23 / + 98 FROM tab0 AS cor0
----
-15
0
-87
0
-97
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 + 32 NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT ALL - col1 + - - col0 FROM tab2 cor0
----
-13
-5
8

query I rowsort
SELECT DISTINCT - 61 + col0 AS col0 FROM tab1 AS cor0
----
-10
24
30

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab0 AS cor0 WHERE 14 BETWEEN NULL AND col1 + col2 + ( col0 ) * - col0 + + + col1
----

onlyif mysql # DIV for integer division: 
query II rowsort label-7350
SELECT col1 AS col2, - col2 DIV + 3 AS col1 FROM tab0 AS cor0
----
1
-33
21
-3
81
-15

skipif mysql # not compatible
query II rowsort label-7350
SELECT col1 AS col2, - col2 / + 3 AS col1 FROM tab0 AS cor0
----
1
-33
21
-3
81
-15

query I rowsort
SELECT - 12 - - col1 FROM tab2 AS cor0
----
39
55
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7352
SELECT + CAST( - + 84 AS SIGNED ) - col0 AS col2 FROM tab1 AS cor0
----
-135
-169
-175

skipif mysql # not compatible
query I rowsort label-7352
SELECT + CAST ( - + 84 AS INTEGER ) - col0 AS col2 FROM tab1 AS cor0
----
-135
-169
-175

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7353
SELECT 30 * COUNT( * ) + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7353
SELECT 30 * COUNT ( * ) + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query II rowsort
SELECT ALL 56 - - - col0 AS col2, + 86 FROM tab0
----
-31
86
-41
86
41
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 + col0 AS col2, col1 col2 FROM tab2
----
128
77
150
67
92
51

query I rowsort
SELECT DISTINCT + 6 - 28 AS col1 FROM tab2
----
-22

onlyif mysql # DIV for integer division: 
query I rowsort label-7357
SELECT col0 DIV - 5 + col1 FROM tab1
----
-12
29
4

skipif mysql # not compatible
query I rowsort label-7357
SELECT col0 / - 5 + col1 FROM tab1
----
-12
29
4

query I rowsort
SELECT + + 47 * - - col1 * ( - + 9 ) - - + col1 * + - col2 FROM tab2 AS cor0
----
-22746
-32227
-35651

query I rowsort
SELECT DISTINCT - - 57 AS col0 FROM tab1 AS cor0
----
57

query I rowsort
SELECT ALL + 10 AS col0 FROM tab1 cor0 WHERE NOT col1 + 64 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7361
SELECT + CAST( col0 AS SIGNED ) AS col0, + 56 AS col1 FROM tab1 AS cor0
----
51
56
85
56
91
56

skipif mysql # not compatible
query II rowsort label-7361
SELECT + CAST ( col0 AS INTEGER ) AS col0, + 56 AS col1 FROM tab1 AS cor0
----
51
56
85
56
91
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7362
SELECT COUNT( * ) DIV - ( COUNT( * ) ) AS col0 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-7362
SELECT COUNT ( * ) / - ( COUNT ( * ) ) AS col0 FROM tab2
----
-1

query II rowsort
SELECT ALL 2 AS col0, + col1 FROM tab0
----
2
1
2
21
2
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col1 FROM tab2 WHERE NOT - 53 * + col0 * - - 59 - col0 * col1 * + 88 * - 22 / 57 <= + + col2
----

query I rowsort
SELECT DISTINCT - col1 * - + 32 FROM tab1 AS cor0
----
1504
160
448

onlyif mysql # DIV for integer division: 
query I rowsort label-7366
SELECT ALL - - col2 DIV - col0 AS col2 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7366
SELECT ALL - - col2 / - col0 AS col2 FROM tab1 AS cor0
----
-1
0
0

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE ( NULL ) NOT BETWEEN + col1 * col2 * - + ( - - 64 ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 38 > NULL
----

query II rowsort
SELECT DISTINCT - col0 AS col1, col1 AS col0 FROM tab2 AS cor0
----
-46
51
-64
77
-75
67

onlyif mysql # aggregate syntax: 
query I rowsort label-7370
SELECT DISTINCT - SUM( - col1 ) + - 79 AS col1 FROM tab2 AS cor0
----
116

skipif mysql # not compatible
query I rowsort label-7370
SELECT DISTINCT - SUM ( - col1 ) + - 79 AS col1 FROM tab2 AS cor0
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-7371
SELECT ALL + MAX( col1 ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-7371
SELECT ALL + MAX ( col1 ) FROM tab2 AS cor0
----
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - col2 ) col1 FROM tab1 WHERE NOT + - col0 - - - 59 * + - 41 + - col0 BETWEEN - - 6 * + + col1 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL <> + + 27
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7374
SELECT - + COUNT( ALL CAST( NULL AS SIGNED ) ) + 35 + - - 38 col2 FROM tab2 AS cor0
----
73

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7374
SELECT - + COUNT ( ALL CAST ( NULL AS INTEGER ) ) + 35 + - - 38 col2 FROM tab2 AS cor0
----
73

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + ( - 59 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 75 + + col0 AS col0 FROM tab1 AS cor0
----
-24
10
16

query II rowsort
SELECT ALL + col1 + col1 * - 31, + col1 + - 38 * col2 AS col2 FROM tab0 cor0
----
-2430
-1705
-30
-3761
-630
-359

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 67 - 89 col0, col0 AS col0 FROM tab2
----
-156
46
-156
64
-156
75

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7379
SELECT + CAST( NULL AS DECIMAL ) AS col0, - col2 col1 FROM tab0
----
NULL
-10
NULL
-47
NULL
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7379
SELECT + CAST ( NULL AS REAL ) AS col0, - col2 col1 FROM tab0
----
NULL
-10
NULL
-47
NULL
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-7380
SELECT ALL + 40 - - SUM( DISTINCT - col0 ) AS col1 FROM tab1
----
-187

skipif mysql # not compatible
query I rowsort label-7380
SELECT ALL + 40 - - SUM ( DISTINCT - col0 ) AS col1 FROM tab1
----
-187

query I rowsort
SELECT 79 - + 5 FROM tab2
----
74
74
74

onlyif mysql # aggregate syntax: 
query II rowsort label-7382
SELECT + 6, COUNT( * ) AS col0 FROM tab0 WHERE NULL <> - col2
----
6
0

skipif mysql # not compatible
query II rowsort label-7382
SELECT + 6, COUNT ( * ) AS col0 FROM tab0 WHERE NULL <> - col2
----
6
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7383
SELECT ALL col1 * - CAST( NULL AS SIGNED ), + col1 FROM tab2
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-7383
SELECT ALL col1 * - CAST ( NULL AS INTEGER ), + col1 FROM tab2
----
NULL
51
NULL
67
NULL
77

onlyif mysql # DIV for integer division: 
query I rowsort label-7384
SELECT DISTINCT + ( - + col0 ) DIV col0 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-7384
SELECT DISTINCT + ( - + col0 ) / col0 FROM tab2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-7385
SELECT DISTINCT + 84 DIV col1 AS col2 FROM tab1 AS cor0
----
1
16
6

skipif mysql # not compatible
query I rowsort label-7385
SELECT DISTINCT + 84 / col1 AS col2 FROM tab1 AS cor0
----
1
16
6

query I rowsort
SELECT - 35 * + 14 FROM tab0 AS cor0
----
-490
-490
-490

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col1, col2 * col2 * 74 col1 FROM tab1 cor0
----
-14
681984
-47
342176
-5
257594

query I rowsort
SELECT 68 * - 14 * col1 FROM tab0 AS cor0
----
-19992
-77112
-952

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 IN ( - - col1, + 37, col0 + - 72 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7390
SELECT ( + - COUNT( * ) ) col1 FROM tab1
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7390
SELECT ( + - COUNT ( * ) ) col1 FROM tab1
----
-3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL >= col0 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + 78 + - col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7393
SELECT DISTINCT ( - + 2 ) DIV + col0 + + 71 * + + 18 * col1 FROM tab2 AS cor0
----
65178
85626
98406

skipif mysql # not compatible
query I rowsort label-7393
SELECT DISTINCT ( - + 2 ) / + col0 + + 71 * + + 18 * col1 FROM tab2 AS cor0
----
65178
85626
98406

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7394
SELECT DISTINCT - - CAST( NULL AS SIGNED ) / - - 97 + - 2 AS col2, 11 FROM tab2 AS cor0
----
NULL
11

skipif mysql # not compatible
query II rowsort label-7394
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) / - - 97 + - 2 AS col2, 11 FROM tab2 AS cor0
----
NULL
11

onlyif mysql # aggregate syntax: 
query I rowsort label-7395
SELECT - - ( 54 ) * + - COUNT( 58 ) * MAX( col0 ) col2 FROM tab0 AS cor0
----
-15714

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7395
SELECT - - ( 54 ) * + - COUNT ( 58 ) * MAX ( col0 ) col2 FROM tab0 AS cor0
----
-15714

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7396
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL IN ( + col2, + CAST( NULL AS DECIMAL ) * col1, 43 + ( - 0 ) + 34 - col1 / - 14, - col2 * 14 )
----

skipif mysql # not compatible
query III rowsort label-7396
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL IN ( + col2, + CAST ( NULL AS REAL ) * col1, 43 + ( - 0 ) + 34 - col1 / - 14, - col2 * 14 )
----

query II rowsort
SELECT DISTINCT - 19 AS col1, ( col0 ) FROM tab2
----
-19
46
-19
64
-19
75

onlyif mysql # DIV for integer division: 
query I rowsort label-7398
SELECT ( + 9 ) DIV - + 66 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7398
SELECT ( + 9 ) / - + 66 AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL - ( col2 ) + + 21 FROM tab0 WHERE NOT + + col0 BETWEEN NULL AND + 19
----
-78
11

onlyif mysql # aggregate syntax: 
query I rowsort label-7400
SELECT ALL COUNT( * ) * ( COUNT( DISTINCT - 92 ) ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7400
SELECT ALL COUNT ( * ) * ( COUNT ( DISTINCT - 92 ) ) AS col1 FROM tab1
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + - col2 col1 FROM tab0
----
-210
-3807
-99

query I rowsort
SELECT col1 - - col1 AS col2 FROM tab1 WHERE - col0 + col0 IS NULL
----

query II rowsort
SELECT DISTINCT + col0 AS col0, col1 FROM tab2
----
46
51
64
77
75
67

onlyif mysql # aggregate syntax: 
query I rowsort label-7404
SELECT ALL + COUNT( * ) + + COUNT( * ) AS col1 FROM tab2 cor0
----
6

skipif mysql # not compatible
query I rowsort label-7404
SELECT ALL + COUNT ( * ) + + COUNT ( * ) AS col1 FROM tab2 cor0
----
6

query I rowsort
SELECT DISTINCT col2 + + 37 AS col0 FROM tab1 AS cor0
----
105
133
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7406
SELECT ALL + + SUM( DISTINCT - + col2 ) FROM tab0 cor0
----
-156

skipif mysql # not compatible
query I rowsort label-7406
SELECT ALL + + SUM ( DISTINCT - + col2 ) FROM tab0 cor0
----
-156

query I rowsort
SELECT - - 83 + + col1 FROM tab0 cor0
----
104
164
84

query I rowsort
SELECT DISTINCT 58 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7409
SELECT + CAST( NULL AS SIGNED ) / - + col0 - - col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7409
SELECT + CAST ( NULL AS INTEGER ) / - + col0 - - col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7410
SELECT + 52 + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
49

skipif mysql # not compatible
query I rowsort label-7410
SELECT + 52 + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7411
SELECT DISTINCT - COUNT( * ) DIV + 89 + 78 FROM tab1 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-7411
SELECT DISTINCT - COUNT ( * ) / + 89 + 78 FROM tab1 AS cor0
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-7412
SELECT ALL 69 - - COUNT( * ) AS col2 FROM tab0
----
72

skipif mysql # not compatible
query I rowsort label-7412
SELECT ALL 69 - - COUNT ( * ) AS col2 FROM tab0
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7413
SELECT DISTINCT col2 * - CAST( - + 12 AS SIGNED ) + - ( col2 ) AS col1 FROM tab1
----
1056
649
748

skipif mysql # not compatible
query I rowsort label-7413
SELECT DISTINCT col2 * - CAST ( - + 12 AS INTEGER ) + - ( col2 ) AS col1 FROM tab1
----
1056
649
748

query II rowsort
SELECT col0, ( + col0 ) AS col0 FROM tab2
----
46
46
64
64
75
75

query I rowsort
SELECT DISTINCT + ( + + col1 ) * col0 AS col2 FROM tab2
----
2346
4928
5025

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + + 14 col1 FROM tab0 AS cor0
----
-1386
-140
-658

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 35 + + 4 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7418
SELECT DISTINCT - + MAX( col1 ) AS col0 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-7418
SELECT DISTINCT - + MAX ( col1 ) AS col0 FROM tab1 AS cor0
----
-47

query II rowsort
SELECT + col0 AS col2, col0 + col2 FROM tab0 AS cor0
----
15
62
87
97
97
196

onlyif mysql # aggregate syntax: 
query I rowsort label-7420
SELECT ALL SUM( DISTINCT - - col1 ) AS col0 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-7420
SELECT ALL SUM ( DISTINCT - - col1 ) AS col0 FROM tab0 AS cor0
----
103

query I rowsort
SELECT DISTINCT - col2 * + ( + - ( - + col2 ) ) AS col1 FROM tab2 AS cor0
----
-1600
-3364
-529

query I rowsort
SELECT ALL + + 37 * + 45 AS col0 FROM tab1 WHERE + 61 IS NULL
----

query I rowsort
SELECT ALL + ( + + 81 ) AS col1 FROM tab0 AS cor0
----
81
81
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7424
SELECT DISTINCT + + col0 + - 35 + - - col2 * - col0 AS col2 FROM tab0 AS cor0 WHERE CAST( + col2 AS SIGNED ) IS NOT NULL
----
-725
-818
-9541

skipif mysql # not compatible
query I rowsort label-7424
SELECT DISTINCT + + col0 + - 35 + - - col2 * - col0 AS col2 FROM tab0 AS cor0 WHERE CAST ( + col2 AS INTEGER ) IS NOT NULL
----
-725
-818
-9541

query I rowsort
SELECT DISTINCT + col2 + - 45 FROM tab0 AS cor0
----
-35
2
54

onlyif mysql # aggregate syntax: 
query I rowsort label-7426
SELECT ALL + MIN( + col2 ) FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-7426
SELECT ALL + MIN ( + col2 ) FROM tab0 AS cor0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-7427
SELECT COUNT( * ) * - COUNT( * ) + - - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-7427
SELECT COUNT ( * ) * - COUNT ( * ) + - - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-6

query I rowsort
SELECT - ( - - ( - col0 ) ) + - 18 FROM tab2 cor0
----
28
46
57

onlyif mysql # aggregate syntax: 
query I rowsort label-7429
SELECT DISTINCT + COUNT( - - col0 ) * - 76 FROM tab1 AS cor0
----
-228

skipif mysql # not compatible
query I rowsort label-7429
SELECT DISTINCT + COUNT ( - - col0 ) * - 76 FROM tab1 AS cor0
----
-228

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7430
SELECT ALL + CAST( NULL AS SIGNED ) * COUNT( * ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7430
SELECT ALL + CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - - 97 + + col1 + + - col2 FROM tab0 AS cor0
----
-1
108
131

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN + col1 AND col0
----

query I rowsort
SELECT DISTINCT 42 * col1 * col0 FROM tab0
----
4074
51030
76734

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7434
SELECT col1 col0, CAST( col2 AS SIGNED ) AS col2 FROM tab2 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7434
SELECT col1 col0, CAST ( col2 AS INTEGER ) AS col2 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7435
SELECT - ( - ( + col1 ) ) / + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7435
SELECT - ( - ( + col1 ) ) / + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - col2 + + - col0 FROM tab1 AS cor0
----
-144
-147
-159

onlyif mysql # aggregate syntax: 
query I rowsort label-7437
SELECT DISTINCT SUM( - 1 ) * COUNT( * ) * 38 + + + 83 FROM tab0 AS cor0
----
-259

skipif mysql # not compatible
query I rowsort label-7437
SELECT DISTINCT SUM ( - 1 ) * COUNT ( * ) * 38 + + + 83 FROM tab0 AS cor0
----
-259

query I rowsort
SELECT DISTINCT 98 + + + col1 FROM tab2 AS cor0
----
149
165
175

onlyif mysql # DIV for integer division: 
query I rowsort label-7439
SELECT ALL col1 DIV + + 63 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-7439
SELECT ALL col1 / + + 63 FROM tab2
----
0
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7440
SELECT ALL - + 87 + COUNT( * ) FROM tab2 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-7440
SELECT ALL - + 87 + COUNT ( * ) FROM tab2 AS cor0
----
-84

query I rowsort
SELECT ALL - ( - - col1 ) AS col1 FROM tab2 AS cor0
----
-51
-67
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 AS col2, - 64 col1 FROM tab0 cor0
----
1
-64
21
-64
81
-64

query III rowsort
SELECT * FROM tab2 WHERE NOT - + 11 + col2 + + 93 * + ( - col1 ) * + - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + ( - 32 ) * - 82 + + - col1 + - - ( + + 67 ) = + 52
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - 98 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7446
SELECT - MAX( 26 ) AS col0 FROM tab2
----
-26

skipif mysql # not compatible
query I rowsort label-7446
SELECT - MAX ( 26 ) AS col0 FROM tab2
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7447
SELECT DISTINCT - + CAST( NULL AS SIGNED ) FROM tab2 WHERE NULL NOT BETWEEN NULL AND - + ( col2 )
----

skipif mysql # not compatible
query I rowsort label-7447
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) FROM tab2 WHERE NULL NOT BETWEEN NULL AND - + ( col2 )
----

query I rowsort
SELECT DISTINCT ( + - 32 ) AS col2 FROM tab2
----
-32

query I rowsort
SELECT ALL - col1 AS col0 FROM tab2 WHERE - col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - - col2 col2 FROM tab2 AS cor0 WHERE NOT ( NOT ( col1 IS NOT NULL ) )
----
117
125
74

query I rowsort
SELECT ALL - col2 * + col0 * + col1 * 65 FROM tab1 AS cor0
----
-1629875
-18904340
-4455360

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND + + col0 * - ( + col1 ) * + 92
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7453
SELECT + + 91 + - COUNT( * ) FROM tab1 AS cor0 WHERE NOT + col2 + + - 50 = NULL
----
91

skipif mysql # not compatible
query I rowsort label-7453
SELECT + + 91 + - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT + col2 + + - 50 = NULL
----
91

query I rowsort
SELECT DISTINCT + + 26 AS col1 FROM tab1 cor0
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7455
SELECT DISTINCT 66 + - CAST( NULL AS SIGNED ) * - 66 + + COUNT( * ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7455
SELECT DISTINCT 66 + - CAST ( NULL AS INTEGER ) * - 66 + + COUNT ( * ) AS col0 FROM tab0
----
NULL

query I rowsort
SELECT + 5 * - 80 FROM tab2
----
-400
-400
-400

onlyif mysql # aggregate syntax: 
query I rowsort label-7457
SELECT 60 + + MIN( ALL - col1 ) FROM tab0
----
-21

skipif mysql # not compatible
query I rowsort label-7457
SELECT 60 + + MIN ( ALL - col1 ) FROM tab0
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-7458
SELECT ALL + MAX( DISTINCT - - 92 ) FROM tab1
----
92

skipif mysql # not compatible
query I rowsort label-7458
SELECT ALL + MAX ( DISTINCT - - 92 ) FROM tab1
----
92

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7459
SELECT DISTINCT CAST( NULL AS DECIMAL ) AS col1, - col2 * + - col1 + col1 FROM tab2
----
NULL
1224
NULL
3157
NULL
3953

skipif mysql # not compatible
query II rowsort label-7459
SELECT DISTINCT CAST ( NULL AS REAL ) AS col1, - col2 * + - col1 + col1 FROM tab2
----
NULL
1224
NULL
3157
NULL
3953

query I rowsort
SELECT 75 FROM tab1 AS cor0 WHERE ( NULL ) < NULL
----

query I rowsort
SELECT DISTINCT - AVG ( + - 38 ) AS col1 FROM tab2 AS cor0 WHERE NOT col0 <> - col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7462
SELECT ALL + 47 * - - 93 + + + 38 + + MIN( ALL col1 ) FROM tab0 AS cor0
----
4410

skipif mysql # not compatible
query I rowsort label-7462
SELECT ALL + 47 * - - 93 + + + 38 + + MIN ( ALL col1 ) FROM tab0 AS cor0
----
4410

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7463
SELECT ALL - COUNT( * ) + - + COUNT( * ) DIV + 6 AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7463
SELECT ALL - COUNT ( * ) + - + COUNT ( * ) / + 6 AS col0 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT DISTINCT col1 * + + 65 * col2 FROM tab2 AS cor0 WHERE NOT + col0 <= + col2 * 59 + col1
----

query I rowsort
SELECT DISTINCT + + 67 * - + 39 + - + col2 FROM tab0 AS cor0
----
-2623
-2660
-2712

onlyif mysql # DIV for integer division: 
query I rowsort label-7466
SELECT DISTINCT + + col2 DIV + col0 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-7466
SELECT DISTINCT + + col2 / + col0 FROM tab2 cor0
----
0

query I rowsort
SELECT + + col0 * col1 + - - col1 FROM tab1 AS cor0
----
430
4324
728

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7468
SELECT ALL + CAST( + ( + 90 ) AS SIGNED ) col1 FROM tab2 AS cor0
----
90
90
90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7468
SELECT ALL + CAST ( + ( + 90 ) AS INTEGER ) col1 FROM tab2 AS cor0
----
90
90
90

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 91 <> col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7470
SELECT - + ( COUNT( * ) ) col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7470
SELECT - + ( COUNT ( * ) ) col0 FROM tab2 AS cor0
----
-3

query II rowsort
SELECT col2 AS col0, + 11 * col0 FROM tab0
----
10
957
47
165
99
1067

onlyif mysql # DIV for integer division: 
query II rowsort label-7472
SELECT ALL col0 AS col0, + 15 DIV ( + col2 ) * col2 + col2 - - col2 FROM tab0
----
15
94
87
30
97
198

skipif mysql # not compatible
query II rowsort label-7472
SELECT ALL col0 AS col0, + 15 / ( + col2 ) * col2 + col2 - - col2 FROM tab0
----
15
94
87
30
97
198

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7473
SELECT - - col2 col1 FROM tab2 WHERE NOT - 25 * + - 61 * + - col2 - - CAST( NULL AS SIGNED ) - + - col1 IS NOT NULL
----
23
40
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7473
SELECT - - col2 col1 FROM tab2 WHERE NOT - 25 * + - 61 * + - col2 - - CAST ( NULL AS INTEGER ) - + - col1 IS NOT NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query II rowsort label-7474
SELECT + 1 AS col2, 75 + + - COUNT( * ) AS col1 FROM tab0
----
1
72

skipif mysql # not compatible
query II rowsort label-7474
SELECT + 1 AS col2, 75 + + - COUNT ( * ) AS col1 FROM tab0
----
1
72

query II rowsort
SELECT ALL col2, - 7 * + col2 + col1 AS col1 FROM tab1 AS cor0
----
59
-408
68
-429
96
-658

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 + + + col2 * + col0 col0 FROM tab1 AS cor0
----
4947
5100
6279

query II rowsort
SELECT + + col1 + - + col0 AS col2, + col1 AS col0 FROM tab2 AS cor0
----
-8
67
13
77
5
51

query I rowsort
SELECT - + 63 AS col2 FROM tab1 cor0 WHERE - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7479
SELECT - SUM( - col2 ) col1 FROM tab2
----
121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7479
SELECT - SUM ( - col2 ) col1 FROM tab2
----
121

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7480
SELECT ALL * FROM tab1 WHERE NOT - + 6 / - CAST( NULL AS SIGNED ) * col1 IS NULL
----

skipif mysql # not compatible
query III rowsort label-7480
SELECT ALL * FROM tab1 WHERE NOT - + 6 / - CAST ( NULL AS INTEGER ) * col1 IS NULL
----

query I rowsort
SELECT + ( - + col0 ) AS col0 FROM tab2
----
-46
-64
-75

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - ( + 91 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7483
SELECT DISTINCT CAST( + + 1 AS SIGNED ) col2 FROM tab2
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7483
SELECT DISTINCT CAST ( + + 1 AS INTEGER ) col2 FROM tab2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7484
SELECT MAX( DISTINCT + 41 ) FROM tab0
----
41

skipif mysql # not compatible
query I rowsort label-7484
SELECT MAX ( DISTINCT + 41 ) FROM tab0
----
41

query I rowsort
SELECT + ( col1 ) - - col0 * + + col2 AS col2 FROM tab2 AS cor0
----
1109
2637
4417

query I rowsort
SELECT DISTINCT - + 98 + + + col2 AS col0 FROM tab1 AS cor0
----
-2
-30
-39

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL = 16
----

query I rowsort
SELECT DISTINCT ( + 38 ) - 32 FROM tab2
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7489
SELECT ( col1 ) + + col1 + - - CAST( NULL AS SIGNED ) + + col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7489
SELECT ( col1 ) + + col1 + - - CAST ( NULL AS INTEGER ) + + col1 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE + ( + col0 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7491
SELECT COUNT( - col1 ) * - 47 AS col1 FROM tab2
----
-141

skipif mysql # not compatible
query I rowsort label-7491
SELECT COUNT ( - col1 ) * - 47 AS col1 FROM tab2
----
-141

query I rowsort
SELECT ALL 55 * + col0 FROM tab2
----
2530
3520
4125

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 + + 16 col0 FROM tab1 AS cor0 WHERE NOT + col1 * - + col0 * col2 >= - col1
----
101
107
67

onlyif mysql # DIV for integer division: 
query I rowsort label-7494
SELECT DISTINCT - 20 DIV - col1 FROM tab1 AS cor0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-7494
SELECT DISTINCT - 20 / - col1 FROM tab1 AS cor0
----
0
1
4

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 42 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col1 * 85 FROM tab2
----
4335
5695
6545

onlyif mysql # DIV for integer division: 
query I rowsort label-7497
SELECT ALL + col0 DIV + 22 col1 FROM tab1
----
2
3
4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7497
SELECT ALL + col0 / + 22 col1 FROM tab1
----
2
3
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 col0 FROM tab0 AS cor0 WHERE - 20 IS NULL
----

query I rowsort
SELECT DISTINCT - + ( 1 ) FROM tab2 AS cor0
----
-1

query I rowsort
SELECT DISTINCT + - col1 + + + col1 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7501
SELECT + COUNT( * ) * - SUM( 32 ) col2 FROM tab0
----
-288

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7501
SELECT + COUNT ( * ) * - SUM ( 32 ) col2 FROM tab0
----
-288

onlyif mysql # aggregate syntax: 
query II rowsort label-7502
SELECT 20 col0, MIN( DISTINCT + - 76 ) * - - COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
20
-684

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7502
SELECT 20 col0, MIN ( DISTINCT + - 76 ) * - - COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
20
-684

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT 65 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7504
SELECT + ( MIN( DISTINCT + 94 ) ), 67 AS col0 FROM tab1 AS cor0
----
94
67

skipif mysql # not compatible
query II rowsort label-7504
SELECT + ( MIN ( DISTINCT + 94 ) ), 67 AS col0 FROM tab1 AS cor0
----
94
67

query I rowsort
SELECT DISTINCT + 68 + col2 AS col0 FROM tab1 AS cor0
----
127
136
164

query I rowsort
SELECT ALL + col0 * ( 36 ) + - col0 FROM tab2 AS cor0
----
1610
2240
2625

onlyif mysql # aggregate syntax: 
query I rowsort label-7507
SELECT ALL SUM( + col2 ) FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-7507
SELECT ALL SUM ( + col2 ) FROM tab0 AS cor0
----
156

query I rowsort
SELECT + col0 - + 29 FROM tab1 cor0
----
22
56
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7509
SELECT DISTINCT CAST( NULL AS SIGNED ) * col0 + + + 36 * + + col1 AS col2 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7509
SELECT DISTINCT CAST ( NULL AS INTEGER ) * col0 + + + 36 * + + col1 AS col2 FROM tab1 cor0
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE 90 <= - col1 * + 18
----

query I rowsort
SELECT DISTINCT col1 * + 65 - col1 FROM tab2
----
3264
4288
4928

query I rowsort
SELECT + 25 + - col2 FROM tab1
----
-34
-43
-71

query I rowsort
SELECT - 91 + + col0 FROM tab2
----
-16
-27
-45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 56, + col0 + - 57 + + col2 col0 FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN NULL AND col0 * - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7515
SELECT - 2 AS col1 FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) IS NULL
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-7515
SELECT - 2 AS col1 FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) IS NULL
----
-2
-2
-2

query I rowsort
SELECT ALL - - col0 * - col2 * + 40 AS col2 FROM tab1 AS cor0
----
-195840
-200600
-247520

query I rowsort
SELECT - + 5 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 74665fbb47d5b17da011bca567195b21

query I rowsort
SELECT DISTINCT ( + col2 ) * + - col2 FROM tab0
----
-100
-2209
-9801

query I rowsort
SELECT + - ( + + 34 ) / + 32 FROM tab2 WHERE NOT NULL <= col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7520
SELECT + ( + COUNT( + - 64 ) ) AS col0, - 13 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9
-13

skipif mysql # not compatible
query II rowsort label-7520
SELECT + ( + COUNT ( + - 64 ) ) AS col0, - 13 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9
-13

query IIIIII rowsort
SELECT ALL * FROM tab1, tab0 AS cor0 WHERE NOT ( NULL ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7522
SELECT ALL MIN( DISTINCT - + 9 ) AS col1 FROM tab2 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-7522
SELECT ALL MIN ( DISTINCT - + 9 ) AS col1 FROM tab2 cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-7523
SELECT DISTINCT ( + 43 ) * + COUNT( * ) AS col2 FROM tab0 AS cor0
----
129

skipif mysql # not compatible
query I rowsort label-7523
SELECT DISTINCT ( + 43 ) * + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
129

query I rowsort
SELECT ALL + col0 * - ( 48 ) + col2 FROM tab0 AS cor0
----
-4166
-4557
-673

query I rowsort
SELECT - col1 FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----

query II rowsort
SELECT col0, col0 + col0 + - col0 AS col1 FROM tab2 AS cor0
----
46
46
64
64
75
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7527
SELECT 74 * - COUNT( * ) AS col1 FROM tab2
----
-222

skipif mysql # not compatible
query I rowsort label-7527
SELECT 74 * - COUNT ( * ) AS col1 FROM tab2
----
-222

query I rowsort
SELECT ALL + col1 * - + col1 AS col0 FROM tab1
----
-196
-2209
-25

query I rowsort
SELECT DISTINCT col0 * + 32 AS col2 FROM tab1
----
1632
2720
2912

query II rowsort
SELECT ALL col2 * + - col0 AS col0, + 90 * 88 AS col2 FROM tab1
----
-4896
7920
-5015
7920
-6188
7920

query I rowsort
SELECT + col1 * - + col0 * + 72 AS col0 FROM tab2
----
-168912
-354816
-361800

onlyif mysql # DIV for integer division: 
query I rowsort label-7532
SELECT ALL + col2 DIV 99 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7532
SELECT ALL + col2 / 99 AS col1 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7533
SELECT DISTINCT + col1 * 22 * + col2 DIV + ( + col2 ) AS col2 FROM tab1
----
1034
110
308

skipif mysql # not compatible
query I rowsort label-7533
SELECT DISTINCT + col1 * 22 * + col2 / + ( + col2 ) AS col2 FROM tab1
----
1034
110
308

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 + + 3 * + col1 NOT IN ( - col1, col0 )
----

query II rowsort
SELECT + - 13, col0 FROM tab1 AS cor0
----
-13
51
-13
85
-13
91

query I rowsort
SELECT + col0 FROM tab0 cor0 WHERE NOT ( - 72 ) IS NULL
----
15
87
97

query I rowsort
SELECT - col1 * 41 - - col1 AS col2 FROM tab0 AS cor0
----
-3240
-40
-840

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 + + ( - - 81 ) col1 FROM tab2 AS cor0
----
104
121
139

query II rowsort
SELECT + col2, ( 47 ) * - ( 43 ) + + - ( - ( - - col0 ) ) FROM tab0 AS cor0
----
10
-1934
47
-2006
99
-1924

query I rowsort
SELECT + col0 + - 41 AS col1 FROM tab2 AS cor0
----
23
34
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7541
SELECT ALL MIN( col0 ) * 70 + - + 29 FROM tab1 AS cor0 WHERE NULL IS NULL
----
3541

skipif mysql # not compatible
query I rowsort label-7541
SELECT ALL MIN ( col0 ) * 70 + - + 29 FROM tab1 AS cor0 WHERE NULL IS NULL
----
3541

query I rowsort
SELECT - col1 + + 54 + ( col1 ) FROM tab1 AS cor0
----
54
54
54

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 49 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7544
SELECT DISTINCT CAST( NULL AS SIGNED ) * col1 + - - 80 * 73 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7544
SELECT DISTINCT CAST ( NULL AS INTEGER ) * col1 + - - 80 * 73 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7545
SELECT ALL + - 46 + CAST( NULL AS SIGNED ) col1, + col2 * - ( + - col2 ) FROM tab2 AS cor0
----
NULL
1600
NULL
3364
NULL
529

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7545
SELECT ALL + - 46 + CAST ( NULL AS INTEGER ) col1, + col2 * - ( + - col2 ) FROM tab2 AS cor0
----
NULL
1600
NULL
3364
NULL
529

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col0 FROM tab2 WHERE NOT ( NOT NULL IS NULL )
----
51
67
77

query I rowsort
SELECT ALL 81 * + - 53 - - + col2 + + 62 * col0 AS col2 FROM tab0
----
-3316
1111
1820

onlyif mysql # DIV for integer division: 
query I rowsort label-7548
SELECT ALL + 1 DIV + ( - + col2 ) AS col0 FROM tab2 WHERE NOT - col2 * + col2 + + col1 + + + 34 * + 68 IS NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7548
SELECT ALL + 1 / + ( - + col2 ) AS col0 FROM tab2 WHERE NOT - col2 * + col2 + + col1 + + + 34 * + 68 IS NULL
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7549
SELECT - COUNT( * ) - - 95 AS col0 FROM tab1
----
92

skipif mysql # not compatible
query I rowsort label-7549
SELECT - COUNT ( * ) - - 95 AS col0 FROM tab1
----
92

query I rowsort
SELECT + col0 - - + col0 * - col1 AS col1 FROM tab1
----
-340
-4186
-663

onlyif mysql # aggregate syntax: 
query II rowsort label-7551
SELECT COUNT( * ) - + 28 + - COUNT( * ) col2, + COUNT( * ) FROM tab0
----
-28
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7551
SELECT COUNT ( * ) - + 28 + - COUNT ( * ) col2, + COUNT ( * ) FROM tab0
----
-28
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7552
SELECT DISTINCT SUM( ALL 67 ) col1 FROM tab1
----
201

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7552
SELECT DISTINCT SUM ( ALL 67 ) col1 FROM tab1
----
201

query I rowsort
SELECT col1 - col1 + 41 * col2 * - col2 FROM tab1
----
-142721
-189584
-377856

query I rowsort
SELECT ALL - col1 * - 69 - col1 FROM tab1
----
3196
340
952

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 - + col1 IS NOT NULL
----

query I rowsort
SELECT + col0 - + 34 FROM tab0 AS cor0
----
-19
53
63

onlyif mysql # DIV for integer division: 
query II rowsort label-7557
SELECT col0 DIV - col0 - + col2, - col2 + 89 + + col2 * - + col2 col2 FROM tab2 AS cor0
----
-24
-463
-41
-1551
-59
-3333

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7557
SELECT col0 / - col0 - + col2, - col2 + 89 + + col2 * - + col2 col2 FROM tab2 AS cor0
----
-24
-463
-41
-1551
-59
-3333

onlyif mysql # aggregate syntax: 
query I rowsort label-7558
SELECT DISTINCT - COUNT( * ) FROM tab2 cor0 WHERE NOT 58 + - + 95 * + col2 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-7558
SELECT DISTINCT - COUNT ( * ) FROM tab2 cor0 WHERE NOT 58 + - + 95 * + col2 IS NULL
----
-3

query I rowsort
SELECT ALL + 58 FROM tab1 AS cor0 WHERE NOT 13 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7560
SELECT ALL + COUNT( * ) + 72 * + SUM( + col1 ) AS col2 FROM tab2 WHERE NOT ( - col2 + col1 / + 7 ) NOT BETWEEN ( - col0 ) AND col1
----
14043

skipif mysql # not compatible
query I rowsort label-7560
SELECT ALL + COUNT ( * ) + 72 * + SUM ( + col1 ) AS col2 FROM tab2 WHERE NOT ( - col2 + col1 / + 7 ) NOT BETWEEN ( - col0 ) AND col1
----
14043

onlyif mysql # aggregate syntax: 
query I rowsort label-7561
SELECT SUM( ALL + col1 ) + - 65 * 35 AS col0 FROM tab2
----
-2080

skipif mysql # not compatible
query I rowsort label-7561
SELECT SUM ( ALL + col1 ) + - 65 * 35 AS col0 FROM tab2
----
-2080

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col0 col1 FROM tab2 WHERE ( NULL ) BETWEEN NULL AND + col0 + + 49 * col1
----

query III rowsort
SELECT * FROM tab1 WHERE 69 <= 49
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7564
SELECT ALL + COUNT( ALL - 59 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7564
SELECT ALL + COUNT ( ALL - 59 ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7565
SELECT - 22 - COUNT( * ) * + 79 AS col1 FROM tab2
----
-259

skipif mysql # not compatible
query I rowsort label-7565
SELECT - 22 - COUNT ( * ) * + 79 AS col1 FROM tab2
----
-259

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7566
SELECT DISTINCT COUNT( * ) / ( + CAST( NULL AS SIGNED ) ) FROM tab1 WHERE ( + col0 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7566
SELECT DISTINCT COUNT ( * ) / ( + CAST ( NULL AS INTEGER ) ) FROM tab1 WHERE ( + col0 ) IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7567
SELECT ALL 83 - + COUNT( * ) AS col2 FROM tab1
----
80

skipif mysql # not compatible
query I rowsort label-7567
SELECT ALL 83 - + COUNT ( * ) AS col2 FROM tab1
----
80

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 80 + col0 BETWEEN col2 + + col1 AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE - 3 * col0 + col1 * + 18 <= + 99 - + 48
----

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + 4 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( - 58 ) > 60
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7572
SELECT DISTINCT + 79 * + COUNT( * ) AS col2 FROM tab1
----
237

skipif mysql # not compatible
query I rowsort label-7572
SELECT DISTINCT + 79 * + COUNT ( * ) AS col2 FROM tab1
----
237

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col1 - - 50 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 14 * + col0 + col0 FROM tab0
----
1305
1455
225

query III rowsort
SELECT * FROM tab0 WHERE col2 * - ( - col2 * + 66 ) >= 5
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE col0 BETWEEN ( NULL ) AND ( - col0 - 41 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7577
SELECT + COUNT( - 76 ) AS col0 FROM tab2 WHERE NULL < ( col2 )
----
0

skipif mysql # not compatible
query I rowsort label-7577
SELECT + COUNT ( - 76 ) AS col0 FROM tab2 WHERE NULL < ( col2 )
----
0

query I rowsort
SELECT - 6 + - col2 AS col2 FROM tab0 WHERE NOT ( NULL ) <> - col1
----

query I rowsort
SELECT - col2 AS col0 FROM tab0 WHERE + col2 * 6 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7580
SELECT COUNT( ALL col2 ) col1 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7580
SELECT COUNT ( ALL col2 ) col1 FROM tab1
----
3

query I rowsort
SELECT col2 * 88 AS col1 FROM tab1 AS cor0 WHERE - 64 IS NOT NULL
----
5192
5984
8448

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7582
SELECT ALL COUNT( * ) DIV - MIN( ALL col0 ) + - SUM( DISTINCT 95 ) * 35 AS col1 FROM tab1 cor0
----
-3325

skipif mysql # not compatible
query I rowsort label-7582
SELECT ALL COUNT ( * ) / - MIN ( ALL col0 ) + - SUM ( DISTINCT 95 ) * 35 AS col1 FROM tab1 cor0
----
-3325

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7583
SELECT DISTINCT COUNT( * ) DIV - MIN( - ( + 66 ) ) AS col2 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-7583
SELECT DISTINCT COUNT ( * ) / - MIN ( - ( + 66 ) ) AS col2 FROM tab2 cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7584
SELECT COUNT( DISTINCT 46 ) + CAST( - COUNT( * ) AS SIGNED ) AS col1 FROM tab0
----
-2

skipif mysql # not compatible
query I rowsort label-7584
SELECT COUNT ( DISTINCT 46 ) + CAST ( - COUNT ( * ) AS INTEGER ) AS col1 FROM tab0
----
-2

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 28 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( 70 * + col2 + - 97 ) <= - 57
----

query I rowsort
SELECT ALL 66 + + col2 * col0 FROM tab2 AS cor0
----
1124
2626
4416

onlyif mysql # aggregate syntax: 
query I rowsort label-7589
SELECT DISTINCT - + MAX( + col1 ) + - 46 * 78 AS col2 FROM tab1 AS cor0
----
-3635

skipif mysql # not compatible
query I rowsort label-7589
SELECT DISTINCT - + MAX ( + col1 ) + - 46 * 78 AS col2 FROM tab1 AS cor0
----
-3635

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7590
SELECT ALL + + col1 * - ( - CAST( + 80 AS SIGNED ) ) + + 18 * ( + col1 * + 22 ) AS col0 FROM tab0 AS cor0
----
38556
476
9996

skipif mysql # not compatible
query I rowsort label-7590
SELECT ALL + + col1 * - ( - CAST ( + 80 AS INTEGER ) ) + + 18 * ( + col1 * + 22 ) AS col0 FROM tab0 AS cor0
----
38556
476
9996

query I rowsort
SELECT - col1 + + col0 * + 89 FROM tab0 AS cor0
----
1254
7722
8632

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) < 41 - col2 * + col0
----

query I rowsort
SELECT ALL 18 + + col2 * 43 AS col2 FROM tab0 AS cor0
----
2039
4275
448

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7594
SELECT ALL * FROM tab2 AS cor0 WHERE - col2 * + col2 IN ( CAST( - 82 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-7594
SELECT ALL * FROM tab2 AS cor0 WHERE - col2 * + col2 IN ( CAST ( - 82 AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT + + col2 - + 5 AS col1 FROM tab2 AS cor0
----
18
35
53

query I rowsort
SELECT ALL 26 - - col0 AS col1 FROM tab2 WHERE NULL NOT BETWEEN col2 AND ( NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE + 91 >= + col1 + - 50
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 * + col2 + - col1 AS col0 FROM tab1
----
1330
290
3149

onlyif mysql # aggregate syntax: 
query I rowsort label-7599
SELECT 51 * 69 + COUNT( * ) FROM tab1
----
3522

skipif mysql # not compatible
query I rowsort label-7599
SELECT 51 * 69 + COUNT ( * ) FROM tab1
----
3522

onlyif mysql # aggregate syntax: 
query I rowsort label-7600
SELECT - MIN( - - col1 ) + - COUNT( * ) * 47 col2 FROM tab2
----
-192

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7600
SELECT - MIN ( - - col1 ) + - COUNT ( * ) * 47 col2 FROM tab2
----
-192

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NULL ) BETWEEN + 32 AND NULL
----

query I rowsort
SELECT ALL col2 + + 48 + col1 AS col2 FROM tab1
----
112
158
163

query III rowsort
SELECT * FROM tab2 WHERE 3 * col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7604
SELECT + COUNT( * ) AS col1 FROM tab0 WHERE ( NULL ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-7604
SELECT + COUNT ( * ) AS col1 FROM tab0 WHERE ( NULL ) IS NULL
----
3

query III rowsort
SELECT ALL * FROM tab0 WHERE - col2 IN ( - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7606
SELECT ALL * FROM tab2 WHERE NOT ( ( + col1 ) ) IN ( - col2 * - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-7606
SELECT ALL * FROM tab2 WHERE NOT ( ( + col1 ) ) IN ( - col2 * - CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT 90 + - 40 FROM tab2
----
50
50
50

query I rowsort
SELECT DISTINCT + col0 - + - 72 AS col0 FROM tab0
----
159
169
87

onlyif mysql # aggregate syntax: 
query I rowsort label-7609
SELECT MAX( - 67 ) AS col0 FROM tab2 cor0 WHERE NOT NULL = ( + col1 + 5 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7609
SELECT MAX ( - 67 ) AS col0 FROM tab2 cor0 WHERE NOT NULL = ( + col1 + 5 )
----
NULL

query I rowsort
SELECT - ( + 87 ) AS col0 FROM tab2 AS cor0
----
-87
-87
-87

query I rowsort
SELECT ALL 86 * col1 FROM tab0 AS cor0 WHERE 96 + - col2 > ( - col1 )
----
1806
6966

onlyif mysql # aggregate syntax: 
query I rowsort label-7612
SELECT ALL + COUNT( 63 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7612
SELECT ALL + COUNT ( 63 ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7613
SELECT COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) = - col1 * 62
----
0

skipif mysql # not compatible
query I rowsort label-7613
SELECT COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) = - col1 * 62
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7614
SELECT + COUNT( * ) + 37 FROM tab1 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-7614
SELECT + COUNT ( * ) + 37 FROM tab1 AS cor0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-7615
SELECT - 9 + + MAX( + 19 ) FROM tab2 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-7615
SELECT - 9 + + MAX ( + 19 ) FROM tab2 AS cor0
----
10

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND col2
----

query I rowsort
SELECT + + col0 + + 6 FROM tab1 AS cor0
----
57
91
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7618
SELECT COUNT( * ) col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7618
SELECT COUNT ( * ) col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7619
SELECT - ( + MIN( + col2 ) ) + MAX( - CAST( NULL AS SIGNED ) ) * + COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7619
SELECT - ( + MIN ( + col2 ) ) + MAX ( - CAST ( NULL AS INTEGER ) ) * + COUNT ( * ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL - 70 * + + ( + col1 ) AS col2 FROM tab1
----
-3290
-350
-980

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7621
SELECT ALL - col1 + 15 FROM tab0 WHERE NOT col2 <= - col0 + CAST( NULL AS SIGNED ) / 25
----

skipif mysql # not compatible
query I rowsort label-7621
SELECT ALL - col1 + 15 FROM tab0 WHERE NOT col2 <= - col0 + CAST ( NULL AS INTEGER ) / 25
----

query I rowsort
SELECT DISTINCT 96 * col1 AS col1 FROM tab0 WHERE NOT col0 IS NULL
----
2016
7776
96

query I rowsort
SELECT DISTINCT col2 * col2 FROM tab2 WHERE NOT col1 = - 3
----
1600
3364
529

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 30 * 26 >= - 1 * + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7625
SELECT - COUNT( * ) + - - 85 AS col1 FROM tab0
----
82

skipif mysql # not compatible
query I rowsort label-7625
SELECT - COUNT ( * ) + - - 85 AS col1 FROM tab0
----
82

query I rowsort
SELECT col0 + - - 44 FROM tab2 AS cor0
----
108
119
90

onlyif mysql # aggregate syntax: 
query I rowsort label-7627
SELECT - COUNT( * ) + + 69 AS col2 FROM tab2 cor0
----
66

skipif mysql # not compatible
query I rowsort label-7627
SELECT - COUNT ( * ) + + 69 AS col2 FROM tab2 cor0
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7628
SELECT + CAST( + col0 AS SIGNED ) * + - 14 AS col0 FROM tab2 AS cor0
----
-1050
-644
-896

skipif mysql # not compatible
query I rowsort label-7628
SELECT + CAST ( + col0 AS INTEGER ) * + - 14 AS col0 FROM tab2 AS cor0
----
-1050
-644
-896

onlyif mysql # aggregate syntax: 
query I rowsort label-7629
SELECT - MAX( DISTINCT ( col1 ) ) * 11 AS col2 FROM tab0 AS cor0 WHERE 25 = - ( + + 32 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7629
SELECT - MAX ( DISTINCT ( col1 ) ) * 11 AS col2 FROM tab0 AS cor0 WHERE 25 = - ( + + 32 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7630
SELECT - SUM( DISTINCT + + 73 ) FROM tab0 AS cor0
----
-73

skipif mysql # not compatible
query I rowsort label-7630
SELECT - SUM ( DISTINCT + + 73 ) FROM tab0 AS cor0
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-7631
SELECT DISTINCT COUNT( * ) * - SUM( + col1 ) FROM tab0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7631
SELECT DISTINCT COUNT ( * ) * - SUM ( + col1 ) FROM tab0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT 49 AS col0 FROM tab1 WHERE - col2 IS NOT NULL
----
49
49
49

query III rowsort
SELECT * FROM tab0 WHERE NOT ( 39 * - 0 + + col2 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7634
SELECT ALL SUM( 74 ) AS col1 FROM tab2 WHERE ( ( + - col0 ) ) IS NOT NULL
----
222

skipif mysql # not compatible
query I rowsort label-7634
SELECT ALL SUM ( 74 ) AS col1 FROM tab2 WHERE ( ( + - col0 ) ) IS NOT NULL
----
222

onlyif mysql # aggregate syntax: 
query I rowsort label-7635
SELECT COUNT( * ) * - + COUNT( * ) * + - COUNT( * ) FROM tab0
----
27

skipif mysql # not compatible
query I rowsort label-7635
SELECT COUNT ( * ) * - + COUNT ( * ) * + - COUNT ( * ) FROM tab0
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7636
SELECT CAST( + 55 AS SIGNED ) FROM tab1 AS cor0
----
55
55
55

skipif mysql # not compatible
query I rowsort label-7636
SELECT CAST ( + 55 AS INTEGER ) FROM tab1 AS cor0
----
55
55
55

query II rowsort
SELECT col2, + 94 AS col1 FROM tab1 AS cor0
----
59
94
68
94
96
94

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( NULL ) BETWEEN NULL AND + col0
----

query I rowsort
SELECT ALL + - col1 * - + col0 + - col2 FROM tab2 AS cor0 WHERE NOT + col0 * + ( - + 39 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7640
SELECT ALL + ( + 70 ) DIV - 24 - - 44 - - col1 * 41 AS col2 FROM tab0 AS cor0
----
3363
83
903

skipif mysql # not compatible
query I rowsort label-7640
SELECT ALL + ( + 70 ) / - 24 - - 44 - - col1 * 41 AS col2 FROM tab0 AS cor0
----
3363
83
903

query II rowsort
SELECT + col0 * + 21 AS col0, + col2 AS col1 FROM tab1
----
1071
96
1785
59
1911
68

query I rowsort
SELECT 48 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b

onlyif mysql # aggregate syntax: 
query I rowsort label-7643
SELECT - SUM( + 78 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7643
SELECT - SUM ( + 78 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) >= NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + ( + - col1 ) col1 FROM tab2 AS cor0
----
-141
-142
-97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7645
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 * + + CAST( NULL AS SIGNED ) + + 79 > - + 75
----

skipif mysql # not compatible
query III rowsort label-7645
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 * + + CAST ( NULL AS INTEGER ) + + 79 > - + 75
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 / - ( 42 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col2 - + 41 FROM tab1 AS cor0 WHERE ( + col2 IS NOT NULL )
----
-100
-109
-137

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL > col1 * + col2
----

query I rowsort
SELECT - - 61 FROM tab0 cor0 WHERE NOT + col0 IS NULL
----
61
61
61

query II rowsort
SELECT ALL + col2, col2 + col2 FROM tab0
----
10
20
47
94
99
198

query II rowsort
SELECT - col0, - col1 * - col1 AS col0 FROM tab0
----
-15
6561
-87
441
-97
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7652
SELECT ALL 38 col1, col1 * 47 * CAST( - 55 AS SIGNED ) col1 FROM tab1
----
38
-121495
38
-12925
38
-36190

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7652
SELECT ALL 38 col1, col1 * 47 * CAST ( - 55 AS INTEGER ) col1 FROM tab1
----
38
-121495
38
-12925
38
-36190

query II rowsort
SELECT + col2 AS col0, 90 FROM tab0 cor0
----
10
90
47
90
99
90

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab2 WHERE NULL BETWEEN col0 AND - ( - - 75 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7655
SELECT DISTINCT - - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9

skipif mysql # not compatible
query I rowsort label-7655
SELECT DISTINCT - - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9

query IIIIII rowsort
SELECT ALL * FROM tab1, tab1 AS cor0 WHERE NOT ( NULL ) <= - 9 + + - 68
----

query I rowsort
SELECT 42 + col0 AS col0 FROM tab0 AS cor0 WHERE + 32 / col0 IN ( + 52, + ( - col2 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7658
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) > - + col2 / - - CAST( NULL AS SIGNED ) / + - 89
----

skipif mysql # not compatible
query III rowsort label-7658
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) > - + col2 / - - CAST ( NULL AS INTEGER ) / + - 89
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( + 28 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 + - 39 AS col1 FROM tab0 AS cor0
----
-18
-38
42

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7661
SELECT DISTINCT CAST( + - col0 AS DECIMAL ) + + col1 FROM tab2 AS cor0 WHERE NOT - col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7661
SELECT DISTINCT CAST ( + - col0 AS REAL ) + + col1 FROM tab2 AS cor0 WHERE NOT - col1 IS NOT NULL
----

query I rowsort
SELECT - - col2 * + - col2 + 36 AS col0 FROM tab2 cor0
----
-1564
-3328
-493

onlyif mysql # DIV for integer division: 
query II rowsort label-7663
SELECT ALL + col2 DIV col1 AS col2, - 25 * - 32 AS col0 FROM tab1 AS cor0
----
1
800
11
800
6
800

skipif mysql # not compatible
query II rowsort label-7663
SELECT ALL + col2 / col1 AS col2, - 25 * - 32 AS col0 FROM tab1 AS cor0
----
1
800
11
800
6
800

onlyif mysql # aggregate syntax: 
query I rowsort label-7664
SELECT - 83 * + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
249

skipif mysql # not compatible
query I rowsort label-7664
SELECT - 83 * + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
249

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + + 6 col1 FROM tab1 AS cor0
----
354
408
576

query II rowsort
SELECT - col1 AS col2, + 69 FROM tab0
----
-1
69
-21
69
-81
69

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7667
SELECT DISTINCT * FROM tab0 WHERE CAST( - 1 AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7667
SELECT DISTINCT * FROM tab0 WHERE CAST ( - 1 AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col1 * + 58 AS col2 FROM tab0
----
1218
4698
58

query I rowsort
SELECT DISTINCT 45 * + ( ( col0 ) ) FROM tab2
----
2070
2880
3375

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 * 32 < - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7671
SELECT 36 * - ( + COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
-108

skipif mysql # not compatible
query I rowsort label-7671
SELECT 36 * - ( + COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
-108

query I rowsort
SELECT 13 AS col2 FROM tab0 AS cor0 WHERE NOT ( NOT col1 IS NULL )
----

query II rowsort
SELECT - - col1 AS col0, - 49 * + col0 AS col1 FROM tab0 AS cor0
----
1
-4753
21
-4263
81
-735

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7674
SELECT ALL + 43, ( CAST( 97 AS SIGNED ) ) AS col1 FROM tab1
----
43
97
43
97
43
97

skipif mysql # not compatible
query II rowsort label-7674
SELECT ALL + 43, ( CAST ( 97 AS INTEGER ) ) AS col1 FROM tab1
----
43
97
43
97
43
97

query I rowsort
SELECT + - col1 FROM tab1 AS cor0 WHERE NOT + col2 / + + col2 NOT BETWEEN - col0 AND NULL
----

query I rowsort
SELECT DISTINCT - 17 * - col0 + + - col1 FROM tab1 AS cor0
----
1440
1500
853

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 43 col0, col2 FROM tab2 cor0
----
-43
23
-43
40
-43
58

query I rowsort
SELECT ALL col0 + - + col2 AS col0 FROM tab1 AS cor0
----
-45
23
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7679
SELECT col0 + + col0 * ( + CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7679
SELECT col0 + + col0 * ( + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7680
SELECT DISTINCT + + col1 + col1 + + col2 - - col1, CAST( - - col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
102
1
290
81
73
21

skipif mysql # not compatible
query II rowsort label-7680
SELECT DISTINCT + + col1 + col1 + + col2 - - col1, CAST ( - - col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
102
1
290
81
73
21

query I rowsort
SELECT - - col1 AS col0 FROM tab0 AS cor0 WHERE 17 IN ( + 60, col1 )
----

query I rowsort
SELECT - - col0 + 62 * 96 AS col1 FROM tab2 AS cor0
----
5998
6016
6027

onlyif mysql # aggregate syntax: 
query I rowsort label-7683
SELECT DISTINCT + COUNT( * ) + 42 AS col2 FROM tab0 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-7683
SELECT DISTINCT + COUNT ( * ) + 42 AS col2 FROM tab0 AS cor0
----
45

query I rowsort
SELECT + ( + col1 ) + 3 FROM tab0 AS cor0
----
24
4
84

onlyif mysql # aggregate syntax: 
query I rowsort label-7685
SELECT ALL 78 + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-7685
SELECT ALL 78 + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
75

query I rowsort
SELECT 73 + + - col2 FROM tab2 AS cor0
----
15
33
50

query I rowsort
SELECT ALL - col0 * col1 + + - 15 AS col1 FROM tab1 AS cor0
----
-4292
-440
-729

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7688
SELECT ALL - - 88 AS col0, - 81 * + - col1 * - - col0 * + col2 + col2 + 92 - - 5 * - + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
88
NULL
88
NULL
88
NULL

skipif mysql # not compatible
query II rowsort label-7688
SELECT ALL - - 88 AS col0, - 81 * + - col1 * - - col0 * + col2 + col2 + 92 - - 5 * - + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
88
NULL
88
NULL
88
NULL

query I rowsort
SELECT DISTINCT 64 + - col1 AS col2 FROM tab1
----
17
50
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7690
SELECT + col2 AS col1 FROM tab0 WHERE - 7 + + + col0 * CAST( - col0 AS SIGNED ) * ( - col1 ) + - 1 + + + col1 + col2 * + - col0 / col2 * col0 = ( - col2 + 30 )
----

skipif mysql # not compatible
query I rowsort label-7690
SELECT + col2 AS col1 FROM tab0 WHERE - 7 + + + col0 * CAST ( - col0 AS INTEGER ) * ( - col1 ) + - 1 + + + col1 + col2 * + - col0 / col2 * col0 = ( - col2 + 30 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7691
SELECT + COUNT( * ) * - - MIN( ALL + col0 ) FROM tab0
----
45

skipif mysql # not compatible
query I rowsort label-7691
SELECT + COUNT ( * ) * - - MIN ( ALL + col0 ) FROM tab0
----
45

query III rowsort
SELECT * FROM tab1 WHERE ( col0 <= ( - col2 * - col0 + + + col2 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7693
SELECT ALL + COUNT( * ) * 55 AS col2 FROM tab0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7693
SELECT ALL + COUNT ( * ) * 55 AS col2 FROM tab0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7694
SELECT + ( + + COUNT( ALL col2 ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7694
SELECT + ( + + COUNT ( ALL col2 ) ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7695
SELECT ALL 0 * COUNT( DISTINCT + - 62 ) + - COUNT( * ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-7695
SELECT ALL 0 * COUNT ( DISTINCT + - 62 ) + - COUNT ( * ) FROM tab1
----
-3

query III rowsort
SELECT * FROM tab2 WHERE 62 * - - col2 + - - col2 <= ( + col0 )
----

query I rowsort
SELECT ALL + 64 * 94 AS col1 FROM tab1
----
6016
6016
6016

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7698
SELECT + + ( - CAST( NULL AS SIGNED ) ) * + 0 + col1 FROM tab0 AS cor0 WHERE NOT ( NULL IS NOT NULL )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7698
SELECT + + ( - CAST ( NULL AS INTEGER ) ) * + 0 + col1 FROM tab0 AS cor0 WHERE NOT ( NULL IS NOT NULL )
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 col2 FROM tab2 cor0 WHERE NOT - col1 + - col2 BETWEEN NULL AND - - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7700
SELECT + + CAST( NULL AS SIGNED ) * - col0 * - - col0 + - 51 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7700
SELECT + + CAST ( NULL AS INTEGER ) * - col0 * - - col0 + - 51 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL > - col2 * - col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7702
SELECT - col0 * col1 DIV + col1 AS col2 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-7702
SELECT - col0 * col1 / + col1 AS col2 FROM tab2 AS cor0
----
-46
-64
-75

query I rowsort
SELECT + col0 * + + 34 * - - 36 - col2 + col0 AS col0 FROM tab0 AS cor0
----
106565
118726
18328

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NOT ( - - col2 ) NOT BETWEEN NULL AND NULL )
----

query I rowsort
SELECT DISTINCT - ( - 18 ) AS col1 FROM tab0 cor0
----
18

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN NULL AND - 58
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7707
SELECT DISTINCT - col2 DIV col0 AS col0 FROM tab0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-7707
SELECT DISTINCT - col2 / col0 AS col0 FROM tab0
----
-1
-3
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7708
SELECT MIN( DISTINCT 32 ) AS col0, + SUM( DISTINCT + 12 ) FROM tab1
----
32
12

skipif mysql # not compatible
query II rowsort label-7708
SELECT MIN ( DISTINCT 32 ) AS col0, + SUM ( DISTINCT + 12 ) FROM tab1
----
32
12

onlyif mysql # aggregate syntax: 
query I rowsort label-7709
SELECT MAX( - - 22 ) AS col0 FROM tab1
----
22

skipif mysql # not compatible
query I rowsort label-7709
SELECT MAX ( - - 22 ) AS col0 FROM tab1
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7710
SELECT - CAST( NULL AS SIGNED ) * - SUM( - - 80 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7710
SELECT - CAST ( NULL AS INTEGER ) * - SUM ( - - 80 ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7711
SELECT + CAST( - AVG ( - 75 ) AS SIGNED ) AS col0 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-7711
SELECT + CAST ( - AVG ( - 75 ) AS INTEGER ) AS col0 FROM tab2
----
75

query II rowsort
SELECT + 0, - col2 AS col1 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
0
-10
0
-47
0
-99

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN - ( - 99 ) AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7714
SELECT 24 + - - 20 + - 45 + - col2 DIV + - ( - ( - col0 ) ) FROM tab1 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-7714
SELECT 24 + - - 20 + - 45 + - col2 / + - ( - ( - col0 ) ) FROM tab1 AS cor0
----
-1
-1
0

query I rowsort
SELECT DISTINCT 89 * + + col2 AS col1 FROM tab2
----
2047
3560
5162

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7716
SELECT col2 * + 22 * - CAST( NULL AS SIGNED ) * - - ( - - 39 ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7716
SELECT col2 * + 22 * - CAST ( NULL AS INTEGER ) * - - ( - - 39 ) AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7717
SELECT COUNT( + - ( col1 ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7717
SELECT COUNT ( + - ( col1 ) ) FROM tab1
----
3

query I rowsort
SELECT col0 * + 52 AS col0 FROM tab0
----
4524
5044
780

onlyif mysql # DIV for integer division: 
query I rowsort label-7719
SELECT ALL col1 DIV 36 col2 FROM tab1
----
0
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7719
SELECT ALL col1 / 36 col2 FROM tab1
----
0
0
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7720
SELECT ALL + - CAST( - COUNT( * ) AS SIGNED ) + - 57 DIV + + CAST( 2 AS SIGNED ), + CAST( NULL AS SIGNED ) col0 FROM tab2 AS cor0
----
-25
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7720
SELECT ALL + - CAST ( - COUNT ( * ) AS INTEGER ) + - 57 / + + CAST ( 2 AS INTEGER ), + CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0
----
-25
NULL

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE + col0 IS NULL
----

query I rowsort
SELECT DISTINCT ( + 62 ) * col2 + - col1 FROM tab2 cor0
----
1375
2403
3529

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 col2 FROM tab0 AS cor0 WHERE 18 IS NULL
----

query I rowsort
SELECT DISTINCT - 1 * - 42 + + 95 AS col0 FROM tab2 AS cor0
----
137

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) <= + 79
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7726
SELECT ALL 29 DIV col1 FROM tab0
----
0
1
29

skipif mysql # not compatible
query I rowsort label-7726
SELECT ALL 29 / col1 FROM tab0
----
0
1
29

query I rowsort
SELECT col0 FROM tab2 WHERE - - col1 + + 72 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7728
SELECT DISTINCT col1 DIV + ( col1 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-7728
SELECT DISTINCT col1 / + ( col1 ) FROM tab2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7729
SELECT + - MAX( DISTINCT - col1 ) AS col0 FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
1

skipif mysql # not compatible
query I rowsort label-7729
SELECT + - MAX ( DISTINCT - col1 ) AS col0 FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
1

query II rowsort
SELECT DISTINCT + 28, col1 * + 6 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
28
306
28
402
28
462

query II rowsort
SELECT DISTINCT + col1, - col2 * - 18 AS col0 FROM tab2 AS cor0
----
51
414
67
1044
77
720

onlyif mysql # aggregate syntax: 
query I rowsort label-7732
SELECT - MIN( DISTINCT + 23 ) AS col0 FROM tab1 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-7732
SELECT - MIN ( DISTINCT + 23 ) AS col0 FROM tab1 AS cor0
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7733
SELECT DISTINCT CAST( - + col0 AS SIGNED ) - + 35 AS col1 FROM tab2
----
-110
-81
-99

skipif mysql # not compatible
query I rowsort label-7733
SELECT DISTINCT CAST ( - + col0 AS INTEGER ) - + 35 AS col1 FROM tab2
----
-110
-81
-99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7734
SELECT DISTINCT - 30 - + + 69, + 38 * ( + - CAST( + col2 AS SIGNED ) ) col2 FROM tab2
----
-99
-1520
-99
-2204
-99
-874

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7734
SELECT DISTINCT - 30 - + + 69, + 38 * ( + - CAST ( + col2 AS INTEGER ) ) col2 FROM tab2
----
-99
-1520
-99
-2204
-99
-874

onlyif mysql # aggregate syntax: 
query I rowsort label-7735
SELECT ALL - ( - + COUNT( * ) ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7735
SELECT ALL - ( - + COUNT ( * ) ) AS col0 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7736
SELECT DISTINCT COUNT( * ) * - 74 col1 FROM tab0
----
-222

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7736
SELECT DISTINCT COUNT ( * ) * - 74 col1 FROM tab0
----
-222

onlyif mysql # DIV for integer division: 
query I rowsort label-7737
SELECT - 34 * + col0 + - + 58 + + - ( + 82 ) DIV + - 5 AS col1 FROM tab2 AS cor0
----
-1606
-2218
-2592

skipif mysql # not compatible
query I rowsort label-7737
SELECT - 34 * + col0 + - + 58 + + - ( + 82 ) / + - 5 AS col1 FROM tab2 AS cor0
----
-1606
-2218
-2592

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 BETWEEN - col2 * - - 76 - col0 AND - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-7739
SELECT + ( + 84 ) DIV + 80 + - col1 DIV + - col2 FROM tab2 AS cor0
----
2
2
3

skipif mysql # not compatible
query I rowsort label-7739
SELECT + ( + 84 ) / + 80 + - col1 / + - col2 FROM tab2 AS cor0
----
2
2
3

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7740
SELECT + + CAST( - 46 AS DECIMAL ) * + col2 - - + col2 + 1 * CAST( NULL AS SIGNED ) col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7740
SELECT + + CAST ( - 46 AS REAL ) * + col2 - - + col2 + 1 * CAST ( NULL AS INTEGER ) col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - ( col2 ), - ( + col2 ) col1 FROM tab1 cor0
----
-59
-59
-68
-68
-96
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-7742
SELECT ALL + ( COUNT( col1 ) ) * + COUNT( * ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-7742
SELECT ALL + ( COUNT ( col1 ) ) * + COUNT ( * ) FROM tab0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7743
SELECT col1 * 99 * col1 AS col1 FROM tab1 WHERE NOT ( 43 * - col0 - - col2 + 11 + - CAST( + - col0 AS SIGNED ) ) IS NULL
----
19404
218691
2475

skipif mysql # not compatible
query I rowsort label-7743
SELECT col1 * 99 * col1 AS col1 FROM tab1 WHERE NOT ( 43 * - col0 - - col2 + 11 + - CAST ( + - col0 AS INTEGER ) ) IS NULL
----
19404
218691
2475

query I rowsort
SELECT DISTINCT col1 FROM tab2 AS cor0 WHERE col1 NOT BETWEEN + col0 * + col2 + + ( - - 12 ) AND - 33
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7745
SELECT + COUNT( ALL - + col1 ) AS col2 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-7745
SELECT + COUNT ( ALL - + col1 ) AS col2 FROM tab2 cor0
----
3

query II rowsort
SELECT DISTINCT col1, col0 * 84 FROM tab0 AS cor0
----
1
8148
21
7308
81
1260

query I rowsort
SELECT + - col1 * - col1 * + 61 + + col0 FROM tab1 AS cor0
----
12007
134840
1610

query I rowsort
SELECT + 73 * + 90 FROM tab1 AS cor0
----
6570
6570
6570

query I rowsort
SELECT - 91 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + col0 * - - col1 + + 65 + col2 AS col1 FROM tab2 AS cor0
----
2434
5033
5148

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col1 NOT IN ( - + col0 )
----

query I rowsort
SELECT + ( - 30 ) + - 99 + 75 FROM tab1 AS cor0
----
-54
-54
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7753
SELECT DISTINCT + + col2 + + CAST( NULL AS SIGNED ) - + col2 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7753
SELECT DISTINCT + + col2 + + CAST ( NULL AS INTEGER ) - + col2 AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7754
SELECT ALL + ( SUM( - + col2 ) ) * 16 + 15 + + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-2484

skipif mysql # not compatible
query I rowsort label-7754
SELECT ALL + ( SUM ( - + col2 ) ) * 16 + 15 + + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-2484

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7755
SELECT ALL + MAX( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7755
SELECT ALL + MAX ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7756
SELECT - CAST( - + 83 AS SIGNED ) DIV col2 AS col2, - col0 * CAST( + col0 AS SIGNED ) FROM tab2
----
1
-5625
2
-4096
3
-2116

skipif mysql # not compatible
query II rowsort label-7756
SELECT - CAST ( - + 83 AS INTEGER ) / col2 AS col2, - col0 * CAST ( + col0 AS INTEGER ) FROM tab2
----
1
-5625
2
-4096
3
-2116

query III rowsort
SELECT * FROM tab2 WHERE + - col0 * + col0 * 58 * - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-7758
SELECT 4 * + col2 * 34 * - col0 DIV + col0 AS col0 FROM tab0
----
-13464
-1360
-6392

skipif mysql # not compatible
query I rowsort label-7758
SELECT 4 * + col2 * 34 * - col0 / + col0 AS col0 FROM tab0
----
-13464
-1360
-6392

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 53 * + col1 - col1 col2 FROM tab0
----
1092
4212
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 44 - - - col1 col0 FROM tab2
----
-111
-121
-95

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL = col2 / + col1
----

query I rowsort
SELECT + col0 - 60 FROM tab0 AS cor0
----
-45
27
37

query I rowsort
SELECT - 61 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 51f53697966a79d306a4570537cd91a1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7764
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col2 FROM tab1 WHERE + - 99 * - col1 + - - col2 / + col1 <= 96 + + CAST( - CAST( 36 AS SIGNED ) AS SIGNED ) + - ( + - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-7764
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 WHERE + - 99 * - col1 + - - col2 / + col1 <= 96 + + CAST ( - CAST ( 36 AS INTEGER ) AS INTEGER ) + - ( + - CAST ( NULL AS INTEGER ) )
----

query II rowsort
SELECT + + col1 AS col1, 44 AS col0 FROM tab2 AS cor0
----
51
44
67
44
77
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7766
SELECT DISTINCT - 40 AS col2, - COUNT( * ) DIV - - 49 AS col1 FROM tab0 AS cor0
----
-40
0

skipif mysql # not compatible
query II rowsort label-7766
SELECT DISTINCT - 40 AS col2, - COUNT ( * ) / - - 49 AS col1 FROM tab0 AS cor0
----
-40
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7767
SELECT ALL - - col0 AS col2, - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-7767
SELECT ALL - - col0 AS col2, - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

query II rowsort
SELECT DISTINCT + + col2 AS col2, - col1 FROM tab1 AS cor0
----
59
-5
68
-47
96
-14

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + col1 * - col2 ) NOT BETWEEN 76 AND + + 51
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7770
SELECT ALL - CAST( NULL AS SIGNED ), - CAST( col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
-59
NULL
-68
NULL
-96

skipif mysql # not compatible
query II rowsort label-7770
SELECT ALL - CAST ( NULL AS INTEGER ), - CAST ( col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
-59
NULL
-68
NULL
-96

query I rowsort
SELECT - col0 FROM tab0 AS cor0 WHERE NOT 41 NOT IN ( + + col0, 45, + 85 / 63 + 97, + col2 + - - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7772
SELECT + COUNT( * ) col1 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7772
SELECT + COUNT ( * ) col1 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7773
SELECT - CAST( NULL AS SIGNED ) * col2 * + col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7773
SELECT - CAST ( NULL AS INTEGER ) * col2 * + col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col2 * + 15 + - col0 AS col2 FROM tab1 WHERE NOT ( - + 3 ) IS NOT NULL
----

query I rowsort
SELECT - 49 * + + col0 FROM tab2
----
-2254
-3136
-3675

onlyif mysql # aggregate syntax: 
query I rowsort label-7776
SELECT ALL + MIN( ALL - + col0 ) AS col0 FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-7776
SELECT ALL + MIN ( ALL - + col0 ) AS col0 FROM tab1
----
-91

query I rowsort
SELECT ALL + ( 28 ) * + ( - col2 ) AS col1 FROM tab2 WHERE NULL <> ( + ( - col2 ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7778
SELECT 82 DIV + COUNT( * ) AS col0 FROM tab2
----
27

skipif mysql # not compatible
query I rowsort label-7778
SELECT 82 / + COUNT ( * ) AS col0 FROM tab2
----
27

query II rowsort
SELECT ALL ( - col2 ), - col2 FROM tab1
----
-59
-59
-68
-68
-96
-96

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + ( ( - 56 ) ) + + - col1 <> NULL
----

query I rowsort
SELECT - col1 * + col0 + + col2 * + + col0 + - 1 - + col2 AS col1 FROM tab1 AS cor0
----
1842
4085
4530

onlyif mysql # aggregate syntax: 
query II rowsort label-7782
SELECT ALL 15 AS col2, COUNT( col0 ) * - - ( COUNT( * ) ) AS col1 FROM tab2
----
15
9

skipif mysql # not compatible
query II rowsort label-7782
SELECT ALL 15 AS col2, COUNT ( col0 ) * - - ( COUNT ( * ) ) AS col1 FROM tab2
----
15
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + 16, + 27 col1 FROM tab1 WHERE - + 0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7784
SELECT - 81 * + COUNT( * ) AS col0 FROM tab0
----
-243

skipif mysql # not compatible
query I rowsort label-7784
SELECT - 81 * + COUNT ( * ) AS col0 FROM tab0
----
-243

query I rowsort
SELECT ALL col1 + + 1 + + col0 - 2 * - - col0 AS col2 FROM tab2 cor0
----
-7
14
6

onlyif mysql # DIV for integer division: 
query I rowsort label-7786
SELECT - 8 - - 56 * + col0 DIV col0 AS col2 FROM tab2 AS cor0
----
48
48
48

skipif mysql # not compatible
query I rowsort label-7786
SELECT - 8 - - 56 * + col0 / col0 AS col2 FROM tab2 AS cor0
----
48
48
48

query I rowsort
SELECT + col1 + + + 68 AS col0 FROM tab2 AS cor0
----
119
135
145

query I rowsort
SELECT ALL + - 54 + + col1 - + col0 + - col1 FROM tab1 AS cor0
----
-105
-139
-145

query I rowsort
SELECT - 55 * + - col0 + + - col0 * col2 AS col2 FROM tab2 cor0
----
-225
1472
960

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 - - col1 - - col2 col1 FROM tab0
----
101
209
52

onlyif mysql # aggregate syntax: 
query I rowsort label-7791
SELECT - 36 + - MIN( DISTINCT - col1 ) FROM tab0
----
45

skipif mysql # not compatible
query I rowsort label-7791
SELECT - 36 + - MIN ( DISTINCT - col1 ) FROM tab0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-7792
SELECT + 45 * ( - 80 ) + - 0 * - COUNT( * ) FROM tab2
----
-3600

skipif mysql # not compatible
query I rowsort label-7792
SELECT + 45 * ( - 80 ) + - 0 * - COUNT ( * ) FROM tab2
----
-3600

onlyif mysql # aggregate syntax: 
query I rowsort label-7793
SELECT ALL + COUNT( * ) + + COUNT( * ) FROM tab0 WHERE + col1 + - col2 IS NOT NULL
----
6

skipif mysql # not compatible
query I rowsort label-7793
SELECT ALL + COUNT ( * ) + + COUNT ( * ) FROM tab0 WHERE + col1 + - col2 IS NOT NULL
----
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 64 - - - col1 col0 FROM tab0
----
-145
-65
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-7795
SELECT - 3 DIV - 21 + - col0 FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-7795
SELECT - 3 / - 21 + - col0 FROM tab1
----
-51
-85
-91

query II rowsort
SELECT DISTINCT - ( + - col0 ) * - ( + col2 ), + col2 FROM tab1
----
-4896
96
-5015
59
-6188
68

query II rowsort
SELECT ALL - col0 * - col1 AS col2, col2 * - 9 * + col2 FROM tab0
----
1215
-19881
1827
-900
97
-88209

query II rowsort
SELECT - 78 * - - col1 AS col1, - col1 AS col1 FROM tab0 AS cor0
----
-1638
-21
-6318
-81
-78
-1

query I rowsort
SELECT ALL - + col1 * - 72 FROM tab1 AS cor0
----
1008
3384
360

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7800
SELECT MAX( col0 ) DIV COUNT( * ) + - - COUNT( * ) + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-7800
SELECT MAX ( col0 ) / COUNT ( * ) + - - COUNT ( * ) + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
38

query I rowsort
SELECT ALL + ( - col1 ) + + + 22 + + col2 AS col2 FROM tab0 cor0 WHERE NULL NOT BETWEEN col1 AND + 13 + - 74 + + 39
----

query I rowsort
SELECT ALL - AVG ( col2 ) FROM tab0 AS cor0 WHERE NOT ( - col1 ) + - - 45 + - + 65 < col2 * - ( + - col2 )
----
NULL

query I rowsort
SELECT DISTINCT + 50 FROM tab0 cor0
----
50

onlyif mysql # aggregate syntax: 
query II rowsort label-7804
SELECT DISTINCT - - ( SUM( DISTINCT + col1 ) ) col2, + 83 FROM tab2 AS cor0
----
195
83

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7804
SELECT DISTINCT - - ( SUM ( DISTINCT + col1 ) ) col2, + 83 FROM tab2 AS cor0
----
195
83

query I rowsort
SELECT DISTINCT + - 4 AS col1 FROM tab1 AS cor0
----
-4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + ( + col2 ) col2 FROM tab0 AS cor0
----
705
870
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-7807
SELECT DISTINCT + MIN( + + col1 ) FROM tab0 AS cor0 WHERE NOT + col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7807
SELECT DISTINCT + MIN ( + + col1 ) FROM tab0 AS cor0 WHERE NOT + col1 IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7808
SELECT DISTINCT col2 DIV - 36 FROM tab1 AS cor0
----
-1
-2

skipif mysql # not compatible
query I rowsort label-7808
SELECT DISTINCT col2 / - 36 FROM tab1 AS cor0
----
-1
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7809
SELECT ALL - MIN( ALL + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7809
SELECT ALL - MIN ( ALL + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 5 + - 93 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL >= - + 59
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col1 / - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7813
SELECT - MAX( - col0 ) AS col0 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-7813
SELECT - MAX ( - col0 ) AS col0 FROM tab0
----
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 26, - 61 col0 FROM tab0 WHERE col0 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + - col0 = ( - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-7816
SELECT 3, + COUNT( * ) FROM tab2
----
3
3

skipif mysql # not compatible
query II rowsort label-7816
SELECT 3, + COUNT ( * ) FROM tab2
----
3
3

query I rowsort
SELECT DISTINCT - 96 + + 47 AS col0 FROM tab0 AS cor0
----
-49

query I rowsort
SELECT ALL ( col0 ) + - - 42 AS col1 FROM tab2 cor0
----
106
117
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7819
SELECT DISTINCT CAST( NULL AS SIGNED ) + + 56 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-7819
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + 56 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

query I rowsort
SELECT + + 35 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

onlyif mysql # aggregate syntax: 
query I rowsort label-7821
SELECT COUNT( * ) + + 41 FROM tab2
----
44

skipif mysql # not compatible
query I rowsort label-7821
SELECT COUNT ( * ) + + 41 FROM tab2
----
44

query I rowsort
SELECT + ( + - ( col2 ) ) + col1 FROM tab0
----
-98
11
34

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab1 AS cor0 WHERE NOT + col1 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 85 * 28 <= + 73
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7825
SELECT DISTINCT + - 8 * col1 AS col1, col0 + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
-168
NULL
-648
NULL
-8
NULL

skipif mysql # not compatible
query II rowsort label-7825
SELECT DISTINCT + - 8 * col1 AS col1, col0 + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
-168
NULL
-648
NULL
-8
NULL

query II rowsort
SELECT - ( - col0 ) + + col2, + col1 AS col1 FROM tab2 AS cor0
----
104
77
133
67
69
51

onlyif mysql # aggregate syntax: 
query I rowsort label-7827
SELECT + + COUNT( * ) * - SUM( + + 37 ) AS col1 FROM tab1 AS cor0
----
-333

skipif mysql # not compatible
query I rowsort label-7827
SELECT + + COUNT ( * ) * - SUM ( + + 37 ) AS col1 FROM tab1 AS cor0
----
-333

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7828
SELECT ALL + col2 + + CAST( + 21 AS SIGNED ) AS col0 FROM tab1 cor0
----
117
80
89

skipif mysql # not compatible
query I rowsort label-7828
SELECT ALL + col2 + + CAST ( + 21 AS INTEGER ) AS col0 FROM tab1 cor0
----
117
80
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7829
SELECT DISTINCT + CAST( NULL AS SIGNED ) - + - col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7829
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - + - col1 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT 4 - + col1 + col1 AS col2 FROM tab2 WHERE col1 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL BETWEEN + - col1 AND + col1
----

query II rowsort
SELECT col1, - col0 * + col2 * - + col0 + + ( - col1 ) AS col0 FROM tab0 AS cor0
----
1
931490
21
75669
81
10494

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7833
SELECT ALL + + MIN( ALL + - CAST( NULL AS DECIMAL ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7833
SELECT ALL + + MIN ( ALL + - CAST ( NULL AS REAL ) ) FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - col1 col1, + col2 * + col0 * + col0 FROM tab1 AS cor0
----
-14
249696
-47
563108
-5
426275

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 59 col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7836
SELECT ALL - 19 * + + CAST( NULL AS SIGNED ) * - + AVG ( ALL + 29 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7836
SELECT ALL - 19 * + + CAST ( NULL AS INTEGER ) * - + AVG ( ALL + 29 ) FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7837
SELECT ALL + CAST( + col2 AS SIGNED ), - col0 AS col1 FROM tab1 AS cor0
----
59
-85
68
-91
96
-51

skipif mysql # not compatible
query II rowsort label-7837
SELECT ALL + CAST ( + col2 AS INTEGER ), - col0 AS col1 FROM tab1 AS cor0
----
59
-85
68
-91
96
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-7838
SELECT ALL ( - COUNT( * ) ) * - - COUNT( * ) - 73 AS col1 FROM tab1 AS cor0 WHERE + col1 > NULL
----
-73

skipif mysql # not compatible
query I rowsort label-7838
SELECT ALL ( - COUNT ( * ) ) * - - COUNT ( * ) - 73 AS col1 FROM tab1 AS cor0 WHERE + col1 > NULL
----
-73

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 85 > + 56
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL >= + col1 * + col1
----

query I rowsort
SELECT 53 * + col1 * + - col1 AS col2 FROM tab1 AS cor0
----
-10388
-117077
-1325

onlyif mysql # aggregate syntax: 
query II rowsort label-7842
SELECT DISTINCT - 44 AS col0, - ( + + COUNT( * ) ) AS col2 FROM tab1
----
-44
-3

skipif mysql # not compatible
query II rowsort label-7842
SELECT DISTINCT - 44 AS col0, - ( + + COUNT ( * ) ) AS col2 FROM tab1
----
-44
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7843
SELECT - SUM( DISTINCT - ( + 52 ) ) FROM tab1
----
52

skipif mysql # not compatible
query I rowsort label-7843
SELECT - SUM ( DISTINCT - ( + 52 ) ) FROM tab1
----
52

query I rowsort
SELECT ALL ( 53 ) AS col0 FROM tab1
----
53
53
53

onlyif mysql # aggregate syntax: 
query I rowsort label-7845
SELECT COUNT( * ) + + SUM( DISTINCT + - col1 ) AS col0 FROM tab0
----
-100

skipif mysql # not compatible
query I rowsort label-7845
SELECT COUNT ( * ) + + SUM ( DISTINCT + - col1 ) AS col0 FROM tab0
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-7846
SELECT + COUNT( * ) + - 46 AS col2 FROM tab2
----
-43

skipif mysql # not compatible
query I rowsort label-7846
SELECT + COUNT ( * ) + - 46 AS col2 FROM tab2
----
-43

query I rowsort
SELECT DISTINCT col1 + + 16 FROM tab0
----
17
37
97

query II rowsort
SELECT + col0 + - 7 + + col2, - 59 AS col1 FROM tab1
----
137
-59
140
-59
152
-59

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-7849
SELECT * FROM tab2 WHERE + 73 NOT IN ( + + col0 + + col0, CAST( NULL AS SIGNED ) - col2, - 13, + + 0 + - col0, + + 72 * 41 + - CAST( NULL AS DECIMAL ) + ( - - col0 ) / + - col0 + col1 + col0 * - - col2 )
----

skipif mysql # not compatible
query III rowsort label-7849
SELECT * FROM tab2 WHERE + 73 NOT IN ( + + col0 + + col0, CAST ( NULL AS INTEGER ) - col2, - 13, + + 0 + - col0, + + 72 * 41 + - CAST ( NULL AS REAL ) + ( - - col0 ) / + - col0 + col1 + col0 * - - col2 )
----

query I rowsort
SELECT - col2 + - + col2 * + 25 * col2 FROM tab2
----
-13248
-40040
-84158

onlyif mysql # aggregate syntax: 
query I rowsort label-7851
SELECT DISTINCT - SUM( ALL + - col1 ) AS col2 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-7851
SELECT DISTINCT - SUM ( ALL + - col1 ) AS col2 FROM tab0 AS cor0
----
103

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 > 83
----

query II rowsort
SELECT col0 AS col1, + 5 * + ( + col0 ) + - + ( - + col2 ) AS col0 FROM tab0
----
15
122
87
445
97
584

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( - col2 = 48 )
----

query I rowsort
SELECT DISTINCT col1 * - - col2 - - + col1 FROM tab1 AS cor0
----
1358
300
3243

onlyif mysql # aggregate syntax: 
query I rowsort label-7857
SELECT DISTINCT COUNT( * ) + + ( 25 ) AS col0 FROM tab0 AS cor0
----
28

skipif mysql # not compatible
query I rowsort label-7857
SELECT DISTINCT COUNT ( * ) + + ( 25 ) AS col0 FROM tab0 AS cor0
----
28

query I rowsort
SELECT ALL + 69 * col1 FROM tab1 AS cor0
----
3243
345
966

onlyif mysql # DIV for integer division: 
query I rowsort label-7859
SELECT DISTINCT 77 + - col1 DIV col2 AS col1 FROM tab1 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-7859
SELECT DISTINCT 77 + - col1 / col2 AS col1 FROM tab1 AS cor0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7860
SELECT + 52 + COUNT( * ) FROM tab1 AS cor0
----
55

skipif mysql # not compatible
query I rowsort label-7860
SELECT + 52 + COUNT ( * ) FROM tab1 AS cor0
----
55

query I rowsort
SELECT ALL ( col2 ) - - + 96 FROM tab0 AS cor0
----
106
143
195

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7862
SELECT - col1 + + - CAST( NULL AS SIGNED ) * + col2 * + col0 * col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7862
SELECT - col1 + + - CAST ( NULL AS INTEGER ) * + col2 * + col0 * col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7863
SELECT ALL 27 + 40 * - SUM( ALL - - col2 ) FROM tab0
----
-6213

skipif mysql # not compatible
query I rowsort label-7863
SELECT ALL 27 + 40 * - SUM ( ALL - - col2 ) FROM tab0
----
-6213

query I rowsort
SELECT DISTINCT + AVG ( DISTINCT - ( + col1 ) ) FROM tab0 WHERE - col0 IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7865
SELECT ALL CAST( NULL AS SIGNED ) * - ( col1 ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7865
SELECT ALL CAST ( NULL AS INTEGER ) * - ( col1 ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + 18 * 74 * + col2 - + col2 FROM tab0 AS cor0
----
131769
13310
62557

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7867
SELECT - CAST( NULL AS SIGNED ) * + col0 + - ( + col1 ) + 52 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7867
SELECT - CAST ( NULL AS INTEGER ) * + col0 + - ( + col1 ) + 52 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7868
SELECT + ( + 25 ) DIV + col2 FROM tab0 AS cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-7868
SELECT + ( + 25 ) / + col2 FROM tab0 AS cor0
----
0
0
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7869
SELECT CAST( NULL AS SIGNED ) / - COUNT( * ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7869
SELECT CAST ( NULL AS INTEGER ) / - COUNT ( * ) AS col2 FROM tab0
----
NULL

query I rowsort
SELECT - + ( + 91 ) + + - 1 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1af709a79a3e56281ffdce4d931d5965

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7871
SELECT DISTINCT - ( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7871
SELECT DISTINCT - ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7872
SELECT DISTINCT COUNT( * ) AS col2 FROM tab1 WHERE ( NOT + 68 * + ( col1 ) * - - CAST( NULL AS DECIMAL ) * col2 + - CAST( col2 AS SIGNED ) * 39 IS NOT NULL )
----
3

skipif mysql # not compatible
query I rowsort label-7872
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab1 WHERE ( NOT + 68 * + ( col1 ) * - - CAST ( NULL AS REAL ) * col2 + - CAST ( col2 AS INTEGER ) * 39 IS NOT NULL )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7873
SELECT + + MIN( DISTINCT 94 ) FROM tab2 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-7873
SELECT + + MIN ( DISTINCT 94 ) FROM tab2 AS cor0
----
94

query I rowsort
SELECT DISTINCT + 91 + col0 * + + col0 * col2 FROM tab2 AS cor0
----
163931
326341
48759

query I rowsort
SELECT ALL + - 54 + col2 FROM tab1 AS cor0
----
14
42
5

query I rowsort
SELECT - + col2 + - col0 * - 4 AS col0 FROM tab1 AS cor0
----
108
281
296

onlyif mysql # aggregate syntax: 
query I rowsort label-7877
SELECT DISTINCT COUNT( * ) * + - 79 FROM tab0 AS cor0
----
-237

skipif mysql # not compatible
query I rowsort label-7877
SELECT DISTINCT COUNT ( * ) * + - 79 FROM tab0 AS cor0
----
-237

query II rowsort
SELECT ALL - + col1, - 80 AS col1 FROM tab1 AS cor0 WHERE - 30 IS NOT NULL
----
-14
-80
-47
-80
-5
-80

query II rowsort
SELECT ALL + ( + col0 ) * + 82 AS col0, 71 FROM tab0 AS cor0
----
1230
71
7134
71
7954
71

onlyif mysql # DIV for integer division: 
query I rowsort label-7880
SELECT ALL - col1 DIV + col0 AS col2 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-7880
SELECT ALL - col1 / + col0 AS col2 FROM tab2
----
-1
-1
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7881
SELECT ALL - CAST( NULL AS SIGNED ) + + col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7881
SELECT ALL - CAST ( NULL AS INTEGER ) + + col1 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE col2 * - + 82 NOT IN ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7883
SELECT - ( + + ( COUNT( * ) ) ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-7883
SELECT - ( + + ( COUNT ( * ) ) ) FROM tab1
----
-3

query I rowsort
SELECT - ( + 72 ) FROM tab2
----
-72
-72
-72

query III rowsort
SELECT * FROM tab1 WHERE + col2 + + ( + + 61 ) + 58 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - 51 + - ( - - col0 ) AS col1 FROM tab0 AS cor0
----
-138
-148
-66

query I rowsort
SELECT + + 99 AS col2 FROM tab2 cor0
----
99
99
99

query I rowsort
SELECT ALL - col1 + + 60 - - col0 FROM tab0 AS cor0
----
-6
126
156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7889
SELECT 17 + + CAST( - 71 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-54
-54
-54

skipif mysql # not compatible
query I rowsort label-7889
SELECT 17 + + CAST ( - 71 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-54
-54
-54

query I rowsort
SELECT + + col0 + + 53 AS col1 FROM tab1 AS cor0
----
104
138
144

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7891
SELECT DISTINCT col0 - + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7891
SELECT DISTINCT col0 - + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL

query II rowsort
SELECT - col2, - 2 * + col0 AS col1 FROM tab1
----
-59
-170
-68
-182
-96
-102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7893
SELECT - 60 * + - SUM( - ( + CAST( NULL AS SIGNED ) ) ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7893
SELECT - 60 * + - SUM ( - ( + CAST ( NULL AS INTEGER ) ) ) AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7894
SELECT ALL - MIN( + ( - col0 ) ) + - 44 AS col2 FROM tab1 cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7894
SELECT ALL - MIN ( + ( - col0 ) ) + - 44 AS col2 FROM tab1 cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7895
SELECT + COUNT( ALL - 24 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7895
SELECT + COUNT ( ALL - 24 ) FROM tab0 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL > col0
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND + col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + - col1 = NULL
----

query I rowsort
SELECT ALL 85 * + + 30 * + 3 AS col1 FROM tab1
----
7650
7650
7650

query I rowsort
SELECT - 72 * - - 28 * - col1 AS col1 FROM tab2
----
102816
135072
155232

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 3, 92 * col0 * + col0 col2 FROM tab2
----
-3
194672
-3
376832
-3
517500

query II rowsort
SELECT DISTINCT 14 AS col0, - col1 FROM tab0
----
14
-1
14
-21
14
-81

query II rowsort
SELECT DISTINCT col2 AS col0, - col0 AS col0 FROM tab2
----
23
-46
40
-64
58
-75

query II rowsort
SELECT - 93 AS col2, col1 FROM tab2
----
-93
51
-93
67
-93
77

query I rowsort
SELECT ( ( + col1 ) ) AS col1 FROM tab0
----
1
21
81

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT + + col1 = NULL OR NOT + + col2 + 20 = + 24 + - col2 - + + 6
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7907
SELECT DISTINCT 29, CAST( NULL AS SIGNED ) * + + CAST( NULL AS SIGNED ) + CAST( NULL AS SIGNED ) - + 57 AS col2 FROM tab0 cor0
----
29
NULL

skipif mysql # not compatible
query II rowsort label-7907
SELECT DISTINCT 29, CAST ( NULL AS INTEGER ) * + + CAST ( NULL AS INTEGER ) + CAST ( NULL AS INTEGER ) - + 57 AS col2 FROM tab0 cor0
----
29
NULL

query I rowsort
SELECT - col2 AS col1 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7909
SELECT ALL - CAST( NULL AS SIGNED ) * + ( - col2 ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7909
SELECT ALL - CAST ( NULL AS INTEGER ) * + ( - col2 ) AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * - ( - 28 ) FROM tab2
----
1288
1792
2100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7911
SELECT DISTINCT + 38 * + CAST( AVG ( + col2 ) AS SIGNED ) FROM tab1
----
2812

skipif mysql # not compatible
query I rowsort label-7911
SELECT DISTINCT + 38 * + CAST ( AVG ( + col2 ) AS INTEGER ) FROM tab1
----
2812

onlyif mysql # aggregate syntax: 
query II rowsort label-7912
SELECT - 4 * + + 23 AS col0, COUNT( * ) col0 FROM tab1
----
-92
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7912
SELECT - 4 * + + 23 AS col0, COUNT ( * ) col0 FROM tab1
----
-92
3

query I rowsort
SELECT + col1 AS col0 FROM tab1 AS cor0 WHERE NULL <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 12, - 52 col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
12
-52
12
-52
12
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-7915
SELECT ALL - col1 DIV + ( - col2 ) + + 98 - - - col1 AS col2 FROM tab0 cor0
----
18
79
97

skipif mysql # not compatible
query I rowsort label-7915
SELECT ALL - col1 / + ( - col2 ) + + 98 - - - col1 AS col2 FROM tab0 cor0
----
18
79
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7916
SELECT DISTINCT COUNT( * ) + 89 AS col1 FROM tab0
----
92

skipif mysql # not compatible
query I rowsort label-7916
SELECT DISTINCT COUNT ( * ) + 89 AS col1 FROM tab0
----
92

query I rowsort
SELECT ALL - - ( - 95 ) + AVG ( + col1 ) FROM tab2 WHERE + col2 IS NULL
----
NULL

query I rowsort
SELECT + col2 * - col2 + + col0 FROM tab2
----
-1536
-3289
-483

query I rowsort
SELECT + col1 * - col2 + col1 FROM tab0
----
-189
-3726
-98

query II rowsort
SELECT col2 + + col1 * + + col2, col2 AS col0 FROM tab1
----
1440
96
3264
68
354
59

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( + 24 ) NOT IN ( - - col0, col0, - col1 * + 96 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7922
SELECT DISTINCT + col2 AS col0, col1 AS col2 FROM tab1 AS cor0 WHERE NULL IN ( + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query II rowsort label-7922
SELECT DISTINCT + col2 AS col0, col1 AS col2 FROM tab1 AS cor0 WHERE NULL IN ( + CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7923
SELECT ALL - + ( 62 ) + COUNT( * ) + 96 + + COUNT( * ) FROM tab2 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-7923
SELECT ALL - + ( 62 ) + COUNT ( * ) + 96 + + COUNT ( * ) FROM tab2 AS cor0
----
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 21 col2 FROM tab0 AS cor0
----
21
21
21

onlyif mysql # DIV for integer division: 
query I rowsort label-7925
SELECT - ( - col1 ) DIV - ( ( + col2 ) ) FROM tab2 AS cor0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-7925
SELECT - ( - col1 ) / - ( ( + col2 ) ) FROM tab2 AS cor0
----
-1
-1
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-7926
SELECT ALL 49 + + COUNT( * ) FROM tab1
----
52

skipif mysql # not compatible
query I rowsort label-7926
SELECT ALL 49 + + COUNT ( * ) FROM tab1
----
52

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 LEFT JOIN tab2 AS cor1 ON + 95 IS NOT NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

query I rowsort
SELECT ALL - ( + 13 ) FROM ( tab1 cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to e95f5f4bd0f480397cced5f5e8a23792

query I rowsort
SELECT DISTINCT + 30 * col1 * - col2 FROM tab0 AS cor0
----
-114210
-2970
-6300

query I rowsort
SELECT ALL + - col1 AS col2 FROM tab1 AS cor0 WHERE NOT + 49 IS NULL
----
-14
-47
-5

query I rowsort
SELECT ALL - - 2 FROM tab2 cor0
----
2
2
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7932
SELECT + + 87 DIV COUNT( - - col2 ) * COUNT( DISTINCT col0 ) DIV COUNT( * ) + + 4 AS col0 FROM tab2 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-7932
SELECT + + 87 / COUNT ( - - col2 ) * COUNT ( DISTINCT col0 ) / COUNT ( * ) + + 4 AS col0 FROM tab2 AS cor0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-7933
SELECT ( + 49 ) * - MIN( 90 ) FROM tab1
----
-4410

skipif mysql # not compatible
query I rowsort label-7933
SELECT ( + 49 ) * - MIN ( 90 ) FROM tab1
----
-4410

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7934
SELECT DISTINCT 20 DIV - COUNT( * ) AS col2 FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-7934
SELECT DISTINCT 20 / - COUNT ( * ) AS col2 FROM tab0
----
-6

query I rowsort
SELECT DISTINCT ( 20 ) AS col0 FROM tab1
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-7936
SELECT ALL + MIN( ALL + 39 ) col0 FROM tab0
----
39

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7936
SELECT ALL + MIN ( ALL + 39 ) col0 FROM tab0
----
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col2 FROM tab2 cor0 WHERE NOT NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7938
SELECT - 63 * + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-189

skipif mysql # not compatible
query I rowsort label-7938
SELECT - 63 * + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-189

query I rowsort
SELECT DISTINCT - + 40 AS col1 FROM tab1 AS cor0
----
-40

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7940
SELECT CAST( NULL AS DECIMAL ) FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-7940
SELECT CAST ( NULL AS REAL ) FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query II rowsort label-7941
SELECT ALL - MIN( DISTINCT + + 6 ) AS col1, - 18 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-6
-18

skipif mysql # not compatible
query II rowsort label-7941
SELECT ALL - MIN ( DISTINCT + + 6 ) AS col1, - 18 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-6
-18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
59
68
96

query I rowsort
SELECT + col2 + - col1 + - - col2 AS col2 FROM tab2
----
-5
3
49

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) BETWEEN NULL AND + 13 / + + 27
----

query I rowsort
SELECT ALL + - 91 + col1 FROM tab2 cor0
----
-14
-24
-40

query II rowsort
SELECT ALL + 0 AS col1, 86 * - col2 FROM tab0 AS cor0
----
0
-4042
0
-8514
0
-860

query I rowsort
SELECT DISTINCT + col1 + + + col1 AS col0 FROM tab1 AS cor0
----
10
28
94

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7948
SELECT + 96 + + + col0 * + col1 + - col1, + CAST( + col0 AS SIGNED ) + - 70 AS col1 FROM tab0 AS cor0
----
1230
-55
1902
17
192
27

skipif mysql # not compatible
query II rowsort label-7948
SELECT + 96 + + + col0 * + col1 + - col1, + CAST ( + col0 AS INTEGER ) + - 70 AS col1 FROM tab0 AS cor0
----
1230
-55
1902
17
192
27

query II rowsort
SELECT col0 + - - 88 AS col1, - 86 * - - ( col1 ) - + col0 AS col1 FROM tab0 AS cor0
----
103
-6981
175
-1893
185
-183

query II rowsort
SELECT + col0 AS col2, + 22 AS col2 FROM tab2 cor0 WHERE col1 + + + col0 IS NOT NULL
----
46
22
64
22
75
22

query I rowsort
SELECT ALL + + col2 AS col0 FROM tab0 AS cor0 WHERE col0 * ( + 46 ) <= + col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7952
SELECT - + 83 + + - COUNT( - + col2 ) * + CAST( NULL AS SIGNED ) AS col2 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7952
SELECT - + 83 + + - COUNT ( - + col2 ) * + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0
----
NULL

query I rowsort
SELECT DISTINCT + + col1 + - col2 * 65 + 7 FROM tab0 AS cor0
----
-2967
-622
-6427

query I rowsort
SELECT DISTINCT - col2 + + col1 + 4 AS col2 FROM tab0
----
-94
15
38

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7955
SELECT ALL * FROM tab2 WHERE NOT NULL NOT BETWEEN + col0 + + ( + 43 ) - + col1 AND CAST( 4 AS SIGNED ) / col2 + - col2
----

skipif mysql # not compatible
query III rowsort label-7955
SELECT ALL * FROM tab2 WHERE NOT NULL NOT BETWEEN + col0 + + ( + 43 ) - + col1 AND CAST ( 4 AS INTEGER ) / col2 + - col2
----

query I rowsort
SELECT ALL - col1 - + + ( - - col1 ) FROM tab0
----
-162
-2
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7957
SELECT ALL - CAST( + col1 AS SIGNED ) * 66 FROM tab2
----
-3366
-4422
-5082

skipif mysql # not compatible
query I rowsort label-7957
SELECT ALL - CAST ( + col1 AS INTEGER ) * 66 FROM tab2
----
-3366
-4422
-5082

onlyif mysql # DIV for integer division: 
query I rowsort label-7958
SELECT col2 DIV + col1 * 60 * col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7958
SELECT col2 / + col1 * 60 * col1 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7959
SELECT DISTINCT - 66 * 15 DIV - - ( - 99 ) col0 FROM tab1
----
10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7959
SELECT DISTINCT - 66 * 15 / - - ( - 99 ) col0 FROM tab1
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-7960
SELECT ALL COUNT( * ) * 38 FROM tab1
----
114

skipif mysql # not compatible
query I rowsort label-7960
SELECT ALL COUNT ( * ) * 38 FROM tab1
----
114

query I rowsort
SELECT + + col2 - + col0 AS col2 FROM tab1 AS cor0
----
-23
-26
45

onlyif mysql # aggregate syntax: 
query I rowsort label-7962
SELECT DISTINCT - MIN( DISTINCT col2 ) AS col0 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-7962
SELECT DISTINCT - MIN ( DISTINCT col2 ) AS col0 FROM tab0 AS cor0
----
-10

query I rowsort
SELECT col2 + col0 + + + 91 - + 2 FROM tab0 AS cor0
----
151
186
285

query I rowsort
SELECT DISTINCT + ( + col0 ) + col2 + 72 AS col0 FROM tab0 AS cor0
----
134
169
268

query I rowsort
SELECT + col1 FROM tab1 AS cor0 WHERE - 68 IS NULL
----

query I rowsort
SELECT DISTINCT - + 3 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 96 + - - col0 IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT ( NULL IS NULL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7969
SELECT + MAX( - - 74 ) * - 86 * COUNT( * ) col1 FROM tab1 cor0
----
-19092

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7969
SELECT + MAX ( - - 74 ) * - 86 * COUNT ( * ) col1 FROM tab1 cor0
----
-19092

query II rowsort
SELECT DISTINCT col2, - 87 + - 0 AS col0 FROM tab0 AS cor0
----
10
-87
47
-87
99
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7971
SELECT ALL col0 * + 36 + col1 * + + 68 * 33 AS col2 FROM tab1 AS cor0 WHERE NOT NULL >= CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-7971
SELECT ALL col0 * + 36 + col1 * + + 68 * 33 AS col2 FROM tab1 AS cor0 WHERE NOT NULL >= CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + 68 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7973
SELECT DISTINCT - COUNT( ALL + 54 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-7973
SELECT DISTINCT - COUNT ( ALL + 54 ) FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7974
SELECT ALL ( + ( - COUNT( * ) ) ) AS col2 FROM tab0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7974
SELECT ALL ( + ( - COUNT ( * ) ) ) AS col2 FROM tab0 WHERE NULL IS NOT NULL
----
0

query II rowsort
SELECT DISTINCT - col1 * + col2, col0 + - col0 * - col1 AS col2 FROM tab1
----
-1344
765
-295
510
-3196
4368

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7976
SELECT DISTINCT + CAST( 45 AS SIGNED ) DIV col0 * col1, - 75 * col1 AS col1 FROM tab2
----
0
-3825
0
-5025
0
-5775

skipif mysql # not compatible
query II rowsort label-7976
SELECT DISTINCT + CAST ( 45 AS INTEGER ) / col0 * col1, - 75 * col1 AS col1 FROM tab2
----
0
-3825
0
-5025
0
-5775

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND 60
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7978
SELECT DISTINCT - COUNT( * ) + - ( - 15 ) AS col2 FROM tab0 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-7978
SELECT DISTINCT - COUNT ( * ) + - ( - 15 ) AS col2 FROM tab0 AS cor0
----
12

query I rowsort
SELECT - 82 + + 37 AS col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NULL
----
9 values hashing to 71160abf09589695379a70558726f0ba

onlyif mysql # aggregate syntax: 
query I rowsort label-7980
SELECT ALL + MAX( ALL + col2 ) FROM tab0 cor0
----
99

skipif mysql # not compatible
query I rowsort label-7980
SELECT ALL + MAX ( ALL + col2 ) FROM tab0 cor0
----
99

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL >= - col2 * + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7982
SELECT col2 DIV + col0 FROM tab2 AS cor0 WHERE + col1 IS NOT NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7982
SELECT col2 / + col0 FROM tab2 AS cor0 WHERE + col1 IS NOT NULL
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - + 62 + + + col2 col0 FROM tab2 cor0
----
1449
2520
3654

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7984
SELECT DISTINCT - + COUNT( 65 ) - 35 + - - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7984
SELECT DISTINCT - + COUNT ( 65 ) - 35 + - - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7985
SELECT - ( + COUNT( * ) ) * - 6 + COUNT( * ) + 39 AS col2 FROM tab0
----
60

skipif mysql # not compatible
query I rowsort label-7985
SELECT - ( + COUNT ( * ) ) * - 6 + COUNT ( * ) + 39 AS col2 FROM tab0
----
60

query I rowsort
SELECT col1 * - + 20 + col2 + - - col1 AS col2 FROM tab1
----
-170
-36
-825

query I rowsort
SELECT - ( + 72 ) + - - col1 FROM tab0
----
-51
-71
9

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col2 + + col0 + + col2 IS NOT NULL
----

query I rowsort
SELECT ALL 49 * - col1 FROM tab2
----
-2499
-3283
-3773

query I rowsort
SELECT 15 + - 15 FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 47 col2 FROM tab2 AS cor0
----
-47
-47
-47

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7992
SELECT ALL * FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) > + CAST( NULL AS SIGNED ) + + + col2 - + ( - 8 )
----

skipif mysql # not compatible
query III rowsort label-7992
SELECT ALL * FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) > + CAST ( NULL AS INTEGER ) + + + col2 - + ( - 8 )
----

query I rowsort
SELECT DISTINCT + - col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT ALL 27 + - - col2 * col0 AS col0 FROM tab2 AS cor0
----
1085
2587
4377

query I rowsort
SELECT - 94 * + - col0 FROM tab2 AS cor0
----
4324
6016
7050

query I rowsort
SELECT - ( - + 74 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

query I rowsort
SELECT + 59 AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

onlyif mysql # aggregate syntax: 
query II rowsort label-7998
SELECT DISTINCT - COUNT( * ) * + COUNT( * ) AS col1, - 77 * - COUNT( * ) FROM tab0 AS cor0
----
-9
231

skipif mysql # not compatible
query II rowsort label-7998
SELECT DISTINCT - COUNT ( * ) * + COUNT ( * ) AS col1, - 77 * - COUNT ( * ) FROM tab0 AS cor0
----
-9
231

onlyif mysql # DIV for integer division: 
query I rowsort label-7999
SELECT ALL + + 80 DIV + col2 AS col2 FROM tab0 AS cor0
----
0
1
8

skipif mysql # not compatible
query I rowsort label-7999
SELECT ALL + + 80 / + col2 AS col2 FROM tab0 AS cor0
----
0
1
8

onlyif mysql # aggregate syntax: 
query I rowsort label-8000
SELECT - + MAX( DISTINCT + 12 ) FROM tab1 cor0
----
-12

skipif mysql # not compatible
query I rowsort label-8000
SELECT - + MAX ( DISTINCT + 12 ) FROM tab1 cor0
----
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-8001
SELECT + col2 DIV + 3 AS col0 FROM tab2 AS cor0
----
13
19
7

skipif mysql # not compatible
query I rowsort label-8001
SELECT + col2 / + 3 AS col0 FROM tab2 AS cor0
----
13
19
7

onlyif mysql # aggregate syntax: 
query I rowsort label-8002
SELECT + COUNT( * ) * + 33 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-8002
SELECT + COUNT ( * ) * + 33 FROM tab0
----
99

onlyif mysql # aggregate syntax: 
query II rowsort label-8003
SELECT DISTINCT COUNT( * ) * - - ( COUNT( * ) ) AS col1, COUNT( * ) - - 73 AS col1 FROM tab1
----
9
76

skipif mysql # not compatible
query II rowsort label-8003
SELECT DISTINCT COUNT ( * ) * - - ( COUNT ( * ) ) AS col1, COUNT ( * ) - - 73 AS col1 FROM tab1
----
9
76

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8004
SELECT DISTINCT * FROM tab1 WHERE ( NOT col2 * 57 + - col2 * - - ( + + CAST( NULL AS SIGNED ) ) IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8004
SELECT DISTINCT * FROM tab1 WHERE ( NOT col2 * 57 + - col2 * - - ( + + CAST ( NULL AS INTEGER ) ) IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 85 FROM tab2 WHERE NOT NULL IS NOT NULL
----
85
85
85

onlyif mysql # DIV for integer division: 
query I rowsort label-8006
SELECT DISTINCT col0 DIV - 93 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8006
SELECT DISTINCT col0 / - 93 AS col0 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8007
SELECT ALL - 7 * - CAST( NULL AS SIGNED ) * + ( 4 ) AS col0 FROM tab1 WHERE NOT NULL NOT BETWEEN + col0 AND + col2 + - col0 / + col0
----

skipif mysql # not compatible
query I rowsort label-8007
SELECT ALL - 7 * - CAST ( NULL AS INTEGER ) * + ( 4 ) AS col0 FROM tab1 WHERE NOT NULL NOT BETWEEN + col0 AND + col2 + - col0 / + col0
----

query I rowsort
SELECT ( + - 38 ) FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
-38
-38
-38

query I rowsort
SELECT ALL col1 + - - 70 AS col2 FROM tab2 AS cor0
----
121
137
147

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 42 + - col0 - + - 86 col2, + col1 col1 FROM tab2 AS cor0
----
-2
51
-20
77
-31
67

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 16 + - col1 BETWEEN + col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8012
SELECT ALL + - MAX( - + col0 ) AS col1 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-8012
SELECT ALL + - MAX ( - + col0 ) AS col1 FROM tab1 AS cor0
----
51

query I rowsort
SELECT ALL + 48 + - col1 FROM tab0 AS cor0
----
-33
27
47

query I rowsort
SELECT 27 * + 28 AS col0 FROM tab2
----
756
756
756

query I rowsort
SELECT 65 * - 3 FROM tab0
----
-195
-195
-195

query I rowsort
SELECT + 67 * - col0 - + col1 FROM tab2
----
-3133
-4365
-5092

onlyif mysql # aggregate syntax: 
query I rowsort label-8017
SELECT DISTINCT - COUNT( * ) + 88 FROM tab2
----
85

skipif mysql # not compatible
query I rowsort label-8017
SELECT DISTINCT - COUNT ( * ) + 88 FROM tab2
----
85

query I rowsort
SELECT + 90 * - 18 FROM tab0
----
-1620
-1620
-1620

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8019
SELECT col2 * CAST( NULL AS SIGNED ) col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8019
SELECT col2 * CAST ( NULL AS INTEGER ) col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - 9 * - 39 FROM tab0
----
351
351
351

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8021
SELECT 32 * AVG ( DISTINCT CAST( NULL AS SIGNED ) ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8021
SELECT 32 * AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0
----
NULL

query I rowsort
SELECT 47 FROM tab0 WHERE NOT col2 <> col2
----
47
47
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8023
SELECT 44 * COUNT( * ) FROM tab1
----
132

skipif mysql # not compatible
query I rowsort label-8023
SELECT 44 * COUNT ( * ) FROM tab1
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-8024
SELECT DISTINCT - 13 * COUNT( * ) AS col2 FROM tab0
----
-39

skipif mysql # not compatible
query I rowsort label-8024
SELECT DISTINCT - 13 * COUNT ( * ) AS col2 FROM tab0
----
-39

query I rowsort
SELECT DISTINCT 2 AS col0 FROM tab1 WHERE NOT col2 = 27
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8026
SELECT ALL - MIN( DISTINCT col1 ) * 56 FROM tab2
----
-2856

skipif mysql # not compatible
query I rowsort label-8026
SELECT ALL - MIN ( DISTINCT col1 ) * 56 FROM tab2
----
-2856

query III rowsort
SELECT * FROM tab1 WHERE NOT 37 < - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col1 + - 39 FROM tab2
----
12
28
38

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( - ( col0 ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - ( - ( - 28 ) ) FROM tab1
----
-28
-28
-28

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col0 BETWEEN + 90 AND NULL
----
51
14
96
85
5
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8032
SELECT DISTINCT ( 94 ) DIV - ( + COUNT( * ) * - 50 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8032
SELECT DISTINCT ( 94 ) / - ( + COUNT ( * ) * - 50 ) FROM tab0
----
0

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 22 NOT IN ( - ( col1 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8034
SELECT ALL ( - col2 ) DIV + col2 AS col2 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8034
SELECT ALL ( - col2 ) / + col2 AS col2 FROM tab0
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8035
SELECT - CAST( col2 AS SIGNED ) DIV - 86 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8035
SELECT - CAST ( col2 AS INTEGER ) / - 86 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8036
SELECT col2 + - 1 DIV col0 AS col1 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-8036
SELECT col2 + - 1 / col0 AS col1 FROM tab2
----
23
40
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8037
SELECT ALL + MAX( - col2 ) FROM tab1 WHERE + 59 + CAST( NULL AS SIGNED ) IS NULL
----
-59

skipif mysql # not compatible
query I rowsort label-8037
SELECT ALL + MAX ( - col2 ) FROM tab1 WHERE + 59 + CAST ( NULL AS INTEGER ) IS NULL
----
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-8038
SELECT ALL 92 DIV col1 FROM tab1
----
1
18
6

skipif mysql # not compatible
query I rowsort label-8038
SELECT ALL 92 / col1 FROM tab1
----
1
18
6

query III rowsort
SELECT * FROM tab0 WHERE ( 27 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 97 + + 43 col0 FROM tab2 WHERE ( + 69 * + col1 ) IS NOT NULL
----
-54
-54
-54

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 94 + + col1 IN ( - col0 + - col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8042
SELECT MAX( ALL col0 ) * CAST( NULL AS DECIMAL ) + - 5 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8042
SELECT MAX ( ALL col0 ) * CAST ( NULL AS REAL ) + - 5 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8043
SELECT DISTINCT COUNT( DISTINCT col1 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8043
SELECT DISTINCT COUNT ( DISTINCT col1 ) FROM tab2 AS cor0
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 99 * 50 < 77
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE NOT + 98 <= NULL
----

query I rowsort
SELECT ALL - col1 AS col0 FROM tab2 WHERE NOT NULL BETWEEN ( - col1 ) AND + col1 * 82
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8047
SELECT DISTINCT + col2 * + CAST( NULL AS DECIMAL ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8047
SELECT DISTINCT + col2 * + CAST ( NULL AS REAL ) AS col2 FROM tab0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 * - col2 IS NULL
----

query I rowsort
SELECT ALL + col2 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN - col1 * 40 AND ( - col1 + 85 )
----

query I rowsort
SELECT ALL + col0 - - 56 * col0 FROM tab2 AS cor0 WHERE NOT col0 BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8051
SELECT + col2 DIV - 7 AS col2 FROM tab2 AS cor0 WHERE NOT ( col0 ) < ( + 52 )
----
-5
-8

skipif mysql # not compatible
query I rowsort label-8051
SELECT + col2 / - 7 AS col2 FROM tab2 AS cor0 WHERE NOT ( col0 ) < ( + 52 )
----
-5
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-8052
SELECT ALL MAX( col2 ) * COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
288

skipif mysql # not compatible
query I rowsort label-8052
SELECT ALL MAX ( col2 ) * COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
288

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8053
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( - col1 ) AND ( CAST( 52 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-8053
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( - col1 ) AND ( CAST ( 52 AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT + + ( col1 ) * 43 FROM tab1 cor0
----
2021
215
602

onlyif mysql # aggregate syntax: 
query I rowsort label-8055
SELECT + + MIN( + 33 ) FROM tab2 cor0
----
33

skipif mysql # not compatible
query I rowsort label-8055
SELECT + + MIN ( + 33 ) FROM tab2 cor0
----
33

query I rowsort
SELECT ALL col2 AS col1 FROM tab1 AS cor0 WHERE col2 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 91 + col2 <= col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL = + col1 * 8 - 30
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL = 82 * + ( col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8060
SELECT DISTINCT - col2 DIV + 79 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8060
SELECT DISTINCT - col2 / + 79 AS col1 FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8061
SELECT col2 DIV + - 65 * col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8061
SELECT col2 / + - 65 * col0 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8062
SELECT + col0 DIV + + 82 AS col0 FROM tab0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-8062
SELECT + col0 / + + 82 AS col0 FROM tab0
----
0
1
1

query I rowsort
SELECT ALL col0 FROM tab2 WHERE NOT 98 - 10 BETWEEN NULL AND NULL
----

query I rowsort
SELECT + 18 * + ( - col1 ) AS col0 FROM tab2
----
-1206
-1386
-918

query I rowsort
SELECT DISTINCT - col2 + - 78 * + 60 AS col2 FROM tab1 WHERE NOT + col2 IS NULL
----
-4739
-4748
-4776

onlyif mysql # aggregate syntax: 
query I rowsort label-8066
SELECT DISTINCT - SUM( - 98 ) FROM tab0
----
294

skipif mysql # not compatible
query I rowsort label-8066
SELECT DISTINCT - SUM ( - 98 ) FROM tab0
----
294

query I rowsort
SELECT - col1 * - 45 FROM tab1
----
2115
225
630

query I rowsort
SELECT ALL 24 * - col2 FROM tab0
----
-1128
-2376
-240

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8069
SELECT - CAST( - + ( - 15 ) AS SIGNED ) + col0 DIV + ( col1 * col2 ) FROM tab2
----
-15
-15
-15

skipif mysql # not compatible
query I rowsort label-8069
SELECT - CAST ( - + ( - 15 ) AS INTEGER ) + col0 / + ( col1 * col2 ) FROM tab2
----
-15
-15
-15

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8070
SELECT ALL * FROM tab2 WHERE CAST( NULL AS SIGNED ) - + 4 IN ( - col1 )
----

skipif mysql # not compatible
query III rowsort label-8070
SELECT ALL * FROM tab2 WHERE CAST ( NULL AS INTEGER ) - + 4 IN ( - col1 )
----

query I rowsort
SELECT + col1 + - col0 * col0 AS col0 FROM tab0
----
-144
-7548
-9408

onlyif mysql # aggregate syntax: 
query I rowsort label-8072
SELECT 25 * COUNT( * ) FROM tab1 WHERE 56 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8072
SELECT 25 * COUNT ( * ) FROM tab1 WHERE 56 IS NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) = 21 + + col1
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 30 <> ( NULL )
----

query IIIIII rowsort
SELECT ALL * FROM tab2, tab0 AS cor0 WHERE 61 = NULL
----

query I rowsort
SELECT ALL col2 + + + col2 + + col0 FROM tab0
----
107
109
295

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8077
SELECT + CAST( - 67 AS SIGNED ) * + col0 col0 FROM tab2
----
-3082
-4288
-5025

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8077
SELECT + CAST ( - 67 AS INTEGER ) * + col0 col0 FROM tab2
----
-3082
-4288
-5025

onlyif mysql # aggregate syntax: 
query I rowsort label-8078
SELECT ALL + + COUNT( * ) + - COUNT( * ) AS col1 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-8078
SELECT ALL + + COUNT ( * ) + - COUNT ( * ) AS col1 FROM tab2 cor0
----
0

query I rowsort
SELECT col1 - + col1 - + 98 * + col2 AS col0 FROM tab2 AS cor0
----
-2254
-3920
-5684

query I rowsort
SELECT ALL + 31 * - + col1 * + col1 + - col0 FROM tab2 AS cor0
----
-139234
-183863
-80677

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 14 > col1
----
85
5
59

onlyif mysql # aggregate syntax: 
query I rowsort label-8082
SELECT - COUNT( * ) + MAX( ALL - + col1 ) col0 FROM tab0 AS cor0
----
-4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8082
SELECT - COUNT ( * ) + MAX ( ALL - + col1 ) col0 FROM tab0 AS cor0
----
-4

query I rowsort
SELECT - + col2 * + col0 + col1 AS col0 FROM tab1 cor0
----
-4882
-5010
-6141

query I rowsort
SELECT + ( ( + 42 ) ) AS col2 FROM tab0 AS cor0 WHERE col1 * - + col1 IN ( 11 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8085
SELECT * FROM tab1 WHERE ( NULL ) <> CAST( NULL AS SIGNED ) * + 63
----

skipif mysql # not compatible
query III rowsort label-8085
SELECT * FROM tab1 WHERE ( NULL ) <> CAST ( NULL AS INTEGER ) * + 63
----

query I rowsort
SELECT ALL - ( 55 ) FROM tab1 WHERE - + ( + 34 ) + ( + col2 ) NOT BETWEEN NULL AND + col0
----
-55

query I rowsort
SELECT DISTINCT - col1 + + 21 FROM tab1
----
-26
16
7

query I rowsort
SELECT + col0 + - + ( - col1 ) * 23 FROM tab0
----
120
1878
570

onlyif mysql # DIV for integer division: 
query I rowsort label-8089
SELECT ALL col2 DIV + col0 - - + col1 FROM tab0
----
2
21
84

skipif mysql # not compatible
query I rowsort label-8089
SELECT ALL col2 / + col0 - - + col1 FROM tab0
----
2
21
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8090
SELECT DISTINCT COUNT( ALL CAST( NULL AS SIGNED ) ) + COUNT( * ) FROM tab0 WHERE - col1 + - 96 <> ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-8090
SELECT DISTINCT COUNT ( ALL CAST ( NULL AS INTEGER ) ) + COUNT ( * ) FROM tab0 WHERE - col1 + - 96 <> ( NULL )
----
0

query I rowsort
SELECT col1 FROM tab1 WHERE NOT col1 + 56 IN ( 61 )
----
14
47

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col1 <> 77 / + 44 + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8093
SELECT col1 + + col0 col2 FROM tab0 AS cor0 WHERE NOT ( - col1 ) >= - col0 + - + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8093
SELECT col1 + + col0 col2 FROM tab0 AS cor0 WHERE NOT ( - col1 ) >= - col0 + - + CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8094
SELECT DISTINCT + CAST( + 8 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-8094
SELECT DISTINCT + CAST ( + 8 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8095
SELECT - COUNT( DISTINCT - CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8095
SELECT - COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT 84 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 87 col0 FROM tab2 AS cor0
----
-87

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( col1 + - col1 * col0 )
----

query I rowsort
SELECT ( + col0 ) * - col1 + + - col2 FROM tab1 AS cor0
----
-4345
-484
-810

query I rowsort
SELECT DISTINCT - 58 AS col1 FROM tab2 AS cor0 WHERE NOT ( col1 ) IS NULL
----
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 90 + - 0 * + col2 col2 FROM tab0 cor0
----
90

query I rowsort
SELECT col2 + + - 35 AS col0 FROM tab2 AS cor0
----
-12
23
5

onlyif mysql # DIV for integer division: 
query I rowsort label-8103
SELECT DISTINCT - 48 + + - col1 + - 7 DIV 17 * - col2 + - col2 DIV - 21 FROM tab2 AS cor0
----
-113
-124
-98

skipif mysql # not compatible
query I rowsort label-8103
SELECT DISTINCT - 48 + + - col1 + - 7 / 17 * - col2 + - col2 / - 21 FROM tab2 AS cor0
----
-113
-124
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-8104
SELECT - COUNT( ALL col1 ) + - + MIN( DISTINCT col2 ) FROM tab0 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-8104
SELECT - COUNT ( ALL col1 ) + - + MIN ( DISTINCT col2 ) FROM tab0 AS cor0
----
-13

query II rowsort
SELECT ALL + col1 AS col2, - col0 FROM tab1
----
14
-51
47
-91
5
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-8106
SELECT COUNT( * ) + COUNT( - 15 ) AS col2 FROM tab0 WHERE NOT + 82 BETWEEN + 21 + col1 AND col2
----
4

skipif mysql # not compatible
query I rowsort label-8106
SELECT COUNT ( * ) + COUNT ( - 15 ) AS col2 FROM tab0 WHERE NOT + 82 BETWEEN + 21 + col1 AND col2
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8107
SELECT - COUNT( * ) FROM tab0 WHERE NOT + - ( - col1 ) / + col1 + ( + 37 ) IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-8107
SELECT - COUNT ( * ) FROM tab0 WHERE NOT + - ( - col1 ) / + col1 + ( + 37 ) IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8108
SELECT + ( - MIN( - + col1 ) ) * + ( COUNT( DISTINCT 54 ) ) AS col0 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-8108
SELECT + ( - MIN ( - + col1 ) ) * + ( COUNT ( DISTINCT 54 ) ) AS col0 FROM tab0
----
81

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8109
SELECT + CAST( NULL AS DECIMAL ) * - + col0 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8109
SELECT + CAST ( NULL AS REAL ) * - + col0 AS col1 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + + ( - - 84 ) + + col0 * + - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + + 72 * + 24 FROM tab1 AS cor0
----
1728
1728
1728

query I rowsort
SELECT DISTINCT + - ( + ( - 37 ) ) FROM tab0 AS cor0
----
37

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 89 = ( col0 * + col2 + + 78 * + col0 )
----

query I rowsort
SELECT ( + col1 ) + + col0 - col2 AS col0 FROM tab1 cor0
----
-31
31
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - col1 col0, + col0 AS col1 FROM tab2 cor0
----
51
46
67
75
77
64

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( col1 + + col1 ) IS NULL AND NULL NOT IN ( - - col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT + 88 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8118
SELECT DISTINCT + CAST( col1 AS SIGNED ) * + ( 97 ) * - - col1 * ( col2 ) AS col1 FROM tab1 AS cor0
----
143075
14570564
1825152

skipif mysql # not compatible
query I rowsort label-8118
SELECT DISTINCT + CAST ( col1 AS INTEGER ) * + ( 97 ) * - - col1 * ( col2 ) AS col1 FROM tab1 AS cor0
----
143075
14570564
1825152

onlyif mysql # DIV for integer division: 
query II rowsort label-8119
SELECT - 25 DIV col1 DIV - 47 AS col1, + 31 + + + 49 col1 FROM tab2 AS cor0
----
0
80
0
80
0
80

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8119
SELECT - 25 / col1 / - 47 AS col1, + 31 + + + 49 col1 FROM tab2 AS cor0
----
0
80
0
80
0
80

query I rowsort
SELECT ALL - + 10 + col1 AS col0 FROM tab1 AS cor0
----
-5
37
4

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN col2 AND + col0 + + col1 / + col0
----

query I rowsort
SELECT DISTINCT - col1 - + col1 + col0 - - col2 + + + ( - col0 ) FROM tab0 AS cor0
----
-115
-32
97

query II rowsort
SELECT + col1 AS col2, 26 FROM tab2
----
51
26
67
26
77
26

query II rowsort
SELECT ALL 97, col1 AS col2 FROM tab2
----
97
51
97
67
97
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8125
SELECT + CAST( 25 AS SIGNED ) FROM tab0
----
25
25
25

skipif mysql # not compatible
query I rowsort label-8125
SELECT + CAST ( 25 AS INTEGER ) FROM tab0
----
25
25
25

query I rowsort
SELECT + 8 * - + 61 FROM tab0
----
-488
-488
-488

query II rowsort
SELECT - col0 * - 45 * + col2 AS col1, + 28 FROM tab2
----
115200
28
195750
28
47610
28

query I rowsort
SELECT + ( col2 ) + - 59 * col2 / col1 / + + col2 * + col1 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN 91 AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 / - 90 BETWEEN NULL AND - 62
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - - 33 FROM tab2 cor0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-8131
SELECT DISTINCT 62 + - COUNT( * ) col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
53

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8131
SELECT DISTINCT 62 + - COUNT ( * ) col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
53

query I rowsort
SELECT - col0 AS col1 FROM tab0 WHERE NOT col1 IS NULL
----
-15
-87
-97

query I rowsort
SELECT + 45 AS col1 FROM tab1 cor0
----
45
45
45

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8134
SELECT 16 AS col2, - CAST( NULL AS SIGNED ) - 38 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + 37 AND NULL
----

skipif mysql # not compatible
query II rowsort label-8134
SELECT 16 AS col2, - CAST ( NULL AS INTEGER ) - 38 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + 37 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * ( - col0 ) + - 32 col2 FROM tab0
----
-737
-902
-9635

onlyif mysql # aggregate syntax: 
query I rowsort label-8136
SELECT ALL 92 + + COUNT( * ) + 35 FROM tab2
----
130

skipif mysql # not compatible
query I rowsort label-8136
SELECT ALL 92 + + COUNT ( * ) + 35 FROM tab2
----
130

query I rowsort
SELECT - 44 + + col0 AS col0 FROM tab0
----
-29
43
53

query I rowsort
SELECT + 90 * col2 FROM tab0 WHERE 83 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + col0 + + - col0 col2 FROM tab0
----
-240
-7656
-9506

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col1 NOT BETWEEN NULL AND NULL AND - 75 BETWEEN NULL AND NULL
----

query I rowsort
SELECT + ( col2 ) + - + 58 FROM tab2
----
-18
-35
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8142
SELECT ALL 7 + - col1 FROM tab2 AS cor0 WHERE NULL <> - ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-8142
SELECT ALL 7 + - col1 FROM tab2 AS cor0 WHERE NULL <> - ( - CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT + col2 + + 76 FROM tab2 AS cor0
----
116
134
99

query I rowsort
SELECT DISTINCT - 70 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-70

query I rowsort
SELECT DISTINCT col1 * + ( + col2 ) AS col1 FROM tab0
----
210
3807
99

query I rowsort
SELECT DISTINCT - col2 * ( + col1 ) - - - 94 FROM tab1
----
-1438
-3290
-389

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8147
SELECT + CAST( NULL AS SIGNED ) * - col0 * 51 * - + col0 + + 76 + + col1 + - col0 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8147
SELECT + CAST ( NULL AS INTEGER ) * - col0 * 51 * - + col0 + + 76 + + col1 + - col0 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 27 <> - + ( - col0 )
----

query I rowsort
SELECT ALL - - 17 AS col1 FROM tab2 AS cor0 WHERE NULL IN ( col0, + 63 )
----

query I rowsort
SELECT DISTINCT - col2 * + col1 * - col0 * - - ( - - col2 ) FROM tab0 AS cor0
----
182700
2683935
950697

query II rowsort
SELECT - + 92 AS col1, col0 + - - col2 AS col1 FROM tab0 AS cor0
----
-92
196
-92
62
-92
97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8152
SELECT - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) AS col0, col2 * + ( + col2 ) AS col1 FROM tab0
----
NULL
100
NULL
2209
NULL
9801

skipif mysql # not compatible
query II rowsort label-8152
SELECT - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0, col2 * + ( + col2 ) AS col1 FROM tab0
----
NULL
100
NULL
2209
NULL
9801

onlyif mysql # aggregate syntax: 
query I rowsort label-8153
SELECT - SUM( - 37 ) + - 98 * - COUNT( * ) FROM tab2, tab2 AS cor0
----
1215

skipif mysql # not compatible
query I rowsort label-8153
SELECT - SUM ( - 37 ) + - 98 * - COUNT ( * ) FROM tab2, tab2 AS cor0
----
1215

onlyif mysql # DIV for integer division: 
query I rowsort label-8154
SELECT DISTINCT 44 DIV - + 32 - 66 * - col2 * ( - col1 ) + + 17 - - col1 AS col2 FROM tab2 AS cor0
----
-203187
-256393
-77351

skipif mysql # not compatible
query I rowsort label-8154
SELECT DISTINCT 44 / - + 32 - 66 * - col2 * ( - col1 ) + + 17 - - col1 AS col2 FROM tab2 AS cor0
----
-203187
-256393
-77351

query I rowsort
SELECT - - 38 * - 42 FROM tab0 AS cor0
----
-1596
-1596
-1596

query I rowsort
SELECT + col1 * + 30 AS col2 FROM tab2 AS cor0
----
1530
2010
2310

query I rowsort
SELECT ALL - col2 AS col1 FROM tab1 WHERE NOT NULL = - 20 + col1
----

query I rowsort
SELECT DISTINCT + 82 * - col0 FROM tab1
----
-4182
-6970
-7462

query I rowsort
SELECT ALL + 49 * col0 AS col1 FROM tab0
----
4263
4753
735

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - col1 ) < NULL
----

query II rowsort
SELECT col1 AS col2, col1 AS col0 FROM tab2 WHERE NOT - col2 <> + 46 + + + col0
----

query I rowsort
SELECT - 79 * - 60 + + - 58 FROM tab1 AS cor0
----
4682
4682
4682

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8163
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NOT + 31 * - CAST( 74 AS SIGNED ) + ( - col0 ) = - col0 * - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8163
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NOT + 31 * - CAST ( 74 AS INTEGER ) + ( - col0 ) = - col0 * - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8164
SELECT COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE ( ( col1 ) ) NOT IN ( col0 )
----
3

skipif mysql # not compatible
query I rowsort label-8164
SELECT COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE ( ( col1 ) ) NOT IN ( col0 )
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-8165
SELECT DISTINCT + col1 DIV col1 * col2 * - col2 * - 47 * - col0 + - - 52 + + col0 FROM tab2 AS cor0
----
-1143600
-11857973
-4812684

skipif mysql # not compatible
query I rowsort label-8165
SELECT DISTINCT + col1 / col1 * col2 * - col2 * - 47 * - col0 + - - 52 + + col0 FROM tab2 AS cor0
----
-1143600
-11857973
-4812684

query I rowsort
SELECT col1 * - ( + 17 ) + + col2 FROM tab1 AS cor0
----
-142
-26
-731

query II rowsort
SELECT ALL + col2, + col2 + + col1 AS col0 FROM tab1 AS cor0
----
59
64
68
115
96
110

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + 27 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - + col1 col1 FROM tab2
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col2 BETWEEN ( + + col1 - col2 ) AND ( + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8171
SELECT CAST( + CAST( - + 89 AS SIGNED ) AS SIGNED ) * + + col2 * + col1 FROM tab0
----
-18690
-338823
-8811

skipif mysql # not compatible
query I rowsort label-8171
SELECT CAST ( + CAST ( - + 89 AS INTEGER ) AS INTEGER ) * + + col2 * + col1 FROM tab0
----
-18690
-338823
-8811

query I rowsort
SELECT DISTINCT + + ( + - col2 ) FROM tab0 WHERE NOT - col2 IS NOT NULL
----

query I rowsort
SELECT ALL - 53 * ( + - 6 ) + - col2 + col1 FROM tab1 AS cor0
----
236
264
297

query I rowsort
SELECT ALL - col1 * - - col2 - - - col2 FROM tab1 AS cor0
----
-1440
-3264
-354

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 + - 50 + - 24 * + col0 * + 55 col0 FROM tab2 cor0
----
-60719
-84453
-98983

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( - 88 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 83 + + col2 NOT IN ( + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - 28 - + - 34 * col1 - + col1 AS col0 FROM tab2
----
1655
2183
2513

query I rowsort
SELECT - - col2 * + - col1 FROM tab2 AS cor0
----
-1173
-3080
-3886

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8180
SELECT - col0 DIV + + CAST( col1 AS SIGNED ) col2 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8180
SELECT - col0 / + + CAST ( col1 AS INTEGER ) col2 FROM tab2 AS cor0
----
-1
0
0

query I rowsort
SELECT 62 AS col0 FROM tab1 AS cor0 WHERE NOT NULL >= NULL
----

query II rowsort
SELECT ALL - col0 AS col2, 94 FROM tab1 AS cor0
----
-51
94
-85
94
-91
94

query I rowsort
SELECT DISTINCT col1 * + 95 AS col1 FROM tab2
----
4845
6365
7315

query I rowsort
SELECT 12 * + col0 AS col1 FROM tab1
----
1020
1092
612

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8185
SELECT 2 * CAST( col2 AS SIGNED ) FROM tab1
----
118
136
192

skipif mysql # not compatible
query I rowsort label-8185
SELECT 2 * CAST ( col2 AS INTEGER ) FROM tab1
----
118
136
192

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) = + 66
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col0, - col1 FROM tab2
----
23
-51
40
-77
58
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-8188
SELECT DISTINCT - COUNT( * ) * + - COUNT( - - 80 ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-8188
SELECT DISTINCT - COUNT ( * ) * + - COUNT ( - - 80 ) FROM tab2
----
9

query I rowsort
SELECT ALL - 99 * 9 FROM tab2
----
-891
-891
-891

onlyif mysql # DIV for integer division: 
query I rowsort label-8190
SELECT DISTINCT 92 DIV - col1 FROM tab1
----
-1
-18
-6

skipif mysql # not compatible
query I rowsort label-8190
SELECT DISTINCT 92 / - col1 FROM tab1
----
-1
-18
-6

query I rowsort
SELECT 50 * col0 * - - col1 FROM tab2
----
117300
246400
251250

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8192
SELECT + col1 AS col0, + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-8192
SELECT + col1 AS col0, + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
1
NULL
21
NULL
81
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 IN ( - 95, col0 + - + ( + - 5 ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8194
SELECT ALL COUNT( * ) + + - 26 AS col1, COUNT( DISTINCT - col1 ) DIV + 72 AS col1 FROM tab0 AS cor0
----
-23
0

skipif mysql # not compatible
query II rowsort label-8194
SELECT ALL COUNT ( * ) + + - 26 AS col1, COUNT ( DISTINCT - col1 ) / + 72 AS col1 FROM tab0 AS cor0
----
-23
0

query I rowsort
SELECT DISTINCT + col0 + + 30 + 80 AS col0 FROM tab0 AS cor0
----
125
197
207

onlyif mysql # DIV for integer division: 
query I rowsort label-8196
SELECT col0 DIV - 86 + 65 FROM tab0
----
64
64
65

skipif mysql # not compatible
query I rowsort label-8196
SELECT col0 / - 86 + 65 FROM tab0
----
64
64
65

query II rowsort
SELECT DISTINCT ( - col0 ) * + + col2 AS col2, col1 AS col1 FROM tab0
----
-705
81
-870
21
-9603
1

query I rowsort
SELECT ALL - col2 + - col0 + + col2 + - col0 FROM tab1
----
-102
-170
-182

onlyif mysql # aggregate syntax: 
query I rowsort label-8199
SELECT + 99 + + + 37 + COUNT( * ) * + + 94 FROM tab2
----
418

skipif mysql # not compatible
query I rowsort label-8199
SELECT + 99 + + + 37 + COUNT ( * ) * + + 94 FROM tab2
----
418

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8200
SELECT + 79 FROM tab2 WHERE + + CAST( NULL AS DECIMAL ) * 99 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8200
SELECT + 79 FROM tab2 WHERE + + CAST ( NULL AS REAL ) * 99 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE + col2 BETWEEN ( - - col1 ) AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col0 = + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 65, - col2 col2 FROM tab1
----
65
-59
65
-68
65
-96

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col2 * + col1 < NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8205
SELECT + + SUM( ALL col1 ) DIV - ( + COUNT( * ) ) FROM tab0 AS cor0
----
-34

skipif mysql # not compatible
query I rowsort label-8205
SELECT + + SUM ( ALL col1 ) / - ( + COUNT ( * ) ) FROM tab0 AS cor0
----
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8206
SELECT CAST( NULL AS SIGNED ) - + SUM( ALL + 16 ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8206
SELECT CAST ( NULL AS INTEGER ) - + SUM ( ALL + 16 ) AS col2 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 36 col1 FROM tab2 cor0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-8208
SELECT COUNT( 30 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8208
SELECT COUNT ( 30 ) AS col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL - ( + - col1 ) AS col0 FROM tab0
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8210
SELECT DISTINCT * FROM tab2 WHERE NOT - 89 * - - col2 >= - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8210
SELECT DISTINCT * FROM tab2 WHERE NOT - 89 * - - col2 >= - - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL - col0 * - 76 * + col2 FROM tab2
----
194560
330600
80408

query III rowsort
SELECT * FROM tab1 WHERE NOT - 15 * col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8213
SELECT col2 * CAST( NULL AS SIGNED ) AS col0 FROM tab2 WHERE NOT ( + - 45 ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8213
SELECT col2 * CAST ( NULL AS INTEGER ) AS col0 FROM tab2 WHERE NOT ( + - 45 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8214
SELECT ALL + col2 DIV 63 + 60 + - 26 - + col0 + + col0 FROM tab1 AS cor0
----
34
35
35

skipif mysql # not compatible
query I rowsort label-8214
SELECT ALL + col2 / 63 + 60 + - 26 - + col0 + + col0 FROM tab1 AS cor0
----
34
35
35

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 * - - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT ( + 7 ) AS col0 FROM tab0 AS cor0
----
7

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE + col1 + + col1 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - - 32 * + col2 col0 FROM tab2 AS cor0
----
139200
33856
81920

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 43 * - col1 < col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8220
SELECT ALL 29 DIV - COUNT( * ) AS col0 FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-8220
SELECT ALL 29 / - COUNT ( * ) AS col0 FROM tab1
----
-9

query I rowsort
SELECT 58 * + 62 AS col0 FROM tab0
----
3596
3596
3596

query I rowsort
SELECT DISTINCT ( + + 94 ) FROM tab2
----
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + col2 + - 40 col2 FROM tab1
----
24
70
75

query I rowsort
SELECT + ( + - 53 ) FROM tab2, tab1 AS cor0
----
9 values hashing to fee5c00ad71c23e23683a32c71fe6e7d

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( - ( + - ( - - 36 ) ) IS NOT NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8226
SELECT + CAST( NULL AS SIGNED ) + + COUNT( * ) + + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8226
SELECT + CAST ( NULL AS INTEGER ) + + COUNT ( * ) + + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - col0 + + 6 FROM tab0 AS cor0
----
-81
-9
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-8228
SELECT COUNT( 29 ) + - 56 + COUNT( * ) FROM tab0 AS cor0
----
-50

skipif mysql # not compatible
query I rowsort label-8228
SELECT COUNT ( 29 ) + - 56 + COUNT ( * ) FROM tab0 AS cor0
----
-50

query I rowsort
SELECT 54 * col0 + + 68 AS col2 FROM tab0 AS cor0
----
4766
5306
878

query I rowsort
SELECT DISTINCT + - 61 * + col1 + + col0 FROM tab1 AS cor0
----
-220
-2776
-803

onlyif mysql # aggregate syntax: 
query I rowsort label-8231
SELECT COUNT( ALL ( - 80 ) ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8231
SELECT COUNT ( ALL ( - 80 ) ) AS col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL - col2 * - + col2 + - 31 * + col0 AS col0 FROM tab0 AS cor0
----
-2597
1744
6794

query I rowsort
SELECT DISTINCT 20 + + - col1 AS col2 FROM tab0 AS cor0
----
-1
-61
19

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8234
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN + - col2 / - CAST( NULL AS SIGNED ) + - 13 + CAST( NULL AS SIGNED ) * + col2 + + + col2 AND + - col1 + + col2 * + col1 * 36
----

skipif mysql # not compatible
query III rowsort label-8234
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN + - col2 / - CAST ( NULL AS INTEGER ) + - 13 + CAST ( NULL AS INTEGER ) * + col2 + + + col2 AND + - col1 + + col2 * + col1 * 36
----

query I rowsort
SELECT DISTINCT - 51 + - + col2 FROM tab2 WHERE - col2 + + col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8236
SELECT + col1 FROM tab1 WHERE + - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8236
SELECT + col1 FROM tab1 WHERE + - CAST ( NULL AS INTEGER ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN col0 AND NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8238
SELECT - ( - 60 ) - col1 AS col1, - col1 DIV + col1 FROM tab1
----
13
-1
46
-1
55
-1

skipif mysql # not compatible
query II rowsort label-8238
SELECT - ( - 60 ) - col1 AS col1, - col1 / + col1 FROM tab1
----
13
-1
46
-1
55
-1

query I rowsort
SELECT DISTINCT + ( + + 42 ) AS col2 FROM tab2
----
42

query I rowsort
SELECT ALL + 90 + - 16 FROM tab0 AS cor0
----
74
74
74

query I rowsort
SELECT + + col0 + + + ( + 60 ) FROM tab1 AS cor0
----
111
145
151

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + - 84 * - 24 AS col0 FROM tab0 AS cor0
----
2016
2016
2016

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE col0 IN ( + col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - col0 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8246
SELECT - 1 * - CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8246
SELECT - 1 * - CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8247
SELECT - COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-8247
SELECT - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL <> NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8248
SELECT ALL MIN( DISTINCT - col1 ) FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-8248
SELECT ALL MIN ( DISTINCT - col1 ) FROM tab2 AS cor0
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8249
SELECT CAST( + - ( + CAST( col0 AS SIGNED ) ) AS SIGNED ) * - + 88 + + + ( - - col2 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-8249
SELECT CAST ( + - ( + CAST ( col0 AS INTEGER ) ) AS INTEGER ) * - + 88 + + + ( - - col2 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col1 + + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8251
SELECT * FROM tab2 WHERE NOT ( + CAST( - 75 AS DECIMAL ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8251
SELECT * FROM tab2 WHERE NOT ( + CAST ( - 75 AS REAL ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-8252
SELECT - col1 DIV 77 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8252
SELECT - col1 / 77 FROM tab0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8253
SELECT DISTINCT + MAX( + col0 ) AS col0 FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-8253
SELECT DISTINCT + MAX ( + col0 ) AS col0 FROM tab0
----
97

query III rowsort
SELECT * FROM tab0 WHERE NOT ( ( NOT NULL < + 92 ) )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE - - col0 + col0 + - - col2 * + 35 IS NULL
----

query I rowsort
SELECT + 64 * - + col2 * col2 + col1 + col2 AS col2 FROM tab2
----
-102283
-215171
-33782

query I rowsort
SELECT + - col2 + - - 5 FROM tab0 cor0
----
-42
-5
-94

query I rowsort
SELECT - col1 + 98 FROM tab0 AS cor0 WHERE NOT 96 NOT BETWEEN NULL AND + 8
----

query I rowsort
SELECT DISTINCT 35 AS col0 FROM tab0 AS cor0 WHERE col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8260
SELECT DISTINCT SUM( + ( + 42 ) ) * + COUNT( * ) + + COUNT( * ) FROM tab1 cor0
----
381

skipif mysql # not compatible
query I rowsort label-8260
SELECT DISTINCT SUM ( + ( + 42 ) ) * + COUNT ( * ) + + COUNT ( * ) FROM tab1 cor0
----
381

query I rowsort
SELECT col2 + - col1 + - - 42 FROM tab0 AS cor0
----
140
31
8

onlyif mysql # DIV for integer division: 
query I rowsort label-8262
SELECT + 93 DIV + col0 FROM tab2
----
1
1
2

skipif mysql # not compatible
query I rowsort label-8262
SELECT + 93 / + col0 FROM tab2
----
1
1
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( col0 ) + + col1 AS col1, - col1 / 66 + + + col1 col1 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + AVG ( DISTINCT col2 ) AS col0 FROM tab0 WHERE NOT - col2 + + - col1 + + 25 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8265
SELECT DISTINCT - MIN( DISTINCT 28 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-28

skipif mysql # not compatible
query I rowsort label-8265
SELECT DISTINCT - MIN ( DISTINCT 28 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-8266
SELECT ALL - + COUNT( DISTINCT - + col1 ) + + 61 FROM tab1 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-8266
SELECT ALL - + COUNT ( DISTINCT - + col1 ) + + 61 FROM tab1 AS cor0
----
58

query I rowsort
SELECT ALL - col2 * + + 50 AS col1 FROM tab1 cor0
----
-2950
-3400
-4800

query I rowsort
SELECT ALL - - col1 * col0 + + col1 + + col1 AS col0 FROM tab2 AS cor0
----
2448
5082
5159

query I rowsort
SELECT - - col1 - + 31 * + - ( + col0 ) + - + 19 + col2 + + col2 * - + col1 FROM tab0 AS cor0
----
-3233
2499
2989

onlyif mysql # aggregate syntax: 
query I rowsort label-8270
SELECT DISTINCT - + 61 + + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-8270
SELECT DISTINCT - + 61 + + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-58

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT + col2 + + 16 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 * + col2 + - 50 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - - col0 + 17 AS col2 FROM tab1 AS cor0
----
102
108
68

query I rowsort
SELECT + col0 + + 12 FROM tab1 AS cor0
----
103
63
97

query I rowsort
SELECT DISTINCT - col1 + col0 + + col1 AS col2 FROM tab1
----
51
85
91

query I rowsort
SELECT col0 + - 29 + col1 FROM tab0
----
67
69
79

onlyif mysql # aggregate syntax: 
query I rowsort label-8277
SELECT - SUM( col2 ) FROM tab2 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8277
SELECT - SUM ( col2 ) FROM tab2 WHERE NULL IS NOT NULL
----
NULL

query II rowsort
SELECT ALL col2 * - col1 + col1 * - - col0 * 49 * + 5 AS col1, - 61 FROM tab0
----
23666
-61
293868
-61
447405
-61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - col2 + 36 col0 FROM tab1
----
36
36
36

query I rowsort
SELECT - col1 * - col1 + 39 FROM tab1
----
2248
235
64

query I rowsort
SELECT - 90 + - col2 AS col0 FROM tab0
----
-100
-137
-189

query I rowsort
SELECT ( + col2 ) + + col2 FROM tab1
----
118
136
192

query I rowsort
SELECT col2 * - col1 + + - col0 FROM tab2
----
-1219
-3144
-3961

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 46 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8285
SELECT ALL 6 * - 13 - - + ( - - COUNT( - + 74 ) ) * + + 93 col0 FROM tab2
----
201

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8285
SELECT ALL 6 * - 13 - - + ( - - COUNT ( - + 74 ) ) * + + 93 col0 FROM tab2
----
201

query I rowsort
SELECT DISTINCT 45 - + col0 * + col1 FROM tab1
----
-380
-4232
-669

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8287
SELECT DISTINCT + 53 AS col0 FROM tab1 WHERE + ( + col2 ) NOT BETWEEN - col2 AND + CAST( NULL AS SIGNED ) * + ( col0 ) * + - col2
----

skipif mysql # not compatible
query I rowsort label-8287
SELECT DISTINCT + 53 AS col0 FROM tab1 WHERE + ( + col2 ) NOT BETWEEN - col2 AND + CAST ( NULL AS INTEGER ) * + ( col0 ) * + - col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 86 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col2 * - col2 * 57 AS col2 FROM tab2 cor0
----
191748
30153
91200

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL <= + col1 + + col2
----

query I rowsort
SELECT + - col2 * - - col1 * ( + 20 ) FROM tab0 AS cor0
----
-1980
-4200
-76140

onlyif mysql # DIV for integer division: 
query I rowsort label-8292
SELECT 63 DIV + col0 + + + col0 AS col1 FROM tab0 cor0
----
19
87
97

skipif mysql # not compatible
query I rowsort label-8292
SELECT 63 / + col0 + + + col0 AS col1 FROM tab0 cor0
----
19
87
97

query II rowsort
SELECT + + col0 + - + col1 AS col1, col0 FROM tab1 AS cor0
----
37
51
44
91
80
85

onlyif mysql # aggregate syntax: 
query I rowsort label-8294
SELECT DISTINCT + MIN( + 73 ) AS col2 FROM tab1 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-8294
SELECT DISTINCT + MIN ( + 73 ) AS col2 FROM tab1 AS cor0
----
73

query I rowsort
SELECT - col2 * - - 88 AS col2 FROM tab1 AS cor0
----
-5192
-5984
-8448

onlyif mysql # aggregate syntax: 
query I rowsort label-8296
SELECT - SUM( + - col1 ) col1 FROM tab0
----
103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8296
SELECT - SUM ( + - col1 ) col1 FROM tab0
----
103

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 61, - col2 col0 FROM tab0
----
61
-10
61
-47
61
-99

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8298
SELECT DISTINCT col0, CAST( NULL AS DECIMAL ) + + + col2 * - - col2 FROM tab0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-8298
SELECT DISTINCT col0, CAST ( NULL AS REAL ) + + + col2 * - - col2 FROM tab0
----
15
NULL
87
NULL
97
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8299
SELECT - 40 DIV - + 49 + 79 - col1 FROM tab2 AS cor0
----
12
2
28

skipif mysql # not compatible
query I rowsort label-8299
SELECT - 40 / - + 49 + 79 - col1 FROM tab2 AS cor0
----
12
2
28

query I rowsort
SELECT ALL + 64 FROM tab1 cor0 WHERE ( NULL ) NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col1 / - col0 AND - col2
----

query I rowsort
SELECT ALL - 19 + + + col1 FROM tab2 AS cor0
----
32
48
58

query I rowsort
SELECT DISTINCT + - col0 FROM tab2 WHERE NOT + col2 <= - col1
----
-46
-64
-75

query III rowsort
SELECT * FROM tab0 WHERE - + 7 > NULL
----

query II rowsort
SELECT + - 39 * + 84, 27 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
18 values hashing to d8d223d582ab0ac423aca0debd370068

onlyif mysql # aggregate syntax: 
query I rowsort label-8306
SELECT 65 + + COUNT( * ) AS col2 FROM tab2
----
68

skipif mysql # not compatible
query I rowsort label-8306
SELECT 65 + + COUNT ( * ) AS col2 FROM tab2
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-8307
SELECT ALL + COUNT( * ) + - COUNT( * ) - - MIN( - 46 ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL > col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8307
SELECT ALL + COUNT ( * ) + - COUNT ( * ) - - MIN ( - 46 ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL > col2
----
NULL

query I rowsort
SELECT col0 + + col0 FROM tab2 AS cor0 WHERE - col2 BETWEEN - 62 AND + col1 * 82 - 74 - col0
----
128
150
92

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8309
SELECT * FROM tab1 AS cor0 WHERE + col0 BETWEEN + 86 AND ( - CAST( - 91 AS SIGNED ) )
----
91
47
68

skipif mysql # not compatible
query III rowsort label-8309
SELECT * FROM tab1 AS cor0 WHERE + col0 BETWEEN + 86 AND ( - CAST ( - 91 AS INTEGER ) )
----
91
47
68

query III rowsort
SELECT * FROM tab0 cor0 WHERE col1 NOT IN ( col0, + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - 81 ) col0 FROM tab0 AS cor0
----
-81
-81
-81

query I rowsort
SELECT DISTINCT - 36 - col1 AS col1 FROM tab1 AS cor0
----
-41
-50
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-8313
SELECT - COUNT( * ) * 75 * 32 AS col1 FROM tab2, tab1 cor0
----
-21600

skipif mysql # not compatible
query I rowsort label-8313
SELECT - COUNT ( * ) * 75 * 32 AS col1 FROM tab2, tab1 cor0
----
-21600

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8314
SELECT DISTINCT - COUNT( * ) DIV 42 AS col0 FROM tab1, tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-8314
SELECT DISTINCT - COUNT ( * ) / 42 AS col0 FROM tab1, tab2 cor0
----
0

query III rowsort
SELECT * FROM tab2 WHERE NULL <> 1
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8316
SELECT - ( - - CAST( NULL AS DECIMAL ) ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8316
SELECT - ( - - CAST ( NULL AS REAL ) ) AS col1 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col0 IN ( + + 33 * 36 + + - col2, col1 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + - col2 NOT BETWEEN 73 AND - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8319
SELECT + COUNT( DISTINCT - + 62 ) AS col1 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8319
SELECT + COUNT ( DISTINCT - + 62 ) AS col1 FROM tab1 AS cor0
----
1

query I rowsort
SELECT col0 * 87 AS col0 FROM tab0 AS cor0
----
1305
7569
8439

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + 11, - col1 col2 FROM tab1 AS cor0
----
-11
-14
-11
-47
-11
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8322
SELECT DISTINCT CAST( NULL AS SIGNED ) / - ( - col2 ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8322
SELECT DISTINCT CAST ( NULL AS INTEGER ) / - ( - col2 ) AS col2 FROM tab0
----
NULL

query I rowsort
SELECT ALL + ( + col1 ) + + 29 AS col2 FROM tab0 AS cor0
----
110
30
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8324
SELECT ALL CAST( AVG ( ALL - + 64 ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-64

skipif mysql # not compatible
query I rowsort label-8324
SELECT ALL CAST ( AVG ( ALL - + 64 ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-64

query III rowsort
SELECT * FROM tab2 WHERE - col0 * + col0 > + - ( - col0 ) OR NOT - - 62 IS NOT NULL
----

query II rowsort
SELECT ALL col1 * - - col1, + ( + 83 ) - + 15 * + col1 + col0 * - 14 * + + col1 AS col2 FROM tab2
----
2601
-33526
4489
-71272
5929
-70064

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8327
SELECT ALL COUNT( * ) DIV + + 74, ( - - 15 ) * + COUNT( * ) AS col0 FROM tab1
----
0
45

skipif mysql # not compatible
query II rowsort label-8327
SELECT ALL COUNT ( * ) / + + 74, ( - - 15 ) * + COUNT ( * ) AS col0 FROM tab1
----
0
45

query I rowsort
SELECT col0 + + ( - - col1 ) AS col0 FROM tab0
----
108
96
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8329
SELECT MIN( - + 23 ) + MAX( ALL - 95 ) FROM tab1
----
-118

skipif mysql # not compatible
query I rowsort label-8329
SELECT MIN ( - + 23 ) + MAX ( ALL - 95 ) FROM tab1
----
-118

query I rowsort
SELECT DISTINCT - + col0 + col1 AS col1 FROM tab0 WHERE NULL IS NULL
----
-66
-96
66

query I rowsort
SELECT ALL - 3 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-3
-3
-3

query I rowsort
SELECT DISTINCT - - col1 * + 76 - 32 + 25 FROM tab0 AS cor0
----
1589
6149
69

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + - ( + col0 ) ) * + col1 - + col1 col1 FROM tab2
----
2295
4851
4958

onlyif mysql # aggregate syntax: 
query I rowsort label-8335
SELECT - COUNT( * ) + + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8335
SELECT - COUNT ( * ) + + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8336
SELECT DISTINCT MIN( DISTINCT col1 ) col2 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8336
SELECT DISTINCT MIN ( DISTINCT col1 ) col2 FROM tab0 AS cor0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8337
SELECT ( - CAST( + MAX( ALL 85 ) AS SIGNED ) ) AS col0 FROM tab0
----
-85

skipif mysql # not compatible
query I rowsort label-8337
SELECT ( - CAST ( + MAX ( ALL 85 ) AS INTEGER ) ) AS col0 FROM tab0
----
-85

query III rowsort
SELECT ALL * FROM tab2 WHERE 94 IN ( 72 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - - col2 >= NULL
----

query I rowsort
SELECT ALL col2 * 6 AS col1 FROM tab0
----
282
594
60

query III rowsort
SELECT * FROM tab2 WHERE NOT - + col0 BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + - 86 + + col1 FROM tab0 WHERE NULL NOT BETWEEN NULL AND - col0
----

query I rowsort
SELECT DISTINCT 98 * + col2 FROM tab2
----
2254
3920
5684

query I rowsort
SELECT + + col0 FROM tab1 AS cor0 WHERE NOT + col2 NOT IN ( - 57, - 50 + + 83 )
----

query I rowsort
SELECT DISTINCT - + 86 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + 35 col2 FROM tab0
----
2835
35
735

onlyif mysql # aggregate syntax: 
query I rowsort label-8347
SELECT DISTINCT - ( - COUNT( * ) ) FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-8347
SELECT DISTINCT - ( - COUNT ( * ) ) FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - ( + - col0 ) ) < NULL
----

query I rowsort
SELECT ALL + 96 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8350
SELECT SUM( ALL + - col2 ) + - SUM( ALL + + ( 42 ) ) + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-352

skipif mysql # not compatible
query I rowsort label-8350
SELECT SUM ( ALL + - col2 ) + - SUM ( ALL + + ( 42 ) ) + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-352

onlyif mysql # aggregate syntax: 
query I rowsort label-8351
SELECT ALL - 14 + + COUNT( * ) - - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-8351
SELECT ALL - 14 + + COUNT ( * ) - - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-8

query I rowsort
SELECT DISTINCT + 70 * col2 + - col0 + - 68 + - - col2 + - col0 * - 0 AS col0 FROM tab1 AS cor0
----
4036
4669
6697

onlyif mysql # aggregate syntax: 
query II rowsort label-8353
SELECT + MAX( ALL - - 1 ) + + 71 AS col0, 15 * SUM( ALL - ( 20 ) ) AS col0 FROM tab2 AS cor0
----
72
-900

skipif mysql # not compatible
query II rowsort label-8353
SELECT + MAX ( ALL - - 1 ) + + 71 AS col0, 15 * SUM ( ALL - ( 20 ) ) AS col0 FROM tab2 AS cor0
----
72
-900

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8354
SELECT ALL - 5 + col0 + - - col2 + + col0 + 1 * - CAST( - col1 AS SIGNED ) FROM tab0 AS cor0
----
153
200
289

skipif mysql # not compatible
query I rowsort label-8354
SELECT ALL - 5 + col0 + - - col2 + + col0 + 1 * - CAST ( - col1 AS INTEGER ) FROM tab0 AS cor0
----
153
200
289

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col2, - 27 - - col2 + - - col1 - col0 + col2 AS col2 FROM tab0
----
15
133
87
-73
97
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + 63 ) * col1 col0 FROM tab1
----
2961
315
882

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8357
SELECT * FROM tab2 WHERE + CAST( col1 AS SIGNED ) <> NULL
----

skipif mysql # not compatible
query III rowsort label-8357
SELECT * FROM tab2 WHERE + CAST ( col1 AS INTEGER ) <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8358
SELECT DISTINCT 10 DIV - col0 AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8358
SELECT DISTINCT 10 / - col0 AS col0 FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8359
SELECT - col1 DIV - col0 * col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8359
SELECT - col1 / - col0 * col2 FROM tab1
----
0
0
0

query II rowsort
SELECT col1 AS col2, - 34 AS col0 FROM tab1
----
14
-34
47
-34
5
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-8361
SELECT + - MAX( - - col1 ) AS col2 FROM tab0 cor0
----
-81

skipif mysql # not compatible
query I rowsort label-8361
SELECT + - MAX ( - - col1 ) AS col2 FROM tab0 cor0
----
-81

query I rowsort
SELECT ALL 76 + col2 FROM tab2
----
116
134
99

onlyif mysql # DIV for integer division: 
query I rowsort label-8363
SELECT DISTINCT - + 73 - + + 25 DIV + 66 + + 19 col1 FROM tab2 AS cor0
----
-54

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8363
SELECT DISTINCT - + 73 - + + 25 / + 66 + + 19 col1 FROM tab2 AS cor0
----
-54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 80 col2 FROM tab0 cor0
----
80
80
80

onlyif mysql # DIV for integer division: 
query I rowsort label-8365
SELECT - col2 DIV - 5 FROM tab0 cor0
----
19
2
9

skipif mysql # not compatible
query I rowsort label-8365
SELECT - col2 / - 5 FROM tab0 cor0
----
19
2
9

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8366
SELECT DISTINCT - col1 AS col2, - col0 * col0 * col2 / + CAST( NULL AS DECIMAL ) FROM tab1
----
-14
NULL
-47
NULL
-5
NULL

skipif mysql # not compatible
query II rowsort label-8366
SELECT DISTINCT - col1 AS col2, - col0 * col0 * col2 / + CAST ( NULL AS REAL ) FROM tab1
----
-14
NULL
-47
NULL
-5
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8367
SELECT 23 AS col0 FROM tab0 WHERE NOT + - col0 / CAST( + col0 AS SIGNED ) + col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8367
SELECT 23 AS col0 FROM tab0 WHERE NOT + - col0 / CAST ( + col0 AS INTEGER ) + col0 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 48 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8369
SELECT ALL + MIN( DISTINCT col0 ) AS col2 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-8369
SELECT ALL + MIN ( DISTINCT col0 ) AS col2 FROM tab2
----
46

query I rowsort
SELECT ALL - col0 * - 2 AS col2 FROM tab2
----
128
150
92

onlyif mysql # aggregate syntax: 
query II rowsort label-8371
SELECT 71 col2, - 56 * - COUNT( DISTINCT col1 ) FROM tab0
----
71
168

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8371
SELECT 71 col2, - 56 * - COUNT ( DISTINCT col1 ) FROM tab0
----
71
168

query I rowsort
SELECT DISTINCT + col0 * - - ( col0 ) AS col0 FROM tab1
----
2601
7225
8281

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8373
SELECT ALL - - col1, - col1 DIV - CAST( + col1 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
51
1
67
1
77
1

skipif mysql # not compatible
query II rowsort label-8373
SELECT ALL - - col1, - col1 / - CAST ( + col1 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
51
1
67
1
77
1

onlyif mysql # aggregate syntax: 
query III rowsort label-8374
SELECT DISTINCT 9 + COUNT( * ) AS col2, AVG ( DISTINCT + + col2 ) col2, - MAX( col2 ) AS col0 FROM tab2 AS cor0 WHERE NOT 13 IS NOT NULL
----
9
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-8374
SELECT DISTINCT 9 + COUNT ( * ) AS col2, AVG ( DISTINCT + + col2 ) col2, - MAX ( col2 ) AS col0 FROM tab2 AS cor0 WHERE NOT 13 IS NOT NULL
----
9
NULL
NULL

query IIIIII rowsort
SELECT * FROM ( tab2 AS cor0 JOIN tab0 AS cor1 ON NOT NULL NOT BETWEEN NULL AND 19 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8376
SELECT + - COUNT( * ) AS col1 FROM ( tab1 cor0 CROSS JOIN tab2 AS cor1 )
----
-9

skipif mysql # not compatible
query I rowsort label-8376
SELECT + - COUNT ( * ) AS col1 FROM ( tab1 cor0 CROSS JOIN tab2 AS cor1 )
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8377
SELECT DISTINCT + ( - MAX( DISTINCT - col0 ) ) AS col0 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-8377
SELECT DISTINCT + ( - MAX ( DISTINCT - col0 ) ) AS col0 FROM tab2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-8378
SELECT COUNT( + col0 ) AS col2 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8378
SELECT COUNT ( + col0 ) AS col2 FROM tab2 cor0
----
3

query I rowsort
SELECT DISTINCT + col2 FROM tab2 AS cor0 WHERE - col1 + col0 >= + 93 + - col0 * + col2
----
23
40
58

onlyif mysql # DIV for integer division: 
query I rowsort label-8380
SELECT ALL - - ( + - ( + + col2 ) ) DIV - + 32 + - - col0 - - col1 DIV - + col2 AS col1 FROM tab1 AS cor0
----
54
86
93

skipif mysql # not compatible
query I rowsort label-8380
SELECT ALL - - ( + - ( + + col2 ) ) / - + 32 + - - col0 - - col1 / - + col2 AS col1 FROM tab1 AS cor0
----
54
86
93

query II rowsort
SELECT ALL col0 + - col0 AS col1, ( + - col1 ) + - - 47 AS col1 FROM tab1 AS cor0
----
0
0
0
33
0
42

query I rowsort
SELECT DISTINCT - - col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8383
SELECT ALL MIN( + CAST( - 72 AS SIGNED ) ) + MAX( ALL 18 ) FROM tab1 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-8383
SELECT ALL MIN ( + CAST ( - 72 AS INTEGER ) ) + MAX ( ALL 18 ) FROM tab1 AS cor0
----
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8384
SELECT ALL - CAST( NULL AS SIGNED ) * COUNT( * ) col1 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8384
SELECT ALL - CAST ( NULL AS INTEGER ) * COUNT ( * ) col1 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8385
SELECT DISTINCT COUNT( * ) + COUNT( * ) col2 FROM tab0
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8385
SELECT DISTINCT COUNT ( * ) + COUNT ( * ) col2 FROM tab0
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-8386
SELECT 84 + + + col0 * col0 DIV - col0 FROM tab0
----
-13
-3
69

skipif mysql # not compatible
query I rowsort label-8386
SELECT 84 + + + col0 * col0 / - col0 FROM tab0
----
-13
-3
69

query I rowsort
SELECT ALL + col2 * - col2 + + - 64 FROM tab2
----
-1664
-3428
-593

onlyif mysql # aggregate syntax: 
query I rowsort label-8388
SELECT + COUNT( * ) + - - 21 FROM tab0
----
24

skipif mysql # not compatible
query I rowsort label-8388
SELECT + COUNT ( * ) + - - 21 FROM tab0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-8389
SELECT DISTINCT COUNT( - + col1 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8389
SELECT DISTINCT COUNT ( - + col1 ) AS col1 FROM tab1
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL <= - 47
----

query I rowsort
SELECT ALL col1 + - + col1 * + col0 FROM tab2
----
-2295
-4851
-4958

onlyif mysql # aggregate syntax: 
query I rowsort label-8392
SELECT COUNT( DISTINCT col1 ) AS col0 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8392
SELECT COUNT ( DISTINCT col1 ) AS col0 FROM tab1 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8393
SELECT DISTINCT - COUNT( * ) + - SUM( - ( + ( col1 ) ) ) FROM tab2 WHERE + - col1 / 12 - 94 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8393
SELECT DISTINCT - COUNT ( * ) + - SUM ( - ( + ( col1 ) ) ) FROM tab2 WHERE + - col1 / 12 - 94 IS NULL
----
NULL

query I rowsort
SELECT 78 - - - col0 - + col1 * - ( + col1 ) FROM tab2
----
2633
4492
5943

onlyif mysql # aggregate syntax: 
query I rowsort label-8395
SELECT COUNT( DISTINCT + 97 ) AS col1 FROM tab1 WHERE NOT col0 IS NULL
----
1

skipif mysql # not compatible
query I rowsort label-8395
SELECT COUNT ( DISTINCT + 97 ) AS col1 FROM tab1 WHERE NOT col0 IS NULL
----
1

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col2 < - col2
----

query II rowsort
SELECT col1, - col0 AS col0 FROM tab2 AS cor0
----
51
-46
67
-75
77
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-8398
SELECT - ( + - COUNT( * ) ) col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8398
SELECT - ( + - COUNT ( * ) ) col2 FROM tab1 AS cor0
----
3

query I rowsort
SELECT + col2 * + col0 AS col1 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col0 AND col0 / + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8400
SELECT DISTINCT 79 DIV + ( - - col0 ) + 40 AS col2 FROM tab0 cor0
----
40
45

skipif mysql # not compatible
query I rowsort label-8400
SELECT DISTINCT 79 / + ( - - col0 ) + 40 AS col2 FROM tab0 cor0
----
40
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8401
SELECT + COUNT( * ) DIV + + SUM( ALL + + col1 ) AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8401
SELECT + COUNT ( * ) / + + SUM ( ALL + + col1 ) AS col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - - col0 * - col2 AS col1 FROM tab2 WHERE NOT 61 IS NOT NULL
----

query I rowsort
SELECT + 72 + - + 28 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

query I rowsort
SELECT - + ( + ( 17 ) ) FROM tab0 AS cor0
----
-17
-17
-17

query I rowsort
SELECT + 26 * - 15 AS col0 FROM tab0 AS cor0
----
-390
-390
-390

query I rowsort
SELECT ALL + - col0 * - col0 + 25 AS col2 FROM tab1 AS cor0
----
2626
7250
8306

onlyif mysql # aggregate syntax: 
query I rowsort label-8407
SELECT DISTINCT - ( - ( + + COUNT( * ) ) ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8407
SELECT DISTINCT - ( - ( + + COUNT ( * ) ) ) AS col2 FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT + col2 * + + col1 AS col2 FROM tab1 cor0
----
1344
295
3196

query I rowsort
SELECT ALL + col2 + 61 + + col1 * - 75 + col0 + col1 FROM tab1 AS cor0
----
-165
-3258
-828

query I rowsort
SELECT - col0 + + 42 * - - 95 FROM tab2 AS cor0
----
3915
3926
3944

query I rowsort
SELECT ALL + col0 FROM tab1 AS cor0 WHERE ( NULL < ( - - col0 ) )
----

query I rowsort
SELECT DISTINCT + - col0 / - col2 + - col0 FROM tab1 WHERE col1 / + + col1 BETWEEN NULL AND + + col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8413
SELECT ALL COUNT( * ) * + COUNT( DISTINCT + col1 ) - - AVG ( DISTINCT col1 ) FROM tab1 WHERE NULL NOT IN ( col0, col0 * 92, + col0, - CAST( NULL AS SIGNED ), - col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8413
SELECT ALL COUNT ( * ) * + COUNT ( DISTINCT + col1 ) - - AVG ( DISTINCT col1 ) FROM tab1 WHERE NULL NOT IN ( col0, col0 * 92, + col0, - CAST ( NULL AS INTEGER ), - col0 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8414
SELECT DISTINCT + col0 - col2 * col2 DIV - ( - 32 ) AS col0 FROM tab0
----
-209
-54
84

skipif mysql # not compatible
query I rowsort label-8414
SELECT DISTINCT + col0 - col2 * col2 / - ( - 32 ) AS col0 FROM tab0
----
-209
-54
84

onlyif mysql # aggregate syntax: 
query I rowsort label-8415
SELECT ALL ( + SUM( ALL col2 ) ) FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-8415
SELECT ALL ( + SUM ( ALL col2 ) ) FROM tab2
----
121

query III rowsort
SELECT * FROM tab1 WHERE NULL = - col2 + + 23
----

query I rowsort
SELECT ALL - + 60 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-60
-60
-60

query I rowsort
SELECT ALL - col1 - + 88 FROM tab2
----
-139
-155
-165

onlyif mysql # aggregate syntax: 
query I rowsort label-8419
SELECT DISTINCT + COUNT( ALL - 3 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8419
SELECT DISTINCT + COUNT ( ALL - 3 ) FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8420
SELECT - CAST( + - col0 AS SIGNED ) - + col2 FROM tab1
----
-45
23
26

skipif mysql # not compatible
query I rowsort label-8420
SELECT - CAST ( + - col0 AS INTEGER ) - + col2 FROM tab1
----
-45
23
26

query I rowsort
SELECT + 83 - + col2 AS col2 FROM tab0
----
-16
36
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8422
SELECT DISTINCT + col1 + 80 - + col0 + + CAST( NULL AS SIGNED ) * col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8422
SELECT DISTINCT + col1 + 80 - + col0 + + CAST ( NULL AS INTEGER ) * col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + - col0 + + col0 - + + col0 FROM tab1 AS cor0
----
-51
-85
-91

query I rowsort
SELECT ALL + 35 + + 13 AS col1 FROM tab1 AS cor0
----
48
48
48

onlyif mysql # aggregate syntax: 
query I rowsort label-8425
SELECT DISTINCT + 87 * - COUNT( * ) + - ( + - 51 ) + - 58 - - 13 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL AND col0 + - col1 <= NULL
----
6

skipif mysql # not compatible
query I rowsort label-8425
SELECT DISTINCT + 87 * - COUNT ( * ) + - ( + - 51 ) + - 58 - - 13 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL AND col0 + - col1 <= NULL
----
6

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 20 IS NULL
----

query I rowsort
SELECT ALL + 46 * col2 AS col2 FROM tab2
----
1058
1840
2668

query II rowsort
SELECT - col0 * + col1 + col2, 15 + - col2 * - 91 AS col0 FROM tab2 cor0
----
-2323
2108
-4888
3655
-4967
5293

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE 38 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8430
SELECT - COUNT( + + 40 ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8430
SELECT - COUNT ( + + 40 ) AS col0 FROM tab2 AS cor0
----
-3

query II rowsort
SELECT + + col2 AS col1, col2 + - col1 * col1 - - + 27 AS col1 FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 53 col2 FROM tab0 AS cor0
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8433
SELECT COUNT( * ), - 74 * CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
3
NULL

skipif mysql # not compatible
query II rowsort label-8433
SELECT COUNT ( * ), - 74 * CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
3
NULL

query I rowsort
SELECT + ( + - 70 ) AS col2 FROM tab1
----
-70
-70
-70

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8435
SELECT 44 AS col2, - col1 + - CAST( + col2 AS SIGNED ) FROM tab2
----
44
-117
44
-125
44
-74

skipif mysql # not compatible
query II rowsort label-8435
SELECT 44 AS col2, - col1 + - CAST ( + col2 AS INTEGER ) FROM tab2
----
44
-117
44
-125
44
-74

query I rowsort
SELECT ALL + col2 * + col2 * col1 FROM tab0
----
178929
2100
9801

query I rowsort
SELECT - 69 * - + col2 AS col2 FROM tab2
----
1587
2760
4002

query II rowsort
SELECT ALL - col1 AS col2, col0 * + col1 * - col0 FROM tab2
----
-51
-107916
-67
-376875
-77
-315392

query I rowsort
SELECT - - 41 + - 66 FROM tab2 AS cor0
----
-25
-25
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8440
SELECT ALL MIN( - CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8440
SELECT ALL MIN ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT DISTINCT - col0 col0, - col1 AS col2, col0 FROM tab0 AS cor0
----
9 values hashing to 1afcde0ba961761d9998c6b1f9dcaf06

query II rowsort
SELECT ALL col2 AS col1, col0 + - col0 FROM tab1 AS cor0
----
59
0
68
0
96
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 90 col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-8444
SELECT - COUNT( + - col2 ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8444
SELECT - COUNT ( + - col2 ) AS col2 FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8445
SELECT DISTINCT + col2 AS col2 FROM tab2 AS cor0 WHERE + CAST( NULL AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8445
SELECT DISTINCT + col2 AS col2 FROM tab2 AS cor0 WHERE + CAST ( NULL AS REAL ) IS NOT NULL
----

query I rowsort
SELECT ALL - - 52 + - - col2 FROM tab1 AS cor0
----
111
120
148

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 45 * + 99 - + - ( + 65 ) * + 53 col0, + col1 FROM tab2 AS cor0
----
-1010
51
-1010
67
-1010
77

query I rowsort
SELECT - 24 * + 59 AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-1416
-1416
-1416

query I rowsort
SELECT DISTINCT - + 40 FROM tab0 WHERE NOT - - 43 + 16 + ( - col0 ) * - col2 IS NOT NULL
----

query I rowsort
SELECT ALL col2 - - - col1 AS col1 FROM tab1
----
21
54
82

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8451
SELECT - col1 + + ( + CAST( NULL AS SIGNED ) ) + - - col2 * + col0 + - col0, col0 FROM tab1
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-8451
SELECT - col1 + + ( + CAST ( NULL AS INTEGER ) ) + - - col2 * + col0 + - col0, col0 FROM tab1
----
NULL
51
NULL
85
NULL
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8452
SELECT - ( - MIN( + - col2 ) ) + COUNT( - col1 ) FROM tab1
----
-93

skipif mysql # not compatible
query I rowsort label-8452
SELECT - ( - MIN ( + - col2 ) ) + COUNT ( - col1 ) FROM tab1
----
-93

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8453
SELECT DISTINCT * FROM tab2 WHERE NOT ( NOT + CAST( NULL AS SIGNED ) IS NOT NULL )
----

skipif mysql # not compatible
query III rowsort label-8453
SELECT DISTINCT * FROM tab2 WHERE NOT ( NOT + CAST ( NULL AS INTEGER ) IS NOT NULL )
----

query I rowsort
SELECT DISTINCT + 18 * - 55 FROM tab0 AS cor0
----
-990

query I rowsort
SELECT - col2 + - 91 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8456
SELECT ALL + col0 DIV + - ( - col0 ) AS col1, + 59 * - col1 AS col1 FROM tab0 AS cor0
----
1
-1239
1
-4779
1
-59

skipif mysql # not compatible
query II rowsort label-8456
SELECT ALL + col0 / + - ( - col0 ) AS col1, + 59 * - col1 AS col1 FROM tab0 AS cor0
----
1
-1239
1
-4779
1
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-8457
SELECT ALL + SUM( col0 ) AS col1 FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-8457
SELECT ALL + SUM ( col0 ) AS col1 FROM tab2
----
185

query I rowsort
SELECT ALL col0 + 89 AS col2 FROM tab2
----
135
153
164

onlyif mysql # aggregate syntax: 
query I rowsort label-8459
SELECT DISTINCT - MIN( + col0 ) + COUNT( * ) FROM tab2
----
-43

skipif mysql # not compatible
query I rowsort label-8459
SELECT DISTINCT - MIN ( + col0 ) + COUNT ( * ) FROM tab2
----
-43

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) NOT BETWEEN + 26 AND ( NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( 26 * - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - col2 col2 FROM tab0
----
-196
-62
-97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8463
SELECT ALL * FROM tab2 WHERE NOT CAST( NULL AS SIGNED ) * 69 NOT IN ( col1 + 85 )
----

skipif mysql # not compatible
query III rowsort label-8463
SELECT ALL * FROM tab2 WHERE NOT CAST ( NULL AS INTEGER ) * 69 NOT IN ( col1 + 85 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8464
SELECT + 59 + + CAST( - col2 AS DECIMAL ) * + col0 AS col2 FROM tab0 WHERE - 86 * col0 BETWEEN - 65 AND - col2
----

skipif mysql # not compatible
query I rowsort label-8464
SELECT + 59 + + CAST ( - col2 AS REAL ) * + col0 AS col2 FROM tab0 WHERE - 86 * col0 BETWEEN - 65 AND - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8465
SELECT - MAX( ( + 66 ) ) col0 FROM tab2
----
-66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8465
SELECT - MAX ( ( + 66 ) ) col0 FROM tab2
----
-66

query I rowsort
SELECT + 68 FROM tab2 WHERE NULL IS NULL
----
68
68
68

query I rowsort
SELECT 94 AS col1 FROM tab2 WHERE NOT ( ( + col0 ) ) IN ( - col0 * col1 )
----
94
94
94

query III rowsort
SELECT * FROM tab1 WHERE ( - 95 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8469
SELECT + COUNT( * ) + 64 col0 FROM tab2
----
67

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8469
SELECT + COUNT ( * ) + 64 col0 FROM tab2
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-8470
SELECT - COUNT( ALL + ( 56 ) ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-8470
SELECT - COUNT ( ALL + ( 56 ) ) FROM tab0
----
-3

query I rowsort
SELECT ALL col0 + - col1 FROM tab1 WHERE - col0 = col1 * + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8472
SELECT - COUNT( ( + col2 ) ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-8472
SELECT - COUNT ( ( + col2 ) ) FROM tab2
----
-3

query I rowsort
SELECT ALL col1 + + ( - col1 ) FROM tab1
----
0
0
0

query I rowsort
SELECT - 22 FROM tab1 WHERE ( col1 ) IS NOT NULL
----
-22
-22
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-8475
SELECT ALL + 72 + COUNT( col0 ) AS col0 FROM tab1
----
75

skipif mysql # not compatible
query I rowsort label-8475
SELECT ALL + 72 + COUNT ( col0 ) AS col0 FROM tab1
----
75

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NULL ) IN ( 40 )
----

query III rowsort
SELECT * FROM tab2 WHERE col1 NOT BETWEEN + ( 73 ) * - col0 + - col1 AND col1
----

query I rowsort
SELECT DISTINCT + ( + col0 ) * - col2 AS col2 FROM tab1 WHERE NOT NULL IN ( col2 )
----

query I rowsort
SELECT - ( ( 31 ) ) AS col2 FROM tab0 AS cor0
----
-31
-31
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-8480
SELECT ALL 97 + + SUM( col1 ) FROM tab0 AS cor0
----
200

skipif mysql # not compatible
query I rowsort label-8480
SELECT ALL 97 + + SUM ( col1 ) FROM tab0 AS cor0
----
200

query I rowsort
SELECT 38 * + 88 + ( 83 ) FROM tab2 WHERE NULL <> NULL
----

query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE NOT - 21 = ( col0 )
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8483
SELECT ALL 64 * + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2
----
576

skipif mysql # not compatible
query I rowsort label-8483
SELECT ALL 64 * + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2
----
576

query I rowsort
SELECT - 45 FROM tab0 WHERE col2 NOT BETWEEN + 63 AND NULL
----
-45
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-8485
SELECT ALL COUNT( + 79 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8485
SELECT ALL COUNT ( + 79 ) AS col0 FROM tab2
----
3

query I rowsort
SELECT 40 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col1 + - col1 * 90 FROM tab1 AS cor0
----
-1274
-4277
-455

onlyif mysql # aggregate syntax: 
query I rowsort label-8488
SELECT COUNT( DISTINCT + 16 ) + 34 AS col1 FROM tab0 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-8488
SELECT COUNT ( DISTINCT + 16 ) + 34 AS col1 FROM tab0 AS cor0
----
35

query I rowsort
SELECT 48 FROM tab1 AS cor0 WHERE ( NULL ) IN ( - col0 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col2 < ( + ( + 35 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8491
SELECT DISTINCT + + CAST( + 73 AS SIGNED ) col0 FROM tab1 AS cor0
----
73

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8491
SELECT DISTINCT + + CAST ( + 73 AS INTEGER ) col0 FROM tab1 AS cor0
----
73

query I rowsort
SELECT DISTINCT - 20 + + col0 FROM tab0 AS cor0
----
-5
67
77

query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE NULL NOT IN ( ( - 47 ) )
----

query I rowsort
SELECT DISTINCT + + 77 + + 11 FROM tab1 AS cor0
----
88

query I rowsort
SELECT + ( - 41 ) AS col1 FROM tab0 AS cor0
----
-41
-41
-41

query I rowsort
SELECT DISTINCT - - col2 + - 28 AS col2 FROM tab2 AS cor0
----
-5
12
30

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 90 / col2 + col2 < col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8498
SELECT - COUNT( ALL 11 ) AS col2 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8498
SELECT - COUNT ( ALL 11 ) AS col2 FROM tab1 cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL BETWEEN ( - ( col1 ) ) AND - 42
----

query III rowsort
SELECT ALL * FROM tab0 WHERE 56 > NULL
----

query I rowsort
SELECT ALL ( 88 ) - col0 FROM tab0
----
-9
1
73

query I rowsort
SELECT 37 - - col1 FROM tab1
----
42
51
84

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col2 + col2 = col1 + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - - 28 + col2 * - 5 col0 FROM tab0
----
-1
-126
-466

query III rowsort
SELECT ALL * FROM tab1 WHERE + 85 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8506
SELECT DISTINCT + col1 - + + CAST( - 77 AS SIGNED ) + - col0 col1 FROM tab1
----
-3
33
40

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8506
SELECT DISTINCT + col1 - + + CAST ( - 77 AS INTEGER ) + - col0 col1 FROM tab1
----
-3
33
40

query I rowsort
SELECT col0 - + col2 + col0 AS col1 FROM tab0
----
-17
164
95

query I rowsort
SELECT col0 * - 36 - 90 AS col0 FROM tab1
----
-1926
-3150
-3366

query I rowsort
SELECT col2 + + col2 + 45 * col2 FROM tab0
----
2209
4653
470

onlyif mysql # aggregate syntax: 
query I rowsort label-8510
SELECT + + SUM( ALL 69 ) * 4 FROM tab2 AS cor0
----
828

skipif mysql # not compatible
query I rowsort label-8510
SELECT + + SUM ( ALL 69 ) * 4 FROM tab2 AS cor0
----
828

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL IN ( 51 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col2 FROM tab1 WHERE NOT col1 * + col1 BETWEEN 87 AND NULL
----
59

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col1 + col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8514
SELECT - - COUNT( - col1 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8514
SELECT - - COUNT ( - col1 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL + + 36 AS col2 FROM tab1 AS cor0
----
36
36
36

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8516
SELECT ALL col2 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( col0 - - + col2 * CAST( NULL AS DECIMAL ) ) AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-8516
SELECT ALL col2 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( col0 - - + col2 * CAST ( NULL AS REAL ) ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8517
SELECT DISTINCT + MAX( - + col0 ) * + COUNT( 13 ) FROM tab0 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-8517
SELECT DISTINCT + MAX ( - + col0 ) * + COUNT ( 13 ) FROM tab0 AS cor0
----
-45

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 4 >= + 6
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL >= + 87
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8520
SELECT + 18 DIV - - col1 col2 FROM tab1 AS cor0
----
0
1
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8520
SELECT + 18 / - - col1 col2 FROM tab1 AS cor0
----
0
1
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8521
SELECT DISTINCT - col0 FROM tab2 AS cor0 WHERE NOT col0 * CAST( col1 AS SIGNED ) >= 42 - + 39 / + 4
----

skipif mysql # not compatible
query I rowsort label-8521
SELECT DISTINCT - col0 FROM tab2 AS cor0 WHERE NOT col0 * CAST ( col1 AS INTEGER ) >= 42 - + 39 / + 4
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8522
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE NOT col1 = + + 31 * + col1
----
-3

skipif mysql # not compatible
query I rowsort label-8522
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT col1 = + + 31 * + col1
----
-3

query I rowsort
SELECT DISTINCT - col2 * col1 * col2 AS col0 FROM tab1
----
-129024
-17405
-217328

query II rowsort
SELECT col1 * + col1 AS col2, - 12 * + + col1 FROM tab1
----
196
-168
2209
-564
25
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8525
SELECT col2 / ( - + CAST( NULL AS SIGNED ) ) * col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8525
SELECT col2 / ( - + CAST ( NULL AS INTEGER ) ) * col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8526
SELECT ALL + 46 * - MIN( DISTINCT col1 ) AS col0 FROM tab1
----
-230

skipif mysql # not compatible
query I rowsort label-8526
SELECT ALL + 46 * - MIN ( DISTINCT col1 ) AS col0 FROM tab1
----
-230

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8527
SELECT CAST( NULL AS SIGNED ) * + + col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8527
SELECT CAST ( NULL AS INTEGER ) * + + col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 15 + 47 FROM tab0 WHERE NOT col1 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8529
SELECT DISTINCT 43 DIV col1 * - col0 AS col1 FROM tab0
----
-174
-4171
0

skipif mysql # not compatible
query I rowsort label-8529
SELECT DISTINCT 43 / col1 * - col0 AS col1 FROM tab0
----
-174
-4171
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8530
SELECT ALL - 19 DIV + 47, - COUNT( * ) AS col1 FROM tab2
----
0
-3

skipif mysql # not compatible
query II rowsort label-8530
SELECT ALL - 19 / + 47, - COUNT ( * ) AS col1 FROM tab2
----
0
-3

query I rowsort
SELECT DISTINCT + 13 + - + 45 + - + 77 * - - 8 + - col2 AS col1 FROM tab1
----
-707
-716
-744

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( - ( - + col2 ) / - col1 ) = ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 98 col2 FROM tab1 AS cor0 WHERE ( ( - col1 ) > + col0 - col2 * col1 )
----
98
98
98

query I rowsort
SELECT DISTINCT - ( + + col0 ) * - 48 + + col2 * 65 AS col1 FROM tab2 AS cor0
----
3703
5672
7370

query I rowsort
SELECT DISTINCT + ( + 94 ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8536
SELECT 20 * SUM( + col2 ) FROM tab0
----
3120

skipif mysql # not compatible
query I rowsort label-8536
SELECT 20 * SUM ( + col2 ) FROM tab0
----
3120

query I rowsort
SELECT DISTINCT - - 24 AS col2 FROM tab2 AS cor0
----
24

query I rowsort
SELECT ALL ( - - 42 ) AS col1 FROM tab2 cor0
----
42
42
42

query I rowsort
SELECT + - col1 + col2 - + ( + col2 ) FROM tab0 AS cor0
----
-1
-21
-81

query I rowsort
SELECT - 18 + - - col2 * 96 * - 11 + 26 - + col1 AS col1 FROM tab0 AS cor0
----
-104537
-10573
-49705

query I rowsort
SELECT DISTINCT - ( 56 ) FROM tab0
----
-56

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - + 88 + col0 < - col0 * + - col2 + + ( + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-8543
SELECT 90, MIN( col2 ) AS col2 FROM tab1
----
90
59

skipif mysql # not compatible
query II rowsort label-8543
SELECT 90, MIN ( col2 ) AS col2 FROM tab1
----
90
59

onlyif mysql # aggregate syntax: 
query I rowsort label-8544
SELECT + COUNT( - 38 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8544
SELECT + COUNT ( - 38 ) FROM tab2
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col1, + 92 + ( + - col1 ) AS col1 FROM tab2
----
-23
41
-40
15
-58
25

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL IS NOT NULL OR ( NULL ) NOT IN ( 9 / col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8547
SELECT - + ( - CAST( NULL AS SIGNED ) ) * + SUM( - col1 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8547
SELECT - + ( - CAST ( NULL AS INTEGER ) ) * + SUM ( - col1 ) FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT col1, col1 FROM tab2 cor0
----
51
51
67
67
77
77

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 51 / col0 > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8550
SELECT ( + col1 ) DIV ( - col2 ) * - - 31 AS col0 FROM tab2 AS cor0
----
-31
-31
-62

skipif mysql # not compatible
query I rowsort label-8550
SELECT ( + col1 ) / ( - col2 ) * - - 31 AS col0 FROM tab2 AS cor0
----
-31
-31
-62

query I rowsort
SELECT - + col0 * - 1 AS col1 FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT col1 + - 60 AS col0 FROM tab1 AS cor0 WHERE NOT + col1 * col2 < + - col1
----
-13
-46
-55

query I rowsort
SELECT - 6 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e92b2679faac7be63701967e3f0c0934

query I rowsort
SELECT ALL + col0 AS col2 FROM tab1 AS cor0 WHERE + col2 = + + col1 * + - col1
----

query I rowsort
SELECT col0 + - - 12 FROM tab1 AS cor0
----
103
63
97

query I rowsort
SELECT - - 39 + + + ( + - col2 ) + + + 41 * + 47 FROM tab0 cor0
----
1867
1919
1956

query I rowsort
SELECT col1 + - 0 + + col1 AS col1 FROM tab2 AS cor0
----
102
134
154

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8558
SELECT DISTINCT - col1 * + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8558
SELECT DISTINCT - col1 * + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8559
SELECT - + 70 + - COUNT( * ) * ( - 51 ) FROM tab1 AS cor0
----
83

skipif mysql # not compatible
query I rowsort label-8559
SELECT - + 70 + - COUNT ( * ) * ( - 51 ) FROM tab1 AS cor0
----
83

query I rowsort
SELECT + 76 + 55 FROM tab2 AS cor0
----
131
131
131

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8561
SELECT col2 + - col2 - col0 * + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8561
SELECT col2 + - col2 - col0 * + CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8562
SELECT * FROM tab0 AS cor0 WHERE NOT 70 >= ( - col1 * + ( - col1 ) * + 20 + - CAST( col2 AS SIGNED ) )
----
15
81
47
87
21
10

skipif mysql # not compatible
query III rowsort label-8562
SELECT * FROM tab0 AS cor0 WHERE NOT 70 >= ( - col1 * + ( - col1 ) * + 20 + - CAST ( col2 AS INTEGER ) )
----
15
81
47
87
21
10

onlyif mysql # aggregate syntax: 
query II rowsort label-8563
SELECT 39, 11 + - COUNT( * ) AS col0 FROM tab1
----
39
8

skipif mysql # not compatible
query II rowsort label-8563
SELECT 39, 11 + - COUNT ( * ) AS col0 FROM tab1
----
39
8

query I rowsort
SELECT DISTINCT + 85 * 54 AS col0 FROM tab0
----
4590

query I rowsort
SELECT DISTINCT - + 43 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - 56 + - 44 FROM tab0 AS cor0
----
-100

query I rowsort
SELECT DISTINCT - + 47 AS col1 FROM tab0 WHERE NOT - 24 / + col2 IS NULL
----
-47

query I rowsort
SELECT ALL col1 - col0 * col1 AS col0 FROM tab2
----
-2295
-4851
-4958

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 * ( col0 ) * + - col1 + + - col1 col0 FROM tab2 AS cor0
----
-197197
-291517
-54009

query I rowsort
SELECT - 86 * col2 FROM tab1 AS cor0
----
-5074
-5848
-8256

query I rowsort
SELECT - col2 FROM tab2 WHERE NOT + col0 + + col2 NOT IN ( + - 79 / - 37 ) AND ( NULL ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE + - 38 IS NULL
----

query I rowsort
SELECT ALL + col1 * + 78 FROM tab2
----
3978
5226
6006

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8574
SELECT * FROM tab0 WHERE NOT + col0 <> col1 + - + col0 + + col2 / - - col0 - - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8574
SELECT * FROM tab0 WHERE NOT + col0 <> col1 + - + col0 + + col2 / - - col0 - - - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8575
SELECT ALL - MAX( + - 32 ) * + 76 AS col2 FROM tab2
----
2432

skipif mysql # not compatible
query I rowsort label-8575
SELECT ALL - MAX ( + - 32 ) * + 76 AS col2 FROM tab2
----
2432

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 <> 32
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 32 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8578
SELECT - - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NOT + col2 + - col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8578
SELECT - - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NOT + col2 + - col2 IS NOT NULL
----

query II rowsort
SELECT ALL 3, - 88 + col1 AS col0 FROM tab2
----
3
-11
3
-21
3
-37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 88, col2 * col2 col1 FROM tab1
----
88
3481
88
4624
88
9216

query II rowsort
SELECT ALL col0, 54 AS col0 FROM tab0 AS cor0
----
15
54
87
54
97
54

onlyif mysql # aggregate syntax: 
query I rowsort label-8582
SELECT ALL + - 73 + COUNT( * ) FROM tab2 AS cor0
----
-70

skipif mysql # not compatible
query I rowsort label-8582
SELECT ALL + - 73 + COUNT ( * ) FROM tab2 AS cor0
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-8583
SELECT ALL 68 + + + COUNT( * ) AS col1 FROM tab1 AS cor0
----
71

skipif mysql # not compatible
query I rowsort label-8583
SELECT ALL 68 + + + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
71

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - col1 ) > NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE - 15 NOT BETWEEN NULL AND col2 * 76
----

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab0 AS cor0 WHERE NULL = + 27
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - ( - col0 ) + 46 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + 19 + - + col2 AS col2 FROM tab0 AS cor0
----
-28
-80
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8589
SELECT DISTINCT + ( MAX( + 9 ) ) AS col2 FROM tab2 cor0
----
9

skipif mysql # not compatible
query I rowsort label-8589
SELECT DISTINCT + ( MAX ( + 9 ) ) AS col2 FROM tab2 cor0
----
9

query II rowsort
SELECT ALL + col0 AS col1, - col2 + col1 FROM tab1 AS cor0
----
51
-82
85
-54
91
-21

query I rowsort
SELECT + 16 + + - 70 FROM tab0
----
-54
-54
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-8592
SELECT ALL + MAX( DISTINCT + 88 ) + 55 AS col1 FROM tab1
----
143

skipif mysql # not compatible
query I rowsort label-8592
SELECT ALL + MAX ( DISTINCT + 88 ) + 55 AS col1 FROM tab1
----
143

query I rowsort
SELECT col1 * - 9 + 49 FROM tab0
----
-140
-680
40

onlyif mysql # aggregate syntax: 
query I rowsort label-8594
SELECT DISTINCT COUNT( * ) FROM tab1 WHERE NOT col0 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-8594
SELECT DISTINCT COUNT ( * ) FROM tab1 WHERE NOT col0 IS NULL
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-8595
SELECT ALL + COUNT( * ) - - 47 AS col0, COUNT( * ) FROM tab0 cor0
----
50
3

skipif mysql # not compatible
query II rowsort label-8595
SELECT ALL + COUNT ( * ) - - 47 AS col0, COUNT ( * ) FROM tab0 cor0
----
50
3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col0 * + 3 IS NULL
----

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 JOIN tab2 AS cor1 ON NOT ( NOT ( NULL ) IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8598
SELECT DISTINCT + - COUNT( * ) + 93 FROM tab1 cor0
----
90

skipif mysql # not compatible
query I rowsort label-8598
SELECT DISTINCT + - COUNT ( * ) + 93 FROM tab1 cor0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-8599
SELECT COUNT( * ) * - + 37 AS col1 FROM tab2 AS cor0
----
-111

skipif mysql # not compatible
query I rowsort label-8599
SELECT COUNT ( * ) * - + 37 AS col1 FROM tab2 AS cor0
----
-111

query II rowsort
SELECT - ( - 35 ) * - col2, - col0 AS col1 FROM tab0 cor0
----
-1645
-15
-3465
-97
-350
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8601
SELECT DISTINCT - - col2 * - + CAST( + - col1 AS SIGNED ) AS col0 FROM tab1 cor0
----
1344
295
3196

skipif mysql # not compatible
query I rowsort label-8601
SELECT DISTINCT - - col2 * - + CAST ( + - col1 AS INTEGER ) AS col0 FROM tab1 cor0
----
1344
295
3196

query I rowsort
SELECT DISTINCT + ( - - ( + col0 ) ) FROM tab2 cor0
----
46
64
75

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL >= - col2 * - col2 * + col1 + - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col0 FROM tab0 AS cor0 WHERE NOT ( - 76 + - col2 * + col2 ) IS NULL
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8605
SELECT - CAST( NULL AS SIGNED ), col2 AS col0 FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-8605
SELECT - CAST ( NULL AS INTEGER ), col2 AS col0 FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96

query I rowsort
SELECT - 55 * + - col2 FROM tab2 AS cor0
----
1265
2200
3190

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8607
SELECT - 58 DIV - COUNT( * ) FROM tab0 AS cor0
----
19

skipif mysql # not compatible
query I rowsort label-8607
SELECT - 58 / - COUNT ( * ) FROM tab0 AS cor0
----
19

query I rowsort
SELECT ALL ( 63 ) AS col1 FROM tab2
----
63
63
63

query III rowsort
SELECT ALL * FROM tab2 WHERE + + 34 / + + 86 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL >= col2 / - 39
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8611
SELECT DISTINCT + 24 * + SUM( DISTINCT - 77 ) AS col1 FROM tab1
----
-1848

skipif mysql # not compatible
query I rowsort label-8611
SELECT DISTINCT + 24 * + SUM ( DISTINCT - 77 ) AS col1 FROM tab1
----
-1848

query I rowsort
SELECT DISTINCT - - 14 FROM tab1 cor0
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8613
SELECT DISTINCT - CAST( - + col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-8613
SELECT DISTINCT - CAST ( - + col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
15
87
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8614
SELECT DISTINCT + COUNT( * ) - ( 16 ) + + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-8614
SELECT DISTINCT + COUNT ( * ) - ( 16 ) + + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

query I rowsort
SELECT DISTINCT + ( 63 ) FROM tab1, tab0 AS cor0
----
63

query I rowsort
SELECT + 24 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 + - 94 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8618
SELECT + 57 + - COUNT( * ) * - COUNT( * ) AS col0 FROM tab0 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-8618
SELECT + 57 + - COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
66

query I rowsort
SELECT - + col0 * 32 + + 62 - - - col1 FROM tab2 AS cor0
----
-1461
-2063
-2405

query I rowsort
SELECT 99 + - + col1 FROM tab2 AS cor0
----
22
32
48

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 94 NOT IN ( 71, 42 + 16 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 58 FROM tab2 AS cor0 WHERE NULL IS NULL
----
58
58
58

query I rowsort
SELECT - col2 + - - col2 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - - 1 + - + col2 AS col1 FROM tab2 AS cor0
----
-22
-39
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8625
SELECT DISTINCT 47 + - - CAST( - col0 AS SIGNED ) FROM tab1 AS cor0
----
-38
-4
-44

skipif mysql # not compatible
query I rowsort label-8625
SELECT DISTINCT 47 + - - CAST ( - col0 AS INTEGER ) FROM tab1 AS cor0
----
-38
-4
-44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + col1 * - col2 col2 FROM tab1 AS cor0
----
-1330
-290
-3149

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8627
SELECT ALL + CAST( + 4 AS SIGNED ) FROM tab0 AS cor0
----
4
4
4

skipif mysql # not compatible
query I rowsort label-8627
SELECT ALL + CAST ( + 4 AS INTEGER ) FROM tab0 AS cor0
----
4
4
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 col0, + col1 * + col1 FROM tab0 AS cor0
----
1
1
21
441
81
6561

query I rowsort
SELECT DISTINCT col2 + 19 FROM tab0 AS cor0
----
118
29
66

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8630
SELECT ALL + CAST( NULL AS SIGNED ), + col1 + - 56 AS col2 FROM tab2
----
NULL
-5
NULL
11
NULL
21

skipif mysql # not compatible
query II rowsort label-8630
SELECT ALL + CAST ( NULL AS INTEGER ), + col1 + - 56 AS col2 FROM tab2
----
NULL
-5
NULL
11
NULL
21

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL >= - - col2
----

query II rowsort
SELECT DISTINCT + 61, + col0 FROM tab0
----
61
15
61
87
61
97

query I rowsort
SELECT 81 FROM tab2 WHERE NULL NOT BETWEEN NULL AND ( - 50 + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2, + col1 col0 FROM tab2 AS cor0
----
23
51
40
77
58
67

query I rowsort
SELECT DISTINCT - - col1 * - + col2 FROM tab1 AS cor0
----
-1344
-295
-3196

query I rowsort
SELECT DISTINCT + 17 + col0 AS col2 FROM tab0 AS cor0
----
104
114
32

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8637
SELECT ALL * FROM tab2 cor0 WHERE - 48 >= - - col2 * + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8637
SELECT ALL * FROM tab2 cor0 WHERE - 48 >= - - col2 * + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL - ( - - 87 ) - + 28 FROM tab2
----
-115
-115
-115

query I rowsort
SELECT ALL + ( + + 47 ) AS col0 FROM tab0 AS cor0
----
47
47
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8640
SELECT + 27 * - + CAST( NULL AS SIGNED ) AS col2, COUNT( * ) FROM tab2 AS cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-8640
SELECT + 27 * - + CAST ( NULL AS INTEGER ) AS col2, COUNT ( * ) FROM tab2 AS cor0
----
NULL
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8641
SELECT ALL - + 14 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8641
SELECT ALL - + 14 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8642
SELECT DISTINCT + COUNT( * ) col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8642
SELECT DISTINCT + COUNT ( * ) col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8643
SELECT DISTINCT - COUNT( * ) DIV 19 + 45 FROM tab1 cor0
----
45

skipif mysql # not compatible
query I rowsort label-8643
SELECT DISTINCT - COUNT ( * ) / 19 + 45 FROM tab1 cor0
----
45

query II rowsort
SELECT ALL - col2 AS col2, 68 FROM tab1
----
-59
68
-68
68
-96
68

query I rowsort
SELECT DISTINCT + col1 * + 76 FROM tab0
----
1596
6156
76

query II rowsort
SELECT 65 AS col1, col0 AS col1 FROM tab1
----
65
51
65
85
65
91

query I rowsort
SELECT - 23 * - 46 FROM tab1
----
1058
1058
1058

onlyif mysql # DIV for integer division: 
query I rowsort label-8648
SELECT DISTINCT + col0 DIV + + col1 AS col2 FROM tab1
----
1
17
3

skipif mysql # not compatible
query I rowsort label-8648
SELECT DISTINCT + col0 / + + col1 AS col2 FROM tab1
----
1
17
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8649
SELECT ALL COUNT( * ) * + COUNT( * ) * + 14 AS col1 FROM tab2
----
126

skipif mysql # not compatible
query I rowsort label-8649
SELECT ALL COUNT ( * ) * + COUNT ( * ) * + 14 AS col1 FROM tab2
----
126

query II rowsort
SELECT col2 AS col2, + col2 * - - 16 AS col2 FROM tab1
----
59
944
68
1088
96
1536

onlyif mysql # aggregate syntax: 
query I rowsort label-8651
SELECT ( MIN( - ( + ( - col2 ) ) ) ) * - + SUM( - 28 ) col0 FROM tab2
----
1932

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8651
SELECT ( MIN ( - ( + ( - col2 ) ) ) ) * - + SUM ( - 28 ) col0 FROM tab2
----
1932

query III rowsort
SELECT * FROM tab1 WHERE + col2 < + 20
----

query I rowsort
SELECT ALL 21 FROM tab2 AS cor0 WHERE NULL IS NULL
----
21
21
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8654
SELECT - + COUNT( * ) + - 94 + - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8654
SELECT - + COUNT ( * ) + - 94 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8655
SELECT DISTINCT + - col2 + + CAST( - col1 AS SIGNED ) * - + 19 FROM tab1 cor0
----
170
36
825

skipif mysql # not compatible
query I rowsort label-8655
SELECT DISTINCT + - col2 + + CAST ( - col1 AS INTEGER ) * - + 19 FROM tab1 cor0
----
170
36
825

query II rowsort
SELECT + col1 + - col1 AS col1, col1 AS col1 FROM tab2 AS cor0
----
0
51
0
67
0
77

query I rowsort
SELECT DISTINCT col1 + + col1 * - col1 FROM tab2 AS cor0
----
-2550
-4422
-5852

query I rowsort
SELECT DISTINCT col0 * - 79 AS col0 FROM tab1 AS cor0
----
-4029
-6715
-7189

query I rowsort
SELECT 41 + - col2 AS col2 FROM tab2
----
-17
1
18

query I rowsort
SELECT DISTINCT + col0 + + ( - + col2 ) FROM tab0
----
-2
-32
77

onlyif mysql # DIV for integer division: 
query I rowsort label-8661
SELECT ALL 30 - - 95 + col0 + - 5 DIV col0 FROM tab0
----
140
212
222

skipif mysql # not compatible
query I rowsort label-8661
SELECT ALL 30 - - 95 + col0 + - 5 / col0 FROM tab0
----
140
212
222

onlyif mysql # aggregate syntax: 
query I rowsort label-8662
SELECT DISTINCT - MAX( DISTINCT + - 5 ) FROM tab2
----
5

skipif mysql # not compatible
query I rowsort label-8662
SELECT DISTINCT - MAX ( DISTINCT + - 5 ) FROM tab2
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8663
SELECT ( - 72 ) + COUNT( * ) FROM tab2
----
-69

skipif mysql # not compatible
query I rowsort label-8663
SELECT ( - 72 ) + COUNT ( * ) FROM tab2
----
-69

query I rowsort
SELECT + ( col0 ) + - - col1 FROM tab0
----
108
96
98

query I rowsort
SELECT 89 + + col0 FROM tab0
----
104
176
186

query I rowsort
SELECT - col0 * + - col0 FROM tab1 AS cor0
----
2601
7225
8281

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8667
SELECT col2 - col2 * - CAST( NULL AS SIGNED ) + - 90 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8667
SELECT col2 - col2 * - CAST ( NULL AS INTEGER ) + - 90 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8668
SELECT ALL - - 48 * 38 FROM tab2 WHERE ( col1 / + CAST( NULL AS SIGNED ) / + + col0 NOT BETWEEN - + col1 AND + - col1 )
----

skipif mysql # not compatible
query I rowsort label-8668
SELECT ALL - - 48 * 38 FROM tab2 WHERE ( col1 / + CAST ( NULL AS INTEGER ) / + + col0 NOT BETWEEN - + col1 AND + - col1 )
----

query I rowsort
SELECT - 75 * + col0 FROM tab2
----
-3450
-4800
-5625

query I rowsort
SELECT col0 * + ( - + col1 ) - col2 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
-4345
-484
-810

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8671
SELECT - 6 * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8671
SELECT - 6 * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col1 + col2 BETWEEN - 25 + col2 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8673
SELECT ALL CAST( + 42 AS SIGNED ) FROM tab1 AS cor0
----
42
42
42

skipif mysql # not compatible
query I rowsort label-8673
SELECT ALL CAST ( + 42 AS INTEGER ) FROM tab1 AS cor0
----
42
42
42

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8674
SELECT ( - - 10 ) DIV - CAST( + 93 AS SIGNED ) - - CAST( - - col2 AS SIGNED ) DIV col2 AS col0 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8674
SELECT ( - - 10 ) / - CAST ( + 93 AS INTEGER ) - - CAST ( - - col2 AS INTEGER ) / col2 AS col0 FROM tab2 AS cor0
----
1
1
1

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 / - 30 * 25 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT AVG ( - col1 ) + - 25 FROM tab2 WHERE NOT NULL = ( NULL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8677
SELECT ALL + col2 * CAST( + 5 AS SIGNED ), col2 AS col0 FROM tab2
----
115
23
200
40
290
58

skipif mysql # not compatible
query II rowsort label-8677
SELECT ALL + col2 * CAST ( + 5 AS INTEGER ), col2 AS col0 FROM tab2
----
115
23
200
40
290
58

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) BETWEEN ( col1 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8679
SELECT ALL * FROM tab2 WHERE NOT col1 - col0 * 10 * - col0 / + col0 <> col0 * + + col2 * CAST( NULL AS SIGNED ) * + col1
----

skipif mysql # not compatible
query III rowsort label-8679
SELECT ALL * FROM tab2 WHERE NOT col1 - col0 * 10 * - col0 / + col0 <> col0 * + + col2 * CAST ( NULL AS INTEGER ) * + col1
----

query I rowsort
SELECT DISTINCT + ( ( + col2 ) ) * + ( + col0 ) FROM tab1
----
4896
5015
6188

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 45 col2 FROM tab2 WHERE NOT + col2 + - col1 IS NULL
----
45
45
45

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 * col0 * - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col2 * - 88 AS col1 FROM tab2
----
-2024
-3520
-5104

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 56 + + col2 col1, ( - + col1 ) col2 FROM tab0 AS cor0
----
-46
-21
-9
-81
43
-1

query I rowsort
SELECT - - 30 AS col0 FROM tab2 AS cor0 WHERE - 71 - col0 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8686
SELECT ALL COUNT( * ) col0 FROM tab2 cor0 WHERE col2 + col2 + + - col2 * + - col0 IS NOT NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8686
SELECT ALL COUNT ( * ) col0 FROM tab2 cor0 WHERE col2 + col2 + + - col2 * + - col0 IS NOT NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8687
SELECT + CAST( NULL AS SIGNED ) AS col2, + col1 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-8687
SELECT + CAST ( NULL AS INTEGER ) AS col2, + col1 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 - 23 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 cor0 WHERE col1 / + + ( - + col2 ) = ( + - 47 )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8690
SELECT ALL col2 + - CAST( - 43 AS SIGNED ) * 1 DIV col0 + + 81 * - 26 FROM tab0 AS cor0
----
-2007
-2057
-2096

skipif mysql # not compatible
query I rowsort label-8690
SELECT ALL col2 + - CAST ( - 43 AS INTEGER ) * 1 / col0 + + 81 * - 26 FROM tab0 AS cor0
----
-2007
-2057
-2096

query II rowsort
SELECT - col1 AS col2, col1 * + - col0 FROM tab1 AS cor0
----
-14
-714
-47
-4277
-5
-425

query I rowsort
SELECT DISTINCT 72 - - - col0 - - - 28 FROM tab2
----
-2
-20
-31

query I rowsort
SELECT DISTINCT col1 * - - col1 * ( + ( col1 ) ) AS col2 FROM tab1
----
103823
125
2744

query I rowsort
SELECT DISTINCT ( + 25 ) AS col1 FROM tab1
----
25

query I rowsort
SELECT + 38 + + + 46 FROM tab2 AS cor0
----
84
84
84

onlyif mysql # aggregate syntax: 
query I rowsort label-8696
SELECT ALL - + SUM( + 56 ) + - - 47 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-457

skipif mysql # not compatible
query I rowsort label-8696
SELECT ALL - + SUM ( + 56 ) + - - 47 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-457

onlyif mysql # aggregate syntax: 
query I rowsort label-8697
SELECT DISTINCT + + COUNT( ALL - + 95 ) AS col1 FROM tab0 cor0 CROSS JOIN tab0 cor1
----
9

skipif mysql # not compatible
query I rowsort label-8697
SELECT DISTINCT + + COUNT ( ALL - + 95 ) AS col1 FROM tab0 cor0 CROSS JOIN tab0 cor1
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8698
SELECT - CAST( NULL AS SIGNED ) * + + COUNT( - col0 ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8698
SELECT - CAST ( NULL AS INTEGER ) * + + COUNT ( - col0 ) AS col0 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - - col0 col1 FROM tab1 AS cor0
----
2601
7225
8281

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 64 col0 FROM tab1 cor0
----
-64
-64
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-8701
SELECT 65 * + COUNT( * ) FROM tab0 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-8701
SELECT 65 * + COUNT ( * ) FROM tab0 AS cor0
----
195

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 = col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 * col2 - col2 - - + col1 >= 27
----

query I rowsort
SELECT DISTINCT - col2 * 79 AS col0 FROM tab0
----
-3713
-7821
-790

onlyif mysql # aggregate syntax: 
query I rowsort label-8705
SELECT - COUNT( ALL + - 56 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-8705
SELECT - COUNT ( ALL + - 56 ) FROM tab2
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8706
SELECT + ( + - 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-8706
SELECT + ( + - CAST ( NULL AS INTEGER ) ) col1 FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT + col1 + - 81 AS col0, col0 AS col1 FROM tab0
----
-60
87
-80
97
0
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
46
64
75

query I rowsort
SELECT + col0 + + 42 + col2 FROM tab0
----
104
139
238

onlyif mysql # DIV for integer division: 
query I rowsort label-8710
SELECT + - 67 DIV + - col1 + col0 + ( + + col0 ) AS col2 FROM tab1 AS cor0
----
106
183
183

skipif mysql # not compatible
query I rowsort label-8710
SELECT + - 67 / + - col1 + col0 + ( + + col0 ) AS col2 FROM tab1 AS cor0
----
106
183
183

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN + - 55 * + + 85 AND + 10
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8712
SELECT ALL - CAST( - col1 AS SIGNED ) AS col1 FROM tab0 WHERE NOT + + col1 < + col0
----
81

skipif mysql # not compatible
query I rowsort label-8712
SELECT ALL - CAST ( - col1 AS INTEGER ) AS col1 FROM tab0 WHERE NOT + + col1 < + col0
----
81

query III rowsort
SELECT * FROM tab1 WHERE 60 / + + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8714
SELECT DISTINCT MAX( - 63 ) + - + 1 FROM tab0 cor0
----
-64

skipif mysql # not compatible
query I rowsort label-8714
SELECT DISTINCT MAX ( - 63 ) + - + 1 FROM tab0 cor0
----
-64

query III rowsort
SELECT * FROM tab1 cor0 WHERE - col2 > + + col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8716
SELECT ALL - SUM( ALL - 94 ) + CAST( + - 86 AS SIGNED ) col1 FROM tab0 AS cor0
----
196

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8716
SELECT ALL - SUM ( ALL - 94 ) + CAST ( + - 86 AS INTEGER ) col1 FROM tab0 AS cor0
----
196

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 72 <= NULL
----

query I rowsort
SELECT ALL + col2 - col1 * + ( + col0 ) - 86 FROM tab0 AS cor0
----
-1254
-1903
-84

query I rowsort
SELECT DISTINCT - + col2 * + + col2 FROM tab0 WHERE - col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8720
SELECT 41 + - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8720
SELECT 41 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + 69 FROM tab1 WHERE NOT + - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8722
SELECT ALL COUNT( * ) col2 FROM tab2 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8722
SELECT ALL COUNT ( * ) col2 FROM tab2 WHERE NULL IS NULL
----
3

query I rowsort
SELECT ALL 50 - ( - col2 ) FROM tab1
----
109
118
146

onlyif mysql # aggregate syntax: 
query II rowsort label-8724
SELECT ALL + COUNT( * ), 65 AS col1 FROM tab0 AS cor0
----
3
65

skipif mysql # not compatible
query II rowsort label-8724
SELECT ALL + COUNT ( * ), 65 AS col1 FROM tab0 AS cor0
----
3
65

onlyif mysql # aggregate syntax: 
query I rowsort label-8725
SELECT + COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( NOT + - col0 IS NOT NULL )
----
3

skipif mysql # not compatible
query I rowsort label-8725
SELECT + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( NOT + - col0 IS NOT NULL )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8726
SELECT 91 * - COUNT( DISTINCT - - 5 ) AS col0 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-8726
SELECT 91 * - COUNT ( DISTINCT - - 5 ) AS col0 FROM tab1 AS cor0
----
-91

query I rowsort
SELECT DISTINCT + + ( 97 ) FROM tab2 AS cor0
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8728
SELECT CAST( + + COUNT( ALL + col1 ) 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-8728
SELECT CAST ( + + COUNT ( ALL + col1 ) AS INTEGER ) col1 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8729
SELECT COUNT( DISTINCT + 22 ) FROM tab2 cor0
----
1

skipif mysql # not compatible
query I rowsort label-8729
SELECT COUNT ( DISTINCT + 22 ) FROM tab2 cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8730
SELECT + MIN( DISTINCT + col0 ) AS col0 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-8730
SELECT + MIN ( DISTINCT + col0 ) AS col0 FROM tab1 AS cor0
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-8731
SELECT - 52 DIV - 76 * + + 62 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8731
SELECT - 52 / - 76 * + + 62 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col1 + + + 8 FROM tab0 AS cor0
----
29
89
9

query I rowsort
SELECT ALL 73 * + - 25 FROM tab2
----
-1825
-1825
-1825

query I rowsort
SELECT col0 * + ( - - col1 ) FROM tab2
----
2346
4928
5025

query I rowsort
SELECT ALL - col2 FROM tab1 WHERE NOT NULL >= col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8736
SELECT * FROM tab2 WHERE ( + - col0 ) < + 74 / + - col1 * + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8736
SELECT * FROM tab2 WHERE ( + - col0 ) < + 74 / + - col1 * + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8737
SELECT ALL - + MIN( - col0 ) col1 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8737
SELECT ALL - + MIN ( - col0 ) col1 FROM tab1 AS cor0
----
91

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN 57 AND NULL
----

query I rowsort
SELECT DISTINCT col1 * 41 + + + col0 + col2 AS col2 FROM tab2 AS cor0
----
2160
2880
3261

query I rowsort
SELECT ALL col0 * col1 + - - 79 * + - col0 FROM tab1 AS cor0
----
-2912
-3315
-6290

onlyif mysql # aggregate syntax: 
query I rowsort label-8741
SELECT DISTINCT COUNT( - col1 ) col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8741
SELECT DISTINCT COUNT ( - col1 ) col0 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8742
SELECT DISTINCT + 8 + - - MIN( ALL + col2 ) AS col1 FROM tab1 AS cor0
----
67

skipif mysql # not compatible
query I rowsort label-8742
SELECT DISTINCT + 8 + - - MIN ( ALL + col2 ) AS col1 FROM tab1 AS cor0
----
67

query III rowsort
SELECT * FROM tab1 WHERE ( - 95 ) <> NULL
----

query I rowsort
SELECT ALL 94 * - 20 + + + 82 * - + col0 * - col1 FROM tab2 AS cor0
----
190492
402216
410170

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8745
SELECT COUNT( * ) DIV - + 82 AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8745
SELECT COUNT ( * ) / - + 82 AS col1 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8746
SELECT - - COUNT( * ) * - + ( + - 53 ) AS col2 FROM tab1 AS cor0
----
159

skipif mysql # not compatible
query I rowsort label-8746
SELECT - - COUNT ( * ) * - + ( + - 53 ) AS col2 FROM tab1 AS cor0
----
159

onlyif mysql # DIV for integer division: 
query II rowsort label-8747
SELECT - col2 DIV + - 43 AS col0, - col0 FROM tab0 cor0
----
0
-87
1
-15
2
-97

skipif mysql # not compatible
query II rowsort label-8747
SELECT - col2 / + - 43 AS col0, - col0 FROM tab0 cor0
----
0
-87
1
-15
2
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 66 + + col1 col1 FROM tab1 AS cor0
----
113
71
80

query I rowsort
SELECT + 34 * - 81 FROM tab2 AS cor0
----
-2754
-2754
-2754

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 * + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 41 * col1 FROM tab2 AS cor0
----
2091
2747
3157

query II rowsort
SELECT col2, col2 AS col0 FROM tab0 AS cor0
----
10
10
47
47
99
99

query I rowsort
SELECT - col1 - - - ( - col1 ) FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT 19 + + col1 FROM tab2 AS cor0
----
70
86
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8755
SELECT ALL + COUNT( * ) - + COUNT( * ) AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8755
SELECT ALL + COUNT ( * ) - + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
0

query II rowsort
SELECT ALL 91 - - col2, col2 FROM tab1
----
150
59
159
68
187
96

query I rowsort
SELECT ALL col1 * + 79 AS col2 FROM tab1
----
1106
3713
395

query I rowsort
SELECT - 65 * - - 16 FROM tab0
----
-1040
-1040
-1040

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8759
SELECT + 13 * 44 AS col2, + COUNT( * ) DIV 19 * + + SUM( - col0 ) FROM tab1
----
572
0

skipif mysql # not compatible
query II rowsort label-8759
SELECT + 13 * 44 AS col2, + COUNT ( * ) / 19 * + + SUM ( - col0 ) FROM tab1
----
572
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8760
SELECT DISTINCT - + COUNT( * ) DIV 98 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8760
SELECT DISTINCT - + COUNT ( * ) / 98 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL + col0 FROM tab2 AS cor0 WHERE NOT NULL < col2
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN 88 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8763
SELECT ALL + - MAX( DISTINCT col0 ) FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-8763
SELECT ALL + - MAX ( DISTINCT col0 ) FROM tab0 AS cor0
----
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 99 col2 FROM tab1 AS cor0
----
99

query II rowsort
SELECT DISTINCT - ( + col2 ), 36 AS col1 FROM tab0 AS cor0
----
-10
36
-47
36
-99
36

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8766
SELECT ALL * FROM tab0 WHERE - + CAST( + col1 AS SIGNED ) > col1
----

skipif mysql # not compatible
query III rowsort label-8766
SELECT ALL * FROM tab0 WHERE - + CAST ( + col1 AS INTEGER ) > col1
----

query I rowsort
SELECT DISTINCT - 7 * - col0 * - ( 29 ) FROM tab2
----
-12992
-15225
-9338

onlyif mysql # aggregate syntax: 
query I rowsort label-8768
SELECT DISTINCT - 3 * + COUNT( * ) FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-8768
SELECT DISTINCT - 3 * + COUNT ( * ) FROM tab1 AS cor0
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-8769
SELECT ALL + col2 DIV + + col1 AS col1 FROM tab1 AS cor0
----
1
11
6

skipif mysql # not compatible
query I rowsort label-8769
SELECT ALL + col2 / + + col1 AS col1 FROM tab1 AS cor0
----
1
11
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + 88 ) col2 FROM tab0 AS cor0
----
88
88
88

query I rowsort
SELECT ALL - + ( col0 ) * col0 + + col1 - + 70 AS col0 FROM tab0 AS cor0
----
-214
-7618
-9478

onlyif mysql # aggregate syntax: 
query II rowsort label-8772
SELECT + 78 AS col0, COUNT( * ) - 90 AS col2 FROM tab2 AS cor0
----
78
-87

skipif mysql # not compatible
query II rowsort label-8772
SELECT + 78 AS col0, COUNT ( * ) - 90 AS col2 FROM tab2 AS cor0
----
78
-87

query I rowsort
SELECT DISTINCT col1 * - 40 + + - col1 FROM tab1
----
-1927
-205
-574

query I rowsort
SELECT 1 + + 24 AS col0 FROM tab2
----
25
25
25

onlyif mysql # aggregate syntax: 
query I rowsort label-8775
SELECT ALL - COUNT( ALL col1 ) col2 FROM tab1
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8775
SELECT ALL - COUNT ( ALL col1 ) col2 FROM tab1
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-8776
SELECT col2 + - col1 DIV col1 AS col0 FROM tab0
----
46
9
98

skipif mysql # not compatible
query I rowsort label-8776
SELECT col2 + - col1 / col1 AS col0 FROM tab0
----
46
9
98

query I rowsort
SELECT - ( - + 26 ) + - + col1 AS col0 FROM tab1
----
-21
12
21

query I rowsort
SELECT ALL 31 * - col1 + + col2 AS col2 FROM tab2 AS cor0
----
-1558
-2019
-2347

query I rowsort
SELECT ALL - 36 * + 66 + col0 AS col2 FROM tab2 cor0
----
-2301
-2312
-2330

query I rowsort
SELECT DISTINCT col1 * 16 + + - 49 AS col1 FROM tab1
----
175
31
703

query III rowsort
SELECT * FROM tab1 WHERE col2 * + - ( - col0 ) + + ( - + col2 ) * col2 + - 79 + + - col1 = 10
----

query III rowsort
SELECT * FROM tab2 WHERE - + col0 + - 11 + col1 < + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + 53 + - 7 + - 11 AS col2, + col0 FROM tab2 AS cor0
----
35
46
35
64
35
75

query I rowsort
SELECT ALL 25 * - - 31 AS col0 FROM tab0 cor0
----
775
775
775

query II rowsort
SELECT ALL + col0 * - 40 + - - col0 AS col1, + col2 + - - col2 AS col0 FROM tab2 AS cor0
----
-1794
46
-2496
80
-2925
116

query II rowsort
SELECT 66 AS col1, - 93 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
66
-93
66
-93
66
-93

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE + col2 - - col2 IS NOT NULL
----
1
21
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - - 55 col1 FROM tab2 AS cor0
----
-3
15
32

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 < + - col2 * - - 37
----

query I rowsort
SELECT DISTINCT + ( - + 90 ) AS col1 FROM tab1 AS cor0
----
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-8791
SELECT ALL - col2 * col0 DIV - col1 + + - col1 + + - col0 - col1 FROM tab0 AS cor0
----
-169
-88
9504

skipif mysql # not compatible
query I rowsort label-8791
SELECT ALL - col2 * col0 / - col1 + + - col1 + + - col0 - col1 FROM tab0 AS cor0
----
-169
-88
9504

query II rowsort
SELECT DISTINCT - col0 AS col2, - col2 FROM tab1
----
-51
-96
-85
-59
-91
-68

query II rowsort
SELECT col2 AS col2, 49 + - 49 AS col1 FROM tab1
----
59
0
68
0
96
0

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col1 - + - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col0 * - + 54 AS col1 FROM tab2
----
-2484
-3456
-4050

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8796
SELECT + col2 * + CAST( NULL AS SIGNED ) AS col2, col1 * - - col1 FROM tab1 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query II rowsort label-8796
SELECT + col2 * + CAST ( NULL AS INTEGER ) AS col2, col1 * - - col1 FROM tab1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE ( - 30 * + + col0 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-8798
SELECT - + 86 * - col2 DIV col2 FROM tab2 AS cor0
----
86
86
86

skipif mysql # not compatible
query I rowsort label-8798
SELECT - + 86 * - col2 / col2 FROM tab2 AS cor0
----
86
86
86

query I rowsort
SELECT + col2 * - 27 * - 9 FROM tab0 AS cor0
----
11421
24057
2430

onlyif mysql # aggregate syntax: 
query I rowsort label-8800
SELECT DISTINCT + 67 * - + COUNT( * ) FROM tab1 AS cor0
----
-201

skipif mysql # not compatible
query I rowsort label-8800
SELECT DISTINCT + 67 * - + COUNT ( * ) FROM tab1 AS cor0
----
-201

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - col1 - + col0 col2 FROM tab0 AS cor0
----
-528
-6576
-98

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 79 - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col2 AS col1 FROM tab0 WHERE NOT NULL <> - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8804
SELECT ALL - 82 DIV col0 * col0 AS col1 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-8804
SELECT ALL - 82 / col0 * col0 AS col1 FROM tab2
----
-46
-64
-75

query I rowsort
SELECT DISTINCT 86 * - ( - col1 ) + - 71 FROM tab2 AS cor0
----
4315
5691
6551

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 51 NOT IN ( 9 * - col0 )
----

query I rowsort
SELECT - 39 * - 42 + + - 63 FROM tab1 AS cor0
----
1575
1575
1575

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 * - col2 + - col0 * + col1 IS NOT NULL
----

query I rowsort
SELECT + - 62 + + 36 + col1 FROM tab1 AS cor0
----
-12
-21
21

query I rowsort
SELECT - 92 * - + col2 + - col1 FROM tab1 cor0
----
5423
6209
8818

query I rowsort
SELECT DISTINCT col1 + 22 AS col2 FROM tab0 AS cor0
----
103
23
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8812
SELECT + SUM( ALL + - col2 ) * - 81 * CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8812
SELECT + SUM ( ALL + - col2 ) * - 81 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + col2 FROM tab1 AS cor0 WHERE NOT 37 >= + 79 * - + col2
----

query II rowsort
SELECT + + 53 * + - 96 AS col1, col2 * col0 FROM tab0 AS cor0
----
-5088
705
-5088
870
-5088
9603

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8815
SELECT CAST( - 89 AS SIGNED ) col0 FROM tab2
----
-89
-89
-89

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8815
SELECT CAST ( - 89 AS INTEGER ) col0 FROM tab2
----
-89
-89
-89

query I rowsort
SELECT - - col0 FROM tab0 WHERE NULL < + 55
----

query II rowsort
SELECT ALL + ( + col2 ) + - col2, col2 FROM tab1
----
0
59
0
68
0
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col2 FROM tab0 WHERE NOT col1 + + col0 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8819
SELECT - CAST( 47 AS SIGNED ) FROM tab1
----
-47
-47
-47

skipif mysql # not compatible
query I rowsort label-8819
SELECT - CAST ( 47 AS INTEGER ) FROM tab1
----
-47
-47
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-8820
SELECT DISTINCT + 35 DIV - 42 + - col1 + - + col0 DIV 83 * - 82 * + 34 FROM tab1 AS cor0
----
-14
2741
2783

skipif mysql # not compatible
query I rowsort label-8820
SELECT DISTINCT + 35 / - 42 + - col1 + - + col0 / 83 * - 82 * + 34 FROM tab1 AS cor0
----
-14
2741
2783

onlyif mysql # aggregate syntax: 
query I rowsort label-8821
SELECT + + COUNT( * ) col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8821
SELECT + + COUNT ( * ) col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query II rowsort
SELECT DISTINCT + col0 AS col1, col0 AS col2 FROM tab1 WHERE NOT ( NOT + 94 - 31 >= - col2 )
----
51
51
85
85
91
91

query I rowsort
SELECT DISTINCT - - ( + - col0 ) FROM tab1 cor0
----
-51
-85
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + - 43 + - ( - col0 ) col0 FROM tab2 cor0
----
2024
2816
3300

query I rowsort
SELECT ALL + - col2 - + 12 - col2 * + 52 AS col0 FROM tab2 AS cor0 WHERE NOT - col2 IS NULL
----
-1231
-2132
-3086

onlyif mysql # aggregate syntax: 
query I rowsort label-8826
SELECT DISTINCT + + MAX( DISTINCT + 88 ) AS col2 FROM tab2 AS cor0
----
88

skipif mysql # not compatible
query I rowsort label-8826
SELECT DISTINCT + + MAX ( DISTINCT + 88 ) AS col2 FROM tab2 AS cor0
----
88

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col2 AND + col0 + col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8828
SELECT ALL + MAX( CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8828
SELECT ALL + MAX ( CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8829
SELECT ALL - - COUNT( - + CAST( + + col2 AS SIGNED ) ) AS col1 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8829
SELECT ALL - - COUNT ( - + CAST ( + + col2 AS INTEGER ) ) AS col1 FROM tab1 cor0
----
3

query I rowsort
SELECT col2 AS col0 FROM tab0 WHERE NOT - col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 - + col1 BETWEEN NULL AND col0
----

query I rowsort
SELECT DISTINCT + 82 * col0 FROM tab1
----
4182
6970
7462

onlyif mysql # DIV for integer division: 
query I rowsort label-8833
SELECT ALL - col1 DIV - 23 FROM tab1
----
0
0
2

skipif mysql # not compatible
query I rowsort label-8833
SELECT ALL - col1 / - 23 FROM tab1
----
0
0
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8834
SELECT COUNT( * ) * - - 17 AS col1 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-8834
SELECT COUNT ( * ) * - - 17 AS col1 FROM tab1
----
51

query I rowsort
SELECT col2 * + - col1 * - col0 AS col1 FROM tab1
----
25075
290836
68544

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) > 89
----

query I rowsort
SELECT ALL - 95 * - col2 + + col2 FROM tab0 AS cor0
----
4512
9504
960

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8838
SELECT DISTINCT + col0 * - CAST( - 78 AS SIGNED ) FROM tab1 AS cor0
----
3978
6630
7098

skipif mysql # not compatible
query I rowsort label-8838
SELECT DISTINCT + col0 * - CAST ( - 78 AS INTEGER ) FROM tab1 AS cor0
----
3978
6630
7098

onlyif mysql # DIV for integer division: 
query I rowsort label-8839
SELECT ALL - col2 DIV + 31 FROM tab1 AS cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-8839
SELECT ALL - col2 / + 31 FROM tab1 AS cor0
----
-1
-2
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + col2 * col0 * 77 col0 FROM tab0
----
-5828130
-71724807
-814275

query II rowsort
SELECT DISTINCT col2 AS col1, + 41 FROM tab2
----
23
41
40
41
58
41

query I rowsort
SELECT + 6 * - - 4 AS col0 FROM tab2
----
24
24
24

query I rowsort
SELECT DISTINCT + 67 * + col1 + - col2 + - - col2 * - + 8 AS col1 FROM tab1
----
-196
2537
74

onlyif mysql # aggregate syntax: 
query I rowsort label-8844
SELECT DISTINCT - ( - - MIN( DISTINCT + 13 ) ) AS col0 FROM tab2
----
-13

skipif mysql # not compatible
query I rowsort label-8844
SELECT DISTINCT - ( - - MIN ( DISTINCT + 13 ) ) AS col0 FROM tab2
----
-13

query I rowsort
SELECT - 72 * - - col0 FROM tab0
----
-1080
-6264
-6984

query II rowsort
SELECT - col1 AS col0, col1 - + + 60 FROM tab1
----
-14
-46
-47
-13
-5
-55

query I rowsort
SELECT DISTINCT + col0 + + 39 AS col0 FROM tab0 AS cor0
----
126
136
54

query I rowsort
SELECT DISTINCT - - 3 AS col0 FROM tab2 AS cor0 WHERE col0 IS NULL
----

query I rowsort
SELECT - col0 * + + 33 * - col1 FROM tab1 AS cor0
----
14025
141141
23562

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 + - - 98 * - col2 >= + - col1
----

query I rowsort
SELECT + + 96 + - - 99 AS col2 FROM tab1 AS cor0
----
195
195
195

query I rowsort
SELECT ALL + 16 + + + col0 * + 71 * + col1 * + + col1 AS col0 FROM tab0 cor0
----
2724073
6903
6987481

query III rowsort
SELECT * FROM tab0 WHERE ( NOT 31 <= + col1 )
----
87
21
10
97
1
99

query III rowsort
SELECT ALL * FROM tab1 WHERE ( ( NOT ( - 24 IN ( + col2 ) ) ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col1 + col1 + - col1 AS col1 FROM tab0
----
-1
-21
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8856
SELECT ALL AVG ( DISTINCT + - CAST( NULL AS SIGNED ) ) * - 43 FROM tab2, tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8856
SELECT ALL AVG ( DISTINCT + - CAST ( NULL AS INTEGER ) ) * - 43 FROM tab2, tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8857
SELECT DISTINCT - COUNT( DISTINCT col1 ) AS col2 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8857
SELECT DISTINCT - COUNT ( DISTINCT col1 ) AS col2 FROM tab0 cor0
----
-3

query I rowsort
SELECT col2 - + - col0 AS col0 FROM tab0 AS cor0
----
196
62
97

query I rowsort
SELECT col2 - - + col0 AS col0 FROM tab0
----
196
62
97

query I rowsort
SELECT DISTINCT - col0 * col1 - 62 AS col0 FROM tab1 AS cor0
----
-4339
-487
-776

query II rowsort
SELECT ALL - col2 AS col0, col2 FROM tab2 AS cor0
----
-23
23
-40
40
-58
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8862
SELECT ALL MAX( ALL - 98 ) AS col2 FROM tab0 AS cor0
----
-98

skipif mysql # not compatible
query I rowsort label-8862
SELECT ALL MAX ( ALL - 98 ) AS col2 FROM tab0 AS cor0
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-8863
SELECT MAX( + - col2 ) col2 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8863
SELECT MAX ( + - col2 ) col2 FROM tab2 AS cor0
----
-23

query I rowsort
SELECT + - col2 / - col1 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query II rowsort
SELECT col1, - col2 AS col1 FROM tab1 AS cor0
----
14
-96
47
-68
5
-59

query I rowsort
SELECT ALL - col0 FROM tab2 WHERE NOT 39 IS NULL
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8867
SELECT 71 * SUM( DISTINCT + col1 ) AS col2 FROM tab1
----
4686

skipif mysql # not compatible
query I rowsort label-8867
SELECT 71 * SUM ( DISTINCT + col1 ) AS col2 FROM tab1
----
4686

query I rowsort
SELECT ( + 26 ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + - col1 - 54 AS col2 FROM tab2 WHERE NOT ( NOT col1 * + + col2 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8870
SELECT ALL MIN( - - col0 ) AS col1 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-8870
SELECT ALL MIN ( - - col0 ) AS col1 FROM tab0
----
15

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND - 1
----

query I rowsort
SELECT 89 + + - col1 FROM tab1 AS cor0
----
42
75
84

query I rowsort
SELECT DISTINCT + col1 + + 24 FROM tab2 AS cor0
----
101
75
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8874
SELECT - + CAST( + 53 AS SIGNED ) AS col0 FROM tab1 cor0
----
-53
-53
-53

skipif mysql # not compatible
query I rowsort label-8874
SELECT - + CAST ( + 53 AS INTEGER ) AS col0 FROM tab1 cor0
----
-53
-53
-53

query I rowsort
SELECT DISTINCT - 98 + + 39 FROM tab2 AS cor0
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8876
SELECT ALL + + CAST( NULL AS SIGNED ) + col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8876
SELECT ALL + + CAST ( NULL AS INTEGER ) + col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT 44 * col1 AS col0, + col1 FROM tab0
----
3564
81
44
1
924
21

onlyif mysql # aggregate syntax: 
query I rowsort label-8878
SELECT DISTINCT - COUNT( DISTINCT 25 ) AS col1 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-8878
SELECT DISTINCT - COUNT ( DISTINCT 25 ) AS col1 FROM tab0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8879
SELECT + COUNT( * ) - - COUNT( * ) * - + COUNT( * ) AS col2 FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-8879
SELECT + COUNT ( * ) - - COUNT ( * ) * - + COUNT ( * ) AS col2 FROM tab0
----
-6

query I rowsort
SELECT ALL - col0 + col1 FROM tab2 WHERE - col1 + + + col1 * 9 + + col1 - col2 IS NOT NULL AND NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8881
SELECT DISTINCT * FROM tab2 WHERE + col1 * - col1 + 33 * + - CAST( + col0 AS SIGNED ) NOT BETWEEN 25 + 12 + - 51 / - col1 AND + 48
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8881
SELECT DISTINCT * FROM tab2 WHERE + col1 * - col1 + 33 * + - CAST ( + col0 AS INTEGER ) NOT BETWEEN 25 + 12 + - 51 / - col1 AND + 48
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 + col1 * 64 * col2 = + col2 * col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT 79 IS NULL )
----

query I rowsort
SELECT col2 AS col1 FROM tab1 WHERE NOT ( NOT - col0 * - 48 BETWEEN col0 AND + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8885
SELECT + 12 * + + CAST( NULL AS SIGNED ) * col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8885
SELECT + 12 * + + CAST ( NULL AS INTEGER ) * col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8886
SELECT ALL COUNT( DISTINCT + CAST( NULL AS SIGNED ) ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8886
SELECT ALL COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8887
SELECT DISTINCT MAX( DISTINCT - 16 ) FROM tab0
----
-16

skipif mysql # not compatible
query I rowsort label-8887
SELECT DISTINCT MAX ( DISTINCT - 16 ) FROM tab0
----
-16

query I rowsort
SELECT DISTINCT - 18 FROM tab1 AS cor0 WHERE NOT col1 * 13 * col0 * - col2 BETWEEN - + col2 AND NULL
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-8889
SELECT ALL COUNT( * ) + 6 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-8889
SELECT ALL COUNT ( * ) + 6 FROM tab0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8890
SELECT - MAX( ALL 88 ) FROM tab1
----
-88

skipif mysql # not compatible
query I rowsort label-8890
SELECT - MAX ( ALL 88 ) FROM tab1
----
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-8891
SELECT - col0 DIV col0 - + col0 FROM tab0
----
-16
-88
-98

skipif mysql # not compatible
query I rowsort label-8891
SELECT - col0 / col0 - + col0 FROM tab0
----
-16
-88
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8892
SELECT - CAST( 63 AS SIGNED ) AS col2 FROM tab1
----
-63
-63
-63

skipif mysql # not compatible
query I rowsort label-8892
SELECT - CAST ( 63 AS INTEGER ) AS col2 FROM tab1
----
-63
-63
-63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - + 64 col0 FROM tab1
----
-17
-50
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-8894
SELECT - COUNT( * ) AS col1 FROM tab1 WHERE NOT NULL > NULL
----
0

skipif mysql # not compatible
query I rowsort label-8894
SELECT - COUNT ( * ) AS col1 FROM tab1 WHERE NOT NULL > NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8895
SELECT ALL - COUNT( * ) col1 FROM tab1 WHERE NOT col1 IS NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8895
SELECT ALL - COUNT ( * ) col1 FROM tab1 WHERE NOT col1 IS NULL
----
-3

query I rowsort
SELECT DISTINCT - 34 * + col1 FROM tab0
----
-2754
-34
-714

query III rowsort
SELECT * FROM tab1 WHERE NOT 1 * col2 < NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8898
SELECT COUNT( * ) DIV - ( - COUNT( ALL col1 ) ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-8898
SELECT COUNT ( * ) / - ( - COUNT ( ALL col1 ) ) FROM tab1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8899
SELECT 16 * MAX( ALL + 93 ) FROM tab2
----
1488

skipif mysql # not compatible
query I rowsort label-8899
SELECT 16 * MAX ( ALL + 93 ) FROM tab2
----
1488

query I rowsort
SELECT + col1 * 71 FROM tab1 WHERE ( NULL ) <> NULL
----

query I rowsort
SELECT col1 * + col1 FROM tab2 WHERE ( NULL ) NOT BETWEEN NULL AND 5
----

query I rowsort
SELECT + ( col0 ) / 37 AS col0 FROM tab0 WHERE NOT NULL BETWEEN col1 AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE 70 * + col1 < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL >= ( - col2 )
----

query III rowsort
SELECT * FROM tab2 WHERE ( col1 ) >= ( + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 68 * + 22 AS col0 FROM tab0
----
1496

query I rowsort
SELECT + 97 AS col1 FROM tab1 WHERE + col2 - + col0 / 83 > ( 25 + col1 )
----
97
97

query I rowsort
SELECT col0 FROM tab2 WHERE NOT 76 * + col0 >= + col1
----

query I rowsort
SELECT DISTINCT 41 + - col1 FROM tab0
----
-40
20
40

query III rowsort
SELECT ALL * FROM tab1 WHERE - 81 NOT BETWEEN ( + 89 * col1 ) AND 76
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col2 * 7 FROM tab0
----
-329
-693
-70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * 29 + 38 col0 FROM tab1
----
-107
-1325
-368

query I rowsort
SELECT - 33 FROM tab0 WHERE NULL NOT IN ( + col1 - ( - col1 ) )
----

query I rowsort
SELECT - col1 FROM tab0 WHERE - col0 + col2 * + col2 IS NOT NULL
----
-1
-21
-81

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 * col1 - col0 * - ( + col2 + + col0 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 45 * col0 FROM tab2
----
2070
2880
3375

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8917
SELECT - col2 * col1 + - col1 AS col2 FROM tab2 WHERE NOT ( NULL ) NOT IN ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-8917
SELECT - col2 * col1 + - col1 AS col2 FROM tab2 WHERE NOT ( NULL ) NOT IN ( - CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 49 < NULL
----

query I rowsort
SELECT DISTINCT + 14 FROM tab2 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8920
SELECT ALL + COUNT( 92 ) FROM tab2 WHERE NOT col1 > - ( col0 )
----
0

skipif mysql # not compatible
query I rowsort label-8920
SELECT ALL + COUNT ( 92 ) FROM tab2 WHERE NOT col1 > - ( col0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8921
SELECT DISTINCT 52 + + COUNT( * ) col0 FROM tab0 AS cor0
----
55

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8921
SELECT DISTINCT 52 + + COUNT ( * ) col0 FROM tab0 AS cor0
----
55

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + ( + col2 ) + 88 IS NOT NULL
----

query I rowsort
SELECT ALL col0 * + 86 FROM tab2 AS cor0
----
3956
5504
6450

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( 23 ) NOT BETWEEN NULL AND - 31
----

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE NOT - 74 * + 21 IS NULL
----
51
85
91

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL IN ( - col1 / col0 )
----

query I rowsort
SELECT col1 * 47 AS col2 FROM tab0 AS cor0
----
3807
47
987

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8928
SELECT - SUM( DISTINCT - 46 ) DIV MIN( + col1 ) FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-8928
SELECT - SUM ( DISTINCT - 46 ) / MIN ( + col1 ) FROM tab2 cor0
----
0

query I rowsort
SELECT DISTINCT - col1 * ( - 16 * + 51 ) FROM tab2 AS cor0
----
41616
54672
62832

onlyif mysql # DIV for integer division: 
query I rowsort label-8930
SELECT ( 81 ) DIV + 20 + 33 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1
----
9 values hashing to a10b03e72860b949bdff53827700a9a8

skipif mysql # not compatible
query I rowsort label-8930
SELECT ( 81 ) / + 20 + 33 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1
----
9 values hashing to a10b03e72860b949bdff53827700a9a8

onlyif mysql # aggregate syntax: 
query I rowsort label-8931
SELECT + MIN( + 98 ) FROM tab1 AS cor0 CROSS JOIN tab1
----
98

skipif mysql # not compatible
query I rowsort label-8931
SELECT + MIN ( + 98 ) FROM tab1 AS cor0 CROSS JOIN tab1
----
98

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( + 31 ) NOT IN ( ( 25 ) * 71 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8933
SELECT ALL 55 * MAX( DISTINCT CAST( NULL AS SIGNED ) - + 84 ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8933
SELECT ALL 55 * MAX ( DISTINCT CAST ( NULL AS INTEGER ) - + 84 ) AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8934
SELECT DISTINCT col2 AS col1 FROM tab1 AS cor0 WHERE NOT - CAST( + CAST( NULL AS SIGNED ) AS DECIMAL ) + - col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-8934
SELECT DISTINCT col2 AS col1 FROM tab1 AS cor0 WHERE NOT - CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) + - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8935
SELECT + MIN( DISTINCT col2 ) col1 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8935
SELECT + MIN ( DISTINCT col2 ) col1 FROM tab0 AS cor0
----
10

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 65 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col1 + 49 AS col2 FROM tab0 AS cor0 WHERE NOT col2 * - col0 > ( ( - col1 ) * + col2 )
----
50
70

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 IN ( - col0 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 89 * - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8940
SELECT + + MIN( - col0 ) AS col0 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-8940
SELECT + + MIN ( - col0 ) AS col0 FROM tab1 AS cor0
----
-91

query I rowsort
SELECT - + ( 7 ) * 87 FROM tab0 AS cor0
----
-609
-609
-609

onlyif mysql # aggregate syntax: 
query I rowsort label-8942
SELECT + 38 * - COUNT( * ) FROM tab0
----
-114

skipif mysql # not compatible
query I rowsort label-8942
SELECT + 38 * - COUNT ( * ) FROM tab0
----
-114

query I rowsort
SELECT ALL col2 * + + col2 FROM tab2
----
1600
3364
529

query I rowsort
SELECT ALL - 50 + - col2 FROM tab2 WHERE NULL >= col1
----

query I rowsort
SELECT DISTINCT + col1 FROM tab1 WHERE ( - col2 ) <> + 63
----
14
47
5

query I rowsort
SELECT DISTINCT - 26 + + 67 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT - + col1 * 56 * col1 FROM tab1 AS cor0
----
-10976
-123704
-1400

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8948
SELECT + CAST( AVG ( 97 ) AS SIGNED ) FROM tab2 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-8948
SELECT + CAST ( AVG ( 97 ) AS INTEGER ) FROM tab2 AS cor0
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-8949
SELECT + 71 + + + 2 DIV col2 FROM tab1 cor0
----
71
71
71

skipif mysql # not compatible
query I rowsort label-8949
SELECT + 71 + + + 2 / col2 FROM tab1 cor0
----
71
71
71

query I rowsort
SELECT - + 19 + + col2 * col2 FROM tab0 AS cor0
----
2190
81
9782

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - - col2 NOT IN ( - 66 )
----

query I rowsort
SELECT + ( 4 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

query I rowsort
SELECT col2 + + - 25 AS col2 FROM tab2
----
-2
15
33

query I rowsort
SELECT ALL 92 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8955
SELECT + CAST( - - col1 AS SIGNED ) DIV - - col2 - col1 col1 FROM tab2 cor0
----
-49
-66
-76

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8955
SELECT + CAST ( - - col1 AS INTEGER ) / - - col2 - col1 col1 FROM tab2 cor0
----
-49
-66
-76

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL IN ( - 58 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8957
SELECT - - CAST( + 49 AS SIGNED ) * - - col0 * + col1 + col0 FROM tab2 AS cor0
----
115000
241536
246300

skipif mysql # not compatible
query I rowsort label-8957
SELECT - - CAST ( + 49 AS INTEGER ) * - - col0 * + col1 + col0 FROM tab2 AS cor0
----
115000
241536
246300

onlyif mysql # DIV for integer division: 
query I rowsort label-8958
SELECT col0 DIV + + 53 AS col1 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-8958
SELECT col0 / + + 53 AS col1 FROM tab2 AS cor0
----
0
1
1

query I rowsort
SELECT col0 * - col1 * + 68 FROM tab1 AS cor0
----
-28900
-290836
-48552

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8960
SELECT + CAST( + 18 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
18
18
18

skipif mysql # not compatible
query I rowsort label-8960
SELECT + CAST ( + 18 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
18
18
18

query I rowsort
SELECT ALL - 74 + 99 + + col2 * - 3 FROM tab2 AS cor0
----
-149
-44
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - + 63 col0 FROM tab0 AS cor0 WHERE - col2 + col2 * + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8963
SELECT - + MIN( DISTINCT - - col0 ) FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-8963
SELECT - + MIN ( DISTINCT - - col0 ) FROM tab1 AS cor0
----
-51

query I rowsort
SELECT DISTINCT + 19 + 79 FROM tab0
----
98

query I rowsort
SELECT + col1 AS col0 FROM tab1 WHERE ( NULL ) IS NULL AND col0 IS NOT NULL
----
14
47
5

query I rowsort
SELECT DISTINCT col0 - - ( - col2 ) FROM tab2
----
17
23
24

query I rowsort
SELECT DISTINCT - ( + col0 ) * col1 AS col0 FROM tab1 WHERE NULL IS NULL AND NOT - col2 NOT BETWEEN + 49 + col2 AND col0 + col0
----

query I rowsort
SELECT + col1 FROM tab0 WHERE - col1 * + 83 + - col2 + - col2 IN ( + 66 + col0 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE ( - 19 * + 96 * col1 ) IS NOT NULL AND 38 = - col2 + + ( col0 ) * + col2
----

query I rowsort
SELECT + col1 FROM tab1 WHERE NULL <> NULL
----

query II rowsort
SELECT - col1 + + 70 AS col1, - col0 * 98 AS col0 FROM tab1
----
23
-8918
56
-4998
65
-8330

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8972
SELECT * FROM tab2 WHERE ( col0 ) NOT IN ( - CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-8972
SELECT * FROM tab2 WHERE ( col0 ) NOT IN ( - CAST ( NULL AS REAL ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8973
SELECT ALL ( - + CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8973
SELECT ALL ( - + CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8974
SELECT SUM( ALL + + col1 ) * + + 32 FROM tab0
----
3296

skipif mysql # not compatible
query I rowsort label-8974
SELECT SUM ( ALL + + col1 ) * + + 32 FROM tab0
----
3296

query I rowsort
SELECT - 45 * col0 AS col0 FROM tab0 WHERE NOT - col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col0 * col1 FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN ( ( - col0 ) ) AND col2
----

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) < ( + col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( ( NULL >= ( + 3 + + 58 * + col2 ) ) ) OR NOT NULL NOT IN ( - ( + col1 ) )
----

query I rowsort
SELECT DISTINCT + + 55 * - col0 AS col2 FROM tab0 WHERE NOT - col2 + col0 IS NULL
----
-4785
-5335
-825

query I rowsort
SELECT + 94 - col2 AS col2 FROM tab0 WHERE NOT ( + - col2 ) NOT BETWEEN NULL AND ( col0 * - col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8981
SELECT DISTINCT + col2 * - 51 DIV + ( 17 ) AS col0 FROM tab2
----
-120
-174
-69

skipif mysql # not compatible
query I rowsort label-8981
SELECT DISTINCT + col2 * - 51 / + ( 17 ) AS col0 FROM tab2
----
-120
-174
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-8982
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab1 WHERE col1 * + col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8982
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab1 WHERE col1 * + col0 IS NULL
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + 26 + + col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8984
SELECT ALL + + MAX( ALL + - col0 ) FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-8984
SELECT ALL + + MAX ( ALL + - col0 ) FROM tab0 AS cor0
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-8985
SELECT DISTINCT 24 DIV + col0 AS col1 FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-8985
SELECT DISTINCT 24 / + col0 AS col1 FROM tab0 AS cor0
----
0
1

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 30 BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL > + col1 + + 60
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 85 + - col1 col0 FROM tab0 AS cor0
----
4
64
84

query I rowsort
SELECT ALL + 4 * - col1 AS col2 FROM tab1
----
-188
-20
-56

query I rowsort
SELECT + 86 * - + 62 FROM tab1
----
-5332
-5332
-5332

onlyif mysql # aggregate syntax: 
query I rowsort label-8991
SELECT MAX( - - 92 ) + + COUNT( * ) FROM tab0
----
95

skipif mysql # not compatible
query I rowsort label-8991
SELECT MAX ( - - 92 ) + + COUNT ( * ) FROM tab0
----
95

query I rowsort
SELECT 14 + + 12 * - ( 96 ) FROM tab0
----
-1138
-1138
-1138

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 32 + + col2 col0, - col0 * - col0 FROM tab1
----
100
8281
128
2601
91
7225

query I rowsort
SELECT ALL ( - - 13 ) FROM tab2 AS cor0 WHERE ( col1 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8995
SELECT DISTINCT - col2 * + col2 * - CAST( + + col2 AS SIGNED ) FROM tab2
----
12167
195112
64000

skipif mysql # not compatible
query I rowsort label-8995
SELECT DISTINCT - col2 * + col2 * - CAST ( + + col2 AS INTEGER ) FROM tab2
----
12167
195112
64000

onlyif mysql # aggregate syntax: 
query I rowsort label-8996
SELECT ALL - 81 - - - COUNT( * ) AS col0 FROM tab1
----
-84

skipif mysql # not compatible
query I rowsort label-8996
SELECT ALL - 81 - - - COUNT ( * ) AS col0 FROM tab1
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-8997
SELECT DISTINCT + MIN( DISTINCT - col2 ) + + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-8997
SELECT DISTINCT + MIN ( DISTINCT - col2 ) + + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-93

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + col1 IS NULL )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 93 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL + - ( - 45 ) AS col2, col1 * + - col2 * col1 FROM tab1 AS cor0
----
45
-1475
45
-150212
45
-18816

query I rowsort
SELECT + col1 + col2 FROM tab1 AS cor0 WHERE ( NOT ( NULL <= NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9002
SELECT - 81 + - + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-9002
SELECT - 81 + - + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-84

query I rowsort
SELECT DISTINCT - col2 + col2 + - col0 FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9004
SELECT 21 + CAST( - 93 AS SIGNED ) AS col0 FROM tab2 cor0
----
-72
-72
-72

skipif mysql # not compatible
query I rowsort label-9004
SELECT 21 + CAST ( - 93 AS INTEGER ) AS col0 FROM tab2 cor0
----
-72
-72
-72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 13 col2, 78 FROM tab0
----
13
78
13
78
13
78

onlyif mysql # DIV for integer division: 
query I rowsort label-9006
SELECT col1 FROM tab2 WHERE NOT + 31 DIV col2 IN ( + col2 - col2 )
----
51

skipif mysql # not compatible
query I rowsort label-9006
SELECT col1 FROM tab2 WHERE NOT + 31 / col2 IN ( + col2 - col2 )
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9007
SELECT CAST( NULL AS SIGNED ) AS col0, + COUNT( * ) AS col0 FROM tab2
----
NULL
3

skipif mysql # not compatible
query II rowsort label-9007
SELECT CAST ( NULL AS INTEGER ) AS col0, + COUNT ( * ) AS col0 FROM tab2
----
NULL
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9008
SELECT ALL ( - AVG ( DISTINCT CAST( col2 AS SIGNED ) ) ) AS col1 FROM tab0 WHERE NOT ( + 89 * + - col1 * - - 49 * - col1 ) >= ( 67 * - col2 * ( col0 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9008
SELECT ALL ( - AVG ( DISTINCT CAST ( col2 AS INTEGER ) ) ) AS col1 FROM tab0 WHERE NOT ( + 89 * + - col1 * - - 49 * - col1 ) >= ( 67 * - col2 * ( col0 ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9009
SELECT DISTINCT + - CAST( - 67 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
67

skipif mysql # not compatible
query I rowsort label-9009
SELECT DISTINCT + - CAST ( - 67 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * + col2 col2 FROM tab0 AS cor0
----
100
2209
9801

query I rowsort
SELECT ALL 14 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

query III rowsort
SELECT * FROM tab1 WHERE NOT + 7 IN ( - col0, col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col2 + + - ( + + 16 ) FROM tab1 AS cor0
----
-112
-75
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-9014
SELECT ALL - + COUNT( * ) + + 83 FROM tab0 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-9014
SELECT ALL - + COUNT ( * ) + + 83 FROM tab0 AS cor0
----
80

query I rowsort
SELECT + col1 AS col0 FROM tab2 AS cor0 WHERE NOT - 1 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9016
SELECT * FROM tab2 cor0 WHERE NOT NULL IN ( 39, + col1, - col0, - 6 * + + col1 * - CAST( + 87 AS SIGNED ) + - + col1 + col1 * col0 * - 2 )
----

skipif mysql # not compatible
query III rowsort label-9016
SELECT * FROM tab2 cor0 WHERE NOT NULL IN ( 39, + col1, - col0, - 6 * + + col1 * - CAST ( + 87 AS INTEGER ) + - + col1 + col1 * col0 * - 2 )
----

query I rowsort
SELECT 68 * + + 5 FROM tab0 AS cor0
----
340
340
340

onlyif mysql # DIV for integer division: 
query II rowsort label-9018
SELECT DISTINCT col1 DIV + ( col1 ), col2 DIV - 41 col1 FROM tab2
----
1
-1
1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9018
SELECT DISTINCT col1 / + ( col1 ), col2 / - 41 col1 FROM tab2
----
1
-1
1
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9019
SELECT AVG ( - - col2 ) * ( - COUNT( * ) ) + + COUNT( * ) AS col1 FROM tab0 WHERE ( - 5 ) NOT IN ( + col2 + - col0 * + CAST( NULL AS SIGNED ) * col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9019
SELECT AVG ( - - col2 ) * ( - COUNT ( * ) ) + + COUNT ( * ) AS col1 FROM tab0 WHERE ( - 5 ) NOT IN ( + col2 + - col0 * + CAST ( NULL AS INTEGER ) * col0 )
----
NULL

query I rowsort
SELECT ALL 43 + + col1 FROM tab1 AS cor0
----
48
57
90

query I rowsort
SELECT 54 + + 31 AS col1 FROM tab2 AS cor0
----
85
85
85

query I rowsort
SELECT DISTINCT col1 * - + col1 - + + 30 FROM tab1 AS cor0
----
-2239
-226
-55

query I rowsort
SELECT 5 + + col2 AS col0 FROM tab0 AS cor0
----
104
15
52

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col0 + - 22 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9025
SELECT DISTINCT - - 55 AS col2, COUNT( * ) DIV - COUNT( * ) FROM tab0 AS cor0
----
55
-1

skipif mysql # not compatible
query II rowsort label-9025
SELECT DISTINCT - - 55 AS col2, COUNT ( * ) / - COUNT ( * ) FROM tab0 AS cor0
----
55
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9026
SELECT ALL - SUM( ALL col2 ) col0 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9026
SELECT ALL - SUM ( ALL col2 ) col0 FROM tab0 AS cor0
----
-156

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 63 * col0 - + + col0 col2 FROM tab2 AS cor0
----
2852
3968
4650

onlyif mysql # DIV for integer division: 
query I rowsort label-9028
SELECT - col2 DIV 35 * + col0 * - + ( 19 ) AS col2 FROM tab2 AS cor0
----
0
1216
1425

skipif mysql # not compatible
query I rowsort label-9028
SELECT - col2 / 35 * + col0 * - + ( 19 ) AS col2 FROM tab2 AS cor0
----
0
1216
1425

onlyif mysql # aggregate syntax: 
query II rowsort label-9029
SELECT ALL - COUNT( * ) * 54 AS col1, 9 FROM tab2 AS cor0
----
-162
9

skipif mysql # not compatible
query II rowsort label-9029
SELECT ALL - COUNT ( * ) * 54 AS col1, 9 FROM tab2 AS cor0
----
-162
9

query I rowsort
SELECT + 38 * col0 + + 95 - + + ( 23 ) * + 71 AS col2 FROM tab0 AS cor0
----
-968
1768
2148

query I rowsort
SELECT + col1 FROM tab2 cor0 WHERE col1 NOT BETWEEN + col1 AND + - 95
----
51
67
77

query III rowsort
SELECT ALL * FROM tab2 WHERE ( 75 - + col1 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-9033
SELECT ALL + 41 DIV col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9033
SELECT ALL + 41 / col2 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9034
SELECT DISTINCT - - MAX( 46 ) FROM tab0 WHERE - col1 BETWEEN ( - col1 ) AND 67
----
46

skipif mysql # not compatible
query I rowsort label-9034
SELECT DISTINCT - - MAX ( 46 ) FROM tab0 WHERE - col1 BETWEEN ( - col1 ) AND 67
----
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + - col0 col0 FROM tab2
----
2116
4096
5625

onlyif mysql # aggregate syntax: 
query I rowsort label-9036
SELECT ALL - MAX( ALL - - 59 ) AS col0 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-9036
SELECT ALL - MAX ( ALL - - 59 ) AS col0 FROM tab1 AS cor0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-9037
SELECT 77 * SUM( DISTINCT - 2 ) * - 9 AS col1 FROM tab2
----
1386

skipif mysql # not compatible
query I rowsort label-9037
SELECT 77 * SUM ( DISTINCT - 2 ) * - 9 AS col1 FROM tab2
----
1386

query III rowsort
SELECT ALL * FROM tab0 WHERE - col0 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9039
SELECT + MIN( ALL + + col1 ) FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-9039
SELECT + MIN ( ALL + + col1 ) FROM tab1 AS cor0
----
5

query I rowsort
SELECT DISTINCT + 91 + + - 57 FROM tab2 cor0
----
34

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 76 NOT IN ( - col1 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE - col2 <> NULL
----

query II rowsort
SELECT DISTINCT ( - col2 ), + 92 AS col0 FROM tab2
----
-23
92
-40
92
-58
92

onlyif mysql # aggregate syntax: 
query I rowsort label-9044
SELECT DISTINCT SUM( - col0 ) + - - ( COUNT( * ) ) AS col2 FROM tab0
----
-196

skipif mysql # not compatible
query I rowsort label-9044
SELECT DISTINCT SUM ( - col0 ) + - - ( COUNT ( * ) ) AS col2 FROM tab0
----
-196

query I rowsort
SELECT 14 + - col2 FROM tab2
----
-26
-44
-9

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9046
SELECT DISTINCT + + ( + CAST( NULL AS DECIMAL ) ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9046
SELECT DISTINCT + + ( + CAST ( NULL AS REAL ) ) AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT col2 * 31 - col1 + + + col2 FROM tab0
----
1423
299
3167

query III rowsort
SELECT * FROM tab0 WHERE NULL IN ( - - ( col0 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 50 col0 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to c7432a968c8352c12996dfa54dd4b9e8

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - - col2 - col2 * + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9051
SELECT + 44 + COUNT( * ) * CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9051
SELECT + 44 + COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 <> 2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9053
SELECT DISTINCT + + MAX( - 21 ) * + + COUNT( * ) * + 57 col0 FROM tab0 AS cor0
----
-3591

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9053
SELECT DISTINCT + + MAX ( - 21 ) * + + COUNT ( * ) * + 57 col0 FROM tab0 AS cor0
----
-3591

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col2 * col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - col0 + col1 AS col2, col0 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN + 28 AND - col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9056
SELECT + COUNT( * ) AS col2, - COUNT( ALL + - CAST( NULL AS SIGNED ) ) * - - COUNT( * ) FROM tab0 cor0
----
3
0

skipif mysql # not compatible
query II rowsort label-9056
SELECT + COUNT ( * ) AS col2, - COUNT ( ALL + - CAST ( NULL AS INTEGER ) ) * - - COUNT ( * ) FROM tab0 cor0
----
3
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9057
SELECT ALL COUNT( DISTINCT + 6 ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9057
SELECT ALL COUNT ( DISTINCT + 6 ) FROM tab2 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 col2, + col0 + + - col1 + + col1 FROM tab1 AS cor0
----
51
51
85
85
91
91

onlyif mysql # aggregate syntax: 
query II rowsort label-9059
SELECT DISTINCT + COUNT( * ), 46 AS col1 FROM tab2
----
3
46

skipif mysql # not compatible
query II rowsort label-9059
SELECT DISTINCT + COUNT ( * ), 46 AS col1 FROM tab2
----
3
46

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9060
SELECT - col0 AS col0, CAST( - - ( + col1 ) AS SIGNED ) AS col0 FROM tab0
----
-15
81
-87
21
-97
1

skipif mysql # not compatible
query II rowsort label-9060
SELECT - col0 AS col0, CAST ( - - ( + col1 ) AS INTEGER ) AS col0 FROM tab0
----
-15
81
-87
21
-97
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9061
SELECT + MIN( ALL - 76 ) AS col1 FROM tab2
----
-76

skipif mysql # not compatible
query I rowsort label-9061
SELECT + MIN ( ALL - 76 ) AS col1 FROM tab2
----
-76

query I rowsort
SELECT ALL - 93 * 65 AS col2 FROM tab1
----
-6045
-6045
-6045

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9063
SELECT DISTINCT 63 DIV + MAX( + 97 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9063
SELECT DISTINCT 63 / + MAX ( + 97 ) FROM tab0
----
0

query I rowsort
SELECT + 91 * - col0 AS col1 FROM tab2 AS cor0
----
-4186
-5824
-6825

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9065
SELECT DISTINCT + MAX( DISTINCT + col2 ) DIV COUNT( * ) AS col1 FROM tab0 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-9065
SELECT DISTINCT + MAX ( DISTINCT + col2 ) / COUNT ( * ) AS col1 FROM tab0 AS cor0
----
33

onlyif mysql # aggregate syntax: 
query II rowsort label-9066
SELECT ALL COUNT( - col1 ) AS col1, MAX( - 81 ) AS col2 FROM tab1
----
3
-81

skipif mysql # not compatible
query II rowsort label-9066
SELECT ALL COUNT ( - col1 ) AS col1, MAX ( - 81 ) AS col2 FROM tab1
----
3
-81

query I rowsort
SELECT col0 AS col0 FROM tab0 AS cor0 WHERE ( + col0 * + 55 + + 11 + + - col1 * - col0 * + col2 * - col2 ) >= NULL
----

query I rowsort
SELECT ALL - + ( + col1 ) + + 51 FROM tab2 AS cor0
----
-16
-26
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9069
SELECT + - 93 + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-9069
SELECT + - 93 + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-96

query II rowsort
SELECT col0 + 8, col1 + + col2 AS col1 FROM tab0 AS cor0
----
105
100
23
128
95
31

onlyif mysql # aggregate syntax: 
query II rowsort label-9071
SELECT - COUNT( ALL col1 ) AS col1, + 13 * - 58 AS col2 FROM tab1 AS cor0
----
-3
-754

skipif mysql # not compatible
query II rowsort label-9071
SELECT - COUNT ( ALL col1 ) AS col1, + 13 * - 58 AS col2 FROM tab1 AS cor0
----
-3
-754

query III rowsort
SELECT * FROM tab2 cor0 WHERE col0 * - 21 / - + 5 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT ( + 24 ) AS col0 FROM tab2 AS cor0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-9074
SELECT - + COUNT( + + col0 ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9074
SELECT - + COUNT ( + + col0 ) AS col2 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9075
SELECT + + COUNT( * ) + 95 * 50 FROM tab2 AS cor0 WHERE - 11 IS NOT NULL
----
4753

skipif mysql # not compatible
query I rowsort label-9075
SELECT + + COUNT ( * ) + 95 * 50 FROM tab2 AS cor0 WHERE - 11 IS NOT NULL
----
4753

query II rowsort
SELECT DISTINCT col2 AS col2, + col1 * col1 AS col2 FROM tab0
----
10
441
47
6561
99
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9077
SELECT * FROM tab1 WHERE - col2 * + col2 NOT BETWEEN - + CAST( + - 65 AS SIGNED ) * - 39 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9077
SELECT * FROM tab1 WHERE - col2 * + col2 NOT BETWEEN - + CAST ( + - 65 AS INTEGER ) * - 39 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9078
SELECT COUNT( * ) - 4 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-9078
SELECT COUNT ( * ) - 4 FROM tab0
----
-1

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 18 * col2 BETWEEN - 4 AND + + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9080
SELECT - 63 + + MAX( ALL - + 58 ) * - - MAX( ALL + - 5 ) + 45 FROM tab2 AS cor0
----
272

skipif mysql # not compatible
query I rowsort label-9080
SELECT - 63 + + MAX ( ALL - + 58 ) * - - MAX ( ALL + - 5 ) + 45 FROM tab2 AS cor0
----
272

onlyif mysql # aggregate syntax: 
query I rowsort label-9081
SELECT COUNT( + 9 ) AS col2 FROM tab2 AS cor0 WHERE NOT - 10 * col2 / + col1 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-9081
SELECT COUNT ( + 9 ) AS col2 FROM tab2 AS cor0 WHERE NOT - 10 * col2 / + col1 IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9082
SELECT - 33 * COUNT( * ) AS col2 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-9082
SELECT - 33 * COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-99

onlyif mysql # DIV for integer division: 
query II rowsort label-9083
SELECT DISTINCT + - col2 DIV - col1 + - + col0 DIV + col0 AS col0, col0 FROM tab1 AS cor0
----
0
91
10
85
5
51

skipif mysql # not compatible
query II rowsort label-9083
SELECT DISTINCT + - col2 / - col1 + - + col0 / + col0 AS col0, col0 FROM tab1 AS cor0
----
0
91
10
85
5
51

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT + col2 * + + 77 + - + col1 NOT IN ( - col0, + col0 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9085
SELECT + + COUNT( * ) DIV + 11 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-9085
SELECT + + COUNT ( * ) / + 11 FROM tab0 cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9086
SELECT * FROM tab2 AS cor0 WHERE NOT ( + CAST( NULL AS SIGNED ) IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9086
SELECT * FROM tab2 AS cor0 WHERE NOT ( + CAST ( NULL AS INTEGER ) IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9087
SELECT MAX( + 10 ) AS col0 FROM tab2
----
10

skipif mysql # not compatible
query I rowsort label-9087
SELECT MAX ( + 10 ) AS col0 FROM tab2
----
10

query II rowsort
SELECT 80, + 25 * - - 11 + + col0 + col0 AS col2 FROM tab2
----
80
367
80
403
80
425

onlyif mysql # aggregate syntax: 
query I rowsort label-9089
SELECT SUM( - + 89 ) AS col0 FROM tab1
----
-267

skipif mysql # not compatible
query I rowsort label-9089
SELECT SUM ( - + 89 ) AS col0 FROM tab1
----
-267

onlyif mysql # aggregate syntax: 
query I rowsort label-9090
SELECT ALL COUNT( - col1 ) * + COUNT( * ) + 49 FROM tab0
----
58

skipif mysql # not compatible
query I rowsort label-9090
SELECT ALL COUNT ( - col1 ) * + COUNT ( * ) + 49 FROM tab0
----
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 70 + + col0 col1 FROM tab0 AS cor0
----
-55
17
27

onlyif mysql # aggregate syntax: 
query I rowsort label-9092
SELECT + 92 * - ( + 25 ) + - COUNT( * ) + + 9 FROM tab2 AS cor0
----
-2294

skipif mysql # not compatible
query I rowsort label-9092
SELECT + 92 * - ( + 25 ) + - COUNT ( * ) + + 9 FROM tab2 AS cor0
----
-2294

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col0 < - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 14, col0 col1 FROM tab0
----
14
15
14
87
14
97

query II rowsort
SELECT DISTINCT + - ( + col0 ) AS col0, - col2 FROM tab2 AS cor0
----
-46
-23
-64
-40
-75
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9096
SELECT + + ( - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9096
SELECT + + ( - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 1 - 31 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + + col1 + col0 * - col2 AS col2 FROM tab0 cor0
----
-624
-849
-9602

onlyif mysql # aggregate syntax: 
query I rowsort label-9099
SELECT ALL - 96 + - + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-9099
SELECT ALL - 96 + - + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9100
SELECT DISTINCT + - COUNT( * ) - - MIN( DISTINCT + col1 ) col0 FROM tab2 AS cor0 WHERE - ( - col0 ) * 31 + 53 + col0 IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9100
SELECT DISTINCT + - COUNT ( * ) - - MIN ( DISTINCT + col1 ) col0 FROM tab2 AS cor0 WHERE - ( - col0 ) * 31 + 53 + col0 IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9101
SELECT col2 * + col2 + + + col1 + + CAST( col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
3571
4762
9281

skipif mysql # not compatible
query I rowsort label-9101
SELECT col2 * + col2 + + + col1 + + CAST ( col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
3571
4762
9281

query I rowsort
SELECT ALL 8 + + col1 + + + 74 AS col1 FROM tab2 AS cor0 WHERE ( + ( 33 ) ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9103
SELECT DISTINCT + - 12 + + - ( - + MAX( + 73 ) ) AS col1 FROM tab1 AS cor0
----
61

skipif mysql # not compatible
query I rowsort label-9103
SELECT DISTINCT + - 12 + + - ( - + MAX ( + 73 ) ) AS col1 FROM tab1 AS cor0
----
61

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 64 < + 2
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + + 98 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9106
SELECT ALL + col2 DIV col2 - + - 89 DIV + + 80 AS col2 FROM tab2
----
2
2
2

skipif mysql # not compatible
query I rowsort label-9106
SELECT ALL + col2 / col2 - + - 89 / + + 80 AS col2 FROM tab2
----
2
2
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9107
SELECT 66 + + ( COUNT( * ) ) FROM tab2
----
69

skipif mysql # not compatible
query I rowsort label-9107
SELECT 66 + + ( COUNT ( * ) ) FROM tab2
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-9108
SELECT + 99 * + - COUNT( * ) AS col1 FROM tab2
----
-297

skipif mysql # not compatible
query I rowsort label-9108
SELECT + 99 * + - COUNT ( * ) AS col1 FROM tab2
----
-297

onlyif mysql # DIV for integer division: 
query I rowsort label-9109
SELECT col1 * col1 * col2 DIV col2 FROM tab0 WHERE NULL IS NULL
----
1
441
6561

skipif mysql # not compatible
query I rowsort label-9109
SELECT col1 * col1 * col2 / col2 FROM tab0 WHERE NULL IS NULL
----
1
441
6561

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9110
SELECT + CAST( NULL AS SIGNED ) * - 66 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9110
SELECT + CAST ( NULL AS INTEGER ) * - 66 AS col1 FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL ( col2 ) AS col0, 27 AS col2 FROM tab2 AS cor0
----
23
27
40
27
58
27

query II rowsort
SELECT ALL col1, - col1 * - col2 AS col0 FROM tab1
----
14
1344
47
3196
5
295

onlyif mysql # DIV for integer division: 
query I rowsort label-9113
SELECT DISTINCT 40 * - col2 * - col0 DIV - + col0 FROM tab2
----
-1600
-2320
-920

skipif mysql # not compatible
query I rowsort label-9113
SELECT DISTINCT 40 * - col2 * - col0 / - + col0 FROM tab2
----
-1600
-2320
-920

query I rowsort
SELECT ALL 25 * col1 FROM tab1
----
1175
125
350

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9115
SELECT DISTINCT COUNT( * ) DIV COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
1

skipif mysql # not compatible
query I rowsort label-9115
SELECT DISTINCT COUNT ( * ) / COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
1

query I rowsort
SELECT 44 - 97 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-53
-53
-53

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( col1 + - 67 ) IS NOT NULL
----

query I rowsort
SELECT col2 * - col0 * col2 FROM tab1 AS cor0
----
-295885
-420784
-470016

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9119
SELECT + - CAST( NULL AS SIGNED ) col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9119
SELECT + - CAST ( NULL AS INTEGER ) col0 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( + - col1 ) * + col0 FROM tab1 AS cor0
----
-425
-4277
-714

onlyif mysql # aggregate syntax: 
query II rowsort label-9121
SELECT ALL - 8, COUNT( * ) AS col2 FROM tab0 AS cor0
----
-8
3

skipif mysql # not compatible
query II rowsort label-9121
SELECT ALL - 8, COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-8
3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9122
SELECT DISTINCT - col2 * 58 DIV - CAST( - 37 AS SIGNED ) FROM tab2
----
-36
-62
-90

skipif mysql # not compatible
query I rowsort label-9122
SELECT DISTINCT - col2 * 58 / - CAST ( - 37 AS INTEGER ) FROM tab2
----
-36
-62
-90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9123
SELECT - COUNT( * ) DIV + + 45 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9123
SELECT - COUNT ( * ) / + + 45 AS col0 FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-9124
SELECT DISTINCT ( - - col0 ) + - + 44 - - col2, - col1 DIV + 21 AS col0 FROM tab1
----
100
0
103
0
115
-2

skipif mysql # not compatible
query II rowsort label-9124
SELECT DISTINCT ( - - col0 ) + - + 44 - - col2, - col1 / + 21 AS col0 FROM tab1
----
100
0
103
0
115
-2

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) < - 45
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9126
SELECT + COUNT( DISTINCT col2 ) AS col2 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9126
SELECT + COUNT ( DISTINCT col2 ) AS col2 FROM tab1 cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9127
SELECT + + CAST( - 22 AS SIGNED ) col0 FROM tab0 AS cor0
----
-22
-22
-22

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9127
SELECT + + CAST ( - 22 AS INTEGER ) col0 FROM tab0 AS cor0
----
-22
-22
-22

onlyif mysql # DIV for integer division: 
query I rowsort label-9128
SELECT ALL - 75 * + col1 + - 34 + col1 DIV - col0 + 82 AS col2 FROM tab0 AS cor0
----
-1527
-27
-6032

skipif mysql # not compatible
query I rowsort label-9128
SELECT ALL - 75 * + col1 + - 34 + col1 / - col0 + 82 AS col2 FROM tab0 AS cor0
----
-1527
-27
-6032

query III rowsort
SELECT * FROM tab1 WHERE + + 42 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-9130
SELECT ALL ( col2 ) DIV + + col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9130
SELECT ALL ( col2 ) / + + col1 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9131
SELECT ALL - MIN( ALL - col1 ) AS col0 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-9131
SELECT ALL - MIN ( ALL - col1 ) AS col0 FROM tab1
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-9132
SELECT ALL + ( + col2 ) DIV col0 AS col2 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9132
SELECT ALL + ( + col2 ) / col0 AS col2 FROM tab1
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9133
SELECT DISTINCT 58 + - 74 * + COUNT( DISTINCT + col1 ) AS col1 FROM tab0
----
-164

skipif mysql # not compatible
query I rowsort label-9133
SELECT DISTINCT 58 + - 74 * + COUNT ( DISTINCT + col1 ) AS col1 FROM tab0
----
-164

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL <= - col0 + - col2
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + ( + - 55 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - + col0, + 4 AS col1 FROM tab1 AS cor0
----
-51
4
-85
4
-91
4

onlyif mysql # DIV for integer division: 
query I rowsort label-9137
SELECT + col0 DIV - 48 AS col0 FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-9137
SELECT + col0 / - 48 AS col0 FROM tab0 AS cor0
----
-1
-2
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9138
SELECT ALL + COUNT( * ) + - COUNT( ALL + col1 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9138
SELECT ALL + COUNT ( * ) + - COUNT ( ALL + col1 ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT col1 + + 69 FROM tab2 AS cor0
----
120
136
146

query II rowsort
SELECT DISTINCT - + 40 + - col2 - col0 AS col2, 40 AS col0 FROM tab2 AS cor0
----
-109
40
-144
40
-173
40

onlyif mysql # aggregate syntax: 
query II rowsort label-9141
SELECT + - 1 col2, MIN( DISTINCT - + 22 ) FROM tab1 WHERE - 62 IS NOT NULL
----
-1
-22

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9141
SELECT + - 1 col2, MIN ( DISTINCT - + 22 ) FROM tab1 WHERE - 62 IS NOT NULL
----
-1
-22

onlyif mysql # DIV for integer division: 
query I rowsort label-9142
SELECT ALL - ( + 24 ) - col2 + + - col0 DIV + col2 AS col0 FROM tab0
----
-123
-42
-71

skipif mysql # not compatible
query I rowsort label-9142
SELECT ALL - ( + 24 ) - col2 + + - col0 / + col2 AS col0 FROM tab0
----
-123
-42
-71

query I rowsort
SELECT + col2 - - + col0 + - col1 AS col2 FROM tab2
----
18
27
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9144
SELECT ALL CAST( - COUNT( DISTINCT + + col1 ) AS SIGNED ) - + COUNT( * ) AS col0 FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-9144
SELECT ALL CAST ( - COUNT ( DISTINCT + + col1 ) AS INTEGER ) - + COUNT ( * ) AS col0 FROM tab2
----
-6

query I rowsort
SELECT ALL col2 * - 18 AS col2 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( - 4 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9146
SELECT + MIN( DISTINCT - 50 ) * 19 AS col1 FROM tab0 AS cor0
----
-950

skipif mysql # not compatible
query I rowsort label-9146
SELECT + MIN ( DISTINCT - 50 ) * 19 AS col1 FROM tab0 AS cor0
----
-950

query II rowsort
SELECT DISTINCT + + col1, - col0 AS col0 FROM tab2 AS cor0
----
51
-46
67
-75
77
-64

onlyif mysql # DIV for integer division: 
query II rowsort label-9148
SELECT ALL + 45 AS col0, col2 DIV col2 AS col2 FROM tab0 cor0
----
45
1
45
1
45
1

skipif mysql # not compatible
query II rowsort label-9148
SELECT ALL + 45 AS col0, col2 / col2 AS col2 FROM tab0 cor0
----
45
1
45
1
45
1

query I rowsort
SELECT + ( + + 78 ) AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
78
78
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9150
SELECT DISTINCT CAST( + + col1 AS SIGNED ) col2 FROM tab0
----
1
21
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9150
SELECT DISTINCT CAST ( + + col1 AS INTEGER ) col2 FROM tab0
----
1
21
81

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9151
SELECT DISTINCT - SUM( - CAST( NULL AS DECIMAL ) ) + + MIN( ALL ( - 40 ) ) FROM tab2, tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9151
SELECT DISTINCT - SUM ( - CAST ( NULL AS REAL ) ) + + MIN ( ALL ( - 40 ) ) FROM tab2, tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9152
SELECT 98 * - COUNT( * ) * 6 AS col0 FROM tab0 AS cor0
----
-1764

skipif mysql # not compatible
query I rowsort label-9152
SELECT 98 * - COUNT ( * ) * 6 AS col0 FROM tab0 AS cor0
----
-1764

query I rowsort
SELECT ALL - + col0 * col0 FROM tab2 AS cor0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9154
SELECT ALL + 52 * COUNT( * ) FROM tab1 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-9154
SELECT ALL + 52 * COUNT ( * ) FROM tab1 AS cor0
----
156

query I rowsort
SELECT - - col2 * - 32 + col2 AS col2 FROM tab1 cor0
----
-1829
-2108
-2976

query I rowsort
SELECT ALL col1 * - 35 FROM tab0
----
-2835
-35
-735

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9157
SELECT + CAST( NULL AS SIGNED ) + 77 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9157
SELECT + CAST ( NULL AS INTEGER ) + 77 AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9158
SELECT ALL + COUNT( DISTINCT - + 40 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-9158
SELECT ALL + COUNT ( DISTINCT - + 40 ) FROM tab1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9159
SELECT - COUNT( * ) * 58 + + COUNT( * ) AS col0, - 40 AS col1 FROM tab1
----
-171
-40

skipif mysql # not compatible
query II rowsort label-9159
SELECT - COUNT ( * ) * 58 + + COUNT ( * ) AS col0, - 40 AS col1 FROM tab1
----
-171
-40

query I rowsort
SELECT - 86 / + + 77 / - + col1 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + 88 + - col0 FROM tab2
----
13
24
42

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 96 + - col2 + - + 76 <> NULL
----

query I rowsort
SELECT - 85 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9164
SELECT + - col2 + - ( col2 ) + + col1 * col1 DIV - 83 FROM tab1 AS cor0
----
-118
-162
-194

skipif mysql # not compatible
query I rowsort label-9164
SELECT + - col2 + - ( col2 ) + + col1 * col1 / - 83 FROM tab1 AS cor0
----
-118
-162
-194

onlyif mysql # aggregate syntax: 
query I rowsort label-9165
SELECT 30 + + + COUNT( * ) AS col2 FROM tab2 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-9165
SELECT 30 + + + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
33

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NOT + - col2 / + col1 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NOT - col0 * - col0 BETWEEN + + col2 AND - col1 / - 66 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN + 52 AND - - col1 + + col2 + - col2 * col0
----

query I rowsort
SELECT col2 * - ( - 12 ) AS col0 FROM tab1
----
1152
708
816

query I rowsort
SELECT DISTINCT + 12 + - col0 + + + 43 FROM tab0 AS cor0 WHERE col1 + + col0 IS NOT NULL
----
-32
-42
40

query I rowsort
SELECT DISTINCT + col0 - - col2 * ( - + 25 ) AS col0 FROM tab0 AS cor0
----
-1160
-163
-2378

query I rowsort
SELECT ALL 45 * col2 * + + 20 - + ( + col0 ) FROM tab2
----
20654
35936
52125

onlyif mysql # DIV for integer division: 
query I rowsort label-9173
SELECT DISTINCT - 9 DIV + col2 AS col2 FROM tab1 WHERE NOT col0 = + col2
----
0

skipif mysql # not compatible
query I rowsort label-9173
SELECT DISTINCT - 9 / + col2 AS col2 FROM tab1 WHERE NOT col0 = + col2
----
0

query I rowsort
SELECT + + col0 * col0 FROM tab1 WHERE 13 IS NOT NULL
----
2601
7225
8281

query I rowsort
SELECT DISTINCT - 37 - col0 AS col2 FROM tab2
----
-101
-112
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-9176
SELECT DISTINCT - COUNT( * ) col1 FROM tab1 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9176
SELECT DISTINCT - COUNT ( * ) col1 FROM tab1 WHERE NULL IS NULL
----
-3

query I rowsort
SELECT ALL col1 - + - col0 FROM tab1
----
138
65
90

query I rowsort
SELECT DISTINCT 60 - - col1 FROM tab1
----
107
65
74

onlyif mysql # aggregate syntax: 
query I rowsort label-9179
SELECT ALL + SUM( + 93 ) FROM tab0
----
279

skipif mysql # not compatible
query I rowsort label-9179
SELECT ALL + SUM ( + 93 ) FROM tab0
----
279

onlyif mysql # aggregate syntax: 
query I rowsort label-9180
SELECT MIN( - 43 ) * COUNT( + - 20 ) FROM tab1
----
-129

skipif mysql # not compatible
query I rowsort label-9180
SELECT MIN ( - 43 ) * COUNT ( + - 20 ) FROM tab1
----
-129

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL = 27 * - col0
----

query I rowsort
SELECT ALL col1 * - - ( - ( + ( + + 81 ) ) ) FROM tab2 AS cor0
----
-4131
-5427
-6237

onlyif mysql # aggregate syntax: 
query I rowsort label-9183
SELECT + - COUNT( col2 ) FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9183
SELECT + - COUNT ( col2 ) FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----
0

query II rowsort
SELECT DISTINCT col2, col1 * + col0 + + 69 - + + col2 FROM tab1
----
59
435
68
4278
96
687

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 39 col2 FROM tab0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-9186
SELECT ALL - SUM( ALL - - 89 ) col0 FROM tab2 AS cor0
----
-267

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9186
SELECT ALL - SUM ( ALL - - 89 ) col0 FROM tab2 AS cor0
----
-267

query I rowsort
SELECT + + col0 * - - 51 FROM tab1 cor0
----
2601
4335
4641

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9188
SELECT - - 39 * - + 38 - - + SUM( + col1 ) + - CAST( + COUNT( * ) AS SIGNED ) FROM tab2 AS cor0
----
-1290

skipif mysql # not compatible
query I rowsort label-9188
SELECT - - 39 * - + 38 - - + SUM ( + col1 ) + - CAST ( + COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0
----
-1290

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * - - 72 col2 FROM tab1 AS cor0
----
3672
6120
6552

query III rowsort
SELECT ALL * FROM tab2 WHERE - + col1 / - ( - + col1 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9191
SELECT DISTINCT - - MIN( - - col2 ) FROM tab2 WHERE NOT + - col1 IS NULL
----
23

skipif mysql # not compatible
query I rowsort label-9191
SELECT DISTINCT - - MIN ( - - col2 ) FROM tab2 WHERE NOT + - col1 IS NULL
----
23

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - + col2 * col2 NOT BETWEEN NULL AND - + col1
----

query I rowsort
SELECT ALL + col2 * - - 9 + + - 99 + - col0 AS col1 FROM tab2 AS cor0
----
197
348
62

onlyif mysql # aggregate syntax: 
query I rowsort label-9194
SELECT - MAX( - col1 ) col1 FROM tab1 cor0
----
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9194
SELECT - MAX ( - col1 ) col1 FROM tab1 cor0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9195
SELECT + MAX( DISTINCT + col0 ) col0 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9195
SELECT + MAX ( DISTINCT + col0 ) col0 FROM tab1 AS cor0
----
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 + 10 col2, col1 AS col1 FROM tab2 AS cor0
----
-36
51
-54
77
-65
67

query I rowsort
SELECT - 77 + + col1 FROM tab2 cor0
----
-10
-26
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9198
SELECT CAST( COUNT( * ) AS SIGNED ) AS col2 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9198
SELECT CAST ( COUNT ( * ) AS INTEGER ) AS col2 FROM tab0 cor0
----
3

query I rowsort
SELECT ALL - 30 * + - col1 + - col1 FROM tab0 AS cor0
----
2349
29
609

query I rowsort
SELECT ALL - - 76 + + col2 AS col2 FROM tab2 AS cor0
----
116
134
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9201
SELECT ALL - SUM( - col0 ) + - MAX( DISTINCT + + 95 ) FROM tab2 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-9201
SELECT ALL - SUM ( - col0 ) + - MAX ( DISTINCT + + 95 ) FROM tab2 AS cor0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-9202
SELECT DISTINCT - - COUNT( * ) * + MAX( + col2 ) + - 18 FROM tab0 AS cor0
----
279

skipif mysql # not compatible
query I rowsort label-9202
SELECT DISTINCT - - COUNT ( * ) * + MAX ( + col2 ) + - 18 FROM tab0 AS cor0
----
279

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 12 - + col1 col0 FROM tab0 cor0
----
-69
-9
11

query I rowsort
SELECT + + col0 - col0 + col1 FROM tab0 cor0
----
1
21
81

query I rowsort
SELECT DISTINCT + 56 - + - col2 FROM tab1 cor0
----
115
124
152

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + - col2 ) + 60 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9207
SELECT DISTINCT + - COUNT( * ) * COUNT( * ) + + COUNT( * ) AS col1 FROM tab1 WHERE NULL BETWEEN 23 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-9207
SELECT DISTINCT + - COUNT ( * ) * COUNT ( * ) + + COUNT ( * ) AS col1 FROM tab1 WHERE NULL BETWEEN 23 AND NULL
----
0

query I rowsort
SELECT ALL 84 * - 88 * - 34 AS col2 FROM tab1
----
251328
251328
251328

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9209
SELECT DISTINCT CAST( NULL AS SIGNED ) * - col1 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9209
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - col1 AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9210
SELECT + 79 * + MIN( ALL + col2 ) FROM tab0 AS cor0
----
790

skipif mysql # not compatible
query I rowsort label-9210
SELECT + 79 * + MIN ( ALL + col2 ) FROM tab0 AS cor0
----
790

query I rowsort
SELECT ALL col2 + + + col0 * + 58 FROM tab1 AS cor0 WHERE NOT ( NOT + + col0 IS NULL )
----

query II rowsort
SELECT col1 AS col1, - 33 FROM tab2
----
51
-33
67
-33
77
-33

query I rowsort
SELECT ALL - ( - 47 ) FROM tab1
----
47
47
47

query I rowsort
SELECT 3 * 92 FROM tab2
----
276
276
276

onlyif mysql # aggregate syntax: 
query I rowsort label-9215
SELECT + MAX( - col1 ) col2 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9215
SELECT + MAX ( - col1 ) col2 FROM tab2 AS cor0
----
-51

query I rowsort
SELECT DISTINCT - 75 + + 32 FROM tab0 AS cor0
----
-43

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 22 * + col2 BETWEEN + col1 AND + + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 88 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9219
SELECT DISTINCT + CAST( NULL AS SIGNED ), 33 col2 FROM tab0 AS cor0
----
NULL
33

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9219
SELECT DISTINCT + CAST ( NULL AS INTEGER ), 33 col2 FROM tab0 AS cor0
----
NULL
33

onlyif mysql # aggregate syntax: 
query I rowsort label-9220
SELECT DISTINCT - 67 + + COUNT( - col0 ) AS col1 FROM tab2 AS cor0
----
-64

skipif mysql # not compatible
query I rowsort label-9220
SELECT DISTINCT - 67 + + COUNT ( - col0 ) AS col1 FROM tab2 AS cor0
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-9221
SELECT ALL - 57 + ( + - COUNT( * ) ) + + COUNT( * ) FROM tab1 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-9221
SELECT ALL - 57 + ( + - COUNT ( * ) ) + + COUNT ( * ) FROM tab1 AS cor0
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9222
SELECT DISTINCT + + CAST( 34 AS SIGNED ) + col2 FROM tab1 cor0
----
102
130
93

skipif mysql # not compatible
query I rowsort label-9222
SELECT DISTINCT + + CAST ( 34 AS INTEGER ) + col2 FROM tab1 cor0
----
102
130
93

query III rowsort
SELECT * FROM tab0 WHERE - ( + 8 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-9224
SELECT + col1 DIV - + col2 + + col2 * - col1 FROM tab2
----
-1175
-3081
-3887

skipif mysql # not compatible
query I rowsort label-9224
SELECT + col1 / - + col2 + + col2 * - col1 FROM tab2
----
-1175
-3081
-3887

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9225
SELECT DISTINCT + col2 + 80 + + col0 * + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9225
SELECT DISTINCT + col2 + 80 + + col0 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9226
SELECT ALL + col1, col0 * + col2 * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-9226
SELECT ALL + col1, col0 * + col2 * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9227
SELECT - CAST( 52 AS SIGNED ) col1 FROM tab1 AS cor0
----
-52
-52
-52

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9227
SELECT - CAST ( 52 AS INTEGER ) col1 FROM tab1 AS cor0
----
-52
-52
-52

query I rowsort
SELECT DISTINCT + 3 - - col2 FROM tab1 cor0
----
62
71
99

query I rowsort
SELECT ALL 36 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9230
SELECT DISTINCT + CAST( - col0 AS SIGNED ), + col0 + + col0 DIV col2 + - col2 AS col2 FROM tab1
----
-51
-45
-85
27
-91
24

skipif mysql # not compatible
query II rowsort label-9230
SELECT DISTINCT + CAST ( - col0 AS INTEGER ), + col0 + + col0 / col2 + - col2 AS col2 FROM tab1
----
-51
-45
-85
27
-91
24

onlyif mysql # aggregate syntax: 
query I rowsort label-9231
SELECT ALL COUNT( ALL + col1 ) * + + 47 FROM tab0 cor0
----
141

skipif mysql # not compatible
query I rowsort label-9231
SELECT ALL COUNT ( ALL + col1 ) * + + 47 FROM tab0 cor0
----
141

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9232
SELECT 47 * - 18 * + COUNT( * ) * + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9232
SELECT 47 * - 18 * + COUNT ( * ) * + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9233
SELECT DISTINCT ( + - 53 ) * COUNT( * ) FROM tab1
----
-159

skipif mysql # not compatible
query I rowsort label-9233
SELECT DISTINCT ( + - 53 ) * COUNT ( * ) FROM tab1
----
-159

query I rowsort
SELECT ALL 81 * + + 84 * - 49 FROM tab0
----
-333396
-333396
-333396

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9235
SELECT 88 DIV + COUNT( * ) AS col0 FROM tab2
----
29

skipif mysql # not compatible
query I rowsort label-9235
SELECT 88 / + COUNT ( * ) AS col0 FROM tab2
----
29

query I rowsort
SELECT ALL + col2 * + 76 FROM tab0
----
3572
7524
760

query II rowsort
SELECT 43 AS col1, - 19 + + + col2 FROM tab2
----
43
21
43
39
43
4

query I rowsort
SELECT + + col0 * col0 + - col2 AS col2 FROM tab2 cor0
----
2093
4056
5567

query I rowsort
SELECT - 79 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1b7b0b34fe3431fb409719624d12791f

query II rowsort
SELECT ALL - 89 + - + col2 AS col0, col2 - - + col1 FROM tab0 AS cor0
----
-136
128
-188
100
-99
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9241
SELECT - col0 + - + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9241
SELECT - col0 + - + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * - 94 * + + col2 FROM tab1 AS cor0
----
-327214
-434656
-866304

query I rowsort
SELECT + col1 * + ( - 8 ) AS col2 FROM tab0 AS cor0
----
-168
-648
-8

query III rowsort
SELECT * FROM tab0 WHERE NULL < + ( - - col0 )
----

query I rowsort
SELECT ALL col0 * - - ( - col1 ) FROM tab2
----
-2346
-4928
-5025

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9246
SELECT - 58 DIV - - CAST( - COUNT( * ) AS SIGNED ) col1 FROM tab1
----
19

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9246
SELECT - 58 / - - CAST ( - COUNT ( * ) AS INTEGER ) col1 FROM tab1
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9247
SELECT * FROM tab0 WHERE + - 59 + + - ( - CAST( NULL AS SIGNED ) ) * + + 75 + col0 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9247
SELECT * FROM tab0 WHERE + - 59 + + - ( - CAST ( NULL AS INTEGER ) ) * + + 75 + col0 IS NOT NULL
----

query II rowsort
SELECT - + col0 + + ( + 22 ) AS col2, col0 * + + 89 AS col0 FROM tab0 AS cor0
----
-65
7743
-75
8633
7
1335

query I rowsort
SELECT ALL + col1 - + 68 AS col2 FROM tab2 AS cor0
----
-1
-17
9

query I rowsort
SELECT DISTINCT + + 64 AS col2 FROM tab0 WHERE NOT + + col2 + - + 4 = - col0
----
64

query I rowsort
SELECT DISTINCT + col1 * + 71 + - col0 FROM tab1 cor0
----
270
3246
943

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9252
SELECT DISTINCT ( 84 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND - CAST( + 50 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-9252
SELECT DISTINCT ( 84 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND - CAST ( + 50 AS INTEGER )
----

query I rowsort
SELECT + ( col1 ) * + 50 AS col1 FROM tab0 AS cor0
----
1050
4050
50

query I rowsort
SELECT - 2 * + col0 AS col1 FROM tab0 AS cor0
----
-174
-194
-30

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) = + + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9256
SELECT col0 DIV + - 88 FROM tab0 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9256
SELECT col0 / + - 88 FROM tab0 cor0
----
-1
0
0

query III rowsort
SELECT * FROM tab0 WHERE NOT 4 NOT BETWEEN NULL AND + col0 + + col0
----

query I rowsort
SELECT DISTINCT 30 * - + col0 * ( - - col1 ) FROM tab1
----
-12750
-128310
-21420

query II rowsort
SELECT ALL col2 * col2 AS col2, + col1 - col1 AS col0 FROM tab2
----
1600
0
3364
0
529
0

query I rowsort
SELECT ALL + - col2 FROM tab1 WHERE - + col2 <> NULL
----

query I rowsort
SELECT + - col0 AS col1 FROM tab2 WHERE NOT - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9262
SELECT - col1 * - CAST( - col0 AS SIGNED ) AS col0 FROM tab2
----
-2346
-4928
-5025

skipif mysql # not compatible
query I rowsort label-9262
SELECT - col1 * - CAST ( - col0 AS INTEGER ) AS col0 FROM tab2
----
-2346
-4928
-5025

query II rowsort
SELECT ALL - col1 * - col1 AS col2, col0 FROM tab0
----
1
97
441
87
6561
15

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT - 63 IS NOT NULL ) OR NULL IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9265
SELECT DISTINCT + - 80 * + MAX( - - col2 ) AS col1 FROM tab0 cor0
----
-7920

skipif mysql # not compatible
query I rowsort label-9265
SELECT DISTINCT + - 80 * + MAX ( - - col2 ) AS col1 FROM tab0 cor0
----
-7920

query I rowsort
SELECT ALL 4 * col2 AS col2 FROM tab2 WHERE col0 > NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9267
SELECT + COUNT( * ) DIV + - 11 * + 85 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9267
SELECT + COUNT ( * ) / + - 11 * + 85 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9268
SELECT + 89 * COUNT( * ) FROM tab2 AS cor0
----
267

skipif mysql # not compatible
query I rowsort label-9268
SELECT + 89 * COUNT ( * ) FROM tab2 AS cor0
----
267

query I rowsort
SELECT ALL + + 29 + + - 52 FROM tab2 AS cor0
----
-23
-23
-23

query I rowsort
SELECT ALL + + 67 AS col0 FROM tab2 AS cor0
----
67
67
67

query I rowsort
SELECT ALL + - col2 AS col0 FROM tab1 cor0 WHERE 63 + col1 IS NOT NULL
----
-59
-68
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9272
SELECT col2 + + CAST( ( + col0 ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
196
62
97

skipif mysql # not compatible
query I rowsort label-9272
SELECT col2 + + CAST ( ( + col0 ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
196
62
97

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col2 + 19 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col0 NOT BETWEEN + - 49 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9275
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + 75 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9275
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + 75 FROM tab2 cor0
----
NULL

query I rowsort
SELECT - 37 AS col0 FROM tab1 AS cor0 WHERE 51 <= + 5 * + col2 + - col2
----
-37
-37
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-9277
SELECT ALL - - 51 + + COUNT( * ) FROM tab0 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-9277
SELECT ALL - - 51 + + COUNT ( * ) FROM tab0 AS cor0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-9278
SELECT COUNT( DISTINCT - col0 ) + - COUNT( * ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9278
SELECT COUNT ( DISTINCT - col0 ) + - COUNT ( * ) FROM tab0
----
0

query I rowsort
SELECT col0 * - - ( - col0 ) AS col1 FROM tab1
----
-2601
-7225
-8281

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9280
SELECT ALL MAX( 47 ) DIV + - 9 AS col2 FROM tab2
----
-5

skipif mysql # not compatible
query I rowsort label-9280
SELECT ALL MAX ( 47 ) / + - 9 AS col2 FROM tab2
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9281
SELECT ALL ( - + COUNT( * ) ) + - COUNT( DISTINCT - 96 ) FROM tab1
----
-4

skipif mysql # not compatible
query I rowsort label-9281
SELECT ALL ( - + COUNT ( * ) ) + - COUNT ( DISTINCT - 96 ) FROM tab1
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9282
SELECT ALL - CAST( - col0 AS SIGNED ) + - col1 FROM tab2 AS cor0 WHERE CAST( + + col1 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-9282
SELECT ALL - CAST ( - col0 AS INTEGER ) + - col1 FROM tab2 AS cor0 WHERE CAST ( + + col1 AS INTEGER ) IS NULL
----

query I rowsort
SELECT ALL + 88 + - col2 + - + col1 FROM tab2 AS cor0
----
-29
-37
14

query I rowsort
SELECT DISTINCT - ( + ( col0 ) ) - + 80 AS col2 FROM tab0 AS cor0
----
-167
-177
-95

query I rowsort
SELECT 37 - + 97 * - col2 - + + 10 + - 5 FROM tab0 AS cor0
----
4581
9625
992

query I rowsort
SELECT - 92 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1af709a79a3e56281ffdce4d931d5965

onlyif mysql # aggregate syntax: 
query I rowsort label-9287
SELECT DISTINCT + MAX( DISTINCT - - 23 ) FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-9287
SELECT DISTINCT + MAX ( DISTINCT - - 23 ) FROM tab2 AS cor0
----
23

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL > - col1 / - col1 + col1
----

query II rowsort
SELECT col1 AS col0, + col2 AS col1 FROM tab2 cor0
----
51
23
67
58
77
40

onlyif mysql # aggregate syntax: 
query I rowsort label-9290
SELECT DISTINCT MAX( + + col0 ) AS col2 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-9290
SELECT DISTINCT MAX ( + + col0 ) AS col2 FROM tab0 AS cor0
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-9291
SELECT 94 DIV - col0 + + - col1 AS col2 FROM tab0 AS cor0
----
-1
-22
-87

skipif mysql # not compatible
query I rowsort label-9291
SELECT 94 / - col0 + + - col1 AS col2 FROM tab0 AS cor0
----
-1
-22
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-9292
SELECT - - 65 * COUNT( * ) AS col1 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-9292
SELECT - - 65 * COUNT ( * ) AS col1 FROM tab2 AS cor0
----
195

query II rowsort
SELECT 32 * - col2, + 67 + + 45 AS col1 FROM tab0
----
-1504
112
-3168
112
-320
112

onlyif mysql # aggregate syntax: 
query II rowsort label-9294
SELECT - COUNT( * ), + MAX( ALL col0 ) AS col0 FROM tab1
----
-3
91

skipif mysql # not compatible
query II rowsort label-9294
SELECT - COUNT ( * ), + MAX ( ALL col0 ) AS col0 FROM tab1
----
-3
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9295
SELECT DISTINCT col0 + + CAST( NULL AS SIGNED ) - ( col2 ) * + 14 FROM tab2 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-9295
SELECT DISTINCT col0 + + CAST ( NULL AS INTEGER ) - ( col2 ) * + 14 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - ( - - 82 ) AS col0 FROM tab1
----
-82
-82
-82

query I rowsort
SELECT ALL + - ( + + col0 ) + - col0 FROM tab2 AS cor0
----
-128
-150
-92

query II rowsort
SELECT - ( - col1 ) AS col2, + col0 AS col0 FROM tab1 AS cor0
----
14
51
47
91
5
85

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT IN ( + col0, col0, - 72 - 13 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9300
SELECT DISTINCT - + COUNT( * ) DIV + - MAX( + col1 ) + - - CAST( - COUNT( * ) AS SIGNED ) AS col1 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9300
SELECT DISTINCT - + COUNT ( * ) / + - MAX ( + col1 ) + - - CAST ( - COUNT ( * ) AS INTEGER ) AS col1 FROM tab0 cor0
----
-3

query I rowsort
SELECT + 63 * col0 + + col1 AS col1 FROM tab2 cor0
----
2949
4109
4792

query I rowsort
SELECT ALL + col2 * - - 23 + - + col1 AS col2 FROM tab2 AS cor0
----
1267
478
843

onlyif mysql # aggregate syntax: 
query I rowsort label-9303
SELECT DISTINCT COUNT( * ) + - MIN( ALL + col1 ) col0 FROM tab1 AS cor0
----
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9303
SELECT DISTINCT COUNT ( * ) + - MIN ( ALL + col1 ) col0 FROM tab1 AS cor0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9304
SELECT MAX( ALL + col2 ) col1 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9304
SELECT MAX ( ALL + col2 ) col1 FROM tab0 AS cor0
----
99

query I rowsort
SELECT ALL + ( + col0 ) + + + col0 FROM tab0 cor0
----
174
194
30

query II rowsort
SELECT DISTINCT - 79, 31 AS col2 FROM tab2
----
-79
31

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NOT + 97 + + + 20 IS NULL )
----

query II rowsort
SELECT col2 + - col0 - - ( 11 ) + - 33 * - 35 AS col0, - col1 FROM tab1
----
1140
-5
1143
-47
1211
-14

onlyif mysql # aggregate syntax: 
query II rowsort label-9309
SELECT - SUM( + 69 ) + - + COUNT( * ), + 85 AS col1 FROM tab2 AS cor0
----
-210
85

skipif mysql # not compatible
query II rowsort label-9309
SELECT - SUM ( + 69 ) + - + COUNT ( * ), + 85 AS col1 FROM tab2 AS cor0
----
-210
85

query I rowsort
SELECT ALL + - 21 + + col0 FROM tab2 AS cor0
----
25
43
54

onlyif mysql # DIV for integer division: 
query I rowsort label-9311
SELECT DISTINCT - + 22 + - - col0 DIV - col1 AS col1 FROM tab0 cor0
----
-119
-22
-26

skipif mysql # not compatible
query I rowsort label-9311
SELECT DISTINCT - + 22 + - - col0 / - col1 AS col1 FROM tab0 cor0
----
-119
-22
-26

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL = 35
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9313
SELECT + MAX( + col2 ) AS col1 FROM tab0 WHERE col0 NOT BETWEEN col2 + + col0 AND + ( + 59 )
----
99

skipif mysql # not compatible
query I rowsort label-9313
SELECT + MAX ( + col2 ) AS col1 FROM tab0 WHERE col0 NOT BETWEEN col2 + + col0 AND + ( + 59 )
----
99

query III rowsort
SELECT * FROM tab1 WHERE NOT ( 92 * - col0 ) IN ( + col2 + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 45 - - col0 AS col2 FROM tab2
----
1
19
30

onlyif mysql # aggregate syntax: 
query I rowsort label-9316
SELECT + 35 - COUNT( * ) AS col0 FROM tab1
----
32

skipif mysql # not compatible
query I rowsort label-9316
SELECT + 35 - COUNT ( * ) AS col0 FROM tab1
----
32

query III rowsort
SELECT ALL * FROM tab1 WHERE col2 NOT BETWEEN NULL AND ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9318
SELECT DISTINCT - SUM( - col1 ) + 70 FROM tab1
----
136

skipif mysql # not compatible
query I rowsort label-9318
SELECT DISTINCT - SUM ( - col1 ) + 70 FROM tab1
----
136

query III rowsort
SELECT ALL * FROM tab1 WHERE - col1 IN ( + ( + 23 ) )
----

query I rowsort
SELECT + 85 FROM tab0 WHERE NOT - col1 * + 29 + + 22 IS NOT NULL
----

query I rowsort
SELECT - col2 * 4 AS col2 FROM tab1 WHERE - 86 IN ( 49 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9322
SELECT ALL + CAST( + col2 AS SIGNED ) AS col0 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-9322
SELECT ALL + CAST ( + col2 AS INTEGER ) AS col0 FROM tab2
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9323
SELECT ALL - SUM( - 83 ) col2 FROM tab1
----
249

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9323
SELECT ALL - SUM ( - 83 ) col2 FROM tab1
----
249

query I rowsort
SELECT DISTINCT - col0 + - 37 * col2 FROM tab1
----
-2268
-2607
-3603

query I rowsort
SELECT ( 83 ) AS col2 FROM tab2
----
83
83
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 76 col2 FROM tab2
----
76
76
76

onlyif mysql # aggregate syntax: 
query I rowsort label-9327
SELECT - SUM( 92 ) col2 FROM tab1
----
-276

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9327
SELECT - SUM ( 92 ) col2 FROM tab1
----
-276

query I rowsort
SELECT + col1 FROM tab0 WHERE + col1 * col0 - col1 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col0 FROM tab1 WHERE + col2 >= - col2 * 71
----
59
68
96

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col1 + col1 NOT BETWEEN 23 AND NULL
----

query I rowsort
SELECT ALL 96 / - 46 + col0 FROM tab2 WHERE - 13 IN ( col0 )
----

query I rowsort
SELECT col1 * - 5 FROM tab1
----
-235
-25
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9333
SELECT ALL CAST( NULL AS SIGNED ) * col1 + 23 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9333
SELECT ALL CAST ( NULL AS INTEGER ) * col1 + 23 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + 98 * col0 AS col2 FROM tab2
----
4508
6272
7350

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9335
SELECT - 66 * - ( col1 ) AS col1 FROM tab0 WHERE + 29 * + col1 NOT IN ( - 58 * CAST( CAST( + CAST( 73 AS SIGNED ) AS SIGNED ) AS SIGNED ) )
----
1386
5346
66

skipif mysql # not compatible
query I rowsort label-9335
SELECT - 66 * - ( col1 ) AS col1 FROM tab0 WHERE + 29 * + col1 NOT IN ( - 58 * CAST ( CAST ( + CAST ( 73 AS INTEGER ) AS INTEGER ) AS INTEGER ) )
----
1386
5346
66

onlyif mysql # aggregate syntax: 
query I rowsort label-9336
SELECT - COUNT( * ) + 42 * 91 AS col2 FROM tab1 AS cor0
----
3819

skipif mysql # not compatible
query I rowsort label-9336
SELECT - COUNT ( * ) + 42 * 91 AS col2 FROM tab1 AS cor0
----
3819

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( col2 + + col0 * + col1 ) = NULL
----

query I rowsort
SELECT DISTINCT 84 + + col2 FROM tab0 AS cor0
----
131
183
94

onlyif mysql # aggregate syntax: 
query I rowsort label-9339
SELECT ALL COUNT( * ) + SUM( - col2 ) FROM tab0 AS cor0
----
-153

skipif mysql # not compatible
query I rowsort label-9339
SELECT ALL COUNT ( * ) + SUM ( - col2 ) FROM tab0 AS cor0
----
-153

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - 23 ) = 17
----

query I rowsort
SELECT DISTINCT + 1 FROM tab2 AS cor0 WHERE - col0 * col2 = NULL
----

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab0 AS cor0 WHERE NOT ( + col0 ) IS NOT NULL
----

query I rowsort
SELECT + 1 FROM tab2 WHERE col0 IS NOT NULL
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9344
SELECT DISTINCT COUNT( * ) * COUNT( * ) + + 24 AS col2 FROM tab2
----
33

skipif mysql # not compatible
query I rowsort label-9344
SELECT DISTINCT COUNT ( * ) * COUNT ( * ) + + 24 AS col2 FROM tab2
----
33

query I rowsort
SELECT ( 45 ) FROM tab1
----
45
45
45

query III rowsort
SELECT ALL * FROM tab2 WHERE 20 BETWEEN - 63 AND NULL
----

query I rowsort
SELECT AVG ( col0 ) + - 46 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND ( - 32 )
----
NULL

query I rowsort
SELECT DISTINCT col1 FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
14
47
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( col1 ) + 97 col0 FROM tab1 AS cor0
----
102
111
144

onlyif mysql # DIV for integer division: 
query I rowsort label-9350
SELECT - col0 + + 76 DIV + 35 AS col2 FROM tab2 AS cor0
----
-44
-62
-73

skipif mysql # not compatible
query I rowsort label-9350
SELECT - col0 + + 76 / + 35 AS col2 FROM tab2 AS cor0
----
-44
-62
-73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - col2 ) + col2 * col1 col0 FROM tab1 AS cor0
----
1248
236
3128

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 16 + col2 * 13 = - col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col2 + col1 BETWEEN - col1 AND + 59 * - 90
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9354
SELECT - 94 + COUNT( * ) FROM tab2 AS cor0 WHERE NULL <> 54
----
-94

skipif mysql # not compatible
query I rowsort label-9354
SELECT - 94 + COUNT ( * ) FROM tab2 AS cor0 WHERE NULL <> 54
----
-94

query I rowsort
SELECT DISTINCT 85 * col2 + ( col0 ) AS col0 FROM tab1 cor0
----
5100
5871
8211

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - ( + 11 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 + + 19 col1 FROM tab0 AS cor0
----
100
20
40

onlyif mysql # DIV for integer division: 
query I rowsort label-9358
SELECT DISTINCT + + 47 DIV col2 - + ( 28 ) AS col2 FROM tab2 AS cor0
----
-26
-27
-28

skipif mysql # not compatible
query I rowsort label-9358
SELECT DISTINCT + + 47 / col2 - + ( 28 ) AS col2 FROM tab2 AS cor0
----
-26
-27
-28

query I rowsort
SELECT ALL 21 + + col1 AS col0 FROM tab2 cor0
----
72
88
98

query I rowsort
SELECT ALL 88 - 85 FROM tab1 AS cor0
----
3
3
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9361
SELECT - CAST( NULL AS SIGNED ) AS col0 FROM tab2 WHERE ( 52 ) IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9361
SELECT - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 WHERE ( 52 ) IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9362
SELECT col0 DIV - col2 + - col0 AS col0 FROM tab1
----
-51
-86
-92

skipif mysql # not compatible
query I rowsort label-9362
SELECT col0 / - col2 + - col0 AS col0 FROM tab1
----
-51
-86
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-9363
SELECT ALL MIN( col2 ) col2 FROM tab1 WHERE col2 IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9363
SELECT ALL MIN ( col2 ) col2 FROM tab1 WHERE col2 IS NULL
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9364
SELECT ALL * FROM tab2 WHERE NOT NULL BETWEEN ( - 28 ) AND + CAST( NULL AS DECIMAL ) * - col2
----

skipif mysql # not compatible
query III rowsort label-9364
SELECT ALL * FROM tab2 WHERE NOT NULL BETWEEN ( - 28 ) AND + CAST ( NULL AS REAL ) * - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9365
SELECT DISTINCT - 22 * - - COUNT( * ) FROM tab2
----
-66

skipif mysql # not compatible
query I rowsort label-9365
SELECT DISTINCT - 22 * - - COUNT ( * ) FROM tab2
----
-66

query I rowsort
SELECT ALL + col2 * - 35 - - col2 AS col0 FROM tab0
----
-1598
-3366
-340

onlyif mysql # aggregate syntax: 
query I rowsort label-9367
SELECT ALL + 97 * MAX( - 64 ) FROM tab0 WHERE NULL <= ( 61 / 72 + - col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9367
SELECT ALL + 97 * MAX ( - 64 ) FROM tab0 WHERE NULL <= ( 61 / 72 + - col2 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9368
SELECT + CAST( NULL AS SIGNED ) * 42 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9368
SELECT + CAST ( NULL AS INTEGER ) * 42 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9369
SELECT DISTINCT 89 - - + COUNT( * ) + + 33 FROM tab2
----
125

skipif mysql # not compatible
query I rowsort label-9369
SELECT DISTINCT 89 - - + COUNT ( * ) + + 33 FROM tab2
----
125

query I rowsort
SELECT DISTINCT + 96 * - 7 FROM tab1
----
-672

onlyif mysql # DIV for integer division: 
query I rowsort label-9371
SELECT ALL 43 DIV + + col2 FROM tab0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-9371
SELECT ALL 43 / + + col2 FROM tab0
----
0
0
4

query I rowsort
SELECT DISTINCT + 29 * ( - 26 ) * - 92 + + col0 * col2 FROM tab1 cor0
----
74264
74383
75556

query I rowsort
SELECT col1 AS col1 FROM tab1 AS cor0 WHERE NOT - col0 * col2 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col1 + - col0 * col2 NOT IN ( col0 )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9375
SELECT - CAST( + - col1 AS SIGNED ) DIV + 67 AS col1 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9375
SELECT - CAST ( + - col1 AS INTEGER ) / + 67 AS col1 FROM tab0 AS cor0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9376
SELECT + - ( - + COUNT( ALL - col1 ) ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9376
SELECT + - ( - + COUNT ( ALL - col1 ) ) AS col1 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9377
SELECT CAST( NULL AS SIGNED ) * - col2 AS col0 FROM tab1 AS cor0 WHERE NOT + col2 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9377
SELECT CAST ( NULL AS INTEGER ) * - col2 AS col0 FROM tab1 AS cor0 WHERE NOT + col2 IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT 25 * 19 FROM tab2
----
475
475
475

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * 43 * + 13 col0 FROM tab0
----
26273
55341
5590

query I rowsort
SELECT - 86 FROM ( tab0 AS cor0 CROSS JOIN tab0 cor1 )
----
9 values hashing to 9ac806793c03d3a6b5e3a3029d20e4da

query I rowsort
SELECT col0 FROM tab2 WHERE NOT - 74 IN ( col2 + ( col2 ) * col2 )
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9382
SELECT - COUNT( * ) AS col2 FROM tab2 WHERE NOT col0 * 73 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-9382
SELECT - COUNT ( * ) AS col2 FROM tab2 WHERE NOT col0 * 73 <= NULL
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9383
SELECT + + COUNT( * ) DIV COUNT( * ) FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
1

skipif mysql # not compatible
query I rowsort label-9383
SELECT + + COUNT ( * ) / COUNT ( * ) FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 col0 FROM tab0 AS cor0 WHERE NOT + 52 + - ( - col2 ) + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9385
SELECT * FROM tab1 AS cor0 WHERE NOT ( + 61 + - + CAST( NULL AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-9385
SELECT * FROM tab1 AS cor0 WHERE NOT ( + 61 + - + CAST ( NULL AS INTEGER ) ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9386
SELECT - col1 DIV + ( 86 ) * - ( + col0 ) * - col1 + col0 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-9386
SELECT - col1 / + ( 86 ) * - ( + col0 ) * - col1 + col0 FROM tab1
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9387
SELECT ALL - MIN( ALL col0 ) AS col2 FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-9387
SELECT ALL - MIN ( ALL col0 ) AS col2 FROM tab2
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-9388
SELECT COUNT( * ) * MAX( DISTINCT col2 ) FROM tab0
----
297

skipif mysql # not compatible
query I rowsort label-9388
SELECT COUNT ( * ) * MAX ( DISTINCT col2 ) FROM tab0
----
297

onlyif mysql # aggregate syntax: 
query I rowsort label-9389
SELECT SUM( DISTINCT - 73 ) FROM tab1
----
-73

skipif mysql # not compatible
query I rowsort label-9389
SELECT SUM ( DISTINCT - 73 ) FROM tab1
----
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9390
SELECT col0 * - CAST( NULL AS SIGNED ) / - 92 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9390
SELECT col0 * - CAST ( NULL AS INTEGER ) / - 92 AS col0 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT 59 > ( + ( + 88 ) * + 21 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9392
SELECT ALL MIN( col1 ) FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-9392
SELECT ALL MIN ( col1 ) FROM tab1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9393
SELECT ALL + 63 + - COUNT( * ) + - COUNT( * ) AS col0 FROM tab0
----
57

skipif mysql # not compatible
query I rowsort label-9393
SELECT ALL + 63 + - COUNT ( * ) + - COUNT ( * ) AS col0 FROM tab0
----
57

query I rowsort
SELECT DISTINCT - - col0 AS col2 FROM tab0 WHERE + - col0 IS NULL
----

query I rowsort
SELECT ALL - 77 * + 95 AS col2 FROM tab0
----
-7315
-7315
-7315

onlyif mysql # aggregate syntax: 
query I rowsort label-9396
SELECT - - 8 + + COUNT( * ) + + 92 AS col1 FROM tab1 WHERE NULL >= NULL
----
100

skipif mysql # not compatible
query I rowsort label-9396
SELECT - - 8 + + COUNT ( * ) + + 92 AS col1 FROM tab1 WHERE NULL >= NULL
----
100

query I rowsort
SELECT DISTINCT + - col2 * - col2 + - col2 + + ( - col2 ) + col0 AS col2 FROM tab1 cor0
----
3448
4579
9075

query I rowsort
SELECT col0 * col0 + + 59 FROM tab2 AS cor0
----
2175
4155
5684

query I rowsort
SELECT - col1 + 92 + + - col1 * - col2 FROM tab1 AS cor0
----
1422
3241
382

query III rowsort
SELECT * FROM tab2 WHERE + col1 >= - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE + - col1 * - col2 + - col2 > + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 52 + + col1 BETWEEN NULL AND + 17 / ( col1 + + 29 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9403
SELECT - COUNT( * ) * SUM( DISTINCT - - col0 ) FROM tab2
----
-555

skipif mysql # not compatible
query I rowsort label-9403
SELECT - COUNT ( * ) * SUM ( DISTINCT - - col0 ) FROM tab2
----
-555

query I rowsort
SELECT col1 * + col2 * - col1 FROM tab0 cor0
----
-308367
-4410
-99

query I rowsort
SELECT DISTINCT 24 * - col2 FROM tab1 AS cor0
----
-1416
-1632
-2304

query I rowsort
SELECT ALL col1 * + 96 FROM tab0 cor0 WHERE NOT ( ( - 53 ) / col2 ) >= + col1 * col2
----
2016
7776
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9407
SELECT ALL - CAST( NULL AS SIGNED ) + + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9407
SELECT ALL - CAST ( NULL AS INTEGER ) + + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - 5 * - 62 * - col1 * - + 25 AS col2 FROM tab0 AS cor0
----
162750
627750
7750

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 / - col0 IS NOT NULL
----

query I rowsort
SELECT ALL - 22 + col1 AS col2 FROM tab0 AS cor0
----
-1
-21
59

query I rowsort
SELECT ALL + - ( + col2 ) + + 39 + - - col0 AS col0 FROM tab1 AS cor0
----
-6
62
65

query I rowsort
SELECT - - col0 * + col1 * - 1 - + - 44 FROM tab2 AS cor0
----
-2302
-4884
-4981

query I rowsort
SELECT DISTINCT - col2 + + 14 AS col2 FROM tab2
----
-26
-44
-9

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NULL ) >= - 71
----

query I rowsort
SELECT DISTINCT + col2 + + col1 FROM tab1 WHERE NULL IN ( + - 45 )
----

query I rowsort
SELECT DISTINCT col2 * 4 - - 38 FROM tab1
----
274
310
422

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9417
SELECT DISTINCT + + CAST( - - ( - ( + 64 ) ) AS SIGNED ) + ( - col0 ) * 1 AS col1 FROM tab0 WHERE ( NULL >= ( NULL ) )
----

skipif mysql # not compatible
query I rowsort label-9417
SELECT DISTINCT + + CAST ( - - ( - ( + 64 ) ) AS INTEGER ) + ( - col0 ) * 1 AS col1 FROM tab0 WHERE ( NULL >= ( NULL ) )
----

query II rowsort
SELECT 75, - 87 * + col2 AS col2 FROM tab2
----
75
-2001
75
-3480
75
-5046

onlyif mysql # aggregate syntax: 
query II rowsort label-9419
SELECT COUNT( * ) AS col1, ( + - COUNT( * ) ) AS col0 FROM tab2 cor0 WHERE NOT NULL IS NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-9419
SELECT COUNT ( * ) AS col1, ( + - COUNT ( * ) ) AS col0 FROM tab2 cor0 WHERE NOT NULL IS NULL
----
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT + 32 AS col0, col1 * + col0 * - col1 * col2 FROM tab1 AS cor0
----
32
-125375
32
-13669292
32
-959616

onlyif mysql # aggregate syntax: 
query I rowsort label-9422
SELECT + - COUNT( * ) * + 62 FROM tab2 AS cor0
----
-186

skipif mysql # not compatible
query I rowsort label-9422
SELECT + - COUNT ( * ) * + 62 FROM tab2 AS cor0
----
-186

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 68 + - col2 <> NULL
----

query I rowsort
SELECT DISTINCT - - col0 - - 28 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
113
119
79

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + ( - col0 ) * - - ( - col2 ) = - + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9426
SELECT ALL ( + col2 ) * - + 67 + - CAST( NULL AS SIGNED ) * - - col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9426
SELECT ALL ( + col2 ) * - + 67 + - CAST ( NULL AS INTEGER ) * - - col1 FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT - ( + col1 ) * + ( + + col1 ) AS col1, col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9428
SELECT ALL - col2 DIV + col0 AS col2, - CAST( col1 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
0
-51
0
-67
0
-77

skipif mysql # not compatible
query II rowsort label-9428
SELECT ALL - col2 / + col0 AS col2, - CAST ( col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
0
-51
0
-67
0
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-9429
SELECT - MAX( DISTINCT - + col0 ) FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-9429
SELECT - MAX ( DISTINCT - + col0 ) FROM tab1 AS cor0
----
51

query I rowsort
SELECT ALL col0 * 18 * col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
111384
88128
90270

onlyif mysql # aggregate syntax: 
query I rowsort label-9431
SELECT DISTINCT + 29 * + COUNT( * ) * - SUM( col0 ) AS col2 FROM tab1
----
-19749

skipif mysql # not compatible
query I rowsort label-9431
SELECT DISTINCT + 29 * + COUNT ( * ) * - SUM ( col0 ) AS col2 FROM tab1
----
-19749

query I rowsort
SELECT 83 + - col1 AS col2 FROM tab1
----
36
69
78

onlyif mysql # aggregate syntax: 
query II rowsort label-9433
SELECT ALL COUNT( * ) col1, - 60 AS col2 FROM tab0
----
3
-60

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9433
SELECT ALL COUNT ( * ) col1, - 60 AS col2 FROM tab0
----
3
-60

query I rowsort
SELECT DISTINCT - 60 * - 35 FROM tab2
----
2100

onlyif mysql # DIV for integer division: 
query I rowsort label-9435
SELECT ALL 42 DIV col2 AS col0 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-9435
SELECT ALL 42 / col2 AS col0 FROM tab2
----
0
1
1

query I rowsort
SELECT DISTINCT - - 92 AS col1 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9437
SELECT ALL + 33 DIV + col2 * + + col2, + col2 AS col2 FROM tab1
----
0
59
0
68
0
96

skipif mysql # not compatible
query II rowsort label-9437
SELECT ALL + 33 / + col2 * + + col2, + col2 AS col2 FROM tab1
----
0
59
0
68
0
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9438
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + col1 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9438
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + col1 AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + + col0 * col1 + - col2 AS col0 FROM tab2 AS cor0
----
2323
4888
4967

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + col0 col1 FROM tab2 AS cor0
----
128
150
92

query I rowsort
SELECT DISTINCT + col0 + - + 22 FROM tab1 cor0
----
29
63
69

onlyif mysql # DIV for integer division: 
query I rowsort label-9442
SELECT DISTINCT col1 DIV + - 20 AS col0 FROM tab1
----
-2
0

skipif mysql # not compatible
query I rowsort label-9442
SELECT DISTINCT col1 / + - 20 AS col0 FROM tab1
----
-2
0

query II rowsort
SELECT - col1 - - 53 AS col2, + col2 AS col1 FROM tab1
----
39
96
48
59
6
68

onlyif mysql # DIV for integer division: 
query I rowsort label-9444
SELECT col2 - - 3 + - 17 * + - col2 + col2 + col2 DIV - col0 FROM tab0
----
1883
193
893

skipif mysql # not compatible
query I rowsort label-9444
SELECT col2 - - 3 + - 17 * + - col2 + col2 + col2 / - col0 FROM tab0
----
1883
193
893

query I rowsort
SELECT - col1 * col2 + 85 FROM tab0
----
-125
-14
-3722

query I rowsort
SELECT ALL + col2 AS col1 FROM tab0 AS cor0 WHERE NOT ( 82 * - - ( + + col0 ) + - ( + - col1 ) ) IS NOT NULL
----

query I rowsort
SELECT 50 + - 86 + - col1 AS col1 FROM tab1 AS cor0
----
-41
-50
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-9448
SELECT + col0 DIV 58 col1 FROM tab1
----
0
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9448
SELECT + col0 / 58 col1 FROM tab1
----
0
1
1

query I rowsort
SELECT col1 * 84 * - + 4 AS col1 FROM tab1
----
-15792
-1680
-4704

onlyif mysql # aggregate syntax: 
query II rowsort label-9450
SELECT DISTINCT + COUNT( * ) AS col2, 35 FROM tab2
----
3
35

skipif mysql # not compatible
query II rowsort label-9450
SELECT DISTINCT + COUNT ( * ) AS col2, 35 FROM tab2
----
3
35

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL = 18
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9452
SELECT DISTINCT + COUNT( 1 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9452
SELECT DISTINCT + COUNT ( 1 ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT + col0 * - col1 + - 84 + + 25 AS col1 FROM tab0 AS cor0
----
-1274
-156
-1886

onlyif mysql # aggregate syntax: 
query I rowsort label-9454
SELECT ALL SUM( + 32 ) FROM tab2 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-9454
SELECT ALL SUM ( + 32 ) FROM tab2 AS cor0
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-9455
SELECT ALL - col1 DIV - col0 AS col1 FROM tab0 AS cor0 WHERE ( + 41 ) IS NOT NULL
----
0
0
5

skipif mysql # not compatible
query I rowsort label-9455
SELECT ALL - col1 / - col0 AS col1 FROM tab0 AS cor0 WHERE ( + 41 ) IS NOT NULL
----
0
0
5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9456
SELECT + - CAST( NULL AS SIGNED ), ( 73 ) AS col0 FROM tab2 AS cor0
----
NULL
73
NULL
73
NULL
73

skipif mysql # not compatible
query II rowsort label-9456
SELECT + - CAST ( NULL AS INTEGER ), ( 73 ) AS col0 FROM tab2 AS cor0
----
NULL
73
NULL
73
NULL
73

query I rowsort
SELECT DISTINCT - ( + - col0 ) + col2 AS col0 FROM tab2 AS cor0
----
104
133
69

query I rowsort
SELECT ALL + 41 * + + col2 AS col0 FROM tab1 AS cor0
----
2419
2788
3936

query II rowsort
SELECT DISTINCT col2 * col0 AS col1, col0 FROM tab0 AS cor0
----
705
15
870
87
9603
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9460
SELECT - 50 * + CAST( NULL AS SIGNED ) * + col0 * col0 / - 98 - + 43 + + 94 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9460
SELECT - 50 * + CAST ( NULL AS INTEGER ) * + col0 * col0 / - 98 - + 43 + + 94 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 * 86 + + col0 FROM tab2 AS cor0
----
4432
5837
6686

query I rowsort
SELECT ALL + col2 + - 97 FROM tab1 AS cor0
----
-1
-29
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9463
SELECT DISTINCT + col1 * - CAST( + + col1 AS SIGNED ) FROM tab0 AS cor0
----
-1
-441
-6561

skipif mysql # not compatible
query I rowsort label-9463
SELECT DISTINCT + col1 * - CAST ( + + col1 AS INTEGER ) FROM tab0 AS cor0
----
-1
-441
-6561

query I rowsort
SELECT - 65 AS col1 FROM tab2 AS cor0 WHERE NULL NOT IN ( col2, - col0 * - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9465
SELECT + CAST( NULL AS SIGNED ) * 7 * + - col0 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9465
SELECT + CAST ( NULL AS INTEGER ) * 7 * + - col0 AS col1 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + - col1 * + + ( col0 ) + 21 - + - col1 * + 76 IS NULL
----

query I rowsort
SELECT ALL - 99 * - col0 * - col2 FROM tab2
----
-104742
-253440
-430650

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL < + + col2
----

query I rowsort
SELECT col1 * col0 + col2 FROM tab1 AS cor0 WHERE - col2 <= - + col2
----
4345
484
810

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9470
SELECT DISTINCT - - CAST( NULL AS SIGNED ) + - + 25 * + 58 + - - 92 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9470
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) + - + 25 * + 58 + - - 92 AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + col1 + + col2 + - 68 * 63 FROM tab0 AS cor0
----
-4156
-4184
-4253

onlyif mysql # aggregate syntax: 
query I rowsort label-9472
SELECT - COUNT( * ) * COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-81

skipif mysql # not compatible
query I rowsort label-9472
SELECT - COUNT ( * ) * COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-9473
SELECT ALL MIN( + 69 ) + - - ( - 74 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-5

skipif mysql # not compatible
query I rowsort label-9473
SELECT ALL MIN ( + 69 ) + - - ( - 74 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9474
SELECT COUNT( * ) * + + COUNT( * ) AS col2 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-9474
SELECT COUNT ( * ) * + + COUNT ( * ) AS col2 FROM tab1
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-9475
SELECT + 55 DIV - 7 AS col1 FROM tab0 AS cor0
----
-7
-7
-7

skipif mysql # not compatible
query I rowsort label-9475
SELECT + 55 / - 7 AS col1 FROM tab0 AS cor0
----
-7
-7
-7

query I rowsort
SELECT + 59 - + col1 AS col0 FROM tab2 AS cor0
----
-18
-8
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - + + 34 col2 FROM tab0 AS cor0
----
-115
-35
-55

query I rowsort
SELECT + col1 - - 22 FROM tab1 AS cor0
----
27
36
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 + col1 col1 FROM tab1 AS cor0
----
-37
-44
-80

onlyif mysql # DIV for integer division: 
query II rowsort label-9480
SELECT DISTINCT col2, col2 DIV - + col0 col2 FROM tab0 AS cor0
----
10
0
47
-3
99
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9480
SELECT DISTINCT col2, col2 / - + col0 col2 FROM tab0 AS cor0
----
10
0
47
-3
99
-1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT + - col1 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9482
SELECT ALL + COUNT( * ) FROM tab2 cor0 WHERE NOT ( NOT - + col0 + 40 IS NULL )
----
0

skipif mysql # not compatible
query I rowsort label-9482
SELECT ALL + COUNT ( * ) FROM tab2 cor0 WHERE NOT ( NOT - + col0 + 40 IS NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9483
SELECT DISTINCT 92 * MAX( - col1 ) FROM tab2
----
-4692

skipif mysql # not compatible
query I rowsort label-9483
SELECT DISTINCT 92 * MAX ( - col1 ) FROM tab2
----
-4692

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - + col2 ) col1 FROM tab2
----
-23
-40
-58

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 89 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - ( + + 95 ) AS col1 FROM tab0
----
-95
-95
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-9487
SELECT - SUM( DISTINCT + - col1 ) * 4 FROM tab0 cor0
----
412

skipif mysql # not compatible
query I rowsort label-9487
SELECT - SUM ( DISTINCT + - col1 ) * 4 FROM tab0 cor0
----
412

query I rowsort
SELECT DISTINCT ( + 74 ) FROM tab1 AS cor0
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-9489
SELECT DISTINCT MIN( + col0 ) + + COUNT( * ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
49

skipif mysql # not compatible
query I rowsort label-9489
SELECT DISTINCT MIN ( + col0 ) + + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-9490
SELECT ALL - + SUM( DISTINCT - 48 ) FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
48

skipif mysql # not compatible
query I rowsort label-9490
SELECT ALL - + SUM ( DISTINCT - 48 ) FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
48

query II rowsort
SELECT - 96, col1 AS col1 FROM tab0
----
-96
1
-96
21
-96
81

onlyif mysql # DIV for integer division: 
query II rowsort label-9492
SELECT + 69 AS col1, - col1 DIV - 10 AS col2 FROM tab0
----
69
0
69
2
69
8

skipif mysql # not compatible
query II rowsort label-9492
SELECT + 69 AS col1, - col1 / - 10 AS col2 FROM tab0
----
69
0
69
2
69
8

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 JOIN tab1 AS cor1 ON NOT NULL <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9494
SELECT DISTINCT ( + 10 ) + + col2 + - + col1 DIV - col1 FROM tab1 AS cor0 WHERE - col2 IS NOT NULL
----
107
70
79

skipif mysql # not compatible
query I rowsort label-9494
SELECT DISTINCT ( + 10 ) + + col2 + - + col1 / - col1 FROM tab1 AS cor0 WHERE - col2 IS NOT NULL
----
107
70
79

query I rowsort
SELECT DISTINCT - - 26 AS col2 FROM tab2 AS cor0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-9496
SELECT MIN( - - 60 ) FROM tab1 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-9496
SELECT MIN ( - - 60 ) FROM tab1 AS cor0
----
60

query I rowsort
SELECT DISTINCT - col0 + 7 FROM tab1 AS cor0 WHERE 89 = col0 * - col1 / - 17 * 5
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9498
SELECT + COUNT( * ) + + COUNT( DISTINCT + col2 ) FROM tab1 AS cor0 WHERE ( - 82 ) = ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-9498
SELECT + COUNT ( * ) + + COUNT ( DISTINCT + col2 ) FROM tab1 AS cor0 WHERE ( - 82 ) = ( NULL )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9499
SELECT * FROM tab1 AS cor0 WHERE ( 11 + - + 88 ) NOT BETWEEN + 76 / + + CAST( 2 AS SIGNED ) AND col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9499
SELECT * FROM tab1 AS cor0 WHERE ( 11 + - + 88 ) NOT BETWEEN + 76 / + + CAST ( 2 AS INTEGER ) AND col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + ( + 39 ) + + 25 FROM tab2 AS cor0
----
64
64
64

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - col1 ) NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT DISTINCT col2 + - - col0 FROM tab1 cor0
----
144
147
159

query I rowsort
SELECT ALL - col2 * + 32 AS col2 FROM tab1
----
-1888
-2176
-3072

query I rowsort
SELECT + 71 + - - col2 * 63 FROM tab1
----
3788
4355
6119

onlyif mysql # aggregate syntax: 
query I rowsort label-9505
SELECT DISTINCT SUM( - - 75 ) FROM tab0
----
225

skipif mysql # not compatible
query I rowsort label-9505
SELECT DISTINCT SUM ( - - 75 ) FROM tab0
----
225

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL <= - 0
----

query I rowsort
SELECT - 52 + - 33 AS col1 FROM tab0
----
-85
-85
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-9508
SELECT DISTINCT + SUM( - + col2 ) * - 85 AS col1 FROM tab0
----
13260

skipif mysql # not compatible
query I rowsort label-9508
SELECT DISTINCT + SUM ( - + col2 ) * - 85 AS col1 FROM tab0
----
13260

onlyif mysql # aggregate syntax: 
query I rowsort label-9509
SELECT - COUNT( * ) * 59 AS col1 FROM tab1 AS cor0
----
-177

skipif mysql # not compatible
query I rowsort label-9509
SELECT - COUNT ( * ) * 59 AS col1 FROM tab1 AS cor0
----
-177

onlyif mysql # aggregate syntax: 
query I rowsort label-9510
SELECT MIN( + col1 ) AS col0 FROM tab1 cor0
----
5

skipif mysql # not compatible
query I rowsort label-9510
SELECT MIN ( + col1 ) AS col0 FROM tab1 cor0
----
5

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL <> ( col2 / - ( - - 31 ) )
----

query I rowsort
SELECT ALL - - 44 AS col1 FROM tab2 WHERE NOT + col2 IS NULL
----
44
44
44

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( 51 * col2 ) IS NOT NULL
----

query I rowsort
SELECT ALL col1 + - col2 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) <= - ( col2 ) + - col1 + + col0 * - col0
----

query I rowsort
SELECT col2 AS col0 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN col2 AND + + col2
----

query I rowsort
SELECT - - 5 * - + 19 AS col2 FROM tab1 AS cor0
----
-95
-95
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 24 col1 FROM tab0 AS cor0
----
24
24
24

query I rowsort
SELECT - col0 * + col0 - + - col1 AS col0 FROM tab0 AS cor0
----
-144
-7548
-9408

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9519
SELECT 5 DIV - - COUNT( * ) AS col0 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-9519
SELECT 5 / - - COUNT ( * ) AS col0 FROM tab1
----
1

query II rowsort
SELECT + 53 AS col1, - col2 FROM tab1
----
53
-59
53
-68
53
-96

query II rowsort
SELECT - col1 AS col2, col2 FROM tab1
----
-14
96
-47
68
-5
59

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT IN ( + col1, + col1, + col2 + 76 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) > + + col0 + + col2 + + - 50
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) IN ( + 88, col1 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 53 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9526
SELECT MIN( DISTINCT + 63 ) FROM tab2 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-9526
SELECT MIN ( DISTINCT + 63 ) FROM tab2 AS cor0
----
63

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 11 * 36 > - - col0
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT + 69 * - + 44 NOT BETWEEN - + ( + - col1 ) AND 48 * col1
----

query I rowsort
SELECT DISTINCT - - col2 * - 66 AS col2 FROM tab2 AS cor0
----
-1518
-2640
-3828

onlyif mysql # aggregate syntax: 
query I rowsort label-9530
SELECT ALL + ( + ( + 23 ) ) + + ( COUNT( * ) ) AS col1 FROM tab0 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-9530
SELECT ALL + ( + ( + 23 ) ) + + ( COUNT ( * ) ) AS col1 FROM tab0 AS cor0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-9531
SELECT - SUM( col1 ) col1 FROM tab1 cor0
----
-66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9531
SELECT - SUM ( col1 ) col1 FROM tab1 cor0
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9532
SELECT ALL 5 + - 91 * + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9532
SELECT ALL 5 + - 91 * + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 * 38 + - 79 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-1865
-3841
-459

query II rowsort
SELECT DISTINCT - - col2 + - - col1, col1 AS col2 FROM tab1 cor0
----
110
14
115
47
64
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9535
SELECT ALL - 88 * - col1 + - col0 + + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9535
SELECT ALL - 88 * - col1 + - col0 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 71 + + ( - ( - col0 ) ) <> - + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col0 + - col2 + + - 50 FROM tab2 AS cor0
----
-119
-154
-183

query I rowsort
SELECT DISTINCT col1 + + 4 AS col2 FROM tab2
----
55
71
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9539
SELECT ALL + 95 + + COUNT( * ) AS col0 FROM tab1 WHERE NOT - col2 IS NOT NULL
----
95

skipif mysql # not compatible
query I rowsort label-9539
SELECT ALL + 95 + + COUNT ( * ) AS col0 FROM tab1 WHERE NOT - col2 IS NOT NULL
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9540
SELECT ALL 34 - 50 * + + 85 - - col1 * + 53 + - col1 * - CAST( - col0 AS SIGNED ) AS col0 FROM tab1
----
-4188
-4376
-6002

skipif mysql # not compatible
query I rowsort label-9540
SELECT ALL 34 - 50 * + + 85 - - col1 * + 53 + - col1 * - CAST ( - col0 AS INTEGER ) AS col0 FROM tab1
----
-4188
-4376
-6002

query I rowsort
SELECT DISTINCT - 43 FROM tab2 WHERE NOT - 19 IS NULL
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-9542
SELECT COUNT( * ) - + + SUM( DISTINCT + + 99 ) FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-9542
SELECT COUNT ( * ) - + + SUM ( DISTINCT + + 99 ) FROM tab1
----
-96

query I rowsort
SELECT DISTINCT col2 * - - 80 FROM tab2
----
1840
3200
4640

query I rowsort
SELECT DISTINCT + 91 + - col1 AS col2 FROM tab2 AS cor0
----
14
24
40

query I rowsort
SELECT col2 + + - col0 * - - col1 AS col0 FROM tab2 AS cor0
----
-2323
-4888
-4967

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 >= - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9547
SELECT DISTINCT - COUNT( * ) * - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9547
SELECT DISTINCT - COUNT ( * ) * - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query II rowsort
SELECT + + 32 * - col1 AS col1, - ( - col0 ) * + col2 * + col2 AS col1 FROM tab1 AS cor0
----
-1504
420784
-160
295885
-448
470016

query I rowsort
SELECT ALL - col1 * + + ( col2 ) AS col2 FROM tab2 AS cor0
----
-1173
-3080
-3886

onlyif mysql # DIV for integer division: 
query I rowsort label-9550
SELECT ALL - col0 DIV - - 25 FROM tab1 AS cor0
----
-2
-3
-3

skipif mysql # not compatible
query I rowsort label-9550
SELECT ALL - col0 / - - 25 FROM tab1 AS cor0
----
-2
-3
-3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9552
SELECT + ( - COUNT( DISTINCT 85 ) ) col1 FROM tab1 cor0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9552
SELECT + ( - COUNT ( DISTINCT 85 ) ) col1 FROM tab1 cor0
----
-1

query II rowsort
SELECT - - col2 * - 58 AS col2, col1 FROM tab2 AS cor0
----
-1334
51
-2320
77
-3364
67

query I rowsort
SELECT ALL - col1 * - 9 AS col0 FROM tab0 AS cor0
----
189
729
9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9555
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 > + 20 / CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9555
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 > + 20 / CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9556
SELECT ALL MIN( ALL + col0 ) * - COUNT( * ) * AVG ( DISTINCT col0 ) FROM tab0 WHERE + col2 > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9556
SELECT ALL MIN ( ALL + col0 ) * - COUNT ( * ) * AVG ( DISTINCT col0 ) FROM tab0 WHERE + col2 > NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9557
SELECT COUNT( DISTINCT ( - + CAST( NULL AS SIGNED ) ) ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9557
SELECT COUNT ( DISTINCT ( - + CAST ( NULL AS INTEGER ) ) ) FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-9558
SELECT ALL - col0 DIV - col2, + col1 AS col0 FROM tab0
----
0
1
0
81
8
21

skipif mysql # not compatible
query II rowsort label-9558
SELECT ALL - col0 / - col2, + col1 AS col0 FROM tab0
----
0
1
0
81
8
21

onlyif mysql # aggregate syntax: 
query I rowsort label-9559
SELECT + - COUNT( * ) + - COUNT( + col0 ) + + 59 AS col0 FROM tab1 cor0
----
53

skipif mysql # not compatible
query I rowsort label-9559
SELECT + - COUNT ( * ) + - COUNT ( + col0 ) + + 59 AS col0 FROM tab1 cor0
----
53

onlyif mysql # DIV for integer division: 
query I rowsort label-9560
SELECT ALL 41 DIV 75 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9560
SELECT ALL 41 / 75 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + + ( - + col2 ) FROM tab0 AS cor0 WHERE NOT - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9562
SELECT + + SUM( - - col0 ) col1 FROM tab2 cor0
----
185

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9562
SELECT + + SUM ( - - col0 ) col1 FROM tab2 cor0
----
185

query I rowsort
SELECT ALL + col2 + + 4 + - - 89 AS col2 FROM tab2 WHERE - - col0 + - col2 = + col2
----
116

query I rowsort
SELECT DISTINCT - 67 * + + 39 * + + col0 AS col1 FROM tab1
----
-133263
-222105
-237783

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9565
SELECT CAST( + 36 AS SIGNED ) col1 FROM tab2
----
36
36
36

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9565
SELECT CAST ( + 36 AS INTEGER ) col1 FROM tab2
----
36
36
36

onlyif mysql # aggregate syntax: 
query I rowsort label-9566
SELECT MAX( DISTINCT + + 29 ) FROM tab0 WHERE NULL BETWEEN NULL AND col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9566
SELECT MAX ( DISTINCT + + 29 ) FROM tab0 WHERE NULL BETWEEN NULL AND col0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col0 FROM tab0 WHERE + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9568
SELECT ALL - MIN( DISTINCT + 32 ) FROM tab1
----
-32

skipif mysql # not compatible
query I rowsort label-9568
SELECT ALL - MIN ( DISTINCT + 32 ) FROM tab1
----
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9569
SELECT DISTINCT CAST( NULL AS SIGNED ) + + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9569
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - + col0 + + + ( + + col1 ) + - - col0 + - - 50 FROM tab2 AS cor0
----
101
117
127

onlyif mysql # aggregate syntax: 
query I rowsort label-9571
SELECT MIN( col2 ) FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9571
SELECT MIN ( col2 ) FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9572
SELECT - COUNT( * ) + COUNT( * ) + ( - MAX( ALL + col1 ) ) FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-9572
SELECT - COUNT ( * ) + COUNT ( * ) + ( - MAX ( ALL + col1 ) ) FROM tab0
----
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-9573
SELECT col2 DIV - col2 + - 76 FROM tab1
----
-77
-77
-77

skipif mysql # not compatible
query I rowsort label-9573
SELECT col2 / - col2 + - 76 FROM tab1
----
-77
-77
-77

query I rowsort
SELECT DISTINCT 43 * col0 * + 63 AS col2 FROM tab1
----
138159
230265
246519

query I rowsort
SELECT 11 * + col0 AS col0 FROM tab1 WHERE + col1 < - + ( - ( + 34 ) )
----
561
935

query I rowsort
SELECT + 18 AS col2 FROM tab2 WHERE col0 NOT BETWEEN + 38 AND NULL
----

query I rowsort
SELECT DISTINCT - col2 * - col0 + - - col0 / - ( + ( + 37 ) ) FROM tab2 WHERE NULL = col1
----

query II rowsort
SELECT + + col0 * - col0 + - col2 AS col0, + 85 AS col2 FROM tab0 cor0
----
-272
85
-7579
85
-9508
85

query I rowsort
SELECT DISTINCT col2 + - col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
21
54
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9580
SELECT + - col0 * + col2 * - CAST( + col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
33135
8700
950697

skipif mysql # not compatible
query I rowsort label-9580
SELECT + - col0 * + col2 * - CAST ( + col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
33135
8700
950697

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9581
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col1 < col1 + + + ( CAST( + - 48 AS SIGNED ) ) * 26 * + + 80 * - 43
----

skipif mysql # not compatible
query III rowsort label-9581
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col1 < col1 + + + ( CAST ( + - 48 AS INTEGER ) ) * 26 * + + 80 * - 43
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9582
SELECT + COUNT( * ) DIV COUNT( * ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9582
SELECT + COUNT ( * ) / COUNT ( * ) FROM tab2 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9583
SELECT SUM( + 22 ) FROM tab0
----
66

skipif mysql # not compatible
query I rowsort label-9583
SELECT SUM ( + 22 ) FROM tab0
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9584
SELECT DISTINCT + CAST( + col1 AS SIGNED ) * + col2 FROM tab1
----
1344
295
3196

skipif mysql # not compatible
query I rowsort label-9584
SELECT DISTINCT + CAST ( + col1 AS INTEGER ) * + col2 FROM tab1
----
1344
295
3196

query II rowsort
SELECT col1, + 53 FROM tab0
----
1
53
21
53
81
53

query I rowsort
SELECT ALL 97 AS col1 FROM tab2 WHERE + col0 >= NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9587
SELECT CAST( - 32 AS DECIMAL ) FROM tab1 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-9587
SELECT CAST ( - 32 AS REAL ) FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9588
SELECT ALL + col0 DIV col2 col1 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9588
SELECT ALL + col0 / col2 col1 FROM tab1 AS cor0
----
0
1
1

query I rowsort
SELECT ALL + col1 * - - 33 - - - col1 + + col0 FROM tab0 AS cor0
----
129
2607
759

query I rowsort
SELECT DISTINCT + 10 + 60 AS col1 FROM tab0 AS cor0
----
70

query I rowsort
SELECT DISTINCT col0 + + - 86 FROM tab2 AS cor0
----
-11
-22
-40

query I rowsort
SELECT - 3 + col2 AS col1 FROM tab1 AS cor0
----
56
65
93

query I rowsort
SELECT 33 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5

query I rowsort
SELECT ALL + col1 FROM tab0 WHERE NOT 23 + col0 > NULL
----

query I rowsort
SELECT DISTINCT - ( + col2 ) FROM tab1 AS cor0 WHERE - 56 / + - col1 IS NOT NULL
----
-59
-68
-96

query I rowsort
SELECT ALL 66 FROM tab0 AS cor0 WHERE NULL IS NULL
----
66
66
66

query I rowsort
SELECT ALL + + col0 + - col2 + - col0 * + col2 * ( + ( + 29 ) ) * - col2 + + col2 AS col2 FROM tab2 AS cor0
----
2969664
705732
7316775

onlyif mysql # aggregate syntax: 
query I rowsort label-9598
SELECT + MIN( - 24 ) FROM tab2 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-9598
SELECT + MIN ( - 24 ) FROM tab2 AS cor0
----
-24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + + - col2 col0 FROM tab2
----
28
37
9

query I rowsort
SELECT + col2 AS col2 FROM tab1 WHERE ( NULL ) IS NOT NULL AND NOT NULL IS NOT NULL
----

query I rowsort
SELECT 11 + - - col0 AS col1 FROM tab1
----
102
62
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9602
SELECT DISTINCT 54 - CAST( - ( - 64 ) AS SIGNED ) AS col2 FROM tab2
----
-10

skipif mysql # not compatible
query I rowsort label-9602
SELECT DISTINCT 54 - CAST ( - ( - 64 ) AS INTEGER ) AS col2 FROM tab2
----
-10

query I rowsort
SELECT + col1 * - col0 * - + 99 + - + col1 AS col0 FROM tab2 AS cor0
----
232203
487795
497408

onlyif mysql # aggregate syntax: 
query I rowsort label-9604
SELECT - 75 * COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-675

skipif mysql # not compatible
query I rowsort label-9604
SELECT - 75 * COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-675

query I rowsort
SELECT ALL + AVG ( DISTINCT 69 ) FROM tab2 WHERE 47 NOT BETWEEN NULL AND ( NULL )
----
NULL

query I rowsort
SELECT - ( + 88 ) AS col1 FROM tab0
----
-88
-88
-88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 95 col2 FROM tab1
----
95

query I rowsort
SELECT - 37 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - col1 FROM tab0 cor0 WHERE NOT + col2 IS NOT NULL
----

query I rowsort
SELECT 42 * col2 AS col0 FROM tab1 AS cor0
----
2478
2856
4032

query I rowsort
SELECT ALL col0 + - col2 + col1 + - - col0 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + + 87 * - - col0 * - col0 col2 FROM tab1 cor0
----
-11540637
-53428875
-65560677

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + ( + col2 ) < 71 + col1
----

query I rowsort
SELECT DISTINCT - 14 + col2 FROM tab1 AS cor0
----
45
54
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9615
SELECT ALL + 25 DIV - SUM( + col1 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9615
SELECT ALL + 25 / - SUM ( + col1 ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL + col0 * + + 88 AS col0 FROM tab2
----
4048
5632
6600

onlyif mysql # aggregate syntax: 
query I rowsort label-9617
SELECT ALL - ( MAX( + 67 ) ) AS col2 FROM tab1
----
-67

skipif mysql # not compatible
query I rowsort label-9617
SELECT ALL - ( MAX ( + 67 ) ) AS col2 FROM tab1
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-9618
SELECT - COUNT( * ) AS col1 FROM tab0, tab0 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-9618
SELECT - COUNT ( * ) AS col1 FROM tab0, tab0 cor0
----
-9

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col0 + + col1 NOT BETWEEN - + col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9620
SELECT ALL + SUM( + 3 ) AS col2 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-9620
SELECT ALL + SUM ( + 3 ) AS col2 FROM tab2 AS cor0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-9621
SELECT ALL 10 * col0 + + col2 DIV - col1 AS col2 FROM tab0 cor0
----
150
870
871

skipif mysql # not compatible
query I rowsort label-9621
SELECT ALL 10 * col0 + + col2 / - col1 AS col2 FROM tab0 cor0
----
150
870
871

onlyif mysql # aggregate syntax: 
query I rowsort label-9622
SELECT ALL + 69 + - COUNT( * ) FROM tab0 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-9622
SELECT ALL + 69 + - COUNT ( * ) FROM tab0 AS cor0
----
66

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL < - 46 + + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9624
SELECT DISTINCT - 80 + ( - + COUNT( * ) ) FROM tab2 AS cor0
----
-83

skipif mysql # not compatible
query I rowsort label-9624
SELECT DISTINCT - 80 + ( - + COUNT ( * ) ) FROM tab2 AS cor0
----
-83

query I rowsort
SELECT - 77 * col2 FROM tab2 cor0
----
-1771
-3080
-4466

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9626
SELECT col1 - 43 + - col1 * CAST( NULL AS SIGNED ) / - col2 * + col0 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9626
SELECT col1 - 43 + - col1 * CAST ( NULL AS INTEGER ) / - col2 * + col0 AS col1 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( + col0 * + + 8 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2, col1 * - + col0 col0 FROM tab1 AS cor0 WHERE NULL < + col1 + + col2
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL BETWEEN NULL AND col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9630
SELECT DISTINCT + AVG ( + col2 ) + COUNT( * ) * - COUNT( * ) * - CAST( NULL AS SIGNED ) + + + MAX( - col0 ) AS col1 FROM tab1 AS cor0 WHERE NULL BETWEEN - 37 AND - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9630
SELECT DISTINCT + AVG ( + col2 ) + COUNT ( * ) * - COUNT ( * ) * - CAST ( NULL AS INTEGER ) + + + MAX ( - col0 ) AS col1 FROM tab1 AS cor0 WHERE NULL BETWEEN - 37 AND - col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9631
SELECT ALL + 27 * + 37 + 24 + - MIN( + - col0 ) + + + COUNT( * ) * + 31 AS col2 FROM tab1 cor0
----
1207

skipif mysql # not compatible
query I rowsort label-9631
SELECT ALL + 27 * + 37 + 24 + - MIN ( + - col0 ) + + + COUNT ( * ) * + 31 AS col2 FROM tab1 cor0
----
1207

query I rowsort
SELECT ALL - 36 + + ( - 95 ) FROM tab2 AS cor0
----
-131
-131
-131

onlyif mysql # aggregate syntax: 
query I rowsort label-9633
SELECT DISTINCT 51 - + COUNT( + + col1 ) FROM tab1
----
48

skipif mysql # not compatible
query I rowsort label-9633
SELECT DISTINCT 51 - + COUNT ( + + col1 ) FROM tab1
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-9634
SELECT + 98 * MIN( ALL + + col1 ) FROM tab0
----
98

skipif mysql # not compatible
query I rowsort label-9634
SELECT + 98 * MIN ( ALL + + col1 ) FROM tab0
----
98

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL > + 30
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9636
SELECT + SUM( - ( + col2 ) ) AS col0 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-9636
SELECT + SUM ( - ( + col2 ) ) AS col0 FROM tab0 AS cor0
----
-156

query I rowsort
SELECT 10 * - col0 FROM tab1 cor0
----
-510
-850
-910

query II rowsort
SELECT DISTINCT + col2, + col1 * col1 * + col0 FROM tab2 AS cor0
----
23
119646
40
379456
58
336675

onlyif mysql # aggregate syntax: 
query I rowsort label-9639
SELECT DISTINCT SUM( DISTINCT col0 ) AS col1 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-9639
SELECT DISTINCT SUM ( DISTINCT col0 ) AS col1 FROM tab2 AS cor0
----
185

query II rowsort
SELECT col2 AS col0, - col0 FROM tab1 AS cor0
----
59
-85
68
-91
96
-51

query I rowsort
SELECT - 14 * + - col0 FROM tab0 AS cor0
----
1218
1358
210

onlyif mysql # aggregate syntax: 
query I rowsort label-9642
SELECT DISTINCT + - MIN( - ( + 79 ) ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
79

skipif mysql # not compatible
query I rowsort label-9642
SELECT DISTINCT + - MIN ( - ( + 79 ) ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-9643
SELECT - MAX( col0 ) AS col0 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-9643
SELECT - MAX ( col0 ) AS col0 FROM tab2 AS cor0
----
-75

query I rowsort
SELECT ALL 28 + col0 FROM tab2 AS cor0
----
103
74
92

query II rowsort
SELECT ALL - 45 AS col2, + col1 FROM tab1 AS cor0
----
-45
14
-45
47
-45
5

query I rowsort
SELECT + ( 50 ) AS col2 FROM tab2
----
50
50
50

onlyif mysql # aggregate syntax: 
query I rowsort label-9647
SELECT ALL COUNT( DISTINCT - 35 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-9647
SELECT ALL COUNT ( DISTINCT - 35 ) FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9648
SELECT - MAX( + ( + + col2 ) ) AS col1 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-9648
SELECT - MAX ( + ( + + col2 ) ) AS col1 FROM tab2
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-9649
SELECT DISTINCT MAX( + + 49 ) AS col2 FROM tab2
----
49

skipif mysql # not compatible
query I rowsort label-9649
SELECT DISTINCT MAX ( + + 49 ) AS col2 FROM tab2
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-9650
SELECT - ( MAX( + + 65 ) ) FROM tab0
----
-65

skipif mysql # not compatible
query I rowsort label-9650
SELECT - ( MAX ( + + 65 ) ) FROM tab0
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-9651
SELECT ALL + COUNT( + 49 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9651
SELECT ALL + COUNT ( + 49 ) FROM tab2
----
3

query II rowsort
SELECT ALL + col2 + + col2 AS col2, col2 + - + col2 * + 1 AS col0 FROM tab1 AS cor0
----
118
0
136
0
192
0

query I rowsort
SELECT + col2 FROM tab2 AS cor0 WHERE ( + col1 ) <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - col0 - + col1 col2 FROM tab1 AS cor0
----
420
4230
700

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9655
SELECT ALL - - CAST( NULL AS SIGNED ) + + 70 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9655
SELECT ALL - - CAST ( NULL AS INTEGER ) + + 70 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9656
SELECT - + ( 87 ) DIV + col1 + + 13 - + 75 + 38 * + col2 * col2 * - - 49 FROM tab1 cor0
----
17160124
6481543
8609825

skipif mysql # not compatible
query I rowsort label-9656
SELECT - + ( 87 ) / + col1 + + 13 - + 75 + 38 * + col2 * col2 * - - 49 FROM tab1 cor0
----
17160124
6481543
8609825

query I rowsort
SELECT ALL col1 * 96 FROM tab0 AS cor0
----
2016
7776
96

onlyif mysql # DIV for integer division: 
query I rowsort label-9658
SELECT DISTINCT - col2 DIV col0 * col0 + - 55 + - col2 + + 44 * 14 FROM tab2 cor0
----
503
521
538

skipif mysql # not compatible
query I rowsort label-9658
SELECT DISTINCT - col2 / col0 * col0 + - 55 + - col2 + + 44 * 14 FROM tab2 cor0
----
503
521
538

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 85 + 33 + + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col0 - 12 FROM tab0 AS cor0
----
3
75
85

query I rowsort
SELECT - col1 FROM tab0 AS cor0 WHERE - col2 * 68 IS NOT NULL
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-9662
SELECT - - MAX( ALL 46 ) AS col1 FROM tab2 cor0
----
46

skipif mysql # not compatible
query I rowsort label-9662
SELECT - - MAX ( ALL 46 ) AS col1 FROM tab2 cor0
----
46

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 60 * + + 53 IS NULL
----

query I rowsort
SELECT ALL + col2 AS col2 FROM tab0 AS cor0 WHERE + col2 * + col0 NOT BETWEEN - col0 AND - - 13
----
10
47
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 col2 FROM tab1 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + col1 + + - 56 col1 FROM tab2 WHERE NOT NULL >= NULL
----

query II rowsort
SELECT - col1 + col2, 38 * - col1 + + col2 FROM tab2 AS cor0 WHERE NOT + col1 IS NOT NULL
----

query I rowsort
SELECT ( col1 ) AS col1 FROM tab0 AS cor0 WHERE NOT ( + + col0 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9669
SELECT CAST( NULL AS SIGNED ) / + col0 * - 79 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9669
SELECT CAST ( NULL AS INTEGER ) / + col0 * - 79 AS col0 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + - 39 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 45 + - col0 NOT BETWEEN + 67 - col1 * - - col0 AND NULL
----
97
1
99

query I rowsort
SELECT - - col0 AS col0 FROM tab2 AS cor0 WHERE NOT col0 + + - col2 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9673
SELECT ( + MIN( - ( + col2 ) ) ) FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-9673
SELECT ( + MIN ( - ( + col2 ) ) ) FROM tab1 AS cor0
----
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-9674
SELECT MIN( DISTINCT + + col0 ) AS col1, COUNT( * ) FROM tab0 AS cor0
----
15
3

skipif mysql # not compatible
query II rowsort label-9674
SELECT MIN ( DISTINCT + + col0 ) AS col1, COUNT ( * ) FROM tab0 AS cor0
----
15
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9675
SELECT DISTINCT COUNT( DISTINCT - col1 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9675
SELECT DISTINCT COUNT ( DISTINCT - col1 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT + col0 + + 46 + + col0 FROM tab0
----
220
240
76

query I rowsort
SELECT - 52 + - 50 FROM tab0
----
-102
-102
-102

query II rowsort
SELECT + col2 + + 66 + - - col0 AS col1, + 61 FROM tab2
----
135
61
170
61
199
61

query I rowsort
SELECT + col0 + 73 AS col0 FROM tab0
----
160
170
88

query I rowsort
SELECT 73 + - col2 AS col1 FROM tab0
----
-26
26
63

query II rowsort
SELECT DISTINCT - col0 AS col0, + col2 FROM tab2
----
-46
23
-64
40
-75
58

query I rowsort
SELECT - 24 + - col2 AS col1 FROM tab2 AS cor0 WHERE col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9683
SELECT - + col2 DIV 61 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9683
SELECT - + col2 / 61 FROM tab0 AS cor0
----
-1
0
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 38 * col2 IS NULL
----

query I rowsort
SELECT ALL + 26 + + col1 AS col1 FROM tab1 AS cor0
----
31
40
73

query I rowsort
SELECT ALL - 51 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 08d3853e39924d3c636260a6dd856837

query I rowsort
SELECT col2 - + + col0 AS col2 FROM tab2
----
-17
-23
-24

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NOT 54 NOT BETWEEN - 47 AND NULL )
----

query I rowsort
SELECT DISTINCT 94 * + 77 FROM tab2 AS cor0
----
7238

query I rowsort
SELECT ALL + + col0 * + + 16 FROM tab1 AS cor0
----
1360
1456
816

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9691
SELECT DISTINCT - 19 - - AVG ( - ( ( col1 ) ) ) + + + COUNT( * ) FROM tab0 AS cor0 WHERE NULL < - 12 + - + 17 + col0 + + col2 * - + CAST( CAST( + + 90 AS SIGNED ) AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9691
SELECT DISTINCT - 19 - - AVG ( - ( ( col1 ) ) ) + + + COUNT ( * ) FROM tab0 AS cor0 WHERE NULL < - 12 + - + 17 + col0 + + col2 * - + CAST ( CAST ( + + 90 AS INTEGER ) AS REAL )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9692
SELECT - COUNT( * ) DIV + 68 + - COUNT( * ) col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9692
SELECT - COUNT ( * ) / + 68 + - COUNT ( * ) col0 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT + 87 * - col0 AS col1 FROM tab0 AS cor0
----
-1305
-7569
-8439

onlyif mysql # DIV for integer division: 
query I rowsort label-9694
SELECT + col2 DIV 13 FROM tab0
----
0
3
7

skipif mysql # not compatible
query I rowsort label-9694
SELECT + col2 / 13 FROM tab0
----
0
3
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + - 96 * + + col2 col1 FROM tab0
----
-20160
-365472
-9504

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 94 + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9697
SELECT ALL + COUNT( 2 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9697
SELECT ALL + COUNT ( 2 ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9698
SELECT + - ( + + COUNT( * ) ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9698
SELECT + - ( + + COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9699
SELECT + - ( - - MIN( - + col1 ) ) FROM tab0 cor0
----
81

skipif mysql # not compatible
query I rowsort label-9699
SELECT + - ( - - MIN ( - + col1 ) ) FROM tab0 cor0
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9700
SELECT ALL - COUNT( * ) FROM tab0 AS cor0 WHERE NOT col2 > CAST( - - col0 AS SIGNED ) * 47
----
-3

skipif mysql # not compatible
query I rowsort label-9700
SELECT ALL - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT col2 > CAST ( - - col0 AS INTEGER ) * 47
----
-3

query I rowsort
SELECT DISTINCT 71 * - col0 + - col2 AS col1 FROM tab1 AS cor0
----
-3717
-6094
-6529

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9702
SELECT ALL * FROM tab0 AS cor0 WHERE 86 BETWEEN + col1 AND + - CAST( + col1 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9702
SELECT ALL * FROM tab0 AS cor0 WHERE 86 BETWEEN + col1 AND + - CAST ( + col1 AS INTEGER )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9703
SELECT DISTINCT + COUNT( * ) DIV - + COUNT( * ) FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9703
SELECT DISTINCT + COUNT ( * ) / - + COUNT ( * ) FROM tab1 AS cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col0 col0, + col0 FROM tab0 cor0
----
15
15
87
87
97
97

query I rowsort
SELECT DISTINCT - col0 + + col1 * 85 AS col1 FROM tab0 AS cor0
----
-12
1698
6870

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9706
SELECT * FROM tab2 cor0 WHERE CAST( 63 AS SIGNED ) + + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9706
SELECT * FROM tab2 cor0 WHERE CAST ( 63 AS INTEGER ) + + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9707
SELECT - ( COUNT( * ) ) * + - 0 AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9707
SELECT - ( COUNT ( * ) ) * + - 0 AS col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT + col2 * 43 / + - 91 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + + ( 64 ) AS col2 FROM tab2 AS cor0
----
64
64
64

onlyif mysql # DIV for integer division: 
query I rowsort label-9710
SELECT DISTINCT 62 DIV - + col0 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-9710
SELECT DISTINCT 62 / - + col0 FROM tab1
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9711
SELECT ALL + COUNT( ALL - 1 ) + - + SUM( ALL col2 ) AS col1 FROM tab1 AS cor0
----
-220

skipif mysql # not compatible
query I rowsort label-9711
SELECT ALL + COUNT ( ALL - 1 ) + - + SUM ( ALL col2 ) AS col1 FROM tab1 AS cor0
----
-220

query I rowsort
SELECT DISTINCT - col1 * - + 89 * + 0 * col0 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9713
SELECT DISTINCT ( 68 ) + - COUNT( * ) AS col1 FROM tab0 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-9713
SELECT DISTINCT ( 68 ) + - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
65

query II rowsort
SELECT ALL + 43 - + - col0 AS col0, - 7 * + ( - col2 ) FROM tab2 AS cor0
----
107
280
118
406
89
161

query III rowsort
SELECT * FROM tab1 WHERE + + 75 > - col1 - - 70 / + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9716
SELECT - + COUNT( * ) + ( - AVG ( + 35 ) ) FROM tab1 AS cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9716
SELECT - + COUNT ( * ) + ( - AVG ( + 35 ) ) FROM tab1 AS cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----
NULL

query II rowsort
SELECT + - 98 AS col0, - 98 FROM tab2 AS cor0
----
-98
-98
-98
-98
-98
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-9718
SELECT ALL - MAX( + ( - col1 ) ) AS col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9718
SELECT ALL - MAX ( + ( - col1 ) ) AS col0 FROM tab0 AS cor0
----
1

query I rowsort
SELECT col2 * - - 19 FROM tab1 AS cor0
----
1121
1292
1824

onlyif mysql # aggregate syntax: 
query I rowsort label-9720
SELECT ALL - + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT col0 * - 21 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9720
SELECT ALL - + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT col0 * - 21 IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-9721
SELECT + - 13, - MIN( col2 ) AS col2 FROM tab2 AS cor0
----
-13
-23

skipif mysql # not compatible
query II rowsort label-9721
SELECT + - 13, - MIN ( col2 ) AS col2 FROM tab2 AS cor0
----
-13
-23

query II rowsort
SELECT ALL + col1 AS col1, col0 FROM tab1 AS cor0
----
14
51
47
91
5
85

query III rowsort
SELECT ALL * FROM tab2 WHERE + - 65 * + 24 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9724
SELECT ALL + col2 AS col1, CAST( + col0 AS SIGNED ) FROM tab1 WHERE NULL <> - 30 / col2 + - 64 + - - CAST( + col0 AS SIGNED ) / + col1
----

skipif mysql # not compatible
query II rowsort label-9724
SELECT ALL + col2 AS col1, CAST ( + col0 AS INTEGER ) FROM tab1 WHERE NULL <> - 30 / col2 + - 64 + - - CAST ( + col0 AS INTEGER ) / + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9725
SELECT + 55 - - SUM( DISTINCT 73 ) FROM tab2 WHERE NOT NULL BETWEEN col2 AND 55
----
NULL

skipif mysql # not compatible
query I rowsort label-9725
SELECT + 55 - - SUM ( DISTINCT 73 ) FROM tab2 WHERE NOT NULL BETWEEN col2 AND 55
----
NULL

query I rowsort
SELECT DISTINCT 68 * - 0 FROM tab1
----
0

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab0 WHERE NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9728
SELECT DISTINCT + + MIN( - 71 ) AS col0 FROM tab2 WHERE + col1 = + col1
----
-71

skipif mysql # not compatible
query I rowsort label-9728
SELECT DISTINCT + + MIN ( - 71 ) AS col0 FROM tab2 WHERE + col1 = + col1
----
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9729
SELECT - col2 FROM tab1 WHERE NOT - + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-9729
SELECT - col2 FROM tab1 WHERE NOT - + CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT DISTINCT + col1 * + - 98 AS col1 FROM tab2
----
-4998
-6566
-7546

query I rowsort
SELECT ALL - - col0 FROM tab2 WHERE - - 36 NOT BETWEEN col0 AND NULL
----
46
64
75

onlyif mysql # DIV for integer division: 
query I rowsort label-9732
SELECT ALL + + col1 DIV - col1 AS col0 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9732
SELECT ALL + + col1 / - col1 AS col0 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT - col2 + - col2 + + col0 * - - col1 + + + 94 * + col2 FROM tab2 AS cor0
----
10361
4462
8608

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + 58 * - 11 col0 FROM tab2
----
-32538
-42746
-49126

query II rowsort
SELECT DISTINCT - ( - col2 ) + + col0 AS col2, - col1 * 39 AS col0 FROM tab2 AS cor0
----
104
-3003
133
-2613
69
-1989

onlyif mysql # aggregate syntax: 
query I rowsort label-9736
SELECT ALL COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9736
SELECT ALL COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9737
SELECT DISTINCT + + ( 0 ) + SUM( ALL - 71 ) FROM tab0 cor0
----
-213

skipif mysql # not compatible
query I rowsort label-9737
SELECT DISTINCT + + ( 0 ) + SUM ( ALL - 71 ) FROM tab0 cor0
----
-213

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 AS col2, + 18 * 85 col0 FROM tab2 cor0
----
23
1530
40
1530
58
1530

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( - col0 * - col1 ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9740
SELECT DISTINCT 59 DIV + - CAST( - MIN( + - col2 ) AS SIGNED ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9740
SELECT DISTINCT 59 / + - CAST ( - MIN ( + - col2 ) AS INTEGER ) AS col1 FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-9741
SELECT DISTINCT + col0, col2 DIV col2 * 42 * + 26 * col0 col1 FROM tab2
----
46
50232
64
69888
75
81900

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9741
SELECT DISTINCT + col0, col2 / col2 * 42 * + 26 * col0 col1 FROM tab2
----
46
50232
64
69888
75
81900

onlyif mysql # DIV for integer division: 
query I rowsort label-9742
SELECT ( + - col0 ) DIV - 27 AS col1 FROM tab1
----
1
3
3

skipif mysql # not compatible
query I rowsort label-9742
SELECT ( + - col0 ) / - 27 AS col1 FROM tab1
----
1
3
3

query I rowsort
SELECT DISTINCT 1 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9744
SELECT * FROM tab2 AS cor0 WHERE NULL <= CAST( + 72 AS DECIMAL ) + col2
----

skipif mysql # not compatible
query III rowsort label-9744
SELECT * FROM tab2 AS cor0 WHERE NULL <= CAST ( + 72 AS REAL ) + col2
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 21 >= - + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9746
SELECT ALL - COUNT( * ) + - COUNT( * ) AS col0 FROM tab2 cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9746
SELECT ALL - COUNT ( * ) + - COUNT ( * ) AS col0 FROM tab2 cor0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9747
SELECT DISTINCT - 7 * + col0 + + col1 DIV - 21 + - - 84 AS col0 FROM tab2 AS cor0
----
-240
-367
-444

skipif mysql # not compatible
query I rowsort label-9747
SELECT DISTINCT - 7 * + col0 + + col1 / - 21 + - - 84 AS col0 FROM tab2 AS cor0
----
-240
-367
-444

onlyif mysql # aggregate syntax: 
query I rowsort label-9748
SELECT + ( + + SUM( DISTINCT - + col2 ) ) FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-9748
SELECT + ( + + SUM ( DISTINCT - + col2 ) ) FROM tab0 AS cor0
----
-156

query I rowsort
SELECT 39 * + col2 AS col2 FROM tab1 cor0
----
2301
2652
3744

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9750
SELECT col2 * CAST( + col1 AS SIGNED ) AS col2 FROM tab0
----
210
3807
99

skipif mysql # not compatible
query I rowsort label-9750
SELECT col2 * CAST ( + col1 AS INTEGER ) AS col2 FROM tab0
----
210
3807
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9751
SELECT ALL - 79 / + + col1 FROM tab0 WHERE NOT ( - CAST( - 13 AS SIGNED ) * col1 + + - col0 IS NOT NULL )
----

skipif mysql # not compatible
query I rowsort label-9751
SELECT ALL - 79 / + + col1 FROM tab0 WHERE NOT ( - CAST ( - 13 AS INTEGER ) * col1 + + - col0 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9752
SELECT COUNT( - - 84 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9752
SELECT COUNT ( - - 84 ) FROM tab2
----
3

query II rowsort
SELECT DISTINCT + col0, 79 + - - col1 AS col1 FROM tab1
----
51
93
85
84
91
126

onlyif mysql # aggregate syntax: 
query I rowsort label-9754
SELECT DISTINCT + + ( COUNT( ALL - 61 ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9754
SELECT DISTINCT + + ( COUNT ( ALL - 61 ) ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9755
SELECT DISTINCT 77 + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-9755
SELECT DISTINCT 77 + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + 44 col2 FROM tab1
----
49
58
91

onlyif mysql # DIV for integer division: 
query I rowsort label-9757
SELECT col2 DIV col0 FROM tab0 WHERE 60 IS NOT NULL
----
0
1
3

skipif mysql # not compatible
query I rowsort label-9757
SELECT col2 / col0 FROM tab0 WHERE 60 IS NOT NULL
----
0
1
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9758
SELECT ALL + 5 + - COUNT( * ) FROM tab0
----
2

skipif mysql # not compatible
query I rowsort label-9758
SELECT ALL + 5 + - COUNT ( * ) FROM tab0
----
2

query I rowsort
SELECT DISTINCT 96 * - col1 + + col1 FROM tab0
----
-1995
-7695
-95

query I rowsort
SELECT - 38 * 86 FROM tab2
----
-3268
-3268
-3268

query III rowsort
SELECT ALL * FROM tab2 WHERE col2 * 32 IN ( 4 )
----

query I rowsort
SELECT - col2 * + 60 FROM tab1
----
-3540
-4080
-5760

query III rowsort
SELECT ALL * FROM tab1 WHERE col1 / 67 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col1 > ( NULL )
----

query I rowsort
SELECT ALL - col2 AS col0 FROM tab1 WHERE NOT NULL < ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9766
SELECT ALL + SUM( DISTINCT 36 ) * 21 AS col2 FROM tab0
----
756

skipif mysql # not compatible
query I rowsort label-9766
SELECT ALL + SUM ( DISTINCT 36 ) * 21 AS col2 FROM tab0
----
756

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9767
SELECT * FROM tab0 WHERE + CAST( 93 AS DECIMAL ) NOT BETWEEN - 0 / - col0 AND NULL
----

skipif mysql # not compatible
query III rowsort label-9767
SELECT * FROM tab0 WHERE + CAST ( 93 AS REAL ) NOT BETWEEN - 0 / - col0 AND NULL
----

query I rowsort
SELECT ALL - 30 * - col2 AS col2 FROM tab0
----
1410
2970
300

query I rowsort
SELECT DISTINCT + 36 AS col2 FROM tab0 WHERE NOT NULL BETWEEN ( + col2 ) AND - ( - ( - col2 ) ) * col1
----

query I rowsort
SELECT ALL col2 + col2 FROM tab2 WHERE NOT NULL IN ( - col0 + 80 )
----

query I rowsort
SELECT 95 - + col1 * - 61 FROM tab2
----
3206
4182
4792

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( 44 ) < + 90
----

query I rowsort
SELECT DISTINCT + 43 * - ( 34 ) FROM tab1
----
-1462

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN - 54 AND ( NULL )
----

query I rowsort
SELECT DISTINCT - 35 - - col0 FROM tab1
----
16
50
56

query I rowsort
SELECT DISTINCT - col1 + - 31 FROM tab0
----
-112
-32
-52

query I rowsort
SELECT ( + 77 ) * - col0 FROM tab2
----
-3542
-4928
-5775

onlyif mysql # aggregate syntax: 
query I rowsort label-9778
SELECT DISTINCT SUM( ( col2 ) ) + COUNT( - col0 ) FROM tab2
----
124

skipif mysql # not compatible
query I rowsort label-9778
SELECT DISTINCT SUM ( ( col2 ) ) + COUNT ( - col0 ) FROM tab2
----
124

query I rowsort
SELECT DISTINCT col1 + + 91 FROM tab2 AS cor0 WHERE NOT - col1 <> - col1 - - col2
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + 49 * + 4 ) <= + ( 90 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9781
SELECT + COUNT( * ) + + 84 AS col1 FROM tab2 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-9781
SELECT + COUNT ( * ) + + 84 AS col1 FROM tab2 AS cor0
----
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + col1 col1 FROM tab2 AS cor0
----
141
142
97

query I rowsort
SELECT - 88 FROM tab1 AS cor0 CROSS JOIN tab2
----
9 values hashing to 467301f887614eb7beda22c561b0fad2

query III rowsort
SELECT * FROM tab2 WHERE NOT ( 90 - + 53 / + col1 ) >= NULL
----

query I rowsort
SELECT DISTINCT - col0 * col0 FROM tab1 AS cor0 WHERE NOT col1 NOT IN ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9786
SELECT + MAX( 41 ) FROM tab2 AS cor0
----
41

skipif mysql # not compatible
query I rowsort label-9786
SELECT + MAX ( 41 ) FROM tab2 AS cor0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-9787
SELECT - COUNT( * ) * 52 FROM tab1 cor0
----
-156

skipif mysql # not compatible
query I rowsort label-9787
SELECT - COUNT ( * ) * 52 FROM tab1 cor0
----
-156

onlyif mysql # DIV for integer division: 
query I rowsort label-9788
SELECT ( - col2 ) DIV col1 AS col2 FROM tab1 AS cor0
----
-1
-11
-6

skipif mysql # not compatible
query I rowsort label-9788
SELECT ( - col2 ) / col1 AS col2 FROM tab1 AS cor0
----
-1
-11
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-9789
SELECT ALL - - 47 DIV + col1 col0 FROM tab0 AS cor0
----
0
2
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9789
SELECT ALL - - 47 / + col1 col0 FROM tab0 AS cor0
----
0
2
47

query I rowsort
SELECT ALL - 91 FROM tab2 AS cor0 WHERE NOT ( - 76 * - col0 ) >= + col0 + + 88
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9791
SELECT col1 * col2 - + col2 FROM tab0 AS cor0 WHERE NOT 60 * CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-9791
SELECT col1 * col2 - + col2 FROM tab0 AS cor0 WHERE NOT 60 * CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9792
SELECT ALL + col0 * + CAST( col2 AS SIGNED ) AS col2 FROM tab1 WHERE NOT ( col1 ) IS NULL
----
4896
5015
6188

skipif mysql # not compatible
query I rowsort label-9792
SELECT ALL + col0 * + CAST ( col2 AS INTEGER ) AS col2 FROM tab1 WHERE NOT ( col1 ) IS NULL
----
4896
5015
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-9793
SELECT + COUNT( - - 56 ) * COUNT( * ) FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-9793
SELECT + COUNT ( - - 56 ) * COUNT ( * ) FROM tab1
----
9

query I rowsort
SELECT 89 * - 84 + col1 FROM tab1
----
-7429
-7462
-7471

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 * - 28 + 6 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9796
SELECT - 61 + + + COUNT( * ) AS col2 FROM tab0
----
-58

skipif mysql # not compatible
query I rowsort label-9796
SELECT - 61 + + + COUNT ( * ) AS col2 FROM tab0
----
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-9797
SELECT col2 + - - col2 + + 78 DIV + 19 AS col2 FROM tab2
----
120
50
84

skipif mysql # not compatible
query I rowsort label-9797
SELECT col2 + - - col2 + + 78 / + 19 AS col2 FROM tab2
----
120
50
84

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col0 * col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9799
SELECT DISTINCT MAX( col2 ) FROM tab2 AS cor0 WHERE - 41 > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9799
SELECT DISTINCT MAX ( col2 ) FROM tab2 AS cor0 WHERE - 41 > NULL
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT IN ( 98 )
----

query II rowsort
SELECT ALL col0, 82 * + 50 FROM tab2
----
46
4100
64
4100
75
4100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9802
SELECT DISTINCT CAST( NULL AS SIGNED ) + - + CAST( + col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9802
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - + CAST ( + col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + 25 + + col2 FROM tab1 AS cor0
----
121
84
93

query I rowsort
SELECT ALL + 85 * - - 57 + - col0 AS col0 FROM tab1 AS cor0
----
4754
4760
4794

onlyif mysql # aggregate syntax: 
query I rowsort label-9805
SELECT COUNT( * ) + + COUNT( - col0 ) FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-9805
SELECT COUNT ( * ) + + COUNT ( - col0 ) FROM tab1 AS cor0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9806
SELECT DISTINCT - + col2 * + 36 + - + CAST( 28 AS SIGNED ) AS col0 FROM tab0 cor0
----
-1720
-3592
-388

skipif mysql # not compatible
query I rowsort label-9806
SELECT DISTINCT - + col2 * + 36 + - + CAST ( 28 AS INTEGER ) AS col0 FROM tab0 cor0
----
-1720
-3592
-388

query I rowsort
SELECT - col2 AS col2 FROM tab0 AS cor0 WHERE col0 * + col1 * - 98 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL IN ( - 3 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9809
SELECT + col1 * CAST( NULL AS SIGNED ) + 74 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9809
SELECT + col1 * CAST ( NULL AS INTEGER ) + 74 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( + + 48 ) - 8 / col0 NOT IN ( col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col2 - + 59 AS col1 FROM tab1 WHERE NULL IN ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9812
SELECT DISTINCT ( - SUM( + col2 ) ) AS col0 FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-9812
SELECT DISTINCT ( - SUM ( + col2 ) ) AS col0 FROM tab0
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-9813
SELECT - MIN( DISTINCT col0 ) AS col0 FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-9813
SELECT - MIN ( DISTINCT col0 ) AS col0 FROM tab2
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9814
SELECT DISTINCT CAST( - + COUNT( * ) AS SIGNED ) - + 56 * 79 DIV COUNT( * ) AS col1 FROM tab2
----
-1477

skipif mysql # not compatible
query I rowsort label-9814
SELECT DISTINCT CAST ( - + COUNT ( * ) AS INTEGER ) - + 56 * 79 / COUNT ( * ) AS col1 FROM tab2
----
-1477

query I rowsort
SELECT col2 * - 17 AS col0 FROM tab1
----
-1003
-1156
-1632

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - col0 ) <> col1 + + 46
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - + col1 NOT BETWEEN - - col1 AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9818
SELECT DISTINCT + MAX( DISTINCT - - col0 ) col0 FROM tab0
----
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9818
SELECT DISTINCT + MAX ( DISTINCT - - col0 ) col0 FROM tab0
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-9819
SELECT DISTINCT - 68 - + col2 - + + col1 + + - col2 DIV col0 * 20 FROM tab1
----
-132
-183
-198

skipif mysql # not compatible
query I rowsort label-9819
SELECT DISTINCT - 68 - + col2 - + + col1 + + - col2 / col0 * 20 FROM tab1
----
-132
-183
-198

onlyif mysql # aggregate syntax: 
query I rowsort label-9820
SELECT - COUNT( * ) AS col2 FROM tab1 WHERE ( col1 ) <= ( col0 )
----
-3

skipif mysql # not compatible
query I rowsort label-9820
SELECT - COUNT ( * ) AS col2 FROM tab1 WHERE ( col1 ) <= ( col0 )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9821
SELECT ALL - COUNT( + 32 ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-9821
SELECT ALL - COUNT ( + 32 ) AS col1 FROM tab1
----
-3

query I rowsort
SELECT 40 + - col0 * col1 AS col0 FROM tab2 WHERE 7 BETWEEN col0 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * 36 * + col1 + + + 98 col0 FROM tab2 cor0
----
-177310
-180802
-84358

onlyif mysql # aggregate syntax: 
query I rowsort label-9824
SELECT ALL COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NOT - 71 + col1 <= - ( col0 ) )
----
0

skipif mysql # not compatible
query I rowsort label-9824
SELECT ALL COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NOT - 71 + col1 <= - ( col0 ) )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9825
SELECT ALL - - col0 DIV - 73 - + ( col2 ) FROM tab1 AS cor0
----
-60
-69
-96

skipif mysql # not compatible
query I rowsort label-9825
SELECT ALL - - col0 / - 73 - + ( col2 ) FROM tab1 AS cor0
----
-60
-69
-96

query I rowsort
SELECT - col0 * - - 46 FROM tab2 AS cor0
----
-2116
-2944
-3450

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE NOT ( NOT ( + - col1 ) <= NULL )
----

query I rowsort
SELECT DISTINCT + col0 FROM tab0 AS cor0 WHERE ( + 78 ) > ( 28 )
----
15
87
97

query I rowsort
SELECT ALL - col2 FROM tab1 WHERE col2 NOT IN ( + + 26 )
----
-59
-68
-96

query III rowsort
SELECT * FROM tab1 WHERE NOT + - col1 < ( + - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - 58 * + col2 AS col0 FROM tab0
----
-2726
-5742
-580

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9832
SELECT DISTINCT 26 * + COUNT( 99 ) FROM tab0 AS cor0 WHERE NOT + col0 > ( - ( - + CAST( NULL AS SIGNED ) ) + - col0 / 18 )
----
0

skipif mysql # not compatible
query I rowsort label-9832
SELECT DISTINCT 26 * + COUNT ( 99 ) FROM tab0 AS cor0 WHERE NOT + col0 > ( - ( - + CAST ( NULL AS INTEGER ) ) + - col0 / 18 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9833
SELECT ALL - 27 * + + MIN( - + 7 ) AS col2 FROM tab0 cor0
----
189

skipif mysql # not compatible
query I rowsort label-9833
SELECT ALL - 27 * + + MIN ( - + 7 ) AS col2 FROM tab0 cor0
----
189

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + col1 + - col2 col1 FROM tab0 AS cor0 WHERE NOT col1 + - + 3 + - + col0 * - col1 NOT BETWEEN ( + 62 ) AND NULL
----

query I rowsort
SELECT - + 57 * + 1 AS col2 FROM tab2 AS cor0
----
-57
-57
-57

query I rowsort
SELECT ALL - col1 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN + 16 AND + 80
----

query I rowsort
SELECT + + col2 * - 39 FROM tab2 AS cor0
----
-1560
-2262
-897

query I rowsort
SELECT - - col1 * ( + + col1 ) FROM tab0 AS cor0
----
1
441
6561

onlyif mysql # aggregate syntax: 
query I rowsort label-9839
SELECT MIN( 27 ) AS col0 FROM tab1 WHERE NOT ( ( NOT ( NULL ) BETWEEN - col0 * col0 AND - 28 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9839
SELECT MIN ( 27 ) AS col0 FROM tab1 WHERE NOT ( ( NOT ( NULL ) BETWEEN - col0 * col0 AND - 28 ) )
----
NULL

query I rowsort
SELECT + col0 * + col1 * - col0 AS col2 FROM tab1
----
-36125
-36414
-389207

query II rowsort
SELECT + 37 AS col0, - 30 + 82 AS col2 FROM tab2
----
37
52
37
52
37
52

onlyif mysql # aggregate syntax: 
query I rowsort label-9842
SELECT + 37 * 98 * + COUNT( * ) FROM tab0
----
10878

skipif mysql # not compatible
query I rowsort label-9842
SELECT + 37 * 98 * + COUNT ( * ) FROM tab0
----
10878

onlyif mysql # aggregate syntax: 
query I rowsort label-9843
SELECT ALL SUM( + - ( - col0 ) ) AS col2 FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-9843
SELECT ALL SUM ( + - ( - col0 ) ) AS col2 FROM tab0
----
199

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9844
SELECT - + CAST( NULL AS DECIMAL ) + COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9844
SELECT - + CAST ( NULL AS REAL ) + COUNT ( * ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL col1 + - 5 + 59 AS col1 FROM tab0 AS cor0
----
135
55
75

query I rowsort
SELECT col2 + - col1 - - - ( 83 ) AS col0 FROM tab0 AS cor0
----
-117
-94
15

query III rowsort
SELECT * FROM tab0 WHERE NULL >= 48
----

query II rowsort
SELECT + col2 * + col0 AS col2, col0 AS col1 FROM tab0
----
705
15
870
87
9603
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9849
SELECT CAST( col2 AS SIGNED ) * - col2 FROM tab0 AS cor0
----
-100
-2209
-9801

skipif mysql # not compatible
query I rowsort label-9849
SELECT CAST ( col2 AS INTEGER ) * - col2 FROM tab0 AS cor0
----
-100
-2209
-9801

query I rowsort
SELECT - col1 * + 39 + - col2 FROM tab1 AS cor0
----
-1901
-254
-642

query I rowsort
SELECT ( 40 ) * + + 94 FROM tab0 AS cor0
----
3760
3760
3760

query I rowsort
SELECT ( 40 ) * + col2 - ( + col0 ) - - 37 * + + col1 + col2 AS col0 FROM tab2 cor0
----
2784
4425
4782

onlyif mysql # aggregate syntax: 
query I rowsort label-9853
SELECT ALL - + COUNT( * ) * 42 FROM tab1 AS cor0
----
-126

skipif mysql # not compatible
query I rowsort label-9853
SELECT ALL - + COUNT ( * ) * 42 FROM tab1 AS cor0
----
-126

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 43 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9855
SELECT col0 - - - col2 * CAST( NULL AS SIGNED ) * - 48 * - 5 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9855
SELECT col0 - - - col2 * CAST ( NULL AS INTEGER ) * - 48 * - 5 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 80 - - col0 col0 FROM tab1 AS cor0
----
-29
11
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9857
SELECT ALL + - 44 - - 51 + - - COUNT( * ) FROM tab2 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-9857
SELECT ALL + - 44 - - 51 + - - COUNT ( * ) FROM tab2 AS cor0
----
10

query I rowsort
SELECT + col0 FROM tab2 AS cor0 WHERE NULL <= col1 - col1 + - col2 * - col2
----

query I rowsort
SELECT ALL col1 - + col0 * + + 43 FROM tab1
----
-2179
-3650
-3866

query I rowsort
SELECT + ( - + col2 ) * - 50 * - - 86 * - + ( + col0 ) + + col0 * 90 AS col1 FROM tab1 WHERE - 11 > NULL
----

query I rowsort
SELECT DISTINCT - col0 - - 68 AS col2 FROM tab1
----
-17
-23
17

query I rowsort
SELECT ALL - 98 / + col2 + - + 36 AS col0 FROM tab0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9863
SELECT 21 AS col2, ( col2 ) + + - 2 DIV + col1 AS col0 FROM tab0
----
21
10
21
47
21
97

skipif mysql # not compatible
query II rowsort label-9863
SELECT 21 AS col2, ( col2 ) + + - 2 / + col1 AS col0 FROM tab0
----
21
10
21
47
21
97

query I rowsort
SELECT ALL col1 * + - ( col0 ) * col1 + - col2 AS col0 FROM tab1
----
-10092
-201087
-2184

query I rowsort
SELECT col0 * 54 AS col2 FROM tab0 AS cor0
----
4698
5238
810

query I rowsort
SELECT DISTINCT - col0 * col2 * + + col0 AS col1 FROM tab0 AS cor0
----
-10575
-75690
-931491

onlyif mysql # aggregate syntax: 
query I rowsort label-9867
SELECT - 10 * + SUM( ( - col1 ) ) AS col0 FROM tab2 cor0
----
1950

skipif mysql # not compatible
query I rowsort label-9867
SELECT - 10 * + SUM ( ( - col1 ) ) AS col0 FROM tab2 cor0
----
1950

query I rowsort
SELECT ALL 61 * - ( + col1 ) FROM tab2
----
-3111
-4087
-4697

query I rowsort
SELECT col2 * - + 85 AS col0 FROM tab0 cor0
----
-3995
-8415
-850

query I rowsort
SELECT ALL + 89 * + col2 * - 26 FROM tab2 cor0
----
-134212
-53222
-92560

query I rowsort
SELECT ALL 29 AS col2 FROM tab1 cor0 WHERE ( 53 / - ( + - col0 ) ) BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT ALL + ( + + 11 ) AS col2 FROM tab0 AS cor0
----
11
11
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9873
SELECT ALL ( - + SUM( DISTINCT + - CAST( NULL AS SIGNED ) ) ) AS col2 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9873
SELECT ALL ( - + SUM ( DISTINCT + - CAST ( NULL AS INTEGER ) ) ) AS col2 FROM tab1 cor0
----
NULL

query I rowsort
SELECT + - col0 FROM tab1 WHERE NULL > + col0 * col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9875
SELECT ALL + COUNT( * ) + + 89 AS col1 FROM tab0 WHERE NOT NULL IN ( - col1 * + col0 * col1 * + col1 )
----
89

skipif mysql # not compatible
query I rowsort label-9875
SELECT ALL + COUNT ( * ) + + 89 AS col1 FROM tab0 WHERE NOT NULL IN ( - col1 * + col0 * col1 * + col1 )
----
89

query I rowsort
SELECT - col1 + + 0 FROM tab0
----
-1
-21
-81

query I rowsort
SELECT col1 + 25 AS col1 FROM tab0
----
106
26
46

onlyif mysql # aggregate syntax: 
query I rowsort label-9878
SELECT - 22 + - COUNT( * ) AS col0 FROM tab0
----
-25

skipif mysql # not compatible
query I rowsort label-9878
SELECT - 22 + - COUNT ( * ) AS col0 FROM tab0
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-9879
SELECT COUNT( * ) + - + 18 AS col1 FROM tab2
----
-15

skipif mysql # not compatible
query I rowsort label-9879
SELECT COUNT ( * ) + - + 18 AS col1 FROM tab2
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-9880
SELECT MIN( 1 ) AS col0 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-9880
SELECT MIN ( 1 ) AS col0 FROM tab1
----
1

query II rowsort
SELECT + 31 AS col0, - col1 + - + col2 FROM tab0 AS cor0
----
31
-100
31
-128
31
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-9882
SELECT + + MIN( + 53 ) + - COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
44

skipif mysql # not compatible
query I rowsort label-9882
SELECT + + MIN ( + 53 ) + - COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
44

query I rowsort
SELECT - - 11 - - col0 AS col1 FROM tab1 WHERE 26 NOT IN ( 81 * + 68, + col2, - - 58 )
----
102
62
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9884
SELECT + COUNT( * ) FROM tab0 WHERE col0 IS NULL OR ( NOT ( + ( col1 ) / - col1 + + - 99 ) IS NOT NULL )
----
0

skipif mysql # not compatible
query I rowsort label-9884
SELECT + COUNT ( * ) FROM tab0 WHERE col0 IS NULL OR ( NOT ( + ( col1 ) / - col1 + + - 99 ) IS NOT NULL )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9885
SELECT - CAST( - + COUNT( * ) AS SIGNED ) + + + COUNT( * ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-9885
SELECT - CAST ( - + COUNT ( * ) AS INTEGER ) + + + COUNT ( * ) FROM tab0
----
6

query III rowsort
SELECT * FROM tab0 cor0 WHERE 45 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9887
SELECT - COUNT( * ) + - 25 FROM tab0 AS cor0
----
-28

skipif mysql # not compatible
query I rowsort label-9887
SELECT - COUNT ( * ) + - 25 FROM tab0 AS cor0
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9888
SELECT DISTINCT col2 + - - col0 + - col2 * - CAST( - 8 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-115
-216
-331

skipif mysql # not compatible
query I rowsort label-9888
SELECT DISTINCT col2 + - - col0 + - col2 * - CAST ( - 8 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-115
-216
-331

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col2 * - col1 IS NOT NULL
----

query I rowsort
SELECT ALL - 7 + 87 AS col1 FROM tab1 cor0
----
80
80
80

query II rowsort
SELECT DISTINCT - ( - 67 ) AS col1, + ( col0 ) - - col0 AS col2 FROM tab2
----
67
128
67
150
67
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9892
SELECT 18 * CAST( NULL AS SIGNED ) FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-9892
SELECT 18 * CAST ( NULL AS INTEGER ) FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT + ( - 35 ) FROM tab1
----
-35

query I rowsort
SELECT + + col1 AS col0 FROM tab2 WHERE NOT - + 40 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9895
SELECT DISTINCT - - COUNT( * ) AS col2 FROM tab1 WHERE col1 - + 54 + 57 * - 58 / - col2 + - 85 >= + 74
----
0

skipif mysql # not compatible
query I rowsort label-9895
SELECT DISTINCT - - COUNT ( * ) AS col2 FROM tab1 WHERE col1 - + 54 + 57 * - 58 / - col2 + - 85 >= + 74
----
0

query II rowsort
SELECT ( + col1 ) AS col0, - col1 AS col0 FROM tab2
----
51
-51
67
-67
77
-77

query II rowsort
SELECT DISTINCT 58 * - 26 AS col0, col0 FROM tab1
----
-1508
51
-1508
85
-1508
91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9898
SELECT ALL * FROM tab0 WHERE ( NOT CAST( col1 AS SIGNED ) IS NOT NULL )
----

skipif mysql # not compatible
query III rowsort label-9898
SELECT ALL * FROM tab0 WHERE ( NOT CAST ( col1 AS INTEGER ) IS NOT NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - col1 ) * + col2 * + ( - col2 ) * col2 * col0 col0 FROM tab0
----
126144945
1827000
94119003

query I rowsort
SELECT ALL + + 89 FROM tab1 cor0
----
89
89
89

query I rowsort
SELECT + 74 * - 33 AS col2 FROM tab1 AS cor0
----
-2442
-2442
-2442

query I rowsort
SELECT DISTINCT - col0 FROM tab0 WHERE col0 IS NOT NULL
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-9903
SELECT COUNT( * ), - 64 * - 94 AS col1 FROM tab1
----
3
6016

skipif mysql # not compatible
query II rowsort label-9903
SELECT COUNT ( * ), - 64 * - 94 AS col1 FROM tab1
----
3
6016

onlyif mysql # aggregate syntax: 
query I rowsort label-9904
SELECT + 24 + + COUNT( * ) col2 FROM tab2
----
27

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9904
SELECT + 24 + + COUNT ( * ) col2 FROM tab2
----
27

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - 52 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 54 FROM tab0 AS cor0 WHERE NULL = NULL
----

query I rowsort
SELECT ALL - col2 + + 38 AS col0 FROM tab0 cor0
----
-61
-9
28

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 * - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + - 10 + - col2 + col0 FROM tab2 AS cor0
----
13
14
7

onlyif mysql # aggregate syntax: 
query I rowsort label-9910
SELECT + MIN( + col2 ) FROM tab0 cor0
----
10

skipif mysql # not compatible
query I rowsort label-9910
SELECT + MIN ( + col2 ) FROM tab0 cor0
----
10

query I rowsort
SELECT ALL - - 38 + + - col1 * - col0 FROM tab0 AS cor0 WHERE + ( + - 57 ) IS NOT NULL
----
1253
135
1865

onlyif mysql # aggregate syntax: 
query I rowsort label-9912
SELECT ALL - COUNT( * ) * 53 AS col0 FROM tab0 AS cor0
----
-159

skipif mysql # not compatible
query I rowsort label-9912
SELECT ALL - COUNT ( * ) * 53 AS col0 FROM tab0 AS cor0
----
-159

query II rowsort
SELECT DISTINCT - + col2 * + ( + col1 ), col2 AS col0 FROM tab2 AS cor0
----
-1173
23
-3080
40
-3886
58

query I rowsort
SELECT DISTINCT col0 + + col2 AS col2 FROM tab2 WHERE - - col1 - 39 * + 12 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9915
SELECT ALL + 58 * + + COUNT( * ) * + MAX( - col2 ) AS col0 FROM tab2
----
-4002

skipif mysql # not compatible
query I rowsort label-9915
SELECT ALL + 58 * + + COUNT ( * ) * + MAX ( - col2 ) AS col0 FROM tab2
----
-4002

query I rowsort
SELECT DISTINCT col1 * ( + col0 ) FROM tab1
----
425
4277
714

onlyif mysql # DIV for integer division: 
query I rowsort label-9917
SELECT ALL col1 DIV + - col0 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9917
SELECT ALL col1 / + - col0 AS col0 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - ( 92 ) col2, - 10 FROM tab0
----
-92
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-9919
SELECT ALL 31 DIV col0 * 48 AS col0 FROM tab0
----
0
0
96

skipif mysql # not compatible
query I rowsort label-9919
SELECT ALL 31 / col0 * 48 AS col0 FROM tab0
----
0
0
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9920
SELECT DISTINCT COUNT( * ) DIV - ( - - COUNT( * ) ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-9920
SELECT DISTINCT COUNT ( * ) / - ( - - COUNT ( * ) ) FROM tab0
----
-1

query I rowsort
SELECT ALL - ( 37 ) AS col2 FROM tab2
----
-37
-37
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9922
SELECT COUNT( * ) FROM tab2 WHERE + ( + col2 ) * + + 79 BETWEEN 50 + - 37 AND + col0 + + 36 OR NOT + - CAST( - - col2 AS SIGNED ) * col2 / - col1 BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-9922
SELECT COUNT ( * ) FROM tab2 WHERE + ( + col2 ) * + + 79 BETWEEN 50 + - 37 AND + col0 + + 36 OR NOT + - CAST ( - - col2 AS INTEGER ) * col2 / - col1 BETWEEN NULL AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9923
SELECT DISTINCT 15 + + MIN( + col0 ) AS col1 FROM tab0 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-9923
SELECT DISTINCT 15 + + MIN ( + col0 ) AS col1 FROM tab0 AS cor0
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9924
SELECT - + MAX( col0 ) / - CAST( NULL AS SIGNED ) + 20 * + + 80 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9924
SELECT - + MAX ( col0 ) / - CAST ( NULL AS INTEGER ) + 20 * + + 80 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT col2 + + + 28 FROM tab2 AS cor0
----
51
68
86

query I rowsort
SELECT - col2 + + + col0 AS col1 FROM tab1 cor0
----
-45
23
26

query II rowsort
SELECT 47 + + col0 + col2 + - col0 * + col2 * col0 * + col0 AS col1, + col0 * + + 60 * + - col1 * - 38 + - col0 + - 5 FROM tab0 AS cor0
----
-158516
2770180
-6584886
4165468
-90354384
221058

query I rowsort
SELECT ALL - col2 + col2 + - - col2 FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT - 1 AS col0 FROM tab2 WHERE 23 IS NOT NULL
----
-1
-1
-1

query I rowsort
SELECT + 18 * col1 AS col0 FROM tab0
----
1458
18
378

query II rowsort
SELECT DISTINCT - col2, - col2 AS col0 FROM tab2 AS cor0
----
-23
-23
-40
-40
-58
-58

query II rowsort
SELECT + col1 * + 43 * - - col1, col0 FROM tab0 cor0
----
18963
87
282123
15
43
97

onlyif mysql # DIV for integer division: 
query I rowsort label-9933
SELECT - + ( + col1 ) DIV + - 72 + + col1 + + col1 DIV + - col1 FROM tab0 AS cor0
----
0
20
81

skipif mysql # not compatible
query I rowsort label-9933
SELECT - + ( + col1 ) / + - 72 + + col1 + + col1 / + - col1 FROM tab0 AS cor0
----
0
20
81

query II rowsort
SELECT + 24, + col0 FROM tab1 AS cor0
----
24
51
24
85
24
91

query II rowsort
SELECT DISTINCT - - col1, col1 FROM tab0 cor0
----
1
1
21
21
81
81

query I rowsort
SELECT + col0 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) >= + 94
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9937
SELECT ALL - 85 DIV 81 DIV col2 * + col1 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9937
SELECT ALL - 85 / 81 / col2 * + col1 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT ( + - col2 ) FROM tab0 WHERE col2 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 28 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + 53 ) IS NOT NULL
----

query II rowsort
SELECT DISTINCT - + col0 AS col1, col1 AS col1 FROM tab0 AS cor0
----
-15
81
-87
21
-97
1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 56 * col0 > NULL
----

query I rowsort
SELECT DISTINCT + col0 * + col2 * - + col0 AS col1 FROM tab2
----
-163840
-326250
-48668

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9944
SELECT - CAST( NULL AS SIGNED ) / 2 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-9944
SELECT - CAST ( NULL AS INTEGER ) / 2 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL <> 81
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9946
SELECT ALL + COUNT( * ) col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9946
SELECT ALL + COUNT ( * ) col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query I rowsort
SELECT ALL - 77 FROM tab1 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 3a24155cb91ceff1e67bb51c07b72107

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9948
SELECT DISTINCT CAST( + col1 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-9948
SELECT DISTINCT CAST ( + col1 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9949
SELECT DISTINCT + col2 + col2 * CAST( NULL AS SIGNED ) + - col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9949
SELECT DISTINCT + col2 + col2 * CAST ( NULL AS INTEGER ) + - col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9950
SELECT ALL 95 * - ( - + COUNT( * ) ) + COUNT( * ) FROM tab2 cor0
----
288

skipif mysql # not compatible
query I rowsort label-9950
SELECT ALL 95 * - ( - + COUNT ( * ) ) + COUNT ( * ) FROM tab2 cor0
----
288

onlyif mysql # aggregate syntax: 
query I rowsort label-9951
SELECT ALL 13 * + ( - 41 ) * + COUNT( * ) FROM tab1 AS cor0
----
-1599

skipif mysql # not compatible
query I rowsort label-9951
SELECT ALL 13 * + ( - 41 ) * + COUNT ( * ) FROM tab1 AS cor0
----
-1599

query I rowsort
SELECT 98 + + 27 AS col0 FROM tab2 AS cor0
----
125
125
125

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9953
SELECT ALL col0 AS col1, CAST( NULL AS SIGNED ) FROM tab0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-9953
SELECT ALL col0 AS col1, CAST ( NULL AS INTEGER ) FROM tab0
----
15
NULL
87
NULL
97
NULL

query I rowsort
SELECT - col1 FROM tab1 WHERE + col0 IS NULL
----

query I rowsort
SELECT ALL + ( - 61 ) AS col2 FROM tab0 WHERE NOT + col0 * + 33 + ( - 32 ) > - + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 46 * - 79 col2 FROM tab0
----
-3634
-3634
-3634

query I rowsort
SELECT DISTINCT + 77 * - - col0 + - col2 * + col0 AS col0 FROM tab2
----
1425
2368
2484

onlyif mysql # aggregate syntax: 
query I rowsort label-9958
SELECT SUM( ALL col0 ) AS col1 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-9958
SELECT SUM ( ALL col0 ) AS col1 FROM tab0 AS cor0
----
199

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9959
SELECT DISTINCT + - ( + col2 ) + - + col0 AS col1, CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-196
NULL
-62
NULL
-97
NULL

skipif mysql # not compatible
query II rowsort label-9959
SELECT DISTINCT + - ( + col2 ) + - + col0 AS col1, CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-196
NULL
-62
NULL
-97
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9960
SELECT DISTINCT COUNT( * ) + + 97 FROM tab0 cor0
----
100

skipif mysql # not compatible
query I rowsort label-9960
SELECT DISTINCT COUNT ( * ) + + 97 FROM tab0 cor0
----
100

query I rowsort
SELECT ALL col2 + - 16 FROM tab2 AS cor0
----
24
42
7

query I rowsort
SELECT DISTINCT 61 + + - col2 * col2 AS col2 FROM tab1
----
-3420
-4563
-9155

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 * + - 97 * + 83 + - col1 + - col1 * col2 * - 53 AS col1, + ( + + col0 ) col2 FROM tab1
----
481819
51
699965
85
901982
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9964
SELECT DISTINCT col2 / col2 - + 54 + - col2 + + - 63 + - CAST( NULL AS SIGNED ) * + 43 * + + col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9964
SELECT DISTINCT col2 / col2 - + 54 + - col2 + + - 63 + - CAST ( NULL AS INTEGER ) * + 43 * + + col2 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 47 col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-47

query I rowsort
SELECT + col1 * ( + + col1 ) FROM tab2 WHERE NOT + 88 = NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9967
SELECT DISTINCT + - 85 AS col0 FROM tab0 WHERE NOT + col0 * - + CAST( - 94 AS DECIMAL ) - + col1 * col2 + + ( - 74 ) + - - 89 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9967
SELECT DISTINCT + - 85 AS col0 FROM tab0 WHERE NOT + col0 * - + CAST ( - 94 AS REAL ) - + col1 * col2 + + ( - 74 ) + - - 89 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 37 col1 FROM tab0 cor0
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-9969
SELECT ALL + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT col0 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-9969
SELECT ALL + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT col0 > NULL
----
0

query I rowsort
SELECT col1 AS col1 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN + col1 - - + ( 0 ) AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9971
SELECT DISTINCT COUNT( ALL + col1 ) DIV 61 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9971
SELECT DISTINCT COUNT ( ALL + col1 ) / 61 FROM tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 3 col2 FROM tab0 AS cor0
----
-3
-3
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9973
SELECT DISTINCT CAST( - + 0 AS SIGNED ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9973
SELECT DISTINCT CAST ( - + 0 AS INTEGER ) FROM tab0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9974
SELECT col0 / + - ( - - col1 ) * CAST( NULL AS SIGNED ) - 54 AS col0, + col2 AS col2 FROM tab0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
query II rowsort label-9974
SELECT col0 / + - ( - - col1 ) * CAST ( NULL AS INTEGER ) - 54 AS col0, + col2 AS col2 FROM tab0
----
NULL
10
NULL
47
NULL
99

query I rowsort
SELECT ALL + col1 * - + col2 AS col0 FROM tab2
----
-1173
-3080
-3886

onlyif mysql # aggregate syntax: 
query I rowsort label-9976
SELECT ALL COUNT( - 30 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9976
SELECT ALL COUNT ( - 30 ) FROM tab1
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9977
SELECT DISTINCT + - col2 AS col2 FROM tab0 AS cor0 WHERE NOT 39 < CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-9977
SELECT DISTINCT + - col2 AS col2 FROM tab0 AS cor0 WHERE NOT 39 < CAST ( NULL AS REAL )
----

query II rowsort
SELECT - col1 * - + col0, + col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
1215
81
1827
21
97
1

query I rowsort
SELECT ALL - - 43 AS col1 FROM tab1 AS cor0
----
43
43
43

query II rowsort
SELECT DISTINCT 86, - col1 AS col1 FROM tab0
----
86
-1
86
-21
86
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-9981
SELECT COUNT( * ) + 98 FROM tab1
----
101

skipif mysql # not compatible
query I rowsort label-9981
SELECT COUNT ( * ) + 98 FROM tab1
----
101

query II rowsort
SELECT ALL col1 AS col0, - col0 FROM tab2
----
51
-46
67
-75
77
-64

query I rowsort
SELECT + 29 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

query II rowsort
SELECT - col1, 89 AS col2 FROM tab0 AS cor0
----
-1
89
-21
89
-81
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + + 22 + - col1 col1 FROM tab0 AS cor0
----
-12
11
120

query I rowsort
SELECT ALL - col2 * + col2 + + 18 FROM tab0 AS cor0
----
-2191
-82
-9783

query III rowsort
SELECT * FROM tab1 WHERE + 53 * - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9988
SELECT COUNT( * ) - - COUNT( * ) * COUNT( * ) FROM tab2
----
12

skipif mysql # not compatible
query I rowsort label-9988
SELECT COUNT ( * ) - - COUNT ( * ) * COUNT ( * ) FROM tab2
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-9989
SELECT + + col2 + - - col0 + - col2 DIV + col0 FROM tab0 AS cor0
----
195
59
97

skipif mysql # not compatible
query I rowsort label-9989
SELECT + + col2 + - - col0 + - col2 / + col0 FROM tab0 AS cor0
----
195
59
97

query I rowsort
SELECT - col2 + + + 27 FROM tab0 AS cor0
----
-20
-72
17

onlyif mysql # aggregate syntax: 
query I rowsort label-9991
SELECT - 25 + COUNT( * ) FROM tab1 AS cor0
----
-22

skipif mysql # not compatible
query I rowsort label-9991
SELECT - 25 + COUNT ( * ) FROM tab1 AS cor0
----
-22

query I rowsort
SELECT ALL col0 + + col2 AS col2 FROM tab0 WHERE NULL < - - 42
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL <> 66 * 69 * - col1 - + + col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9994
SELECT 57 * + + SUM( + CAST( + - ( + - col1 ) AS SIGNED ) ) FROM tab0 AS cor0
----
5871

skipif mysql # not compatible
query I rowsort label-9994
SELECT 57 * + + SUM ( + CAST ( + - ( + - col1 ) AS INTEGER ) ) FROM tab0 AS cor0
----
5871

query I rowsort
SELECT ( - 49 ) * + col0 + - - col0 + - 24 + col0 * + col1 FROM tab1 cor0
----
-115
-1758
-3679

query I rowsort
SELECT - 5 * - col1 + + ( col2 ) FROM tab1 AS cor0
----
166
303
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9997
SELECT DISTINCT + COUNT( * ) DIV - - COUNT( * ) FROM tab2 cor0
----
1

skipif mysql # not compatible
query I rowsort label-9997
SELECT DISTINCT + COUNT ( * ) / - - COUNT ( * ) FROM tab2 cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9998
SELECT + SUM( - col0 ) AS col1 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-9998
SELECT + SUM ( - col0 ) AS col1 FROM tab2 AS cor0
----
-185

onlyif mysql # aggregate syntax: 
query I rowsort label-9999
SELECT ALL - COUNT( DISTINCT 61 ) FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9999
SELECT ALL - COUNT ( DISTINCT 61 ) FROM tab1 AS cor0
----
-1

