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 II rowsort
SELECT - 45, + col2 AS col0 FROM tab2
----
-45
23
-45
40
-45
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1
SELECT ALL - 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-1
SELECT ALL - CAST ( + col0 AS INTEGER ) col1 FROM tab2
----
-46
-64
-75

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

query I rowsort
SELECT - + col1 AS col0 FROM tab0 WHERE NOT - + col2 BETWEEN NULL AND + col1 * 23 + - col0 / + col1
----

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

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

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

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

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

query I rowsort
SELECT DISTINCT + col0 * col0 * - - col0 * + col0 FROM tab0
----
50625
57289761
88529281

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

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

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

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

query I rowsort
SELECT - col0 * + 5 + + col0 FROM tab0 AS cor0
----
-348
-388
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-13
SELECT DISTINCT - ( + 47 ) * + - COUNT( * ) * - MAX( + col1 ) + - CAST( + MIN( - col1 ) AS SIGNED ) + 75 AS col1 FROM tab1 AS cor0
----
-6505

skipif mysql # not compatible
query I rowsort label-13
SELECT DISTINCT - ( + 47 ) * + - COUNT ( * ) * - MAX ( + col1 ) + - CAST ( + MIN ( - col1 ) AS INTEGER ) + 75 AS col1 FROM tab1 AS cor0
----
-6505

query I rowsort
SELECT + 67 * col2 + col2 AS col1 FROM tab0 AS cor0
----
3196
6732
680

onlyif mysql # aggregate syntax: 
query II rowsort label-15
SELECT DISTINCT - MAX( col2 ), + ( + 78 ) + + COUNT( ALL col0 ) + COUNT( col1 ) AS col2 FROM tab2 AS cor0
----
-58
84

skipif mysql # not compatible
query II rowsort label-15
SELECT DISTINCT - MAX ( col2 ), + ( + 78 ) + + COUNT ( ALL col0 ) + COUNT ( col1 ) AS col2 FROM tab2 AS cor0
----
-58
84

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

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

query I rowsort
SELECT col2 + - + col0 + col0 FROM tab0
----
10
47
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 col1 FROM tab2 WHERE NULL BETWEEN + + col1 AND NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-20
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) IN ( col1, - ( - CAST( col1 AS SIGNED ) ), + - 86 )
----

skipif mysql # not compatible
query III rowsort label-20
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) IN ( col1, - ( - CAST ( col1 AS INTEGER ) ), + - 86 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-21
SELECT + - col1 * - + col0 DIV col0, - col2 AS col2 FROM tab1 AS cor0
----
14
-96
47
-68
5
-59

skipif mysql # not compatible
query II rowsort label-21
SELECT + - col1 * - + col0 / col0, - col2 AS col2 FROM tab1 AS cor0
----
14
-96
47
-68
5
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-22
SELECT CAST( 56 AS SIGNED ) + + MIN( - col0 ) AS col1 FROM tab0
----
-41

skipif mysql # not compatible
query I rowsort label-22
SELECT CAST ( 56 AS INTEGER ) + + MIN ( - col0 ) AS col1 FROM tab0
----
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-23
SELECT DISTINCT - col2 * + CAST( + col1 AS SIGNED ) AS col2 FROM tab0
----
-210
-3807
-99

skipif mysql # not compatible
query I rowsort label-23
SELECT DISTINCT - col2 * + CAST ( + col1 AS INTEGER ) AS col2 FROM tab0
----
-210
-3807
-99

query I rowsort
SELECT + ( col0 ) + - col2 FROM tab0
----
-2
-32
77

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

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

query II rowsort
SELECT + + 71 + - col0 AS col1, col2 * - + ( col0 ) FROM tab2 AS cor0
----
-4
-4350
25
-1058
7
-2560

onlyif mysql # DIV for integer division: 
query I rowsort label-28
SELECT col0 * col0 + - 76 + - 33 DIV - col0 FROM tab0 AS cor0
----
151
7493
9333

skipif mysql # not compatible
query I rowsort label-28
SELECT col0 * col0 + - 76 + - 33 / - col0 FROM tab0 AS cor0
----
151
7493
9333

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

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

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

query III rowsort
SELECT * FROM tab0 WHERE NOT + ( - 99 ) > + + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 20 + col0 FROM tab2 WHERE NULL BETWEEN + col0 * - ( 40 ) - 79 + - - 41 * - 95 AND + 12 + - + col2 + + 40
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-33
SELECT * FROM tab2 WHERE NOT - 55 NOT BETWEEN col1 * + CAST( NULL AS SIGNED ) + + - col2 AND + + 95 + + - 15 * - + col2
----

skipif mysql # not compatible
query III rowsort label-33
SELECT * FROM tab2 WHERE NOT - 55 NOT BETWEEN col1 * + CAST ( NULL AS INTEGER ) + + - col2 AND + + 95 + + - 15 * - + col2
----

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-37
SELECT MIN( ALL - + 7 ) AS col2 FROM tab0
----
-7

skipif mysql # not compatible
query I rowsort label-37
SELECT MIN ( ALL - + 7 ) AS col2 FROM tab0
----
-7

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-39
SELECT ALL + + 98 DIV COUNT( DISTINCT - - col0 ) AS col1, + CAST( NULL AS SIGNED ) * 60 FROM tab1 AS cor0
----
32
NULL

skipif mysql # not compatible
query II rowsort label-39
SELECT ALL + + 98 / COUNT ( DISTINCT - - col0 ) AS col1, + CAST ( NULL AS INTEGER ) * 60 FROM tab1 AS cor0
----
32
NULL

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

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

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab1 AS cor1 WHERE + ( + 4 ) < 66
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

query I rowsort
SELECT + 96 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NOT NULL
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-47
SELECT - - MAX( + + col1 ) * + 90 FROM tab1 AS cor0
----
4230

skipif mysql # not compatible
query I rowsort label-47
SELECT - - MAX ( + + col1 ) * + 90 FROM tab1 AS cor0
----
4230

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

query I rowsort
SELECT DISTINCT + 62 AS col1 FROM tab1 WHERE NOT NULL BETWEEN NULL AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-50
SELECT + - 12 - - + COUNT( * ) FROM tab2 WHERE + - col1 <= - col1
----
-9

skipif mysql # not compatible
query I rowsort label-50
SELECT + - 12 - - + COUNT ( * ) FROM tab2 WHERE + - col1 <= - col1
----
-9

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

query I rowsort
SELECT DISTINCT col0 * - - 3 AS col1 FROM tab0
----
261
291
45

onlyif mysql # DIV for integer division: 
query I rowsort label-53
SELECT ALL + col2 DIV col2 + col0 FROM tab2
----
47
65
76

skipif mysql # not compatible
query I rowsort label-53
SELECT ALL + col2 / col2 + col0 FROM tab2
----
47
65
76

query I rowsort
SELECT 61 + - - 73 AS col1 FROM tab1
----
134
134
134

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

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

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

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

query I rowsort
SELECT - 93 * + - col0 AS col1 FROM tab2
----
4278
5952
6975

onlyif mysql # aggregate syntax: 
query I rowsort label-59
SELECT ALL MIN( ALL - 7 ) - - + 18 FROM tab0
----
11

skipif mysql # not compatible
query I rowsort label-59
SELECT ALL MIN ( ALL - 7 ) - - + 18 FROM tab0
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-60
SELECT DISTINCT - 22 DIV - 49 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-60
SELECT DISTINCT - 22 / - 49 FROM tab1
----
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-63
SELECT ALL 27 * 42 + 92 DIV - col0 + - + 12 AS col2 FROM tab0 AS cor0
----
1116
1121
1122

skipif mysql # not compatible
query I rowsort label-63
SELECT ALL 27 * 42 + 92 / - col0 + - + 12 AS col2 FROM tab0 AS cor0
----
1116
1121
1122

onlyif mysql # aggregate syntax: 
query I rowsort label-64
SELECT DISTINCT - 80 * + SUM( ALL - 48 ) + + COUNT( * ) FROM tab2 AS cor0
----
11523

skipif mysql # not compatible
query I rowsort label-64
SELECT DISTINCT - 80 * + SUM ( ALL - 48 ) + + COUNT ( * ) FROM tab2 AS cor0
----
11523

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-66
SELECT - MAX( - - 86 ) FROM tab1 AS cor0
----
-86

skipif mysql # not compatible
query I rowsort label-66
SELECT - MAX ( - - 86 ) FROM tab1 AS cor0
----
-86

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

skipif mysql # not compatible
query I rowsort label-67
SELECT - MAX ( 40 ) AS col1 FROM tab0 AS cor0
----
-40

query II rowsort
SELECT ALL + col2 * col2, col1 FROM tab1
----
3481
5
4624
47
9216
14

query I rowsort
SELECT ALL ( - - 10 ) FROM tab2
----
10
10
10

onlyif mysql # DIV for integer division: 
query I rowsort label-70
SELECT DISTINCT 78 DIV + ( - col0 ) FROM tab0
----
-5
0

skipif mysql # not compatible
query I rowsort label-70
SELECT DISTINCT 78 / + ( - col0 ) FROM tab0
----
-5
0

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

query II rowsort
SELECT DISTINCT ( 27 ), - 47 AS col2 FROM tab2
----
27
-47

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

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

query I rowsort
SELECT ALL + col0 * - 71 AS col1 FROM tab2 AS cor0
----
-3266
-4544
-5325

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-78
SELECT DISTINCT - MIN( 87 ) FROM tab0
----
-87

skipif mysql # not compatible
query I rowsort label-78
SELECT DISTINCT - MIN ( 87 ) FROM tab0
----
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-79
SELECT ALL COUNT( - + 32 ) FROM tab1 AS cor0 WHERE - col1 BETWEEN + - CAST( - + 73 AS SIGNED ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-79
SELECT ALL COUNT ( - + 32 ) FROM tab1 AS cor0 WHERE - col1 BETWEEN + - CAST ( - + 73 AS INTEGER ) AND NULL
----
0

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-80
SELECT ALL - - ( - + COUNT ( DISTINCT col2 ) ) col0, + 72 FROM tab0 AS cor0
----
-3
72

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

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

query I rowsort
SELECT DISTINCT + 21 + 9 FROM tab2 AS cor0
----
30

query I rowsort
SELECT ALL col0 FROM tab1 AS cor0 WHERE NULL = col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-84
SELECT + - MIN( - 52 ) * 21 col0 FROM tab1 WHERE NULL < NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-84
SELECT + - MIN ( - 52 ) * 21 col0 FROM tab1 WHERE NULL < NULL
----
NULL

query I rowsort
SELECT ALL + ( + - col0 ) FROM tab0 WHERE NOT + col0 IS NULL
----
-15
-87
-97

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

onlyif mysql # aggregate syntax: 
query I rowsort label-87
SELECT COUNT( * ) + + 68 AS col1 FROM tab1
----
71

skipif mysql # not compatible
query I rowsort label-87
SELECT COUNT ( * ) + + 68 AS col1 FROM tab1
----
71

query I rowsort
SELECT DISTINCT - 72 * + col1 FROM tab2
----
-3672
-4824
-5544

query I rowsort
SELECT ALL - ( - col0 ) * - + ( 73 ) + - ( + - col0 ) - - 53 AS col0 FROM tab1
----
-3619
-6067
-6499

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

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

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-96
SELECT 75 AS col2, + COUNT( * ) FROM tab1 cor0
----
75
3

skipif mysql # not compatible
query II rowsort label-96
SELECT 75 AS col2, + COUNT ( * ) FROM tab1 cor0
----
75
3

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN 82 AND - ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-98
SELECT MIN( ALL - - 52 ) FROM tab2
----
52

skipif mysql # not compatible
query I rowsort label-98
SELECT MIN ( ALL - - 52 ) FROM tab2
----
52

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

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab0 AS cor0 WHERE NOT - col1 * - col0 IS NULL
----
-1
-21
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-101
SELECT ( - 58 ) DIV 29 * - col1 AS col2 FROM tab1 AS cor0
----
10
28
94

skipif mysql # not compatible
query I rowsort label-101
SELECT ( - 58 ) / 29 * - col1 AS col2 FROM tab1 AS cor0
----
10
28
94

query I rowsort
SELECT 76 FROM tab2 AS cor0 WHERE NOT NULL <= col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-103
SELECT COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT col2 NOT BETWEEN + col2 + + - col1 AND + col0
----
2

skipif mysql # not compatible
query I rowsort label-103
SELECT COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT col2 NOT BETWEEN + col2 + + - col1 AND + col0
----
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - ( + + col2 ) col2, 43 * + col1 AS col0 FROM tab0 AS cor0
----
-10
903
-47
3483
-99
43

onlyif mysql # DIV for integer division: 
query I rowsort label-105
SELECT col1 DIV + col2 - col2 + - 78 FROM tab1 AS cor0
----
-137
-146
-174

skipif mysql # not compatible
query I rowsort label-105
SELECT col1 / + col2 - col2 + - 78 FROM tab1 AS cor0
----
-137
-146
-174

query I rowsort
SELECT DISTINCT - + 58 + + col0 AS col0 FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
-7
27
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-107
SELECT ALL - + 10 * col0 AS col1 FROM tab1 WHERE + CAST( - 89 AS SIGNED ) <> + col1
----
-510
-850
-910

skipif mysql # not compatible
query I rowsort label-107
SELECT ALL - + 10 * col0 AS col1 FROM tab1 WHERE + CAST ( - 89 AS INTEGER ) <> + col1
----
-510
-850
-910

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-109
SELECT + ( - MAX( DISTINCT - col1 ) ) FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-109
SELECT + ( - MAX ( DISTINCT - col1 ) ) FROM tab2
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-110
SELECT ALL + col1 * col2 + + 93 AS col0 FROM tab2 WHERE NULL > + CAST( NULL AS SIGNED ) * + col2
----

skipif mysql # not compatible
query I rowsort label-110
SELECT ALL + col1 * col2 + + 93 AS col0 FROM tab2 WHERE NULL > + CAST ( NULL AS INTEGER ) * + col2
----

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

query II rowsort
SELECT + col0 + + col0 AS col0, col1 FROM tab2
----
128
77
150
67
92
51

query II rowsort
SELECT 48 + - col2, - 9 AS col1 FROM tab1
----
-11
-9
-20
-9
-48
-9

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 64 + - col2 col1 FROM tab0
----
-35
17
54

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

query III rowsort
SELECT ALL * FROM tab0 WHERE - 94 <> - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

query II rowsort
SELECT + col0 * 61, 33 AS col0 FROM tab0 AS cor0
----
5307
33
5917
33
915
33

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-121
SELECT ALL + col1 * + 46 + - col1 + CAST( NULL AS SIGNED ) AS col1, col0 FROM tab0 cor0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-121
SELECT ALL + col1 * + 46 + - col1 + CAST ( NULL AS INTEGER ) AS col1, col0 FROM tab0 cor0
----
NULL
15
NULL
87
NULL
97

query I rowsort
SELECT col2 * ( + col1 ) * - col1 + + - col2 AS col1 FROM tab1 AS cor0
----
-150280
-1534
-18912

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

query I rowsort
SELECT DISTINCT + col2 * + - col1 - - col1 AS col1 FROM tab2 AS cor0
----
-1122
-3003
-3819

query I rowsort
SELECT + 33 * - col1 - 1 AS col0 FROM tab1
----
-1552
-166
-463

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

skipif mysql # not compatible
query I rowsort label-126
SELECT - 80 + + ( + MIN ( DISTINCT + col1 ) ) FROM tab0
----
-79

query I rowsort
SELECT + col0 + - 85 FROM tab1
----
-34
0
6

onlyif mysql # aggregate syntax: 
query I rowsort label-128
SELECT - 91 * - + COUNT( DISTINCT - col2 ) * - 57 + + + 41 AS col0 FROM tab1
----
-15520

skipif mysql # not compatible
query I rowsort label-128
SELECT - 91 * - + COUNT ( DISTINCT - col2 ) * - 57 + + + 41 AS col0 FROM tab1
----
-15520

query I rowsort
SELECT DISTINCT - ( - 34 ) AS col1 FROM tab2
----
34

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

query I rowsort
SELECT - - 88 + col0 - + + ( - ( - ( - + col0 ) ) ) AS col1 FROM tab2 AS cor0 WHERE NULL BETWEEN col0 AND 93
----

query I rowsort
SELECT 98 * - col1 + + col0 * col1 AS col1 FROM tab0 AS cor0
----
-1
-231
-6723

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

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

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

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 66 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-136
SELECT * FROM tab1 AS cor0 WHERE NOT 62 NOT BETWEEN 57 + col1 * - col0 / - ( - col0 ) * + - CAST( NULL AS SIGNED ) AND + col0
----

skipif mysql # not compatible
query III rowsort label-136
SELECT * FROM tab1 AS cor0 WHERE NOT 62 NOT BETWEEN 57 + col1 * - col0 / - ( - col0 ) * + - CAST ( NULL AS INTEGER ) AND + col0
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-137
SELECT - - CAST( NULL AS SIGNED ) DIV + col0, - col2 + + 64 DIV - col1 AS col2 FROM tab1 AS cor0
----
NULL
-100
NULL
-69
NULL
-71

skipif mysql # not compatible
query II rowsort label-137
SELECT - - CAST ( NULL AS INTEGER ) / + col0, - col2 + + 64 / - col1 AS col2 FROM tab1 AS cor0
----
NULL
-100
NULL
-69
NULL
-71

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

query II rowsort
SELECT + 83, 10 + - - 15 AS col1 FROM tab0 AS cor0
----
83
25
83
25
83
25

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

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

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

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

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

query I rowsort
SELECT ALL + col0 * + - col1 FROM tab1 AS cor0
----
-425
-4277
-714

query I rowsort
SELECT + 81 * + col2 FROM tab1 AS cor0
----
4779
5508
7776

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-146
SELECT + 51 DIV CAST( + 66 AS SIGNED ) AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-146
SELECT + 51 / CAST ( + 66 AS INTEGER ) AS col2 FROM tab0
----
0
0
0

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

query I rowsort
SELECT - + col0 FROM tab2 WHERE NOT - + ( 50 ) * - col1 + + 67 IS NOT NULL
----

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

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

query I rowsort
SELECT ALL ( 40 ) FROM tab1
----
40
40
40

query I rowsort
SELECT - ( 7 ) * + col0 FROM tab1
----
-357
-595
-637

query II rowsort
SELECT ALL - 21 * + col0 AS col1, 43 + + col0 - col1 + - col0 AS col0 FROM tab2
----
-1344
-34
-1575
-24
-966
-8

query I rowsort
SELECT DISTINCT col1 + - + col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-8
13
5

onlyif mysql # aggregate syntax: 
query I rowsort label-154
SELECT ALL - COUNT( * ) * - 72 FROM tab1 AS cor0
----
216

skipif mysql # not compatible
query I rowsort label-154
SELECT ALL - COUNT ( * ) * - 72 FROM tab1 AS cor0
----
216

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-156
SELECT DISTINCT + col2 DIV - - 42 + col2 AS col2 FROM tab1 AS cor0
----
60
69
98

skipif mysql # not compatible
query I rowsort label-156
SELECT DISTINCT + col2 / - - 42 + col2 AS col2 FROM tab1 AS cor0
----
60
69
98

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 65 IS NOT NULL
----

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

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

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

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

skipif mysql # not compatible
query I rowsort label-160
SELECT col2 / - + col1 AS col1 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-161
SELECT 66 + - COUNT( * ) FROM tab2
----
63

skipif mysql # not compatible
query I rowsort label-161
SELECT 66 + - COUNT ( * ) FROM tab2
----
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * 1 + - 79 col2 FROM tab0 AS cor0
----
-64
18
8

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

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

query I rowsort
SELECT - - col1 + - 34 AS col0 FROM tab2 AS cor0
----
17
33
43

query I rowsort
SELECT ALL + 81 + col1 AS col1 FROM tab2 AS cor0
----
132
148
158

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

skipif mysql # not compatible
query I rowsort label-167
SELECT + 91 + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
94

query I rowsort
SELECT ALL + + col1 + + + 4 FROM tab2 AS cor0
----
55
71
81

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 - + 74 + - - col1 col1, 21 AS col1 FROM tab1 AS cor0
----
-10
21
36
21
41
21

query I rowsort
SELECT - + 12 + - col1 AS col0 FROM tab0 AS cor0
----
-13
-33
-93

onlyif mysql # DIV for integer division: 
query I rowsort label-172
SELECT - - col0 + - - col2 - + 67 DIV - 6 AS col2 FROM tab0 AS cor0
----
108
207
73

skipif mysql # not compatible
query I rowsort label-172
SELECT - - col0 + - - col2 - + 67 / - 6 AS col2 FROM tab0 AS cor0
----
108
207
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-173
SELECT + + CAST( - col0 AS SIGNED ) FROM tab2 WHERE CAST( + 55 AS SIGNED ) + col2 <= - + col2
----

skipif mysql # not compatible
query I rowsort label-173
SELECT + + CAST ( - col0 AS INTEGER ) FROM tab2 WHERE CAST ( + 55 AS INTEGER ) + col2 <= - + col2
----

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

query I rowsort
SELECT ALL + 21 + - + 61 FROM tab2
----
-40
-40
-40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + ( 28 ) * + ( + - col1 ) col2 FROM tab1
----
-37632
-8260
-89488

query I rowsort
SELECT - col1 - - + 23 AS col0 FROM tab2
----
-28
-44
-54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - col1 col0 FROM tab1
----
-138
-65
-90

query I rowsort
SELECT DISTINCT - 22 + + col1 + 90 AS col0 FROM tab1 AS cor0
----
115
73
82

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-181
SELECT + MAX( + - col1 ) FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-181
SELECT + MAX ( + - col1 ) FROM tab1
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-182
SELECT ALL 9 * + SUM( DISTINCT - col1 ) FROM tab0
----
-927

skipif mysql # not compatible
query I rowsort label-182
SELECT ALL 9 * + SUM ( DISTINCT - col1 ) FROM tab0
----
-927

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-183
SELECT CAST( NULL AS SIGNED ) col0, - col1 DIV + - col1 FROM tab0
----
NULL
1
NULL
1
NULL
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-183
SELECT CAST ( NULL AS INTEGER ) col0, - col1 / + - col1 FROM tab0
----
NULL
1
NULL
1
NULL
1

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) <= NULL
----

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT + 96 IS NOT NULL
----

query II rowsort
SELECT DISTINCT - col1, ( - 94 ) AS col1 FROM tab1 cor0
----
-14
-94
-47
-94
-5
-94

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col1, + ( + + 80 ) + - col1 AS col0 FROM tab2
----
51
29
67
13
77
3

onlyif mysql # aggregate syntax: 
query I rowsort label-190
SELECT DISTINCT MAX( + col1 ) col0 FROM tab1
----
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-190
SELECT DISTINCT MAX ( + col1 ) col0 FROM tab1
----
47

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

query I rowsort
SELECT 33 * - - ( col2 ) FROM tab0
----
1551
3267
330

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-193
SELECT * FROM tab2 WHERE NOT - col0 + col1 + col2 * - - col0 / - CAST( col2 AS DECIMAL ) * - - col1 + - 12 NOT BETWEEN NULL AND - - col2
----

skipif mysql # not compatible
query III rowsort label-193
SELECT * FROM tab2 WHERE NOT - col0 + col1 + col2 * - - col0 / - CAST ( col2 AS REAL ) * - - col1 + - 12 NOT BETWEEN NULL AND - - col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 > - 80
----

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

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

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

query I rowsort
SELECT ALL + 38 + + col2 + + col0 * - col1 AS col2 FROM tab2
----
-2285
-4850
-4929

query I rowsort
SELECT DISTINCT + 64 + + col2 * + 59 * 2 AS col0 FROM tab1 AS cor0
----
11392
7026
8088

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

query I rowsort
SELECT ( - col0 ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
-46
-64
-75

query I rowsort
SELECT ALL + col2 * - + col0 AS col2 FROM tab1 AS cor0
----
-4896
-5015
-6188

query I rowsort
SELECT - ( + col1 ) * - - col0 - 24 + 7 AS col1 FROM tab2 AS cor0
----
-2363
-4945
-5042

query I rowsort
SELECT + - col1 * col0 - - - 24 * - ( col0 ) AS col1 FROM tab0 AS cor0
----
-855
2231
261

query II rowsort
SELECT + col2 - - col2 AS col1, col1 + - col0 FROM tab1 cor0
----
118
-80
136
-44
192
-37

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

query I rowsort
SELECT DISTINCT + 87 * 37 * + 67 FROM tab0
----
215673

query I rowsort
SELECT DISTINCT col2 - + 7 AS col0 FROM tab1
----
52
61
89

query I rowsort
SELECT col1 + + 97 FROM tab1
----
102
111
144

query I rowsort
SELECT 24 + - 72 FROM tab0
----
-48
-48
-48

query I rowsort
SELECT ALL + col2 * + - 83 FROM tab2
----
-1909
-3320
-4814

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

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

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 62 / + col1 BETWEEN - col0 AND + + col1 * - 24
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

onlyif mysql # aggregate syntax: 
query I rowsort label-216
SELECT ALL - + COUNT( * ) AS col2 FROM tab2 WHERE NULL NOT BETWEEN col0 AND 90
----
0

skipif mysql # not compatible
query I rowsort label-216
SELECT ALL - + COUNT ( * ) AS col2 FROM tab2 WHERE NULL NOT BETWEEN col0 AND 90
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-217
SELECT ALL 93 DIV + + col1 AS col2 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-217
SELECT ALL 93 / + + col1 AS col2 FROM tab2
----
1
1
1

onlyif mysql # aggregate syntax: 
query II rowsort label-218
SELECT - - COUNT( ALL - col1 ) AS col2, - 49 * - 81 FROM tab2 AS cor0
----
3
3969

skipif mysql # not compatible
query II rowsort label-218
SELECT - - COUNT ( ALL - col1 ) AS col2, - 49 * - 81 FROM tab2 AS cor0
----
3
3969

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-221
SELECT MAX( DISTINCT + col1 ) DIV - SUM( - col2 ) * - 86 AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-221
SELECT MAX ( DISTINCT + col1 ) / - SUM ( - col2 ) * - 86 AS col0 FROM tab2 AS cor0
----
0

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-225
SELECT 49 * - 31 + - COUNT( * ) FROM tab2 AS cor0
----
-1522

skipif mysql # not compatible
query I rowsort label-225
SELECT 49 * - 31 + - COUNT ( * ) FROM tab2 AS cor0
----
-1522

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

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

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

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

query I rowsort
SELECT col0 + 86 * - - 11 FROM tab0 AS cor0
----
1033
1043
961

query I rowsort
SELECT DISTINCT 0 * col2 * col0 * + 49 FROM tab1 WHERE col0 + + - col1 BETWEEN + - 84 * col1 AND - col0
----

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

skipif mysql # not compatible
query I rowsort label-230
SELECT - 19 AS col2 FROM tab0 WHERE NOT + - col2 + col2 < + + CAST ( NULL AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 39 * col0 + - - col0 col1, col1 FROM tab0
----
-3306
21
-3686
1
-570
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + - col2 * + 63 col0 FROM tab2
----
-1398
-2443
-3587

query I rowsort
SELECT DISTINCT + - 70 + + col1 + + col0 + + col2 AS col2 FROM tab1 AS cor0
----
136
79
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-234
SELECT - col2 + + ( - col1 ) AS col2 FROM tab2 AS cor0 WHERE 57 - + + col0 = - + CAST( - col2 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-234
SELECT - col2 + + ( - col1 ) AS col2 FROM tab2 AS cor0 WHERE 57 - + + col0 = - + CAST ( - col2 AS INTEGER )
----

query I rowsort
SELECT DISTINCT col1 + + col2 - - + 3 + + 11 - 87 AS col0 FROM tab2 WHERE NOT + - 89 * - col1 * + col2 IS NULL
----
1
44
52

query I rowsort
SELECT DISTINCT + + col2 * - col0 * + + 75 FROM tab1 WHERE NOT NULL >= + 56
----

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

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

query I rowsort
SELECT ALL col2 + + col2 AS col1 FROM tab0 WHERE NOT + col2 < NULL
----

query I rowsort
SELECT DISTINCT 47 + - col0 + + col1 FROM tab0 AS cor0
----
-19
-49
113

onlyif mysql # aggregate syntax: 
query I rowsort label-240
SELECT DISTINCT - COUNT( DISTINCT + col2 ) * - 68 - + - 48 AS col1 FROM tab1 AS cor0
----
252

skipif mysql # not compatible
query I rowsort label-240
SELECT DISTINCT - COUNT ( DISTINCT + col2 ) * - 68 - + - 48 AS col1 FROM tab1 AS cor0
----
252

query I rowsort
SELECT + ( - - col2 ) * - - 53 + - col0 FROM tab2 AS cor0
----
1173
2056
2999

onlyif mysql # aggregate syntax: 
query I rowsort label-242
SELECT SUM( - col0 ) AS col1 FROM tab0 AS cor0 WHERE 75 + - 33 >= col1
----
-184

skipif mysql # not compatible
query I rowsort label-242
SELECT SUM ( - col0 ) AS col1 FROM tab0 AS cor0 WHERE 75 + - 33 >= col1
----
-184

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

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

query I rowsort
SELECT DISTINCT + - 19 * + col2 - + - col2 AS col1 FROM tab2 AS cor0
----
-1044
-414
-720

query II rowsort
SELECT ALL col2 AS col0, - col1 FROM tab2 AS cor0 WHERE 22 NOT IN ( 68, 78 * 29 )
----
23
-51
40
-77
58
-67

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

onlyif mysql # DIV for integer division: 
query I rowsort label-247
SELECT + 16 DIV + col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-247
SELECT + 16 / + col0 FROM tab2
----
0
0
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-249
SELECT ALL - MAX( DISTINCT + + 69 ) FROM tab0
----
-69

skipif mysql # not compatible
query I rowsort label-249
SELECT ALL - MAX ( DISTINCT + + 69 ) FROM tab0
----
-69

query I rowsort
SELECT ALL - 9 FROM tab0 AS cor0 WHERE NOT 34 IS NULL
----
-9
-9
-9

query I rowsort
SELECT ALL - col1 * + 11 + ( + - col1 ) - + 48 + + - col2 AS col1 FROM tab2 cor0
----
-1012
-683
-910

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-253
SELECT ALL MIN( - + col2 ) AS col1 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-253
SELECT ALL MIN ( - + col2 ) AS col1 FROM tab0 AS cor0
----
-99

query I rowsort
SELECT - 77 AS col1 FROM tab2 AS cor0 WHERE NOT - col0 = NULL
----

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-257
SELECT ( - col0 ) DIV + 14 FROM tab1
----
-3
-6
-6

skipif mysql # not compatible
query I rowsort label-257
SELECT ( - col0 ) / + 14 FROM tab1
----
-3
-6
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-258
SELECT - 42 DIV - - col1 FROM tab0
----
-2
-42
0

skipif mysql # not compatible
query I rowsort label-258
SELECT - 42 / - - col1 FROM tab0
----
-2
-42
0

query I rowsort
SELECT DISTINCT 86 + - col2 * - col2 AS col1 FROM tab1
----
3567
4710
9302

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-263
SELECT ( + col2 ) * + col1 + - CAST( col2 AS SIGNED ) + - col0 * + col1 * + - 78 col2 FROM tab0
----
142706
7566
98530

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-263
SELECT ( + col2 ) * + col1 + - CAST ( col2 AS INTEGER ) + - col0 * + col1 * + - 78 col2 FROM tab0
----
142706
7566
98530

query II rowsort
SELECT DISTINCT + - 42, ( 94 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-42
94

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

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

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

query I rowsort
SELECT + col1 - - + 98 FROM tab2 AS cor0
----
149
165
175

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

skipif mysql # not compatible
query I rowsort label-269
SELECT ALL - 6 + + CAST ( NULL AS REAL ) * - 6 + + 37 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT ALL + - 65 * - col1 * - - 4 AS col2 FROM tab0 AS cor0
----
21060
260
5460

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-272
SELECT ALL - CAST( - col1 AS SIGNED ) * - 30 AS col1 FROM tab0 AS cor0
----
-2430
-30
-630

skipif mysql # not compatible
query I rowsort label-272
SELECT ALL - CAST ( - col1 AS INTEGER ) * - 30 AS col1 FROM tab0 AS cor0
----
-2430
-30
-630

onlyif mysql # aggregate syntax: 
query I rowsort label-273
SELECT DISTINCT + + MAX( ALL ( - col0 ) ) AS col2 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-273
SELECT DISTINCT + + MAX ( ALL ( - col0 ) ) AS col2 FROM tab2 AS cor0
----
-46

query III rowsort
SELECT col0, col2 + - 81 + col1 AS col0, - + col2 AS col0 FROM tab1
----
9 values hashing to d29ffed49ff69195898fbe3b9565e5bd

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-275
SELECT - 61 AS col0, - MIN( col1 ) DIV - COUNT( * ) FROM tab0
----
-61
0

skipif mysql # not compatible
query II rowsort label-275
SELECT - 61 AS col0, - MIN ( col1 ) / - COUNT ( * ) FROM tab0
----
-61
0

query I rowsort
SELECT + - col1 * + col2 - - col2 FROM tab1 WHERE NOT + 71 IS NULL
----
-1248
-236
-3128

onlyif mysql # DIV for integer division: 
query I rowsort label-277
SELECT DISTINCT - ( + - col1 ) DIV + 94 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-277
SELECT DISTINCT - ( + - col1 ) / + 94 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-278
SELECT * FROM tab2 WHERE NOT + col0 < + + col1 + 35 + + - CAST( NULL AS SIGNED ) + 81
----

skipif mysql # not compatible
query III rowsort label-278
SELECT * FROM tab2 WHERE NOT + col0 < + + col1 + 35 + + - CAST ( NULL AS INTEGER ) + 81
----

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-280
SELECT DISTINCT SUM ( DISTINCT - col0 ) col1 FROM tab1
----
-227

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 <= - col1 * - - col0
----

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

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

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

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

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

query I rowsort
SELECT + 75 AS col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 + + + col2 col1, - ( + 54 ) * + 38 + + col1 + - - col0 col2 FROM tab0
----
198
-1954
20
-1944
94
-1956

onlyif mysql # aggregate syntax: 
query I rowsort label-287
SELECT - 13 * - - 22 + - ( + COUNT( * ) ) FROM tab2 AS cor0
----
-289

skipif mysql # not compatible
query I rowsort label-287
SELECT - 13 * - - 22 + - ( + COUNT ( * ) ) FROM tab2 AS cor0
----
-289

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 col0 FROM tab2 AS cor0 WHERE - 20 * ( - - 85 ) = - col2 * - - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-289
SELECT + - 32 + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-35

skipif mysql # not compatible
query I rowsort label-289
SELECT + - 32 + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-35

onlyif mysql # aggregate syntax: 
query II rowsort label-290
SELECT COUNT( * ) AS col0, - ( - + 54 ) AS col2 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
3
54

skipif mysql # not compatible
query II rowsort label-290
SELECT COUNT ( * ) AS col0, - ( - + 54 ) AS col2 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
3
54

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-292
SELECT DISTINCT - 92 * - CAST( + CAST( NULL AS DECIMAL ) AS SIGNED ) / + + col2 - + - 49 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-292
SELECT DISTINCT - 92 * - CAST ( + CAST ( NULL AS REAL ) AS INTEGER ) / + + col2 - + - 49 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT 88 + 74 FROM tab2 AS cor0
----
162
162
162

onlyif mysql # DIV for integer division: 
query I rowsort label-294
SELECT ALL ( + + 37 ) DIV - col1 FROM tab0 AS cor0
----
-1
-37
0

skipif mysql # not compatible
query I rowsort label-294
SELECT ALL ( + + 37 ) / - col1 FROM tab0 AS cor0
----
-1
-37
0

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

query I rowsort
SELECT col2 + + 82 FROM tab2 AS cor0
----
105
122
140

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

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

query I rowsort
SELECT ALL + 32 + + col1 * + + 96 AS col1 FROM tab0
----
128
2048
7808

query I rowsort
SELECT + col2 FROM tab0 WHERE ( NOT NULL <> NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - col2 col0 FROM tab2
----
28
37
9

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

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

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

query I rowsort
SELECT DISTINCT - + col0 + - 90 * - col2 FROM tab2 AS cor0
----
2024
3536
5145

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 91 + 70 IS NULL
----

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab2 WHERE NULL <> NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-307
SELECT + COUNT( DISTINCT ( + col2 ) ) * + COUNT( * ) + - SUM( ALL 80 - + col1 ) col2 FROM tab1
----
-165

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-307
SELECT + COUNT ( DISTINCT ( + col2 ) ) * + COUNT ( * ) + - SUM ( ALL 80 - + col1 ) col2 FROM tab1
----
-165

onlyif mysql # aggregate syntax: 
query I rowsort label-308
SELECT DISTINCT + 74 + + MIN( ALL + col0 ) AS col2 FROM tab1
----
125

skipif mysql # not compatible
query I rowsort label-308
SELECT DISTINCT + 74 + + MIN ( ALL + col0 ) AS col2 FROM tab1
----
125

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 67 * - 42 col1 FROM tab0
----
-2814
-2814
-2814

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-314
SELECT DISTINCT SUM( col0 ) AS col0 FROM tab2 WHERE NOT ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-314
SELECT DISTINCT SUM ( col0 ) AS col0 FROM tab2 WHERE NOT ( NULL ) IS NULL
----
NULL

query I rowsort
SELECT col2 + + 83 AS col1 FROM tab1
----
142
151
179

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( col1 ) <= NULL
----

query I rowsort
SELECT 46 AS col0 FROM tab1 WHERE NOT - col2 * col2 >= ( NULL )
----

query I rowsort
SELECT + col1 - 1 FROM tab1
----
13
4
46

query I rowsort
SELECT col0 - + col1 * col1 FROM tab1
----
-145
-2118
60

query I rowsort
SELECT + col1 + - 44 * - col0 AS col2 FROM tab1
----
2258
3745
4051

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

query III rowsort
SELECT ALL * FROM tab0 WHERE ( + col1 ) * col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-323
SELECT * FROM tab1 WHERE ( NULL ) IN ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-323
SELECT * FROM tab1 WHERE ( NULL ) IN ( CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT - ( ( col1 ) ) - - col1 AS col2 FROM tab0 WHERE ( col0 + + 83 ) BETWEEN NULL AND ( 75 )
----

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

query I rowsort
SELECT col0 * col1 + - col2 AS col0 FROM tab0
----
-2
1168
1817

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

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

query I rowsort
SELECT + col1 - + col0 * + col2 AS col0 FROM tab2
----
-1007
-2483
-4283

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

query I rowsort
SELECT ALL - col0 FROM tab0 WHERE NOT col2 / col0 >= NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-333
SELECT SUM( ALL 85 ) FROM tab2 AS cor0
----
255

skipif mysql # not compatible
query I rowsort label-333
SELECT SUM ( ALL 85 ) FROM tab2 AS cor0
----
255

query I rowsort
SELECT 34 * 79 AS col2 FROM tab1 AS cor0
----
2686
2686
2686

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-337
SELECT ( COUNT( * ) ) AS col1 FROM tab1 WHERE NOT col2 BETWEEN ( + 99 * col1 ) AND ( 75 + - col1 )
----
3

skipif mysql # not compatible
query I rowsort label-337
SELECT ( COUNT ( * ) ) AS col1 FROM tab1 WHERE NOT col2 BETWEEN ( + 99 * col1 ) AND ( 75 + - col1 )
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-338
SELECT ALL - 5 DIV + COUNT( * ) + + COUNT( * ) * 87 FROM tab1 AS cor0
----
260

skipif mysql # not compatible
query I rowsort label-338
SELECT ALL - 5 / + COUNT ( * ) + + COUNT ( * ) * 87 FROM tab1 AS cor0
----
260

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( 88 ) < + ( 34 )
----

query I rowsort
SELECT DISTINCT + 98 / col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) > 74
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-344
SELECT - - MIN( DISTINCT col0 ) * + COUNT( * ) AS col2 FROM tab0 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-344
SELECT - - MIN ( DISTINCT col0 ) * + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
45

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

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

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

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

query I rowsort
SELECT DISTINCT 10 * 1 AS col0 FROM tab2 WHERE NOT col0 IS NULL
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-349
SELECT + COUNT( * ) * - ( COUNT( * ) ) FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-349
SELECT + COUNT ( * ) * - ( COUNT ( * ) ) FROM tab1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-350
SELECT 85 - - - COUNT( * ) + + 70 AS col0 FROM tab2
----
152

skipif mysql # not compatible
query I rowsort label-350
SELECT 85 - - - COUNT ( * ) + + 70 AS col0 FROM tab2
----
152

query I rowsort
SELECT ALL col2 + + + 43 FROM tab1
----
102
111
139

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

skipif mysql # not compatible
query I rowsort label-352
SELECT 77 / - - CAST ( NULL AS INTEGER ) - + 90 * ( + col1 ) AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 + 80 * col2 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT col2 + - + col2 * 44 FROM tab0
----
-2021
-4257
-430

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 90 IN ( - col0 - 83 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col0 * col0 FROM tab0 WHERE col0 * + col1 + - col1 * + 4 > NULL
----

query I rowsort
SELECT - 96 + - col2 * 69 AS col2 FROM tab2
----
-1683
-2856
-4098

query I rowsort
SELECT + col0 + + 25 AS col1 FROM tab1
----
110
116
76

query I rowsort
SELECT col0 + + col1 FROM tab2 WHERE 58 * col0 NOT BETWEEN ( NULL ) AND ( + col0 )
----
141
142
97

query I rowsort
SELECT ( col0 ) + 63 FROM tab0
----
150
160
78

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

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

query III rowsort
SELECT * FROM tab0 WHERE + ( - 13 ) * 34 + 2 * + 49 = + 82 + ( col1 ) * + col2
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-364
SELECT DISTINCT + 21 * - + 5 + + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-364
SELECT DISTINCT + 21 * - + 5 + + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT ALL - col1 - - + 29 + col0 * + ( - col1 - + 69 * 85 ) FROM tab1 AS cor0
----
-299814
-498926
-538010

query I rowsort
SELECT - - col0 * 61 + col2 * + col0 AS col0 FROM tab1 AS cor0
----
10200
11739
8007

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-371
SELECT - SUM( 54 ) FROM tab2 cor0
----
-162

skipif mysql # not compatible
query I rowsort label-371
SELECT - SUM ( 54 ) FROM tab2 cor0
----
-162

onlyif mysql # aggregate syntax: 
query I rowsort label-372
SELECT ALL + SUM( - - 85 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
255

skipif mysql # not compatible
query I rowsort label-372
SELECT ALL + SUM ( - - 85 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
255

query I rowsort
SELECT DISTINCT - - 70 AS col2 FROM tab0 AS cor0
----
70

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

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

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

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

query I rowsort
SELECT ALL + ( - col1 ) FROM tab2 WHERE + - 84 + + col2 IN ( col1 + col2 / + col2 )
----

query I rowsort
SELECT 96 * col1 AS col2 FROM tab1 WHERE NOT + + 11 < ( + col1 / - col2 )
----
1344
4512
480

onlyif mysql # aggregate syntax: 
query I rowsort label-379
SELECT DISTINCT - COUNT( col2 ) FROM tab2 WHERE NULL BETWEEN NULL AND ( - + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-379
SELECT DISTINCT - COUNT ( col2 ) FROM tab2 WHERE NULL BETWEEN NULL AND ( - + col0 )
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT + - 98 >= + + 59 + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-381
SELECT ALL ( - + MAX( DISTINCT - - 26 ) ) col1 FROM tab1
----
-26

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-381
SELECT ALL ( - + MAX ( DISTINCT - - 26 ) ) col1 FROM tab1
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-382
SELECT CAST( + + col2 AS SIGNED ) AS col2, + col1 col2 FROM tab2
----
23
51
40
77
58
67

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-382
SELECT CAST ( + + col2 AS INTEGER ) AS col2, + col1 col2 FROM tab2
----
23
51
40
77
58
67

onlyif mysql # aggregate syntax: 
query I rowsort label-383
SELECT ALL 72 * 74 * SUM( + 70 ) FROM tab1
----
1118880

skipif mysql # not compatible
query I rowsort label-383
SELECT ALL 72 * 74 * SUM ( + 70 ) FROM tab1
----
1118880

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - 74 + col1 * - - 69 * col2 + + col2 ) IN ( col0 + 55 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

query I rowsort
SELECT 13 * col1 + 64 AS col0 FROM tab1 AS cor0 WHERE NOT ( - col0 IS NOT NULL )
----

query I rowsort
SELECT - 78 FROM tab2 cor0 WHERE NOT ( NOT col2 * 73 IS NOT NULL )
----
-78
-78
-78

query I rowsort
SELECT col1 * + 75 AS col1 FROM tab0 AS cor0
----
1575
6075
75

query I rowsort
SELECT ALL col0 * 96 FROM tab2
----
4416
6144
7200

query I rowsort
SELECT 53 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to fede6033dee346dbd272085c05724fda

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

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

query I rowsort
SELECT DISTINCT + + col1 + + - 24 FROM tab2 AS cor0
----
27
43
53

query I rowsort
SELECT + 58 + + 62 AS col2 FROM tab1 AS cor0
----
120
120
120

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-396
SELECT + 13 * - CAST( - ( + col0 ) AS SIGNED ), col0 FROM tab2
----
598
46
832
64
975
75

skipif mysql # not compatible
query II rowsort label-396
SELECT + 13 * - CAST ( - ( + col0 ) AS INTEGER ), col0 FROM tab2
----
598
46
832
64
975
75

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NOT 4 > col0 )
----

query I rowsort
SELECT DISTINCT + col2 * - 2 FROM tab2
----
-116
-46
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-399
SELECT ALL - col1 DIV + + col2 * - 22 col2 FROM tab1
----
0
0
0

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

query II rowsort
SELECT + 97 * + - col0, - col0 + + - col0 + col2 AS col0 FROM tab2
----
-4462
-69
-6208
-88
-7275
-92

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

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

query I rowsort
SELECT DISTINCT - 54 + + col2 FROM tab0
----
-44
-7
45

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT + col2 = - 95 + - + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

query I rowsort
SELECT DISTINCT - 27 * col1 * 7 FROM tab0
----
-15309
-189
-3969

query I rowsort
SELECT + col0 * - 12 AS col1 FROM tab2
----
-552
-768
-900

onlyif mysql # DIV for integer division: 
query II rowsort label-408
SELECT col2 DIV + col2, col1 FROM tab1
----
1
14
1
47
1
5

skipif mysql # not compatible
query II rowsort label-408
SELECT col2 / + col2, col1 FROM tab1
----
1
14
1
47
1
5

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

skipif mysql # not compatible
query I rowsort label-409
SELECT DISTINCT + SUM ( DISTINCT + 84 ) FROM tab1
----
84

query I rowsort
SELECT - col0 * + 0 AS col1 FROM tab0 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-411
SELECT - - 68 * - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-204

skipif mysql # not compatible
query I rowsort label-411
SELECT - - 68 * - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-204

query I rowsort
SELECT - - ( - - col2 ) AS col1 FROM tab0 AS cor0
----
10
47
99

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

skipif mysql # not compatible
query I rowsort label-413
SELECT ALL + COUNT ( * ) + COUNT ( * ) FROM tab0 cor0 WHERE NOT NULL > ( NULL )
----
0

query II rowsort
SELECT + col1 * + 11, + 67 AS col1 FROM tab1 AS cor0
----
154
67
517
67
55
67

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-420
SELECT CAST( NULL AS SIGNED ) AS col2, - CAST( - + 45 AS SIGNED ) * - ( + col1 ) + col2 * - + col0 * + ( - col0 ) + - col0 AS col2 FROM tab0
----
NULL
6915
NULL
74658
NULL
931349

skipif mysql # not compatible
query II rowsort label-420
SELECT CAST ( NULL AS INTEGER ) AS col2, - CAST ( - + 45 AS INTEGER ) * - ( + col1 ) + col2 * - + col0 * + ( - col0 ) + - col0 AS col2 FROM tab0
----
NULL
6915
NULL
74658
NULL
931349

onlyif mysql # aggregate syntax: 
query I rowsort label-421
SELECT SUM( ALL + 16 ) * - 90 FROM tab0
----
-4320

skipif mysql # not compatible
query I rowsort label-421
SELECT SUM ( ALL + 16 ) * - 90 FROM tab0
----
-4320

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

onlyif mysql # DIV for integer division: 
query I rowsort label-423
SELECT DISTINCT ( + col0 ) + + + 81 DIV + col2 AS col2 FROM tab0
----
16
95
97

skipif mysql # not compatible
query I rowsort label-423
SELECT DISTINCT ( + col0 ) + + + 81 / + col2 AS col2 FROM tab0
----
16
95
97

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

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

query I rowsort
SELECT + col0 + col1 FROM tab1 AS cor0 WHERE + col1 * + 63 IN ( - + col2 * - - col2 + - col1 ) AND NOT 8 + - col2 BETWEEN NULL AND + 40 / + col0 + 43
----

onlyif mysql # DIV for integer division: 
query I rowsort label-426
SELECT - col1 DIV col2 + - col0 AS col2 FROM tab2 AS cor0
----
-48
-65
-76

skipif mysql # not compatible
query I rowsort label-426
SELECT - col1 / col2 + - col0 AS col2 FROM tab2 AS cor0
----
-48
-65
-76

query II rowsort
SELECT DISTINCT - 70 - - col1, - col1 AS col1 FROM tab1 cor0
----
-23
-47
-56
-14
-65
-5

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-428
SELECT ALL + col0 col2 FROM tab1 AS cor0 WHERE NOT + col2 * + col1 + - + ( 4 ) * + CAST ( NULL AS INTEGER ) IN ( - col1 + + col2 + 56 + col0 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + 7 * 75 ) > ( NULL )
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 - - 50 AS col2, col2 col2 FROM tab2 AS cor0
----
101
23
117
58
127
40

query I rowsort
SELECT - + ( + - 44 ) - col2 FROM tab1 AS cor0
----
-15
-24
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-433
SELECT ALL - - 84 FROM tab2 cor0 WHERE NOT NULL NOT IN ( + CAST( NULL AS SIGNED ), + col2, + + col2, - 88 )
----

skipif mysql # not compatible
query I rowsort label-433
SELECT ALL - - 84 FROM tab2 cor0 WHERE NOT NULL NOT IN ( + CAST ( NULL AS INTEGER ), + col2, + + col2, - 88 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-434
SELECT ALL + 97 - + 59, - col1 DIV ( col2 ) + 85 col0 FROM tab0 AS cor0
----
38
83
38
84
38
85

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-434
SELECT ALL + 97 - + 59, - col1 / ( col2 ) + 85 col0 FROM tab0 AS cor0
----
38
83
38
84
38
85

query I rowsort
SELECT DISTINCT - col0 - + col0 + col2 AS col0 FROM tab2
----
-69
-88
-92

query I rowsort
SELECT ALL col1 * + 20 * + - 86 AS col2 FROM tab2
----
-115240
-132440
-87720

onlyif mysql # aggregate syntax: 
query I rowsort label-437
SELECT + COUNT( * ) + + 88 AS col0 FROM tab0
----
91

skipif mysql # not compatible
query I rowsort label-437
SELECT + COUNT ( * ) + + 88 AS col0 FROM tab0
----
91

query I rowsort
SELECT 15 + + + col2 AS col1 FROM tab2
----
38
55
73

query I rowsort
SELECT DISTINCT - col0 * + 48 AS col0 FROM tab1
----
-2448
-4080
-4368

query I rowsort
SELECT col2 + + - 73 AS col1 FROM tab2
----
-15
-33
-50

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-442
SELECT DISTINCT + 80 * - + COUNT( ALL 6 ) + 26 AS col1 FROM tab2
----
-214

skipif mysql # not compatible
query I rowsort label-442
SELECT DISTINCT + 80 * - + COUNT ( ALL 6 ) + 26 AS col1 FROM tab2
----
-214

onlyif mysql # aggregate syntax: 
query I rowsort label-443
SELECT DISTINCT - + 44 - - COUNT( * ) + 68 FROM tab2 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-443
SELECT DISTINCT - + 44 - - COUNT ( * ) + 68 FROM tab2 AS cor0
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-444
SELECT ALL - ( + + col2 ) * - + col2 + col0 + - - 14 DIV - col2 AS col1 FROM tab2 AS cor0
----
1664
3439
575

skipif mysql # not compatible
query I rowsort label-444
SELECT ALL - ( + + col2 ) * - + col2 + col0 + - - 14 / - col2 AS col1 FROM tab2 AS cor0
----
1664
3439
575

onlyif mysql # aggregate syntax: 
query I rowsort label-445
SELECT SUM( + + 6 ) FROM tab0 cor0
----
18

skipif mysql # not compatible
query I rowsort label-445
SELECT SUM ( + + 6 ) FROM tab0 cor0
----
18

query II rowsort
SELECT ALL - + 5 * - + 20 + - col0, + 32 * + - col2 AS col2 FROM tab0 WHERE NOT + col1 NOT BETWEEN NULL AND + col1
----

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

query I rowsort
SELECT + col2 * + - 29 - + col1 - - - col0 FROM tab1 AS cor0
----
-1801
-2110
-2849

query I rowsort
SELECT DISTINCT - + 10 * 10 FROM tab2 AS cor0
----
-100

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

query I rowsort
SELECT + - 38 * + - col2 AS col2 FROM tab2 AS cor0
----
1520
2204
874

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-452
SELECT * FROM tab0 AS cor0 WHERE NOT col2 / col1 BETWEEN + col1 AND col0 + - - ( - CAST( col0 AS SIGNED ) ) / + 22
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-452
SELECT * FROM tab0 AS cor0 WHERE NOT col2 / col1 BETWEEN + col1 AND col0 + - - ( - CAST ( col0 AS INTEGER ) ) / + 22
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

query I rowsort
SELECT DISTINCT + + 23 AS col0 FROM tab2 WHERE NULL IS NULL
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-456
SELECT - + MAX( 2 ) * + COUNT( DISTINCT - 48 ) AS col2 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-456
SELECT - + MAX ( 2 ) * + COUNT ( DISTINCT - 48 ) AS col2 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

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

query I rowsort
SELECT ALL col1 + + 12 FROM tab1
----
17
26
59

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-460
SELECT ALL + 3 DIV 64 col0, COUNT( * ) FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
0
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-460
SELECT ALL + 3 / 64 col0, COUNT ( * ) FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
0
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + ( + + 25 ) col1 FROM tab2
----
-15
-33
2

query I rowsort
SELECT - 84 + + - col2 AS col2 FROM tab1
----
-143
-152
-180

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 67 * col0 - col0, 75 col1 FROM tab2 AS cor0
----
3036
75
4224
75
4950
75

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

query I rowsort
SELECT - 27 AS col1 FROM tab0 AS cor0 WHERE 74 <= NULL
----

query I rowsort
SELECT DISTINCT + + col2 - - 67 FROM tab1 AS cor0
----
126
135
163

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

query I rowsort
SELECT ALL 86 - + - col2 FROM tab0
----
133
185
96

query II rowsort
SELECT ALL 14 + - col0 AS col2, - 81 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-32
-81
-50
-81
-61
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-470
SELECT 53 * - COUNT( * ) FROM tab0
----
-159

skipif mysql # not compatible
query I rowsort label-470
SELECT 53 * - COUNT ( * ) FROM tab0
----
-159

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

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

query I rowsort
SELECT + ( + 30 ) AS col0 FROM tab0 AS cor0 WHERE NOT ( - - 24 ) IS NULL
----
30
30
30

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

query I rowsort
SELECT ALL - 0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT ALL + 25 * - col1 FROM tab2 AS cor0
----
-1275
-1675
-1925

onlyif mysql # DIV for integer division: 
query I rowsort label-477
SELECT ALL 76 DIV 1 AS col2 FROM tab1 cor0
----
76
76
76

skipif mysql # not compatible
query I rowsort label-477
SELECT ALL 76 / 1 AS col2 FROM tab1 cor0
----
76
76
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col1, 49 - - col2 AS col0 FROM tab2
----
46
72
64
89
75
107

query I rowsort
SELECT col0 * + 60 * 97 FROM tab0
----
506340
564540
87300

query II rowsort
SELECT - 31, + col0 FROM tab2
----
-31
46
-31
64
-31
75

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

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

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

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

query I rowsort
SELECT - ( - col0 ) / - col0 * + - col0 FROM tab1 cor0 WHERE NULL >= ( col2 ) / - 29 + col0 * col0
----

query II rowsort
SELECT DISTINCT - - 25, 69 AS col0 FROM tab1 cor0
----
25
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 * 49 AS col1, col0 * + + col2 * - col1 col1 FROM tab1
----
-2891
-25075
-3332
-290836
-4704
-68544

onlyif mysql # aggregate syntax: 
query II rowsort label-486
SELECT ALL - 70, SUM( ALL - 44 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-70
-396

skipif mysql # not compatible
query II rowsort label-486
SELECT ALL - 70, SUM ( ALL - 44 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-70
-396

query III rowsort
SELECT * FROM tab2 WHERE NULL <> 47 * + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-488
SELECT DISTINCT + CAST( - col0 AS SIGNED ) + 15 FROM tab1 AS cor0
----
-36
-70
-76

skipif mysql # not compatible
query I rowsort label-488
SELECT DISTINCT + CAST ( - col0 AS INTEGER ) + 15 FROM tab1 AS cor0
----
-36
-70
-76

onlyif mysql # DIV for integer division: 
query I rowsort label-489
SELECT ALL - col2 + - + col2 DIV - col1 AS col2 FROM tab0 AS cor0
----
-10
-47
0

skipif mysql # not compatible
query I rowsort label-489
SELECT ALL - col2 + - + col2 / - col1 AS col2 FROM tab0 AS cor0
----
-10
-47
0

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

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

query I rowsort
SELECT + ( + - col2 ) - - - col0 AS col2 FROM tab0 cor0
----
-196
-62
-97

query I rowsort
SELECT DISTINCT - - 4 - - col2 FROM tab2 AS cor0
----
27
44
62

query I rowsort
SELECT 28 + 81 FROM tab2 AS cor0
----
109
109
109

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-494
SELECT + col2 + + CAST( - 92 AS SIGNED ) * + col0 AS col1 FROM tab2 cor0
----
-4209
-5848
-6842

skipif mysql # not compatible
query I rowsort label-494
SELECT + col2 + + CAST ( - 92 AS INTEGER ) * + col0 AS col1 FROM tab2 cor0
----
-4209
-5848
-6842

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col0 * + 81 * + col2 >= NULL
----

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

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

query I rowsort
SELECT - col2 * 29 AS col0 FROM tab1
----
-1711
-1972
-2784

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-500
SELECT + - CAST( - 62 AS SIGNED ) * + col2 DIV + col2 AS col2 FROM tab2 AS cor0
----
62
62
62

skipif mysql # not compatible
query I rowsort label-500
SELECT + - CAST ( - 62 AS INTEGER ) * + col2 / + col2 AS col2 FROM tab2 AS cor0
----
62
62
62

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-502
SELECT - CAST( NULL AS SIGNED ) / 76 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-502
SELECT - CAST ( NULL AS INTEGER ) / 76 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-503
SELECT COUNT( * ) * - - COUNT( - col0 ) + - SUM( + 45 ) AS col2 FROM tab1 AS cor0
----
-126

skipif mysql # not compatible
query I rowsort label-503
SELECT COUNT ( * ) * - - COUNT ( - col0 ) + - SUM ( + 45 ) AS col2 FROM tab1 AS cor0
----
-126

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

query I rowsort
SELECT col0 * + 73 FROM tab1 AS cor0
----
3723
6205
6643

query I rowsort
SELECT - - ( - - col0 ) * - 19 + col0 + 94 FROM tab0 AS cor0
----
-1472
-1652
-176

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 55 * col1 col0 FROM tab2 AS cor0 WHERE NOT - col0 + ( + col0 ) + 8 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-508
SELECT + COUNT( * ) + - COUNT( * ) + + COUNT( * ) * + - MAX( DISTINCT + col1 ) FROM tab2 AS cor0
----
-231

skipif mysql # not compatible
query I rowsort label-508
SELECT + COUNT ( * ) + - COUNT ( * ) + + COUNT ( * ) * + - MAX ( DISTINCT + col1 ) FROM tab2 AS cor0
----
-231

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT ( + 1 ) BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL > + 77 * col0 * + + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - + col2 ) col2 FROM tab1
----
-59
-68
-96

query I rowsort
SELECT ALL - col0 * - - col0 * + col0 * 61 FROM tab1
----
-37461625
-45967831
-8091711

onlyif mysql # aggregate syntax: 
query I rowsort label-513
SELECT ALL - 18 + - MAX( ( - col2 ) ) FROM tab0
----
-8

skipif mysql # not compatible
query I rowsort label-513
SELECT ALL - 18 + - MAX ( ( - col2 ) ) FROM tab0
----
-8

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-517
SELECT MAX( 85 ) FROM tab2 cor0
----
85

skipif mysql # not compatible
query I rowsort label-517
SELECT MAX ( 85 ) FROM tab2 cor0
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-518
SELECT DISTINCT - col1 DIV - + 83 - + + col1 col2 FROM tab0 AS cor0
----
-1
-21
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-518
SELECT DISTINCT - col1 / - + 83 - + + col1 col2 FROM tab0 AS cor0
----
-1
-21
-81

query I rowsort
SELECT ALL - + col0 - 0 FROM tab2 cor0
----
-46
-64
-75

query I rowsort
SELECT DISTINCT 73 * - + 70 FROM tab0
----
-5110

onlyif mysql # aggregate syntax: 
query I rowsort label-521
SELECT 23 + + COUNT( * ) AS col0 FROM tab0
----
26

skipif mysql # not compatible
query I rowsort label-521
SELECT 23 + + COUNT ( * ) AS col0 FROM tab0
----
26

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

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

query I rowsort
SELECT col2 + col0 + + 69 AS col2 FROM tab1 AS cor0
----
213
216
228

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 - + 59 col0 FROM tab2 AS cor0
----
-110
-126
-136

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-529
SELECT SUM( - 12 ) FROM tab0
----
-36

skipif mysql # not compatible
query I rowsort label-529
SELECT SUM ( - 12 ) FROM tab0
----
-36

query I rowsort
SELECT - ( + col0 ) FROM tab0 WHERE NOT NULL >= - 89 * + ( ( + col1 ) )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-531
SELECT ALL - MAX( - col1 ) col1, 5 FROM tab1
----
5
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-531
SELECT ALL - MAX ( - col1 ) col1, 5 FROM tab1
----
5
5

query I rowsort
SELECT + 25 * + 86 AS col2 FROM tab0
----
2150
2150
2150

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

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 63 + 33 IS NOT NULL
----

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

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

query I rowsort
SELECT col1 + + col2 - col0 FROM tab2
----
28
50
53

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

query II rowsort
SELECT DISTINCT + col0 + - + col1 - - col0 - col2, 32 AS col1 FROM tab0 AS cor0
----
-98
32
143
32
94
32

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

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

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 <= + ( - ( + - 3 ) ) * - + col0
----

query II rowsort
SELECT - col0 * 61 * - col1, col2 AS col0 FROM tab0 AS cor0
----
111447
10
5917
99
74115
47

query I rowsort
SELECT DISTINCT 97 * 66 AS col1 FROM tab1
----
6402

onlyif mysql # aggregate syntax: 
query I rowsort label-547
SELECT - ( + + MAX( ALL col0 ) ) * + 90 FROM tab1
----
-8190

skipif mysql # not compatible
query I rowsort label-547
SELECT - ( + + MAX ( ALL col0 ) ) * + 90 FROM tab1
----
-8190

query I rowsort
SELECT 50 + col2 + - - col0 * + col2 FROM tab0
----
802
930
9752

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

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

query III rowsort
SELECT * FROM tab0 WHERE - 23 * - - col1 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 59 * col2 * - 78 + - + 36 + + col0 * - + 33 - + 29 * - 95 < + col0 * + 11
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE 17 * + col1 + - 72 >= - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-555
SELECT - COUNT( * ) * - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT ( NULL ) IS NOT NULL
----
81

skipif mysql # not compatible
query I rowsort label-555
SELECT - COUNT ( * ) * - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT ( NULL ) IS NOT NULL
----
81

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-557
SELECT DISTINCT - CAST( + 66 AS SIGNED ) AS col1 FROM tab2 cor0
----
-66

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

query I rowsort
SELECT DISTINCT - 3 * - - col1 AS col1 FROM tab1 AS cor0
----
-141
-15
-42

query II rowsort
SELECT ALL 39, ( + 33 ) FROM tab2 AS cor0 WHERE + col0 <= NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-561
SELECT ALL CAST( col1 AS SIGNED ) * - - col0 AS col2 FROM tab0
----
1215
1827
97

skipif mysql # not compatible
query I rowsort label-561
SELECT ALL CAST ( col1 AS INTEGER ) * - - col0 AS col2 FROM tab0
----
1215
1827
97

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-562
SELECT CAST( NULL AS DECIMAL ) AS col1, + col2 * - col2 FROM tab0
----
NULL
-100
NULL
-2209
NULL
-9801

skipif mysql # not compatible
query II rowsort label-562
SELECT CAST ( NULL AS REAL ) AS col1, + col2 * - col2 FROM tab0
----
NULL
-100
NULL
-2209
NULL
-9801

query I rowsort
SELECT + 83 * + col1 + + col2 * - ( col2 ) FROM tab1 cor0
----
-3066
-723
-8054

query I rowsort
SELECT ( - + col1 ) FROM tab2 WHERE NOT - col2 < - 2
----

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

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

skipif mysql # not compatible
query III rowsort label-566
SELECT * FROM tab1 WHERE NOT NULL NOT IN ( + col1 * - CAST ( col2 AS INTEGER ) * - + col0 * + - 54, + col1 + col1 + col0 * - 26, CAST ( NULL AS INTEGER ) + col1 )
----

query I rowsort
SELECT - - 86 AS col2 FROM tab1 WHERE NOT + - 21 IS NULL
----
86
86
86

query I rowsort
SELECT ALL - - col0 AS col0 FROM tab1 WHERE - ( - 41 ) IS NOT NULL
----
51
85
91

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-570
SELECT ALL + + ( + col1 ) DIV col2 + - - col1 AS col1 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-570
SELECT ALL + + ( + col1 ) / col2 + - - col1 AS col1 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-571
SELECT DISTINCT - 38 + + MAX( 59 ) FROM tab0 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-571
SELECT DISTINCT - 38 + + MAX ( 59 ) FROM tab0 AS cor0
----
21

query I rowsort
SELECT DISTINCT + + 49 + 39 AS col1 FROM tab2 AS cor0
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-573
SELECT 48 DIV + col1 + col0 AS col0 FROM tab1 AS cor0
----
54
92
94

skipif mysql # not compatible
query I rowsort label-573
SELECT 48 / + col1 + col0 AS col0 FROM tab1 AS cor0
----
54
92
94

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

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

query II rowsort
SELECT DISTINCT 31 + - 80, + col1 + + col2 AS col2 FROM tab2 AS cor0
----
-49
117
-49
125
-49
74

query I rowsort
SELECT DISTINCT ( + + 38 ) * 84 AS col1 FROM tab2 AS cor0
----
3192

query I rowsort
SELECT + 40 + - 56 FROM tab0
----
-16
-16
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-578
SELECT DISTINCT - 30 * - COUNT( * ) AS col1 FROM tab2
----
90

skipif mysql # not compatible
query I rowsort label-578
SELECT DISTINCT - 30 * - COUNT ( * ) AS col1 FROM tab2
----
90

query I rowsort
SELECT ALL + col1 + - - 55 AS col1 FROM tab0
----
136
56
76

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-580
SELECT DISTINCT - 73 - - CAST( NULL AS SIGNED ) * + col0 col1, + 66 AS col2 FROM tab1
----
NULL
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-580
SELECT DISTINCT - 73 - - CAST ( NULL AS INTEGER ) * + col0 col1, + 66 AS col2 FROM tab1
----
NULL
66

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 25 / - 23 * - col0 / - col1 <> NULL
----

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

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

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

query I rowsort
SELECT DISTINCT + 75 - - col0 FROM tab1 AS cor0
----
126
160
166

onlyif mysql # DIV for integer division: 
query I rowsort label-585
SELECT col2 DIV + 3 AS col1 FROM tab2 AS cor0
----
13
19
7

skipif mysql # not compatible
query I rowsort label-585
SELECT col2 / + 3 AS col1 FROM tab2 AS cor0
----
13
19
7

onlyif mysql # aggregate syntax: 
query I rowsort label-586
SELECT + + MAX( col1 ) / + + 76 FROM tab0 cor0 WHERE NOT NULL BETWEEN - col2 * col0 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-586
SELECT + + MAX ( col1 ) / + + 76 FROM tab0 cor0 WHERE NOT NULL BETWEEN - col2 * col0 AND NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-587
SELECT DISTINCT + MAX( ALL - col0 ) * + 78 AS col0 FROM tab0 cor0
----
-1170

skipif mysql # not compatible
query I rowsort label-587
SELECT DISTINCT + MAX ( ALL - col0 ) * + 78 AS col0 FROM tab0 cor0
----
-1170

onlyif mysql # DIV for integer division: 
query I rowsort label-588
SELECT ALL - 77 DIV col0 + + col2 * col0 FROM tab2 AS cor0
----
1057
2559
4349

skipif mysql # not compatible
query I rowsort label-588
SELECT ALL - 77 / col0 + + col2 * col0 FROM tab2 AS cor0
----
1057
2559
4349

onlyif mysql # DIV for integer division: 
query I rowsort label-589
SELECT DISTINCT - 97 DIV + 52 AS col1 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-589
SELECT DISTINCT - 97 / + 52 AS col1 FROM tab1
----
-1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-591
SELECT SUM( ALL + 11 ) col0 FROM tab0
----
33

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-591
SELECT SUM ( ALL + 11 ) col0 FROM tab0
----
33

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 98 * + - 52 col0 FROM tab1
----
-5096

query I rowsort
SELECT DISTINCT + 61 AS col2 FROM tab0
----
61

onlyif mysql # DIV for integer division: 
query I rowsort label-595
SELECT ALL - col0 DIV - col0 AS col2 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-595
SELECT ALL - col0 / - col0 AS col2 FROM tab0
----
1
1
1

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

query I rowsort
SELECT 58 * + - ( + 43 ) AS col1 FROM tab2
----
-2494
-2494
-2494

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-598
SELECT ALL CAST( - - col0 AS SIGNED ) * + col1 DIV + + col1 col2 FROM tab1
----
51
85
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-598
SELECT ALL CAST ( - - col0 AS INTEGER ) * + col1 / + + col1 col2 FROM tab1
----
51
85
91

query I rowsort
SELECT DISTINCT - 65 * + ( - col2 ) * col2 - col0 + + col0 + + + col1 + - col0 AS col0 FROM tab0 AS cor0
----
143651
636969
6434

query I rowsort
SELECT DISTINCT + 82 * - - 45 - 75 FROM tab1 AS cor0
----
3615

query I rowsort
SELECT col0 + col2 + + ( - 48 ) - col1 FROM tab0
----
-67
147
28

query I rowsort
SELECT col2 + col1 + + 22 FROM tab1
----
132
137
86

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

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

query I rowsort
SELECT - - 48 AS col2 FROM tab1 WHERE NULL NOT BETWEEN - 76 * - col1 * - + ( - col0 ) AND - - col1 + col0 + + col1 * - + col0
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2, col1 + 52 col0 FROM tab2 cor0
----
23
103
40
129
58
119

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

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

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

query I rowsort
SELECT 55 - + 62 FROM tab1 AS cor0
----
-7
-7
-7

query II rowsort
SELECT DISTINCT + col1, - col0 * - col0 AS col0 FROM tab1 AS cor0
----
14
2601
47
8281
5
7225

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + col0 BETWEEN - + 74 AND 47 )
----
46
51
23

query I rowsort
SELECT + col0 + 73 - + + col0 - col0 FROM tab1
----
-12
-18
22

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-614
SELECT + col2 + - - col1 * ( - col2 ) + + - col2 col0 FROM tab2 WHERE CAST ( + CAST ( + - 26 AS INTEGER ) AS INTEGER ) IS NULL
----

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

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

query I rowsort
SELECT + col0 + - - 15 AS col1 FROM tab0
----
102
112
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-617
SELECT DISTINCT ( + - CAST( + COUNT( - col0 ) AS SIGNED ) ) FROM tab2
----
-3

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

query I rowsort
SELECT DISTINCT - 12 + 98 + - - col0 FROM tab0
----
101
173
183

onlyif mysql # aggregate syntax: 
query I rowsort label-619
SELECT ALL ( MIN( + 97 ) ) FROM tab1
----
97

skipif mysql # not compatible
query I rowsort label-619
SELECT ALL ( MIN ( + 97 ) ) FROM tab1
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-620
SELECT ALL + SUM( + - col1 ) + 56 FROM tab2 AS cor0
----
-139

skipif mysql # not compatible
query I rowsort label-620
SELECT ALL + SUM ( + - col1 ) + 56 FROM tab2 AS cor0
----
-139

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + ( - col0 ) + + + ( 4 ) col0 FROM tab1 AS cor0
----
55
89
95

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

skipif mysql # not compatible
query I rowsort label-622
SELECT DISTINCT - + COUNT ( * ) - - COUNT ( * ) / COUNT ( * ) FROM tab2 AS cor0
----
-2

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

query I rowsort
SELECT 58 AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to ef6e63aeed2581a168f07646d258f666

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 65 <= NULL
----

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

query I rowsort
SELECT ALL + 17 * + 76 FROM tab2 AS cor0
----
1292
1292
1292

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

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

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

skipif mysql # not compatible
query I rowsort label-629
SELECT ALL + COUNT ( * ) FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col0 - col2 AND + + col1 + + col0
----
0

query I rowsort
SELECT DISTINCT 69 * 89 + + 63 FROM tab2 AS cor0
----
6204

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 37 = - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

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

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

query I rowsort
SELECT DISTINCT - 12 + + col0 * + - 16 FROM tab0
----
-1404
-1564
-252

query I rowsort
SELECT 27 * col2 AS col2 FROM tab2
----
1080
1566
621

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 * + - col2 col2, - col0 FROM tab0 AS cor0
----
100
-87
2209
-15
9801
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-637
SELECT ALL - COUNT( * ) * - 56 AS col0 FROM tab0 AS cor0
----
168

skipif mysql # not compatible
query I rowsort label-637
SELECT ALL - COUNT ( * ) * - 56 AS col0 FROM tab0 AS cor0
----
168

query II rowsort
SELECT DISTINCT col2 AS col2, + col0 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

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

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

query I rowsort
SELECT col1 * + 18 + col2 + - 52 * - 37 AS col1 FROM tab0 AS cor0
----
2041
2312
3429

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-641
SELECT DISTINCT - CAST( col2 AS SIGNED ) - - 60 DIV col2 * 88 FROM tab2 AS cor0
----
153
30
48

skipif mysql # not compatible
query I rowsort label-641
SELECT DISTINCT - CAST ( col2 AS INTEGER ) - - 60 / col2 * 88 FROM tab2 AS cor0
----
153
30
48

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

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

query I rowsort
SELECT DISTINCT - col2 * - + col2 + col1 AS col1 FROM tab1 AS cor0
----
3486
4671
9230

onlyif mysql # aggregate syntax: 
query I rowsort label-644
SELECT + COUNT( * ) FROM tab0 AS cor0 WHERE + col1 BETWEEN + col1 - - 45 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-644
SELECT + COUNT ( * ) FROM tab0 AS cor0 WHERE + col1 BETWEEN + col1 - - 45 AND NULL
----
0

query I rowsort
SELECT 24 + 67 + 7 FROM tab1 AS cor0
----
98
98
98

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

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

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

query I rowsort
SELECT DISTINCT - - col2 * col0 + - 95 - - 91 FROM tab0 AS cor0
----
701
866
9599

onlyif mysql # aggregate syntax: 
query I rowsort label-649
SELECT ALL SUM( col1 ) col0 FROM tab1 WHERE NOT + 30 IS NOT NULL
----
NULL

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

onlyif mysql # aggregate syntax: 
query II rowsort label-650
SELECT DISTINCT - 70, 70 * + COUNT( * ) AS col1 FROM tab0
----
-70
210

skipif mysql # not compatible
query II rowsort label-650
SELECT DISTINCT - 70, 70 * + COUNT ( * ) AS col1 FROM tab0
----
-70
210

query I rowsort
SELECT col1 - - - col2 * + 76 AS col0 FROM tab2
----
-1697
-2963
-4341

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-653
SELECT DISTINCT COUNT( * ) DIV 47 + + - 81 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-653
SELECT DISTINCT COUNT ( * ) / 47 + + - 81 FROM tab0 AS cor0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-654
SELECT ALL + MIN( - + col1 ) * + 83 FROM tab1 cor0
----
-3901

skipif mysql # not compatible
query I rowsort label-654
SELECT ALL + MIN ( - + col1 ) * + 83 FROM tab1 cor0
----
-3901

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + col2 - - col0 col0 FROM tab1 AS cor0
----
3566
4715
9267

query I rowsort
SELECT ALL + + 34 AS col2 FROM tab1 AS cor0 WHERE 48 IS NOT NULL
----
34
34
34

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

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

skipif mysql # not compatible
query I rowsort label-658
SELECT - CAST ( + COUNT ( * ) AS INTEGER ) AS col1 FROM tab2
----
-3

query II rowsort
SELECT 6 AS col1, + col2 + col0 * - + ( - col0 ) AS col0 FROM tab1
----
6
2697
6
7284
6
8349

onlyif mysql # DIV for integer division: 
query I rowsort label-660
SELECT ALL + col0 DIV - 55 FROM tab0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-660
SELECT ALL + col0 / - 55 FROM tab0
----
-1
-1
0

query I rowsort
SELECT - col2 * + - ( + 37 ) * + + col2 AS col1 FROM tab2
----
124468
19573
59200

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 12 AS col0, - 66 col0 FROM tab0 AS cor0
----
12
-66
12
-66
12
-66

query I rowsort
SELECT DISTINCT col2 * + + 59 * - 98 FROM tab1 AS cor0 WHERE NOT 72 IN ( - 38 * - col0 )
----
-341138
-393176
-555072

onlyif mysql # aggregate syntax: 
query I rowsort label-664
SELECT ALL + COUNT( * ) + + COUNT( * ) + - 55 FROM tab2
----
-49

skipif mysql # not compatible
query I rowsort label-664
SELECT ALL + COUNT ( * ) + + COUNT ( * ) + - 55 FROM tab2
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-665
SELECT ALL - COUNT( * ) + - + 91 + - COUNT( * ) FROM tab1 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-665
SELECT ALL - COUNT ( * ) + - + 91 + - COUNT ( * ) FROM tab1 AS cor0
----
-97

query I rowsort
SELECT 66 * - col2 * + col1 FROM tab1 AS cor0 WHERE ( col2 ) IS NOT NULL
----
-19470
-210936
-88704

query I rowsort
SELECT + - 28 + - - col1 * - - 67 + + 8 FROM tab2 AS cor0 WHERE col2 + - col1 IS NOT NULL
----
3397
4469
5139

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-15
-87
-97

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-670
SELECT col2 - CAST( NULL AS SIGNED ) 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-670
SELECT col2 - CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-671
SELECT DISTINCT col1 - + col0 AS col2, 6 DIV + + col1 col0 FROM tab1 cor0
----
-37
0
-44
0
-80
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-671
SELECT DISTINCT col1 - + col0 AS col2, 6 / + + col1 col0 FROM tab1 cor0
----
-37
0
-44
0
-80
1

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-673
SELECT ALL 63 * + + ( col1 ) AS col1, + CAST( NULL AS SIGNED ) + + + col1 * + + 93 + + col0 FROM tab2
----
3213
NULL
4221
NULL
4851
NULL

skipif mysql # not compatible
query II rowsort label-673
SELECT ALL 63 * + + ( col1 ) AS col1, + CAST ( NULL AS INTEGER ) + + + col1 * + + 93 + + col0 FROM tab2
----
3213
NULL
4221
NULL
4851
NULL

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

skipif mysql # not compatible
query I rowsort label-674
SELECT COUNT ( * ) + + + 3 * - COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab0
----
-24

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

skipif mysql # not compatible
query I rowsort label-675
SELECT ALL - COUNT ( * ) * + COUNT ( * ) FROM tab2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-676
SELECT DISTINCT - MIN( ALL + 18 ) AS col2 FROM tab1
----
-18

skipif mysql # not compatible
query I rowsort label-676
SELECT DISTINCT - MIN ( ALL + 18 ) AS col2 FROM tab1
----
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-677
SELECT ALL - 17 DIV - ( - 38 ) FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-677
SELECT ALL - 17 / - ( - 38 ) FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-678
SELECT - SUM( + 46 ) AS col1 FROM tab2 AS cor0
----
-138

skipif mysql # not compatible
query I rowsort label-678
SELECT - SUM ( + 46 ) AS col1 FROM tab2 AS cor0
----
-138

onlyif mysql # aggregate syntax: 
query I rowsort label-679
SELECT + + COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL <= + col2
----
0

skipif mysql # not compatible
query I rowsort label-679
SELECT + + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL <= + col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-680
SELECT DISTINCT - COUNT( * ) + - + 26 AS col2 FROM tab2 cor0 WHERE 74 * + + 21 <> NULL
----
-26

skipif mysql # not compatible
query I rowsort label-680
SELECT DISTINCT - COUNT ( * ) + - + 26 AS col2 FROM tab2 cor0 WHERE 74 * + + 21 <> NULL
----
-26

query I rowsort
SELECT DISTINCT 47 * + 52 FROM tab0 AS cor0
----
2444

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

query II rowsort
SELECT ALL + col2 AS col2, - col1 - col1 FROM tab0 AS cor0
----
10
-42
47
-162
99
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-684
SELECT ( + + 22 ) DIV - 48 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-684
SELECT ( + + 22 ) / - 48 FROM tab2 AS cor0
----
0
0
0

query II rowsort
SELECT DISTINCT + 24 AS col0, 78 FROM tab1 cor0
----
24
78

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT - 84 FROM tab2, tab0 AS cor0
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-691
SELECT MAX( - 47 ) AS col2 FROM tab2
----
-47

skipif mysql # not compatible
query I rowsort label-691
SELECT MAX ( - 47 ) AS col2 FROM tab2
----
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-692
SELECT ALL 74 DIV + col1 + col0 AS col0 FROM tab1
----
56
92
99

skipif mysql # not compatible
query I rowsort label-692
SELECT ALL 74 / + col1 + col0 AS col0 FROM tab1
----
56
92
99

query I rowsort
SELECT DISTINCT 3 + - + 7 FROM tab2
----
-4

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-694
SELECT DISTINCT + col1 * 61 + - 92 + - col2 * + 95 * - + CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-694
SELECT DISTINCT + col1 * 61 + - 92 + - col2 * + 95 * - + CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - col0 * - col1 + + + col0 FROM tab1
----
4368
510
765

onlyif mysql # DIV for integer division: 
query III rowsort label-696
SELECT DISTINCT col2 * + 89 + + col1 AS col1, ( + col1 ) DIV - - col0 AS col1, - + 62 + + 70 DIV + 76 AS col2 FROM tab0
----
9 values hashing to 92b7cbe009d6a511a8916fd1751a4583

skipif mysql # not compatible
query III rowsort label-696
SELECT DISTINCT col2 * + 89 + + col1 AS col1, ( + col1 ) / - - col0 AS col1, - + 62 + + 70 / + 76 AS col2 FROM tab0
----
9 values hashing to 92b7cbe009d6a511a8916fd1751a4583

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

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

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

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

query I rowsort
SELECT ALL + col0 + + 94 AS col2 FROM tab1 AS cor0
----
145
179
185

onlyif mysql # aggregate syntax: 
query I rowsort label-700
SELECT ALL ( - 66 ) * - + COUNT( * ) + MIN( DISTINCT + col2 ) AS col2 FROM tab0 AS cor0
----
208

skipif mysql # not compatible
query I rowsort label-700
SELECT ALL ( - 66 ) * - + COUNT ( * ) + MIN ( DISTINCT + col2 ) AS col2 FROM tab0 AS cor0
----
208

onlyif mysql # DIV for integer division: 
query I rowsort label-701
SELECT DISTINCT - + col1 * - col0 - col2 DIV - 57 + + - 19 FROM tab0 AS cor0
----
1196
1808
79

skipif mysql # not compatible
query I rowsort label-701
SELECT DISTINCT - + col1 * - col0 - col2 / - 57 + + - 19 FROM tab0 AS cor0
----
1196
1808
79

query I rowsort
SELECT - - col0 * 52 AS col2 FROM tab2 AS cor0
----
2392
3328
3900

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-703
SELECT ALL - + col0 / 6 * + ( + ( CAST( NULL AS SIGNED ) ) ) - 33 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-703
SELECT ALL - + col0 / 6 * + ( + ( CAST ( NULL AS INTEGER ) ) ) - 33 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-704
SELECT DISTINCT COUNT( ALL + col1 ) AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-704
SELECT DISTINCT COUNT ( ALL + col1 ) AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
3

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN ( + ( + 14 ) ) AND NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-706
SELECT ALL 60 DIV col2 AS col2, - 66 * 1 FROM tab0
----
0
-66
1
-66
6
-66

skipif mysql # not compatible
query II rowsort label-706
SELECT ALL 60 / col2 AS col2, - 66 * 1 FROM tab0
----
0
-66
1
-66
6
-66

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( + col2, 21 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-708
SELECT 58 DIV - + 51 AS col0 FROM tab1 WHERE NOT - ( + col1 ) IS NULL
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-708
SELECT 58 / - + 51 AS col0 FROM tab1 WHERE NOT - ( + col1 ) IS NULL
----
-1
-1
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-709
SELECT ALL ( - col1 ) DIV col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-709
SELECT ALL ( - col1 ) / col2 FROM tab1
----
0
0
0

query I rowsort
SELECT 11 * ( + + 54 ) FROM tab2
----
594
594
594

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

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

query I rowsort
SELECT ( 60 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

query I rowsort
SELECT ALL - - 70 AS col2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911

onlyif mysql # aggregate syntax: 
query I rowsort label-714
SELECT DISTINCT - COUNT( * ) + - + 57 FROM tab1, tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-714
SELECT DISTINCT - COUNT ( * ) + - + 57 FROM tab1, tab1 AS cor0
----
-66

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-717
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL > CAST( NULL AS SIGNED ) * col2
----

skipif mysql # not compatible
query III rowsort label-717
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL > CAST ( NULL AS INTEGER ) * col2
----

query I rowsort
SELECT + col1 FROM tab2 AS cor0 WHERE NOT NULL = 24
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-721
SELECT - 16 DIV - + col2 - - col0 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-721
SELECT - 16 / - + col2 - - col0 FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT DISTINCT - 59 AS col1 FROM tab0 AS cor0 WHERE NOT NULL <> - 28 * - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-723
SELECT DISTINCT + col2 DIV ( + - 20 ) FROM tab2
----
-1
-2

skipif mysql # not compatible
query I rowsort label-723
SELECT DISTINCT + col2 / ( + - 20 ) FROM tab2
----
-1
-2

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-726
SELECT ALL MIN( - - ( + 33 ) ) FROM tab1
----
33

skipif mysql # not compatible
query I rowsort label-726
SELECT ALL MIN ( - - ( + 33 ) ) FROM tab1
----
33

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-727
SELECT ALL - ( + ( + + CAST( NULL AS SIGNED ) ) ) + + - CAST( + 95 AS DECIMAL ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-727
SELECT ALL - ( + ( + + CAST ( NULL AS INTEGER ) ) ) + + - CAST ( + 95 AS REAL ) AS col2 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE NULL >= + 91
----

onlyif mysql # aggregate syntax: 
query I rowsort label-729
SELECT SUM( 17 ) AS col0 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-729
SELECT SUM ( 17 ) AS col0 FROM tab2 AS cor0
----
51

query I rowsort
SELECT DISTINCT + col2 * + col1 - col1 FROM tab1
----
1330
290
3149

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

skipif mysql # not compatible
query I rowsort label-731
SELECT COUNT ( * ) / - + 3 AS col2 FROM tab2
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + ( 80 ) ) + col1 col0 FROM tab0 AS cor0
----
-59
-79
1

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

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

query I rowsort
SELECT DISTINCT + col1 * col1 * + ( - col0 ) AS col0 FROM tab0 AS cor0
----
-38367
-97
-98415

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 82 * - col2 * 57 col0 FROM tab2 AS cor0
----
107502
186960
271092

onlyif mysql # DIV for integer division: 
query I rowsort label-738
SELECT ALL + 70 DIV col2 * + 56 FROM tab2 AS cor0
----
168
56
56

skipif mysql # not compatible
query I rowsort label-738
SELECT ALL + 70 / col2 * + 56 FROM tab2 AS cor0
----
168
56
56

query II rowsort
SELECT ALL 94 AS col1, ( + 71 ) FROM tab0
----
94
71
94
71
94
71

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

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

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

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

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

query I rowsort
SELECT ALL 22 * + - 23 FROM tab2 AS cor0
----
-506
-506
-506

query I rowsort
SELECT + + 66 AS col2 FROM tab0 cor0
----
66
66
66

onlyif mysql # aggregate syntax: 
query I rowsort label-745
SELECT + SUM( col1 ) + + 88 AS col0 FROM tab0
----
191

skipif mysql # not compatible
query I rowsort label-745
SELECT + SUM ( col1 ) + + 88 AS col0 FROM tab0
----
191

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN ( - col0 ) AND NULL
----

query I rowsort
SELECT ALL 74 * col1 AS col1 FROM tab0
----
1554
5994
74

query I rowsort
SELECT ALL + col0 * 10 AS col0 FROM tab0
----
150
870
970

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

query I rowsort
SELECT DISTINCT + ( + col2 ) + - ( 91 + col2 ) AS col1 FROM tab2
----
-91

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

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

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

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

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

query I rowsort
SELECT AVG ( 76 ) FROM tab2 WHERE NOT NULL NOT IN ( + col1 )
----
NULL

query I rowsort
SELECT col1 * col2 - col1 FROM tab1
----
1330
290
3149

query I rowsort
SELECT DISTINCT 74 * - 2 + + 15 AS col0 FROM tab0
----
-133

query I rowsort
SELECT + 71 * - col2 AS col2 FROM tab0
----
-3337
-7029
-710

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

query I rowsort
SELECT col1 * 79 + 82 AS col0 FROM tab2
----
4111
5375
6165

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

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

query I rowsort
SELECT DISTINCT 5 + col0 FROM tab2
----
51
69
80

onlyif mysql # aggregate syntax: 
query I rowsort label-763
SELECT ALL + ( + MIN( - 29 ) ) FROM tab2
----
-29

skipif mysql # not compatible
query I rowsort label-763
SELECT ALL + ( + MIN ( - 29 ) ) FROM tab2
----
-29

query I rowsort
SELECT + 61 + col2 AS col0 FROM tab0
----
108
160
71

query I rowsort
SELECT 28 FROM tab1 WHERE col2 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-766
SELECT ALL - COUNT( * ) FROM tab0 WHERE NULL NOT IN ( - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-766
SELECT ALL - COUNT ( * ) FROM tab0 WHERE NULL NOT IN ( - col2 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-767
SELECT - COUNT( - 13 ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-767
SELECT - COUNT ( - 13 ) AS col1 FROM tab0
----
-3

query I rowsort
SELECT ALL + col0 * + col0 + - col2 FROM tab2 WHERE NOT 83 <= NULL
----

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) <> ( NULL )
----

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

query I rowsort
SELECT 59 AS col0 FROM tab0 WHERE NOT col1 NOT BETWEEN + col1 AND ( + 72 * - 95 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-774
SELECT DISTINCT - 60 * COUNT( * ) FROM tab1
----
-180

skipif mysql # not compatible
query I rowsort label-774
SELECT DISTINCT - 60 * COUNT ( * ) FROM tab1
----
-180

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 79 NOT BETWEEN ( 6 ) AND + col0 * col0 + 68
----

query I rowsort
SELECT DISTINCT - 28 + + AVG ( DISTINCT - 68 ) AS col1 FROM tab2 AS cor0 WHERE ( col2 - 4 * col0 ) = - 88
----
NULL

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

skipif mysql # not compatible
query I rowsort label-777
SELECT - col2 / col2 FROM tab0 AS cor0 WHERE NULL NOT IN ( CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT 27 - col2 * - 93 AS col0 FROM tab1 AS cor0
----
5514
6351
8955

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col1 * 47 + + 94 )
----

query I rowsort
SELECT DISTINCT - col1 + + col1 * + 98 AS col0 FROM tab1 AS cor0
----
1358
4559
485

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-783
SELECT MIN( 12 ) AS col2 FROM tab2 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-783
SELECT MIN ( 12 ) AS col2 FROM tab2 AS cor0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-784
SELECT - COUNT( * ) * - 0 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-784
SELECT - COUNT ( * ) * - 0 FROM tab0 cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-785
SELECT * 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-785
SELECT * FROM tab1 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) * + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE - col0 + + col2 IN ( - col2 )
----
46
51
23

query I rowsort
SELECT ALL - col2 * - 77 AS col0 FROM tab2 cor0
----
1771
3080
4466

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( col0 * - 94 + - 2 / col0 ) IS NOT NULL
----

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-793
SELECT ALL + SUM( DISTINCT - - 90 ) AS col2 FROM tab1
----
90

skipif mysql # not compatible
query I rowsort label-793
SELECT ALL + SUM ( DISTINCT - - 90 ) AS col2 FROM tab1
----
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * - 59 col2 FROM tab2 AS cor0
----
3009
3953
4543

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( + 11 / 62 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-797
SELECT - 72 DIV - col2 + - col2 + + 60 AS col1 FROM tab2 AS cor0
----
21
3
40

skipif mysql # not compatible
query I rowsort label-797
SELECT - 72 / - col2 + - col2 + + 60 AS col1 FROM tab2 AS cor0
----
21
3
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 88 col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 467301f887614eb7beda22c561b0fad2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 97 AS col2, + 26 col2 FROM tab0
----
97
26
97
26
97
26

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

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

query I rowsort
SELECT ALL col0 * - + ( col2 ) + ( col1 + col0 ) FROM tab2
----
-2419
-4208
-961

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 > ( + - ( + 2 ) * + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 57 + 90 FROM tab0 AS cor0
----
147
147
147

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-808
SELECT + 51 * + COUNT( * ) + + + MIN( col0 ) * + 50 AS col1 FROM tab2 cor0
----
2453

skipif mysql # not compatible
query I rowsort label-808
SELECT + 51 * + COUNT ( * ) + + + MIN ( col0 ) * + 50 AS col1 FROM tab2 cor0
----
2453

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-809
SELECT + 47 * - 51 * + 64 * - 96 DIV + COUNT( * ) - 75 AS col2 FROM tab2
----
4908981

skipif mysql # not compatible
query I rowsort label-809
SELECT + 47 * - 51 * + 64 * - 96 / + COUNT ( * ) - 75 AS col2 FROM tab2
----
4908981

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-810
SELECT + 5 * COUNT( * ) DIV + ( + 64 ) + 20 AS col2 FROM tab2
----
20

skipif mysql # not compatible
query I rowsort label-810
SELECT + 5 * COUNT ( * ) / + ( + 64 ) + 20 AS col2 FROM tab2
----
20

query I rowsort
SELECT - 19 + + col0 FROM tab1
----
32
66
72

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-812
SELECT ALL col2 + - 8 AS col1, col0 - col1 - - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
2
NULL
39
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-812
SELECT ALL col2 + - 8 AS col1, col0 - col1 - - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
2
NULL
39
NULL
91
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-813
SELECT DISTINCT MAX( + ( - col0 ) ) col0 FROM tab0
----
-15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-813
SELECT DISTINCT MAX ( + ( - col0 ) ) col0 FROM tab0
----
-15

query I rowsort
SELECT - 85 + + col2 + - col2 + - 30 * - col1 * + 91 FROM tab2
----
139145
182825
210125

query I rowsort
SELECT - + col1 * + 7 + - - col0 AS col2 FROM tab1 AS cor0
----
-238
-47
50

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - col1 * - 69 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-817
SELECT MIN( - 97 ) + + COUNT( * ) FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( col2 * - col1 ) AND col0 * col2
----
NULL

skipif mysql # not compatible
query I rowsort label-817
SELECT MIN ( - 97 ) + + COUNT ( * ) FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( col2 * - col1 ) AND col0 * col2
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-819
SELECT ALL 59 * COUNT( * ) col0 FROM tab2
----
177

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-819
SELECT ALL 59 * COUNT ( * ) col0 FROM tab2
----
177

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( - - 3 ) <= 95 + col0
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-821
SELECT DISTINCT col2 * 32 col2 FROM tab1 AS cor0 WHERE col1 / + CAST( NULL AS DECIMAL ) >= - col2
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-821
SELECT DISTINCT col2 * 32 col2 FROM tab1 AS cor0 WHERE col1 / + CAST ( NULL AS REAL ) >= - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-822
SELECT + 93 AS col1 FROM tab0 AS cor0 WHERE NOT + 35 IN ( - 68 * - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-822
SELECT + 93 AS col1 FROM tab0 AS cor0 WHERE NOT + 35 IN ( - 68 * - CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT - col1 * + + 43 FROM tab1 AS cor0
----
-2021
-215
-602

onlyif mysql # aggregate syntax: 
query I rowsort label-824
SELECT + MAX( ALL - 19 ) + + COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL BETWEEN 67 AND col2 / + + col0 + + + 92 + 70
----
NULL

skipif mysql # not compatible
query I rowsort label-824
SELECT + MAX ( ALL - 19 ) + + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL BETWEEN 67 AND col2 / + + col0 + + + 92 + 70
----
NULL

query II rowsort
SELECT ALL - col2, + 63 - col2 AS col2 FROM tab1 AS cor0
----
-59
4
-68
-5
-96
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-826
SELECT COUNT( 58 ) * - - COUNT( ALL col1 ) AS col1 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-826
SELECT COUNT ( 58 ) * - - COUNT ( ALL col1 ) AS col1 FROM tab1 AS cor0
----
9

query I rowsort
SELECT ALL - 92 + - col0 - + 56 * col2 AS col0 FROM tab0 AS cor0 WHERE 11 <> ( + 89 )
----
-2739
-5733
-739

query I rowsort
SELECT + col0 * + col1 + 5 AS col1 FROM tab1 AS cor0
----
4282
430
719

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

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-831
SELECT ALL col0, + 20 DIV + col0 - col0 FROM tab2 AS cor0
----
46
-46
64
-64
75
-75

skipif mysql # not compatible
query II rowsort label-831
SELECT ALL col0, + 20 / + col0 - col0 FROM tab2 AS cor0
----
46
-46
64
-64
75
-75

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

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-835
SELECT * FROM tab2 WHERE NOT + 19 * + CAST( - - col2 AS DECIMAL ) > - col0
----

skipif mysql # not compatible
query III rowsort label-835
SELECT * FROM tab2 WHERE NOT + 19 * + CAST ( - - col2 AS REAL ) > - col0
----

query II rowsort
SELECT ALL + - 8 AS col0, + col2 * + col2 AS col1 FROM tab2 AS cor0
----
-8
1600
-8
3364
-8
529

onlyif mysql # DIV for integer division: 
query I rowsort label-837
SELECT col0 DIV - 16 FROM tab1 cor0
----
-3
-5
-5

skipif mysql # not compatible
query I rowsort label-837
SELECT col0 / - 16 FROM tab1 cor0
----
-3
-5
-5

query I rowsort
SELECT ALL + 10 * col0 + 23 AS col2 FROM tab2 AS cor0
----
483
663
773

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

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

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

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

query I rowsort
SELECT ALL + 81 + + col2 FROM tab2
----
104
121
139

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-842
SELECT ALL - - COUNT( * ) DIV - 89 col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-842
SELECT ALL - - COUNT ( * ) / - 89 col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
0

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

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

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

skipif mysql # not compatible
query I rowsort label-844
SELECT COUNT ( * ) + CAST ( - 70 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-67

query I rowsort
SELECT + + 5 + - 37 FROM tab0 AS cor0
----
-32
-32
-32

query I rowsort
SELECT + col2 * - - col1 + - col2 FROM tab1 AS cor0
----
1248
236
3128

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 2 / col1 BETWEEN NULL AND - 9
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 6 + col1 AS col0 FROM tab2 AS cor0 WHERE NULL > - col1 - + col1
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-852
SELECT ALL 83 * - + 90 * + COUNT( * ) * - + 40 AS col1 FROM tab0
----
896400

skipif mysql # not compatible
query I rowsort label-852
SELECT ALL 83 * - + 90 * + COUNT ( * ) * - + 40 AS col1 FROM tab0
----
896400

onlyif mysql # aggregate syntax: 
query I rowsort label-853
SELECT ALL COUNT( + col2 ) + MIN( - ( - col2 ) ) AS col0 FROM tab2
----
26

skipif mysql # not compatible
query I rowsort label-853
SELECT ALL COUNT ( + col2 ) + MIN ( - ( - col2 ) ) AS col0 FROM tab2
----
26

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

query I rowsort
SELECT - 54 * + + col2 AS col0 FROM tab1
----
-3186
-3672
-5184

query III rowsort
SELECT * FROM tab1 WHERE col1 - 20 / - - col0 * + col2 <> ( + 66 * + - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-857
SELECT + + 7 * + ( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-857
SELECT + + 7 * + ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 WHERE NULL IS NULL
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE + + ( 66 ) * col0 BETWEEN ( + col1 / + + col2 + - 42 + col2 ) AND ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-859
SELECT ALL COUNT( ALL - - 74 ) * COUNT( * ) FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-859
SELECT ALL COUNT ( ALL - - 74 ) * COUNT ( * ) FROM tab1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-860
SELECT + - col2 AS col2 FROM tab2 WHERE + + CAST( NULL AS SIGNED ) IN ( + col2 + col2, - col1 + + col1 )
----

skipif mysql # not compatible
query I rowsort label-860
SELECT + - col2 AS col2 FROM tab2 WHERE + + CAST ( NULL AS INTEGER ) IN ( + col2 + col2, - col1 + + col1 )
----

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

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

query II rowsort
SELECT ALL + + 68, ( + + col2 ) FROM tab2 WHERE - col1 = + col0 + - - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-863
SELECT col0 DIV - col0 - - ( col0 ) AS col2 FROM tab0 AS cor0
----
14
86
96

skipif mysql # not compatible
query I rowsort label-863
SELECT col0 / - col0 - - ( col0 ) AS col2 FROM tab0 AS cor0
----
14
86
96

query I rowsort
SELECT ALL - + 25 AS col0 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 40ac8fd000b2e49317aed2411077839e

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-866
SELECT col2 * - CAST( - col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
705
870
9603

skipif mysql # not compatible
query I rowsort label-866
SELECT col2 * - CAST ( - col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
705
870
9603

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col2 * - + col2 / - col1 + col1 = col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

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

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

skipif mysql # not compatible
query I rowsort label-870
SELECT MIN ( + + col0 ) AS col0 FROM tab1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-871
SELECT ALL - COUNT( * ) * - - 55 AS col1 FROM tab1
----
-165

skipif mysql # not compatible
query I rowsort label-871
SELECT ALL - COUNT ( * ) * - - 55 AS col1 FROM tab1
----
-165

query II rowsort
SELECT 89, ( + col2 ) FROM tab0
----
89
10
89
47
89
99

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

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

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

query I rowsort
SELECT 59 * - 53 AS col0 FROM tab1 WHERE NOT NULL IN ( + col2 / - ( + + col2 ) + 92 + + col2 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-877
SELECT - SUM( DISTINCT 9 ) FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-877
SELECT - SUM ( DISTINCT 9 ) FROM tab0
----
-9

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 < + col2 + 71
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 + 32 * + ( + col0 ) FROM tab0 AS cor0
----
2805
3105
561

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-882
SELECT col2 + - col2 * col1 + - CAST( col1 AS SIGNED ) FROM tab0
----
-1
-221
-3841

skipif mysql # not compatible
query I rowsort label-882
SELECT col2 + - col2 * col1 + - CAST ( col1 AS INTEGER ) FROM tab0
----
-1
-221
-3841

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

onlyif mysql # aggregate syntax: 
query I rowsort label-884
SELECT ALL + 47 + COUNT( * ) FROM tab0 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-884
SELECT ALL + 47 + COUNT ( * ) FROM tab0 AS cor0
----
50

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL IN ( - col1 + - - col2 * col1, col2 )
----

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

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

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

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

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

query I rowsort
SELECT - - col0 + col1 + col0 * - - col1 AS col2 FROM tab2 AS cor0
----
2443
5069
5167

query I rowsort
SELECT DISTINCT 65 * - col2 AS col0 FROM tab1
----
-3835
-4420
-6240

onlyif mysql # DIV for integer division: 
query I rowsort label-892
SELECT ALL - 87 DIV ( + 54 ) FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-892
SELECT ALL - 87 / ( + 54 ) FROM tab1
----
-1
-1
-1

query I rowsort
SELECT + ( + 5 ) + - + ( col2 ) * - col2 AS col0 FROM tab0
----
105
2214
9806

onlyif mysql # aggregate syntax: 
query I rowsort label-894
SELECT - 12 + COUNT( * ) AS col0 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-894
SELECT - 12 + COUNT ( * ) AS col0 FROM tab0
----
-9

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-895
SELECT + CAST( col1 AS SIGNED ) + CAST( + + col0 AS SIGNED ) + + col2 DIV + + 25 AS col0 FROM tab1
----
140
68
92

skipif mysql # not compatible
query I rowsort label-895
SELECT + CAST ( col1 AS INTEGER ) + CAST ( + + col0 AS INTEGER ) + + col2 / + + 25 AS col0 FROM tab1
----
140
68
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - col2 ) * + col2 col2 FROM tab2
----
-1600
-3364
-529

query I rowsort
SELECT DISTINCT + + ( + ( - - col1 ) ) AS col1 FROM tab2 WHERE NOT ( NOT + 44 IS NOT NULL )
----
51
67
77

onlyif mysql # DIV for integer division: 
query I rowsort label-898
SELECT DISTINCT col0 DIV - - col1 + - 32 DIV + col0 AS col0 FROM tab1 AS cor0
----
1
17
3

skipif mysql # not compatible
query I rowsort label-898
SELECT DISTINCT col0 / - - col1 + - 32 / + col0 AS col0 FROM tab1 AS cor0
----
1
17
3

query I rowsort
SELECT ALL 87 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) = NULL
----

query I rowsort
SELECT DISTINCT + col0 * - 91 - + col2 AS col0 FROM tab2 AS cor0 WHERE col1 * 55 IN ( - col0, 65, + ( 76 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-901
SELECT DISTINCT col2 * + - col1 + + col1 DIV - 82 AS col0 FROM tab0 AS cor0
----
-210
-3807
-99

skipif mysql # not compatible
query I rowsort label-901
SELECT DISTINCT col2 * + - col1 + + col1 / - 82 AS col0 FROM tab0 AS cor0
----
-210
-3807
-99

onlyif mysql # DIV for integer division: 
query III rowsort label-902
SELECT - - 5 * - - col1, col2 DIV + ( 18 ) AS col0, + col2 AS col2 FROM tab2 AS cor0
----
9 values hashing to 894b04874531407b5045b37fb8013888

skipif mysql # not compatible
query III rowsort label-902
SELECT - - 5 * - - col1, col2 / + ( 18 ) AS col0, + col2 AS col2 FROM tab2 AS cor0
----
9 values hashing to 894b04874531407b5045b37fb8013888

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-905
SELECT 7 * 7 + + - col2 + + - col0 * + - CAST( - 77 AS SIGNED ) * + + col2 FROM tab2 cor0
----
-197111
-334959
-81440

skipif mysql # not compatible
query I rowsort label-905
SELECT 7 * 7 + + - col2 + + - col0 * + - CAST ( - 77 AS INTEGER ) * + + col2 FROM tab2 cor0
----
-197111
-334959
-81440

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-906
SELECT ALL + col1, + CAST( + - ( + 80 ) AS SIGNED ) * - + col0 * - 47 - + 78 FROM tab1 cor0
----
14
-191838
47
-342238
5
-319678

skipif mysql # not compatible
query II rowsort label-906
SELECT ALL + col1, + CAST ( + - ( + 80 ) AS INTEGER ) * - + col0 * - 47 - + 78 FROM tab1 cor0
----
14
-191838
47
-342238
5
-319678

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 90 * + + col1 col0 FROM tab2 AS cor0
----
-4590
-6030
-6930

query I rowsort
SELECT 7 + - col1 FROM tab0 AS cor0 WHERE NOT ( NULL IS NOT NULL )
----
-14
-74
6

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 74 = + 75
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-911
SELECT DISTINCT + SUM( 82 ) * - 10 FROM tab0 AS cor0
----
-2460

skipif mysql # not compatible
query I rowsort label-911
SELECT DISTINCT + SUM ( 82 ) * - 10 FROM tab0 AS cor0
----
-2460

onlyif mysql # DIV for integer division: 
query II rowsort label-912
SELECT DISTINCT + 15 DIV + col2 * + + 55 AS col1, col1 * - col2 col0 FROM tab2 AS cor0
----
0
-1173
0
-3080
0
-3886

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-912
SELECT DISTINCT + 15 / + col2 * + + 55 AS col1, col1 * - col2 col0 FROM tab2 AS cor0
----
0
-1173
0
-3080
0
-3886

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-917
SELECT MAX( ALL - 25 ) AS col2 FROM tab2 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-917
SELECT MAX ( ALL - 25 ) AS col2 FROM tab2 AS cor0
----
-25

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

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

query I rowsort
SELECT + 71 AS col2 FROM tab0 cor0 WHERE NOT 90 NOT BETWEEN + - col1 AND + col2
----
71

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

onlyif mysql # aggregate syntax: 
query I rowsort label-921
SELECT + COUNT( * ) + + + MAX( - 47 ) FROM tab2
----
-44

skipif mysql # not compatible
query I rowsort label-921
SELECT + COUNT ( * ) + + + MAX ( - 47 ) FROM tab2
----
-44

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-923
SELECT ALL + CAST( 59 AS SIGNED ) + col1 AS col0 FROM tab2
----
110
126
136

skipif mysql # not compatible
query I rowsort label-923
SELECT ALL + CAST ( 59 AS INTEGER ) + col1 AS col0 FROM tab2
----
110
126
136

onlyif mysql # DIV for integer division: 
query I rowsort label-924
SELECT DISTINCT - col1 DIV - 32 AS col0 FROM tab0
----
0
2

skipif mysql # not compatible
query I rowsort label-924
SELECT DISTINCT - col1 / - 32 AS col0 FROM tab0
----
0
2

onlyif mysql # aggregate syntax: 
query I rowsort label-925
SELECT DISTINCT - 99 - - COUNT( * ) FROM tab0 WHERE NOT ( NULL ) <= 24
----
-99

skipif mysql # not compatible
query I rowsort label-925
SELECT DISTINCT - 99 - - COUNT ( * ) FROM tab0 WHERE NOT ( NULL ) <= 24
----
-99

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

query I rowsort
SELECT ALL 57 + + - col2 * col2 FROM tab0
----
-2152
-43
-9744

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

query II rowsort
SELECT + col2 * + + 87, + 81 - - 4 + col1 * + col2 + - - col0 * + col2 + - col1 * - col2 AS col1 FROM tab0 AS cor0
----
4089
8404
8613
9886
870
1375

onlyif mysql # aggregate syntax: 
query I rowsort label-930
SELECT DISTINCT - + SUM( + 33 ) FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-930
SELECT DISTINCT - + SUM ( + 33 ) FROM tab0 AS cor0
----
-99

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT NULL >= 27 * - col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-932
SELECT - COUNT( * ) DIV + - COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
1

skipif mysql # not compatible
query I rowsort label-932
SELECT - COUNT ( * ) / + - COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
1

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

onlyif mysql # DIV for integer division: 
query I rowsort label-934
SELECT ALL - col0 * col1 DIV + - col0 + + 34 FROM tab1 AS cor0
----
39
48
81

skipif mysql # not compatible
query I rowsort label-934
SELECT ALL - col0 * col1 / + - col0 + + 34 FROM tab1 AS cor0
----
39
48
81

query I rowsort
SELECT DISTINCT - - 29 + 47 * + + 50 AS col2 FROM tab1 AS cor0
----
2379

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

query I rowsort
SELECT - - col0 + + 31 AS col2 FROM tab2 AS cor0
----
106
77
95

query I rowsort
SELECT ALL + 41 + + col1 FROM tab2 AS cor0
----
108
118
92

query I rowsort
SELECT DISTINCT - col0 - col2 + 3 - col1 AS col2 FROM tab2 AS cor0
----
-117
-178
-197

query I rowsort
SELECT 56 FROM tab1 AS cor0 WHERE col1 < - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - + 41 col0 FROM tab1 AS cor0
----
-1927
-205
-574

query I rowsort
SELECT DISTINCT col2 + 34 + - col1 FROM tab1 cor0
----
116
55
88

onlyif mysql # aggregate syntax: 
query I rowsort label-943
SELECT DISTINCT - COUNT( * ) - + 28 AS col0 FROM tab0 AS cor0
----
-31

skipif mysql # not compatible
query I rowsort label-943
SELECT DISTINCT - COUNT ( * ) - + 28 AS col0 FROM tab0 AS cor0
----
-31

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

query I rowsort
SELECT DISTINCT 76 - - col2 * - col2 * + col2 FROM tab2
----
-12091
-195036
-63924

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

onlyif mysql # aggregate syntax: 
query I rowsort label-947
SELECT ALL MIN( - + col2 ) AS col1 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-947
SELECT ALL MIN ( - + col2 ) AS col1 FROM tab0
----
-99

query I rowsort
SELECT col2 * 68 FROM tab2
----
1564
2720
3944

query I rowsort
SELECT - col2 * + 89 AS col2 FROM tab0
----
-4183
-8811
-890

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-952
SELECT DISTINCT 99, + CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
99
NULL

skipif mysql # not compatible
query II rowsort label-952
SELECT DISTINCT 99, + CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
99
NULL

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

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT - col0 BETWEEN NULL AND - col0
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-955
SELECT ALL * FROM tab1 AS cor0 WHERE NULL <> CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-955
SELECT ALL * FROM tab1 AS cor0 WHERE NULL <> CAST ( NULL AS REAL )
----

query I rowsort
SELECT - ( + col0 ) FROM tab2 AS cor0 WHERE NOT ( NOT + + col1 <> ( + + 57 ) )
----
-46
-64
-75

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-958
SELECT - MIN( ALL - col1 ) * + CAST( - COUNT( * ) AS SIGNED ) * + 8 + + 57 FROM tab0 cor0
----
-1887

skipif mysql # not compatible
query I rowsort label-958
SELECT - MIN ( ALL - col1 ) * + CAST ( - COUNT ( * ) AS INTEGER ) * + 8 + + 57 FROM tab0 cor0
----
-1887

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

query I rowsort
SELECT + + 37 * + + ( + 88 ) * col2 * - 88 FROM tab2 AS cor0
----
-11461120
-16618624
-6590144

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + - col0 col1 FROM tab1 cor0
----
-4896
-5015
-6188

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

onlyif mysql # DIV for integer division: 
query II rowsort label-963
SELECT ALL col2 DIV - + col0 AS col1, - col2 FROM tab0 AS cor0
----
-1
-99
-3
-47
0
-10

skipif mysql # not compatible
query II rowsort label-963
SELECT ALL col2 / - + col0 AS col1, - col2 FROM tab0 AS cor0
----
-1
-99
-3
-47
0
-10

query I rowsort
SELECT - col0 * + col0 + + 55 FROM tab2 AS cor0
----
-2061
-4041
-5570

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1, col2 * 9 * col1 * + - col1 col0 FROM tab1
----
14
-169344
47
-1351908
5
-13275

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-968
SELECT ALL 49 AS col1, COUNT( * ) - - 78 AS col2 FROM tab2
----
49
81

skipif mysql # not compatible
query II rowsort label-968
SELECT ALL 49 AS col1, COUNT ( * ) - - 78 AS col2 FROM tab2
----
49
81

onlyif mysql # aggregate syntax: 
query I rowsort label-969
SELECT ( + COUNT( * ) ) + + MIN( DISTINCT + ( col2 ) ) AS col1 FROM tab1
----
62

skipif mysql # not compatible
query I rowsort label-969
SELECT ( + COUNT ( * ) ) + + MIN ( DISTINCT + ( col2 ) ) AS col1 FROM tab1
----
62

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

query I rowsort
SELECT DISTINCT - + ( + 56 ) + - col1 FROM tab0 AS cor0
----
-137
-57
-77

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 BETWEEN - col2 AND - + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + ( ( + - 9 ) ) - - col1 + 70 col1 FROM tab0 AS cor0
----
100
160
80

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

query I rowsort
SELECT + col2 + - 95 FROM tab1 AS cor0 WHERE 55 NOT BETWEEN - 22 / col0 * + col0 - - ( - col1 ) AND 36
----
-27
-36
1

onlyif mysql # aggregate syntax: 
query I rowsort label-976
SELECT ALL 55 * ( - + COUNT( * ) ) + + MAX( DISTINCT col2 ) AS col0 FROM tab2 cor0
----
-107

skipif mysql # not compatible
query I rowsort label-976
SELECT ALL 55 * ( - + COUNT ( * ) ) + + MAX ( DISTINCT col2 ) AS col0 FROM tab2 cor0
----
-107

query I rowsort
SELECT - + 34 - + + col0 * + col0 FROM tab2 AS cor0
----
-2150
-4130
-5659

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

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

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

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

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

query I rowsort
SELECT col0 * + 5 * col2 AS col1 FROM tab0
----
3525
4350
48015

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

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

query I rowsort
SELECT + ( - - 12 ) FROM tab1
----
12
12
12

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col1 > NULL
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-986
SELECT DISTINCT col1 col2, + CAST ( NULL AS INTEGER ) FROM tab2
----
51
NULL
67
NULL
77
NULL

query I rowsort
SELECT DISTINCT - col2 * + ( 69 ) * col0 + - ( + 13 ) FROM tab2 WHERE NOT - col0 / + + 62 >= NULL
----

query I rowsort
SELECT - col2 * - - 72 AS col1 FROM tab2
----
-1656
-2880
-4176

query II rowsort
SELECT ALL col0 + + col1 * - + col0 AS col0, - col1 FROM tab2 WHERE + 31 - - col2 <> - 53
----
-2300
-51
-4864
-77
-4950
-67

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-994
SELECT - + SUM( - 95 ) FROM tab0 AS cor0
----
285

skipif mysql # not compatible
query I rowsort label-994
SELECT - + SUM ( - 95 ) FROM tab0 AS cor0
----
285

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-995
SELECT DISTINCT 50, - CAST( + ( + CAST( NULL AS SIGNED ) ) AS SIGNED ) AS col0 FROM tab1
----
50
NULL

skipif mysql # not compatible
query II rowsort label-995
SELECT DISTINCT 50, - CAST ( + ( + CAST ( NULL AS INTEGER ) ) AS INTEGER ) AS col0 FROM tab1
----
50
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-997
SELECT COUNT( * ) + - + 25 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-16

skipif mysql # not compatible
query I rowsort label-997
SELECT COUNT ( * ) + - + 25 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-16

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

query I rowsort
SELECT DISTINCT col1 - + 71 AS col1 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN + ( - col1 ) AND NULL
----

query I rowsort
SELECT 95 * + 32 + + col0 AS col0 FROM tab0 AS cor0
----
3055
3127
3137

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1003
SELECT ALL + 81 * 29 DIV - + 19 FROM tab1
----
-123
-123
-123

skipif mysql # not compatible
query I rowsort label-1003
SELECT ALL + 81 * 29 / - + 19 FROM tab1
----
-123
-123
-123

query I rowsort
SELECT ALL col2 + + 36 + col1 AS col0 FROM tab0
----
136
164
67

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

query I rowsort
SELECT DISTINCT - 13 + + - ( + col1 ) * + - 51 AS col0 FROM tab0
----
1058
38
4118

query I rowsort
SELECT ALL 16 * - + 43 - - col1 AS col0 FROM tab1
----
-641
-674
-683

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 8 col0 FROM tab2 AS cor0
----
8

query II rowsort
SELECT DISTINCT col2 - + + ( - + ( + - col1 ) ), + col0 * + col1 AS col0 FROM tab1
----
21
4277
54
425
82
714

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1010
SELECT - CAST( + COUNT( * ) AS SIGNED ) * 15 * CAST( - COUNT( * ) AS SIGNED ) * - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-10935

skipif mysql # not compatible
query I rowsort label-1010
SELECT - CAST ( + COUNT ( * ) AS INTEGER ) * 15 * CAST ( - COUNT ( * ) AS INTEGER ) * - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-10935

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT ALL - col0 + 58 * + - col1 AS col2, + col0 col2, col0 FROM tab2 AS cor0
----
9 values hashing to 384b049f5d912207ac3220c4fea04638

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1012
SELECT DISTINCT 60 DIV - + CAST( ( + + 62 ) AS SIGNED ) FROM tab2 AS cor0
----
0

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1017
SELECT ALL - 55 * + COUNT( * ) AS col2 FROM tab2, tab0 AS cor0
----
-495

skipif mysql # not compatible
query I rowsort label-1017
SELECT ALL - 55 * + COUNT ( * ) AS col2 FROM tab2, tab0 AS cor0
----
-495

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

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

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

skipif mysql # not compatible
query I rowsort label-1019
SELECT COUNT ( ALL + col2 ) / CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + 99 col2, col1 FROM tab2 WHERE NOT - - col2 + - col0 + - ( - col0 ) IS NOT NULL
----

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

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

query II rowsort
SELECT ALL + col2 AS col0, - col1 * 57 + + + 26 + - col0 * - col1 * + col2 AS col2 FROM tab2
----
23
51077
40
192757
58
287657

query I rowsort
SELECT ALL col2 + + 75 FROM tab0
----
122
174
85

query II rowsort
SELECT DISTINCT - col2 AS col0, + 24 * - col0 FROM tab0 WHERE - + col0 BETWEEN + col1 AND NULL
----

query I rowsort
SELECT DISTINCT - col0 + + + 66 * + col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
3315
5525
5915

query I rowsort
SELECT - 54 * - - 53 - - ( 16 ) AS col2 FROM tab2 AS cor0
----
-2846
-2846
-2846

onlyif mysql # aggregate syntax: 
query I rowsort label-1028
SELECT ALL COUNT( * ) + SUM( + col2 ) FROM tab1 cor0
----
226

skipif mysql # not compatible
query I rowsort label-1028
SELECT ALL COUNT ( * ) + SUM ( + col2 ) FROM tab1 cor0
----
226

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

query I rowsort
SELECT col1 * 8 AS col0 FROM tab1 AS cor0
----
112
376
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 col0, 67 AS col2 FROM tab1
----
51
67
85
67
91
67

query II rowsort
SELECT 74 AS col1, 63 FROM tab1
----
74
63
74
63
74
63

query I rowsort
SELECT ALL + col1 * - 84 FROM tab0
----
-1764
-6804
-84

query I rowsort
SELECT 33 + col0 FROM tab1
----
118
124
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 15 + 45 col2 FROM tab0
----
60

query I rowsort
SELECT 67 + - col2 FROM tab2
----
27
44
9

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

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

query I rowsort
SELECT 92 + col0 - - col1 AS col1 FROM tab2
----
189
233
234

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + - col1 * - col1 col2 FROM tab1
----
1475
150212
18816

onlyif mysql # aggregate syntax: 
query I rowsort label-1040
SELECT ALL COUNT( ALL - col1 ) + 32 FROM tab0
----
35

skipif mysql # not compatible
query I rowsort label-1040
SELECT ALL COUNT ( ALL - col1 ) + 32 FROM tab0
----
35

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

skipif mysql # not compatible
query I rowsort label-1041
SELECT ( - COUNT ( * ) ) + + ( + 39 ) + 69 FROM tab2
----
105

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

query I rowsort
SELECT DISTINCT col0 + - 11 + - + col2 AS col0 FROM tab2 cor0
----
12
13
6

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1045
SELECT DISTINCT CAST( - 69 AS SIGNED ) - 25 * + + col1 FROM tab1
----
-1244
-194
-419

skipif mysql # not compatible
query I rowsort label-1045
SELECT DISTINCT CAST ( - 69 AS INTEGER ) - 25 * + + col1 FROM tab1
----
-1244
-194
-419

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

skipif mysql # not compatible
query I rowsort label-1046
SELECT ALL 7 / + - COUNT ( * ) FROM tab0
----
-2

query I rowsort
SELECT DISTINCT + 86 AS col2 FROM tab0 AS cor0 WHERE NULL > col0
----

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

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

query I rowsort
SELECT ALL - - col1 * + - col1 + - + 45 * col2 FROM tab1 AS cor0
----
-2680
-4516
-5269

query I rowsort
SELECT - + col2 * + col0 * 74 FROM tab1 AS cor0
----
-362304
-371110
-457912

query I rowsort
SELECT 95 AS col0 FROM tab2 cor0
----
95
95
95

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1053
SELECT * FROM tab0 WHERE NOT - 37 * - - 68 + col0 = - CAST( + col0 AS SIGNED )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-1053
SELECT * FROM tab0 WHERE NOT - 37 * - - 68 + col0 = - CAST ( + col0 AS INTEGER )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 73 * 40 col2 FROM tab2
----
2920
2920
2920

query I rowsort
SELECT DISTINCT + 44 * - + 97 + - col0 + - + 34 + - col2 + + 44 AS col1 FROM tab0 WHERE 96 * - 70 * + - col2 + - ( + col0 ) * col2 * - 44 IS NULL
----

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

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

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

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

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

query I rowsort
SELECT DISTINCT - 11 * + 92 * + - 31 FROM tab2 AS cor0
----
31372

onlyif mysql # DIV for integer division: 
query I rowsort label-1061
SELECT + col1 DIV col1 * + + 98 FROM tab0
----
98
98
98

skipif mysql # not compatible
query I rowsort label-1061
SELECT + col1 / col1 * + + 98 FROM tab0
----
98
98
98

onlyif mysql # DIV for integer division: 
query I rowsort label-1062
SELECT - col0 DIV col1 + col2 AS col1 FROM tab1 AS cor0
----
42
67
93

skipif mysql # not compatible
query I rowsort label-1062
SELECT - col0 / col1 + col2 AS col1 FROM tab1 AS cor0
----
42
67
93

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL < 46
----

query I rowsort
SELECT ALL col0 * - ( - 2 ) FROM tab2 AS cor0
----
128
150
92

query I rowsort
SELECT - 84 * - + 21 AS col1 FROM tab1 AS cor0
----
1764
1764
1764

query I rowsort
SELECT ALL + col0 * + 33 AS col0 FROM tab0 AS cor0
----
2871
3201
495

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

query I rowsort
SELECT ALL col1 * + 14 AS col1 FROM tab0
----
1134
14
294

onlyif mysql # aggregate syntax: 
query I rowsort label-1069
SELECT - COUNT( + 6 ) col1 FROM tab0
----
-3

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

query I rowsort
SELECT col0 - - col1 + - + ( + + col2 ) AS col2 FROM tab2
----
101
74
84

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

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

query I rowsort
SELECT DISTINCT 25 * - 33 - + - col2 + - + 67 * 79 + - col1 * - col1 * + + 45 AS col1 FROM tab2 AS cor0
----
110950
195945
260727

query I rowsort
SELECT col2 * 20 - - + col0 AS col1 FROM tab2 AS cor0
----
1235
506
864

query I rowsort
SELECT DISTINCT + 77 - - 0 FROM tab1 AS cor0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-1075
SELECT + - MIN( - + col2 ) + - 81 FROM tab0 cor0
----
18

skipif mysql # not compatible
query I rowsort label-1075
SELECT + - MIN ( - + col2 ) + - 81 FROM tab0 cor0
----
18

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1077
SELECT col1 DIV 91 AS col2, - 58 - - - col2 FROM tab2
----
0
-116
0
-81
0
-98

skipif mysql # not compatible
query II rowsort label-1077
SELECT col1 / 91 AS col2, - 58 - - - col2 FROM tab2
----
0
-116
0
-81
0
-98

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE 58 IS NULL
----

query II rowsort
SELECT ALL col2, 97 AS col2 FROM tab0
----
10
97
47
97
99
97

query I rowsort
SELECT col2 * - + 37 * + ( col1 ) FROM tab1
----
-10915
-118252
-49728

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1082
SELECT ALL COUNT( ALL - - 90 ) * - + COUNT( DISTINCT 73 ) + MIN( - - col2 ) FROM tab1 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-1082
SELECT ALL COUNT ( ALL - - 90 ) * - + COUNT ( DISTINCT 73 ) + MIN ( - - col2 ) FROM tab1 AS cor0
----
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1083
SELECT ALL + COUNT( * ), + COUNT( * ) + + SUM( col2 ) DIV ( 5 ) AS col0 FROM tab1 AS cor0
----
3
47

skipif mysql # not compatible
query II rowsort label-1083
SELECT ALL + COUNT ( * ), + COUNT ( * ) + + SUM ( col2 ) / ( 5 ) AS col0 FROM tab1 AS cor0
----
3
47

query I rowsort
SELECT ALL + col1 * + ( - col2 ) - + + col0 FROM tab0 AS cor0
----
-196
-297
-3822

query I rowsort
SELECT ALL col2 FROM tab0 AS cor0 WHERE NOT + col2 / - + col1 NOT BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1086
SELECT ALL + - 93 DIV 77 DIV + ( - - col1 ) FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1086
SELECT ALL + - 93 / 77 / + ( - - col1 ) FROM tab2 AS cor0
----
0
0
0

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

query II rowsort
SELECT ALL 42 * 12 AS col1, col0 FROM tab1
----
504
51
504
85
504
91

query I rowsort
SELECT ALL - col2 * + + col0 * 61 AS col2 FROM tab0
----
-43005
-53070
-585783

onlyif mysql # DIV for integer division: 
query I rowsort label-1090
SELECT DISTINCT + 53 DIV + col1 FROM tab0
----
0
2
53

skipif mysql # not compatible
query I rowsort label-1090
SELECT DISTINCT + 53 / + col1 FROM tab0
----
0
2
53

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1093
SELECT + COUNT( * ) * + + 17 AS col0 FROM tab0
----
51

skipif mysql # not compatible
query I rowsort label-1093
SELECT + COUNT ( * ) * + + 17 AS col0 FROM tab0
----
51

onlyif mysql # aggregate syntax: 
query II rowsort label-1094
SELECT + COUNT( * ) * - COUNT( * ) AS col1, - 15 FROM tab2 AS cor0
----
-9
-15

skipif mysql # not compatible
query II rowsort label-1094
SELECT + COUNT ( * ) * - COUNT ( * ) AS col1, - 15 FROM tab2 AS cor0
----
-9
-15

onlyif mysql # DIV for integer division: 
query II rowsort label-1095
SELECT DISTINCT + col1 * col1 AS col0, - col0 DIV - + col1 FROM tab1 AS cor0
----
196
3
2209
1
25
17

skipif mysql # not compatible
query II rowsort label-1095
SELECT DISTINCT + col1 * col1 AS col0, - col0 / - + col1 FROM tab1 AS cor0
----
196
3
2209
1
25
17

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1096
SELECT DISTINCT - + CAST( NULL AS SIGNED ) * - - 32 * + col0 * + 9 + - col0 AS col0, - col0 col0 FROM tab1 AS cor0
----
NULL
-51
NULL
-85
NULL
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1096
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * - - 32 * + col0 * + 9 + - col0 AS col0, - col0 col0 FROM tab1 AS cor0
----
NULL
-51
NULL
-85
NULL
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 40 col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1099
SELECT + COUNT( * ) * 56 col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
504

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1099
SELECT + COUNT ( * ) * 56 col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
504

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

skipif mysql # not compatible
query I rowsort label-1100
SELECT ALL + 74 + - COUNT ( * ) FROM tab0
----
71

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1101
SELECT - COUNT ( * ) - - - COUNT ( * ) col0 FROM tab1 AS cor0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-1102
SELECT ALL + 61 - + MAX( 81 ) + MIN( - 44 ) col1 FROM tab1 AS cor0
----
-64

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1102
SELECT ALL + 61 - + MAX ( 81 ) + MIN ( - 44 ) col1 FROM tab1 AS cor0
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-1103
SELECT COUNT( * ) + - - 97 + + 22 * + 28 FROM tab1
----
716

skipif mysql # not compatible
query I rowsort label-1103
SELECT COUNT ( * ) + - - 97 + + 22 * + 28 FROM tab1
----
716

query I rowsort
SELECT + 89 * col0 + - 13 AS col1 FROM tab0
----
1322
7730
8620

query I rowsort
SELECT - 48 + - - col2 + + col2 FROM tab2
----
-2
32
68

query I rowsort
SELECT - 94 + + ( + + col0 ) + col0 FROM tab2
----
-2
34
56

query I rowsort
SELECT + 52 * AVG ( col1 ) AS col1 FROM tab2 AS cor0 WHERE NOT - col1 <= ( + + 30 * + 81 * + + col2 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1108
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( 29, + CAST( col1 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-1108
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( 29, + CAST ( col1 AS INTEGER ) )
----

query I rowsort
SELECT ALL col1 * - - 91 FROM tab0
----
1911
7371
91

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 + - 41 NOT BETWEEN - 72 AND + 86 * + + 72
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT + 1 col0, col0 + 58 AS col1, - col0 AS col0 FROM tab1 AS cor0
----
9 values hashing to 82003d4dc53d8a2b5716766927092770

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1113
SELECT ALL + + col0 DIV + col1 FROM tab1 AS cor0
----
1
17
3

skipif mysql # not compatible
query I rowsort label-1113
SELECT ALL + + col0 / + col1 FROM tab1 AS cor0
----
1
17
3

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

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

query II rowsort
SELECT - col2 AS col1, - ( - - 42 ) AS col2 FROM tab1
----
-59
-42
-68
-42
-96
-42

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1117
SELECT ALL - 45 * - COUNT( - col0 ) FROM tab0 WHERE NULL <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-1117
SELECT ALL - 45 * - COUNT ( - col0 ) FROM tab0 WHERE NULL <> NULL
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1119
SELECT ALL SUM( - col1 ) + + 91 FROM tab2 cor0 WHERE NOT NULL = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1119
SELECT ALL SUM ( - col1 ) + + 91 FROM tab2 cor0 WHERE NOT NULL = NULL
----
NULL

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

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

query I rowsort
SELECT + 67 * + - 50 * + ( + + 12 ) * + col1 * + col2 + col2 AS col1 FROM tab0 AS cor0
----
-153041353
-3979701
-8441990

onlyif mysql # aggregate syntax: 
query I rowsort label-1123
SELECT ALL + SUM( - 72 ) - + - MAX( col1 ) AS col2 FROM tab1 AS cor0
----
-169

skipif mysql # not compatible
query I rowsort label-1123
SELECT ALL + SUM ( - 72 ) - + - MAX ( col1 ) AS col2 FROM tab1 AS cor0
----
-169

query I rowsort
SELECT + 60 + - - col2 FROM tab2 AS cor0
----
100
118
83

query I rowsort
SELECT ALL col0 + + 25 - - col1 * 19 AS col0 FROM tab2 AS cor0
----
1040
1373
1552

query I rowsort
SELECT + + 2 + - + col2 FROM tab0 AS cor0
----
-45
-8
-97

query I rowsort
SELECT + col2 * - 40 AS col0 FROM tab0 cor0
----
-1880
-3960
-400

query I rowsort
SELECT - + ( - 41 ) * col0 FROM tab2 AS cor0
----
1886
2624
3075

query I rowsort
SELECT - col2 * - col0 + - + 76 FROM tab0 AS cor0
----
629
794
9527

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

query I rowsort
SELECT DISTINCT + col2 - + - 13 FROM tab2
----
36
53
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1132
SELECT DISTINCT - col2 + - ( col0 ) + - ( + CAST( - 36 AS SIGNED ) ) AS col0 FROM tab1 WHERE NOT - 84 BETWEEN + + col0 * + 80 * 75 - + - 4 AND NULL
----
-108
-111
-123

skipif mysql # not compatible
query I rowsort label-1132
SELECT DISTINCT - col2 + - ( col0 ) + - ( + CAST ( - 36 AS INTEGER ) ) AS col0 FROM tab1 WHERE NOT - 84 BETWEEN + + col0 * + 80 * 75 - + - 4 AND NULL
----
-108
-111
-123

query I rowsort
SELECT ALL - + col0 AS col1 FROM tab0 WHERE NOT - 71 >= + - col2
----
-15
-87

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1135
SELECT ALL ( + 1 ) col1 FROM tab2 WHERE NOT CAST ( NULL AS INTEGER ) > + - CAST ( - ( + col1 ) AS INTEGER )
----

query I rowsort
SELECT DISTINCT - 36 + + col1 AS col1 FROM tab1
----
-22
-31
11

onlyif mysql # aggregate syntax: 
query I rowsort label-1137
SELECT 28 - SUM( - col0 ) FROM tab2
----
213

skipif mysql # not compatible
query I rowsort label-1137
SELECT 28 - SUM ( - col0 ) FROM tab2
----
213

query I rowsort
SELECT DISTINCT - col1 FROM tab0 WHERE 14 IS NOT NULL
----
-1
-21
-81

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1142
SELECT DISTINCT - - 36 * - COUNT( * ) FROM tab0 AS cor0 WHERE + 66 * + col2 IS NOT NULL
----
-108

skipif mysql # not compatible
query I rowsort label-1142
SELECT DISTINCT - - 36 * - COUNT ( * ) FROM tab0 AS cor0 WHERE + 66 * + col2 IS NOT NULL
----
-108

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

query I rowsort
SELECT ALL - 33 FROM tab2 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 8035c665a75d22be5922be1a4e574e03

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1145
SELECT ALL - col0 * + col0 AS col0, - col2 * - + CAST( NULL AS SIGNED ) FROM tab1
----
-2601
NULL
-7225
NULL
-8281
NULL

skipif mysql # not compatible
query II rowsort label-1145
SELECT ALL - col0 * + col0 AS col0, - col2 * - + CAST ( NULL AS INTEGER ) FROM tab1
----
-2601
NULL
-7225
NULL
-8281
NULL

query I rowsort
SELECT + col1 * + + 35 + + 16 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
2851
51
751

onlyif mysql # DIV for integer division: 
query II rowsort label-1147
SELECT ( + + col1 ), col0 DIV col1 AS col2 FROM tab0 AS cor0
----
1
97
21
4
81
0

skipif mysql # not compatible
query II rowsort label-1147
SELECT ( + + col1 ), col0 / col1 AS col2 FROM tab0 AS cor0
----
1
97
21
4
81
0

query II rowsort
SELECT DISTINCT + - col0 AS col1, col2 FROM tab2 WHERE NOT + 26 + ( - - col1 ) IS NULL
----
-46
23
-64
40
-75
58

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

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

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

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

query II rowsort
SELECT col0, + col0 * + + col0 FROM tab2
----
46
2116
64
4096
75
5625

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1153
SELECT DISTINCT + 8 + - COUNT( * ) FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-1153
SELECT DISTINCT + 8 + - COUNT ( * ) FROM tab1
----
5

query I rowsort
SELECT ALL col1 + - 63 AS col1 FROM tab0
----
-42
-62
18

onlyif mysql # aggregate syntax: 
query I rowsort label-1155
SELECT SUM( ALL - 6 ) AS col1 FROM tab2
----
-18

skipif mysql # not compatible
query I rowsort label-1155
SELECT SUM ( ALL - 6 ) AS col1 FROM tab2
----
-18

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

query I rowsort
SELECT col1 * - col1 + - col1 + col0 + 64 * + + col2 FROM tab2 AS cor0
----
-1134
-3382
-769

query II rowsort
SELECT DISTINCT + col2, 17 + - + col0 AS col2 FROM tab0 WHERE NOT col1 IS NOT NULL
----

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

query I rowsort
SELECT ALL col1 + + 20 AS col2 FROM tab0 AS cor0
----
101
21
41

query I rowsort
SELECT DISTINCT col1 * + - 29 + - - col1 * + col0 FROM tab2 AS cor0
----
2695
3082
867

query I rowsort
SELECT DISTINCT + - col1 - + col2 + - col1 - - col0 AS col1 FROM tab1 AS cor0
----
-71
-73
16

query I rowsort
SELECT DISTINCT + col2 * + ( - col2 ) * 75 + col0 FROM tab0 AS cor0
----
-165660
-734978
-7413

onlyif mysql # aggregate syntax: 
query I rowsort label-1164
SELECT ALL 12 - - MIN( - + col2 ) FROM tab0 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-1164
SELECT ALL 12 - - MIN ( - + col2 ) FROM tab0 AS cor0
----
-87

query I rowsort
SELECT DISTINCT - 6 - - - 13 * + - col1 FROM tab0 AS cor0
----
1047
267
7

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1167
SELECT MIN( DISTINCT + col0 ) + + COUNT( * ) AS col2, - 40 col0 FROM tab0
----
18
-40

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1167
SELECT MIN ( DISTINCT + col0 ) + + COUNT ( * ) AS col2, - 40 col0 FROM tab0
----
18
-40

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1168
SELECT ALL + 75 * - 10 col2, ( + 76 ) + + + CAST( col1 AS SIGNED ) FROM tab0
----
-750
157
-750
77
-750
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1168
SELECT ALL + 75 * - 10 col2, ( + 76 ) + + + CAST ( col1 AS INTEGER ) FROM tab0
----
-750
157
-750
77
-750
97

onlyif mysql # DIV for integer division: 
query I rowsort label-1169
SELECT col2 DIV + col1 + + col0 AS col1 FROM tab1 AS cor0 WHERE NOT 78 + col1 IS NULL
----
57
92
96

skipif mysql # not compatible
query I rowsort label-1169
SELECT col2 / + col1 + + col0 AS col1 FROM tab1 AS cor0 WHERE NOT 78 + col1 IS NULL
----
57
92
96

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1174
SELECT col2 + 31 DIV - 47 AS col1 FROM tab0 AS cor0 WHERE NOT ( NOT ( NOT NULL IS NOT NULL ) )
----
10
47
99

skipif mysql # not compatible
query I rowsort label-1174
SELECT col2 + 31 / - 47 AS col1 FROM tab0 AS cor0 WHERE NOT ( NOT ( NOT NULL IS NOT NULL ) )
----
10
47
99

onlyif mysql # DIV for integer division: 
query II rowsort label-1175
SELECT col0 * - col0 + col0 + - col2 + ( + col2 ) + - col2 * col2 AS col0, col0 DIV + - col0 AS col1 FROM tab0 cor0
----
-19113
-1
-2419
-1
-7582
-1

skipif mysql # not compatible
query II rowsort label-1175
SELECT col0 * - col0 + col0 + - col2 + ( + col2 ) + - col2 * col2 AS col0, col0 / + - col0 AS col1 FROM tab0 cor0
----
-19113
-1
-2419
-1
-7582
-1

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

query I rowsort
SELECT + 25 AS col2 FROM tab2 AS cor0 WHERE NOT - 89 = - - 28 + + - col2
----
25
25
25

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1179
SELECT ALL 78 * + COUNT( * ) FROM tab1
----
234

skipif mysql # not compatible
query I rowsort label-1179
SELECT ALL 78 * + COUNT ( * ) FROM tab1
----
234

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1180
SELECT DISTINCT - MIN( + CAST( - 46 AS SIGNED ) ) FROM tab1 WHERE NULL > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1180
SELECT DISTINCT - MIN ( + CAST ( - 46 AS INTEGER ) ) FROM tab1 WHERE NULL > NULL
----
NULL

query I rowsort
SELECT ALL col1 + + col1 * + 66 AS col2 FROM tab1
----
3149
335
938

query II rowsort
SELECT - col0 * + col1 AS col0, col2 + - col2 AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col1 + 14 AS col0 FROM tab1
----
19
28
61

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1186
SELECT DISTINCT - col2 + + - 12 * 57 col2, col1 + col1 DIV 54 FROM tab1 AS cor0
----
-743
5
-752
47
-780
14

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1186
SELECT DISTINCT - col2 + + - 12 * 57 col2, col1 + col1 / 54 FROM tab1 AS cor0
----
-743
5
-752
47
-780
14

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

query I rowsort
SELECT ALL - col0 * - ( 82 ) AS col2 FROM tab1 AS cor0
----
4182
6970
7462

onlyif mysql # aggregate syntax: 
query I rowsort label-1189
SELECT COUNT( * ) FROM tab1 AS cor0 WHERE col2 >= ( - + col2 * + + 52 )
----
3

skipif mysql # not compatible
query I rowsort label-1189
SELECT COUNT ( * ) FROM tab1 AS cor0 WHERE col2 >= ( - + col2 * + + 52 )
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-1190
SELECT col0 AS col2, col2 DIV - col0 FROM tab0
----
15
-3
87
0
97
-1

skipif mysql # not compatible
query II rowsort label-1190
SELECT col0 AS col2, col2 / - col0 FROM tab0
----
15
-3
87
0
97
-1

query I rowsort
SELECT DISTINCT + 14 * - col2 AS col0 FROM tab2
----
-322
-560
-812

query I rowsort
SELECT ALL col2 * - + 55 FROM tab2
----
-1265
-2200
-3190

onlyif mysql # DIV for integer division: 
query I rowsort label-1193
SELECT DISTINCT col2 DIV col0 * 31 FROM tab1
----
0
31

skipif mysql # not compatible
query I rowsort label-1193
SELECT DISTINCT col2 / col0 * 31 FROM tab1
----
0
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - + col0 col0 FROM tab0
----
705
870
9603

query I rowsort
SELECT - ( + + col1 ) AS col1 FROM tab1 WHERE NOT + col0 - 98 + + 19 IS NULL
----
-14
-47
-5

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1199
SELECT DISTINCT + MAX( DISTINCT 58 ) + 47 AS col0 FROM tab0 AS cor0
----
105

skipif mysql # not compatible
query I rowsort label-1199
SELECT DISTINCT + MAX ( DISTINCT 58 ) + 47 AS col0 FROM tab0 AS cor0
----
105

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

query I rowsort
SELECT ALL + 39 AS col1 FROM tab2 cor0 WHERE NOT - col1 <> NULL
----

query I rowsort
SELECT ALL - - 97 FROM tab1 cor0
----
97
97
97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + 15 ) = 32 / - col1
----

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1206
SELECT - + col1 - 54 * - col0, 52 * col2 + + + col0 FROM tab1 WHERE + CAST( NULL AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-1206
SELECT - + col1 - 54 * - col0, 52 * col2 + + + col0 FROM tab1 WHERE + CAST ( NULL AS REAL ) IS NOT NULL
----

query I rowsort
SELECT 57 + - col1 AS col2 FROM tab1
----
10
43
52

query I rowsort
SELECT - col0 * - col1 + - 26 * - + col0 FROM tab1
----
2040
2635
6643

query I rowsort
SELECT DISTINCT col2 + 39 + col2 + - ( col0 ) AS col1 FROM tab0 WHERE NOT NULL < - - col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1210
SELECT DISTINCT CAST( NULL AS SIGNED ) + MIN( - 26 ) FROM tab2
----
NULL

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

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

query I rowsort
SELECT DISTINCT + col0 * + col2 + col1 FROM tab2
----
1109
2637
4417

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - 2 * ( col0 ), 69 col2 FROM tab1 AS cor0
----
102
69
170
69
182
69

query I rowsort
SELECT col0 * + 67 + + - col1 FROM tab1 AS cor0
----
3403
5690
6050

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1218
SELECT DISTINCT ( COUNT( DISTINCT 68 ) ) col2 FROM tab2
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1218
SELECT DISTINCT ( COUNT ( DISTINCT 68 ) ) col2 FROM tab2
----
1

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

query I rowsort
SELECT col2 AS col1 FROM tab1 WHERE NOT col2 / - 61 + col2 IS NOT NULL
----

query I rowsort
SELECT col2 * + 67 + col2 AS col2 FROM tab0
----
3196
6732
680

onlyif mysql # DIV for integer division: 
query I rowsort label-1222
SELECT ALL - col0 DIV col0 + - col2 AS col0 FROM tab2
----
-24
-41
-59

skipif mysql # not compatible
query I rowsort label-1222
SELECT ALL - col0 / col0 + - col2 AS col0 FROM tab2
----
-24
-41
-59

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1225
SELECT ALL col1 + + ( col0 + - col1 DIV + col1 ) FROM tab1
----
137
64
89

skipif mysql # not compatible
query I rowsort label-1225
SELECT ALL col1 + + ( col0 + - col1 / + col1 ) FROM tab1
----
137
64
89

query III rowsort
SELECT * FROM tab0 WHERE ( + 40 / - 95 ) <> - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1227
SELECT CAST( NULL AS DECIMAL ) / 56 col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1227
SELECT CAST ( NULL AS REAL ) / 56 col2 FROM tab0
----
NULL
NULL
NULL

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1229
SELECT ALL * FROM tab2 WHERE - ( col1 ) <> 89 / + CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-1229
SELECT ALL * FROM tab2 WHERE - ( col1 ) <> 89 / + CAST ( NULL AS REAL )
----

query I rowsort
SELECT + col2 + - col1 * + col2 AS col1 FROM tab0
----
-200
-3760
0

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

query I rowsort
SELECT + 13 + - 64 AS col1 FROM tab1
----
-51
-51
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-1233
SELECT - MAX( DISTINCT - col0 ) FROM tab2 WHERE NULL <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1233
SELECT - MAX ( DISTINCT - col0 ) FROM tab2 WHERE NULL <> NULL
----
NULL

query I rowsort
SELECT col2 AS col2 FROM tab2 WHERE NOT 74 <> ( col0 )
----

query I rowsort
SELECT 13 - + 39 FROM tab1
----
-26
-26
-26

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

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

query I rowsort
SELECT col2 * - col2 FROM tab0 WHERE + col1 - - 73 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE ( + 18 * + col1 ) IS NULL
----

query I rowsort
SELECT ALL col0 * 41 AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
2091
3485
3731

onlyif mysql # aggregate syntax: 
query I rowsort label-1240
SELECT COUNT( * ) FROM tab1 WHERE NOT NULL NOT BETWEEN - col0 AND ( col2 )
----
0

skipif mysql # not compatible
query I rowsort label-1240
SELECT COUNT ( * ) FROM tab1 WHERE NOT NULL NOT BETWEEN - col0 AND ( col2 )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col1 ) col1 FROM tab0 WHERE ( 70 + - 58 ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1242
SELECT + CAST( MIN( DISTINCT 47 ) AS SIGNED ) FROM tab2
----
47

skipif mysql # not compatible
query I rowsort label-1242
SELECT + CAST ( MIN ( DISTINCT 47 ) AS INTEGER ) FROM tab2
----
47

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

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

query I rowsort
SELECT - col2 * 57 FROM tab2 AS cor0
----
-1311
-2280
-3306

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

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

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

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

query I rowsort
SELECT 17 * + col2 FROM tab1 cor0
----
1003
1156
1632

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

query I rowsort
SELECT DISTINCT - 69 + col0 AS col0 FROM tab1
----
-18
16
22

query I rowsort
SELECT DISTINCT - 34 FROM tab1 WHERE - 79 * col0 - 23 * - ( col1 ) = col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1251
SELECT + MIN( DISTINCT 95 ) FROM tab1 AS cor0 CROSS JOIN tab0
----
95

skipif mysql # not compatible
query I rowsort label-1251
SELECT + MIN ( DISTINCT 95 ) FROM tab1 AS cor0 CROSS JOIN tab0
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-1252
SELECT DISTINCT MIN( - ( ( 86 ) ) ) + 69 FROM tab2
----
-17

skipif mysql # not compatible
query I rowsort label-1252
SELECT DISTINCT MIN ( - ( ( 86 ) ) ) + 69 FROM tab2
----
-17

query I rowsort
SELECT ALL + + col1 + + 33 AS col1 FROM tab1 AS cor0
----
38
47
80

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1255
SELECT 12 * 84 + + COUNT( * ) AS col2 FROM tab2 AS cor0
----
1011

skipif mysql # not compatible
query I rowsort label-1255
SELECT 12 * 84 + + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
1011

query I rowsort
SELECT col0 + + ( + 57 ) AS col2 FROM tab1 AS cor0
----
108
142
148

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1258
SELECT ALL + MAX( DISTINCT + col2 ) / - CAST( NULL AS SIGNED ) col2 FROM tab2 cor0 WHERE NOT ( + col0 * col2 ) NOT IN ( + 94 + - col0 )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1258
SELECT ALL + MAX ( DISTINCT + col2 ) / - CAST ( NULL AS INTEGER ) col2 FROM tab2 cor0 WHERE NOT ( + col0 * col2 ) NOT IN ( + 94 + - col0 )
----
NULL

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

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

query III rowsort
SELECT * FROM tab2 WHERE + 42 IN ( col0 * col1 )
----

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

query III rowsort
SELECT * FROM tab2 WHERE - 79 IN ( col2 )
----

query I rowsort
SELECT ALL + 64 + 56 + - 84 AS col0 FROM tab0
----
36
36
36

onlyif mysql # aggregate syntax: 
query I rowsort label-1264
SELECT ALL - 81 * - MAX( ALL + col1 ) FROM tab2 WHERE ( + col2 * col2 + 77 ) NOT BETWEEN ( 25 + + col0 ) AND col1 * + 20 + - 87 * + 96
----
6237

skipif mysql # not compatible
query I rowsort label-1264
SELECT ALL - 81 * - MAX ( ALL + col1 ) FROM tab2 WHERE ( + col2 * col2 + 77 ) NOT BETWEEN ( 25 + + col0 ) AND col1 * + 20 + - 87 * + 96
----
6237

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1268
SELECT DISTINCT col2 + + - 81 + - ( col2 ) DIV + col2 AS col0 FROM tab2 AS cor0
----
-24
-42
-59

skipif mysql # not compatible
query I rowsort label-1268
SELECT DISTINCT col2 + + - 81 + - ( col2 ) / + col2 AS col0 FROM tab2 AS cor0
----
-24
-42
-59

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

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

query I rowsort
SELECT DISTINCT + + col2 * 21 * col2 - + col2 FROM tab0 AS cor0
----
205722
2090
46342

query I rowsort
SELECT ALL - 66 * - + col2 + 47 - col1 AS col1 FROM tab2 AS cor0
----
1514
2610
3808

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

query I rowsort
SELECT DISTINCT col1 * col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
196
2209
25

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1276
SELECT + ( MIN( DISTINCT col2 ) ) AS col1 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-1276
SELECT + ( MIN ( DISTINCT col2 ) ) AS col1 FROM tab1
----
59

query I rowsort
SELECT - ( - 13 ) * - ( 12 ) FROM tab1 cor0
----
-156
-156
-156

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1279
SELECT ALL MAX( 7 ) AS col0 FROM tab2 cor0 WHERE col0 BETWEEN + 98 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1279
SELECT ALL MAX ( 7 ) AS col0 FROM tab2 cor0 WHERE col0 BETWEEN + 98 AND NULL
----
NULL

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

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

query II rowsort
SELECT 88, col0 AS col2 FROM tab2 AS cor0
----
88
46
88
64
88
75

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col1 BETWEEN - + 95 AND + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - - col2 * - col2 FROM tab1 cor0 WHERE NOT + 61 IS NULL
----
-3481
-4624
-9216

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1285
SELECT ALL 44 * - + CAST( - SUM( DISTINCT - CAST( NULL AS DECIMAL ) ) AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1285
SELECT ALL 44 * - + CAST ( - SUM ( DISTINCT - CAST ( NULL AS REAL ) ) AS INTEGER ) FROM tab0
----
NULL

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

query I rowsort
SELECT + - 15 + col0 + - 14 FROM tab0 WHERE NOT NULL < NULL
----

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1289
SELECT SUM( ALL col0 ), COUNT( * ) * + 48 AS col1 FROM tab1
----
227
144

skipif mysql # not compatible
query II rowsort label-1289
SELECT SUM ( ALL col0 ), COUNT ( * ) * + 48 AS col1 FROM tab1
----
227
144

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1290
SELECT 58 * - COUNT( * ) * + ( - CAST( NULL AS DECIMAL ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1290
SELECT 58 * - COUNT ( * ) * + ( - CAST ( NULL AS REAL ) ) FROM tab0
----
NULL

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1295
SELECT 3 * COUNT( * ) + - + MIN( ALL col0 ) FROM tab1
----
-42

skipif mysql # not compatible
query I rowsort label-1295
SELECT 3 * COUNT ( * ) + - + MIN ( ALL col0 ) FROM tab1
----
-42

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1297
SELECT * FROM tab0 AS cor0 WHERE 46 + + - col0 + - - col2 + - CAST( 12 AS DECIMAL ) - col0 / col1 * - col1 = col2 + - col2
----

skipif mysql # not compatible
query III rowsort label-1297
SELECT * FROM tab0 AS cor0 WHERE 46 + + - col0 + - - col2 + - CAST ( 12 AS REAL ) - col0 / col1 * - col1 = col2 + - col2
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1300
SELECT ALL * FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) + - ( - 57 ) > ( NULL )
----

skipif mysql # not compatible
query III rowsort label-1300
SELECT ALL * FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) + - ( - 57 ) > ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1301
SELECT DISTINCT + - 39 * + col0 + - - 59 DIV 23 AS col2 FROM tab0 AS cor0
----
-3391
-3781
-583

skipif mysql # not compatible
query I rowsort label-1301
SELECT DISTINCT + - 39 * + col0 + - - 59 / 23 AS col2 FROM tab0 AS cor0
----
-3391
-3781
-583

query I rowsort
SELECT - ( + 5 ) + - 28 FROM tab1
----
-33
-33
-33

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + + 23 > + 44 * - - col0 - - 87
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query I rowsort
SELECT + ( + + ( - col1 ) ) + - + 90 FROM tab2
----
-141
-157
-167

onlyif mysql # aggregate syntax: 
query II rowsort label-1306
SELECT DISTINCT + MAX( + col0 ) col0, COUNT( col0 ) FROM tab1
----
91
3

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

query I rowsort
SELECT DISTINCT + 41 * - - 99 + - 41 FROM tab0
----
4018

query II rowsort
SELECT col2 + + 28 AS col2, col1 AS col0 FROM tab0
----
127
1
38
21
75
81

query I rowsort
SELECT - 82 + - col2 * - - col0 * - col0 - + col1 + 63 FROM tab1
----
249663
426251
563042

query I rowsort
SELECT - 95 + - + col2 + - 65 - col0 * ( + + col2 ) AS col2 FROM tab2
----
-1241
-2760
-4568

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

query I rowsort
SELECT DISTINCT + ( col0 ) * col1 FROM tab0 WHERE ( ( NULL ) IS NULL )
----
1215
1827
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1313
SELECT ALL - + COUNT( * ) - - + 14 + - 93 FROM tab0 cor0
----
-82

skipif mysql # not compatible
query I rowsort label-1313
SELECT ALL - + COUNT ( * ) - - + 14 + - 93 FROM tab0 cor0
----
-82

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

query I rowsort
SELECT ALL col0 - - 54 FROM tab1 AS cor0
----
105
139
145

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1317
SELECT 13 DIV + col2 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1317
SELECT 13 / + col2 FROM tab0
----
0
0
1

query I rowsort
SELECT ALL + - 21 FROM tab2 WHERE NULL IS NULL
----
-21
-21
-21

query I rowsort
SELECT + 5 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) < col0
----

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

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

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

query I rowsort
SELECT ( + col2 ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NOT ( - ( col2 ) NOT IN ( + col0 / 2 ) ) )
----
10
47
99

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT 28 * col1 + + - col2 NOT IN ( + - 26 * 50 * + col2 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1324
SELECT * FROM tab1 AS cor0 WHERE NOT ( + CAST( NULL AS DECIMAL ) * - col2 ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-1324
SELECT * FROM tab1 AS cor0 WHERE NOT ( + CAST ( NULL AS REAL ) * - col2 ) IS NULL
----

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

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

query I rowsort
SELECT DISTINCT + 87 + 95 - col0 FROM tab1 cor0 WHERE + col2 IS NOT NULL
----
131
91
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1327
SELECT - - 8 * + + MAX( ALL + col0 ) FROM tab0 AS cor0
----
776

skipif mysql # not compatible
query I rowsort label-1327
SELECT - - 8 * + + MAX ( ALL + col0 ) FROM tab0 AS cor0
----
776

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab0 WHERE + col0 IS NULL
----

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

query I rowsort
SELECT ( + 4 ) AS col0 FROM tab2
----
4
4
4

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

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

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

query I rowsort
SELECT ALL 54 + - - 50 * - col2 FROM tab0
----
-2296
-446
-4896

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 97 col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

query I rowsort
SELECT + + col2 + col2 * - col0 FROM tab0 cor0
----
-658
-860
-9504

query I rowsort
SELECT + - 27 + - + 40 FROM tab2 AS cor0
----
-67
-67
-67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + 58 + + col0, 45 col1 FROM tab2 AS cor0
----
-12
45
17
45
6
45

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

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

skipif mysql # not compatible
query I rowsort label-1343
SELECT ALL + + CAST ( + - 3 AS INTEGER ) + COUNT ( * ) FROM tab0 AS cor0
----
0

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

query I rowsort
SELECT + 34 + - - 18 FROM tab0 AS cor0
----
52
52
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 35 * col0 col1 FROM tab2 AS cor0
----
1610
2240
2625

query II rowsort
SELECT + ( 0 ) AS col2, 19 FROM tab0 cor0
----
0
19
0
19
0
19

onlyif mysql # aggregate syntax: 
query II rowsort label-1348
SELECT ALL + + 70 * COUNT( * ) AS col0, COUNT( * ) + + COUNT( DISTINCT + + col2 ) FROM tab0 AS cor0
----
210
6

skipif mysql # not compatible
query II rowsort label-1348
SELECT ALL + + 70 * COUNT ( * ) AS col0, COUNT ( * ) + + COUNT ( DISTINCT + + col2 ) FROM tab0 AS cor0
----
210
6

query I rowsort
SELECT + 94 * - col1 - - 96 * - - col2 AS col1 FROM tab2 WHERE - col2 = ( - col1 + + col2 )
----

query I rowsort
SELECT DISTINCT col2 + - ( 48 ) AS col1 FROM tab0
----
-1
-38
51

query I rowsort
SELECT - - 12 * + col0 FROM tab1 WHERE NULL IS NULL
----
1020
1092
612

query I rowsort
SELECT col1 - + 19 * - col2 + - col0 AS col0 FROM tab2
----
1094
442
773

query I rowsort
SELECT DISTINCT 45 + + + col2 FROM tab2
----
103
68
85

query I rowsort
SELECT + 60 * + + col1 - 49 FROM tab0
----
11
1211
4811

query I rowsort
SELECT DISTINCT col1 - 66 FROM tab1 AS cor0
----
-19
-52
-61

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

query I rowsort
SELECT ALL - 92 - + col2 * - - col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-1692
-3456
-621

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1359
SELECT ALL + - col0 * - - CAST( + ( col2 ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-4896
-5015
-6188

skipif mysql # not compatible
query I rowsort label-1359
SELECT ALL + - col0 * - - CAST ( + ( col2 ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-4896
-5015
-6188

onlyif mysql # aggregate syntax: 
query I rowsort label-1360
SELECT DISTINCT + SUM( DISTINCT 19 ) FROM tab1 AS cor0 WHERE col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1360
SELECT DISTINCT + SUM ( DISTINCT 19 ) FROM tab1 AS cor0 WHERE col1 IS NULL
----
NULL

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1363
SELECT * FROM tab2 AS cor0 WHERE NOT + CAST( NULL AS DECIMAL ) - - 51 < col1
----

skipif mysql # not compatible
query III rowsort label-1363
SELECT * FROM tab2 AS cor0 WHERE NOT + CAST ( NULL AS REAL ) - - 51 < col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1364
SELECT DISTINCT + MAX( ALL 96 ), COUNT( * ) AS col2 FROM tab2 AS cor0
----
96
3

skipif mysql # not compatible
query II rowsort label-1364
SELECT DISTINCT + MAX ( ALL 96 ), COUNT ( * ) AS col2 FROM tab2 AS cor0
----
96
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1365
SELECT DISTINCT 97 * + COUNT( * ) FROM tab1
----
291

skipif mysql # not compatible
query I rowsort label-1365
SELECT DISTINCT 97 * + COUNT ( * ) FROM tab1
----
291

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

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

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

skipif mysql # not compatible
query I rowsort label-1367
SELECT ALL MAX ( ( + - col1 ) ) FROM tab1
----
-5

query I rowsort
SELECT col0 FROM tab0 WHERE NOT col0 IS NULL
----
15
87
97

onlyif mysql # DIV for integer division: 
query I rowsort label-1369
SELECT + col0 * - col0 DIV - col0 + + 48 + col1 FROM tab2 AS cor0
----
145
189
190

skipif mysql # not compatible
query I rowsort label-1369
SELECT + col0 * - col0 / - col0 + + 48 + col1 FROM tab2 AS cor0
----
145
189
190

onlyif mysql # aggregate syntax: 
query I rowsort label-1370
SELECT DISTINCT - MIN( - - col2 ) AS col1 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-1370
SELECT DISTINCT - MIN ( - - col2 ) AS col1 FROM tab2 AS cor0
----
-23

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1372
SELECT DISTINCT - COUNT( * ) FROM tab2 AS cor0 WHERE col2 NOT BETWEEN NULL AND + 23
----
-2

skipif mysql # not compatible
query I rowsort label-1372
SELECT DISTINCT - COUNT ( * ) FROM tab2 AS cor0 WHERE col2 NOT BETWEEN NULL AND + 23
----
-2

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

query I rowsort
SELECT DISTINCT + + 76 - - col2 - + col2 * - - 44 * + + 71 AS col1 FROM tab1 AS cor0
----
-184181
-212288
-299732

query I rowsort
SELECT ALL col1 + + 80 AS col0 FROM tab1 AS cor0
----
127
85
94

onlyif mysql # aggregate syntax: 
query I rowsort label-1376
SELECT DISTINCT + 3 * - - 25 + + MAX( - + 39 ) AS col0 FROM tab1 cor0
----
36

skipif mysql # not compatible
query I rowsort label-1376
SELECT DISTINCT + 3 * - - 25 + + MAX ( - + 39 ) AS col0 FROM tab1 cor0
----
36

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1378
SELECT DISTINCT + 82 - - COUNT( + col1 ) AS col0 FROM tab2 AS cor0
----
85

skipif mysql # not compatible
query I rowsort label-1378
SELECT DISTINCT + 82 - - COUNT ( + col1 ) AS col0 FROM tab2 AS cor0
----
85

query I rowsort
SELECT ALL 79 * + - 38 AS col0 FROM tab2 AS cor0
----
-3002
-3002
-3002

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

query I rowsort
SELECT col1 + + 19 AS col1 FROM tab0
----
100
20
40

onlyif mysql # aggregate syntax: 
query I rowsort label-1382
SELECT MAX( + ( ( - - col1 ) ) ) + + MIN( DISTINCT - + col2 ) * COUNT( * ) FROM tab0
----
-216

skipif mysql # not compatible
query I rowsort label-1382
SELECT MAX ( + ( ( - - col1 ) ) ) + + MIN ( DISTINCT - + col2 ) * COUNT ( * ) FROM tab0
----
-216

query I rowsort
SELECT col2 + + 73 FROM tab1
----
132
141
169

query I rowsort
SELECT ALL - col0 * col1 * - col1 AS col1 FROM tab2
----
119646
336675
379456

onlyif mysql # aggregate syntax: 
query I rowsort label-1385
SELECT 31 * + COUNT( * ) FROM tab1
----
93

skipif mysql # not compatible
query I rowsort label-1385
SELECT 31 * + COUNT ( * ) FROM tab1
----
93

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 61 + + - ( - - col1 ) + + col2 col1 FROM tab0
----
-72
-95
37

onlyif mysql # aggregate syntax: 
query I rowsort label-1388
SELECT - + SUM( + - 3 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
27

skipif mysql # not compatible
query I rowsort label-1388
SELECT - + SUM ( + - 3 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
27

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

skipif mysql # not compatible
query I rowsort label-1389
SELECT + COUNT ( * ) + + 22 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
31

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - ( - - col1 ) = ( + + ( + 30 ) )
----

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

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

query I rowsort
SELECT - col0 + - + 66 FROM tab0 AS cor0
----
-153
-163
-81

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

query I rowsort
SELECT 73 + - col0 + + col0 + - col2 FROM tab1 AS cor0
----
-23
14
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1395
SELECT ALL COUNT( * ) DIV + COUNT( * ) AS col1, 61 col1 FROM tab2
----
1
61

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1395
SELECT ALL COUNT ( * ) / + COUNT ( * ) AS col1, 61 col1 FROM tab2
----
1
61

query III rowsort
SELECT ALL * FROM tab2 WHERE + 68 + - col2 + col2 + - - col2 + ( - col1 ) IS NULL
----

query I rowsort
SELECT DISTINCT - ( - + col2 ) + + 31 FROM tab1
----
127
90
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1398
SELECT ALL SUM( - 2 ) FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-1398
SELECT ALL SUM ( - 2 ) FROM tab2
----
-6

query II rowsort
SELECT DISTINCT + 27, - 15 AS col0 FROM tab1
----
27
-15

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1401
SELECT DISTINCT + COUNT ( * ) col0 FROM tab2 WHERE + + ( - col0 ) BETWEEN NULL AND + + col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1402
SELECT + 79 AS col1, + COUNT( * ) * - 8 FROM tab0
----
79
-24

skipif mysql # not compatible
query II rowsort label-1402
SELECT + 79 AS col1, + COUNT ( * ) * - 8 FROM tab0
----
79
-24

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

query I rowsort
SELECT - col1 * + 90 AS col1 FROM tab1 AS cor0
----
-1260
-4230
-450

onlyif mysql # aggregate syntax: 
query I rowsort label-1405
SELECT - 34 + + MIN( 55 ) * + MIN( - col2 ) FROM tab0 AS cor0
----
-5479

skipif mysql # not compatible
query I rowsort label-1405
SELECT - 34 + + MIN ( 55 ) * + MIN ( - col2 ) FROM tab0 AS cor0
----
-5479

onlyif mysql # aggregate syntax: 
query I rowsort label-1406
SELECT + 5 + + - COUNT( * ) AS col2 FROM tab0 cor0
----
2

skipif mysql # not compatible
query I rowsort label-1406
SELECT + 5 + + - COUNT ( * ) AS col2 FROM tab0 cor0
----
2

query I rowsort
SELECT + col0 + - 81 AS col2 FROM tab0
----
-66
16
6

query I rowsort
SELECT + + 34 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039

query II rowsort
SELECT + - col0 + col2, 24 AS col2 FROM tab0 AS cor0
----
-77
24
2
24
32
24

query II rowsort
SELECT - ( - - 42 ) + 16, - 11 AS col1 FROM tab0 AS cor0
----
-26
-11
-26
-11
-26
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-1411
SELECT ALL + 49 + MIN( - - 79 ) AS col2 FROM tab1 AS cor0
----
128

skipif mysql # not compatible
query I rowsort label-1411
SELECT ALL + 49 + MIN ( - - 79 ) AS col2 FROM tab1 AS cor0
----
128

query I rowsort
SELECT col0 * col2 FROM tab0 AS cor0 WHERE NULL BETWEEN - 39 AND NULL
----

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1415
SELECT ALL + COUNT( * ) * - 36 - 44, - 64 col2 FROM tab0
----
-152
-64

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1415
SELECT ALL + COUNT ( * ) * - 36 - 44, - 64 col2 FROM tab0
----
-152
-64

query I rowsort
SELECT - 52 * + + 74 AS col2 FROM tab2
----
-3848
-3848
-3848

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

query I rowsort
SELECT col1 * - 32 FROM tab2
----
-1632
-2144
-2464

query II rowsort
SELECT ALL 97 AS col0, col2 FROM tab2
----
97
23
97
40
97
58

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1421
SELECT DISTINCT - + 74 DIV - + MAX( DISTINCT + col2 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1421
SELECT DISTINCT - + 74 / - + MAX ( DISTINCT + col2 ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL ( 87 ) * - - 76 AS col1 FROM tab2
----
6612
6612
6612

query I rowsort
SELECT col1 * - 18 AS col0 FROM tab0
----
-1458
-18
-378

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1425
SELECT - COUNT( * ) * - COUNT( * ) DIV - + COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

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

query I rowsort
SELECT DISTINCT col1 * 35 AS col1 FROM tab2
----
1785
2345
2695

onlyif mysql # aggregate syntax: 
query I rowsort label-1427
SELECT 91 * - ( + - MIN( - col0 ) ) FROM tab0 AS cor0
----
-8827

skipif mysql # not compatible
query I rowsort label-1427
SELECT 91 * - ( + - MIN ( - col0 ) ) FROM tab0 AS cor0
----
-8827

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

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

query I rowsort
SELECT ALL + col0 * - col1 * - + col1 * - col1 AS col0 FROM tab0 AS cor0
----
-7971615
-805707
-97

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

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

query I rowsort
SELECT ALL 4 FROM tab1 AS cor0 WHERE NULL = NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1433
SELECT DISTINCT 53 DIV - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-17

skipif mysql # not compatible
query I rowsort label-1433
SELECT DISTINCT 53 / - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-17

query I rowsort
SELECT - ( - 45 ) AS col1 FROM tab2 WHERE - - col2 NOT IN ( - 25 )
----
45
45
45

query I rowsort
SELECT - - col0 FROM tab1 WHERE NULL IN ( - 17, - col2 * + col1 )
----

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

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

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

skipif mysql # not compatible
query I rowsort label-1437
SELECT + MAX ( DISTINCT - 68 ) AS col0 FROM tab2
----
-68

query I rowsort
SELECT col0 * - 49 + - 65 * col1 AS col1 FROM tab1
----
-3409
-4490
-7514

query I rowsort
SELECT 91 + + col1 FROM tab1
----
105
138
96

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1441
SELECT MIN( ALL - col1 ) + + 81 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-1441
SELECT MIN ( ALL - col1 ) + + 81 FROM tab0
----
0

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

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

query I rowsort
SELECT DISTINCT 77 + - 21 FROM tab1
----
56

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1446
SELECT ALL - - COUNT ( * ) * COUNT ( ( + - 97 ) ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
81

query IIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab0 cor1 WHERE NULL NOT IN ( + 19, - 55 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1448
SELECT DISTINCT - col2 + col1 DIV ( - + col2 ) AS col0 FROM tab0
----
-12
-48
-99

skipif mysql # not compatible
query I rowsort label-1448
SELECT DISTINCT - col2 + col1 / ( - + col2 ) AS col0 FROM tab0
----
-12
-48
-99

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

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

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

query I rowsort
SELECT DISTINCT col1 - - - 39 * - - 95 * 90 FROM tab2 AS cor0
----
-333373
-333383
-333399

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE + col1 * col2 * col1 * - + 77 / - + col2 BETWEEN - 26 * 57 AND NULL
----

query I rowsort
SELECT ALL - - col2 + + 61 FROM tab0 AS cor0
----
108
160
71

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1454
SELECT * FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) BETWEEN NULL AND ( - 42 ) * + - col1
----

skipif mysql # not compatible
query III rowsort label-1454
SELECT * FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) BETWEEN NULL AND ( - 42 ) * + - col1
----

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 9 * - 80 col2, col2 + + + col2 FROM tab1
----
720
118
720
136
720
192

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

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

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

query II rowsort
SELECT ALL + + 81 * - col2, + col2 * - col2 * + col0 AS col2 FROM tab2 cor0
----
-1863
-24334
-3240
-102400
-4698
-252300

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 80 * col0 + - col0 col0 FROM tab1 cor0
----
4029
6715
7189

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1464
SELECT - 64 / + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1464
SELECT - 64 / + CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL ( + 40 ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

onlyif mysql # aggregate syntax: 
query I rowsort label-1466
SELECT - MIN( 84 ) FROM tab1
----
-84

skipif mysql # not compatible
query I rowsort label-1466
SELECT - MIN ( 84 ) FROM tab1
----
-84

query I rowsort
SELECT - 32 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ef8f93119983b962f4c81381ebf4b1e6

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

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

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

query I rowsort
SELECT + + ( - - col2 ) + + + 91 + - 40 FROM tab2 AS cor0
----
109
74
91

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

skipif mysql # not compatible
query II rowsort label-1471
SELECT DISTINCT - COUNT ( * ), COUNT ( * ) * + SUM ( col2 ) AS col2 FROM tab1 AS cor0
----
-3
669

query I rowsort
SELECT - - 69 + + - 16 * col1 AS col0 FROM tab2 AS cor0
----
-1003
-1163
-747

query I rowsort
SELECT - col0 * - ( 35 ) + + 15 AS col0 FROM tab0 AS cor0
----
3060
3410
540

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1475
SELECT ALL 14 DIV + 5 + - col2, col1 * + + col0 col1 FROM tab1 AS cor0
----
-57
425
-66
4277
-94
714

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1475
SELECT ALL 14 / + 5 + - col2, col1 * + + col0 col1 FROM tab1 AS cor0
----
-57
425
-66
4277
-94
714

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

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

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

query I rowsort
SELECT ALL + col2 * - + 91 + - - col0 + col0 AS col0 FROM tab1
----
-5199
-6006
-8634

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col1 + + col1 = 36 - + 77
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query II rowsort label-1480
SELECT ALL + col1 + - - 89, + col1 DIV 67 AS col2 FROM tab2
----
140
0
156
1
166
1

skipif mysql # not compatible
query II rowsort label-1480
SELECT ALL + col1 + - - 89, + col1 / 67 AS col2 FROM tab2
----
140
0
156
1
166
1

query I rowsort
SELECT col0 * - + col0 FROM tab2 AS cor0 WHERE - col2 * 78 BETWEEN NULL AND NULL
----

query I rowsort
SELECT col0 * - col1 * + 91 + ( col2 ) + + 59 AS col2 FROM tab1 cor0
----
-38557
-389080
-64819

query I rowsort
SELECT DISTINCT + 78 + - - col1 AS col0 FROM tab1 AS cor0
----
125
83
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1484
SELECT - 33 + + col2 FROM tab0 AS cor0 WHERE + col1 * - CAST( NULL AS SIGNED ) BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-1484
SELECT - 33 + + col2 FROM tab0 AS cor0 WHERE + col1 * - CAST ( NULL AS INTEGER ) BETWEEN NULL AND NULL
----

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

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

query I rowsort
SELECT + 77 FROM tab1 WHERE 84 + + ( - - col1 ) < NULL
----

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1488
SELECT - + col1 / + - col1 col1 FROM tab2 AS cor0
----
1
1
1

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

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

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

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

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + ( - col0 ) col2 FROM tab1 AS cor0
----
51
85
91

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col1 * col2 >= col1 + 69
----

query I rowsort
SELECT col0 * 93 AS col1 FROM tab0
----
1395
8091
9021

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 42 + 85 col2 FROM tab2 WHERE NULL IS NULL
----
127
127
127

query I rowsort
SELECT - 61 * + - col2 AS col0 FROM tab2
----
1403
2440
3538

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1504
SELECT 87 * + col1 + + 30 DIV col1 AS col0 FROM tab2 AS cor0
----
4437
5829
6699

skipif mysql # not compatible
query I rowsort label-1504
SELECT 87 * + col1 + + 30 / col1 AS col0 FROM tab2 AS cor0
----
4437
5829
6699

query I rowsort
SELECT ALL 92 * - col1 * 63 AS col2 FROM tab0
----
-121716
-469476
-5796

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

skipif mysql # not compatible
query I rowsort label-1506
SELECT + + COUNT ( * ) * CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1508
SELECT 77 DIV - COUNT( * ) col2 FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
-25

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1508
SELECT 77 / - COUNT ( * ) col2 FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
-25

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1512
SELECT + CAST( NULL AS DECIMAL ) + SUM( DISTINCT + - col0 ) * + - 56 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1512
SELECT + CAST ( NULL AS REAL ) + SUM ( DISTINCT + - col0 ) * + - 56 AS col2 FROM tab1
----
NULL

query I rowsort
SELECT col2 FROM tab2 WHERE - col1 = + col0 * + + 16
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1514
SELECT MAX( + - col1 ) + + 75 col0 FROM tab1
----
70

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1514
SELECT MAX ( + - col1 ) + + 75 col0 FROM tab1
----
70

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

query I rowsort
SELECT + col1 + + 91 * + col1 AS col1 FROM tab0
----
1932
7452
92

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

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

query II rowsort
SELECT col1 + - + 32 * - col0, - 4 AS col2 FROM tab1
----
1646
-4
2725
-4
2959
-4

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - ( + 40 ) IS NULL
----

query I rowsort
SELECT DISTINCT - 87 + + col0 FROM tab1 cor0
----
-2
-36
4

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

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

query I rowsort
SELECT ALL + + col0 FROM tab2 AS cor0 WHERE col2 + - - col2 <= + col2
----

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 6 > - 58
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

query I rowsort
SELECT DISTINCT + 77 * + col0 FROM tab2
----
3542
4928
5775

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

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1529
SELECT - CAST( + - CAST( + + 10 AS DECIMAL ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
10
10
10

skipif mysql # not compatible
query I rowsort label-1529
SELECT - CAST ( + - CAST ( + + 10 AS REAL ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
10
10
10

query I rowsort
SELECT ALL 90 + col0 FROM tab2
----
136
154
165

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + col1 * col0 col2 FROM tab2
----
2369
4968
5083

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

skipif mysql # not compatible
query I rowsort label-1532
SELECT DISTINCT - + 61 * - - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE 87 * + col1 IS NOT NULL
----
NULL

query I rowsort
SELECT - + 83 + col0 FROM tab0 AS cor0
----
-68
14
4

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1535
SELECT + 0 * - col0 + + col1 - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE - 58 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1535
SELECT + 0 * - col0 + + col1 - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE - 58 IS NOT NULL
----
NULL
NULL
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1537
SELECT 20 + - - CAST( + + 44 AS SIGNED ) AS col2 FROM tab0 cor0
----
64
64
64

skipif mysql # not compatible
query I rowsort label-1537
SELECT 20 + - - CAST ( + + 44 AS INTEGER ) AS col2 FROM tab0 cor0
----
64
64
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 * col2 - - col1 * col2 col2, 53 + + 65 * + - ( - col2 ) FROM tab2 AS cor0
----
0
1548
0
2653
0
3823

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

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

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

query II rowsort
SELECT DISTINCT col1 * + 29 * + col0, col1 AS col0 FROM tab0
----
2813
1
35235
81
52983
21

query I rowsort
SELECT DISTINCT col1 * col1 + - 1 FROM tab1
----
195
2208
24

onlyif mysql # aggregate syntax: 
query I rowsort label-1543
SELECT + ( + 45 ) * - - 21 - - 57 + - + COUNT( * ) FROM tab2
----
999

skipif mysql # not compatible
query I rowsort label-1543
SELECT + ( + 45 ) * - - 21 - - 57 + - + COUNT ( * ) FROM tab2
----
999

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1544
SELECT SUM( + - col2 ) DIV + + 16 - + + COUNT( + - col0 ) AS col0 FROM tab1
----
-16

skipif mysql # not compatible
query I rowsort label-1544
SELECT SUM ( + - col2 ) / + + 16 - + + COUNT ( + - col0 ) AS col0 FROM tab1
----
-16

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

query II rowsort
SELECT + col0 + 6 + + - col1 + col1 + col0, col1 AS col2 FROM tab1 AS cor0
----
108
14
176
5
188
47

onlyif mysql # aggregate syntax: 
query I rowsort label-1547
SELECT ALL - MIN( DISTINCT - - col1 ) AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-5

skipif mysql # not compatible
query I rowsort label-1547
SELECT ALL - MIN ( DISTINCT - - col1 ) AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-5

query I rowsort
SELECT DISTINCT - 18 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND + 54
----

query I rowsort
SELECT + - 99 AS col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 64d06513850a26495bc6c2fddeb254b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1550
SELECT ALL CAST( NULL AS SIGNED ) AS col2, COUNT( * ) FROM tab2
----
NULL
3

skipif mysql # not compatible
query II rowsort label-1550
SELECT ALL CAST ( NULL AS INTEGER ) AS col2, COUNT ( * ) FROM tab2
----
NULL
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1551
SELECT DISTINCT COUNT( - + 12 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-1551
SELECT DISTINCT COUNT ( - + 12 ) FROM tab2
----
3

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

query I rowsort
SELECT + 86 * col0 * + + 54 FROM tab0 AS cor0
----
404028
450468
69660

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1554
SELECT ALL + 97 * CAST( + 75 AS SIGNED ) AS col0 FROM tab1 cor0
----
7275
7275
7275

skipif mysql # not compatible
query I rowsort label-1554
SELECT ALL + 97 * CAST ( + 75 AS INTEGER ) AS col0 FROM tab1 cor0
----
7275
7275
7275

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + - 52 * - 31 col2 FROM tab1
----
137020
146692
82212

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + 84 + - col1 col1 FROM tab1
----
-1190
-3995
-425

onlyif mysql # aggregate syntax: 
query II rowsort label-1559
SELECT ALL 52 + COUNT( * ) AS col0, + ( COUNT( ALL 61 ) ) AS col1 FROM tab0
----
55
3

skipif mysql # not compatible
query II rowsort label-1559
SELECT ALL 52 + COUNT ( * ) AS col0, + ( COUNT ( ALL 61 ) ) AS col1 FROM tab0
----
55
3

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1562
SELECT DISTINCT - 25 + + + COUNT ( * ) col0 FROM tab2 AS cor0
----
-22

query I rowsort
SELECT DISTINCT - ( - 83 ) AS col2 FROM tab1 AS cor0
----
83

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1565
SELECT + col0 DIV CAST( col1 AS SIGNED ) DIV col1 + + - col1 - - col0 * + + col1 AS col1 FROM tab2
----
2295
4851
4958

skipif mysql # not compatible
query I rowsort label-1565
SELECT + col0 / CAST ( col1 AS INTEGER ) / col1 + + - col1 - - col0 * + + col1 AS col1 FROM tab2
----
2295
4851
4958

query I rowsort
SELECT - 18 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 09afafec657a5e9f082beb6a16ec85de

query I rowsort
SELECT DISTINCT 52 + + col1 - + + col0 * - col0 FROM tab0
----
358
7642
9462

query I rowsort
SELECT ALL + 6 + + - col1 FROM tab2
----
-45
-61
-71

query I rowsort
SELECT DISTINCT + ( - 74 ) AS col2 FROM tab1 cor0 CROSS JOIN tab1 cor1
----
-74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + - 41 col0 FROM tab0 AS cor0
----
-31
58
6

query I rowsort
SELECT DISTINCT - col2 + - 39 + ( - col0 ) FROM tab2 AS cor0
----
-108
-143
-172

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 43 * + 71 IN ( - - col1 )
----

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

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

query I rowsort
SELECT col2 + 75 * col2 * - + col1 + 41 + ( + col2 ) AS col2 FROM tab1
----
-100567
-21966
-239523

onlyif mysql # aggregate syntax: 
query I rowsort label-1576
SELECT COUNT( * ) + - + 85 AS col1 FROM tab1
----
-82

skipif mysql # not compatible
query I rowsort label-1576
SELECT COUNT ( * ) + - + 85 AS col1 FROM tab1
----
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-1577
SELECT 90 * col2 DIV + 57 + col1 FROM tab0
----
155
157
36

skipif mysql # not compatible
query I rowsort label-1577
SELECT 90 * col2 / + 57 + col1 FROM tab0
----
155
157
36

query I rowsort
SELECT + 51 + + + 85 + 49 FROM tab1
----
185
185
185

query II rowsort
SELECT DISTINCT - 27 + - col2 + + + 70 + + col0 AS col0, + col2 FROM tab2
----
60
58
66
23
67
40

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

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

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

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

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

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

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

query I rowsort
SELECT ALL 41 * - 44 AS col0 FROM tab0 AS cor0
----
-1804
-1804
-1804

query I rowsort
SELECT + col0 * - col0 + 65 AS col2 FROM tab2 AS cor0
----
-2051
-4031
-5560

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1587
SELECT * FROM tab2 AS cor0 WHERE NOT - 64 * - col2 * + + CAST( + - col1 AS DECIMAL ) * - col1 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-1587
SELECT * FROM tab2 AS cor0 WHERE NOT - 64 * - col2 * + + CAST ( + - col1 AS REAL ) * - col1 IS NOT NULL
----

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

skipif mysql # not compatible
query I rowsort label-1588
SELECT + COUNT ( * ) * + COUNT ( CAST ( col0 AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
9

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

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

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

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

query II rowsort
SELECT + 72, + ( - 18 ) + - col1 AS col1 FROM tab1
----
72
-23
72
-32
72
-65

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1595
SELECT + col1, CAST ( NULL AS INTEGER ) col0 FROM tab0 AS cor0
----
1
NULL
21
NULL
81
NULL

query I rowsort
SELECT col2 + col1 + + ( - 21 ) FROM tab1 cor0 WHERE NULL IS NULL
----
43
89
94

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1598
SELECT - ( 66 ) * + MIN( + + col1 ) + 63 FROM tab1
----
-267

skipif mysql # not compatible
query I rowsort label-1598
SELECT - ( 66 ) * + MIN ( + + col1 ) + 63 FROM tab1
----
-267

onlyif mysql # aggregate syntax: 
query I rowsort label-1599
SELECT COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1599
SELECT COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NULL
----
0

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

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

query I rowsort
SELECT - 30 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 56fa25f9fb8040460fe3c894000ea8fb

query I rowsort
SELECT 89 + + col2 AS col1 FROM tab2
----
112
129
147

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1603
SELECT DISTINCT - - 43 FROM tab2 WHERE CAST( + col2 AS DECIMAL ) IS NOT NULL
----
43

skipif mysql # not compatible
query I rowsort label-1603
SELECT DISTINCT - - 43 FROM tab2 WHERE CAST ( + col2 AS REAL ) IS NOT NULL
----
43

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 = col2 * - col2 * - - col0 + + + col0 * + - col0 * - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1605
SELECT ALL + 64 DIV + + col1 + - - col2 AS col2 FROM tab0 AS cor0
----
13
163
47

skipif mysql # not compatible
query I rowsort label-1605
SELECT ALL + 64 / + + col1 + - - col2 AS col2 FROM tab0 AS cor0
----
13
163
47

query I rowsort
SELECT - 31 * + ( - - col0 ) FROM tab0 AS cor0
----
-2697
-3007
-465

query I rowsort
SELECT ALL + - col2 - + col0 * + 32 AS col1 FROM tab0 AS cor0
----
-2794
-3203
-527

query II rowsort
SELECT col0, col1 + + col2 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1609
SELECT ALL - MIN( DISTINCT ( - col2 ) ) AS col0 FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-1609
SELECT ALL - MIN ( DISTINCT ( - col2 ) ) AS col0 FROM tab2
----
58

query I rowsort
SELECT col0 * col1 AS col2 FROM tab1 WHERE col0 - + + col1 <= + col1 + - + col2 + + - 73
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1611
SELECT SUM( + - 22 ) col2 FROM tab1
----
-66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1611
SELECT SUM ( + - 22 ) col2 FROM tab1
----
-66

query I rowsort
SELECT DISTINCT - col2 * - 17 + + col1 + - col0 / 1 FROM tab0 WHERE NOT NULL IS NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1614
SELECT ALL - MAX( DISTINCT - 15 ) AS col2 FROM tab2 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-1614
SELECT ALL - MAX ( DISTINCT - 15 ) AS col2 FROM tab2 AS cor0
----
15

query II rowsort
SELECT 64 AS col1, 71 AS col0 FROM tab0 AS cor0
----
64
71
64
71
64
71

query I rowsort
SELECT - col1 * col0 * - col0 - - + col1 AS col2 FROM tab1 AS cor0
----
36130
36428
389254

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1617
SELECT ALL + CAST( 32 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
32
32
32

skipif mysql # not compatible
query I rowsort label-1617
SELECT ALL + CAST ( 32 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
32
32
32

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

query II rowsort
SELECT col1, - 5 FROM tab0
----
1
-5
21
-5
81
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-1620
SELECT 99 * + COUNT( * ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
891

skipif mysql # not compatible
query I rowsort label-1620
SELECT 99 * + COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
891

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1622
SELECT ALL + - CAST( + - MAX( DISTINCT + col0 ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-1622
SELECT ALL + - CAST ( + - MAX ( DISTINCT + col0 ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
91

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1627
SELECT DISTINCT MAX( ALL + + 68 ) + + + COUNT( * ) FROM tab1
----
71

skipif mysql # not compatible
query I rowsort label-1627
SELECT DISTINCT MAX ( ALL + + 68 ) + + + COUNT ( * ) FROM tab1
----
71

query I rowsort
SELECT + 7 * + ( - + col0 ) AS col0 FROM tab1
----
-357
-595
-637

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

query I rowsort
SELECT ALL col1 + + col2 + - + 27 FROM tab1
----
37
83
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1631
SELECT - MAX( - col0 ) + + CAST( + AVG ( + col2 ) AS SIGNED ) + - 17 AS col2 FROM tab1
----
108

skipif mysql # not compatible
query I rowsort label-1631
SELECT - MAX ( - col0 ) + + CAST ( + AVG ( + col2 ) AS INTEGER ) + - 17 AS col2 FROM tab1
----
108

query I rowsort
SELECT - col2 + + col0 + + 64 FROM tab0
----
141
32
62

query I rowsort
SELECT + 50 / - col0 + - + col1 FROM tab2 AS cor0 WHERE NULL >= NULL
----

query I rowsort
SELECT DISTINCT 78 + - col0 FROM tab1 cor0
----
-13
-7
27

query I rowsort
SELECT - 66 * + col0 FROM tab2 AS cor0 WHERE + col1 * col1 IN ( - 35 * - 13, + col1 / 71 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 NOT BETWEEN + 90 AND col2 * + col2 * + + col1 + - col1
----
51
14
96
85
5
59

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1638
SELECT ALL - COUNT( * ) * + COUNT( * ) * - COUNT( * ) + 77 FROM tab1 AS cor0 WHERE 98 IS NULL
----
77

skipif mysql # not compatible
query I rowsort label-1638
SELECT ALL - COUNT ( * ) * + COUNT ( * ) * - COUNT ( * ) + 77 FROM tab1 AS cor0 WHERE 98 IS NULL
----
77

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

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

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

query I rowsort
SELECT - - col1 * + col1 + col2 * - col2 + - col0 FROM tab1 cor0
----
-2506
-3541
-9071

onlyif mysql # DIV for integer division: 
query I rowsort label-1642
SELECT + col2 DIV - 12 + - - col1 AS col1 FROM tab0 AS cor0
----
-7
21
78

skipif mysql # not compatible
query I rowsort label-1642
SELECT + col2 / - 12 + - - col1 AS col1 FROM tab0 AS cor0
----
-7
21
78

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + ( + 78 ) col0 FROM tab1
----
129
163
169

query I rowsort
SELECT 55 + + + col0 AS col0 FROM tab2
----
101
119
130

query I rowsort
SELECT col1 AS col2 FROM tab1 WHERE NOT + 94 NOT BETWEEN 24 AND 22
----

query I rowsort
SELECT DISTINCT + - col0 * 76 + - 74 AS col2 FROM tab1 WHERE NOT - + col0 * - - 63 IS NULL
----
-3950
-6534
-6990

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 33 * + col1 AS col2, - 64 * - col0 col1 FROM tab0
----
2673
960
33
6208
693
5568

query I rowsort
SELECT ALL col2 * 8 * + col2 AS col0 FROM tab1
----
27848
36992
73728

onlyif mysql # aggregate syntax: 
query I rowsort label-1651
SELECT SUM( + 92 ) FROM tab0
----
276

skipif mysql # not compatible
query I rowsort label-1651
SELECT SUM ( + 92 ) FROM tab0
----
276

query I rowsort
SELECT ALL col1 FROM tab0 WHERE NOT - - col2 / - col2 + + 42 / col2 IS NULL
----
1
21
81

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1654
SELECT ALL COUNT( * ) * - - 34 FROM tab0 AS cor0
----
102

skipif mysql # not compatible
query I rowsort label-1654
SELECT ALL COUNT ( * ) * - - 34 FROM tab0 AS cor0
----
102

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

query I rowsort
SELECT col2 * - col2 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
-100
-2209
-9801

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 34 * - - 76 col1 FROM tab1 cor0
----
2584
2584
2584

onlyif mysql # aggregate syntax: 
query I rowsort label-1658
SELECT - + MAX( col1 ) + + 59 + + 4 col2 FROM tab0 AS cor0
----
-18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1658
SELECT - + MAX ( col1 ) + + 59 + + 4 col2 FROM tab0 AS cor0
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-1659
SELECT DISTINCT MAX( + - col2 ) * + 46 + + MIN( ALL col2 ) FROM tab0 AS cor0 WHERE NOT 88 * col1 IS NULL
----
-450

skipif mysql # not compatible
query I rowsort label-1659
SELECT DISTINCT MAX ( + - col2 ) * + 46 + + MIN ( ALL col2 ) FROM tab0 AS cor0 WHERE NOT 88 * col1 IS NULL
----
-450

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

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

query I rowsort
SELECT - col2 * + - col0 + + col0 FROM tab2 AS cor0
----
1104
2624
4425

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1662
SELECT - - ( - 56 ) / + ( + CAST( NULL AS DECIMAL ) ) + col1 + - CAST( NULL AS SIGNED ) / - CAST( NULL AS SIGNED ) / col0 * + ( + 43 ) - - + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1662
SELECT - - ( - 56 ) / + ( + CAST ( NULL AS REAL ) ) + col1 + - CAST ( NULL AS INTEGER ) / - CAST ( NULL AS INTEGER ) / col0 * + ( + 43 ) - - + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1664
SELECT DISTINCT + + 85 AS col0, col0 DIV 29 AS col1 FROM tab2 AS cor0
----
85
1
85
2

skipif mysql # not compatible
query II rowsort label-1664
SELECT DISTINCT + + 85 AS col0, col0 / 29 AS col1 FROM tab2 AS cor0
----
85
1
85
2

query III rowsort
SELECT ALL * FROM tab1 WHERE col0 * - + 1 + 66 * - col2 * + - 31 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + - 26 / + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col2 * - 13 * + 63 FROM tab0
----
38493
81081
8190

query II rowsort
SELECT ALL col2 AS col0, 64 FROM tab2
----
23
64
40
64
58
64

query I rowsort
SELECT DISTINCT - col0 + col0 * - 62 AS col2 FROM tab2
----
-2898
-4032
-4725

query II rowsort
SELECT ALL - col2 + col1 AS col0, - 88 AS col2 FROM tab1
----
-21
-88
-54
-88
-82
-88

query I rowsort
SELECT DISTINCT 71 * - 64 * - + 14 FROM tab1
----
63616

query I rowsort
SELECT DISTINCT + ( col2 ) + + + col0 * + - 56 FROM tab2 AS cor0 WHERE NOT - col0 * - col0 + + col2 <= - - col1
----
-2553
-3544
-4142

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 48 IS NULL
----

query II rowsort
SELECT ALL + col2 - col0 AS col1, - col0 FROM tab0 cor0
----
-77
-87
2
-97
32
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-1675
SELECT - 90 + - - COUNT( - + col0 ) AS col2 FROM tab2
----
-87

skipif mysql # not compatible
query I rowsort label-1675
SELECT - 90 + - - COUNT ( - + col0 ) AS col2 FROM tab2
----
-87

query I rowsort
SELECT ALL + ( ( - col0 ) ) + + col0 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 col2 FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
-51
-85
-91

query I rowsort
SELECT ALL - col2 * - col2 + + - col1 AS col1 FROM tab0 AS cor0
----
2128
79
9800

query II rowsort
SELECT ALL 97 - + + col1 + - col2 * + col2 * + col0, 49 AS col0 FROM tab2 AS cor0
----
-102380
49
-24288
49
-252270
49

query I rowsort
SELECT ALL - col0 * col1 - - col2 - col2 * - col0 AS col0 FROM tab1 AS cor0
----
1979
4278
4649

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col1 = - col0
----

query I rowsort
SELECT DISTINCT + - col2 AS col1 FROM tab2 WHERE col1 IS NULL
----

query I rowsort
SELECT + - col0 FROM tab2 WHERE NOT NULL = 50 + + - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1684
SELECT ALL ( + col0 ) DIV - col2 AS col0 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-1684
SELECT ALL ( + col0 ) / - col2 AS col0 FROM tab1
----
-1
-1
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1685
SELECT 17 DIV 41 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1685
SELECT 17 / 41 FROM tab0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1686
SELECT + CAST( NULL AS SIGNED ) AS col0, - col1 FROM tab0
----
NULL
-1
NULL
-21
NULL
-81

skipif mysql # not compatible
query II rowsort label-1686
SELECT + CAST ( NULL AS INTEGER ) AS col0, - col1 FROM tab0
----
NULL
-1
NULL
-21
NULL
-81

query II rowsort
SELECT DISTINCT - 32 AS col0, col0 AS col2 FROM tab0
----
-32
15
-32
87
-32
97

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IS NULL OR NOT col2 * - + 33 >= 18
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col1 * + 26 AS col0 FROM tab2 AS cor0
----
1326
1742
2002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0, + col0 + + 68 + - 96 + col1 + col0 col1 FROM tab1 AS cor0
----
51
88
85
147
91
201

query III rowsort
SELECT * FROM tab2 WHERE - col2 * - col0 NOT BETWEEN ( NULL ) AND - col1 * - col2 + - col1 * - col0
----

query I rowsort
SELECT - 98 FROM tab1 WHERE NOT NULL < ( 76 * + col2 + 15 )
----

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) NOT IN ( + col2 - + ( - col1 ) )
----

query I rowsort
SELECT col2 FROM tab2 WHERE NULL <= + col0
----

query I rowsort
SELECT + col0 AS col0 FROM tab2 WHERE + 35 + - 21 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1696
SELECT MIN( ( - CAST( - col1 AS SIGNED ) ) ) AS col1 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-1696
SELECT MIN ( ( - CAST ( - col1 AS INTEGER ) ) ) AS col1 FROM tab1
----
5

query I rowsort
SELECT ALL + col1 + 98 AS col2 FROM tab1
----
103
112
145

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1698
SELECT ALL * FROM tab1 WHERE CAST( - col1 AS DECIMAL ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-1698
SELECT ALL * FROM tab1 WHERE CAST ( - col1 AS REAL ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1699
SELECT - COUNT( * ) + + COUNT( * ) DIV + 78 AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-1699
SELECT - COUNT ( * ) + + COUNT ( * ) / + 78 AS col1 FROM tab1
----
-3

query I rowsort
SELECT 43 * + 33 AS col2 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
1419
1419
1419

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 9 * + col2 + 92 < - 15
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1702
SELECT + col0 * + col2 col1 FROM tab0 WHERE - CAST( col2 AS SIGNED ) + col1 * - col2 IN ( - col1 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1702
SELECT + col0 * + col2 col1 FROM tab0 WHERE - CAST ( col2 AS INTEGER ) + col1 * - col2 IN ( - col1 )
----

query I rowsort
SELECT - col0 FROM tab1 WHERE ( col1 - col0 * col2 ) IS NOT NULL
----
-51
-85
-91

query I rowsort
SELECT 29 * + 84 - 40 AS col0 FROM tab2
----
2396
2396
2396

onlyif mysql # aggregate syntax: 
query I rowsort label-1705
SELECT ALL COUNT( ALL - ( 44 ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-1705
SELECT ALL COUNT ( ALL - ( 44 ) ) FROM tab1
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * 86 + + col1 col0 FROM tab2
----
-3905
-5427
-6383

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1707
SELECT - COUNT( * ) DIV 54 + + 27 FROM tab1
----
27

skipif mysql # not compatible
query I rowsort label-1707
SELECT - COUNT ( * ) / 54 + + 27 FROM tab1
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-1708
SELECT DISTINCT - SUM( ALL + 78 ) col0 FROM tab1
----
-234

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1708
SELECT DISTINCT - SUM ( ALL + 78 ) col0 FROM tab1
----
-234

query I rowsort
SELECT ALL 30 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + 90 - col1 FROM tab2
----
13
23
39

onlyif mysql # DIV for integer division: 
query I rowsort label-1711
SELECT - col0 DIV 53 + col0 AS col0 FROM tab0
----
15
86
96

skipif mysql # not compatible
query I rowsort label-1711
SELECT - col0 / 53 + col0 AS col0 FROM tab0
----
15
86
96

onlyif mysql # DIV for integer division: 
query I rowsort label-1712
SELECT ALL + 71 DIV col0 - col1 FROM tab0
----
-1
-21
-77

skipif mysql # not compatible
query I rowsort label-1712
SELECT ALL + 71 / col0 - col1 FROM tab0
----
-1
-21
-77

query I rowsort
SELECT + col1 * col1 FROM tab1 WHERE NOT ( - 22 + - 72 * col0 ) > ( col0 + col1 )
----
196
2209
25

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1714
SELECT ALL * FROM tab2 WHERE - col0 * 79 + + 74 * CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-1714
SELECT ALL * FROM tab2 WHERE - col0 * 79 + + 74 * CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT - 48 * - ( - col1 * col0 ) AS col0 FROM tab2
----
-112608
-236544
-241200

query I rowsort
SELECT DISTINCT - col2 + + 92 FROM tab1 WHERE NULL <= ( NULL )
----

query I rowsort
SELECT ALL - 2 * - 6 + + 53 FROM tab2
----
65
65
65

onlyif mysql # aggregate syntax: 
query I rowsort label-1718
SELECT ALL ( - SUM( - col1 ) ) - COUNT( * ) AS col0 FROM tab0 AS cor0
----
100

skipif mysql # not compatible
query I rowsort label-1718
SELECT ALL ( - SUM ( - col1 ) ) - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
100

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL IN ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1720
SELECT DISTINCT + MIN( ALL + col2 ) + - 85 col2 FROM tab2 AS cor0
----
-62

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1720
SELECT DISTINCT + MIN ( ALL + col2 ) + - 85 col2 FROM tab2 AS cor0
----
-62

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 <= ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1722
SELECT DISTINCT 7 DIV col1 - + col1 FROM tab2 cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-1722
SELECT DISTINCT 7 / col1 - + col1 FROM tab2 cor0
----
-51
-67
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 col2 FROM tab1 AS cor0 WHERE ( NULL ) >= col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1724
SELECT - MIN( DISTINCT 75 ) * 89 FROM tab2
----
-6675

skipif mysql # not compatible
query I rowsort label-1724
SELECT - MIN ( DISTINCT 75 ) * 89 FROM tab2
----
-6675

onlyif mysql # aggregate syntax: 
query I rowsort label-1725
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab0 AS cor0 LEFT JOIN tab0 ON NOT 86 IS NULL
----
-9

skipif mysql # not compatible
query I rowsort label-1725
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab0 AS cor0 LEFT JOIN tab0 ON NOT 86 IS NULL
----
-9

query I rowsort
SELECT DISTINCT + col2 * 93 AS col0 FROM tab1
----
5487
6324
8928

onlyif mysql # DIV for integer division: 
query I rowsort label-1727
SELECT 39 DIV - col0 - ( col0 ) FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-1727
SELECT 39 / - col0 - ( col0 ) FROM tab1
----
-51
-85
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1728
SELECT 94 * col0 AS col0 FROM tab2 WHERE ( + CAST( NULL AS SIGNED ) ) IS NULL
----
4324
6016
7050

skipif mysql # not compatible
query I rowsort label-1728
SELECT 94 * col0 AS col0 FROM tab2 WHERE ( + CAST ( NULL AS INTEGER ) ) IS NULL
----
4324
6016
7050

query I rowsort
SELECT DISTINCT 87 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-1730
SELECT ALL - MIN( DISTINCT col1 ) FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-1730
SELECT ALL - MIN ( DISTINCT col1 ) FROM tab2 AS cor0
----
-51

query I rowsort
SELECT DISTINCT + - 56 FROM tab1 cor0
----
-56

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col1 NOT BETWEEN NULL AND col0
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) >= ( col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + ( + col0 ) IN ( col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + 94 ) = col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + + 29 * 61 FROM tab2 AS cor0
----
1769
1769
1769

query I rowsort
SELECT ALL 72 * - col1 AS col0 FROM tab1
----
-1008
-3384
-360

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1738
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * + + COUNT( * ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1738
SELECT DISTINCT - CAST ( NULL AS REAL ) * + + COUNT ( * ) AS col2 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1739
SELECT ALL + COUNT( * ) * - 21 AS col1 FROM tab0 WHERE + col2 IS NOT NULL
----
-63

skipif mysql # not compatible
query I rowsort label-1739
SELECT ALL + COUNT ( * ) * - 21 AS col1 FROM tab0 WHERE + col2 IS NOT NULL
----
-63

query I rowsort
SELECT ( - + 8 ) FROM tab0
----
-8
-8
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-1741
SELECT DISTINCT COUNT( ALL - - col2 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-1741
SELECT DISTINCT COUNT ( ALL - - col2 ) AS col2 FROM tab1
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN - col0 / 53 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1743
SELECT - COUNT( + 85 ) * COUNT( * ) AS col2 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-1743
SELECT - COUNT ( + 85 ) * COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-9

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 BETWEEN + col2 AND ( col0 - + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 11 * + col2 * col1 AS col2 FROM tab0 AS cor0
----
-1089
-2310
-41877

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col2 ) = NULL
----

query I rowsort
SELECT + col2 / 4 FROM tab0 AS cor0 WHERE NOT ( NULL ) <= 60
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1748
SELECT * FROM tab2 AS cor0 WHERE NOT ( CAST( col0 AS SIGNED ) ) + - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-1748
SELECT * FROM tab2 AS cor0 WHERE NOT ( CAST ( col0 AS INTEGER ) ) + - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 16 * + - col1 + - col2 FROM tab0 AS cor0
----
-83
1249
326

onlyif mysql # aggregate syntax: 
query I rowsort label-1750
SELECT - + 79 * - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
711

skipif mysql # not compatible
query I rowsort label-1750
SELECT - + 79 * - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
711

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 + - 64 + + 91 col2 FROM tab1 AS cor0
----
32
41
74

query I rowsort
SELECT ALL ( - + 9 ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-9
-9
-9

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 * + col0 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1754
SELECT ALL + COUNT( * ) + - 29 FROM tab0 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-1754
SELECT ALL + COUNT ( * ) + - 29 FROM tab0 AS cor0
----
-26

query I rowsort
SELECT ALL + - 76 * - + col1 AS col0 FROM tab2 AS cor0
----
3876
5092
5852

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1756
SELECT COUNT( DISTINCT - col2 ) + + - CAST( - 72 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-1756
SELECT COUNT ( DISTINCT - col2 ) + + - CAST ( - 72 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
75

query I rowsort
SELECT ALL col0 + - 84 AS col1 FROM tab2 AS cor0 WHERE NOT ( 56 ) <> ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1758
SELECT + COUNT( * ) + - 17 FROM tab1 AS cor0
----
-14

skipif mysql # not compatible
query I rowsort label-1758
SELECT + COUNT ( * ) + - 17 FROM tab1 AS cor0
----
-14

query I rowsort
SELECT + col0 * col0 FROM tab2 AS cor0 WHERE NULL BETWEEN col2 + - col1 AND ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1760
SELECT DISTINCT CAST( - - ( - - MIN( DISTINCT + 81 ) ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-1760
SELECT DISTINCT CAST ( - - ( - - MIN ( DISTINCT + 81 ) ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1761
SELECT DISTINCT MAX( - col1 ) AS col2 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-1761
SELECT DISTINCT MAX ( - col1 ) AS col2 FROM tab1 AS cor0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-1762
SELECT COUNT( * ) * + MIN( - col1 ) FROM tab2 cor0
----
-231

skipif mysql # not compatible
query I rowsort label-1762
SELECT COUNT ( * ) * + MIN ( - col1 ) FROM tab2 cor0
----
-231

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col0 * - + col0 + - ( col1 ) ) NOT IN ( + 6 - - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE + 33 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1765
SELECT ALL + MIN( col2 ) + + MIN( ALL 89 ) FROM tab1
----
148

skipif mysql # not compatible
query I rowsort label-1765
SELECT ALL + MIN ( col2 ) + + MIN ( ALL 89 ) FROM tab1
----
148

query I rowsort
SELECT ALL ( - col0 ) + - + col0 FROM tab0
----
-174
-194
-30

query I rowsort
SELECT DISTINCT - - col2 - col2 / + col1 FROM tab0 WHERE - col1 IS NULL
----

query I rowsort
SELECT col1 * - 51 FROM tab1 WHERE - col2 * - + col2 >= ( NULL )
----

query I rowsort
SELECT ALL - col0 + + + col1 + 18 + + 52 * + 99 FROM tab2
----
5158
5171
5179

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1770
SELECT ALL * FROM tab2 AS cor0 WHERE ( - CAST( NULL AS SIGNED ) - + + 54 * col1 * - 41 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-1770
SELECT ALL * FROM tab2 AS cor0 WHERE ( - CAST ( NULL AS INTEGER ) - + + 54 * col1 * - 41 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1771
SELECT ALL MIN( DISTINCT + col2 ) - 21 col1 FROM tab0 AS cor0
----
-11

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1771
SELECT ALL MIN ( DISTINCT + col2 ) - 21 col1 FROM tab0 AS cor0
----
-11

query I rowsort
SELECT ( + 13 ) + - col2 AS col2 FROM tab1 AS cor0
----
-46
-55
-83

query I rowsort
SELECT DISTINCT - col1 - col1 + - - col1 * col0 + col2 FROM tab2 AS cor0
----
2267
4814
4949

onlyif mysql # aggregate syntax: 
query I rowsort label-1774
SELECT ALL + COUNT( DISTINCT + col1 ) - + 37 AS col1 FROM tab0 AS cor0
----
-34

skipif mysql # not compatible
query I rowsort label-1774
SELECT ALL + COUNT ( DISTINCT + col1 ) - + 37 AS col1 FROM tab0 AS cor0
----
-34

query I rowsort
SELECT - col1 + + 27 FROM tab0 AS cor0
----
-54
26
6

query I rowsort
SELECT DISTINCT - 37 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 97, - ( col1 ) * - col1 col0 FROM tab2
----
97
2601
97
4489
97
5929

query I rowsort
SELECT - 48 * + - col1 AS col2 FROM tab1
----
2256
240
672

query I rowsort
SELECT ALL - col0 * - + 88 * - col2 * - col0 FROM tab0
----
6660720
81971208
930600

query I rowsort
SELECT ALL - ( + 53 ) FROM tab0 AS cor0
----
-53
-53
-53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1781
SELECT + COUNT( ALL + col2 ) DIV - 51 * - COUNT( ALL - - col2 ) * + 81 AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1781
SELECT + COUNT ( ALL + col2 ) / - 51 * - COUNT ( ALL - - col2 ) * + 81 AS col1 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1782
SELECT - COUNT( col1 ) * - + 10 * + SUM( ALL - + col2 ) - + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-4683

skipif mysql # not compatible
query I rowsort label-1782
SELECT - COUNT ( col1 ) * - + 10 * + SUM ( ALL - + col2 ) - + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-4683

onlyif mysql # aggregate syntax: 
query I rowsort label-1783
SELECT ALL + ( - + MAX( ALL - 75 ) ) AS col1 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-1783
SELECT ALL + ( - + MAX ( ALL - 75 ) ) AS col1 FROM tab2 AS cor0
----
75

query I rowsort
SELECT + 40 * + AVG ( + - col0 ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1785
SELECT ALL SUM( 11 ) + CAST( + CAST( - COUNT( * ) AS DECIMAL ) AS SIGNED ) FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN ( + 75 * - col0 ) AND ( - 93 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1785
SELECT ALL SUM ( 11 ) + CAST ( + CAST ( - COUNT ( * ) AS REAL ) AS INTEGER ) FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN ( + 75 * - col0 ) AND ( - 93 )
----
NULL

query I rowsort
SELECT - col1 / 95 FROM tab1 WHERE NOT ( NOT ( NULL ) NOT IN ( + + col2 ) )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( + - 26 * + col2 - - - col0 - col2 ) >= ( col2 )
----

query II rowsort
SELECT - col2, 18 AS col0 FROM tab0
----
-10
18
-47
18
-99
18

query I rowsort
SELECT col2 * - 91 AS col2 FROM tab1
----
-5369
-6188
-8736

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 col2 FROM tab2 WHERE NOT - col1 * + col2 - + - col1 >= + 81 + - col2 * + col1
----
51
67
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 41 col2 FROM tab2
----
-41
-41
-41

query II rowsort
SELECT col1 AS col2, ( - col1 ) * - 18 FROM tab0
----
1
18
21
378
81
1458

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1793
SELECT 57 * SUM( DISTINCT + 66 ) DIV - COUNT( * ) + - COUNT( * ) FROM tab2
----
-1257

skipif mysql # not compatible
query I rowsort label-1793
SELECT 57 * SUM ( DISTINCT + 66 ) / - COUNT ( * ) + - COUNT ( * ) FROM tab2
----
-1257

query I rowsort
SELECT ALL 81 + col0 + - + 93 FROM tab2
----
34
52
63

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col1 + - col1 < col0
----

query I rowsort
SELECT + col1 * - col1 + col2 - - - col0 AS col0 FROM tab2 AS cor0
----
-2624
-4506
-5953

query I rowsort
SELECT - col2 + + - 9 FROM tab2 AS cor0
----
-32
-49
-67

query I rowsort
SELECT ALL col1 * - - col1 FROM tab0 cor0
----
1
441
6561

query II rowsort
SELECT ALL + 41 AS col1, 7 AS col1 FROM tab0 AS cor0
----
41
7
41
7
41
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1800
SELECT - CAST( SUM( ALL col0 ) AS SIGNED ) AS col0 FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-1800
SELECT - CAST ( SUM ( ALL col0 ) AS INTEGER ) AS col0 FROM tab1
----
-227

onlyif mysql # aggregate syntax: 
query II rowsort label-1801
SELECT + COUNT( DISTINCT + 4 ) AS col1, 54 AS col0 FROM tab0 AS cor0
----
1
54

skipif mysql # not compatible
query II rowsort label-1801
SELECT + COUNT ( DISTINCT + 4 ) AS col1, 54 AS col0 FROM tab0 AS cor0
----
1
54

onlyif mysql # aggregate syntax: 
query I rowsort label-1802
SELECT + COUNT( * ) FROM tab1 AS cor0 WHERE - 2 * + + col1 = ( + col1 + + - 86 - - 97 * 17 + 24 )
----
0

skipif mysql # not compatible
query I rowsort label-1802
SELECT + COUNT ( * ) FROM tab1 AS cor0 WHERE - 2 * + + col1 = ( + col1 + + - 86 - - 97 * 17 + 24 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1803
SELECT ALL MAX( DISTINCT col2 ) + + CAST( NULL AS SIGNED ) + - + 8 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1803
SELECT ALL MAX ( DISTINCT col2 ) + + CAST ( NULL AS INTEGER ) + - + 8 AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1804
SELECT DISTINCT 29 + + - COUNT( * ) AS col0 FROM tab1 cor0
----
26

skipif mysql # not compatible
query I rowsort label-1804
SELECT DISTINCT 29 + + - COUNT ( * ) AS col0 FROM tab1 cor0
----
26

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab0 AS cor0 WHERE ( NOT + - col1 IN ( col0 ) )
----
-10
-47
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 14 + + 94, + col1 col0 FROM tab1 AS cor0
----
108
14
108
47
108
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col2 + - col1 + 83 * + 54 col2 FROM tab1 AS cor0
----
10623
9364
9492

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL IS NULL OR ( NULL ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 8 + + col2 FROM tab2
----
31
48
66

onlyif mysql # aggregate syntax: 
query I rowsort label-1810
SELECT + + COUNT( * ) FROM tab1 WHERE 85 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1810
SELECT + + COUNT ( * ) FROM tab1 WHERE 85 IS NULL
----
0

query I rowsort
SELECT - 87 + + col2 AS col2 FROM tab0
----
-40
-77
12

query I rowsort
SELECT ( - col0 ) + + + 24 FROM tab1
----
-27
-61
-67

query I rowsort
SELECT + col1 + + 40 - - + col0 + - - 32 FROM tab1
----
137
162
210

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1814
SELECT DISTINCT col1 AS col2, 11 - + CAST( NULL AS SIGNED ) + - - col2 / + 73 FROM tab0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-1814
SELECT DISTINCT col1 AS col2, 11 - + CAST ( NULL AS INTEGER ) + - - col2 / + 73 FROM tab0
----
1
NULL
21
NULL
81
NULL

query I rowsort
SELECT DISTINCT + ( 62 ) * + 99 + + ( - col0 ) FROM tab2
----
6063
6074
6092

query II rowsort
SELECT - AVG ( DISTINCT - - col1 ) AS col2, 4 FROM tab2 WHERE NULL BETWEEN NULL AND - col2 * 43
----
NULL
4

onlyif mysql # aggregate syntax: 
query I rowsort label-1817
SELECT + MIN( + col0 ) col2 FROM tab2 cor0
----
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1817
SELECT + MIN ( + col0 ) col2 FROM tab2 cor0
----
46

query I rowsort
SELECT ALL - - ( + col0 ) - col0 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + - col0 + ( - col1 ) FROM tab0 AS cor0 WHERE 97 IS NULL
----

query I rowsort
SELECT col0 AS col0 FROM tab2 AS cor0 WHERE NOT + col1 * + ( + col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1821
SELECT DISTINCT - MAX( ALL - + col1 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-1821
SELECT DISTINCT - MAX ( ALL - + col1 ) FROM tab0
----
1

query I rowsort
SELECT + 16 * 16 FROM tab0 AS cor0
----
256
256
256

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 62 NOT IN ( - col2 * - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1824
SELECT DISTINCT - 25 * + - CAST( NULL AS SIGNED ) AS col2 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1824
SELECT DISTINCT - 25 * + - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1825
SELECT ALL MIN( - ( - col0 ) ) col0 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1825
SELECT ALL MIN ( - ( - col0 ) ) col0 FROM tab1 AS cor0
----
51

query II rowsort
SELECT - ( - 78 ) AS col2, + col1 AS col2 FROM tab2 AS cor0
----
78
51
78
67
78
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 23 col0 FROM tab1 AS cor0
----
-23
-23
-23

query II rowsort
SELECT 44 AS col1, - col2 * - 3 FROM tab0
----
44
141
44
297
44
30

query II rowsort
SELECT ALL - 96, col1 AS col1 FROM tab2
----
-96
51
-96
67
-96
77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1830
SELECT ALL col2, CAST( NULL AS SIGNED ) + + col0 FROM tab1
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-1830
SELECT ALL col2, CAST ( NULL AS INTEGER ) + + col0 FROM tab1
----
59
NULL
68
NULL
96
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE col2 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1832
SELECT - 46 * - COUNT( * ) FROM tab1 AS cor0
----
138

skipif mysql # not compatible
query I rowsort label-1832
SELECT - 46 * - COUNT ( * ) FROM tab1 AS cor0
----
138

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( ( - 89 ) NOT IN ( col0 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1834
SELECT - 56 DIV + 8 col0 FROM tab0 cor0
----
-7
-7
-7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1834
SELECT - 56 / + 8 col0 FROM tab0 cor0
----
-7
-7
-7

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1835
SELECT DISTINCT - 78 * - + 83 * - ( - - CAST( NULL AS SIGNED ) ) + - + col2 + col2 / + CAST( + col1 AS DECIMAL ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1835
SELECT DISTINCT - 78 * - + 83 * - ( - - CAST ( NULL AS INTEGER ) ) + - + col2 + col2 / + CAST ( + col1 AS REAL ) FROM tab1
----
NULL

query I rowsort
SELECT ALL + col2 * + + 54 AS col1 FROM tab0 AS cor0 WHERE NULL > NULL
----

query I rowsort
SELECT 8 FROM tab1 AS cor0 WHERE + col1 IS NULL
----

query I rowsort
SELECT col1 + - col0 + - - col0 - col0 FROM tab1 AS cor0
----
-37
-44
-80

query I rowsort
SELECT + ( - 9 ) AS col2 FROM tab0 AS cor0
----
-9
-9
-9

query I rowsort
SELECT ALL - col2 + + 62 FROM tab1 AS cor0
----
-34
-6
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1841
SELECT - col1 * 9 * - + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1841
SELECT - col1 * 9 * - + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 - - col2 - + - 87 FROM tab1 AS cor0
----
231
234
246

query I rowsort
SELECT 25 - - - 11 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
14
14
14

onlyif mysql # aggregate syntax: 
query I rowsort label-1844
SELECT - COUNT( * ) FROM tab2 cor0 WHERE + ( + col1 ) IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-1844
SELECT - COUNT ( * ) FROM tab2 cor0 WHERE + ( + col1 ) IS NOT NULL
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1845
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + CAST( col2 AS SIGNED ) AND + col1
----

skipif mysql # not compatible
query III rowsort label-1845
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + CAST ( col2 AS INTEGER ) AND + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1846
SELECT - - col2 AS col1, CAST( NULL AS SIGNED ) * 86 AS col2 FROM tab1 cor0
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-1846
SELECT - - col2 AS col1, CAST ( NULL AS INTEGER ) * 86 AS col2 FROM tab1 cor0
----
59
NULL
68
NULL
96
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1847
SELECT DISTINCT * FROM tab1 WHERE NOT CAST( NULL AS SIGNED ) <> - col2 * - col0
----

skipif mysql # not compatible
query III rowsort label-1847
SELECT DISTINCT * FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) <> - col2 * - col0
----

query I rowsort
SELECT DISTINCT 85 * + col0 FROM tab0
----
1275
7395
8245

onlyif mysql # aggregate syntax: 
query I rowsort label-1849
SELECT DISTINCT SUM( DISTINCT 45 ) + + 94 AS col1 FROM tab2
----
139

skipif mysql # not compatible
query I rowsort label-1849
SELECT DISTINCT SUM ( DISTINCT 45 ) + + 94 AS col1 FROM tab2
----
139

query II rowsort
SELECT ALL ( - 62 ), 11 * + + col0 AS col1 FROM tab0
----
-62
1067
-62
165
-62
957

onlyif mysql # DIV for integer division: 
query I rowsort label-1851
SELECT ALL - + ( + 32 ) DIV + col2 FROM tab0 AS cor0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-1851
SELECT ALL - + ( + 32 ) / + col2 FROM tab0 AS cor0
----
-3
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 83 * - + col0 col2 FROM tab0 AS cor0
----
1245
7221
8051

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 77 col1 FROM tab0 AS cor0
----
77
77
77

query I rowsort
SELECT 57 * - - col2 * + col0 FROM tab1 AS cor0
----
279072
285855
352716

query II rowsort
SELECT DISTINCT + col1, 35 FROM tab0 cor0
----
1
35
21
35
81
35

onlyif mysql # aggregate syntax: 
query II rowsort label-1856
SELECT - COUNT( - + 32 ), + 45 - MIN( DISTINCT - + col1 ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NOT col1 IS NOT NULL )
----
-3
122

skipif mysql # not compatible
query II rowsort label-1856
SELECT - COUNT ( - + 32 ), + 45 - MIN ( DISTINCT - + col1 ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NOT col1 IS NOT NULL )
----
-3
122

query I rowsort
SELECT ALL col0 + + col0 * col2 + + col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1858
SELECT + col2 AS col0 FROM tab2 WHERE NOT - - 97 NOT IN ( - ( - CAST( NULL AS SIGNED ) ), - col0 )
----

skipif mysql # not compatible
query I rowsort label-1858
SELECT + col2 AS col0 FROM tab2 WHERE NOT - - 97 NOT IN ( - ( - CAST ( NULL AS INTEGER ) ), - col0 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL < 61
----

query I rowsort
SELECT col0 + 77 FROM tab2
----
123
141
152

onlyif mysql # aggregate syntax: 
query I rowsort label-1861
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1861
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1862
SELECT - CAST( NULL AS SIGNED ) * + col2 / - 98 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1862
SELECT - CAST ( NULL AS INTEGER ) * + col2 / - 98 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1863
SELECT DISTINCT + COUNT( * ) + 47 - - COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( 57 ) IS NULL
----
53

skipif mysql # not compatible
query I rowsort label-1863
SELECT DISTINCT + COUNT ( * ) + 47 - - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( 57 ) IS NULL
----
53

query I rowsort
SELECT DISTINCT col2 * + - 52 AS col0 FROM tab2
----
-1196
-2080
-3016

onlyif mysql # aggregate syntax: 
query I rowsort label-1865
SELECT COUNT( * ) * 90 AS col1 FROM tab1
----
270

skipif mysql # not compatible
query I rowsort label-1865
SELECT COUNT ( * ) * 90 AS col1 FROM tab1
----
270

query I rowsort
SELECT - - col0 - - - col1 AS col0 FROM tab0 AS cor0
----
-66
66
96

query I rowsort
SELECT ALL + 53 + + col2 + 11 AS col1 FROM tab2 AS cor0
----
104
122
87

query I rowsort
SELECT DISTINCT + ( + 39 ) AS col2 FROM tab0 AS cor0
----
39

query I rowsort
SELECT + col0 + col2 - col2 + + + col2 + - col0 - - col1 FROM tab0 AS cor0
----
100
128
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + ( + - col0 ) col0 FROM tab2
----
-104
-133
-69

query III rowsort
SELECT * FROM tab2 WHERE + ( + 81 ) < + 32
----

query I rowsort
SELECT DISTINCT - col2 * ( - - col0 ) - - + col1 FROM tab0
----
-624
-849
-9602

query I rowsort
SELECT DISTINCT - 1 * 99 FROM tab2
----
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1874
SELECT ALL COUNT( DISTINCT col0 ) DIV - COUNT( * ) AS col1 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-1874
SELECT ALL COUNT ( DISTINCT col0 ) / - COUNT ( * ) AS col1 FROM tab2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1875
SELECT ALL - col2 * + CAST( + 28 AS SIGNED ) FROM tab0
----
-1316
-2772
-280

skipif mysql # not compatible
query I rowsort label-1875
SELECT ALL - col2 * + CAST ( + 28 AS INTEGER ) FROM tab0
----
-1316
-2772
-280

onlyif mysql # aggregate syntax: 
query I rowsort label-1876
SELECT - MIN( + 94 ) + - 30 col0 FROM tab2
----
-124

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1876
SELECT - MIN ( + 94 ) + - 30 col0 FROM tab2
----
-124

query II rowsort
SELECT + col0 * - 74, col2 * col0 AS col0 FROM tab0
----
-1110
705
-6438
870
-7178
9603

onlyif mysql # DIV for integer division: 
query I rowsort label-1878
SELECT DISTINCT ( + 57 ) DIV + col1 FROM tab1
----
1
11
4

skipif mysql # not compatible
query I rowsort label-1878
SELECT DISTINCT ( + 57 ) / + col1 FROM tab1
----
1
11
4

query I rowsort
SELECT + 46 * - 84 FROM tab2
----
-3864
-3864
-3864

onlyif mysql # DIV for integer division: 
query II rowsort label-1880
SELECT DISTINCT - 46 AS col2, + 91 DIV 57 + + col2 DIV - col1 AS col0 FROM tab0
----
-46
-98
-46
1

skipif mysql # not compatible
query II rowsort label-1880
SELECT DISTINCT - 46 AS col2, + 91 / 57 + + col2 / - col1 AS col0 FROM tab0
----
-46
-98
-46
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1881
SELECT DISTINCT - MIN( + + ( - + col1 ) ) AS col2 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-1881
SELECT DISTINCT - MIN ( + + ( - + col1 ) ) AS col2 FROM tab1 AS cor0
----
47

query I rowsort
SELECT DISTINCT + 30 * 25 AS col0 FROM tab2 AS cor0
----
750

query I rowsort
SELECT ALL - 80 * 85 FROM tab0 AS cor0
----
-6800
-6800
-6800

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT + + 25, - col1 AS col2, + col2 col1 FROM tab1 AS cor0
----
9 values hashing to 1572e78df4a189cc71a2748d0e62317d

query I rowsort
SELECT - 48 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 31c94943c073954e4ca20b170ab61f8c

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + - ( - + col2 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1887
SELECT DISTINCT * FROM tab0 WHERE - - CAST( + 6 AS SIGNED ) + + col0 IS NULL
----

skipif mysql # not compatible
query III rowsort label-1887
SELECT DISTINCT * FROM tab0 WHERE - - CAST ( + 6 AS INTEGER ) + + col0 IS NULL
----

query I rowsort
SELECT + col1 * 38 FROM tab0
----
3078
38
798

onlyif mysql # aggregate syntax: 
query I rowsort label-1889
SELECT - SUM( - col0 ) AS col0 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
199

skipif mysql # not compatible
query I rowsort label-1889
SELECT - SUM ( - col0 ) AS col0 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
199

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col1 / col0 - + col2 IS NOT NULL
----

query I rowsort
SELECT + 62 * + 38 FROM tab2 AS cor0
----
2356
2356
2356

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 + - - col0 * - col2 - + col1 / - + col1 / - 43 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1893
SELECT ALL - MAX( DISTINCT - 76 ) FROM tab2 AS cor0
----
76

skipif mysql # not compatible
query I rowsort label-1893
SELECT ALL - MAX ( DISTINCT - 76 ) FROM tab2 AS cor0
----
76

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL <> 19
----

query II rowsort
SELECT 82 + + - 98 AS col2, 70 AS col1 FROM tab0 AS cor0
----
-16
70
-16
70
-16
70

query I rowsort
SELECT - ( + + ( 87 ) ) + 16 FROM tab1 AS cor0
----
-71
-71
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-1897
SELECT + SUM( ALL + + 15 ) FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN 78 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1897
SELECT + SUM ( ALL + + 15 ) FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN 78 AND NULL
----
NULL

query II rowsort
SELECT DISTINCT col0 AS col1, - col1 FROM tab2
----
46
-51
64
-77
75
-67

query I rowsort
SELECT - ( - 80 ) + + 69 AS col1 FROM tab1 WHERE NOT + - col1 * col2 IS NULL
----
149
149
149

query I rowsort
SELECT DISTINCT + col2 * + col0 + 87 FROM tab2
----
1145
2647
4437

onlyif mysql # aggregate syntax: 
query I rowsort label-1901
SELECT DISTINCT - + MAX( DISTINCT - + col0 ) AS col2 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-1901
SELECT DISTINCT - + MAX ( DISTINCT - + col0 ) AS col2 FROM tab0 AS cor0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-1902
SELECT ALL ( COUNT( * ) ) AS col0 FROM tab1 AS cor0 WHERE + 95 + + col2 <> ( + + ( + col0 ) )
----
3

skipif mysql # not compatible
query I rowsort label-1902
SELECT ALL ( COUNT ( * ) ) AS col0 FROM tab1 AS cor0 WHERE + 95 + + col2 <> ( + + ( + col0 ) )
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE - 31 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT IN ( + col0 + + col0, - 12, + + 98 + + col0, - col0 + - col0, + col1 )
----

query I rowsort
SELECT DISTINCT + col1 - + 95 AS col2 FROM tab1 AS cor0
----
-48
-81
-90

query I rowsort
SELECT ALL col0 AS col0 FROM tab0 AS cor0 WHERE col0 * col2 * - + col1 * 96 IS NULL
----

query I rowsort
SELECT DISTINCT - - col1 - + + col2 AS col2 FROM tab0 AS cor0
----
-98
11
34

onlyif mysql # DIV for integer division: 
query I rowsort label-1908
SELECT DISTINCT - col2 * col2 * + + 15 - - col1 - + - col0 DIV col0 + - - col0 * + + col1 FROM tab2 AS cor0
----
-18994
-45367
-5537

skipif mysql # not compatible
query I rowsort label-1908
SELECT DISTINCT - col2 * col2 * + + 15 - - col1 - + - col0 / col0 + - - col0 * + + col1 FROM tab2 AS cor0
----
-18994
-45367
-5537

query I rowsort
SELECT ALL col1 - - col2 AS col0 FROM tab0 AS cor0
----
100
128
31

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - + col0 - + col1 + + + ( - + col1 ) IN ( ( - 82 ) + - col0 )
----

query I rowsort
SELECT ALL 4 * col0 FROM tab1
----
204
340
364

query I rowsort
SELECT 98 * - - col0 * + col2 + - col2 FROM tab0 WHERE NOT 87 IN ( col2, 41, - 69, + col1 )
----
69043
85250
940995

query III rowsort
SELECT * FROM tab2 WHERE NOT - 45 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND + 72
----

query I rowsort
SELECT DISTINCT col2 FROM tab2 WHERE NOT NULL IN ( - col1 )
----

query I rowsort
SELECT - 78 * + 84 FROM tab1
----
-6552
-6552
-6552

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1917
SELECT ALL CAST( NULL AS SIGNED ), + col2 AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query II rowsort label-1917
SELECT ALL CAST ( NULL AS INTEGER ), + col2 AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT col0, col2 * - + col2 + + - col0 FROM tab0
----
15
-2224
87
-187
97
-9898

query II rowsort
SELECT ALL col2 AS col2, + col1 * - col1 AS col1 FROM tab0
----
10
-441
47
-6561
99
-1

query I rowsort
SELECT ( - col2 ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1921
SELECT ALL - + MIN( - col2 ) col0 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1921
SELECT ALL - + MIN ( - col2 ) col0 FROM tab0 AS cor0
----
99

query I rowsort
SELECT ALL - - col1 * + 81 FROM tab1 AS cor0
----
1134
3807
405

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1923
SELECT col0 + + CAST( col1 AS DECIMAL ) FROM tab2 cor0 WHERE NOT NULL >= 23 * + ( + + 40 )
----

skipif mysql # not compatible
query I rowsort label-1923
SELECT col0 + + CAST ( col1 AS REAL ) FROM tab2 cor0 WHERE NOT NULL >= 23 * + ( + + 40 )
----

query I rowsort
SELECT + 37 AS col0 FROM tab2 AS cor0 WHERE NOT + ( col2 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1925
SELECT DISTINCT col2 DIV col1 DIV - col1 * + 17 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1925
SELECT DISTINCT col2 / col1 / - col1 * + 17 FROM tab2
----
0

query I rowsort
SELECT DISTINCT + - 0 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
0

query I rowsort
SELECT 45 * - + 97 FROM tab2
----
-4365
-4365
-4365

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1928
SELECT ALL - CAST( NULL AS SIGNED ) * - 71 * COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-1928
SELECT ALL - CAST ( NULL AS INTEGER ) * - 71 * COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

query I rowsort
SELECT + col2 * 31 + - col1 FROM tab2 cor0
----
1163
1731
662

query II rowsort
SELECT DISTINCT - col1 AS col1, + 11 - col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT + col1 AS col2, + 60 * + ( - 89 ) AS col0 FROM tab0 AS cor0
----
1
-5340
21
-5340
81
-5340

query I rowsort
SELECT ALL 58 * 18 - + - col0 FROM tab1 AS cor0
----
1095
1129
1135

query I rowsort
SELECT + col0 * 69 + + 46 + col1 FROM tab2 AS cor0
----
3271
4539
5288

onlyif mysql # DIV for integer division: 
query I rowsort label-1934
SELECT ALL - col0 DIV - col1 + col2 FROM tab2 cor0
----
23
40
59

skipif mysql # not compatible
query I rowsort label-1934
SELECT ALL - col0 / - col1 + col2 FROM tab2 cor0
----
23
40
59

query I rowsort
SELECT - + col1 AS col2 FROM tab0 AS cor0 WHERE NULL IN ( - col1, col0, + + col2 )
----

query II rowsort
SELECT + col2 AS col0, - col1 + - - 27 FROM tab0 AS cor0
----
10
6
47
-54
99
26

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - + 5 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1938
SELECT AVG ( + CAST( NULL AS SIGNED ) ) + - - AVG ( DISTINCT + 91 ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1938
SELECT AVG ( + CAST ( NULL AS INTEGER ) ) + - - AVG ( DISTINCT + 91 ) AS col0 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1939
SELECT DISTINCT + ( + - CAST( NULL AS SIGNED ) ) col2, 36 DIV - - col1 + - - col0 + + col1 + + 63 * + col1 FROM tab2
----
NULL
3310
NULL
4363
NULL
4992

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1939
SELECT DISTINCT + ( + - CAST ( NULL AS INTEGER ) ) col2, 36 / - - col1 + - - col0 + + col1 + + 63 * + col1 FROM tab2
----
NULL
3310
NULL
4363
NULL
4992

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1940
SELECT DISTINCT + 9 * - CAST( NULL AS SIGNED ) + - ( - col1 ) * + col1 AS col2, + CAST( NULL AS SIGNED ) * - col1 FROM tab1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-1940
SELECT DISTINCT + 9 * - CAST ( NULL AS INTEGER ) + - ( - col1 ) * + col1 AS col2, + CAST ( NULL AS INTEGER ) * - col1 FROM tab1
----
NULL
NULL

query II rowsort
SELECT ALL 96 + - - col1, col0 * - + col1 AS col2 FROM tab1
----
101
-425
110
-714
143
-4277

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 79 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1943
SELECT DISTINCT - ( ( col0 ) ) DIV 94 * + - col1 AS col1 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-1943
SELECT DISTINCT - ( ( col0 ) ) / 94 * + - col1 AS col1 FROM tab2 cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 - + - col2 - col1 col1 FROM tab0 AS cor0
----
-49
-98
1

query I rowsort
SELECT col1 * - + 33 - - col2 AS col2 FROM tab2
----
-1660
-2153
-2501

query I rowsort
SELECT ALL + col1 + - 77 AS col2 FROM tab1
----
-30
-63
-72

query I rowsort
SELECT DISTINCT col1 + + - col1 AS col0 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1948
SELECT + - ( COUNT( * ) ) FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1948
SELECT + - ( COUNT ( * ) ) FROM tab2 cor0
----
-3

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col2 + 55 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + col2 col0 FROM tab1 cor0
----
4896
5015
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-1951
SELECT SUM( + 9 ) FROM tab0 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-1951
SELECT SUM ( + 9 ) FROM tab0 AS cor0
----
27

query I rowsort
SELECT DISTINCT - col2 * - + 76 FROM tab1 AS cor0
----
4484
5168
7296

query I rowsort
SELECT ALL - + 68 * col0 AS col2 FROM tab0 AS cor0
----
-1020
-5916
-6596

onlyif mysql # aggregate syntax: 
query I rowsort label-1954
SELECT - ( - + COUNT( DISTINCT - col2 ) ) * 74 * 92 * + - 61 - COUNT( * ) FROM tab0
----
-1245867

skipif mysql # not compatible
query I rowsort label-1954
SELECT - ( - + COUNT ( DISTINCT - col2 ) ) * 74 * 92 * + - 61 - COUNT ( * ) FROM tab0
----
-1245867

query II rowsort
SELECT col1 * + 34 * - col1 * col2 AS col2, col2 + col2 * + - 2 AS col2 FROM tab2
----
-2033982
-23
-8063440
-40
-8852308
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + 13 ) col2 FROM tab0
----
-13
-13
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-1957
SELECT - SUM( ALL + 24 ) FROM tab0
----
-72

skipif mysql # not compatible
query I rowsort label-1957
SELECT - SUM ( ALL + 24 ) FROM tab0
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-1958
SELECT 38 * - MAX( ALL + col2 ) FROM tab0
----
-3762

skipif mysql # not compatible
query I rowsort label-1958
SELECT 38 * - MAX ( ALL + col2 ) FROM tab0
----
-3762

onlyif mysql # aggregate syntax: 
query I rowsort label-1959
SELECT DISTINCT - SUM( DISTINCT - col2 ) FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-1959
SELECT DISTINCT - SUM ( DISTINCT - col2 ) FROM tab0
----
156

query I rowsort
SELECT DISTINCT 72 AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1961
SELECT DISTINCT + CAST( + + COUNT( * ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1961
SELECT DISTINCT + CAST ( + + COUNT ( * ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
3

query I rowsort
SELECT + col2 * - - 78 FROM tab2 AS cor0
----
1794
3120
4524

query I rowsort
SELECT DISTINCT + col0 * 12 + col2 * - col1 AS col1 FROM tab0 AS cor0
----
-3627
1065
834

query I rowsort
SELECT col1 + 20 FROM tab0 AS cor0
----
101
21
41

query I rowsort
SELECT + col1 FROM tab1 AS cor0 WHERE 8 NOT IN ( - + col2, 50 * col2, + - 71 )
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1966
SELECT + + COUNT( * ) + - + 68 FROM tab2 AS cor0
----
-65

skipif mysql # not compatible
query I rowsort label-1966
SELECT + + COUNT ( * ) + - + 68 FROM tab2 AS cor0
----
-65

query I rowsort
SELECT col2 FROM tab1 cor0 WHERE ( - + col2 IS NOT NULL )
----
59
68
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 30 * - - col0 col0 FROM tab1 cor0
----
1530
2550
2730

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 NOT BETWEEN - col2 AND + 12
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + + col0 * + col1 * - col1 FROM tab1 AS cor0
----
-201019
-2125
-9996

query II rowsort
SELECT - col1, + col2 FROM tab2
----
-51
23
-67
58
-77
40

query I rowsort
SELECT ALL + col2 AS col1 FROM tab1 WHERE NOT ( + 46 ) IS NULL
----
59
68
96

query II rowsort
SELECT ALL col0, col0 + ( + - ( col1 ) ) + - col0 AS col2 FROM tab1
----
51
-14
85
-5
91
-47

query II rowsort
SELECT - col2 AS col2, col0 AS col1 FROM tab2
----
-23
46
-40
64
-58
75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1975
SELECT ALL * FROM tab0 WHERE NOT + col2 * col0 <= col1 * col0 - - + 96 - col2 + - + CAST( NULL AS SIGNED ) * - col2 * - - CAST( NULL AS SIGNED ) * - col2 * + - 19 * - - 22
----

skipif mysql # not compatible
query III rowsort label-1975
SELECT ALL * FROM tab0 WHERE NOT + col2 * col0 <= col1 * col0 - - + 96 - col2 + - + CAST ( NULL AS INTEGER ) * - col2 * - - CAST ( NULL AS INTEGER ) * - col2 * + - 19 * - - 22
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1976
SELECT COUNT( * ), - COUNT( - col0 ) AS col1 FROM tab1
----
3
-3

skipif mysql # not compatible
query II rowsort label-1976
SELECT COUNT ( * ), - COUNT ( - col0 ) AS col1 FROM tab1
----
3
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1977
SELECT DISTINCT COUNT( * ) * - - MAX( ALL col0 ) + + ( - + MIN( col2 ) ) AS col0 FROM tab2
----
202

skipif mysql # not compatible
query I rowsort label-1977
SELECT DISTINCT COUNT ( * ) * - - MAX ( ALL col0 ) + + ( - + MIN ( col2 ) ) AS col0 FROM tab2
----
202

query I rowsort
SELECT + - 71 - + col1 AS col0 FROM tab0 AS cor0
----
-152
-72
-92

query I rowsort
SELECT + 47 - - col1 + + col1 * col1 FROM tab0 AS cor0
----
49
509
6689

onlyif mysql # aggregate syntax: 
query II rowsort label-1980
SELECT ALL 40 AS col2, + COUNT( * ) col1 FROM tab1 AS cor0
----
40
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1980
SELECT ALL 40 AS col2, + COUNT ( * ) col1 FROM tab1 AS cor0
----
40
3

query II rowsort
SELECT ALL - + col2, col2 AS col1 FROM tab0 cor0
----
-10
10
-47
47
-99
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 36 col2 FROM tab2, tab0 AS cor0
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752

query I rowsort
SELECT + 25 + col0 AS col0 FROM tab2
----
100
71
89

query III rowsort
SELECT * FROM tab1 WHERE ( ( NULL IS NOT NULL ) )
----

query I rowsort
SELECT ALL + 47 - - 99 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 708ab89da52f5539ae8cc2b28295d0f9

onlyif mysql # aggregate syntax: 
query I rowsort label-1986
SELECT + COUNT( * ) FROM tab1 cor0 CROSS JOIN tab0 cor1
----
9

skipif mysql # not compatible
query I rowsort label-1986
SELECT + COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab0 cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1987
SELECT ALL - + MIN( DISTINCT + ( + 28 ) ) FROM tab2 cor0
----
-28

skipif mysql # not compatible
query I rowsort label-1987
SELECT ALL - + MIN ( DISTINCT + ( + 28 ) ) FROM tab2 cor0
----
-28

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + ( - col2 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL BETWEEN + 93 AND NULL
----

query I rowsort
SELECT 7 * + col2 FROM tab0
----
329
693
70

query II rowsort
SELECT col1 AS col2, 31 FROM tab2
----
51
31
67
31
77
31

onlyif mysql # aggregate syntax: 
query I rowsort label-1992
SELECT DISTINCT MIN( DISTINCT - 52 ) * - - COUNT( * ) AS col2 FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-1992
SELECT DISTINCT MIN ( DISTINCT - 52 ) * - - COUNT ( * ) AS col2 FROM tab0
----
-156

query II rowsort
SELECT - col1 * ( - col0 ) AS col0, - col0 FROM tab2
----
2346
-46
4928
-64
5025
-75

query I rowsort
SELECT 27 / 41 * + + 86 FROM tab1 WHERE NOT ( NULL ) <> - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 * 1 col2 FROM tab0 AS cor0
----
-10
-47
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1996
SELECT DISTINCT - + CAST( + + col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-1996
SELECT DISTINCT - + CAST ( + + col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-46
-64
-75

query I rowsort
SELECT + 56 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa

onlyif mysql # aggregate syntax: 
query I rowsort label-1998
SELECT COUNT( - 23 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-1998
SELECT COUNT ( - 23 ) AS col0 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-1999
SELECT DISTINCT + MIN( ALL + col1 ) AS col1, + COUNT( * ) * 50 AS col0 FROM tab0 cor0
----
1
150

skipif mysql # not compatible
query II rowsort label-1999
SELECT DISTINCT + MIN ( ALL + col1 ) AS col1, + COUNT ( * ) * 50 AS col0 FROM tab0 cor0
----
1
150

query I rowsort
SELECT - col0 * - 30 FROM tab2 cor0
----
1380
1920
2250

onlyif mysql # aggregate syntax: 
query I rowsort label-2001
SELECT ALL + - MIN( col0 ) FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-2001
SELECT ALL + - MIN ( col0 ) FROM tab2 AS cor0
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2002
SELECT ALL - - 56, + col1 AS col0 FROM tab2 cor0 WHERE NOT CAST( col2 AS SIGNED ) IS NULL
----
56
51
56
67
56
77

skipif mysql # not compatible
query II rowsort label-2002
SELECT ALL - - 56, + col1 AS col0 FROM tab2 cor0 WHERE NOT CAST ( col2 AS INTEGER ) IS NULL
----
56
51
56
67
56
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2003
SELECT - COUNT( * ) DIV + + COUNT( * ) + + 73 AS col1 FROM tab2 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-2003
SELECT - COUNT ( * ) / + + COUNT ( * ) + + 73 AS col1 FROM tab2 AS cor0
----
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2, col1 col0 FROM tab0
----
10
21
47
81
99
1

query I rowsort
SELECT DISTINCT - col1 * - - col0 FROM tab2
----
-2346
-4928
-5025

onlyif mysql # aggregate syntax: 
query I rowsort label-2006
SELECT ALL MAX( ALL col0 ) AS col0 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-2006
SELECT ALL MAX ( ALL col0 ) AS col0 FROM tab2
----
75

query I rowsort
SELECT ALL - 30 + + col1 AS col2 FROM tab1
----
-16
-25
17

query I rowsort
SELECT - 3 + - + 93 FROM tab2
----
-96
-96
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-2009
SELECT DISTINCT 42 + + - col1 DIV - col1 AS col0 FROM tab1
----
43

skipif mysql # not compatible
query I rowsort label-2009
SELECT DISTINCT 42 + + - col1 / - col1 AS col0 FROM tab1
----
43

query I rowsort
SELECT - 69 + + col2 FROM tab0
----
-22
-59
30

onlyif mysql # DIV for integer division: 
query I rowsort label-2011
SELECT ALL + 10 + 43 DIV + col1 FROM tab0 AS cor0
----
10
12
53

skipif mysql # not compatible
query I rowsort label-2011
SELECT ALL + 10 + 43 / + col1 FROM tab0 AS cor0
----
10
12
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2012
SELECT DISTINCT + - 6 - - CAST( 93 AS SIGNED ) FROM tab2 cor0
----
87

skipif mysql # not compatible
query I rowsort label-2012
SELECT DISTINCT + - 6 - - CAST ( 93 AS INTEGER ) FROM tab2 cor0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-2013
SELECT COUNT( * ) - - 66 AS col2 FROM tab0
----
69

skipif mysql # not compatible
query I rowsort label-2013
SELECT COUNT ( * ) - - 66 AS col2 FROM tab0
----
69

query I rowsort
SELECT - ( - 11 ) - - col1 FROM tab0
----
12
32
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - - col0 col0 FROM tab2
----
17
23
24

query I rowsort
SELECT - col1 * col0 * + - col2 * - + 21 AS col2 FROM tab0
----
-1199205
-201663
-383670

query II rowsort
SELECT - + 84 + + col1 + col0 + + ( + + col1 ) AS col1, - col1 + + col1 FROM tab1 WHERE + 76 IS NOT NULL AND - col1 IS NOT NULL
----
-5
0
101
0
11
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2018
SELECT ALL + 57 DIV + COUNT( - - ( 39 ) ), - COUNT( DISTINCT - + 32 ) AS col1 FROM tab1
----
19
-1

skipif mysql # not compatible
query II rowsort label-2018
SELECT ALL + 57 / + COUNT ( - - ( 39 ) ), - COUNT ( DISTINCT - + 32 ) AS col1 FROM tab1
----
19
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2019
SELECT DISTINCT + + COUNT( * ) FROM tab1 WHERE NOT NULL NOT BETWEEN ( col0 ) AND ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-2019
SELECT DISTINCT + + COUNT ( * ) FROM tab1 WHERE NOT NULL NOT BETWEEN ( col0 ) AND ( NULL )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 col2, col0 FROM tab2 AS cor0
----
46
46
64
64
75
75

query I rowsort
SELECT - - col1 FROM tab2 AS cor0 WHERE NOT + col1 / col1 IS NOT NULL
----

query I rowsort
SELECT - col2 * - ( - col2 ) AS col0 FROM tab1 cor0
----
-3481
-4624
-9216

query I rowsort
SELECT ( 7 ) FROM tab0 cor0
----
7
7
7

query I rowsort
SELECT DISTINCT - 27 * - - col2 * - 79 FROM tab2 AS cor0
----
123714
49059
85320

onlyif mysql # aggregate syntax: 
query I rowsort label-2025
SELECT ALL - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2025
SELECT ALL - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
-3

query II rowsort
SELECT col2, col0 AS col1 FROM tab2 AS cor0
----
23
46
40
64
58
75

query II rowsort
SELECT DISTINCT + AVG ( + 26 ) AS col1, 96 * + 57 AS col1 FROM tab2 WHERE NOT + + col2 IS NOT NULL
----
NULL
5472

query I rowsort
SELECT - 77 AS col2 FROM tab2 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2029
SELECT + + CAST( 47 AS SIGNED ), + col1 AS col2 FROM tab1 AS cor0
----
47
14
47
47
47
5

skipif mysql # not compatible
query II rowsort label-2029
SELECT + + CAST ( 47 AS INTEGER ), + col1 AS col2 FROM tab1 AS cor0
----
47
14
47
47
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2030
SELECT COUNT( * ) * 35 FROM tab1
----
105

skipif mysql # not compatible
query I rowsort label-2030
SELECT COUNT ( * ) * 35 FROM tab1
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-2031
SELECT DISTINCT - MIN( ALL + col2 ) + - COUNT( * ) FROM tab2 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-2031
SELECT DISTINCT - MIN ( ALL + col2 ) + - COUNT ( * ) FROM tab2 AS cor0
----
-26

query II rowsort
SELECT ALL col1 + + - col1 * + - col0 * + + 25 + 57 * + 89 AS col2, - col1 FROM tab1 AS cor0
----
112045
-47
15703
-5
22937
-14

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2033
SELECT ALL - - col2 AS col1, - CAST( - + col1 AS SIGNED ) + - col0 DIV col1 + - + 26 * - col0 * - - col0 * - + col0 + - 37 AS col0 FROM tab2 AS cor0
----
23
-2530722
40
-6815704
58
-10968721

skipif mysql # not compatible
query II rowsort label-2033
SELECT ALL - - col2 AS col1, - CAST ( - + col1 AS INTEGER ) + - col0 / col1 + - + 26 * - col0 * - - col0 * - + col0 + - 37 AS col0 FROM tab2 AS cor0
----
23
-2530722
40
-6815704
58
-10968721

query I rowsort
SELECT ALL - + col0 - - 91 FROM tab2 AS cor0
----
16
27
45

query I rowsort
SELECT DISTINCT col2 * - col1 + col1 AS col1 FROM tab1 AS cor0
----
-1330
-290
-3149

query I rowsort
SELECT ALL + 75 * ( + 73 ) AS col0 FROM tab0
----
5475
5475
5475

query I rowsort
SELECT - - col1 + + 71 FROM tab1 AS cor0
----
118
76
85

query I rowsort
SELECT - 76 AS col0 FROM tab1 cor0
----
-76
-76
-76

onlyif mysql # DIV for integer division: 
query I rowsort label-2039
SELECT ALL - col1 DIV + col0 FROM tab2 cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-2039
SELECT ALL - col1 / + col0 FROM tab2 cor0
----
-1
-1
0

query I rowsort
SELECT ALL - 93 * 41 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 13f58fd22a8c1d6f1f6e2eb716806cc5

onlyif mysql # aggregate syntax: 
query I rowsort label-2041
SELECT ( 80 ) * + SUM( DISTINCT - 41 ) * - + 97 FROM tab0
----
318160

skipif mysql # not compatible
query I rowsort label-2041
SELECT ( 80 ) * + SUM ( DISTINCT - 41 ) * - + 97 FROM tab0
----
318160

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2042
SELECT ALL + ( - COUNT( * ) ) + + 4 col2 FROM tab0 AS cor0 WHERE NOT - col0 + + col1 + - col0 + - 36 * - 16 / + - col0 * + col0 * - CAST( NULL AS SIGNED ) IS NOT NULL
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2042
SELECT ALL + ( - COUNT ( * ) ) + + 4 col2 FROM tab0 AS cor0 WHERE NOT - col0 + + col1 + - col0 + - 36 * - 16 / + - col0 * + col0 * - CAST ( NULL AS INTEGER ) IS NOT NULL
----
1

query II rowsort
SELECT - + col2 AS col2, - col0 AS col0 FROM tab0 AS cor0
----
-10
-87
-47
-15
-99
-97

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 <= - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-2045
SELECT ALL - col2 DIV + + 48 + - 90 FROM tab0 AS cor0
----
-90
-90
-92

skipif mysql # not compatible
query I rowsort label-2045
SELECT ALL - col2 / + + 48 + - 90 FROM tab0 AS cor0
----
-90
-90
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-2046
SELECT DISTINCT + ( 14 ) DIV + - col0 + col0 FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-2046
SELECT DISTINCT + ( 14 ) / + - col0 + col0 FROM tab0 AS cor0
----
15
87
97

query II rowsort
SELECT - 47 AS col0, - col0 AS col2 FROM tab0
----
-47
-15
-47
-87
-47
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2048
SELECT 0 + - SUM( ALL + 86 ) AS col1 FROM tab0 AS cor0
----
-258

skipif mysql # not compatible
query I rowsort label-2048
SELECT 0 + - SUM ( ALL + 86 ) AS col1 FROM tab0 AS cor0
----
-258

onlyif mysql # DIV for integer division: 
query II rowsort label-2049
SELECT DISTINCT + - col0, col0 DIV + col1 AS col1 FROM tab0 AS cor0
----
-15
0
-87
4
-97
97

skipif mysql # not compatible
query II rowsort label-2049
SELECT DISTINCT + - col0, col0 / + col1 AS col1 FROM tab0 AS cor0
----
-15
0
-87
4
-97
97

query III rowsort
SELECT * FROM tab0 WHERE - + 84 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col2 + - col1 + - 25 * 73 * - - col0 + + col1 FROM tab2 cor0
----
-116760
-136817
-83927

query I rowsort
SELECT ALL + 71 AS col1 FROM tab1 cor0
----
71
71
71

query I rowsort
SELECT DISTINCT 76 * - + col1 * + col0 FROM tab2
----
-178296
-374528
-381900

query II rowsort
SELECT - 64 + + 49 + 2 AS col2, - 32 AS col1 FROM tab2
----
-13
-32
-13
-32
-13
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-2055
SELECT SUM( 2 ) + + 15 * - ( - 73 ) AS col0 FROM tab1
----
1101

skipif mysql # not compatible
query I rowsort label-2055
SELECT SUM ( 2 ) + + 15 * - ( - 73 ) AS col0 FROM tab1
----
1101

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + ( + + col2 ) IS NOT NULL
----

query I rowsort
SELECT - ( + + 37 ) FROM tab0
----
-37
-37
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2058
SELECT ALL COUNT( * ), - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-2058
SELECT ALL COUNT ( * ), - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
3
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN - 51 AND NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2060
SELECT 31 DIV - ( - 92 ), + col0 FROM tab2
----
0
46
0
64
0
75

skipif mysql # not compatible
query II rowsort label-2060
SELECT 31 / - ( - 92 ), + col0 FROM tab2
----
0
46
0
64
0
75

query I rowsort
SELECT DISTINCT - col1 + - col2 * col2 * - - col1 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) = - 28
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2062
SELECT SUM( ALL + 4 ) AS col0 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
36

skipif mysql # not compatible
query I rowsort label-2062
SELECT SUM ( ALL + 4 ) AS col0 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-2063
SELECT + 80 * - COUNT( * ) * + 68 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-48960

skipif mysql # not compatible
query I rowsort label-2063
SELECT + 80 * - COUNT ( * ) * + 68 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-48960

query I rowsort
SELECT ALL + ( 68 ) AS col2 FROM tab1
----
68
68
68

query I rowsort
SELECT ( + 3 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2066
SELECT DISTINCT + ( + CAST( NULL AS SIGNED ) ) FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2066
SELECT DISTINCT + ( + CAST ( NULL AS INTEGER ) ) FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2067
SELECT ALL + + COUNT( ALL + + col2 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2067
SELECT ALL + + COUNT ( ALL + + col2 ) AS col0 FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT - - 10 * - - col2 FROM tab2 AS cor0
----
230
400
580

query I rowsort
SELECT ( - ( - - col0 ) ) FROM tab1 AS cor0
----
-51
-85
-91

query I rowsort
SELECT DISTINCT - 52 + + + 91 FROM tab2
----
39

query I rowsort
SELECT ALL ( - col0 ) + col1 - col2 AS col1 FROM tab2
----
-18
-27
-66

query I rowsort
SELECT + - col1 AS col0 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2073
SELECT DISTINCT + + ( - col0 ) + CAST( NULL AS SIGNED ) FROM tab2 WHERE ( - col2 ) = NULL
----

skipif mysql # not compatible
query I rowsort label-2073
SELECT DISTINCT + + ( - col0 ) + CAST ( NULL AS INTEGER ) FROM tab2 WHERE ( - col2 ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2074
SELECT DISTINCT 68 + - 72 + - COUNT( * ) FROM tab1
----
-7

skipif mysql # not compatible
query I rowsort label-2074
SELECT DISTINCT 68 + - 72 + - COUNT ( * ) FROM tab1
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-2075
SELECT DISTINCT + COUNT( * ) * - + COUNT( * ) FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-2075
SELECT DISTINCT + COUNT ( * ) * - + COUNT ( * ) FROM tab0
----
-9

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 7 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + ( + 94 ) * + col2 + col0 + + - col2 + + col0 col0 FROM tab1 cor0
----
5657
6506
9030

onlyif mysql # aggregate syntax: 
query I rowsort label-2078
SELECT DISTINCT + - MAX( + + 99 ) + - 92 * 16 FROM tab0 AS cor0
----
-1571

skipif mysql # not compatible
query I rowsort label-2078
SELECT DISTINCT + - MAX ( + + 99 ) + - 92 * 16 FROM tab0 AS cor0
----
-1571

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 74 + - + col1 BETWEEN - - col0 + - 74 AND col0
----
85
5
59
91
47
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2080
SELECT ALL + col0 / + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2080
SELECT ALL + col0 / + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN NULL AND - + col2
----

query II rowsort
SELECT ALL col2 AS col2, col2 AS col1 FROM tab2
----
23
23
40
40
58
58

query I rowsort
SELECT DISTINCT 86 + + 8 - col0 + 50 * - col1 * - col2 * - 94 - - col0 * - + col2 * - + col0 FROM tab0
----
-17882246
-911303
466188

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2084
SELECT ALL COUNT( * ) + 29 DIV - + 53 AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2084
SELECT ALL COUNT ( * ) + 29 / - + 53 AS col2 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2085
SELECT ALL - 76 - - - SUM( DISTINCT - 86 ) * + COUNT( * ) FROM tab0 cor0
----
182

skipif mysql # not compatible
query I rowsort label-2085
SELECT ALL - 76 - - - SUM ( DISTINCT - 86 ) * + COUNT ( * ) FROM tab0 cor0
----
182

query I rowsort
SELECT - 18 * - + col2 FROM tab1 AS cor0
----
1062
1224
1728

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2087
SELECT + - COUNT( * ), CAST( - 48 AS SIGNED ) * MIN( DISTINCT + col0 ) AS col0 FROM tab0 AS cor0
----
-3
-720

skipif mysql # not compatible
query II rowsort label-2087
SELECT + - COUNT ( * ), CAST ( - 48 AS INTEGER ) * MIN ( DISTINCT + col0 ) AS col0 FROM tab0 AS cor0
----
-3
-720

onlyif mysql # aggregate syntax: 
query II rowsort label-2088
SELECT COUNT( * ) col2, - ( COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
3
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2088
SELECT COUNT ( * ) col2, - ( COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
3
-3

query II rowsort
SELECT ALL + 46 AS col2, 62 FROM tab2 AS cor0
----
46
62
46
62
46
62

query I rowsort
SELECT DISTINCT - col0 - - col1 * - + 1 AS col0 FROM tab2 AS cor0
----
-141
-142
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2091
SELECT DISTINCT + SUM( 31 ) AS col2 FROM tab1 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-2091
SELECT DISTINCT + SUM ( 31 ) AS col2 FROM tab1 AS cor0
----
93

query I rowsort
SELECT ALL col2 * - 32 - - col0 AS col1 FROM tab2 AS cor0
----
-1216
-1781
-690

query I rowsort
SELECT ALL - col0 - + + col0 AS col2 FROM tab1
----
-102
-170
-182

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL IN ( - col1 * + + col2, ( col2 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2095
SELECT ALL - + col0 + + col1 FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) IS NULL
----
-8
13
5

skipif mysql # not compatible
query I rowsort label-2095
SELECT ALL - + col0 + + col1 FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) IS NULL
----
-8
13
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2096
SELECT DISTINCT MAX( - - col2 ) col0 FROM tab1
----
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2096
SELECT DISTINCT MAX ( - - col2 ) col0 FROM tab1
----
96

query I rowsort
SELECT col0 * - + ( + col1 ) * + - 87 FROM tab1 cor0
----
36975
372099
62118

onlyif mysql # DIV for integer division: 
query I rowsort label-2098
SELECT DISTINCT - 13 * 37 DIV + - col2 FROM tab0 AS cor0
----
10
4
48

skipif mysql # not compatible
query I rowsort label-2098
SELECT DISTINCT - 13 * 37 / + - col2 FROM tab0 AS cor0
----
10
4
48

onlyif mysql # aggregate syntax: 
query I rowsort label-2099
SELECT ALL COUNT( col1 ) * 76 - COUNT( * ) FROM tab2 AS cor0
----
225

skipif mysql # not compatible
query I rowsort label-2099
SELECT ALL COUNT ( col1 ) * 76 - COUNT ( * ) FROM tab2 AS cor0
----
225

onlyif mysql # aggregate syntax: 
query I rowsort label-2100
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE NOT - col2 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2100
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT - col2 IS NULL
----
3

query II rowsort
SELECT - col1 AS col0, 9 FROM tab1 cor0
----
-14
9
-47
9
-5
9

query II rowsort
SELECT ALL col2, 61 FROM tab1 cor0
----
59
61
68
61
96
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2103
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-2103
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2104
SELECT DISTINCT - + MAX( CAST( NULL AS SIGNED ) ) col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2104
SELECT DISTINCT - + MAX ( CAST ( NULL AS INTEGER ) ) col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2105
SELECT ALL COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( - - ( col2 ) ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2105
SELECT ALL COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( - - ( col2 ) ) IS NULL
----
3

query I rowsort
SELECT DISTINCT ( - 69 ) AS col2 FROM tab2 WHERE NOT + + col0 IS NULL
----
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2107
SELECT ALL - - CAST( 25 AS SIGNED ) AS col1 FROM tab0 WHERE NULL IS NULL
----
25
25
25

skipif mysql # not compatible
query I rowsort label-2107
SELECT ALL - - CAST ( 25 AS INTEGER ) AS col1 FROM tab0 WHERE NULL IS NULL
----
25
25
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2108
SELECT - 11 + COUNT( ALL - 40 ) + 58, + CAST( + - COUNT( * ) AS SIGNED ) AS col1 FROM tab2
----
50
-3

skipif mysql # not compatible
query II rowsort label-2108
SELECT - 11 + COUNT ( ALL - 40 ) + 58, + CAST ( + - COUNT ( * ) AS INTEGER ) AS col1 FROM tab2
----
50
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2109
SELECT DISTINCT 62 * - + COUNT( * ) + - 94 AS col2 FROM tab2
----
-280

skipif mysql # not compatible
query I rowsort label-2109
SELECT DISTINCT 62 * - + COUNT ( * ) + - 94 AS col2 FROM tab2
----
-280

query III rowsort
SELECT * FROM tab2 WHERE - - col1 + + col1 + 31 BETWEEN + col2 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2111
SELECT + - col0 + - - col2 DIV + col2 FROM tab0 AS cor0
----
-14
-86
-96

skipif mysql # not compatible
query I rowsort label-2111
SELECT + - col0 + - - col2 / + col2 FROM tab0 AS cor0
----
-14
-86
-96

onlyif mysql # DIV for integer division: 
query II rowsort label-2112
SELECT DISTINCT - col2 - col1 DIV - 89, col0 FROM tab2 AS cor0 WHERE NOT - 44 IS NULL
----
-23
46
-40
64
-58
75

skipif mysql # not compatible
query II rowsort label-2112
SELECT DISTINCT - col2 - col1 / - 89, col0 FROM tab2 AS cor0 WHERE NOT - 44 IS NULL
----
-23
46
-40
64
-58
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2113
SELECT ALL + ( + + 31 ) * + col0 * - CAST( NULL AS SIGNED ) + - col1 - - ( + + col2 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2113
SELECT ALL + ( + + 31 ) * + col0 * - CAST ( NULL AS INTEGER ) + - col1 - - ( + + col2 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 68 * + - col0 AS col2 FROM tab1
----
-3468
-5780
-6188

query I rowsort
SELECT + 17 - + + col2 FROM tab2
----
-23
-41
-6

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col1 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2117
SELECT * FROM tab1 cor0 WHERE NULL NOT IN ( + col2, + 12, + 61 * col1, - + 90 * 73 + - ( + CAST( + col2 AS SIGNED ) ) + + col0 + + col0, - 66, - col1 )
----

skipif mysql # not compatible
query III rowsort label-2117
SELECT * FROM tab1 cor0 WHERE NULL NOT IN ( + col2, + 12, + 61 * col1, - + 90 * 73 + - ( + CAST ( + col2 AS INTEGER ) ) + + col0 + + col0, - 66, - col1 )
----

query I rowsort
SELECT DISTINCT - + ( + col2 ) + col2 + - col2 * 19 FROM tab1 cor0
----
-1121
-1292
-1824

query I rowsort
SELECT DISTINCT 14 * + col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
1386
140
658

query II rowsort
SELECT ALL - col1 - + col2 * - 92, + col0 FROM tab0 AS cor0
----
4243
15
899
87
9107
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2121
SELECT ALL - MIN( DISTINCT + - 54 ) * + ( COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
162

skipif mysql # not compatible
query I rowsort label-2121
SELECT ALL - MIN ( DISTINCT + - 54 ) * + ( COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
162

query I rowsort
SELECT + col1 * 58 * + col1 * + 19 + + + 22 + + 87 AS col2 FROM tab1 AS cor0
----
216101
2434427
27659

onlyif mysql # aggregate syntax: 
query I rowsort label-2123
SELECT ALL - MAX( ALL - + 88 ) FROM tab0
----
88

skipif mysql # not compatible
query I rowsort label-2123
SELECT ALL - MAX ( ALL - + 88 ) FROM tab0
----
88

query II rowsort
SELECT + 54, + col2 AS col1 FROM tab2
----
54
23
54
40
54
58

onlyif mysql # DIV for integer division: 
query I rowsort label-2125
SELECT ALL - col2 DIV 74 DIV - col1 * + ( - - ( - 41 ) ) AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2125
SELECT ALL - col2 / 74 / - col1 * + ( - - ( - 41 ) ) AS col0 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2126
SELECT ALL + 47 AS col0, - 92 * + COUNT( * ) FROM tab0
----
47
-276

skipif mysql # not compatible
query II rowsort label-2126
SELECT ALL + 47 AS col0, - 92 * + COUNT ( * ) FROM tab0
----
47
-276

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2127
SELECT + + CAST( - + COUNT( * ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2127
SELECT + + CAST ( - + COUNT ( * ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL - col1 AS col2 FROM tab1 AS cor0 WHERE NOT NULL <> col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2129
SELECT COUNT( * ) FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2129
SELECT COUNT ( * ) FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2130
SELECT ALL - COUNT( * ) * + COUNT( * ) - + 75 AS col0 FROM tab1 cor0
----
-84

skipif mysql # not compatible
query I rowsort label-2130
SELECT ALL - COUNT ( * ) * + COUNT ( * ) - + 75 AS col0 FROM tab1 cor0
----
-84

query I rowsort
SELECT ALL - - 97 AS col1 FROM tab0 AS cor0
----
97
97
97

onlyif mysql # DIV for integer division: 
query I rowsort label-2132
SELECT + 78 DIV col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2132
SELECT + 78 / col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
1
1
1

query I rowsort
SELECT - + col2 * - col1 + col0 + - col1 + - col2 FROM tab1 AS cor0
----
1285
316
3172

query II rowsort
SELECT ALL - 45 AS col2, col2 + + + col2 AS col2 FROM tab0
----
-45
198
-45
20
-45
94

query II rowsort
SELECT ALL - col1 * + col1 + col2 + + 29 AS col0, 84 FROM tab2
----
-2549
84
-4402
84
-5860
84

onlyif mysql # aggregate syntax: 
query I rowsort label-2136
SELECT + - COUNT( * ) AS col2 FROM tab2 WHERE NULL <> 38
----
0

skipif mysql # not compatible
query I rowsort label-2136
SELECT + - COUNT ( * ) AS col2 FROM tab2 WHERE NULL <> 38
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2137
SELECT MIN( ALL + col0 ) * - COUNT( - col0 ) DIV - + COUNT( * ) - COUNT( * ) FROM tab1
----
48

skipif mysql # not compatible
query I rowsort label-2137
SELECT MIN ( ALL + col0 ) * - COUNT ( - col0 ) / - + COUNT ( * ) - COUNT ( * ) FROM tab1
----
48

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2138
SELECT + + AVG ( ALL + col2 ) AS col2 FROM tab1 WHERE + CAST( NULL AS DECIMAL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2138
SELECT + + AVG ( ALL + col2 ) AS col2 FROM tab1 WHERE + CAST ( NULL AS REAL ) IS NOT NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - - 44 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 + - col1 / col0 * - ( col0 ) * col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2141
SELECT 78 * - + 82 + - col2 + - CAST( NULL AS SIGNED ) * + + 42 / - + col2 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2141
SELECT 78 * - + 82 + - col2 + - CAST ( NULL AS INTEGER ) * + + 42 / - + col2 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - 23 + - col2 + + 25 AS col0 FROM tab0 AS cor0
----
-45
-8
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2143
SELECT ALL CAST( NULL AS SIGNED ) - col1 AS col1 FROM tab1 WHERE CAST( 51 AS SIGNED ) < + col2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2143
SELECT ALL CAST ( NULL AS INTEGER ) - col1 AS col1 FROM tab1 WHERE CAST ( 51 AS INTEGER ) < + col2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + ( + 50 ) AS col1 FROM tab1
----
50

query I rowsort
SELECT DISTINCT 36 * - col0 - col0 FROM tab0 WHERE NOT - 36 BETWEEN NULL AND + col0
----

query I rowsort
SELECT 12 + - 84 AS col1 FROM tab2
----
-72
-72
-72

query I rowsort
SELECT + col1 + + 71 AS col0 FROM tab2
----
122
138
148

query I rowsort
SELECT ALL ( - col1 ) * col2 FROM tab1
----
-1344
-295
-3196

query I rowsort
SELECT col1 FROM tab1 WHERE NOT NULL NOT BETWEEN ( NULL ) AND ( NULL )
----

query I rowsort
SELECT + 43 * col2 FROM tab2 WHERE NOT col0 = + col0
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 52 + + 26 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE ( - col2 ) > + 33
----

query I rowsort
SELECT DISTINCT col0 * + 55 FROM tab0
----
4785
5335
825

query I rowsort
SELECT + ( + 58 ) + - ( - col0 ) AS col1 FROM tab1
----
109
143
149

onlyif mysql # aggregate syntax: 
query I rowsort label-2155
SELECT SUM( - 60 ) AS col0 FROM tab2
----
-180

skipif mysql # not compatible
query I rowsort label-2155
SELECT SUM ( - 60 ) AS col0 FROM tab2
----
-180

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT IN ( col0 + col1 * 38 )
----

query I rowsort
SELECT + col1 + + 75 AS col1 FROM tab0
----
156
76
96

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2158
SELECT * FROM tab0 WHERE CAST( + 16 AS DECIMAL ) BETWEEN + col1 AND + 55 * - col0
----

skipif mysql # not compatible
query III rowsort label-2158
SELECT * FROM tab0 WHERE CAST ( + 16 AS REAL ) BETWEEN + col1 AND + 55 * - col0
----

query I rowsort
SELECT col2 - - 24 AS col2 FROM tab0
----
123
34
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - 29 * + 59 col2 FROM tab2
----
-1653
-1671
-1688

onlyif mysql # aggregate syntax: 
query I rowsort label-2161
SELECT + COUNT( col2 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2161
SELECT + COUNT ( col2 ) AS col0 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2162
SELECT ALL + ( + ( COUNT( + col0 ) ) ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2162
SELECT ALL + ( + ( COUNT ( + col0 ) ) ) AS col1 FROM tab1
----
3

query III rowsort
SELECT ALL * FROM tab1 WHERE ( - col2 ) <= ( + 84 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 0 + - col1 AS col0 FROM tab2
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-2165
SELECT ALL ( + ( + COUNT( * ) ) ) col1 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2165
SELECT ALL ( + ( + COUNT ( * ) ) ) col1 FROM tab0
----
3

query III rowsort
SELECT * FROM tab0 WHERE ( col2 ) IN ( col1 + - col2 )
----

query I rowsort
SELECT - col2 AS col1 FROM tab1 WHERE NOT 49 + 96 * col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2168
SELECT + MAX( ALL - col0 ) FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-2168
SELECT + MAX ( ALL - col0 ) FROM tab0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-2169
SELECT + SUM( ALL + col2 ) col1 FROM tab2
----
121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2169
SELECT + SUM ( ALL + col2 ) col1 FROM tab2
----
121

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col0 + + col2 <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2171
SELECT + 18 DIV 26 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2171
SELECT + 18 / 26 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2172
SELECT MAX( ALL - 18 ) FROM tab2 AS cor0 WHERE NOT ( col1 ) NOT IN ( CAST( col0 AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2172
SELECT MAX ( ALL - 18 ) FROM tab2 AS cor0 WHERE NOT ( col1 ) NOT IN ( CAST ( col0 AS REAL ) )
----
NULL

query I rowsort
SELECT + 31 * - 8 AS col2 FROM tab1 AS cor0
----
-248
-248
-248

onlyif mysql # aggregate syntax: 
query I rowsort label-2174
SELECT DISTINCT MAX( 98 ) FROM tab0 AS cor0
----
98

skipif mysql # not compatible
query I rowsort label-2174
SELECT DISTINCT MAX ( 98 ) FROM tab0 AS cor0
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-2175
SELECT DISTINCT - MAX( DISTINCT 49 ) * COUNT( * ) AS col2 FROM tab0 cor0 WHERE NOT col1 IN ( + ( col0 ) + + col0 * col0 )
----
-147

skipif mysql # not compatible
query I rowsort label-2175
SELECT DISTINCT - MAX ( DISTINCT 49 ) * COUNT ( * ) AS col2 FROM tab0 cor0 WHERE NOT col1 IN ( + ( col0 ) + + col0 * col0 )
----
-147

query I rowsort
SELECT DISTINCT col1 * - col2 AS col0 FROM tab2 AS cor0 WHERE col0 * + 84 <> col1
----
-1173
-3080
-3886

query I rowsort
SELECT DISTINCT 44 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( - col1 - - col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col0 + - col1 = - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2179
SELECT ALL * FROM tab1 AS cor0 WHERE col0 BETWEEN ( CAST( NULL AS SIGNED ) ) AND 83
----

skipif mysql # not compatible
query III rowsort label-2179
SELECT ALL * FROM tab1 AS cor0 WHERE col0 BETWEEN ( CAST ( NULL AS INTEGER ) ) AND 83
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 <> ( 29 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 BETWEEN col2 AND ( col1 / 87 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 98 FROM tab1 cor0 CROSS JOIN tab1
----
9 values hashing to f17b7008a7deae1eb5a2e707ec237638

query I rowsort
SELECT DISTINCT col1 + + col0 * - col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 50 FROM tab0 AS cor0 WHERE NOT - 16 < 8
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL > + 52 * col2
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 33 * - 54 = + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2187
SELECT DISTINCT CAST( NULL AS SIGNED ) * col0 AS col0 FROM tab2 WHERE NOT - 46 > col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2187
SELECT DISTINCT CAST ( NULL AS INTEGER ) * col0 AS col0 FROM tab2 WHERE NOT - 46 > col2
----
NULL

query I rowsort
SELECT ALL 17 * - col2 FROM tab1
----
-1003
-1156
-1632

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2189
SELECT col2 + col0 * CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2189
SELECT col2 + col0 * CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - 70 + col1 AS col1 FROM tab0
----
-49
-69
11

query I rowsort
SELECT 43 * + col1 * col0 + 97 * - ( col0 + + col1 ) AS col2 FROM tab0
----
-5335
42933
68085

onlyif mysql # aggregate syntax: 
query I rowsort label-2192
SELECT COUNT( * ) * SUM( col1 ) + COUNT( * ) AS col2 FROM tab0
----
312

skipif mysql # not compatible
query I rowsort label-2192
SELECT COUNT ( * ) * SUM ( col1 ) + COUNT ( * ) AS col2 FROM tab0
----
312

query III rowsort
SELECT * FROM tab2 WHERE + col1 IN ( + ( - 92 ) )
----

query I rowsort
SELECT 75 * - col0 * + 51 + - col0 AS col0 FROM tab2
----
-175996
-244864
-286950

onlyif mysql # aggregate syntax: 
query I rowsort label-2195
SELECT ALL COUNT( * ) + + 23 AS col2 FROM tab2
----
26

skipif mysql # not compatible
query I rowsort label-2195
SELECT ALL COUNT ( * ) + + 23 AS col2 FROM tab2
----
26

query I rowsort
SELECT ALL + col0 AS col2 FROM tab0 WHERE - col2 NOT BETWEEN col1 AND col0
----
15
87
97

query I rowsort
SELECT - ( - col1 ) + + col1 FROM tab1
----
10
28
94

onlyif mysql # aggregate syntax: 
query I rowsort label-2198
SELECT DISTINCT 90 - - - COUNT( * ) FROM tab1 cor0
----
87

skipif mysql # not compatible
query I rowsort label-2198
SELECT DISTINCT 90 - - - COUNT ( * ) FROM tab1 cor0
----
87

query I rowsort
SELECT ALL 58 * + + col1 AS col1 FROM tab2
----
2958
3886
4466

query I rowsort
SELECT DISTINCT col2 + + + 12 AS col1 FROM tab1
----
108
71
80

query III rowsort
SELECT * FROM tab1 WHERE - col2 >= ( col1 + - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 92 * col2 - col2 * - col2 col0 FROM tab0
----
1020
18909
6533

onlyif mysql # aggregate syntax: 
query I rowsort label-2203
SELECT ALL MIN( ALL + - col0 ) + + MAX( DISTINCT - 60 ) AS col0 FROM tab0
----
-157

skipif mysql # not compatible
query I rowsort label-2203
SELECT ALL MIN ( ALL + - col0 ) + + MAX ( DISTINCT - 60 ) AS col0 FROM tab0
----
-157

query I rowsort
SELECT + - 9 FROM ( tab0 cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to caf28657beb43049740febe1fa9ded5a

onlyif mysql # aggregate syntax: 
query I rowsort label-2205
SELECT DISTINCT - SUM( 65 ) AS col1 FROM tab1
----
-195

skipif mysql # not compatible
query I rowsort label-2205
SELECT DISTINCT - SUM ( 65 ) AS col1 FROM tab1
----
-195

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( 17 ) NOT BETWEEN col0 * 12 AND + 64 * + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 28 col2 FROM tab0 AS cor0
----
-28

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( - col0 ) > ( NULL )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 NOT BETWEEN ( 45 ) AND ( - col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col1 + + + col1 BETWEEN - 5 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2211
SELECT DISTINCT - COUNT( ALL + ( - - ( ( - col0 ) ) ) ) * - 76 AS col0 FROM tab1 AS cor0
----
228

skipif mysql # not compatible
query I rowsort label-2211
SELECT DISTINCT - COUNT ( ALL + ( - - ( ( - col0 ) ) ) ) * - 76 AS col0 FROM tab1 AS cor0
----
228

query I rowsort
SELECT ALL + col0 * + - 13 AS col2 FROM tab2 AS cor0
----
-598
-832
-975

onlyif mysql # DIV for integer division: 
query I rowsort label-2213
SELECT ALL col0 + + 8 DIV - col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
51
85
91

skipif mysql # not compatible
query I rowsort label-2213
SELECT ALL col0 + + 8 / - col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
51
85
91

query I rowsort
SELECT ALL - col1 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT DISTINCT 91 * + 65 AS col2, 47 FROM tab1
----
5915
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2216
SELECT DISTINCT + ( - - SUM( 55 ) ) FROM tab2
----
165

skipif mysql # not compatible
query I rowsort label-2216
SELECT DISTINCT + ( - - SUM ( 55 ) ) FROM tab2
----
165

query I rowsort
SELECT DISTINCT - 44 + + ( + col1 ) FROM tab0 WHERE ( - - 96 ) = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 2 col0 FROM tab1 WHERE NOT + col0 IS NULL
----
-2
-2
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2219
SELECT DISTINCT 48 + COUNT( * ) DIV - 81 FROM tab1 WHERE NOT NULL IS NULL
----
48

skipif mysql # not compatible
query I rowsort label-2219
SELECT DISTINCT 48 + COUNT ( * ) / - 81 FROM tab1 WHERE NOT NULL IS NULL
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2220
SELECT DISTINCT + ( CAST( - - col0 AS SIGNED ) ) FROM tab0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-2220
SELECT DISTINCT + ( CAST ( - - col0 AS INTEGER ) ) FROM tab0
----
15
87
97

onlyif mysql # DIV for integer division: 
query I rowsort label-2221
SELECT - col2 DIV + - 35 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-2221
SELECT - col2 / + - 35 FROM tab2
----
0
1
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2222
SELECT col0 FROM tab0 AS cor0 WHERE NOT - col2 * + + ( + col0 ) NOT BETWEEN ( col0 * + col0 ) AND CAST( + 5 AS DECIMAL ) * - 12
----

skipif mysql # not compatible
query I rowsort label-2222
SELECT col0 FROM tab0 AS cor0 WHERE NOT - col2 * + + ( + col0 ) NOT BETWEEN ( col0 * + col0 ) AND CAST ( + 5 AS REAL ) * - 12
----

query I rowsort
SELECT DISTINCT + ( + - col0 ) * + - col0 FROM tab2 AS cor0
----
2116
4096
5625

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 19 > - col2
----
87
21
10

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT IN ( col0 * - col2 + + col1 + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( - col0 ) + - 81 col1 FROM tab1 AS cor0
----
-30
10
4

onlyif mysql # DIV for integer division: 
query I rowsort label-2227
SELECT + + col2 + 51 + - - ( - col2 ) DIV col2 * + col1 AS col2 FROM tab1 AS cor0
----
105
133
72

skipif mysql # not compatible
query I rowsort label-2227
SELECT + + col2 + 51 + - - ( - col2 ) / col2 * + col1 AS col2 FROM tab1 AS cor0
----
105
133
72

onlyif mysql # aggregate syntax: 
query I rowsort label-2228
SELECT ALL - + 51 + - - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-2228
SELECT ALL - + 51 + - - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-48

query I rowsort
SELECT 97 + + + col1 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN 30 AND ( + + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 78 col1 FROM tab1 AS cor0
----
78
78
78

query II rowsort
SELECT col2 AS col1, col2 + + 66 + + 56 FROM tab0 cor0
----
10
132
47
169
99
221

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 12 col2 FROM tab0 AS cor0 WHERE NOT - col0 + - - col0 * + col0 IN ( - 95 * col1 )
----
12
12
12

onlyif mysql # aggregate syntax: 
query I rowsort label-2233
SELECT DISTINCT + - SUM( ALL col2 ) AS col1 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-2233
SELECT DISTINCT + - SUM ( ALL col2 ) AS col1 FROM tab1 AS cor0
----
-223

query I rowsort
SELECT + ( + - col1 ) * + col2 FROM tab0 AS cor0
----
-210
-3807
-99

query I rowsort
SELECT - col2 * + + 9 AS col1 FROM tab1
----
-531
-612
-864

onlyif mysql # aggregate syntax: 
query I rowsort label-2236
SELECT DISTINCT MIN( ALL - 14 ) + + COUNT( * ) FROM tab2
----
-11

skipif mysql # not compatible
query I rowsort label-2236
SELECT DISTINCT MIN ( ALL - 14 ) + + COUNT ( * ) FROM tab2
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2237
SELECT DISTINCT MAX( ALL 24 ) AS col0 FROM tab0 WHERE NOT NULL NOT BETWEEN + 72 AND ( CAST( + 30 AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2237
SELECT DISTINCT MAX ( ALL 24 ) AS col0 FROM tab0 WHERE NOT NULL NOT BETWEEN + 72 AND ( CAST ( + 30 AS INTEGER ) )
----
NULL

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab1 WHERE ( ( NULL ) IS NOT NULL )
----

query I rowsort
SELECT + 82 AS col1 FROM tab0 WHERE + col0 >= NULL
----

query I rowsort
SELECT ALL - 51 * ( col2 ) - - - col0 - - col2 + + 13 - col1 * + 74 FROM tab0 AS cor0
----
-2128
-5108
-8346

query I rowsort
SELECT DISTINCT + - col1 FROM tab0 WHERE NOT - col2 / - col1 <= - + col2
----
-1
-21
-81

query I rowsort
SELECT DISTINCT - col1 - - 32 FROM tab1
----
-15
18
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 47 col0 FROM tab0 AS cor0 WHERE NOT NULL > ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2244
SELECT + col1 DIV 54 AS col1 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2244
SELECT + col1 / 54 AS col1 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT - - col2 * - 2 FROM tab1 AS cor0
----
-118
-136
-192

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL > col1 )
----

query I rowsort
SELECT DISTINCT 4 * 15 * + + 40 AS col2 FROM tab0 AS cor0
----
2400

query I rowsort
SELECT ALL - + 16 * + ( + col1 ) FROM tab0 AS cor0
----
-1296
-16
-336

onlyif mysql # aggregate syntax: 
query I rowsort label-2249
SELECT DISTINCT + MIN( ALL col1 ) FROM tab1 cor0
----
5

skipif mysql # not compatible
query I rowsort label-2249
SELECT DISTINCT + MIN ( ALL col1 ) FROM tab1 cor0
----
5

query I rowsort
SELECT - 28 * + col2 FROM tab0 WHERE NOT + col0 + col1 IS NOT NULL
----

query I rowsort
SELECT ( + - 74 ) FROM tab0
----
-74
-74
-74

query III rowsort
SELECT * FROM tab0 WHERE NOT - ( - 61 ) * + col0 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col0 NOT IN ( col0 * - 23 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2254
SELECT - CAST( NULL AS SIGNED ) AS col1, COUNT( * ) * + + 32 - - SUM( - - col0 ) AS col2 FROM tab1
----
NULL
323

skipif mysql # not compatible
query II rowsort label-2254
SELECT - CAST ( NULL AS INTEGER ) AS col1, COUNT ( * ) * + + 32 - - SUM ( - - col0 ) AS col2 FROM tab1
----
NULL
323

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - + col0 * + + col1 col2 FROM tab1
----
-25075
-290836
-68544

query I rowsort
SELECT DISTINCT + col1 * - 84 FROM tab1
----
-1176
-3948
-420

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 NOT BETWEEN - - col2 * col0 AND + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2258
SELECT COUNT( * ) * - ( + COUNT( + 95 ) ) FROM tab1 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-2258
SELECT COUNT ( * ) * - ( + COUNT ( + 95 ) ) FROM tab1 cor0
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-2259
SELECT - col0 DIV ( + 49 ) * + + 29 FROM tab2 AS cor0
----
-29
-29
0

skipif mysql # not compatible
query I rowsort label-2259
SELECT - col0 / ( + 49 ) * + + 29 FROM tab2 AS cor0
----
-29
-29
0

query I rowsort
SELECT ALL + + 57 + 65 AS col2 FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN col2 / ( - 29 ) AND NULL
----

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NOT ( NOT ( 31 ) IS NOT NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2262
SELECT + + COUNT( * ) AS col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2262
SELECT + + COUNT ( * ) AS col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL ) IS NOT NULL
----
0

query I rowsort
SELECT - 51 AS col2 FROM tab0 AS cor0 JOIN tab1 AS cor1 ON NULL BETWEEN - - 65 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2264
SELECT SUM( ALL - 4 ) AS col2 FROM tab0
----
-12

skipif mysql # not compatible
query I rowsort label-2264
SELECT SUM ( ALL - 4 ) AS col2 FROM tab0
----
-12

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2265
SELECT ALL - 20 DIV - CAST( - + ( CAST( 51 AS SIGNED ) ) AS SIGNED ) FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2265
SELECT ALL - 20 / - CAST ( - + ( CAST ( 51 AS INTEGER ) ) AS INTEGER ) FROM tab1 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2266
SELECT ALL - + col2 DIV - col2 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2266
SELECT ALL - + col2 / - col2 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT - 51 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * ( - ( + col1 ) ) col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL - 61 + col0 * - - 47 AS col1 FROM tab0 cor0
----
4028
4498
644

onlyif mysql # DIV for integer division: 
query I rowsort label-2270
SELECT - + 79 DIV + - 41 + + - ( + col1 ) AS col0 FROM tab0 AS cor0
----
-20
-80
0

skipif mysql # not compatible
query I rowsort label-2270
SELECT - + 79 / + - 41 + + - ( + col1 ) AS col0 FROM tab0 AS cor0
----
-20
-80
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2271
SELECT ALL - SUM( - col1 ) AS col1 FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-2271
SELECT ALL - SUM ( - col1 ) AS col1 FROM tab0
----
103

query III rowsort
SELECT * FROM tab1 WHERE col0 BETWEEN NULL AND + 67
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2273
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + AVG ( + + col0 ) AS col2 FROM tab1 WHERE NOT NULL < col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2273
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + AVG ( + + col0 ) AS col2 FROM tab1 WHERE NOT NULL < col0
----
NULL

query I rowsort
SELECT DISTINCT 9 + + col0 AS col1 FROM tab0
----
106
24
96

query I rowsort
SELECT ALL + col2 - - + col0 * + - col0 * col1 AS col1 FROM tab2 AS cor0
----
-107893
-315352
-376817

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 15 - - col1 + + - 27 BETWEEN NULL AND ( - + ( - - col0 ) )
----

query I rowsort
SELECT DISTINCT - + col1 FROM tab1 AS cor0 WHERE col1 / - + 12 IS NOT NULL
----
-14
-47
-5

query I rowsort
SELECT col1 - - + col1 FROM tab1 cor0
----
10
28
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 col1, 0 + - + col0 + + col1 - - col2 * + - col1 FROM tab0
----
1
-195
21
-276
81
-3741

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( + 29 + + 82 + - + col2 )
----

query I rowsort
SELECT ( + - col0 ) AS col2 FROM tab2 cor0 WHERE NOT ( NULL ) <= NULL
----

query I rowsort
SELECT + ( + 69 ) AS col1 FROM tab2 AS cor0 WHERE NOT + 3 IS NULL
----
69
69
69

onlyif mysql # aggregate syntax: 
query I rowsort label-2283
SELECT ALL - + COUNT( * ) * + 95 FROM tab2 AS cor0
----
-285

skipif mysql # not compatible
query I rowsort label-2283
SELECT ALL - + COUNT ( * ) * + 95 FROM tab2 AS cor0
----
-285

query I rowsort
SELECT - - 17 * col1 FROM tab2 AS cor0
----
1139
1309
867

onlyif mysql # aggregate syntax: 
query I rowsort label-2285
SELECT ALL ( - MIN( + + col1 ) ) AS col1 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-2285
SELECT ALL ( - MIN ( + + col1 ) ) AS col1 FROM tab1 AS cor0
----
-5

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 40 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2287
SELECT DISTINCT CAST( NULL AS SIGNED ) / col2 * + + 49 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2287
SELECT DISTINCT CAST ( NULL AS INTEGER ) / col2 * + + 49 AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - 78 * - col2 * 1 AS col0 FROM tab2 AS cor0
----
1794
3120
4524

onlyif mysql # aggregate syntax: 
query II rowsort label-2289
SELECT + 66 AS col2, COUNT( * ) FROM tab2 cor0
----
66
3

skipif mysql # not compatible
query II rowsort label-2289
SELECT + 66 AS col2, COUNT ( * ) FROM tab2 cor0
----
66
3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( + - 25 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + - ( + ( 81 ) ) FROM tab0 AS cor0
----
-81
-81
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2292
SELECT DISTINCT + + col0 * - col1 * - CAST( NULL AS SIGNED ) / + col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2292
SELECT DISTINCT + + col0 * - col1 * - CAST ( NULL AS INTEGER ) / + col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2293
SELECT ALL COUNT( DISTINCT - 29 ) AS col1, COUNT( * ) FROM tab2
----
1
3

skipif mysql # not compatible
query II rowsort label-2293
SELECT ALL COUNT ( DISTINCT - 29 ) AS col1, COUNT ( * ) FROM tab2
----
1
3

query II rowsort
SELECT ALL ( 88 ), col1 FROM tab2
----
88
51
88
67
88
77

query I rowsort
SELECT ALL + ( - - col1 ) * - + col0 + - - 33 FROM tab0
----
-1182
-1794
-64

query I rowsort
SELECT ALL 82 * 97 * - ( - + 89 ) FROM tab2
----
707906
707906
707906

query I rowsort
SELECT DISTINCT col1 + - 4 * col0 FROM tab2
----
-133
-179
-233

onlyif mysql # aggregate syntax: 
query I rowsort label-2298
SELECT + COUNT( * ) AS col2 FROM tab2 WHERE NOT NULL >= + 23 + - ( - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-2298
SELECT + COUNT ( * ) AS col2 FROM tab2 WHERE NOT NULL >= + 23 + - ( - col2 )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 48 col1 FROM tab0 AS cor0
----
48
48
48

query I rowsort
SELECT DISTINCT - col0 * + col0 * + 36 + - 89 * + col0 + - - ( ( + col2 ) ) - + 24 + col0 FROM tab0 AS cor0
----
-280154
-347185
-9397

query I rowsort
SELECT DISTINCT - + 23 FROM tab2 AS cor0 WHERE NOT + col1 BETWEEN - col2 / - col0 AND col2
----
-23

query I rowsort
SELECT DISTINCT + + col1 + - + col1 FROM tab1 WHERE + 16 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2303
SELECT DISTINCT MAX( ALL + col1 ) + + + MIN( + 47 ) AS col0 FROM tab0 cor0
----
128

skipif mysql # not compatible
query I rowsort label-2303
SELECT DISTINCT MAX ( ALL + col1 ) + + + MIN ( + 47 ) AS col0 FROM tab0 cor0
----
128

query I rowsort
SELECT ALL - ( + col1 ) + col2 FROM tab0 AS cor0
----
-11
-34
98

onlyif mysql # aggregate syntax: 
query I rowsort label-2305
SELECT DISTINCT + MAX( col1 ) AS col1 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-2305
SELECT DISTINCT + MAX ( col1 ) AS col1 FROM tab1 AS cor0
----
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 42 col2 FROM tab2 AS cor0
----
42
42
42

query I rowsort
SELECT - ( + - col2 ) AS col1 FROM tab0 AS cor0
----
10
47
99

query I rowsort
SELECT ALL - col2 - col1 + - col2 + + col0 - + - col2 - + 57 * col2 * - - col2 + - + col0 FROM tab0 AS cor0
----
-126041
-558757
-5731

query I rowsort
SELECT DISTINCT + + 61 - - col1 AS col1 FROM tab0 AS cor0
----
142
62
82

query I rowsort
SELECT ALL + ( col0 ) * + - ( col2 ) AS col1 FROM tab2 AS cor0
----
-1058
-2560
-4350

query I rowsort
SELECT - 57 * - 57 AS col1 FROM tab0 AS cor0
----
3249
3249
3249

query III rowsort
SELECT * FROM tab1 WHERE - col2 >= 20
----

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN - 65 AND NULL
----

query I rowsort
SELECT - + col1 * col2 FROM tab1 WHERE - 88 IS NOT NULL
----
-1344
-295
-3196

query I rowsort
SELECT - 75 + - 47 * - - col2 AS col0 FROM tab2
----
-1156
-1955
-2801

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 NOT BETWEEN - col1 * + 47 AND - col0 + + 12
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2317
SELECT ALL - MIN( + - ( - col0 ) ) AS col1 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-2317
SELECT ALL - MIN ( + - ( - col0 ) ) AS col1 FROM tab2 AS cor0
----
-46

query I rowsort
SELECT DISTINCT 61 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
61

query I rowsort
SELECT DISTINCT - 35 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT 74 + + 33 + - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2321
SELECT col0 * + - CAST( + ( - - col0 ) AS SIGNED ) + - 46 AS col2, ( - - 59 ) * col1 col0, - 1 FROM tab2 AS cor0
----
9 values hashing to eed178dc3bc49800565c62b67210dcf2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-2321
SELECT col0 * + - CAST ( + ( - - col0 ) AS INTEGER ) + - 46 AS col2, ( - - 59 ) * col1 col0, - 1 FROM tab2 AS cor0
----
9 values hashing to eed178dc3bc49800565c62b67210dcf2

query I rowsort
SELECT + - col1 * - + 65 FROM tab1 AS cor0
----
3055
325
910

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 / ( + 33 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 81 AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2325
SELECT ALL + + CAST( - col2 AS SIGNED ) col2 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2325
SELECT ALL + + CAST ( - col2 AS INTEGER ) col2 FROM tab2 AS cor0
----
-23
-40
-58

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 23 <> + + col0 + + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 26 col2, col0 + col1 col0 FROM tab1
----
-26
138
-26
65
-26
90

query II rowsort
SELECT 73 AS col2, col2 FROM tab0
----
73
10
73
47
73
99

query I rowsort
SELECT col1 AS col1 FROM tab1 WHERE + col1 / + col2 = ( NULL ) AND NOT col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2330
SELECT - col2 + col0 + + col1 * + col0 * - CAST( + - col2 AS SIGNED ) FROM tab2
----
197144
291467
53981

skipif mysql # not compatible
query I rowsort label-2330
SELECT - col2 + col0 + + col1 * + col0 * - CAST ( + - col2 AS INTEGER ) FROM tab2
----
197144
291467
53981

query I rowsort
SELECT ALL 66 + + col0 - col2 AS col2 FROM tab1
----
21
89
92

onlyif mysql # aggregate syntax: 
query I rowsort label-2332
SELECT ALL COUNT( 20 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2332
SELECT ALL COUNT ( 20 ) AS col1 FROM tab0
----
3

query I rowsort
SELECT col0 * col1 + + col2 + - col2 FROM tab2
----
2346
4928
5025

query I rowsort
SELECT DISTINCT col2 + + - col1 * - - col1 - - col1 FROM tab1
----
-2094
-86
39

onlyif mysql # aggregate syntax: 
query I rowsort label-2335
SELECT ALL + SUM( ALL 31 ) AS col2 FROM tab2
----
93

skipif mysql # not compatible
query I rowsort label-2335
SELECT ALL + SUM ( ALL 31 ) AS col2 FROM tab2
----
93

query I rowsort
SELECT ALL + + col0 + - - 75 FROM tab0 AS cor0
----
162
172
90

onlyif mysql # aggregate syntax: 
query I rowsort label-2337
SELECT - MIN( ALL + col1 ) + + 61 FROM tab1 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-2337
SELECT - MIN ( ALL + col1 ) + + 61 FROM tab1 AS cor0
----
56

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 92 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 * + - col2 AS col2 FROM tab1
----
-1344
-295
-3196

query I rowsort
SELECT DISTINCT + col1 * + - 87 + - 85 * - 1 - + col0 AS col1 FROM tab2
----
-4398
-5819
-6678

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 29 + + col2 IN ( 45, 77, - col0 + ( + 32 ), + - 31 - - col2 )
----

query I rowsort
SELECT ALL + ( - col1 ) * + 8 - + col1 AS col1 FROM tab0 cor0
----
-189
-729
-9

query I rowsort
SELECT 14 + + col2 AS col2 FROM tab1
----
110
73
82

query I rowsort
SELECT ALL col0 + + - col2 AS col2 FROM tab2
----
17
23
24

query I rowsort
SELECT col2 + - 54 AS col1 FROM tab0
----
-44
-7
45

onlyif mysql # aggregate syntax: 
query I rowsort label-2346
SELECT DISTINCT + 82 * - 69 * COUNT( DISTINCT 81 ) FROM tab2
----
-5658

skipif mysql # not compatible
query I rowsort label-2346
SELECT DISTINCT + 82 * - 69 * COUNT ( DISTINCT 81 ) FROM tab2
----
-5658

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2347
SELECT ALL - col1 * - CAST( NULL AS SIGNED ) * - col1 AS col2, + 39 FROM tab2
----
NULL
39
NULL
39
NULL
39

skipif mysql # not compatible
query II rowsort label-2347
SELECT ALL - col1 * - CAST ( NULL AS INTEGER ) * - col1 AS col2, + 39 FROM tab2
----
NULL
39
NULL
39
NULL
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2348
SELECT DISTINCT - CAST( - + col0 AS SIGNED ) * + col1 col0 FROM tab1
----
425
4277
714

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2348
SELECT DISTINCT - CAST ( - + col0 AS INTEGER ) * + col1 col0 FROM tab1
----
425
4277
714

query I rowsort
SELECT ALL - + ( + col1 ) AS col0 FROM tab0 WHERE NOT ( NULL ) < col1 * - col1 * + 81
----

query I rowsort
SELECT ( - 43 ) * col0 AS col2 FROM tab2
----
-1978
-2752
-3225

onlyif mysql # DIV for integer division: 
query II rowsort label-2351
SELECT DISTINCT - + 10, col0 DIV - 87 * + - 11 AS col2 FROM tab2 AS cor0
----
-10
0

skipif mysql # not compatible
query II rowsort label-2351
SELECT DISTINCT - + 10, col0 / - 87 * + - 11 AS col2 FROM tab2 AS cor0
----
-10
0

query I rowsort
SELECT ALL + col1 FROM tab0 AS cor0 WHERE NULL < - 48 + 81 - - 88
----

query II rowsort
SELECT + + 87 AS col1, col2 + col2 FROM tab0 cor0
----
87
198
87
20
87
94

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 * - col1 <> - ( - col0 ) + + - 67 - + 6 + - 36
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 61 * col2 NOT BETWEEN + col0 AND NULL
----

query I rowsort
SELECT DISTINCT - 54 AS col2 FROM tab2 WHERE NULL IS NULL
----
-54

query I rowsort
SELECT DISTINCT + ( - 55 ) AS col2 FROM tab2 AS cor0
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-2358
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT - col2 + + col0 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-2358
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT - col2 + + col0 <= NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2359
SELECT - ( - col2 ) DIV + + col2 + + col1 + - - col1 + - col1 * - 23 * - + col2 + + 69 AS col1 FROM tab1 cor0
----
-30814
-6705
-73344

skipif mysql # not compatible
query I rowsort label-2359
SELECT - ( - col2 ) / + + col2 + + col1 + - - col1 + - col1 * - 23 * - + col2 + + 69 AS col1 FROM tab1 cor0
----
-30814
-6705
-73344

query I rowsort
SELECT + - 61 FROM tab1 cor0
----
-61
-61
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-2361
SELECT COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT ( - 19 IS NOT NULL )
----
0

skipif mysql # not compatible
query I rowsort label-2361
SELECT COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT ( - 19 IS NOT NULL )
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT - + col2 < NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2363
SELECT - COUNT( * ) DIV - 91 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2363
SELECT - COUNT ( * ) / - 91 AS col1 FROM tab2
----
0

query II rowsort
SELECT + col2, ( - 68 ) - + col1 FROM tab1
----
59
-73
68
-115
96
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-2365
SELECT DISTINCT + COUNT( * ) + + + 26 FROM tab0
----
29

skipif mysql # not compatible
query I rowsort label-2365
SELECT DISTINCT + COUNT ( * ) + + + 26 FROM tab0
----
29

query III rowsort
SELECT * FROM tab2 WHERE col1 BETWEEN 74 AND 80
----
64
77
40

onlyif mysql # DIV for integer division: 
query I rowsort label-2367
SELECT ALL + col1 + - - col2 DIV - col2 - - col0 + - + 29 * + - 38 * + + 82 FROM tab2
----
90460
90504
90505

skipif mysql # not compatible
query I rowsort label-2367
SELECT ALL + col1 + - - col2 / - col2 - - col0 + - + 29 * + - 38 * + + 82 FROM tab2
----
90460
90504
90505

query I rowsort
SELECT DISTINCT + col0 + - + 24 FROM tab1 AS cor0
----
27
61
67

query I rowsort
SELECT - col2 AS col0 FROM tab2 AS cor0 WHERE - ( + - col1 ) * 54 NOT IN ( + + 31, + col0 * - 49 - 48 + + col2 * + col2 + + + col2 + + - col2 * col2 )
----
-23
-40
-58

query I rowsort
SELECT - 95 + - 56 FROM tab2
----
-151
-151
-151

query I rowsort
SELECT - 97 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to e4a6bd848a69226cbb7ad3d154be321b

onlyif mysql # aggregate syntax: 
query I rowsort label-2372
SELECT ALL - - 3 * + - COUNT( + 73 ) AS col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-27

skipif mysql # not compatible
query I rowsort label-2372
SELECT ALL - - 3 * + - COUNT ( + 73 ) AS col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-2373
SELECT DISTINCT + COUNT( col2 ) + COUNT( * ) FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-2373
SELECT DISTINCT + COUNT ( col2 ) + COUNT ( * ) FROM tab2 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2374
SELECT 5 * + - SUM( ALL col1 ) AS col0 FROM tab1 AS cor0 WHERE 38 IS NOT NULL
----
-330

skipif mysql # not compatible
query I rowsort label-2374
SELECT 5 * + - SUM ( ALL col1 ) AS col0 FROM tab1 AS cor0 WHERE 38 IS NOT NULL
----
-330

onlyif mysql # aggregate syntax: 
query I rowsort label-2375
SELECT ( - + MIN( + + col0 ) ) FROM tab0 cor0
----
-15

skipif mysql # not compatible
query I rowsort label-2375
SELECT ( - + MIN ( + + col0 ) ) FROM tab0 cor0
----
-15

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 8 * + - 93 + 2 = col2
----

query I rowsort
SELECT DISTINCT + col2 * + - col0 - - col0 AS col0 FROM tab0 AS cor0
----
-690
-783
-9506

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE NULL >= ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col0, - 40 FROM tab2 AS cor0
----
23
-40
40
-40
58
-40

query II rowsort
SELECT ALL ( + col2 ) AS col2, - col0 AS col2 FROM tab1
----
59
-85
68
-91
96
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2381
SELECT - col2 * CAST( - 93 AS SIGNED ) FROM tab2
----
2139
3720
5394

skipif mysql # not compatible
query I rowsort label-2381
SELECT - col2 * CAST ( - 93 AS INTEGER ) FROM tab2
----
2139
3720
5394

query I rowsort
SELECT col2 * - col2 * - 61 AS col1 FROM tab2
----
205204
32269
97600

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 4 * + col0 - col0 - - 46 col1 FROM tab2 AS cor0
----
184
238
271

onlyif mysql # DIV for integer division: 
query I rowsort label-2384
SELECT col1 DIV + col1 + col1 FROM tab0 AS cor0
----
2
22
82

skipif mysql # not compatible
query I rowsort label-2384
SELECT col1 / + col1 + col1 FROM tab0 AS cor0
----
2
22
82

query I rowsort
SELECT DISTINCT - ( + + col1 ) * + col2 AS col1 FROM tab2 AS cor0
----
-1173
-3080
-3886

query I rowsort
SELECT + + col1 + 69 + + - col2 * col0 FROM tab2 WHERE NOT + 65 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - + 69 col0 FROM tab0 AS cor0
----
-1035
-6003
-6693

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - col0 / - + 66 + - 16 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 col1 FROM tab1 AS cor0 WHERE NOT - 77 + - 90 * + + col0 = + col2 + - + 9
----
51
85
91

query I rowsort
SELECT DISTINCT + 40 * - col1 AS col1 FROM tab0 cor0
----
-3240
-40
-840

onlyif mysql # aggregate syntax: 
query I rowsort label-2391
SELECT + COUNT( * ) * - 84 col2 FROM tab1 AS cor0
----
-252

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2391
SELECT + COUNT ( * ) * - 84 col2 FROM tab1 AS cor0
----
-252

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col0 + + col2 <= 60
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL > 6
----

query II rowsort
SELECT + col0, ( - ( - + col0 ) ) AS col1 FROM tab1 cor0
----
51
51
85
85
91
91

query I rowsort
SELECT ALL col0 AS col0 FROM tab1 AS cor0 WHERE NOT col2 <> + + col1 / 7
----

query I rowsort
SELECT + col1 AS col1 FROM tab2 WHERE 92 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2397
SELECT + 6 + + COUNT( * ) AS col0, - 39 AS col1 FROM tab2
----
9
-39

skipif mysql # not compatible
query II rowsort label-2397
SELECT + 6 + + COUNT ( * ) AS col0, - 39 AS col1 FROM tab2
----
9
-39

query III rowsort
SELECT * FROM tab2 WHERE ( NOT - 37 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2399
SELECT ALL + 15 + - + ( - COUNT( * ) ) FROM tab1
----
18

skipif mysql # not compatible
query I rowsort label-2399
SELECT ALL + 15 + - + ( - COUNT ( * ) ) FROM tab1
----
18

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2400
SELECT + col0 DIV CAST( - col2 AS SIGNED ) + ( + col2 ) + - + 9 * - + 22 * + - col1 AS col1 FROM tab2
----
-10077
-13209
-15207

skipif mysql # not compatible
query I rowsort label-2400
SELECT + col0 / CAST ( - col2 AS INTEGER ) + ( + col2 ) + - + 9 * - + 22 * + - col1 AS col1 FROM tab2
----
-10077
-13209
-15207

onlyif mysql # aggregate syntax: 
query I rowsort label-2401
SELECT + SUM( ALL - + 5 ) AS col1 FROM tab0, tab1 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-2401
SELECT + SUM ( ALL - + 5 ) AS col1 FROM tab0, tab1 AS cor0
----
-45

query I rowsort
SELECT ALL + 88 + - 92 FROM tab0
----
-4
-4
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-2403
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE NULL <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-2403
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE NULL <= NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2404
SELECT - COUNT( * ) + - 22 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-31

skipif mysql # not compatible
query I rowsort label-2404
SELECT - COUNT ( * ) + - 22 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-2405
SELECT DISTINCT + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NOT NULL
----
9

skipif mysql # not compatible
query I rowsort label-2405
SELECT DISTINCT + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NOT NULL
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2406
SELECT 97 * 44 - + - COUNT( * ) FROM tab2
----
4271

skipif mysql # not compatible
query I rowsort label-2406
SELECT 97 * 44 - + - COUNT ( * ) FROM tab2
----
4271

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2407
SELECT ( + col0 ) + - col0 * CAST( NULL AS SIGNED ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2407
SELECT ( + col0 ) + - col0 * CAST ( NULL AS INTEGER ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 2 * + 54 AS col1 FROM tab0 AS cor0 WHERE ( col1 ) IS NULL
----

query I rowsort
SELECT DISTINCT - 6 + - 86 AS col2 FROM tab0 AS cor0
----
-92

query II rowsort
SELECT ALL - + col0, col0 AS col1 FROM tab2 AS cor0 WHERE col0 / + - col1 / - 12 IS NOT NULL
----
-46
46
-64
64
-75
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + - col0 col0 FROM tab0 AS cor0 WHERE NOT NULL <= - 94 * + 32
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 + - + col1 + - col0 / 3 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2413
SELECT ALL SUM( ALL - col1 ) FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-2413
SELECT ALL SUM ( ALL - col1 ) FROM tab2
----
-195

query II rowsort
SELECT + col1 AS col2, 68 FROM tab2
----
51
68
67
68
77
68

query I rowsort
SELECT + ( + 41 ) * + + col1 AS col0 FROM tab1
----
1927
205
574

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 AS col2, - 47 col1 FROM tab2
----
-46
-47
-64
-47
-75
-47

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - 74 ) IN ( + col0 * 61 / + + col2, col0, + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2418
SELECT - CAST( NULL AS SIGNED ) col2, + COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2418
SELECT - CAST ( NULL AS INTEGER ) col2, + COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL
9

onlyif mysql # DIV for integer division: 
query I rowsort label-2419
SELECT DISTINCT + ( - col0 ) DIV col0 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2419
SELECT DISTINCT + ( - col0 ) / col0 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT ( + - col0 ) + - 71 + + - 83 FROM tab0 AS cor0
----
-169
-241
-251

query I rowsort
SELECT + 74 * ( col2 ) * - - col0 AS col1 FROM tab2 AS cor0
----
189440
321900
78292

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab1 WHERE NOT ( NULL ) BETWEEN NULL AND col2 / - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2423
SELECT DISTINCT ( + ( + ( - ( + COUNT( * ) ) ) ) ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-2423
SELECT DISTINCT ( + ( + ( - ( + COUNT ( * ) ) ) ) ) AS col1 FROM tab1
----
-3

query I rowsort
SELECT DISTINCT col2 + - 24 + + col1 * - 31 AS col1 FROM tab0
----
-2488
-665
44

onlyif mysql # DIV for integer division: 
query I rowsort label-2425
SELECT + col0 DIV + + col1 AS col0 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2425
SELECT + col0 / + + col1 AS col0 FROM tab2
----
0
0
1

query I rowsort
SELECT ALL - 27 + + - 54 FROM tab2
----
-81
-81
-81

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab2 AS cor0 WHERE - col0 - - + 56 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2428
SELECT ALL COUNT( * ) + + 77 FROM tab2 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-2428
SELECT ALL COUNT ( * ) + + 77 FROM tab2 AS cor0
----
80

query I rowsort
SELECT + col2 + + col1 + - col2 * + col2 AS col1 FROM tab0 AS cor0
----
-2081
-69
-9701

query II rowsort
SELECT DISTINCT - col0 - - 41 * - 74, col0 FROM tab0 AS cor0
----
-3049
15
-3121
87
-3131
97

query I rowsort
SELECT ALL 89 - col0 * + col0 + + 15 AS col2 FROM tab2
----
-2012
-3992
-5521

query I rowsort
SELECT DISTINCT - 24 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2433
SELECT COUNT( ALL - CAST( 35 AS SIGNED ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2433
SELECT COUNT ( ALL - CAST ( 35 AS INTEGER ) ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL - + col0 FROM tab2 AS cor0 WHERE col2 IS NULL
----

query I rowsort
SELECT ALL 16 AS col0 FROM tab2 AS cor0
----
16
16
16

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE col2 * + col2 * + col0 * col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2437
SELECT DISTINCT + 98 + + col1 + - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-2437
SELECT DISTINCT + 98 + + col1 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE col0 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE + ( - col2 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2439
SELECT DISTINCT - MAX( 15 ) FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-2439
SELECT DISTINCT - MAX ( 15 ) FROM tab0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-2440
SELECT DISTINCT + ( + COUNT( * ) ) + - + 68 AS col2 FROM tab2 WHERE NOT ( - 9 IS NOT NULL )
----
-68

skipif mysql # not compatible
query I rowsort label-2440
SELECT DISTINCT + ( + COUNT ( * ) ) + - + 68 AS col2 FROM tab2 WHERE NOT ( - 9 IS NOT NULL )
----
-68

query I rowsort
SELECT - ( + col0 ) * - col1 FROM tab1
----
425
4277
714

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 / + + 57 < + - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2443
SELECT MIN( - 37 ) AS col1 FROM tab1
----
-37

skipif mysql # not compatible
query I rowsort label-2443
SELECT MIN ( - 37 ) AS col1 FROM tab1
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2444
SELECT + - CAST( + COUNT( * ) AS SIGNED ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2444
SELECT + - CAST ( + COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2445
SELECT ALL - MAX( + col0 ) FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-2445
SELECT ALL - MAX ( + col0 ) FROM tab0 AS cor0
----
-97

query I rowsort
SELECT ALL + 1 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

query II rowsort
SELECT DISTINCT col0 AS col1, col2 + - - col1 + col0 AS col0 FROM tab0
----
15
143
87
118
97
197

query I rowsort
SELECT DISTINCT + - ( + 71 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-2449
SELECT + - ( + + COUNT( * ) ) * + 95 FROM tab0 AS cor0
----
-285

skipif mysql # not compatible
query I rowsort label-2449
SELECT + - ( + + COUNT ( * ) ) * + 95 FROM tab0 AS cor0
----
-285

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2450
SELECT + MIN( DISTINCT + col2 ) FROM tab2 AS cor0 WHERE CAST( - col1 AS DECIMAL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2450
SELECT + MIN ( DISTINCT + col2 ) FROM tab2 AS cor0 WHERE CAST ( - col1 AS REAL ) IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + 62 AS col1, + 9 * - + 54 col0 FROM tab2 AS cor0
----
-62
-486

onlyif mysql # aggregate syntax: 
query I rowsort label-2452
SELECT + COUNT( * ) * - 13 FROM tab0 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-2452
SELECT + COUNT ( * ) * - 13 FROM tab0 AS cor0
----
-39

query I rowsort
SELECT - 20 * col0 * col2 * - col1 + - 5 FROM tab1 AS cor0
----
1370875
501495
5816715

onlyif mysql # DIV for integer division: 
query I rowsort label-2454
SELECT col0 + 40 + - ( + 63 ) * col0 + + 62 + + + col1 + + + 73 * + 13 + col0 + - 84 + - col0 DIV 25 DIV + col0 DIV + ( - - 9 ) + col0 * - + 70 AS col2 FROM tab1
----
-10163
-10907
-5700

skipif mysql # not compatible
query I rowsort label-2454
SELECT col0 + 40 + - ( + 63 ) * col0 + + 62 + + + col1 + + + 73 * + 13 + col0 + - 84 + - col0 / 25 / + col0 / + ( - - 9 ) + col0 * - + 70 AS col2 FROM tab1
----
-10163
-10907
-5700

query I rowsort
SELECT + 99 + + ( + - 40 ) + + - 16 + - + col2 * + 45 FROM tab1
----
-2612
-3017
-4277

query I rowsort
SELECT DISTINCT - 27 * col1 * - + ( - col1 ) * + col1 + col0 FROM tab0
----
-14348892
-249960
70

query I rowsort
SELECT col0 + - + 6 AS col2 FROM tab1
----
45
79
85

query II rowsort
SELECT ALL 80 * + col1 AS col0, ( - col2 ) AS col2 FROM tab0
----
1680
-10
6480
-47
80
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2459
SELECT ALL + 52 / - MAX( DISTINCT - 31 ) * - CAST( NULL AS SIGNED ) FROM tab2 WHERE col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2459
SELECT ALL + 52 / - MAX ( DISTINCT - 31 ) * - CAST ( NULL AS INTEGER ) FROM tab2 WHERE col0 IS NOT NULL
----
NULL

query II rowsort
SELECT DISTINCT col1 * 77 + + col2, col1 AS col2 FROM tab2 AS cor0
----
3950
51
5217
67
5969
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2461
SELECT ALL - 2 + COUNT( * ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
1

skipif mysql # not compatible
query I rowsort label-2461
SELECT ALL - 2 + COUNT ( * ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2462
SELECT col2 DIV + 1 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-2462
SELECT col2 / + 1 FROM tab2
----
23
40
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2463
SELECT COUNT( * ) DIV + 74 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2463
SELECT COUNT ( * ) / + 74 AS col1 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2464
SELECT DISTINCT - COUNT( * ) * + 76 FROM tab2
----
-228

skipif mysql # not compatible
query I rowsort label-2464
SELECT DISTINCT - COUNT ( * ) * + 76 FROM tab2
----
-228

onlyif mysql # aggregate syntax: 
query I rowsort label-2465
SELECT DISTINCT + SUM( DISTINCT + 28 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
28

skipif mysql # not compatible
query I rowsort label-2465
SELECT DISTINCT + SUM ( DISTINCT + 28 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
28

onlyif mysql # aggregate syntax: 
query II rowsort label-2466
SELECT ALL - 33 AS col0, COUNT( * ) col1 FROM tab0
----
-33
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2466
SELECT ALL - 33 AS col0, COUNT ( * ) col1 FROM tab0
----
-33
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2467
SELECT ALL - SUM( ALL - 39 ) AS col0 FROM tab1 AS cor0
----
117

skipif mysql # not compatible
query I rowsort label-2467
SELECT ALL - SUM ( ALL - 39 ) AS col0 FROM tab1 AS cor0
----
117

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 93 - - - col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2469
SELECT + + col2 DIV - 57 AS col0 FROM tab0 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2469
SELECT + + col2 / - 57 AS col0 FROM tab0 cor0
----
-1
0
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - 98 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2471
SELECT ALL + ( - CAST( + - col1 AS SIGNED ) ) AS col2, col0 FROM tab2 AS cor0
----
51
46
67
75
77
64

skipif mysql # not compatible
query II rowsort label-2471
SELECT ALL + ( - CAST ( + - col1 AS INTEGER ) ) AS col2, col0 FROM tab2 AS cor0
----
51
46
67
75
77
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2472
SELECT ALL 36 / - + CAST( - 2 AS SIGNED ) FROM tab0 cor0 WHERE NOT NULL = NULL
----

skipif mysql # not compatible
query I rowsort label-2472
SELECT ALL 36 / - + CAST ( - 2 AS INTEGER ) FROM tab0 cor0 WHERE NOT NULL = NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2473
SELECT col1 AS col0, col0 + - ( - - col2 ) DIV col0 AS col2 FROM tab0 AS cor0
----
1
96
21
87
81
12

skipif mysql # not compatible
query II rowsort label-2473
SELECT col1 AS col0, col0 + - ( - - col2 ) / col0 AS col2 FROM tab0 AS cor0
----
1
96
21
87
81
12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 88 * + col0, ( col2 ) * + 95 col2 FROM tab0
----
1320
4465
7656
950
8536
9405

query II rowsort
SELECT DISTINCT - 73, + col2 AS col2 FROM tab0 WHERE - 98 IS NULL
----

query I rowsort
SELECT 68 * + - ( + col2 ) AS col2 FROM tab1
----
-4012
-4624
-6528

onlyif mysql # aggregate syntax: 
query I rowsort label-2477
SELECT ALL COUNT( * ) * + MIN( col2 ) + - 25 AS col2 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2477
SELECT ALL COUNT ( * ) * + MIN ( col2 ) + - 25 AS col2 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT + col2 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
10
47
99

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 23 <> ( + - col2 ) + 44
----

query I rowsort
SELECT DISTINCT + col2 + 44 - + + col0 AS col1 FROM tab1 AS cor0
----
18
21
89

query I rowsort
SELECT DISTINCT - + col1 AS col0 FROM tab1 AS cor0 WHERE NOT + 92 * col0 >= NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col2 - + + 55 AND NULL
----

query I rowsort
SELECT ALL col0 FROM tab0 AS cor0 WHERE NOT + 46 + - + col2 IS NULL
----
15
87
97

query I rowsort
SELECT DISTINCT 41 * + col2 + 70 FROM tab2
----
1013
1710
2448

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + col1 ) * + 87 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2486
SELECT - + SUM( ALL - 28 ) + - COUNT( * ) FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-2486
SELECT - + SUM ( ALL - 28 ) + - COUNT ( * ) FROM tab0 AS cor0
----
81

query I rowsort
SELECT 97 * col1 AS col1 FROM tab1 AS cor0
----
1358
4559
485

query II rowsort
SELECT - 40 AS col2, - col0 AS col1 FROM tab0 AS cor0
----
-40
-15
-40
-87
-40
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2489
SELECT DISTINCT - COUNT( ALL - col0 ) * + COUNT( * ) - - SUM( DISTINCT + col0 ) + + - 77 FROM tab1 AS cor0
----
141

skipif mysql # not compatible
query I rowsort label-2489
SELECT DISTINCT - COUNT ( ALL - col0 ) * + COUNT ( * ) - - SUM ( DISTINCT + col0 ) + + - 77 FROM tab1 AS cor0
----
141

query I rowsort
SELECT - col0 * + + col2 FROM tab1 cor0
----
-4896
-5015
-6188

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( - col2 * - + col1 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2492
SELECT DISTINCT SUM( 41 ) AS col2 FROM tab0
----
123

skipif mysql # not compatible
query I rowsort label-2492
SELECT DISTINCT SUM ( 41 ) AS col2 FROM tab0
----
123

query I rowsort
SELECT DISTINCT - 32 * + + col0 * + col1 FROM tab1
----
-13600
-136864
-22848

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2494
SELECT ALL * FROM tab1 WHERE NOT NULL BETWEEN + + CAST( + - col1 AS SIGNED ) AND + col1
----

skipif mysql # not compatible
query III rowsort label-2494
SELECT ALL * FROM tab1 WHERE NOT NULL BETWEEN + + CAST ( + - col1 AS INTEGER ) AND + col1
----

query III rowsort
SELECT * FROM tab0 WHERE 96 - + 75 IS NULL
----

query I rowsort
SELECT ( ( - col0 ) ) + + col1 AS col2 FROM tab1
----
-37
-44
-80

query II rowsort
SELECT - + col1, col1 AS col0 FROM tab2 AS cor0
----
-51
51
-67
67
-77
77

query II rowsort
SELECT 79 AS col1, col0 FROM tab1 AS cor0
----
79
51
79
85
79
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2499
SELECT DISTINCT COUNT( * ) DIV + MIN( - + 81 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2499
SELECT DISTINCT COUNT ( * ) / + MIN ( - + 81 ) FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2500
SELECT DISTINCT + 47 * - + ( + - COUNT( * ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
423

skipif mysql # not compatible
query I rowsort label-2500
SELECT DISTINCT + 47 * - + ( + - COUNT ( * ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
423

query II rowsort
SELECT + 58 * - col0 AS col2, 68 + col0 FROM tab0 cor0
----
-5046
155
-5626
165
-870
83

query I rowsort
SELECT DISTINCT - + 25 AS col1 FROM tab1 AS cor0
----
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-2503
SELECT + col2 DIV - - col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2503
SELECT + col2 / - - col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - - col1 * + + col1 FROM tab2 AS cor0
----
2601
4489
5929

onlyif mysql # aggregate syntax: 
query I rowsort label-2505
SELECT + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NOT - ( col0 ) IS NULL )
----
0

skipif mysql # not compatible
query I rowsort label-2505
SELECT + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NOT - ( col0 ) IS NULL )
----
0

query II rowsort
SELECT DISTINCT - + ( col2 ) AS col2, - col1 * + col2 FROM tab0 cor0
----
-10
-210
-47
-3807
-99
-99

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2507
SELECT DISTINCT + + 76 FROM tab2 WHERE + - CAST( NULL AS DECIMAL ) = NULL
----

skipif mysql # not compatible
query I rowsort label-2507
SELECT DISTINCT + + 76 FROM tab2 WHERE + - CAST ( NULL AS REAL ) = NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 > - col2 * + 33
----

query I rowsort
SELECT ALL + col0 * + 61 AS col2 FROM tab2
----
2806
3904
4575

query II rowsort
SELECT col1 AS col1, 76 FROM tab2
----
51
76
67
76
77
76

onlyif mysql # aggregate syntax: 
query I rowsort label-2511
SELECT + COUNT( + + col2 ) * + SUM( ALL + col2 ) + - - ( - COUNT( * ) ) FROM tab1
----
666

skipif mysql # not compatible
query I rowsort label-2511
SELECT + COUNT ( + + col2 ) * + SUM ( ALL + col2 ) + - - ( - COUNT ( * ) ) FROM tab1
----
666

onlyif mysql # aggregate syntax: 
query I rowsort label-2512
SELECT DISTINCT - COUNT( * ) + + 88 AS col2 FROM tab2
----
85

skipif mysql # not compatible
query I rowsort label-2512
SELECT DISTINCT - COUNT ( * ) + + 88 AS col2 FROM tab2
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-2513
SELECT 69 * - col2 + - col0 * col1 DIV col1 AS col0 FROM tab1
----
-4156
-4783
-6675

skipif mysql # not compatible
query I rowsort label-2513
SELECT 69 * - col2 + - col0 * col1 / col1 AS col0 FROM tab1
----
-4156
-4783
-6675

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 60 * - col2 + + 20 * - + 34 col2 FROM tab2 AS cor0
----
1720
2800
700

query II rowsort
SELECT DISTINCT - + col2 AS col2, - col2 - - col0 FROM tab1 AS cor0
----
-59
26
-68
23
-96
-45

onlyif mysql # DIV for integer division: 
query II rowsort label-2516
SELECT - col2 DIV + - col1 AS col2, col0 AS col0 FROM tab0
----
0
15
0
87
99
97

skipif mysql # not compatible
query II rowsort label-2516
SELECT - col2 / + - col1 AS col2, col0 AS col0 FROM tab0
----
0
15
0
87
99
97

query II rowsort
SELECT DISTINCT 86 * - col2, col1 FROM tab2
----
-1978
51
-3440
77
-4988
67

query II rowsort
SELECT + ( - + col1 ), col0 AS col0 FROM tab1
----
-14
51
-47
91
-5
85

onlyif mysql # aggregate syntax: 
query I rowsort label-2519
SELECT ALL + - 76 + COUNT( * ) AS col2 FROM tab1 WHERE + col0 * + 53 IS NOT NULL
----
-73

skipif mysql # not compatible
query I rowsort label-2519
SELECT ALL + - 76 + COUNT ( * ) AS col2 FROM tab1 WHERE + col0 * + 53 IS NOT NULL
----
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2520
SELECT DISTINCT COUNT( - - CAST( 11 AS SIGNED ) ) + 73 FROM tab2 AS cor0
----
76

skipif mysql # not compatible
query I rowsort label-2520
SELECT DISTINCT COUNT ( - - CAST ( 11 AS INTEGER ) ) + 73 FROM tab2 AS cor0
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-2521
SELECT COUNT( + col2 ) + + 70 AS col1 FROM tab0 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-2521
SELECT COUNT ( + col2 ) + + 70 AS col1 FROM tab0 AS cor0
----
73

query I rowsort
SELECT DISTINCT col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) <= NULL
----

query I rowsort
SELECT col0 * + col0 + col1 AS col1 FROM tab1 AS cor0
----
2615
7230
8328

query I rowsort
SELECT col2 + - col1 * - 70 + - 86 AS col2 FROM tab2
----
3507
4662
5344

query II rowsort
SELECT DISTINCT col2 * ( + col2 ), + col1 FROM tab0
----
100
21
2209
81
9801
1

query II rowsort
SELECT DISTINCT col2, - 49 FROM tab2
----
23
-49
40
-49
58
-49

onlyif mysql # aggregate syntax: 
query II rowsort label-2527
SELECT ALL - ( + MAX( ALL + - col2 ) ) AS col2, 25 FROM tab1
----
59
25

skipif mysql # not compatible
query II rowsort label-2527
SELECT ALL - ( + MAX ( ALL + - col2 ) ) AS col2, 25 FROM tab1
----
59
25

onlyif mysql # DIV for integer division: 
query I rowsort label-2528
SELECT - + 7 DIV col2 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2528
SELECT - + 7 / col2 AS col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2529
SELECT COUNT( DISTINCT + col0 ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2529
SELECT COUNT ( DISTINCT + col0 ) FROM tab2 cor0
----
3

query I rowsort
SELECT DISTINCT - 38 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-38

query I rowsort
SELECT + 39 * - col1 FROM tab1
----
-1833
-195
-546

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 col2, - 98 * col1 FROM tab0
----
10
-2058
47
-7938
99
-98

query II rowsort
SELECT DISTINCT col0 AS col1, - col1 * ( col1 ) + + col0 AS col1 FROM tab2
----
46
-2555
64
-5865
75
-4414

onlyif mysql # aggregate syntax: 
query I rowsort label-2534
SELECT + MAX( ALL + 7 ) FROM tab0 cor0
----
7

skipif mysql # not compatible
query I rowsort label-2534
SELECT + MAX ( ALL + 7 ) FROM tab0 cor0
----
7

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - ( - col1 ) NOT BETWEEN 73 * + col1 + + col0 AND col1 + 63
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2536
SELECT MAX( DISTINCT + - 47 ) DIV + 44 col1 FROM tab1 cor0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2536
SELECT MAX ( DISTINCT + - 47 ) / + 44 col1 FROM tab1 cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + col0 col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2538
SELECT ALL 2 * + COUNT( * ) + + - 45 DIV + 36 AS col0 FROM tab1 cor0
----
5

skipif mysql # not compatible
query I rowsort label-2538
SELECT ALL 2 * + COUNT ( * ) + + - 45 / + 36 AS col0 FROM tab1 cor0
----
5

query I rowsort
SELECT DISTINCT + col1 * + col1 * + col2 + + ( + col1 ) + + - col0 AS col0 FROM tab0 AS cor0
----
3
308433
4344

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <> 74 + - col0 / + col1 AND NOT NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2541
SELECT CAST( + COUNT( * ) AS SIGNED ) col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2541
SELECT CAST ( + COUNT ( * ) AS INTEGER ) col1 FROM tab0 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + 16, col2 col0 FROM tab2 AS cor0
----
-16
23
-16
40
-16
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2543
SELECT + ( + + MAX( DISTINCT - + col2 ) ) FROM tab0 cor0
----
-10

skipif mysql # not compatible
query I rowsort label-2543
SELECT + ( + + MAX ( DISTINCT - + col2 ) ) FROM tab0 cor0
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2544
SELECT ALL + - ( + CAST( - + COUNT( * ) AS SIGNED ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2544
SELECT ALL + - ( + CAST ( - + COUNT ( * ) AS INTEGER ) ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2545
SELECT ALL COUNT( * ) * - 24 FROM tab1
----
-72

skipif mysql # not compatible
query I rowsort label-2545
SELECT ALL COUNT ( * ) * - 24 FROM tab1
----
-72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2546
SELECT ALL + COUNT( * ) DIV COUNT( ALL + - col1 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-2546
SELECT ALL + COUNT ( * ) / COUNT ( ALL + - col1 ) FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2547
SELECT ALL + 10 + - 70, COUNT( * ) col1 FROM tab2
----
-60
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2547
SELECT ALL + 10 + - 70, COUNT ( * ) col1 FROM tab2
----
-60
3

query I rowsort
SELECT ( col1 ) AS col2 FROM tab0 WHERE NULL < + 10 * 6 * + col0 * - col0
----

query I rowsort
SELECT ALL + 62 + - 91 FROM tab0, tab1 AS cor0
----
9 values hashing to 0cc9ddad93fc783055518ae4b6be054b

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND + 34
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2551
SELECT ALL + COUNT( * ) * 49 AS col0, COUNT( * ) FROM tab1 AS cor0
----
147
3

skipif mysql # not compatible
query II rowsort label-2551
SELECT ALL + COUNT ( * ) * 49 AS col0, COUNT ( * ) FROM tab1 AS cor0
----
147
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2552
SELECT + col0 + col2 * + + CAST( NULL AS SIGNED ) - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2552
SELECT + col0 + col2 * + + CAST ( NULL AS INTEGER ) - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2554
SELECT + - COUNT( * ) AS col2, - 92 AS col2 FROM tab0 AS cor0
----
-3
-92

skipif mysql # not compatible
query II rowsort label-2554
SELECT + - COUNT ( * ) AS col2, - 92 AS col2 FROM tab0 AS cor0
----
-3
-92

query II rowsort
SELECT DISTINCT - col1 + - col0 + + 45 AS col0, col2 AS col2 FROM tab0 cor0
----
-51
47
-53
99
-63
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1, 17 col2 FROM tab2 AS cor0
----
51
17
67
17
77
17

query I rowsort
SELECT ALL ( - + col1 ) FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + ( col1 ) - - - col1 * + col0 + ( - 59 ) AS col0 FROM tab2 AS cor0
----
-2354
-4910
-5017

query II rowsort
SELECT col2 AS col1, 80 AS col0 FROM tab0 AS cor0
----
10
80
47
80
99
80

onlyif mysql # aggregate syntax: 
query I rowsort label-2560
SELECT SUM( ALL + col0 ) FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-2560
SELECT SUM ( ALL + col0 ) FROM tab2 AS cor0
----
185

query I rowsort
SELECT - ( - 44 ) FROM tab0 AS cor0
----
44
44
44

query I rowsort
SELECT + col0 * 30 FROM tab2 AS cor0
----
1380
1920
2250

query III rowsort
SELECT ALL * FROM tab2 WHERE - 53 IS NULL OR + col0 + + 20 + - col2 <= NULL
----

query I rowsort
SELECT ( 20 ) FROM tab1
----
20
20
20

onlyif mysql # aggregate syntax: 
query II rowsort label-2565
SELECT DISTINCT SUM( + col0 ) AS col1, - COUNT( * ) AS col2 FROM tab1 AS cor0
----
227
-3

skipif mysql # not compatible
query II rowsort label-2565
SELECT DISTINCT SUM ( + col0 ) AS col1, - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
227
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-2566
SELECT - col0 DIV ( + col1 ) AS col0 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2566
SELECT - col0 / ( + col1 ) AS col0 FROM tab2 AS cor0
----
-1
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2567
SELECT 94 DIV - 43 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-2567
SELECT 94 / - 43 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-2
-2
-2

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 NOT IN ( - - col1, col0 / - 80 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2569
SELECT DISTINCT + COUNT( * ), COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9
9

skipif mysql # not compatible
query II rowsort label-2569
SELECT DISTINCT + COUNT ( * ), COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2570
SELECT - - col0 - - 6 + - col2 * + col0 + + col0 * - + 44 AS col1 FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) * + 10 / + col1 + - - ( - - col0 ) BETWEEN - + col1 * - 36 AND - 59 / - + col0
----

skipif mysql # not compatible
query I rowsort label-2570
SELECT - - col0 - - 6 + - col2 * + col0 + + col0 * - + 44 AS col1 FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) * + 10 / + col1 + - - ( - - col0 ) BETWEEN - + col1 * - 36 AND - 59 / - + col0
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2571
SELECT ALL - col0 * + col0 + - 91 + + 81 - - - col2 * + CAST( - 45 AS SIGNED ) * ( 36 ) + + - CAST( - + col2 AS SIGNED ) DIV - 95 AS col0 FROM tab2 AS cor0
----
35134
60694
88325

skipif mysql # not compatible
query I rowsort label-2571
SELECT ALL - col0 * + col0 + - 91 + + 81 - - - col2 * + CAST ( - 45 AS INTEGER ) * ( 36 ) + + - CAST ( - + col2 AS INTEGER ) / - 95 AS col0 FROM tab2 AS cor0
----
35134
60694
88325

query I rowsort
SELECT ( 99 ) * col1 AS col1 FROM tab0 cor0
----
2079
8019
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2573
SELECT SUM( - + col2 ) FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-2573
SELECT SUM ( - + col2 ) FROM tab2 AS cor0
----
-121

onlyif mysql # DIV for integer division: 
query I rowsort label-2574
SELECT ALL + col2 DIV - col1 + + + col2 * 97 AS col2 FROM tab1 AS cor0
----
5712
6595
9306

skipif mysql # not compatible
query I rowsort label-2574
SELECT ALL + col2 / - col1 + + + col2 * 97 AS col2 FROM tab1 AS cor0
----
5712
6595
9306

query I rowsort
SELECT ALL col2 * + - col2 * - col1 FROM tab0 AS cor0
----
178929
2100
9801

onlyif mysql # aggregate syntax: 
query II rowsort label-2576
SELECT ALL - MIN( - ( col0 ) ) AS col1, 76 FROM tab2 AS cor0
----
75
76

skipif mysql # not compatible
query II rowsort label-2576
SELECT ALL - MIN ( - ( col0 ) ) AS col1, 76 FROM tab2 AS cor0
----
75
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2577
SELECT DISTINCT - + 99 FROM tab2 cor0 WHERE NULL > CAST( + col2 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-2577
SELECT DISTINCT - + 99 FROM tab2 cor0 WHERE NULL > CAST ( + col2 AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2578
SELECT + col1 DIV col1 + col1 + - col1 * - - 92 AS col0 FROM tab0
----
-1910
-7370
-90

skipif mysql # not compatible
query I rowsort label-2578
SELECT + col1 / col1 + col1 + - col1 * - - 92 AS col0 FROM tab0
----
-1910
-7370
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-2579
SELECT DISTINCT + SUM( ALL + col2 ) + - 25 AS col0 FROM tab1
----
198

skipif mysql # not compatible
query I rowsort label-2579
SELECT DISTINCT + SUM ( ALL + col2 ) + - 25 AS col0 FROM tab1
----
198

query I rowsort
SELECT 29 + - - col1 * - col1 AS col0 FROM tab0
----
-412
-6532
28

query I rowsort
SELECT + 40 + + 50 FROM tab2 cor0
----
90
90
90

onlyif mysql # aggregate syntax: 
query I rowsort label-2582
SELECT - - COUNT( * ) / + + AVG ( - col1 ) FROM tab2 AS cor0 WHERE col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2582
SELECT - - COUNT ( * ) / + + AVG ( - col1 ) FROM tab2 AS cor0 WHERE col2 IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2583
SELECT DISTINCT - 83 + - - col0 + + col1 * - - CAST( NULL AS SIGNED ) + col1 + 98 AS col1, col0 + col2 + + - col1 FROM tab2 AS cor0
----
NULL
18
NULL
27
NULL
66

skipif mysql # not compatible
query II rowsort label-2583
SELECT DISTINCT - 83 + - - col0 + + col1 * - - CAST ( NULL AS INTEGER ) + col1 + 98 AS col1, col0 + col2 + + - col1 FROM tab2 AS cor0
----
NULL
18
NULL
27
NULL
66

query II rowsort
SELECT ALL col2 AS col1, col2 FROM tab1 cor0
----
59
59
68
68
96
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 + col1 + + col2 * - col0 * - col1, - col2 col1 FROM tab1 AS cor0
----
25139
-59
290951
-68
68654
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-2586
SELECT ALL + - col0 DIV - ( - 19 ) + + 57 - col1 + + 37 FROM tab0 cor0
----
13
69
88

skipif mysql # not compatible
query I rowsort label-2586
SELECT ALL + - col0 / - ( - 19 ) + + 57 - col1 + + 37 FROM tab0 cor0
----
13
69
88

onlyif mysql # aggregate syntax: 
query I rowsort label-2587
SELECT MIN( - col1 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2587
SELECT MIN ( - col1 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2588
SELECT ALL + col0 AS col0, col1 DIV col1 * + 60 FROM tab1
----
51
60
85
60
91
60

skipif mysql # not compatible
query II rowsort label-2588
SELECT ALL + col0 AS col0, col1 / col1 * + 60 FROM tab1
----
51
60
85
60
91
60

onlyif mysql # aggregate syntax: 
query I rowsort label-2589
SELECT ALL SUM( DISTINCT + col0 ) FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-2589
SELECT ALL SUM ( DISTINCT + col0 ) FROM tab0
----
199

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2590
SELECT - CAST( NULL AS SIGNED ) * - COUNT( * ) FROM tab0 WHERE NOT + col1 < + - 43
----
NULL

skipif mysql # not compatible
query I rowsort label-2590
SELECT - CAST ( NULL AS INTEGER ) * - COUNT ( * ) FROM tab0 WHERE NOT + col1 < + - 43
----
NULL

query I rowsort
SELECT DISTINCT + 69 FROM tab2 WHERE NOT NULL NOT BETWEEN - - 41 AND + 83
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2592
SELECT DISTINCT - COUNT( * ) * + ( + + 17 ) AS col0, + 56 FROM tab1
----
-51
56

skipif mysql # not compatible
query II rowsort label-2592
SELECT DISTINCT - COUNT ( * ) * + ( + + 17 ) AS col0, + 56 FROM tab1
----
-51
56

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN - + col2 + 50 AND - col1 - - ( - 45 ) / + col1
----

query II rowsort
SELECT - + 17, col2 AS col2 FROM tab2 AS cor0
----
-17
23
-17
40
-17
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2595
SELECT - COUNT( * ) + + 32 * 84 AS col0 FROM tab1
----
2685

skipif mysql # not compatible
query I rowsort label-2595
SELECT - COUNT ( * ) + + 32 * 84 AS col0 FROM tab1
----
2685

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL BETWEEN ( col1 ) AND 53
----

query I rowsort
SELECT 11 * 39 AS col2 FROM tab0
----
429
429
429

query I rowsort
SELECT ALL - col2 + 51 FROM tab1
----
-17
-45
-8

query I rowsort
SELECT DISTINCT - col0 FROM tab0 WHERE + col1 < col0
----
-87
-97

query I rowsort
SELECT DISTINCT 11 + + 88 AS col2 FROM tab1
----
99

query I rowsort
SELECT DISTINCT - 81 + col0 FROM tab2
----
-17
-35
-6

query I rowsort
SELECT - col1 * + 94 FROM tab2
----
-4794
-6298
-7238

query I rowsort
SELECT DISTINCT 46 + - col0 AS col0 FROM tab2
----
-18
-29
0

query I rowsort
SELECT - ( - 21 ) * col1 + col0 AS col2 FROM tab2
----
1117
1482
1681

query III rowsort
SELECT ALL * FROM tab1 WHERE ( col1 ) NOT IN ( col2 * col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 37 / 11 AS col0 FROM tab1 WHERE - ( - col1 ) + ( + col2 ) IS NULL
----

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab0 WHERE NOT ( + 45 + col1 ) IS NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2608
SELECT + SUM( 92 ) FROM tab0
----
276

skipif mysql # not compatible
query I rowsort label-2608
SELECT + SUM ( 92 ) FROM tab0
----
276

query I rowsort
SELECT col1 - - 56 FROM tab0
----
137
57
77

query I rowsort
SELECT col2 + 39 * - col2 AS col2 FROM tab2
----
-1520
-2204
-874

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 46 BETWEEN ( 84 ) AND + ( + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-2612
SELECT + 60 DIV + col2 + - col2 AS col2 FROM tab0
----
-4
-46
-99

skipif mysql # not compatible
query I rowsort label-2612
SELECT + 60 / + col2 + - col2 AS col2 FROM tab0
----
-4
-46
-99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2613
SELECT * FROM tab2 WHERE NOT ( CAST( col2 AS SIGNED ) ) NOT IN ( col0 )
----

skipif mysql # not compatible
query III rowsort label-2613
SELECT * FROM tab2 WHERE NOT ( CAST ( col2 AS INTEGER ) ) NOT IN ( col0 )
----

query I rowsort
SELECT ALL col0 AS col2 FROM tab0 WHERE NOT - col0 < col0
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( 74 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col0 * col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + ( 0 ) * col0 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2618
SELECT SUM( ALL col0 ) DIV 87 FROM tab2
----
2

skipif mysql # not compatible
query I rowsort label-2618
SELECT SUM ( ALL col0 ) / 87 FROM tab2
----
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col1 FROM tab1 AS cor0 WHERE 18 BETWEEN NULL AND ( + col2 + col0 )
----

query I rowsort
SELECT ALL 30 * col0 - ( - col0 + col1 ) FROM tab1 cor0
----
1567
2630
2774

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + col0 + + 82 col2 FROM tab0 AS cor0
----
-1133
-15
-1745

onlyif mysql # DIV for integer division: 
query I rowsort label-2622
SELECT ( - col2 ) DIV ( col2 - - col0 ) + + 55 FROM tab2 AS cor0
----
55
55
55

skipif mysql # not compatible
query I rowsort label-2622
SELECT ( - col2 ) / ( col2 - - col0 ) + + 55 FROM tab2 AS cor0
----
55
55
55

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( 85 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2624
SELECT COUNT( * ) + 3 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-2624
SELECT COUNT ( * ) + 3 FROM tab0 AS cor0
----
6

query I rowsort
SELECT col0 + 74 FROM tab0 cor0
----
161
171
89

query III rowsort
SELECT ALL * FROM tab1 WHERE + 14 * + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT IN ( col0 * + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2628
SELECT - CAST( CAST( 72 AS DECIMAL ) AS SIGNED ) AS col1 FROM tab0
----
-72
-72
-72

skipif mysql # not compatible
query I rowsort label-2628
SELECT - CAST ( CAST ( 72 AS REAL ) AS INTEGER ) AS col1 FROM tab0
----
-72
-72
-72

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col1 <= 29
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE - col2 + - col2 NOT BETWEEN 25 AND + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2631
SELECT + - COUNT( ALL + col1 ) col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2631
SELECT + - COUNT ( ALL + col1 ) col1 FROM tab2 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-2632
SELECT 47 DIV col1 AS col1 FROM tab1 AS cor0
----
1
3
9

skipif mysql # not compatible
query I rowsort label-2632
SELECT 47 / col1 AS col1 FROM tab1 AS cor0
----
1
3
9

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 70 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 44 * - col1 FROM tab1 cor0
----
-2068
-220
-616

query I rowsort
SELECT ALL - col1 AS col0 FROM tab0 AS cor0 WHERE NULL < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 48 col1 FROM tab1 AS cor0
----
-48
-48
-48

query I rowsort
SELECT DISTINCT + 63 AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 86 ) col0 FROM tab0
----
-86
-86
-86

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( + col0 + col2 ) BETWEEN NULL AND ( col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-2640
SELECT ALL col2 + ( - ( 14 ) ) DIV 55 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
23
40
58

skipif mysql # not compatible
query I rowsort label-2640
SELECT ALL col2 + ( - ( 14 ) ) / 55 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
23
40
58

query I rowsort
SELECT DISTINCT 43 * + col2 AS col0 FROM tab0
----
2021
4257
430

onlyif mysql # DIV for integer division: 
query I rowsort label-2642
SELECT col2 DIV - 32 AS col1 FROM tab1
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-2642
SELECT col2 / - 32 AS col1 FROM tab1
----
-1
-2
-3

query I rowsort
SELECT col2 * - 56 * col1 FROM tab2
----
-172480
-217616
-65688

onlyif mysql # aggregate syntax: 
query I rowsort label-2644
SELECT DISTINCT + COUNT( + + 34 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2644
SELECT DISTINCT + COUNT ( + + 34 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT + col2 / 54 + 48 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IN ( - 41 ) AND 56 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2646
SELECT DISTINCT + - MAX( - - 80 ) * 73 AS col0 FROM tab2 AS cor0
----
-5840

skipif mysql # not compatible
query I rowsort label-2646
SELECT DISTINCT + - MAX ( - - 80 ) * 73 AS col0 FROM tab2 AS cor0
----
-5840

onlyif mysql # aggregate syntax: 
query I rowsort label-2647
SELECT DISTINCT COUNT( col1 ) + + 88 AS col1 FROM tab1 WHERE ( ( - 43 ) IS NOT NULL )
----
91

skipif mysql # not compatible
query I rowsort label-2647
SELECT DISTINCT COUNT ( col1 ) + + 88 AS col1 FROM tab1 WHERE ( ( - 43 ) IS NOT NULL )
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2648
SELECT + - COUNT( * ) AS col2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-2648
SELECT + - COUNT ( * ) AS col2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2649
SELECT ( - COUNT( * ) ) * + MAX( ALL - 71 + col0 * + col0 ) - - 15 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-24615

skipif mysql # not compatible
query I rowsort label-2649
SELECT ( - COUNT ( * ) ) * + MAX ( ALL - 71 + col0 * + col0 ) - - 15 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-24615

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2650
SELECT ALL col0 FROM tab2 AS cor0 WHERE - CAST( - + 46 AS SIGNED ) IS NOT NULL
----
46
64
75

skipif mysql # not compatible
query I rowsort label-2650
SELECT ALL col0 FROM tab2 AS cor0 WHERE - CAST ( - + 46 AS INTEGER ) IS NOT NULL
----
46
64
75

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT col1 IN ( + - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT - 77 AS col2, ( 50 ) FROM tab1 AS cor0
----
-77
50
-77
50
-77
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2653
SELECT DISTINCT + CAST( ( + COUNT( * ) ) AS SIGNED ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2653
SELECT DISTINCT + CAST ( ( + COUNT ( * ) ) AS INTEGER ) FROM tab0 cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2654
SELECT + 6 DIV - ( + col1 ) FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2654
SELECT + 6 / - ( + col1 ) FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN ( NULL ) AND ( - 29 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2656
SELECT DISTINCT COUNT( * ) + + - 91 FROM tab0 AS cor0
----
-88

skipif mysql # not compatible
query I rowsort label-2656
SELECT DISTINCT COUNT ( * ) + + - 91 FROM tab0 AS cor0
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-2657
SELECT ALL - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2657
SELECT ALL - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2658
SELECT SUM( ALL - col0 ) + COUNT( * ) * - COUNT( ALL - col1 + - 68 ) AS col1 FROM tab2 cor0
----
-194

skipif mysql # not compatible
query I rowsort label-2658
SELECT SUM ( ALL - col0 ) + COUNT ( * ) * - COUNT ( ALL - col1 + - 68 ) AS col1 FROM tab2 cor0
----
-194

onlyif mysql # DIV for integer division: 
query I rowsort label-2659
SELECT ( - col2 ) + - 87 DIV + - 45 FROM tab1
----
-58
-67
-95

skipif mysql # not compatible
query I rowsort label-2659
SELECT ( - col2 ) + - 87 / + - 45 FROM tab1
----
-58
-67
-95

query I rowsort
SELECT ALL + col1 * col1 AS col1 FROM tab2 WHERE NOT - col2 NOT BETWEEN + col0 AND - col2
----

query I rowsort
SELECT ALL + col0 + + + col1 - + col2 AS col0 FROM tab2
----
101
74
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2662
SELECT - col0 * + col1 * + col0 + + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2662
SELECT - col0 * + col1 * + col0 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - - 84 FROM tab0 WHERE col1 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2664
SELECT ALL + CAST( - - col0 AS SIGNED ) * col0 + + col2 FROM tab1
----
2697
7284
8349

skipif mysql # not compatible
query I rowsort label-2664
SELECT ALL + CAST ( - - col0 AS INTEGER ) * col0 + + col2 FROM tab1
----
2697
7284
8349

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2665
SELECT col2 * - - ( CAST( NULL AS SIGNED ) ) + col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2665
SELECT col2 * - - ( CAST ( NULL AS INTEGER ) ) + col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2666
SELECT ALL - 17 + COUNT( * ) AS col1 FROM tab1
----
-14

skipif mysql # not compatible
query I rowsort label-2666
SELECT ALL - 17 + COUNT ( * ) AS col1 FROM tab1
----
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-2667
SELECT DISTINCT - 5 DIV col0 - + - col0 + + + 99 - col0 FROM tab2 cor0
----
99

skipif mysql # not compatible
query I rowsort label-2667
SELECT DISTINCT - 5 / col0 - + - col0 + + + 99 - col0 FROM tab2 cor0
----
99

query III rowsort
SELECT * FROM tab2 cor0 WHERE + col2 = ( NULL )
----

query I rowsort
SELECT ALL col2 - + + 92 + 0 AS col2 FROM tab0 cor0
----
-45
-82
7

onlyif mysql # aggregate syntax: 
query I rowsort label-2670
SELECT COUNT( ALL + col1 ) - + COUNT( * ) AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2670
SELECT COUNT ( ALL + col1 ) - + COUNT ( * ) AS col0 FROM tab0
----
0

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 62 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN col0 + + col1 AND + col2 / + + col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( col0 ) NOT BETWEEN col2 AND NULL
----
15
81
47
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2674
SELECT DISTINCT MIN( DISTINCT 3 ) * - 19 * - MIN( + + col0 ) AS col0 FROM tab2 AS cor0
----
2622

skipif mysql # not compatible
query I rowsort label-2674
SELECT DISTINCT MIN ( DISTINCT 3 ) * - 19 * - MIN ( + + col0 ) AS col0 FROM tab2 AS cor0
----
2622

query I rowsort
SELECT ALL - - 62 * - - 67 FROM tab2 AS cor0
----
4154
4154
4154

onlyif mysql # DIV for integer division: 
query I rowsort label-2676
SELECT ALL + 65 DIV - col1 FROM tab1 cor0
----
-1
-13
-4

skipif mysql # not compatible
query I rowsort label-2676
SELECT ALL + 65 / - col1 FROM tab1 cor0
----
-1
-13
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-2677
SELECT - MAX( - col0 ) col2 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2677
SELECT - MAX ( - col0 ) col2 FROM tab2 AS cor0
----
46

query I rowsort
SELECT 54 * - 21 FROM tab0
----
-1134
-1134
-1134

query I rowsort
SELECT DISTINCT + col0 * col1 * - col2 FROM tab2
----
-197120
-291450
-53958

query II rowsort
SELECT col2 AS col1, col2 * col1 AS col1 FROM tab0
----
10
210
47
3807
99
99

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2681
SELECT DISTINCT col2 * - CAST( NULL AS DECIMAL ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2681
SELECT DISTINCT col2 * - CAST ( NULL AS REAL ) AS col1 FROM tab2
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL IN ( - col0 * - col0 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT ( NULL ) <> NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2684
SELECT - COUNT( * ), 8 AS col0 FROM tab0
----
-3
8

skipif mysql # not compatible
query II rowsort label-2684
SELECT - COUNT ( * ), 8 AS col0 FROM tab0
----
-3
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2685
SELECT DISTINCT MIN( + col1 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2685
SELECT DISTINCT MIN ( + col1 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL <= NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2686
SELECT DISTINCT - 50 / - 78 + - COUNT( DISTINCT + col2 ) - + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2686
SELECT DISTINCT - 50 / - 78 + - COUNT ( DISTINCT + col2 ) - + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT col1 AS col1 FROM tab0 AS cor0 WHERE NOT + col0 NOT BETWEEN col2 / + col2 * - col1 / col2 AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2688
SELECT DISTINCT 72 DIV + SUM( DISTINCT + col0 ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2688
SELECT DISTINCT 72 / + SUM ( DISTINCT + col0 ) AS col1 FROM tab0
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL <> - - col2
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col0 - - + col1 + col0 < ( - + 58 / + col2 )
----

query I rowsort
SELECT ALL - - col1 * ( + - col0 ) + + - 4 AS col2 FROM tab0 AS cor0
----
-101
-1219
-1831

query I rowsort
SELECT col1 + + col0 + col1 FROM tab0 AS cor0
----
129
177
99

query I rowsort
SELECT ALL + - col0 + - col1 + 20 + 85 AS col0 FROM tab0 AS cor0
----
-3
7
9

query II rowsort
SELECT - col2 * + - 9 AS col0, - col1 + - col2 FROM tab0 AS cor0
----
423
-128
891
-100
90
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2695
SELECT CAST( - 11 AS SIGNED ) FROM tab0 AS cor0
----
-11
-11
-11

skipif mysql # not compatible
query I rowsort label-2695
SELECT CAST ( - 11 AS INTEGER ) FROM tab0 AS cor0
----
-11
-11
-11

query II rowsort
SELECT col0 * col2, col0 * + - col0 AS col1 FROM tab2 AS cor0
----
1058
-2116
2560
-4096
4350
-5625

query II rowsort
SELECT ALL + col0, 45 + - - ( 97 ) AS col1 FROM tab2 WHERE NOT + - ( - + col1 ) = - col2
----
46
142
64
142
75
142

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2698
SELECT DISTINCT CAST( + col2 AS SIGNED ) DIV - col0 + + col1 + + 24 * + + 52 FROM tab0
----
1248
1269
1326

skipif mysql # not compatible
query I rowsort label-2698
SELECT DISTINCT CAST ( + col2 AS INTEGER ) / - col0 + + col1 + + 24 * + + 52 FROM tab0
----
1248
1269
1326

query I rowsort
SELECT - + 61 + col0 + - - col0 FROM tab1 AS cor0
----
109
121
41

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN ( col2 ) AND ( NULL )
----

query II rowsort
SELECT + ( - col2 ) + - - col1, 22 AS col2 FROM tab2 AS cor0
----
28
22
37
22
9
22

query I rowsort
SELECT + + col1 + + col1 * + + 71 AS col1 FROM tab0 AS cor0
----
1512
5832
72

query I rowsort
SELECT DISTINCT - 87 - - 17 AS col0 FROM tab1 AS cor0
----
-70

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2705
SELECT DISTINCT + 66 * - MIN( DISTINCT + 37 ) * - + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
21978

skipif mysql # not compatible
query I rowsort label-2705
SELECT DISTINCT + 66 * - MIN ( DISTINCT + 37 ) * - + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
21978

query II rowsort
SELECT col0 * + 65 AS col1, - 47 AS col2 FROM tab2
----
2990
-47
4160
-47
4875
-47

query II rowsort
SELECT col0 * + col1 AS col2, + 43 FROM tab2
----
2346
43
4928
43
5025
43

onlyif mysql # aggregate syntax: 
query I rowsort label-2708
SELECT ( + 35 ) * COUNT( * ) FROM tab2 AS cor0
----
105

skipif mysql # not compatible
query I rowsort label-2708
SELECT ( + 35 ) * COUNT ( * ) FROM tab2 AS cor0
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-2709
SELECT + 24 * + + MAX( col0 ) AS col1 FROM tab1 AS cor0
----
2184

skipif mysql # not compatible
query I rowsort label-2709
SELECT + 24 * + + MAX ( col0 ) AS col1 FROM tab1 AS cor0
----
2184

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT ( NULL ) BETWEEN - col1 - col1 AND + ( + 93 )
----

query I rowsort
SELECT ALL + - ( + 76 ) * - + col1 AS col0 FROM tab1 AS cor0
----
1064
3572
380

onlyif mysql # DIV for integer division: 
query I rowsort label-2712
SELECT ALL + col0 DIV + col1 AS col2 FROM tab2 cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2712
SELECT ALL + col0 / + col1 AS col2 FROM tab2 cor0
----
0
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2713
SELECT - 89 DIV - - col1 AS col2 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
-1
-4
-89

skipif mysql # not compatible
query I rowsort label-2713
SELECT - 89 / - - col1 AS col2 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
-1
-4
-89

query I rowsort
SELECT DISTINCT + 50 * + col1 FROM tab1
----
2350
250
700

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2715
SELECT DISTINCT + CAST( + - COUNT( * ) AS SIGNED ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-2715
SELECT DISTINCT + CAST ( + - COUNT ( * ) AS INTEGER ) AS col2 FROM tab0
----
-3

query I rowsort
SELECT - ( + - 12 ) * + col2 FROM tab2
----
276
480
696

onlyif mysql # aggregate syntax: 
query I rowsort label-2717
SELECT DISTINCT 37 * + COUNT( * ) AS col0 FROM tab2 AS cor0
----
111

skipif mysql # not compatible
query I rowsort label-2717
SELECT DISTINCT 37 * + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
111

query I rowsort
SELECT - 49 + - + col2 FROM tab0 AS cor0
----
-148
-59
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-2719
SELECT ALL - COUNT( * ) * + COUNT( * ) + + 62 FROM tab1 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-2719
SELECT ALL - COUNT ( * ) * + COUNT ( * ) + + 62 FROM tab1 AS cor0
----
53

query I rowsort
SELECT ALL + ( + - col1 ) AS col2 FROM tab0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-2721
SELECT DISTINCT MAX( - 97 ) AS col0 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2721
SELECT DISTINCT MAX ( - 97 ) AS col0 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2722
SELECT DISTINCT 76 * CAST( NULL AS SIGNED ) + + + MAX( ALL col0 ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2722
SELECT DISTINCT 76 * CAST ( NULL AS INTEGER ) + + + MAX ( ALL col0 ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT + col0 FROM tab0 WHERE ( col2 ) = NULL
----

query I rowsort
SELECT DISTINCT col1 + + 82 * + col1 AS col1 FROM tab0
----
1743
6723
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + + col2 * - - 39 col2 FROM tab1
----
2296
2605
3730

query I rowsort
SELECT - col2 - + - col0 / - col1 + col0 AS col0 FROM tab0 cor0 WHERE + col0 NOT BETWEEN col0 AND - - col0
----

query I rowsort
SELECT DISTINCT col0 + - col0 + - - 24 FROM tab0 AS cor0
----
24

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + - 79 * - - 68 - + + col1 + + + col1 IS NOT NULL AND col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2729
SELECT - col0 DIV col2 AS col0 FROM tab1 AS cor0 WHERE + 87 NOT IN ( - col0, - col2 + - 57, - + ( + CAST( + col1 AS SIGNED ) ) + + 25 )
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-2729
SELECT - col0 / col2 AS col0 FROM tab1 AS cor0 WHERE + 87 NOT IN ( - col0, - col2 + - 57, - + ( + CAST ( + col1 AS INTEGER ) ) + + 25 )
----
-1
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2730
SELECT - 55 + + COUNT( * ) + MIN( ALL col1 ) * - COUNT( * ) FROM tab0
----
-55

skipif mysql # not compatible
query I rowsort label-2730
SELECT - 55 + + COUNT ( * ) + MIN ( ALL col1 ) * - COUNT ( * ) FROM tab0
----
-55

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2731
SELECT ALL * FROM tab1 WHERE NOT - - col0 * + - CAST( NULL AS DECIMAL ) = col1 * col0
----

skipif mysql # not compatible
query III rowsort label-2731
SELECT ALL * FROM tab1 WHERE NOT - - col0 * + - CAST ( NULL AS REAL ) = col1 * col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2732
SELECT ALL 37 + COUNT( ALL + + 53 ) FROM tab2 cor0
----
40

skipif mysql # not compatible
query I rowsort label-2732
SELECT ALL 37 + COUNT ( ALL + + 53 ) FROM tab2 cor0
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2733
SELECT - + COUNT( ALL - + CAST( NULL AS SIGNED ) ) FROM tab1 WHERE NOT + 18 + + col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2733
SELECT - + COUNT ( ALL - + CAST ( NULL AS INTEGER ) ) FROM tab1 WHERE NOT + 18 + + col0 IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT 56 AS col1 FROM tab0 cor0 CROSS JOIN tab0 cor1
----
56

query I rowsort
SELECT DISTINCT + ( + 53 ) AS col0 FROM tab0
----
53

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2736
SELECT ALL + - col0 * + col0 + + col2 + + 35 DIV CAST( 35 AS SIGNED ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
-177
-7558
-9309

skipif mysql # not compatible
query I rowsort label-2736
SELECT ALL + - col0 * + col0 + + col2 + + 35 / CAST ( 35 AS INTEGER ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
-177
-7558
-9309

query I rowsort
SELECT ALL col0 * + 70 FROM tab0 cor0
----
1050
6090
6790

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2738
SELECT ALL 22 * - COUNT( * ) + MIN( - 71 ) col2 FROM tab0 AS cor0 WHERE NOT + CAST( + - col0 AS SIGNED ) NOT IN ( 69 )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2738
SELECT ALL 22 * - COUNT ( * ) + MIN ( - 71 ) col2 FROM tab0 AS cor0 WHERE NOT + CAST ( + - col0 AS INTEGER ) NOT IN ( 69 )
----
NULL

query I rowsort
SELECT DISTINCT - 43 * 11 + col1 + + + ( + + col2 ) FROM tab2 AS cor0 WHERE NOT - col1 + + 74 IS NULL
----
-348
-356
-399

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT ( NOT - col2 = - 27 - 84 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2741
SELECT ALL COUNT( * ) * - MAX( DISTINCT 92 ) col2 FROM tab0 AS cor0
----
-276

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2741
SELECT ALL COUNT ( * ) * - MAX ( DISTINCT 92 ) col2 FROM tab0 AS cor0
----
-276

query I rowsort
SELECT ( - 70 ) * + - col2 + + 94 * + col0 FROM tab1 cor0
----
11514
12120
13314

onlyif mysql # aggregate syntax: 
query II rowsort label-2743
SELECT DISTINCT - COUNT( * ), - 84 * - 64 + + 75 - + 19 * COUNT( - col2 ) * - + COUNT( * ) AS col0 FROM tab1 WHERE NULL BETWEEN - - 95 AND col0
----
0
5451

skipif mysql # not compatible
query II rowsort label-2743
SELECT DISTINCT - COUNT ( * ), - 84 * - 64 + + 75 - + 19 * COUNT ( - col2 ) * - + COUNT ( * ) AS col0 FROM tab1 WHERE NULL BETWEEN - - 95 AND col0
----
0
5451

query I rowsort
SELECT DISTINCT + 86 AS col0 FROM tab1 WHERE ( - 51 + + col2 ) >= ( NULL )
----

query I rowsort
SELECT ALL col0 * + ( col1 ) + - - 33 + - + col2 AS col1 FROM tab0
----
1201
1850
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2746
SELECT - CAST( - + COUNT( * ) AS SIGNED ), COUNT( + col0 ) AS col1 FROM tab2
----
3
3

skipif mysql # not compatible
query II rowsort label-2746
SELECT - CAST ( - + COUNT ( * ) AS INTEGER ), COUNT ( + col0 ) AS col1 FROM tab2
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2747
SELECT ( - - SUM( ALL 7 ) ) AS col2 FROM tab2
----
21

skipif mysql # not compatible
query I rowsort label-2747
SELECT ( - - SUM ( ALL 7 ) ) AS col2 FROM tab2
----
21

query I rowsort
SELECT DISTINCT + col2 + 22 FROM tab2
----
45
62
80

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL < - 0
----

query I rowsort
SELECT + col2 * - col2 + + 36 AS col1 FROM tab0 AS cor0
----
-2173
-64
-9765

onlyif mysql # aggregate syntax: 
query I rowsort label-2751
SELECT + MIN( DISTINCT + 12 ) + 1 + + - 99 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-86

skipif mysql # not compatible
query I rowsort label-2751
SELECT + MIN ( DISTINCT + 12 ) + 1 + + - 99 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2752
SELECT DISTINCT + CAST( 62 AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
62

skipif mysql # not compatible
query I rowsort label-2752
SELECT DISTINCT + CAST ( 62 AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
62

query I rowsort
SELECT - 89 FROM tab1, tab0 cor0
----
9 values hashing to 924a74d31360fa4301c953b423a4710e

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 col1 FROM tab0 WHERE ( + col0 IS NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2755
SELECT 93 DIV - - COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
10

skipif mysql # not compatible
query I rowsort label-2755
SELECT 93 / - - COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
10

query I rowsort
SELECT DISTINCT + 90 + + 56 AS col0 FROM tab2 AS cor0
----
146

onlyif mysql # aggregate syntax: 
query I rowsort label-2757
SELECT - ( + COUNT( ALL - + 60 ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2757
SELECT - ( + COUNT ( ALL - + 60 ) ) FROM tab2 AS cor0
----
-3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col2 BETWEEN + - 15 + - col2 + - col1 AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE + col1 IN ( + col0 + col1, - col1, + - 57, col2 * + - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2760
SELECT DISTINCT ( + 39 ) * col2 * - + col0 / + 64 - - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2760
SELECT DISTINCT ( + 39 ) * col2 * - + col0 / + 64 - - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - - 32 * col2 AS col1 FROM tab1 AS cor0
----
1888
2176
3072

query I rowsort
SELECT + 53 * - - 78 * - 61 FROM tab2 AS cor0
----
-252174
-252174
-252174

query III rowsort
SELECT * FROM tab2 cor0 WHERE - 83 * + col1 >= col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2764
SELECT + 19 DIV - + col2 - - 42 * + - 39 + - - col0 col2 FROM tab1
----
-1547
-1553
-1587

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2764
SELECT + 19 / - + col2 - - 42 * + - 39 + - - col0 col2 FROM tab1
----
-1547
-1553
-1587

onlyif mysql # aggregate syntax: 
query I rowsort label-2765
SELECT ALL 85 * + COUNT( * ) AS col0 FROM tab2
----
255

skipif mysql # not compatible
query I rowsort label-2765
SELECT ALL 85 * + COUNT ( * ) AS col0 FROM tab2
----
255

query I rowsort
SELECT DISTINCT + 18 * + col0 * + col0 * 88 FROM tab0 AS cor0
----
11989296
14903856
356400

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 31 col2 FROM tab1 AS cor0
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-2768
SELECT DISTINCT - - ( - ( + - MIN( DISTINCT 22 ) ) ) AS col2 FROM tab0 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-2768
SELECT DISTINCT - - ( - ( + - MIN ( DISTINCT 22 ) ) ) AS col2 FROM tab0 AS cor0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-2769
SELECT ALL MAX( col1 ) AS col2 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-2769
SELECT ALL MAX ( col1 ) AS col2 FROM tab0 AS cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2770
SELECT DISTINCT - COUNT( + - col2 ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2770
SELECT DISTINCT - COUNT ( + - col2 ) FROM tab1 cor0
----
-3

query I rowsort
SELECT col2 AS col0 FROM tab1 WHERE NOT + col0 <= 30 * + - ( 69 ) + - 32
----
59
68
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2772
SELECT ( + SUM( DISTINCT + 4 ) ) + + CAST( NULL AS SIGNED ) col2 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2772
SELECT ( + SUM ( DISTINCT + 4 ) ) + + CAST ( NULL AS INTEGER ) col2 FROM tab0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2773
SELECT col0 + - CAST( NULL AS DECIMAL ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2773
SELECT col0 + - CAST ( NULL AS REAL ) FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN - ( col0 ) * - + col0 * 91 * + col2 * - 71 AND ( NULL )
----

query I rowsort
SELECT - 88 FROM tab2, tab1 cor0
----
9 values hashing to 467301f887614eb7beda22c561b0fad2

onlyif mysql # aggregate syntax: 
query I rowsort label-2776
SELECT - COUNT( * ) + + 34 FROM tab1 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-2776
SELECT - COUNT ( * ) + + 34 FROM tab1 AS cor0
----
31

query II rowsort
SELECT ALL + ( + ( col2 ) ) AS col1, - col1 AS col0 FROM tab1 AS cor0
----
59
-5
68
-47
96
-14

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2778
SELECT ALL CAST( ( + col1 ) AS SIGNED ) AS col2, 16 * - + col0 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query II rowsort label-2778
SELECT ALL CAST ( ( + col1 ) AS INTEGER ) AS col2, 16 * - + col0 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT 9 * + 59 FROM tab2
----
531
531
531

onlyif mysql # DIV for integer division: 
query II rowsort label-2780
SELECT ALL + col0 + - col1 DIV col2 - col1 AS col1, 89 FROM tab2
----
-14
89
-7
89
7
89

skipif mysql # not compatible
query II rowsort label-2780
SELECT ALL + col0 + - col1 / col2 - col1 AS col1, 89 FROM tab2
----
-14
89
-7
89
7
89

onlyif mysql # aggregate syntax: 
query I rowsort label-2781
SELECT DISTINCT + COUNT( * ) + - - ( - SUM( ALL - col0 ) ) FROM tab1
----
230

skipif mysql # not compatible
query I rowsort label-2781
SELECT DISTINCT + COUNT ( * ) + - - ( - SUM ( ALL - col0 ) ) FROM tab1
----
230

query I rowsort
SELECT - col2 - - 23 FROM tab2
----
-17
-35
0

query I rowsort
SELECT - - 23 + + col1 AS col0 FROM tab0 AS cor0
----
104
24
44

onlyif mysql # DIV for integer division: 
query I rowsort label-2784
SELECT DISTINCT + 1 DIV - col0 + + - col0 + + col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2784
SELECT DISTINCT + 1 / - col0 + + - col0 + + col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL + 25 - + 92 * + + ( - - col1 ) FROM tab1 AS cor0
----
-1263
-4299
-435

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * ( - 32 ) * + + 91 col1 FROM tab2
----
-148512
-195104
-224224

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT BETWEEN col0 AND - + col1
----

query I rowsort
SELECT ALL + col0 - 5 AS col1 FROM tab2
----
41
59
70

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col1 BETWEEN NULL AND - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 27 FROM tab1 WHERE NOT ( + col0 ) + + col0 NOT IN ( 72 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2791
SELECT MAX( + col1 ) * - CAST( - 42 AS SIGNED ) col2 FROM tab0
----
3402

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2791
SELECT MAX ( + col1 ) * - CAST ( - 42 AS INTEGER ) col2 FROM tab0
----
3402

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( 35, ( + - 11 ) * + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2793
SELECT 54 * + SUM( col1 ) col1 FROM tab1
----
3564

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2793
SELECT 54 * + SUM ( col1 ) col1 FROM tab1
----
3564

query I rowsort
SELECT col1 * + 45 AS col2 FROM tab1
----
2115
225
630

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE ( + col2 ) <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 * col2 IN ( - col0 )
----

query II rowsort
SELECT 96, 88 AS col0 FROM tab0
----
96
88
96
88
96
88

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <> + col1 * + col1 + + 30
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2799
SELECT DISTINCT COUNT( * ), SUM( - ( + col1 ) ) AS col2 FROM tab2
----
3
-195

skipif mysql # not compatible
query II rowsort label-2799
SELECT DISTINCT COUNT ( * ), SUM ( - ( + col1 ) ) AS col2 FROM tab2
----
3
-195

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 54 col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 4ecdb0f1b85f0d4fdc3a826efd9f2342

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 JOIN tab2 cor1 ON NOT NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2802
SELECT ALL MIN( + + col0 ) FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-2802
SELECT ALL MIN ( + + col0 ) FROM tab2
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2803
SELECT DISTINCT + CAST( + col1 AS SIGNED ) FROM tab0 cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-2803
SELECT DISTINCT + CAST ( + col1 AS INTEGER ) FROM tab0 cor0
----
1
21
81

query I rowsort
SELECT + 83 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 18 col1, - 94 - - col1 AS col1 FROM tab2 AS cor0
----
18
-17
18
-27
18
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2806
SELECT - col1 * + CAST( col1 AS SIGNED ) + 47 + + 60 AS col1 FROM tab0 AS cor0
----
-334
-6454
106

skipif mysql # not compatible
query I rowsort label-2806
SELECT - col1 * + CAST ( col1 AS INTEGER ) + 47 + + 60 AS col1 FROM tab0 AS cor0
----
-334
-6454
106

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 41, col2 col1 FROM tab2 cor0
----
41
23
41
40
41
58

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE NOT 11 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2809
SELECT + - COUNT( ALL + 87 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2809
SELECT + - COUNT ( ALL + 87 ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT + 90 * - col1 AS col0 FROM tab1 AS cor0
----
-1260
-4230
-450

onlyif mysql # aggregate syntax: 
query I rowsort label-2811
SELECT ALL + 39 + - COUNT( * ) FROM tab0
----
36

skipif mysql # not compatible
query I rowsort label-2811
SELECT ALL + 39 + - COUNT ( * ) FROM tab0
----
36

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 90 + 18 + + - col2 * + col1 * - - col2 / col0 + - 71 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 WHERE col1 * + + 62 - + ( + - col0 ) BETWEEN + col1 AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2814
SELECT ALL - 12 + 3 - - MAX( - col1 ) + + MIN( - col1 ) DIV + + SUM( + col1 ) FROM tab2
----
-60

skipif mysql # not compatible
query I rowsort label-2814
SELECT ALL - 12 + 3 - - MAX ( - col1 ) + + MIN ( - col1 ) / + + SUM ( + col1 ) FROM tab2
----
-60

query I rowsort
SELECT - col2 * 25 + + col2 FROM tab0 WHERE - col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2816
SELECT ALL + col0 * - CAST( NULL AS SIGNED ) + + + col1 + 27 + 7 * + 4 * 68 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2816
SELECT ALL + col0 * - CAST ( NULL AS INTEGER ) + + + col1 + 27 + 7 * + 4 * 68 FROM tab0 cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT - - ( - col2 ), - col1 * - col1 AS col1 FROM tab0 AS cor0
----
-10
441
-47
6561
-99
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2818
SELECT - ( CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2818
SELECT - ( CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT 74 + + + 48 + - - 65 FROM tab0
----
187

query I rowsort
SELECT ALL + col0 - + + col1 * - col1 - col0 FROM tab0 AS cor0
----
1
441
6561

query I rowsort
SELECT ALL - col1 - + col0 * + + col2 AS col1 FROM tab0 AS cor0
----
-786
-891
-9604

onlyif mysql # aggregate syntax: 
query I rowsort label-2822
SELECT DISTINCT + ( - - COUNT( * ) ) * + COUNT( + col2 ) * - MAX( + col1 ) * COUNT( * ) AS col2 FROM tab1 AS cor0
----
-1269

skipif mysql # not compatible
query I rowsort label-2822
SELECT DISTINCT + ( - - COUNT ( * ) ) * + COUNT ( + col2 ) * - MAX ( + col1 ) * COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-1269

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2823
SELECT ALL - - CAST( NULL AS SIGNED ), MAX( - - col2 ) AS col0 FROM tab1 cor0
----
NULL
96

skipif mysql # not compatible
query II rowsort label-2823
SELECT ALL - - CAST ( NULL AS INTEGER ), MAX ( - - col2 ) AS col0 FROM tab1 cor0
----
NULL
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 86 * + col0 col2 FROM tab1
----
4386
7310
7826

query III rowsort
SELECT * FROM tab0 WHERE NOT + + 65 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 24 FROM tab0 WHERE ( NOT - col2 NOT BETWEEN + col1 AND + - col2 + + col1 )
----

query I rowsort
SELECT DISTINCT ( - col2 ) * - - col2 * + - 47 * col0 * - col2 FROM tab2
----
-192512000
-26305054
-687769800

onlyif mysql # DIV for integer division: 
query I rowsort label-2828
SELECT col1 * 77 DIV + + col0 AS col0 FROM tab0
----
0
18
415

skipif mysql # not compatible
query I rowsort label-2828
SELECT col1 * 77 / + + col0 AS col0 FROM tab0
----
0
18
415

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col2 * + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT col0 * + col2 AS col0, + col2 FROM tab1
----
4896
96
5015
59
6188
68

query I rowsort
SELECT + 77 FROM tab1 WHERE NOT - - col2 * col0 IS NULL
----
77
77
77

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col2 + + col2 < - - 14 * - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + 29 FROM tab0 cor0 WHERE NOT + 45 * + col0 BETWEEN col0 AND - col2
----
29
29
29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 * - 5 col1, col1 AS col2 FROM tab1 AS cor0
----
295
5
340
47
480
14

onlyif mysql # aggregate syntax: 
query I rowsort label-2835
SELECT ALL - COUNT( * ) * 13 * - + COUNT( * ) FROM tab1 AS cor0
----
117

skipif mysql # not compatible
query I rowsort label-2835
SELECT ALL - COUNT ( * ) * 13 * - + COUNT ( * ) FROM tab1 AS cor0
----
117

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2836
SELECT DISTINCT + + COUNT( * ) * - 38 + + 26 * COUNT( * ) DIV COUNT( * ) AS col0 FROM tab0 AS cor0
----
-88

skipif mysql # not compatible
query I rowsort label-2836
SELECT DISTINCT + + COUNT ( * ) * - 38 + + 26 * COUNT ( * ) / COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-2837
SELECT MAX( + 62 ) FROM tab1 AS cor0 WHERE NOT ( - 13 * - col0 ) > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2837
SELECT MAX ( + 62 ) FROM tab1 AS cor0 WHERE NOT ( - 13 * - col0 ) > NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2838
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0, + 14 DIV col1 FROM tab0
----
NULL
0
NULL
14

skipif mysql # not compatible
query II rowsort label-2838
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0, + 14 / col1 FROM tab0
----
NULL
0
NULL
14

query I rowsort
SELECT - - col2 FROM tab1 WHERE NOT + 99 - + + 7 IS NULL
----
59
68
96

query I rowsort
SELECT + col0 * - 1 FROM tab1
----
-51
-85
-91

query I rowsort
SELECT ALL col2 + - - 87 AS col1 FROM tab2
----
110
127
145

query II rowsort
SELECT + 59, + col2 + + - col2 + - col0 AS col2 FROM tab0 AS cor0
----
59
-15
59
-87
59
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2843
SELECT - - 88 * - + COUNT( * ) FROM tab2 AS cor0
----
-264

skipif mysql # not compatible
query I rowsort label-2843
SELECT - - 88 * - + COUNT ( * ) FROM tab2 AS cor0
----
-264

query I rowsort
SELECT - col0 * + 16 FROM tab0 AS cor0
----
-1392
-1552
-240

query I rowsort
SELECT DISTINCT ( + 24 ) AS col1 FROM tab2 AS cor0
----
24

query I rowsort
SELECT col1 + - + 68 FROM tab0 AS cor0
----
-47
-67
13

onlyif mysql # aggregate syntax: 
query II rowsort label-2847
SELECT DISTINCT + MIN( ALL - - col1 ) AS col0, - MAX( col1 ) col1 FROM tab0
----
1
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2847
SELECT DISTINCT + MIN ( ALL - - col1 ) AS col0, - MAX ( col1 ) col1 FROM tab0
----
1
-81

query II rowsort
SELECT ALL + col0 AS col1, col0 + - + col2 AS col0 FROM tab2
----
46
23
64
24
75
17

query I rowsort
SELECT ALL - 40 + col0 * - col2 FROM tab1
----
-4936
-5055
-6228

query I rowsort
SELECT 84 * - 12 + + col2 FROM tab0
----
-909
-961
-998

onlyif mysql # aggregate syntax: 
query I rowsort label-2851
SELECT + COUNT( * ) * + COUNT( * ) + COUNT( * ) AS col0 FROM tab0
----
12

skipif mysql # not compatible
query I rowsort label-2851
SELECT + COUNT ( * ) * + COUNT ( * ) + COUNT ( * ) AS col0 FROM tab0
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-2852
SELECT 51 DIV col1 + 42 * - col1 AS col1 FROM tab0
----
-3402
-880
9

skipif mysql # not compatible
query I rowsort label-2852
SELECT 51 / col1 + 42 * - col1 AS col1 FROM tab0
----
-3402
-880
9

query I rowsort
SELECT DISTINCT - col1 + + - 51 FROM tab0
----
-132
-52
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2854
SELECT ALL 64 + + 92 + + - CAST( NULL AS SIGNED ) + + + 99 * - COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2854
SELECT ALL 64 + + 92 + + - CAST ( NULL AS INTEGER ) + + + 99 * - COUNT ( * ) FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT col1 * + 53 * + 71 AS col2 FROM tab1
----
176861
18815
52682

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 51 + + col0 * - col2 + + col0 col1 FROM tab1 AS cor0
----
-4794
-4879
-6046

onlyif mysql # aggregate syntax: 
query I rowsort label-2857
SELECT - + MIN( DISTINCT + 95 ) * 74 AS col2 FROM tab1 AS cor0
----
-7030

skipif mysql # not compatible
query I rowsort label-2857
SELECT - + MIN ( DISTINCT + 95 ) * 74 AS col2 FROM tab1 AS cor0
----
-7030

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2858
SELECT - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE - col1 NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-2858
SELECT - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE - col1 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col2 * - - 42 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2860
SELECT DISTINCT MIN( ALL - col0 ) + SUM( 50 ) col2 FROM tab1
----
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2860
SELECT DISTINCT MIN ( ALL - col0 ) + SUM ( 50 ) col2 FROM tab1
----
59

query I rowsort
SELECT + 31 * - + 92 - col2 + - col2 AS col1 FROM tab0 AS cor0
----
-2872
-2946
-3050

query I rowsort
SELECT ALL ( + col1 ) * 13 AS col2 FROM tab1 AS cor0
----
182
611
65

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( + 49 * + col2 * - col2, - 0 )
----

query I rowsort
SELECT col1 AS col2 FROM tab0 cor0 WHERE NOT - col2 * col0 * + col1 NOT BETWEEN - col0 AND col2
----

query I rowsort
SELECT col1 * - col2 * - + 31 AS col1 FROM tab0
----
118017
3069
6510

query I rowsort
SELECT ALL 16 * + - col1 FROM tab2
----
-1072
-1232
-816

query I rowsort
SELECT col2 * + + 99 * + 90 * + 15 FROM tab0
----
13231350
1336500
6281550

query I rowsort
SELECT ALL 73 * + ( col1 ) + - 90 FROM tab1 WHERE NOT + - 69 IS NULL
----
275
3341
932

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( - + 38 / + col2 NOT IN ( + col2, col0, - + col1 ) )
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL > + 10 OR NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - ( - - 88 ) AS col2 FROM tab1 WHERE + col0 - 31 IS NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( - 87 ) NOT BETWEEN - 75 * + col1 * + col1 AND 32 * col0
----
97
1
99

query II rowsort
SELECT + 93 AS col0, col0 AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
93
15
93
87
93
97

query I rowsort
SELECT col0 * + + col0 AS col0 FROM tab0 AS cor0
----
225
7569
9409

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2875
SELECT ALL - - 74 AS col2 FROM tab0 AS cor0 WHERE col2 BETWEEN CAST( NULL AS DECIMAL ) * + - 66 AND NULL
----

skipif mysql # not compatible
query I rowsort label-2875
SELECT ALL - - 74 AS col2 FROM tab0 AS cor0 WHERE col2 BETWEEN CAST ( NULL AS REAL ) * + - 66 AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 NOT BETWEEN col2 * col0 * - 39 AND + col0
----
75
67
58

onlyif mysql # DIV for integer division: 
query I rowsort label-2877
SELECT DISTINCT + + 16 DIV + ( col1 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2877
SELECT DISTINCT + + 16 / + ( col1 ) FROM tab2 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-2878
SELECT 99 DIV + - col0 AS col1, - 67 + - col0 FROM tab0 AS cor0
----
-1
-154
-1
-164
-6
-82

skipif mysql # not compatible
query II rowsort label-2878
SELECT 99 / + - col0 AS col1, - 67 + - col0 FROM tab0 AS cor0
----
-1
-154
-1
-164
-6
-82

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col0 - - 15 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2880
SELECT COUNT( ALL - col1 ) / + AVG ( + col0 ) FROM tab0 WHERE ( NOT - col2 IS NOT NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2880
SELECT COUNT ( ALL - col1 ) / + AVG ( + col0 ) FROM tab0 WHERE ( NOT - col2 IS NOT NULL )
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL >= - + col0 + col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2882
SELECT ALL + ( SUM( ALL + col0 ) ) AS col0, 4 * 37 FROM tab2
----
185
148

skipif mysql # not compatible
query II rowsort label-2882
SELECT ALL + ( SUM ( ALL + col0 ) ) AS col0, 4 * 37 FROM tab2
----
185
148

onlyif mysql # aggregate syntax: 
query I rowsort label-2883
SELECT - COUNT( * ) + COUNT( - 37 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2883
SELECT - COUNT ( * ) + COUNT ( - 37 ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT + - col0 + - 60 FROM tab2 AS cor0
----
-106
-124
-135

onlyif mysql # aggregate syntax: 
query I rowsort label-2885
SELECT ALL MIN( - - 99 ) + + + COUNT( * ) FROM tab2 AS cor0
----
102

skipif mysql # not compatible
query I rowsort label-2885
SELECT ALL MIN ( - - 99 ) + + + COUNT ( * ) FROM tab2 AS cor0
----
102

query II rowsort
SELECT ALL + col2 + + ( 47 ), 3 AS col0 FROM tab2 AS cor0
----
105
3
70
3
87
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2887
SELECT - col0 * 2 + - CAST( NULL AS SIGNED ) + + + col1 / col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2887
SELECT - col0 * 2 + - CAST ( NULL AS INTEGER ) + + + col1 / col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 45 AS col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 71160abf09589695379a70558726f0ba

onlyif mysql # aggregate syntax: 
query I rowsort label-2889
SELECT ALL - - COUNT( * ) * - - 71 FROM tab0 WHERE NULL IS NULL
----
213

skipif mysql # not compatible
query I rowsort label-2889
SELECT ALL - - COUNT ( * ) * - - 71 FROM tab0 WHERE NULL IS NULL
----
213

onlyif mysql # aggregate syntax: 
query II rowsort label-2890
SELECT 96 * COUNT( * ) AS col0, + ( - - 6 ) FROM tab1
----
288
6

skipif mysql # not compatible
query II rowsort label-2890
SELECT 96 * COUNT ( * ) AS col0, + ( - - 6 ) FROM tab1
----
288
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2891
SELECT ALL 56 * COUNT( * ) DIV 45 AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2891
SELECT ALL 56 * COUNT ( * ) / 45 AS col1 FROM tab0 AS cor0
----
3

query II rowsort
SELECT ALL + col2 AS col0, col0 AS col1 FROM tab0 AS cor0
----
10
87
47
15
99
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2893
SELECT COUNT( * ) AS col1, COUNT( * ) + + ( - CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-2893
SELECT COUNT ( * ) AS col1, COUNT ( * ) + + ( - CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
3
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE + col1 + + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - ( + + col1 ) AS col2 FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-2896
SELECT DISTINCT COUNT( DISTINCT - - 37 ) AS col2 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2896
SELECT DISTINCT COUNT ( DISTINCT - - 37 ) AS col2 FROM tab1 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2897
SELECT DISTINCT COUNT( * ) col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2897
SELECT DISTINCT COUNT ( * ) col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
3

query II rowsort
SELECT - + 24 AS col0, + 2 FROM tab0 AS cor0
----
-24
2
-24
2
-24
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2899
SELECT ALL - MIN( + col1 ) AS col2 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-2899
SELECT ALL - MIN ( + col1 ) AS col2 FROM tab2
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-2900
SELECT MAX( - - 84 ) AS col1 FROM tab0
----
84

skipif mysql # not compatible
query I rowsort label-2900
SELECT MAX ( - - 84 ) AS col1 FROM tab0
----
84

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col1 = col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT ( NULL ) <= - 65
----

query I rowsort
SELECT ALL + 58 * + + 58 + + col0 FROM tab1 AS cor0
----
3415
3449
3455

query II rowsort
SELECT ALL - ( - - col2 ) AS col0, col2 AS col0 FROM tab0 AS cor0
----
-10
10
-47
47
-99
99

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 66 = 53
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2906
SELECT ALL + 73 + COUNT( * ) AS col1 FROM tab2
----
76

skipif mysql # not compatible
query I rowsort label-2906
SELECT ALL + 73 + COUNT ( * ) AS col1 FROM tab2
----
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + 89 + + 84 col1 FROM tab1 AS cor0
----
5335
6136
8628

query I rowsort
SELECT DISTINCT + - 22 + - - col0 + - ( - 64 ) FROM tab2 AS cor0
----
106
117
88

onlyif mysql # aggregate syntax: 
query I rowsort label-2909
SELECT DISTINCT + COUNT( * ) + + MIN( ALL + - col1 ) FROM tab2 cor0
----
-74

skipif mysql # not compatible
query I rowsort label-2909
SELECT DISTINCT + COUNT ( * ) + + MIN ( ALL + - col1 ) FROM tab2 cor0
----
-74

query I rowsort
SELECT + col0 + + + 46 + + 9 + col2 AS col2 FROM tab2 AS cor0
----
124
159
188

onlyif mysql # aggregate syntax: 
query I rowsort label-2911
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-2911
SELECT ALL + ( - - COUNT ( * ) ) col1 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2912
SELECT ALL + MAX( ALL - col2 ) AS col2 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-2912
SELECT ALL + MAX ( ALL - col2 ) AS col2 FROM tab0 AS cor0
----
-10

query I rowsort
SELECT - col2 * - col1 * col0 AS col2 FROM tab0
----
18270
57105
9603

query II rowsort
SELECT ALL - col1 + + 38, + col0 FROM tab2
----
-13
46
-29
75
-39
64

query I rowsort
SELECT - - col1 * + + 51 * + col1 + col2 FROM tab1 AS cor0
----
10092
112727
1334

query I rowsort
SELECT ALL + + col2 - + 65 * col1 AS col1 FROM tab1 cor0
----
-266
-2987
-814

query I rowsort
SELECT ALL 90 * col2 FROM tab2
----
2070
3600
5220

onlyif mysql # aggregate syntax: 
query II rowsort label-2918
SELECT ALL COUNT( * ) AS col2, + COUNT( * ) AS col0 FROM tab0
----
3
3

skipif mysql # not compatible
query II rowsort label-2918
SELECT ALL COUNT ( * ) AS col2, + COUNT ( * ) AS col0 FROM tab0
----
3
3

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab2 WHERE NULL IN ( + + col0 * - 2, col1 * + col2, col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2920
SELECT COUNT( * ) col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2920
SELECT COUNT ( * ) col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2921
SELECT DISTINCT + + ( + + COUNT( * ) ) AS col2 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2921
SELECT DISTINCT + + ( + + COUNT ( * ) ) AS col2 FROM tab1 cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - col2 col0, - col2 * + ( col1 ) AS col0 FROM tab0 AS cor0
----
-10
-210
-47
-3807
-99
-99

query II rowsort
SELECT DISTINCT col0, - ( - - 12 ) + + - col1 AS col0 FROM tab2 AS cor0
----
46
-63
64
-89
75
-79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2924
SELECT 31 DIV + 17 + + SUM( DISTINCT - - 21 ) FROM tab2 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-2924
SELECT 31 / + 17 + + SUM ( DISTINCT - - 21 ) FROM tab2 AS cor0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-2925
SELECT DISTINCT - + MAX( - col1 ) FROM tab1 cor0
----
5

skipif mysql # not compatible
query I rowsort label-2925
SELECT DISTINCT - + MAX ( - col1 ) FROM tab1 cor0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2926
SELECT + MAX( - + col1 ) AS col1 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2926
SELECT + MAX ( - + col1 ) AS col1 FROM tab0 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2927
SELECT ALL + 50 * + COUNT( * ) AS col2 FROM tab1
----
150

skipif mysql # not compatible
query I rowsort label-2927
SELECT ALL + 50 * + COUNT ( * ) AS col2 FROM tab1
----
150

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2928
SELECT DISTINCT 19 + - + CAST( + + 81 AS DECIMAL ) + + - 16 FROM tab0, tab2 AS cor0 WHERE NOT - + 9 < + 44
----

skipif mysql # not compatible
query I rowsort label-2928
SELECT DISTINCT 19 + - + CAST ( + + 81 AS REAL ) + + - 16 FROM tab0, tab2 AS cor0 WHERE NOT - + 9 < + 44
----

query I rowsort
SELECT - 0 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

onlyif mysql # aggregate syntax: 
query I rowsort label-2930
SELECT + 80 * + COUNT( * ) FROM tab0 AS cor0
----
240

skipif mysql # not compatible
query I rowsort label-2930
SELECT + 80 * + COUNT ( * ) FROM tab0 AS cor0
----
240

onlyif mysql # aggregate syntax: 
query I rowsort label-2931
SELECT DISTINCT COUNT( DISTINCT - 26 ) * + 84 FROM tab2 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-2931
SELECT DISTINCT COUNT ( DISTINCT - 26 ) * + 84 FROM tab2 AS cor0
----
84

query I rowsort
SELECT DISTINCT + + col2 FROM tab1 AS cor0 WHERE NOT + col1 <= - col0 * 94 + - ( + - col2 )
----
59
68
96

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 98 IS NOT NULL
----

query II rowsort
SELECT DISTINCT - col1, + 63 AS col1 FROM tab0 AS cor0
----
-1
63
-21
63
-81
63

query I rowsort
SELECT DISTINCT - 89 FROM ( tab0 AS cor0 CROSS JOIN tab2 cor1 )
----
-89

onlyif mysql # aggregate syntax: 
query II rowsort label-2936
SELECT ALL + + COUNT( * ) + + + COUNT( * ), - SUM( - 29 ) AS col2 FROM tab1 AS cor0
----
6
87

skipif mysql # not compatible
query II rowsort label-2936
SELECT ALL + + COUNT ( * ) + + + COUNT ( * ), - SUM ( - 29 ) AS col2 FROM tab1 AS cor0
----
6
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2937
SELECT - - MAX( DISTINCT + col1 ) FROM tab2 cor0 WHERE - col1 * - + CAST( NULL AS SIGNED ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2937
SELECT - - MAX ( DISTINCT + col1 ) FROM tab2 cor0 WHERE - col1 * - + CAST ( NULL AS INTEGER ) IS NOT NULL
----
NULL

query II rowsort
SELECT ALL + col0 - 66, + col1 FROM tab0 AS cor0
----
-51
81
21
21
31
1

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT col0 * - col2 > NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2940
SELECT - COUNT( ALL - 86 ), 39 AS col0 FROM tab1 AS cor0
----
-3
39

skipif mysql # not compatible
query II rowsort label-2940
SELECT - COUNT ( ALL - 86 ), 39 AS col0 FROM tab1 AS cor0
----
-3
39

onlyif mysql # aggregate syntax: 
query I rowsort label-2941
SELECT ALL - + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE 87 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2941
SELECT ALL - + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE 87 IS NOT NULL
----
-3

query I rowsort
SELECT + col2 * + ( ( + + ( - - col2 ) ) ) FROM tab0 AS cor0
----
100
2209
9801

onlyif mysql # DIV for integer division: 
query II rowsort label-2943
SELECT ALL + col1 DIV + - 42 + + col1 AS col2, + col1 AS col0 FROM tab2
----
50
51
66
67
76
77

skipif mysql # not compatible
query II rowsort label-2943
SELECT ALL + col1 / + - 42 + + col1 AS col2, + col1 AS col0 FROM tab2
----
50
51
66
67
76
77

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - + 80 <> + 67
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2945
SELECT - ( - - CAST( + col0 AS SIGNED ) ) - - - col0 FROM tab2
----
-128
-150
-92

skipif mysql # not compatible
query I rowsort label-2945
SELECT - ( - - CAST ( + col0 AS INTEGER ) ) - - - col0 FROM tab2
----
-128
-150
-92

query I rowsort
SELECT ALL - 11 * - 46 * + 34 * + 86 + + 60 AS col0 FROM tab1
----
1479604
1479604
1479604

query I rowsort
SELECT - 53 + 26 * col1 FROM tab0
----
-27
2053
493

query II rowsort
SELECT - 31 AS col0, + col2 * 48 FROM tab0 cor0
----
-31
2256
-31
4752
-31
480

query I rowsort
SELECT DISTINCT - + 50 FROM tab2 AS cor0 WHERE + col1 + 18 + + col2 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL = - ( 79 )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2951
SELECT - col0 DIV + - 82 DIV 19 * col2 * + CAST( - 53 AS SIGNED ) col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2951
SELECT - col0 / + - 82 / 19 * col2 * + CAST ( - 53 AS INTEGER ) col0 FROM tab0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2952
SELECT - + col0 DIV + col2 + - - col1 FROM tab1 AS cor0
----
14
4
46

skipif mysql # not compatible
query I rowsort label-2952
SELECT - + col0 / + col2 + - - col1 FROM tab1 AS cor0
----
14
4
46

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 11 * - 49 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2954
SELECT DISTINCT COUNT( * ) FROM tab0 AS cor0 WHERE NULL >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-2954
SELECT DISTINCT COUNT ( * ) FROM tab0 AS cor0 WHERE NULL >= NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2955
SELECT DISTINCT ( - 14 ) * CAST( - 62 AS SIGNED ) * + + col1 FROM tab2
----
44268
58156
66836

skipif mysql # not compatible
query I rowsort label-2955
SELECT DISTINCT ( - 14 ) * CAST ( - 62 AS INTEGER ) * + + col1 FROM tab2
----
44268
58156
66836

query I rowsort
SELECT + col0 + col0 + + col1 FROM tab2
----
143
205
217

query I rowsort
SELECT ALL + col0 + + - col0 FROM tab2
----
0
0
0

query I rowsort
SELECT col2 * col0 - - + col1 * - 18 + + - ( col1 ) + + col0 AS col2 FROM tab2 AS cor0
----
1161
135
3152

query I rowsort
SELECT - col1 * - 19 * + - col1 AS col0 FROM tab2 cor0
----
-112651
-49419
-85291

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL NOT BETWEEN - + ( - - 29 ) AND + 88 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2961
SELECT DISTINCT + ( + 66 ) * COUNT( * ) FROM tab2
----
198

skipif mysql # not compatible
query I rowsort label-2961
SELECT DISTINCT + ( + 66 ) * COUNT ( * ) FROM tab2
----
198

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2962
SELECT ALL * FROM tab1 WHERE CAST( NULL AS SIGNED ) * 19 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2962
SELECT ALL * FROM tab1 WHERE CAST ( NULL AS INTEGER ) * 19 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col2 * + col1 - col0 * - col0 * - + 31 * 78 AS col1 FROM tab0
----
-18302052
-22751061
-547857

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2964
SELECT ALL - 79 - - - MIN( + ( - - col2 ) ) * CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2964
SELECT ALL - 79 - - - MIN ( + ( - - col2 ) ) * CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + 30 + - 11 AS col1 FROM tab2 AS cor0
----
19
19
19

query I rowsort
SELECT DISTINCT - col2 - - + 27 AS col2 FROM tab0 AS cor0
----
-20
-72
17

onlyif mysql # aggregate syntax: 
query I rowsort label-2967
SELECT DISTINCT 12 - + - ( + COUNT( * ) ) AS col1 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-2967
SELECT DISTINCT 12 - + - ( + COUNT ( * ) ) AS col1 FROM tab0 AS cor0
----
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( col2, col1 - col1 - - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2969
SELECT col2 * CAST( NULL AS SIGNED ) + + col1 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2969
SELECT col2 * CAST ( NULL AS INTEGER ) + + col1 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 * - col1 >= + 69
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2971
SELECT MIN( DISTINCT + 47 ) FROM tab2
----
47

skipif mysql # not compatible
query I rowsort label-2971
SELECT MIN ( DISTINCT + 47 ) FROM tab2
----
47

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT IN ( + col2 * + col2, col2, col1 + - col2 )
----

query I rowsort
SELECT ALL col2 * - 45 AS col0 FROM tab1
----
-2655
-3060
-4320

onlyif mysql # aggregate syntax: 
query I rowsort label-2974
SELECT ALL - MAX( col1 ) + - - COUNT( * ) AS col2 FROM tab0
----
-78

skipif mysql # not compatible
query I rowsort label-2974
SELECT ALL - MAX ( col1 ) + - - COUNT ( * ) AS col2 FROM tab0
----
-78

query I rowsort
SELECT DISTINCT ( - 52 ) * + col1 FROM tab0
----
-1092
-4212
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-2976
SELECT DISTINCT + COUNT( DISTINCT + 9 ) * COUNT( * ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2976
SELECT DISTINCT + COUNT ( DISTINCT + 9 ) * COUNT ( * ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2977
SELECT SUM( DISTINCT - - col2 ) * - + 49 FROM tab0
----
-7644

skipif mysql # not compatible
query I rowsort label-2977
SELECT SUM ( DISTINCT - - col2 ) * - + 49 FROM tab0
----
-7644

query I rowsort
SELECT 16 FROM tab2 WHERE NOT 94 + + col0 < - - col1 * - 20
----
16
16
16

query I rowsort
SELECT DISTINCT 6 FROM tab0 AS cor0 WHERE 64 IS NULL
----

query I rowsort
SELECT + col0 + - + col0 AS col0 FROM tab0 AS cor0 WHERE NOT NULL > ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2981
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - - 14 + + col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2981
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - - 14 + + col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2982
SELECT + SUM( ALL - 48 ) AS col2 FROM tab2 AS cor0
----
-144

skipif mysql # not compatible
query I rowsort label-2982
SELECT + SUM ( ALL - 48 ) AS col2 FROM tab2 AS cor0
----
-144

query I rowsort
SELECT + col2 FROM tab0 WHERE NOT NULL IN ( + col2, + 51, + - 41 + + + col2, + 0, - col1, + col2 + - - col2, + col0, col1 )
----

query I rowsort
SELECT ALL 78 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

query I rowsort
SELECT + - col0 AS col1 FROM tab2 cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2986
SELECT - - CAST( NULL AS SIGNED ) / - col0 * 80 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2986
SELECT - - CAST ( NULL AS INTEGER ) / - col0 * 80 FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT 12 AS col0, - col2 AS col1 FROM tab2 AS cor0
----
12
-23
12
-40
12
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2988
SELECT ALL + COUNT( * ) - - - COUNT( * ) col1 FROM tab2 AS cor0 WHERE NOT + 67 + - col2 > 20 + - CAST( NULL AS SIGNED ) / + + col2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2988
SELECT ALL + COUNT ( * ) - - - COUNT ( * ) col1 FROM tab2 AS cor0 WHERE NOT + 67 + - col2 > 20 + - CAST ( NULL AS INTEGER ) / + + col2
----
0

query I rowsort
SELECT ALL - - col2 * - + col0 * + col2 FROM tab1 cor0
----
-295885
-420784
-470016

query I rowsort
SELECT DISTINCT + + col2 * + + 61 FROM tab2 AS cor0
----
1403
2440
3538

onlyif mysql # DIV for integer division: 
query I rowsort label-2991
SELECT - + 22 DIV + + col0 + - 38 * - col0 * + col2 FROM tab2 AS cor0
----
165300
40204
97280

skipif mysql # not compatible
query I rowsort label-2991
SELECT - + 22 / + + col0 + - 38 * - col0 * + col2 FROM tab2 AS cor0
----
165300
40204
97280

onlyif mysql # DIV for integer division: 
query I rowsort label-2992
SELECT ALL - col0 DIV col2 col2 FROM tab1 AS cor0
----
-1
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2992
SELECT ALL - col0 / col2 col2 FROM tab1 AS cor0
----
-1
-1
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2993
SELECT + + 53 DIV ( 48 ) * + 77 FROM tab0 AS cor0
----
77
77
77

skipif mysql # not compatible
query I rowsort label-2993
SELECT + + 53 / ( 48 ) * + 77 FROM tab0 AS cor0
----
77
77
77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2994
SELECT * FROM tab1 WHERE NOT ( - CAST( NULL AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-2994
SELECT * FROM tab1 WHERE NOT ( - CAST ( NULL AS INTEGER ) ) IS NULL
----

query I rowsort
SELECT - 0 AS col1 FROM tab0 WHERE + 85 - + col0 IS NOT NULL
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + + col2 - + + col0 col0 FROM tab1
----
-51
-85
-91

query I rowsort
SELECT ALL - 40 * - 91 AS col1 FROM tab2
----
3640
3640
3640

query II rowsort
SELECT + 10 * col0, - 0 + col0 FROM tab0 AS cor0 WHERE NULL > col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 90 + - + col0 col1 FROM tab2 AS cor0
----
-136
-154
-165

onlyif mysql # aggregate syntax: 
query I rowsort label-3000
SELECT - COUNT( * ) + 80 - - 34 - + + 36 AS col1 FROM tab1 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-3000
SELECT - COUNT ( * ) + 80 - - 34 - + + 36 AS col1 FROM tab1 AS cor0
----
75

query I rowsort
SELECT - ( - col2 ) + + col0 + - + col2 FROM tab2 AS cor0
----
46
64
75

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <> - col1 / 38
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3003
SELECT ALL - - MIN( + - col0 ) AS col1 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-3003
SELECT ALL - - MIN ( + - col0 ) AS col1 FROM tab0 AS cor0
----
-97

query I rowsort
SELECT - col1 + + col1 * 84 * - 97 FROM tab2 AS cor0
----
-415599
-545983
-627473

onlyif mysql # aggregate syntax: 
query I rowsort label-3005
SELECT ALL - COUNT( ALL - 8 ) FROM tab0, tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3005
SELECT ALL - COUNT ( ALL - 8 ) FROM tab0, tab0 AS cor0
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col2 * - - ( - col1 ), + col1 col2 FROM tab1 cor0
----
1344
14
295
5
3196
47

query I rowsort
SELECT DISTINCT + 22 + + 35 FROM tab2 AS cor0
----
57

query I rowsort
SELECT + ( col2 ) - - col0 FROM tab1 AS cor0
----
144
147
159

query I rowsort
SELECT + col0 - 25 * col2 AS col0 FROM tab2 AS cor0
----
-1375
-529
-936

onlyif mysql # aggregate syntax: 
query I rowsort label-3010
SELECT ALL - COUNT( * ) - - - COUNT( - col2 ) + - COUNT( * ) + + 17 * - 89 * + + 44 FROM tab1 AS cor0
----
-66581

skipif mysql # not compatible
query I rowsort label-3010
SELECT ALL - COUNT ( * ) - - - COUNT ( - col2 ) + - COUNT ( * ) + + 17 * - 89 * + + 44 FROM tab1 AS cor0
----
-66581

onlyif mysql # aggregate syntax: 
query I rowsort label-3011
SELECT ALL + MIN( + + ( - col0 ) ) FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-3011
SELECT ALL + MIN ( + + ( - col0 ) ) FROM tab0 AS cor0
----
-97

query I rowsort
SELECT - col1 - 40 FROM tab1 cor0
----
-45
-54
-87

query I rowsort
SELECT - - 80 * - col0 - + col2 AS col0 FROM tab1 AS cor0
----
-4176
-6859
-7348

onlyif mysql # aggregate syntax: 
query I rowsort label-3014
SELECT - 75 * - - COUNT( * ) FROM tab0
----
-225

skipif mysql # not compatible
query I rowsort label-3014
SELECT - 75 * - - COUNT ( * ) FROM tab0
----
-225

onlyif mysql # aggregate syntax: 
query I rowsort label-3015
SELECT + 42 * + MAX( DISTINCT + col1 ) FROM tab1
----
1974

skipif mysql # not compatible
query I rowsort label-3015
SELECT + 42 * + MAX ( DISTINCT + col1 ) FROM tab1
----
1974

query II rowsort
SELECT - col2, 65 + ( col0 ) AS col1 FROM tab2 cor0
----
-23
111
-40
129
-58
140

onlyif mysql # aggregate syntax: 
query I rowsort label-3017
SELECT - MAX( + col0 ) FROM tab0 cor0
----
-97

skipif mysql # not compatible
query I rowsort label-3017
SELECT - MAX ( + col0 ) FROM tab0 cor0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3018
SELECT ALL + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-3018
SELECT ALL + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3019
SELECT DISTINCT - MIN( + 52 ) AS col2 FROM tab1
----
-52

skipif mysql # not compatible
query I rowsort label-3019
SELECT DISTINCT - MIN ( + 52 ) AS col2 FROM tab1
----
-52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3020
SELECT ALL - ( + 13 ) DIV - COUNT( DISTINCT - col2 ) AS col2 FROM tab2 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-3020
SELECT ALL - ( + 13 ) / - COUNT ( DISTINCT - col2 ) AS col2 FROM tab2 AS cor0
----
4

query I rowsort
SELECT + col0 * + + col0 + - col1 - - ( - 9 ) * col0 AS col2 FROM tab0 AS cor0 WHERE NOT + col2 <= - + col2 * - col2 * + + 63 + - col2 + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3022
SELECT - COUNT( - + col1 ) * 84 FROM tab2 AS cor0
----
-252

skipif mysql # not compatible
query I rowsort label-3022
SELECT - COUNT ( - + col1 ) * 84 FROM tab2 AS cor0
----
-252

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 * - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + - col0 * + + 21 AS col0 FROM tab0 AS cor0
----
-1827
-2037
-315

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3025
SELECT DISTINCT + 94 * - CAST( - - 97 AS SIGNED ) + col0 AS col1 FROM tab1 AS cor0
----
-9027
-9033
-9067

skipif mysql # not compatible
query I rowsort label-3025
SELECT DISTINCT + 94 * - CAST ( - - 97 AS INTEGER ) + col0 AS col1 FROM tab1 AS cor0
----
-9027
-9033
-9067

query I rowsort
SELECT col2 * + 30 FROM tab2 AS cor0
----
1200
1740
690

query I rowsort
SELECT col1 * - col0 + + 98 AS col1 FROM tab1
----
-327
-4179
-616

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3028
SELECT DISTINCT col0 * + col2 + + + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3028
SELECT DISTINCT col0 * + col2 + + + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL <> + col0 / col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3030
SELECT ALL - COUNT( * ) + - 38 * - - COUNT( * ) AS col2 FROM tab2
----
-117

skipif mysql # not compatible
query I rowsort label-3030
SELECT ALL - COUNT ( * ) + - 38 * - - COUNT ( * ) AS col2 FROM tab2
----
-117

onlyif mysql # aggregate syntax: 
query I rowsort label-3031
SELECT 39 + + COUNT( * ) col0 FROM tab1
----
42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3031
SELECT 39 + + COUNT ( * ) col0 FROM tab1
----
42

onlyif mysql # DIV for integer division: 
query II rowsort label-3032
SELECT ALL col2 + + col1 * + col1 AS col0, 58 DIV + ( + 14 ) AS col0 FROM tab0
----
100
4
451
4
6608
4

skipif mysql # not compatible
query II rowsort label-3032
SELECT ALL col2 + + col1 * + col1 AS col0, 58 / + ( + 14 ) AS col0 FROM tab0
----
100
4
451
4
6608
4

query I rowsort
SELECT - 11 + 88 FROM tab2
----
77
77
77

query I rowsort
SELECT DISTINCT - - col0 + + - col0 AS col0 FROM tab1 AS cor0
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL < + col0
----

query I rowsort
SELECT + col2 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
23
40
58

query II rowsort
SELECT DISTINCT + - col1 * + + col1, col1 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-196
14
-2209
47
-25
5

query II rowsort
SELECT ALL col1, 98 + - 2 FROM tab2 AS cor0
----
51
96
67
96
77
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3039
SELECT ALL + SUM( - CAST( - CAST( NULL AS SIGNED ) AS DECIMAL ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3039
SELECT ALL + SUM ( - CAST ( - CAST ( NULL AS INTEGER ) AS REAL ) ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3040
SELECT + MIN( DISTINCT col2 ) col1 FROM tab0
----
10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3040
SELECT + MIN ( DISTINCT col2 ) col1 FROM tab0
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3041
SELECT + 39 DIV COUNT( * ) FROM tab0
----
13

skipif mysql # not compatible
query I rowsort label-3041
SELECT + 39 / COUNT ( * ) FROM tab0
----
13

query I rowsort
SELECT col2 * col2 + 14 FROM tab1
----
3495
4638
9230

onlyif mysql # DIV for integer division: 
query I rowsort label-3043
SELECT - 29 DIV - col1 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3043
SELECT - 29 / - col1 AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL ( col0 ) + + ( 19 ) AS col0 FROM tab1
----
104
110
70

query III rowsort
SELECT ALL * FROM tab0 WHERE ( + col2 + col0 ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( col0 * col2 ) IS NULL
----

query I rowsort
SELECT col0 + 73 * + col2 FROM tab1
----
4392
5055
7059

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3048
SELECT col2 * - CAST( col0 AS SIGNED ) AS col2 FROM tab2
----
-1058
-2560
-4350

skipif mysql # not compatible
query I rowsort label-3048
SELECT col2 * - CAST ( col0 AS INTEGER ) AS col2 FROM tab2
----
-1058
-2560
-4350

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + 77 * col2 col2 FROM tab0
----
3634
7720
857

query I rowsort
SELECT col2 * + 7 AS col2 FROM tab1
----
413
476
672

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3051
SELECT DISTINCT 5 * - 47 AS col1 FROM tab1 WHERE 8 * ( - col2 ) + col0 NOT BETWEEN ( - CAST( 65 AS SIGNED ) + col1 ) AND - 47 * - col1
----
-235

skipif mysql # not compatible
query I rowsort label-3051
SELECT DISTINCT 5 * - 47 AS col1 FROM tab1 WHERE 8 * ( - col2 ) + col0 NOT BETWEEN ( - CAST ( 65 AS INTEGER ) + col1 ) AND - 47 * - col1
----
-235

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3052
SELECT col0 + - col2 / CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3052
SELECT col0 + - col2 / CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * 62 AS col0 FROM tab1
----
2914
310
868

onlyif mysql # aggregate syntax: 
query I rowsort label-3054
SELECT DISTINCT COUNT( * ) * - COUNT( DISTINCT + col1 ) AS col2 FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-3054
SELECT DISTINCT COUNT ( * ) * - COUNT ( DISTINCT + col1 ) AS col2 FROM tab1
----
-9

query I rowsort
SELECT 12 / ( - 63 ) FROM tab0 WHERE NOT NULL <= + col2 * 56
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3056
SELECT - CAST( col2 AS SIGNED ) * - col0 FROM tab0
----
705
870
9603

skipif mysql # not compatible
query I rowsort label-3056
SELECT - CAST ( col2 AS INTEGER ) * - col0 FROM tab0
----
705
870
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-3057
SELECT ALL + SUM( + col1 ) AS col2 FROM tab2 WHERE NOT col0 <= 79
----
NULL

skipif mysql # not compatible
query I rowsort label-3057
SELECT ALL + SUM ( + col1 ) AS col2 FROM tab2 WHERE NOT col0 <= 79
----
NULL

query I rowsort
SELECT - 77 + col1 AS col0 FROM tab0
----
-56
-76
4

query I rowsort
SELECT + col0 + 27 * col0 FROM tab2
----
1288
1792
2100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3060
SELECT COUNT( * ) + CAST( SUM( col1 ) AS SIGNED ) AS col2 FROM tab1
----
69

skipif mysql # not compatible
query I rowsort label-3060
SELECT COUNT ( * ) + CAST ( SUM ( col1 ) AS INTEGER ) AS col2 FROM tab1
----
69

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - 97 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3062
SELECT ALL - MIN( DISTINCT - 7 ) FROM tab1
----
7

skipif mysql # not compatible
query I rowsort label-3062
SELECT ALL - MIN ( DISTINCT - 7 ) FROM tab1
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3063
SELECT ALL - MIN( + 47 ) FROM tab0
----
-47

skipif mysql # not compatible
query I rowsort label-3063
SELECT ALL - MIN ( + 47 ) FROM tab0
----
-47

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - ( - col2 ) * - col0 + 95 = ( + 11 + + col1 / col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + col1 * col0 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 78 - 16 AS col1 FROM tab1
----
-94
-94
-94

query I rowsort
SELECT DISTINCT - col2 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3068
SELECT ALL + SUM( ALL - 29 ) FROM tab0
----
-87

skipif mysql # not compatible
query I rowsort label-3068
SELECT ALL + SUM ( ALL - 29 ) FROM tab0
----
-87

query I rowsort
SELECT ALL + col0 + 26 AS col0 FROM tab0
----
113
123
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3070
SELECT CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0 WHERE NOT ( col2 ) IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3070
SELECT CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE NOT ( col2 ) IS NULL
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 26 * 91 col2 FROM tab0 cor0
----
-2366

query I rowsort
SELECT ALL + 72 * + 57 + col0 AS col2 FROM tab0 cor0
----
4119
4191
4201

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( 37 * + col1 ) < ( 0 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL <= + 54 + 91
----

query I rowsort
SELECT + 42 AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
42
42
42

query I rowsort
SELECT - 65 * + col0 + col1 * + col1 AS col1 FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
-5214
-6304
5586

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( 25 + + col1 ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3078
SELECT COUNT( * ) / AVG ( 28 * col1 + - ( - col2 ) * - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3078
SELECT COUNT ( * ) / AVG ( 28 * col1 + - ( - col2 ) * - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - ( 63 ) FROM tab0 AS cor0
----
-63
-63
-63

query I rowsort
SELECT col1 AS col0 FROM tab2 cor0 WHERE 48 IS NOT NULL
----
51
67
77

query I rowsort
SELECT DISTINCT col0 + - 38 AS col2 FROM tab2
----
26
37
8

onlyif mysql # aggregate syntax: 
query I rowsort label-3082
SELECT ALL + COUNT( * ) FROM tab1 WHERE 33 NOT IN ( - col0 + - 91 )
----
3

skipif mysql # not compatible
query I rowsort label-3082
SELECT ALL + COUNT ( * ) FROM tab1 WHERE 33 NOT IN ( - col0 + - 91 )
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( 56 * col2 - col1 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 56 * + + 70 * col1 col0 FROM tab1
----
184240
19600
54880

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3085
SELECT * FROM tab0 WHERE col2 * 27 BETWEEN NULL AND col2 + - CAST( NULL AS SIGNED ) * 85
----

skipif mysql # not compatible
query III rowsort label-3085
SELECT * FROM tab0 WHERE col2 * 27 BETWEEN NULL AND col2 + - CAST ( NULL AS INTEGER ) * 85
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + 33 ) IS NULL
----

query I rowsort
SELECT 71 + - 9 AS col2 FROM tab1 AS cor0
----
62
62
62

query I rowsort
SELECT col2 * ( - ( 21 ) * + 41 ) FROM tab0 AS cor0 WHERE + 77 IS NOT NULL
----
-40467
-85239
-8610

onlyif mysql # aggregate syntax: 
query I rowsort label-3089
SELECT MAX( DISTINCT col0 ) + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-3089
SELECT MAX ( DISTINCT col0 ) + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-3090
SELECT COUNT( * ) AS col2 FROM tab1 WHERE + col2 > 2 * 43
----
1

skipif mysql # not compatible
query I rowsort label-3090
SELECT COUNT ( * ) AS col2 FROM tab1 WHERE + col2 > 2 * 43
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3091
SELECT CAST( NULL AS DECIMAL ) * - MAX( DISTINCT + col1 ) col1 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3091
SELECT CAST ( NULL AS REAL ) * - MAX ( DISTINCT + col1 ) col1 FROM tab0
----
NULL

query I rowsort
SELECT ALL - 22 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to fae46f8148b02964f7145eb6ed5819f9

query I rowsort
SELECT DISTINCT col2 - col2 FROM tab0 WHERE NOT ( NOT col1 IS NULL )
----

query IIIIII rowsort
SELECT * FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE NULL IS NOT NULL
----

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL >= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3096
SELECT col0 * - - CAST( + col1 AS SIGNED ) * + 94 AS col1 FROM tab0
----
114210
171738
9118

skipif mysql # not compatible
query I rowsort label-3096
SELECT col0 * - - CAST ( + col1 AS INTEGER ) * + 94 AS col1 FROM tab0
----
114210
171738
9118

query I rowsort
SELECT 1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 56, col0 col1 FROM tab2 AS cor0
----
-56
46
-56
64
-56
75

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3099
SELECT DISTINCT + col1 DIV + CAST( + col0 AS SIGNED ) col0 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3099
SELECT DISTINCT + col1 / + CAST ( + col0 AS INTEGER ) col0 FROM tab2 AS cor0
----
0
1

query II rowsort
SELECT ALL + col1 AS col0, ( - 9 ) FROM tab2 AS cor0
----
51
-9
67
-9
77
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 36 * 14 * - col1 * + ( - col1 ) col0 FROM tab1 AS cor0
----
-1113336
-12600
-98784

query II rowsort
SELECT - col0 AS col0, 66 FROM tab0 AS cor0
----
-15
66
-87
66
-97
66

query II rowsort
SELECT ALL + 8 AS col0, + col2 FROM tab2 AS cor0
----
8
23
8
40
8
58

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( + 11 + - col2 + + 32 * 39 ) NOT BETWEEN NULL AND 39
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT + col0, + 12 FROM tab2 AS cor0
----
46
12
64
12
75
12

query II rowsort
SELECT ALL col1 * + 15, + col0 * - + col1 AS col0 FROM tab1
----
210
-714
705
-4277
75
-425

query I rowsort
SELECT ALL + col0 AS col2 FROM tab1 WHERE ( - col0 ) <= - ( + col2 ) + - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3108
SELECT ALL col2 DIV + + ( + - 84 ) AS col2 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3108
SELECT ALL col2 / + + ( + - 84 ) AS col2 FROM tab0
----
-1
0
0

query I rowsort
SELECT col2 AS col2 FROM tab2 WHERE NOT NULL < ( NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col2 ) = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3111
SELECT COUNT( * ) AS col1 FROM tab0 WHERE NOT ( + col2 * 77 * col2 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3111
SELECT COUNT ( * ) AS col1 FROM tab0 WHERE NOT ( + col2 * 77 * col2 ) IS NOT NULL
----
0

query I rowsort
SELECT + ( col0 ) * + 68 AS col0 FROM tab2 WHERE NOT - + 12 IS NULL
----
3128
4352
5100

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3113
SELECT + 33 DIV + COUNT( * ) col2 FROM tab0
----
11

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3113
SELECT + 33 / + COUNT ( * ) col2 FROM tab0
----
11

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( 53 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - + col2 + + col2 + + col1 * - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * - 0 col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3117
SELECT CAST( + ( + + col2 ) AS SIGNED ) * col0 - - col1 AS col0 FROM tab0 WHERE NOT ( NULL ) >= NULL
----

skipif mysql # not compatible
query I rowsort label-3117
SELECT CAST ( + ( + + col2 ) AS INTEGER ) * col0 - - col1 AS col0 FROM tab0 WHERE NOT ( NULL ) >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3118
SELECT ALL col1 * CAST( - 21 AS SIGNED ) AS col1 FROM tab1
----
-105
-294
-987

skipif mysql # not compatible
query I rowsort label-3118
SELECT ALL col1 * CAST ( - 21 AS INTEGER ) AS col1 FROM tab1
----
-105
-294
-987

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 NOT IN ( + 61 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col0 col1, + col0 FROM tab2 AS cor0
----
46
46
64
64
75
75

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( - col1 ) = - 35 AND NOT + col2 + + col0 * col1 IS NOT NULL
----

query I rowsort
SELECT - ( col2 ) * - + col2 - col2 * - 11 AS col0 FROM tab0 AS cor0 WHERE NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3123
SELECT DISTINCT + + COUNT( * ) FROM tab2 WHERE col2 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-3123
SELECT DISTINCT + + COUNT ( * ) FROM tab2 WHERE col2 IS NOT NULL
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL BETWEEN ( - col2 + - + col0 ) AND ( ( + col0 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3125
SELECT col0 + + CAST( + 92 AS SIGNED ) FROM tab1
----
143
177
183

skipif mysql # not compatible
query I rowsort label-3125
SELECT col0 + + CAST ( + 92 AS INTEGER ) FROM tab1
----
143
177
183

query III rowsort
SELECT * FROM tab1 WHERE + col0 + col1 / - col0 IS NULL
----

query I rowsort
SELECT ALL 3 * - - col1 + 53 AS col1 FROM tab1
----
194
68
95

query I rowsort
SELECT ALL + col1 - + 99 FROM tab2
----
-22
-32
-48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 - - col0 col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT + + 33 * 9 - + + 84 AS col0 FROM tab1 AS cor0
----
213

query I rowsort
SELECT ALL 62 - col1 FROM tab0 cor0
----
-19
41
61

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - col2 / - - ( 25 ) ) NOT BETWEEN ( 30 * + col2 ) AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( col0 ) BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT DISTINCT + col1 - - 52 AS col2 FROM tab2 AS cor0
----
103
119
129

onlyif mysql # aggregate syntax: 
query I rowsort label-3135
SELECT ALL + COUNT( * ) * + COUNT( * ) AS col1 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-3135
SELECT ALL + COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3136
SELECT ALL - COUNT( * ) * + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE ( + col0 + + col1 * + + col2 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3136
SELECT ALL - COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE ( + col0 + + col1 * + + col2 ) IS NULL
----
0

query I rowsort
SELECT ALL + col0 FROM tab2 AS cor0 WHERE - col2 IN ( - + col0, + ( + + 8 ) )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 1 / + 50 <= col2 * + col2 * - ( 44 ) + + col1
----

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col0 * + col0 - 24 * col0 FROM tab1 AS cor0
----
1377
5185
6097

query I rowsort
SELECT ALL col1 FROM tab0 AS cor0 WHERE NULL <= 23
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3142
SELECT col0, + 99 DIV - col0 col1 FROM tab1
----
51
-1
85
-1
91
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3142
SELECT col0, + 99 / - col0 col1 FROM tab1
----
51
-1
85
-1
91
-1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL BETWEEN + col2 AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 * - - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3145
SELECT ALL ( + CAST( + + col2 AS SIGNED ) ) AS col1 FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-3145
SELECT ALL ( + CAST ( + + col2 AS INTEGER ) ) AS col1 FROM tab0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3146
SELECT ALL SUM( ALL + col1 ) FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-3146
SELECT ALL SUM ( ALL + col1 ) FROM tab1
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3147
SELECT ALL - 81 * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT 32 + + 92 >= ( - col0 + - + 59 )
----

skipif mysql # not compatible
query I rowsort label-3147
SELECT ALL - 81 * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT 32 + + 92 >= ( - col0 + - + 59 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3148
SELECT + - 74 + - COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( + col2 - - + col1 ) = + 71
----
-77

skipif mysql # not compatible
query I rowsort label-3148
SELECT + - 74 + - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( + col2 - - + col1 ) = + 71
----
-77

query II rowsort
SELECT 87 * + col2 + - col0 + - - col0 AS col0, + col2 AS col0 FROM tab0
----
4089
47
8613
99
870
10

query I rowsort
SELECT DISTINCT - 97 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT + 63 + col2 FROM tab1
----
122
131
159

onlyif mysql # aggregate syntax: 
query I rowsort label-3152
SELECT - + 68 * + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-204

skipif mysql # not compatible
query I rowsort label-3152
SELECT - + 68 * + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-204

query I rowsort
SELECT col1 * + 73 FROM tab1 cor0
----
1022
3431
365

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3154
SELECT + col2 * + CAST( - + col0 AS SIGNED ) + col1 + col1 FROM tab0 AS cor0
----
-543
-828
-9601

skipif mysql # not compatible
query I rowsort label-3154
SELECT + col2 * + CAST ( - + col0 AS INTEGER ) + col1 + col1 FROM tab0 AS cor0
----
-543
-828
-9601

onlyif mysql # aggregate syntax: 
query I rowsort label-3155
SELECT - 89 * - COUNT( * ) AS col2 FROM tab0 AS cor0
----
267

skipif mysql # not compatible
query I rowsort label-3155
SELECT - 89 * - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
267

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 59 + - col0 > NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3157
SELECT + - COUNT( * ) / COUNT( + col2 ) * CAST( NULL AS DECIMAL ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3157
SELECT + - COUNT ( * ) / COUNT ( + col2 ) * CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3158
SELECT DISTINCT 84 * + SUM( DISTINCT - col0 ) FROM tab0
----
-16716

skipif mysql # not compatible
query I rowsort label-3158
SELECT DISTINCT 84 * + SUM ( DISTINCT - col0 ) FROM tab0
----
-16716

query I rowsort
SELECT ALL - col0 + - - ( + - ( 60 ) ) FROM tab2
----
-106
-124
-135

query I rowsort
SELECT 59 + 1 FROM tab1
----
60
60
60

query I rowsort
SELECT DISTINCT 69 - col1 AS col2 FROM tab0
----
-12
48
68

query I rowsort
SELECT + + 38 + - 86 FROM tab1 cor0
----
-48
-48
-48

query I rowsort
SELECT DISTINCT - col0 + - - col0 + col1 * - + 49 * + 44 + + 80 FROM tab2 AS cor0
----
-109876
-144372
-165932

query I rowsort
SELECT + col1 + - 55 AS col0 FROM tab2 cor0
----
-4
12
22

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) <= + + 99
----

query I rowsort
SELECT ALL + 26 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3167
SELECT DISTINCT - SUM( CAST( - col2 AS SIGNED ) ) AS col2 FROM tab2 WHERE NULL IS NULL
----
121

skipif mysql # not compatible
query I rowsort label-3167
SELECT DISTINCT - SUM ( CAST ( - col2 AS INTEGER ) ) AS col2 FROM tab2 WHERE NULL IS NULL
----
121

query I rowsort
SELECT + 46 AS col2 FROM tab1 cor0
----
46
46
46

onlyif mysql # aggregate syntax: 
query I rowsort label-3169
SELECT MAX( DISTINCT + - col2 ) AS col0 FROM tab0 cor0
----
-10

skipif mysql # not compatible
query I rowsort label-3169
SELECT MAX ( DISTINCT + - col2 ) AS col0 FROM tab0 cor0
----
-10

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 54 IS NULL
----

query II rowsort
SELECT col0, + 22 AS col1 FROM tab0 AS cor0
----
15
22
87
22
97
22

query I rowsort
SELECT + col1 FROM tab1 cor0 WHERE NOT col1 IS NULL
----
14
47
5

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( ( 58 ) * + col1 + + col2 + + col2 ) <> NULL
----

query I rowsort
SELECT DISTINCT 56 * - col0 AS col1 FROM tab2 AS cor0
----
-2576
-3584
-4200

onlyif mysql # aggregate syntax: 
query I rowsort label-3175
SELECT COUNT( * ) * + - 48 AS col0 FROM tab0, tab2 cor0
----
-432

skipif mysql # not compatible
query I rowsort label-3175
SELECT COUNT ( * ) * + - 48 AS col0 FROM tab0, tab2 cor0
----
-432

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3176
SELECT - CAST( NULL AS SIGNED ) + - 74 * + 58 * + col0 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3176
SELECT - CAST ( NULL AS INTEGER ) + - 74 * + 58 * + col0 AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3177
SELECT ALL + + 99 * - + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-297

skipif mysql # not compatible
query I rowsort label-3177
SELECT ALL + + 99 * - + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-297

onlyif mysql # aggregate syntax: 
query I rowsort label-3178
SELECT COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL <= ( - col1 )
----
0

skipif mysql # not compatible
query I rowsort label-3178
SELECT COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL <= ( - col1 )
----
0

query I rowsort
SELECT col1 + - 37 AS col2 FROM tab1 AS cor0
----
-23
-32
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3180
SELECT ALL COUNT( * ) col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3180
SELECT ALL COUNT ( * ) col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query I rowsort
SELECT ALL + 76 AS col1 FROM tab0 AS cor0 WHERE NOT col2 + 77 IS NULL
----
76
76
76

query II rowsort
SELECT DISTINCT + col1 * + 98 + + 39 + - col2, + col1 AS col2 FROM tab1 AS cor0
----
1315
14
4577
47
470
5

query I rowsort
SELECT ALL 59 + - + col2 * col1 FROM tab1 AS cor0
----
-1285
-236
-3137

query I rowsort
SELECT DISTINCT col1 FROM tab0 cor0 WHERE ( NULL IS NOT NULL )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 * col0 - - 54 - - - 34 + 77 * - col2 NOT BETWEEN ( + col2 ) AND NULL
----
15
81
47
97
1
99

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT - 18 * col0 NOT BETWEEN NULL AND col1 + - 76 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3187
SELECT - COUNT( * ) + ( COUNT( * ) ) AS col2, + MAX( + - 75 ) AS col0 FROM tab0 AS cor0
----
0
-75

skipif mysql # not compatible
query II rowsort label-3187
SELECT - COUNT ( * ) + ( COUNT ( * ) ) AS col2, + MAX ( + - 75 ) AS col0 FROM tab0 AS cor0
----
0
-75

query I rowsort
SELECT + 78 AS col1 FROM tab0 AS cor0 WHERE + col1 - + + col0 <= + col0
----
78
78

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE col0 IS NULL
----

query I rowsort
SELECT ALL - 56 / - ( - 90 ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3191
SELECT ALL COUNT( * ) - + - COUNT( * ) AS col0 FROM tab1 cor0
----
6

skipif mysql # not compatible
query I rowsort label-3191
SELECT ALL COUNT ( * ) - + - COUNT ( * ) AS col0 FROM tab1 cor0
----
6

query I rowsort
SELECT DISTINCT ( 31 ) AS col2 FROM tab0 AS cor0
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-3193
SELECT - col1 + + + 19 DIV + 52 * + - col2 FROM tab0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-3193
SELECT - col1 + + + 19 / + 52 * + - col2 FROM tab0
----
-1
-21
-81

query III rowsort
SELECT * FROM tab1 WHERE - + ( + + 97 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3195
SELECT - ( + col2 ) DIV - + col0 FROM tab0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-3195
SELECT - ( + col2 ) / - + col0 FROM tab0
----
0
1
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3196
SELECT 10 * - + col1 AS col2, - ( + + 84 ) * + - col1 * CAST( NULL AS SIGNED ) FROM tab2
----
-510
NULL
-670
NULL
-770
NULL

skipif mysql # not compatible
query II rowsort label-3196
SELECT 10 * - + col1 AS col2, - ( + + 84 ) * + - col1 * CAST ( NULL AS INTEGER ) FROM tab2
----
-510
NULL
-670
NULL
-770
NULL

query I rowsort
SELECT DISTINCT + ( - + 1 ) AS col0 FROM tab0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3198
SELECT + CAST( NULL AS SIGNED ) * - + COUNT( * ) col2 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3198
SELECT + CAST ( NULL AS INTEGER ) * - + COUNT ( * ) col2 FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + col1 ) NOT BETWEEN col0 / - + 94 * - 87 + col1 * + + col0 AND ( - + col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 42 col0 FROM tab2 AS cor0
----
-42
-42
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3201
SELECT DISTINCT ( + CAST( - 14 AS SIGNED ) ) FROM tab2 cor0
----
-14

skipif mysql # not compatible
query I rowsort label-3201
SELECT DISTINCT ( + CAST ( - 14 AS INTEGER ) ) FROM tab2 cor0
----
-14

query I rowsort
SELECT - - col0 * col0 + 62 FROM tab2 AS cor0
----
2178
4158
5687

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 15 NOT BETWEEN + col1 * + 96 AND - - 76
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - + 27 * 71 AS col2 FROM tab1 AS cor0
----
-1917
-1917
-1917

query II rowsort
SELECT ALL col0 AS col0, - 77 FROM tab0 AS cor0
----
15
-77
87
-77
97
-77

query I rowsort
SELECT DISTINCT - 18 * col2 FROM tab1 AS cor0
----
-1062
-1224
-1728

query I rowsort
SELECT ALL ( 26 ) * 73 AS col2 FROM tab0 AS cor0
----
1898
1898
1898

onlyif mysql # aggregate syntax: 
query I rowsort label-3208
SELECT - 50 * - COUNT( * ) FROM tab2 AS cor0
----
150

skipif mysql # not compatible
query I rowsort label-3208
SELECT - 50 * - COUNT ( * ) FROM tab2 AS cor0
----
150

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3209
SELECT ( - - CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3209
SELECT ( - - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3210
SELECT ALL + 59 + col0 DIV + 31 AS col0 FROM tab1
----
60
61
61

skipif mysql # not compatible
query I rowsort label-3210
SELECT ALL + 59 + col0 / + 31 AS col0 FROM tab1
----
60
61
61

query II rowsort
SELECT DISTINCT col1 + + - col1 AS col0, 41 FROM tab0
----
0
41

query II rowsort
SELECT col1 AS col0, 64 FROM tab2
----
51
64
67
64
77
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 AS col0, 59 col1 FROM tab0
----
-1
59
-21
59
-81
59

query I rowsort
SELECT + - col0 FROM tab0 WHERE NOT - col2 = col1 + + col0 * col2
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3215
SELECT DISTINCT MAX( - col0 ) * - COUNT( * ) * + + 99 AS col2 FROM tab1
----
15147

skipif mysql # not compatible
query I rowsort label-3215
SELECT DISTINCT MAX ( - col0 ) * - COUNT ( * ) * + + 99 AS col2 FROM tab1
----
15147

query I rowsort
SELECT ALL col1 + + 15 * col0 * 5 FROM tab1
----
3839
6380
6872

query II rowsort
SELECT ALL ( - + 60 ), col2 FROM tab2 AS cor0
----
-60
23
-60
40
-60
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3218
SELECT + 86 * - 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-3218
SELECT + 86 * - CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3219
SELECT DISTINCT - + col1 DIV - col1 col0 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3219
SELECT DISTINCT - + col1 / - col1 col0 FROM tab2 AS cor0
----
1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 71 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 96 * col1 + + - ( + col2 ) * + col0 + - 52 + - 10 * + col2 FROM tab2 cor0
----
-10404
-11414
-6236

query I rowsort
SELECT ALL - col1 * col1 + col1 FROM tab1
----
-182
-20
-2162

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE NULL < NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3224
SELECT DISTINCT - 3 + - col0 DIV + - 32 AS col0, + 96 FROM tab1
----
-1
96
-2
96

skipif mysql # not compatible
query II rowsort label-3224
SELECT DISTINCT - 3 + - col0 / + - 32 AS col0, + 96 FROM tab1
----
-1
96
-2
96

query II rowsort
SELECT ( - - col1 ), col2 FROM tab2
----
51
23
67
58
77
40

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 > + - col2 + - col0 * - ( + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3227
SELECT DISTINCT + CAST( - 65 AS SIGNED ) + + col0 FROM tab1 AS cor0
----
-14
20
26

skipif mysql # not compatible
query I rowsort label-3227
SELECT DISTINCT + CAST ( - 65 AS INTEGER ) + + col0 FROM tab1 AS cor0
----
-14
20
26

query I rowsort
SELECT DISTINCT + 13 + + col0 * col0 FROM tab1 AS cor0
----
2614
7238
8294

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3229
SELECT ALL - CAST( + 95 AS SIGNED ) FROM tab0 AS cor0
----
-95
-95
-95

skipif mysql # not compatible
query I rowsort label-3229
SELECT ALL - CAST ( + 95 AS INTEGER ) FROM tab0 AS cor0
----
-95
-95
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - 37 ) * 30 - 54 - + 81 col1 FROM tab0 AS cor0
----
-1245
-1245
-1245

onlyif mysql # aggregate syntax: 
query I rowsort label-3231
SELECT + COUNT( ALL - + 32 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3231
SELECT + COUNT ( ALL - + 32 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT 35 - + - col0 FROM tab2 AS cor0
----
110
81
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3233
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + - 99 - - - col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3233
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + - 99 - - - col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 20 / + - 10 + col0 AS col0 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - col0 * - col2 - - + col2 - - col0 AS col1 FROM tab0
----
767
967
9799

query III rowsort
SELECT * FROM tab2 WHERE ( NOT - 80 >= + + col0 + - col0 + + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col0 * + 93 AS col2 FROM tab0
----
-1395
-8091
-9021

onlyif mysql # aggregate syntax: 
query I rowsort label-3238
SELECT DISTINCT + MIN( DISTINCT 70 ) col0 FROM tab0
----
70

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3238
SELECT DISTINCT + MIN ( DISTINCT 70 ) col0 FROM tab0
----
70

query I rowsort
SELECT DISTINCT - 58 + - - 20 + - - 46 FROM tab2
----
8

onlyif mysql # aggregate syntax: 
query II rowsort label-3240
SELECT COUNT( * ) AS col2, + 84 + - MAX( DISTINCT + 70 ) FROM tab1
----
3
14

skipif mysql # not compatible
query II rowsort label-3240
SELECT COUNT ( * ) AS col2, + 84 + - MAX ( DISTINCT + 70 ) FROM tab1
----
3
14

query III rowsort
SELECT * FROM tab2 WHERE NOT 67 <> + 79 * + 43 * col2
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( ( - - 98 ) * - 48 + + + 37 + + 25 + - ( + - 35 ) * col2 + + col1, col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3243
SELECT DISTINCT + - MIN( ALL + + col1 ) FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-3243
SELECT DISTINCT + - MIN ( ALL + + col1 ) FROM tab2 AS cor0
----
-51

query I rowsort
SELECT + 87 * + - col0 FROM tab1 AS cor0
----
-4437
-7395
-7917

onlyif mysql # DIV for integer division: 
query II rowsort label-3245
SELECT - 36 col1, col2 DIV - 56 AS col0 FROM tab0 AS cor0
----
-36
-1
-36
0
-36
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3245
SELECT - 36 col1, col2 / - 56 AS col0 FROM tab0 AS cor0
----
-36
-1
-36
0
-36
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3246
SELECT DISTINCT - ( - COUNT( * ) ), 13 col2 FROM tab1 AS cor0
----
3
13

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3246
SELECT DISTINCT - ( - COUNT ( * ) ), 13 col2 FROM tab1 AS cor0
----
3
13

query I rowsort
SELECT + ( + + col0 ) AS col0 FROM tab0 cor0
----
15
87
97

query I rowsort
SELECT col2 + - + col2 AS col2 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3249
SELECT - MIN( DISTINCT - col0 ) + + - 12 * + - COUNT( * ) AS col0 FROM tab1
----
127

skipif mysql # not compatible
query I rowsort label-3249
SELECT - MIN ( DISTINCT - col0 ) + + - 12 * + - COUNT ( * ) AS col0 FROM tab1
----
127

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 44 < 52
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 98 * - 71 FROM tab2
----
-6958
-6958
-6958

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3252
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col1 - - col0 NOT IN ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-3252
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col1 - - col0 NOT IN ( - CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT - + col2 * + 51 AS col2 FROM tab0 AS cor0
----
-2397
-5049
-510

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3254
SELECT CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3254
SELECT CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col2 FROM tab0 WHERE NULL BETWEEN - col1 + + col1 AND - + col0
----

query I rowsort
SELECT ALL - col2 * - + 8 + + col1 FROM tab1
----
477
591
782

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 * 87 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 22 + 42 + 74 AS col1 FROM tab2 AS cor0
----
94
94
94

query I rowsort
SELECT + 27 + - col0 + - col2 AS col0 FROM tab1 AS cor0
----
-117
-120
-132

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 NOT BETWEEN NULL AND 85 / + ( + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3261
SELECT + COUNT( * ) FROM tab1 AS cor0 WHERE + col0 * col2 > ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-3261
SELECT + COUNT ( * ) FROM tab1 AS cor0 WHERE + col0 * col2 > ( NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3262
SELECT DISTINCT - 83 - + - 80 * - MAX( col2 ) FROM tab0 AS cor0
----
-8003

skipif mysql # not compatible
query I rowsort label-3262
SELECT DISTINCT - 83 - + - 80 * - MAX ( col2 ) FROM tab0 AS cor0
----
-8003

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3263
SELECT DISTINCT col0 * + - ( - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3263
SELECT DISTINCT col0 * + - ( - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col1 * 30 * + + col0 AS col1 FROM tab2
----
-147840
-150750
-70380

onlyif mysql # DIV for integer division: 
query I rowsort label-3265
SELECT 10 DIV - + 34 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3265
SELECT 10 / - + 34 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3266
SELECT ALL MIN( DISTINCT + - col2 ) FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-3266
SELECT ALL MIN ( DISTINCT + - col2 ) FROM tab2
----
-58

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 * - col1 / col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3268
SELECT DISTINCT - + COUNT( * ), + COUNT( * ) AS col0 FROM tab1 WHERE NOT - - 3 + - + 38 <= NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-3268
SELECT DISTINCT - + COUNT ( * ), + COUNT ( * ) AS col0 FROM tab1 WHERE NOT - - 3 + - + 38 <= NULL
----
0
0

query II rowsort
SELECT + ( - - col0 ), - 96 AS col1 FROM tab0
----
15
-96
87
-96
97
-96

query I rowsort
SELECT DISTINCT + col1 * + - ( + 53 ) FROM tab1 AS cor0
----
-2491
-265
-742

query I rowsort
SELECT DISTINCT - 41 AS col0 FROM tab0 cor0
----
-41

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3272
SELECT DISTINCT + 74 DIV - ( + CAST( - - 45 AS SIGNED ) ) AS col0 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-3272
SELECT DISTINCT + 74 / - ( + CAST ( - - 45 AS INTEGER ) ) AS col0 FROM tab1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3273
SELECT + MIN( - col1 ) AS col2 FROM tab2 cor0
----
-77

skipif mysql # not compatible
query I rowsort label-3273
SELECT + MIN ( - col1 ) AS col2 FROM tab2 cor0
----
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 99 col0, - col2 FROM tab0 cor0
----
99
-10
99
-47
99
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3275
SELECT + - MAX( + 96 ) AS col0 FROM tab0 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-3275
SELECT + - MAX ( + 96 ) AS col0 FROM tab0 AS cor0
----
-96

query I rowsort
SELECT - col1 * + 5 AS col0 FROM tab0 AS cor0
----
-105
-405
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3277
SELECT + COUNT( * ) * + + 72 AS col2 FROM tab2 AS cor0
----
216

skipif mysql # not compatible
query I rowsort label-3277
SELECT + COUNT ( * ) * + + 72 AS col2 FROM tab2 AS cor0
----
216

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 36 <= col0 + - - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - col1 AS col1, col0 * - - 12 AS col0 FROM tab0 AS cor0
----
-1
1164
-21
1044
-81
180

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3280
SELECT - CAST( NULL AS SIGNED ) / - 46 * 93 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3280
SELECT - CAST ( NULL AS INTEGER ) / - 46 * 93 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3281
SELECT SUM( + ( col0 ) ) col0 FROM tab2
----
185

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3281
SELECT SUM ( + ( col0 ) ) col0 FROM tab2
----
185

query I rowsort
SELECT DISTINCT - 12 - col2 FROM tab2 WHERE ( NOT ( NULL ) IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3283
SELECT COUNT( DISTINCT 32 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-3283
SELECT COUNT ( DISTINCT 32 ) FROM tab0
----
1

query I rowsort
SELECT ALL + 70 + col1 AS col0 FROM tab2
----
121
137
147

onlyif mysql # aggregate syntax: 
query I rowsort label-3285
SELECT ALL - MIN( col2 ) FROM tab1 WHERE + col0 <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3285
SELECT ALL - MIN ( col2 ) FROM tab1 WHERE + col0 <= NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3286
SELECT SUM( col1 ) FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
103

skipif mysql # not compatible
query I rowsort label-3286
SELECT SUM ( col1 ) FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
103

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 68 * - - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3288
SELECT COUNT( * ) + - - COUNT( * ) AS col2 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-3288
SELECT COUNT ( * ) + - - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
6

query I rowsort
SELECT DISTINCT + - col1 * - + col1 FROM tab2 cor0
----
2601
4489
5929

onlyif mysql # aggregate syntax: 
query I rowsort label-3290
SELECT SUM( ALL + 82 ) + - COUNT( * ) FROM tab0 AS cor0
----
243

skipif mysql # not compatible
query I rowsort label-3290
SELECT SUM ( ALL + 82 ) + - COUNT ( * ) FROM tab0 AS cor0
----
243

query I rowsort
SELECT ALL col2 * 0 AS col0 FROM tab2 WHERE NOT + col1 * col2 IS NOT NULL
----

query I rowsort
SELECT ALL + + 4 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

query I rowsort
SELECT 5 + + col0 AS col0 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3294
SELECT + + COUNT( * ) - + - 42 AS col0 FROM tab0 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-3294
SELECT + + COUNT ( * ) - + - 42 AS col0 FROM tab0 AS cor0
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-3295
SELECT + 0 - + - col1 * col0 DIV + col2 FROM tab1 cor0
----
62
7
7

skipif mysql # not compatible
query I rowsort label-3295
SELECT + 0 - + - col1 * col0 / + col2 FROM tab1 cor0
----
62
7
7

query I rowsort
SELECT ALL - + ( - - col1 ) + 98 AS col0 FROM tab0 AS cor0
----
17
77
97

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 + - + 18 + - 5 > - - col2
----
51
14
96
91
47
68

query I rowsort
SELECT ALL 85 * 44 * - - col2 FROM tab1 AS cor0
----
220660
254320
359040

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( 84 IS NOT NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3300
SELECT DISTINCT + 36 * + - 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-3300
SELECT DISTINCT + 36 * + - CAST ( NULL AS INTEGER ) col0 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3301
SELECT DISTINCT + 31 DIV - COUNT( * ) FROM tab2
----
-10

skipif mysql # not compatible
query I rowsort label-3301
SELECT DISTINCT + 31 / - COUNT ( * ) FROM tab2
----
-10

query I rowsort
SELECT + col0 + - - 57 FROM tab0 WHERE NOT + col2 IS NULL
----
144
154
72

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL IN ( + 36 * + 63 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3304
SELECT + - COUNT( ALL + col1 ) AS col0 FROM tab0 WHERE NOT - col1 * - col1 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3304
SELECT + - COUNT ( ALL + col1 ) AS col0 FROM tab0 WHERE NOT - col1 * - col1 IS NULL
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3305
SELECT + - COUNT( * ) AS col0 FROM tab1 WHERE NOT + - CAST( 27 AS SIGNED ) * - 62 + + col0 * + + col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3305
SELECT + - COUNT ( * ) AS col0 FROM tab1 WHERE NOT + - CAST ( 27 AS INTEGER ) * - 62 + + col0 * + + col1 IS NOT NULL
----
0

query II rowsort
SELECT ALL 96 * col2 AS col2, col0 FROM tab1
----
5664
85
6528
91
9216
51

query I rowsort
SELECT - 84 * - - col0 AS col1 FROM tab1
----
-4284
-7140
-7644

query I rowsort
SELECT ALL - ( - ( + 67 ) ) FROM tab2
----
67
67
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col0, col0 AS col1 FROM tab0 AS cor0
----
10
87
47
15
99
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3310
SELECT DISTINCT CAST( - CAST( - + 37 AS SIGNED ) AS SIGNED ) * - col0 AS col2 FROM tab0 AS cor0
----
-3219
-3589
-555

skipif mysql # not compatible
query I rowsort label-3310
SELECT DISTINCT CAST ( - CAST ( - + 37 AS INTEGER ) AS INTEGER ) * - col0 AS col2 FROM tab0 AS cor0
----
-3219
-3589
-555

onlyif mysql # aggregate syntax: 
query I rowsort label-3311
SELECT ALL - - MIN( 78 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
78

skipif mysql # not compatible
query I rowsort label-3311
SELECT ALL - - MIN ( 78 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
78

onlyif mysql # aggregate syntax: 
query II rowsort label-3312
SELECT + + 50 * COUNT( * ) AS col0, - 73 FROM tab1 AS cor0
----
150
-73

skipif mysql # not compatible
query II rowsort label-3312
SELECT + + 50 * COUNT ( * ) AS col0, - 73 FROM tab1 AS cor0
----
150
-73

query I rowsort
SELECT DISTINCT - ( - col1 ) * + col1 + - - 99 - - 90 FROM tab0 AS cor0
----
190
630
6750

query II rowsort
SELECT - col0 * + + col2 AS col2, - ( col1 ) AS col2 FROM tab1 AS cor0
----
-4896
-14
-5015
-5
-6188
-47

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 92 * + col1 / - 68 <= col0 * - col0 + + 96 - col1 / - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3316
SELECT ALL - COUNT( * ) AS col0, 98 * CAST( NULL AS SIGNED ) FROM tab2
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-3316
SELECT ALL - COUNT ( * ) AS col0, 98 * CAST ( NULL AS INTEGER ) FROM tab2
----
-3
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3317
SELECT + COUNT( * ) + - + CAST( - + ( - 99 ) AS SIGNED ) FROM tab0
----
-96

skipif mysql # not compatible
query I rowsort label-3317
SELECT + COUNT ( * ) + - + CAST ( - + ( - 99 ) AS INTEGER ) FROM tab0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3318
SELECT DISTINCT - MAX( + 36 ) FROM tab1
----
-36

skipif mysql # not compatible
query I rowsort label-3318
SELECT DISTINCT - MAX ( + 36 ) FROM tab1
----
-36

query I rowsort
SELECT col0 FROM tab1 WHERE - + col2 / + col0 IS NOT NULL
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3320
SELECT DISTINCT SUM( ALL col2 ) + + 31 FROM tab0
----
187

skipif mysql # not compatible
query I rowsort label-3320
SELECT DISTINCT SUM ( ALL col2 ) + + 31 FROM tab0
----
187

query III rowsort
SELECT * FROM tab1 WHERE NULL <> + - 32 - col0
----

query II rowsort
SELECT - col2, + col2 * - col1 * - col2 * 44 AS col1 FROM tab1
----
-59
765820
-68
9562432
-96
5677056

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + 64 - col0 + + - col1 + - col2 * col2 * + 86 AS col1, col0 col2 FROM tab2 AS cor0
----
-137805
64
-289510
75
-45655
46

onlyif mysql # DIV for integer division: 
query II rowsort label-3324
SELECT 59 - - ( - col0 ), col2 DIV + 66 AS col2 FROM tab0 AS cor0
----
-28
0
-38
1
44
0

skipif mysql # not compatible
query II rowsort label-3324
SELECT 59 - - ( - col0 ), col2 / + 66 AS col2 FROM tab0 AS cor0
----
-28
0
-38
1
44
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3325
SELECT MIN( DISTINCT col2 ) - 47 FROM tab1
----
12

skipif mysql # not compatible
query I rowsort label-3325
SELECT MIN ( DISTINCT col2 ) - 47 FROM tab1
----
12

query I rowsort
SELECT - col1 - + + 68 * col1 * col0 AS col1 FROM tab2
----
-159579
-335181
-341767

query I rowsort
SELECT ALL col2 * - - col1 + + col1 + + - ( - 78 ) * + + ( + col1 ) AS col2 FROM tab1
----
2450
690
6909

onlyif mysql # aggregate syntax: 
query I rowsort label-3328
SELECT - 66 * COUNT( * ) + 41 + - + 53 FROM tab1
----
-210

skipif mysql # not compatible
query I rowsort label-3328
SELECT - 66 * COUNT ( * ) + 41 + - + 53 FROM tab1
----
-210

query I rowsort
SELECT col1 * - - col1 + + 59 FROM tab0
----
500
60
6620

onlyif mysql # aggregate syntax: 
query I rowsort label-3330
SELECT DISTINCT - - COUNT( * ) FROM tab2 AS cor0 WHERE NOT - 21 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3330
SELECT DISTINCT - - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT - 21 IS NOT NULL
----
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( col0 ) / - col2 + 82 IS NULL
----

query I rowsort
SELECT DISTINCT + col1 * 87 - - col1 AS col0 FROM tab2 AS cor0
----
4488
5896
6776

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col1 - col0 / - col0 BETWEEN NULL AND + + 59
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col1 BETWEEN + + ( - col1 ) AND 63
----
46
51
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3335
SELECT ALL + MAX( + + col2 ) * - 29 * + + COUNT( + col2 ) FROM tab1 AS cor0
----
-8352

skipif mysql # not compatible
query I rowsort label-3335
SELECT ALL + MAX ( + + col2 ) * - 29 * + + COUNT ( + col2 ) FROM tab1 AS cor0
----
-8352

onlyif mysql # aggregate syntax: 
query I rowsort label-3336
SELECT MIN( DISTINCT col2 ) * 51 * + COUNT( * ) FROM tab1
----
9027

skipif mysql # not compatible
query I rowsort label-3336
SELECT MIN ( DISTINCT col2 ) * 51 * + COUNT ( * ) FROM tab1
----
9027

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3337
SELECT DISTINCT + 76 DIV + - CAST( + 8 AS SIGNED ) FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-3337
SELECT DISTINCT + 76 / + - CAST ( + 8 AS INTEGER ) FROM tab1
----
-9

query II rowsort
SELECT 2 * + - col1 * col2, - col1 AS col0 FROM tab2
----
-2346
-51
-6160
-77
-7772
-67

onlyif mysql # aggregate syntax: 
query II rowsort label-3339
SELECT DISTINCT + COUNT( * ), COUNT( * ) AS col1 FROM tab2
----
3
3

skipif mysql # not compatible
query II rowsort label-3339
SELECT DISTINCT + COUNT ( * ), COUNT ( * ) AS col1 FROM tab2
----
3
3

query II rowsort
SELECT ALL + col0 AS col2, col2 FROM tab1
----
51
96
85
59
91
68

query I rowsort
SELECT DISTINCT col2 * - + col0 * col2 FROM tab2 AS cor0
----
-102400
-24334
-252300

query I rowsort
SELECT ALL 20 * + 91 FROM tab2 AS cor0
----
1820
1820
1820

query I rowsort
SELECT ALL + + 76 * 18 FROM tab0 AS cor0
----
1368
1368
1368

query II rowsort
SELECT DISTINCT col1 * + col0 - - - col1, col2 FROM tab0 AS cor0
----
1134
47
1806
10
96
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3345
SELECT - - SUM( DISTINCT - - col0 ) AS col0 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-3345
SELECT - - SUM ( DISTINCT - - col0 ) AS col0 FROM tab1 AS cor0
----
227

query I rowsort
SELECT DISTINCT + 80 * col1 * + - ( - + col2 ) * - col2 AS col1 FROM tab0
----
-14314320
-168000
-784080

query I rowsort
SELECT - 30 + col2 AS col0 FROM tab0 WHERE NOT - + col2 IS NULL
----
-20
17
69

onlyif mysql # aggregate syntax: 
query I rowsort label-3348
SELECT DISTINCT - ( COUNT( * ) ) AS col2 FROM tab1 WHERE - 25 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-3348
SELECT DISTINCT - ( COUNT ( * ) ) AS col2 FROM tab1 WHERE - 25 = NULL
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3349
SELECT - ( - 95 ) DIV COUNT( * ) + MIN( - + col0 ) AS col0 FROM tab1
----
-60

skipif mysql # not compatible
query I rowsort label-3349
SELECT - ( - 95 ) / COUNT ( * ) + MIN ( - + col0 ) AS col0 FROM tab1
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-3350
SELECT ALL + COUNT( - col1 ) + + COUNT( * ) FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-3350
SELECT ALL + COUNT ( - col1 ) + + COUNT ( * ) FROM tab2
----
6

query I rowsort
SELECT ALL col2 FROM tab1 AS cor0 WHERE NOT + col0 NOT BETWEEN + + col2 AND + + col2
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) <= ( col1 )
----

query I rowsort
SELECT DISTINCT - - col2 + col1 AS col2 FROM tab1 AS cor0
----
110
115
64

query I rowsort
SELECT ALL - col2 + - 87 + col2 * - 87 * - col2 AS col1 FROM tab0 cor0
----
192049
852501
8603

onlyif mysql # aggregate syntax: 
query I rowsort label-3355
SELECT + 37 * + + SUM( ALL 17 ) FROM tab1 AS cor0
----
1887

skipif mysql # not compatible
query I rowsort label-3355
SELECT + 37 * + + SUM ( ALL 17 ) FROM tab1 AS cor0
----
1887

query II rowsort
SELECT DISTINCT - col2 AS col2, - col1 FROM tab1 AS cor0
----
-59
-5
-68
-47
-96
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-3357
SELECT ALL col0 DIV + + col1 + - - col2 col2 FROM tab2 AS cor0
----
23
40
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3357
SELECT ALL col0 / + + col1 + - - col2 col2 FROM tab2 AS cor0
----
23
40
59

query I rowsort
SELECT - col2 * + + 85 + - 40 AS col1 FROM tab1 AS cor0
----
-5055
-5820
-8200

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + + 97 ) col0 FROM tab1 cor0
----
-97
-97
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3360
SELECT DISTINCT MIN( - col2 ) AS col2 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-3360
SELECT DISTINCT MIN ( - col2 ) AS col2 FROM tab1 AS cor0
----
-96

onlyif mysql # DIV for integer division: 
query II rowsort label-3361
SELECT + 50, 36 DIV - 5 AS col0 FROM tab2 AS cor0
----
50
-7
50
-7
50
-7

skipif mysql # not compatible
query II rowsort label-3361
SELECT + 50, 36 / - 5 AS col0 FROM tab2 AS cor0
----
50
-7
50
-7
50
-7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 97 col1 FROM tab2 AS cor0
----
-97
-97
-97

query II rowsort
SELECT + col0, - col2 * col1 FROM tab1 AS cor0
----
51
-1344
85
-295
91
-3196

query I rowsort
SELECT - ( + 1 ) FROM tab1
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3365
SELECT ALL 51 + + CAST( + 44 AS SIGNED ) col1 FROM tab2
----
95
95
95

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3365
SELECT ALL 51 + + CAST ( + 44 AS INTEGER ) col1 FROM tab2
----
95
95
95

onlyif mysql # aggregate syntax: 
query I rowsort label-3366
SELECT 13 * - COUNT( * ) - - 60 FROM tab2
----
21

skipif mysql # not compatible
query I rowsort label-3366
SELECT 13 * - COUNT ( * ) - - 60 FROM tab2
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-3367
SELECT ALL + 42 + - 37 * COUNT( ALL col2 ) AS col1 FROM tab1
----
-69

skipif mysql # not compatible
query I rowsort label-3367
SELECT ALL + 42 + - 37 * COUNT ( ALL col2 ) AS col1 FROM tab1
----
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-3368
SELECT ALL + + ( 3 ) + - - ( 66 ) DIV - col2 FROM tab2 AS cor0
----
1
2
2

skipif mysql # not compatible
query I rowsort label-3368
SELECT ALL + + ( 3 ) + - - ( 66 ) / - col2 FROM tab2 AS cor0
----
1
2
2

query II rowsort
SELECT ALL col1 - - col1, col2 * - 1 AS col2 FROM tab0 AS cor0
----
162
-47
2
-99
42
-10

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NOT ( NULL = NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3371
SELECT DISTINCT MAX( col0 ) AS col1 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-3371
SELECT DISTINCT MAX ( col0 ) AS col1 FROM tab1
----
91

onlyif mysql # aggregate syntax: 
query II rowsort label-3372
SELECT + MAX( ALL + + col2 ) AS col0, COUNT( * ) + + - 41 * + - 14 AS col2 FROM tab2 WHERE NOT ( - col0 IS NULL )
----
58
577

skipif mysql # not compatible
query II rowsort label-3372
SELECT + MAX ( ALL + + col2 ) AS col0, COUNT ( * ) + + - 41 * + - 14 AS col2 FROM tab2 WHERE NOT ( - col0 IS NULL )
----
58
577

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + - ( + + 68 ) > + col0 / - 88
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 32 * + - col0 AS col2 FROM tab0 AS cor0
----
-2784
-3104
-480

query I rowsort
SELECT - 40 * - + 44 AS col1 FROM tab2 AS cor0
----
1760
1760
1760

query I rowsort
SELECT DISTINCT - 11 * col0 AS col0 FROM tab1 AS cor0
----
-1001
-561
-935

onlyif mysql # aggregate syntax: 
query I rowsort label-3377
SELECT ALL SUM( DISTINCT col2 ) AS col2 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-3377
SELECT ALL SUM ( DISTINCT col2 ) AS col2 FROM tab0 AS cor0
----
156

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col0 BETWEEN col0 + col2 AND + col0
----

query I rowsort
SELECT DISTINCT col0 * col0 * col0 AS col2 FROM tab1 AS cor0
----
132651
614125
753571

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - col2 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col1 * - 87 FROM tab2 AS cor0
----
-4437
-5829
-6699

onlyif mysql # DIV for integer division: 
query I rowsort label-3382
SELECT - 74 * col1 DIV - 64 FROM tab2 cor0
----
58
77
89

skipif mysql # not compatible
query I rowsort label-3382
SELECT - 74 * col1 / - 64 FROM tab2 cor0
----
58
77
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3383
SELECT DISTINCT - CAST( - 69 AS SIGNED ) FROM tab2 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-3383
SELECT DISTINCT - CAST ( - 69 AS INTEGER ) FROM tab2 AS cor0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-3384
SELECT + + COUNT( ALL 73 ) FROM tab1 AS cor0 WHERE NOT + col2 + - col2 + - col2 * - col0 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-3384
SELECT + + COUNT ( ALL 73 ) FROM tab1 AS cor0 WHERE NOT + col2 + - col2 + - col2 * - col0 IS NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3385
SELECT - CAST( NULL AS SIGNED ) FROM tab0 WHERE NULL >= NULL
----

skipif mysql # not compatible
query I rowsort label-3385
SELECT - CAST ( NULL AS INTEGER ) FROM tab0 WHERE NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3386
SELECT ALL ( 45 ) + - - COUNT( * ) FROM tab1
----
48

skipif mysql # not compatible
query I rowsort label-3386
SELECT ALL ( 45 ) + - - COUNT ( * ) FROM tab1
----
48

query I rowsort
SELECT ALL - 59 * col0 + 63 AS col0 FROM tab2 AS cor0
----
-2651
-3713
-4362

query I rowsort
SELECT - col2 + + 62 FROM tab1 AS cor0
----
-34
-6
3

query II rowsort
SELECT DISTINCT - 45, col1 + - col1 AS col2 FROM tab0 cor0
----
-45
0

query I rowsort
SELECT - + AVG ( ALL col0 ) AS col2 FROM tab0 cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3391
SELECT col2 * + 78 / + col0 + - - col0 - - + CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3391
SELECT col2 * + 78 / + col0 + - - col0 - - + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3392
SELECT - col0 DIV + - col1 + + col0 FROM tab1 AS cor0
----
102
54
92

skipif mysql # not compatible
query I rowsort label-3392
SELECT - col0 / + - col1 + + col0 FROM tab1 AS cor0
----
102
54
92

query I rowsort
SELECT ALL 79 * + 99 FROM tab1, tab1 AS cor0
----
9 values hashing to 9f5ab3040e22da7706bcf3b2ab7b13e4

query I rowsort
SELECT - col0 * - col1 + + col1 AS col0 FROM tab2 WHERE ( ( NULL ) IS NULL )
----
2397
5005
5092

onlyif mysql # DIV for integer division: 
query I rowsort label-3395
SELECT 21 DIV - col2 FROM tab0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-3395
SELECT 21 / - col2 FROM tab0
----
-2
0
0

query I rowsort
SELECT ALL 82 * + ( + + 60 ) AS col2 FROM tab0
----
4920
4920
4920

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - col2 / - col2 col0 FROM tab1 WHERE - col1 * - 66 = NULL
----

query I rowsort
SELECT + col2 * - 78 FROM tab1
----
-4602
-5304
-7488

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3399
SELECT + - COUNT( * ) DIV - + 70 + + ( + 74 ) FROM tab1 WHERE - + 89 = NULL
----
74

skipif mysql # not compatible
query I rowsort label-3399
SELECT + - COUNT ( * ) / - + 70 + + ( + 74 ) FROM tab1 WHERE - + 89 = NULL
----
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 AS col0, + col2 col2 FROM tab2
----
23
23
40
40
58
58

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - ( - + col0 ) * - col1 < - 9
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-3402
SELECT DISTINCT col1 - + 17 DIV + col0 FROM tab0
----
1
21
80

skipif mysql # not compatible
query I rowsort label-3402
SELECT DISTINCT col1 - + 17 / + col0 FROM tab0
----
1
21
80

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3403
SELECT CAST( NULL AS SIGNED ) AS col1, - col1 * + col2 * 59 AS col0, - col1 AS col0 FROM tab2 AS cor0
----
9 values hashing to 9db7bb9f03ff58b3300cc5360b26a009

skipif mysql # not compatible
query III rowsort label-3403
SELECT CAST ( NULL AS INTEGER ) AS col1, - col1 * + col2 * 59 AS col0, - col1 AS col0 FROM tab2 AS cor0
----
9 values hashing to 9db7bb9f03ff58b3300cc5360b26a009

query II rowsort
SELECT + + col0, - col2 FROM tab2 AS cor0
----
46
-23
64
-40
75
-58

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3405
SELECT CAST( NULL AS SIGNED ) * col0 AS col2, 37 DIV + col1 FROM tab0
----
NULL
0
NULL
1
NULL
37

skipif mysql # not compatible
query II rowsort label-3405
SELECT CAST ( NULL AS INTEGER ) * col0 AS col2, 37 / + col1 FROM tab0
----
NULL
0
NULL
1
NULL
37

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 * 92 BETWEEN col0 AND - ( + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col2 * + col0 * - 34 AS col1 FROM tab0
----
-23970
-29580
-326502

onlyif mysql # aggregate syntax: 
query II rowsort label-3408
SELECT ALL + 35 * + + 83, - COUNT( * ) AS col0 FROM tab1
----
2905
-3

skipif mysql # not compatible
query II rowsort label-3408
SELECT ALL + 35 * + + 83, - COUNT ( * ) AS col0 FROM tab1
----
2905
-3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 * + - 88 * + + 59 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col0 FROM tab1 cor0 WHERE ( - col1 ) IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT 78 + - col2 + 7 - col2 * + col1 >= - - 28
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT col0, 38 AS col0 FROM tab2
----
46
38
64
38
75
38

query I rowsort
SELECT - 99 * + - col2 FROM tab1
----
5841
6732
9504

query I rowsort
SELECT ( 48 ) AS col1 FROM tab2
----
48
48
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 10 col2 FROM tab2
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3416
SELECT ALL + MAX( DISTINCT + col2 ) FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-3416
SELECT ALL + MAX ( DISTINCT + col2 ) FROM tab0
----
99

query I rowsort
SELECT 61 * + + 32 AS col0 FROM tab1
----
1952
1952
1952

query I rowsort
SELECT DISTINCT 66 + - col0 + col2 * + - 27 FROM tab1
----
-1612
-1861
-2577

onlyif mysql # aggregate syntax: 
query I rowsort label-3419
SELECT ALL - COUNT( * ) + - SUM( ALL - col2 ) AS col1 FROM tab0
----
153

skipif mysql # not compatible
query I rowsort label-3419
SELECT ALL - COUNT ( * ) + - SUM ( ALL - col2 ) AS col1 FROM tab0
----
153

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 + - col1 > - col1 - ( col0 ) + + col2 + + - col0 + + - col0 * + col2 * - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-3421
SELECT - 55 DIV col1 AS col1 FROM tab1 cor0
----
-1
-11
-3

skipif mysql # not compatible
query I rowsort label-3421
SELECT - 55 / col1 AS col1 FROM tab1 cor0
----
-1
-11
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3422
SELECT - 44 + - COUNT( DISTINCT col0 ) FROM tab0 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-3422
SELECT - 44 + - COUNT ( DISTINCT col0 ) FROM tab0 AS cor0
----
-47

query I rowsort
SELECT - col0 + - + col2 + + - col2 FROM tab2 AS cor0
----
-144
-191
-92

query III rowsort
SELECT * FROM tab2 WHERE ( NOT 45 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col0 * col2 + + 0 FROM tab0
----
705
870
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-3426
SELECT DISTINCT SUM( col2 ) + + 26 AS col2 FROM tab0 AS cor0
----
182

skipif mysql # not compatible
query I rowsort label-3426
SELECT DISTINCT SUM ( col2 ) + + 26 AS col2 FROM tab0 AS cor0
----
182

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL NOT IN ( + col2 * - 0, - col2 * + col2 * + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3428
SELECT ALL - 80 + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3428
SELECT ALL - 80 + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3429
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL <> - CAST( - + col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3429
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL <> - CAST ( - + col2 AS INTEGER )
----

query I rowsort
SELECT DISTINCT + - 80 - - ( - col1 ) FROM tab1 AS cor0
----
-127
-85
-94

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT 63 * col1 = - - 53
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3432
SELECT - CAST( NULL AS SIGNED ) - MIN( ( + + 60 ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3432
SELECT - CAST ( NULL AS INTEGER ) - MIN ( ( + + 60 ) ) FROM tab2
----
NULL

query II rowsort
SELECT + + ( + - ( - + 48 ) ) * - col1 - + col0 AS col0, 52 FROM tab1 WHERE NULL >= 91
----

query III rowsort
SELECT * FROM tab2 WHERE col1 + - 44 IS NULL AND col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3435
SELECT DISTINCT + col0 DIV - 40 col0 FROM tab0
----
-2
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3435
SELECT DISTINCT + col0 / - 40 col0 FROM tab0
----
-2
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3436
SELECT DISTINCT + CAST( + 26 AS SIGNED ) + - col1 FROM tab2
----
-25
-41
-51

skipif mysql # not compatible
query I rowsort label-3436
SELECT DISTINCT + CAST ( + 26 AS INTEGER ) + - col1 FROM tab2
----
-25
-41
-51

query I rowsort
SELECT 45 FROM tab0 WHERE NULL IS NULL
----
45
45
45

onlyif mysql # aggregate syntax: 
query I rowsort label-3438
SELECT ALL + MAX( ALL col0 ) + - 97 FROM tab2
----
-22

skipif mysql # not compatible
query I rowsort label-3438
SELECT ALL + MAX ( ALL col0 ) + - 97 FROM tab2
----
-22

query II rowsort
SELECT + 37 + col1 * - col0 AS col2, - 13 AS col0 FROM tab0 AS cor0
----
-1178
-13
-1790
-13
-60
-13

query I rowsort
SELECT col0 * + - 95 + + col2 * - col1 * + 80 + - ( - 34 ) + col2 AS col0 FROM tab2 AS cor0
----
-252406
-317913
-98153

query II rowsort
SELECT DISTINCT + + col2, col0 * col0 * + col0 AS col1 FROM tab0 AS cor0
----
10
658503
47
3375
99
912673

onlyif mysql # aggregate syntax: 
query I rowsort label-3442
SELECT ALL - - COUNT( * ) + - 67 AS col1 FROM tab2 cor0 WHERE + col0 IS NOT NULL
----
-64

skipif mysql # not compatible
query I rowsort label-3442
SELECT ALL - - COUNT ( * ) + - 67 AS col1 FROM tab2 cor0 WHERE + col0 IS NOT NULL
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-3443
SELECT ALL COUNT( * ) * 3 AS col0 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3443
SELECT ALL COUNT ( * ) * 3 AS col0 FROM tab2 AS cor0
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + col1 col1, + 88 FROM tab1 AS cor0
----
-14
88
-47
88
-5
88

onlyif mysql # aggregate syntax: 
query I rowsort label-3445
SELECT - MIN( 63 ) + + 78 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
15

skipif mysql # not compatible
query I rowsort label-3445
SELECT - MIN ( 63 ) + + 78 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-3446
SELECT ALL col1 DIV 5 DIV 22 * + - col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3446
SELECT ALL col1 / 5 / 22 * + - col0 FROM tab2
----
0
0
0

query I rowsort
SELECT - + col1 * - col0 + - col1 FROM tab0 AS cor0
----
1134
1806
96

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT 49 * - 99 / + + 91 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + ( + ( + 58 ) ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
58
58
58

onlyif mysql # DIV for integer division: 
query II rowsort label-3450
SELECT + col1 col0, 42 DIV + ( + col1 ) AS col0 FROM tab2 AS cor0
----
51
0
67
0
77
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3450
SELECT + col1 col0, 42 / + ( + col1 ) AS col0 FROM tab2 AS cor0
----
51
0
67
0
77
0

query I rowsort
SELECT DISTINCT col1 FROM tab2 AS cor0 WHERE NOT + ( - col2 ) IS NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3452
SELECT DISTINCT - SUM( DISTINCT - col1 ) FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-3452
SELECT DISTINCT - SUM ( DISTINCT - col1 ) FROM tab1 AS cor0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-3453
SELECT ALL - + SUM( DISTINCT - 3 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3453
SELECT ALL - + SUM ( DISTINCT - 3 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL - - col1 * + + ( + - col1 ) FROM tab0 AS cor0
----
-1
-441
-6561

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3455
SELECT ALL CAST( NULL AS SIGNED ) * - col0 * col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3455
SELECT ALL CAST ( NULL AS INTEGER ) * - col0 * col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3456
SELECT - 82 DIV col1 * + col1 AS col1 FROM tab0 AS cor0
----
-63
-81
-82

skipif mysql # not compatible
query I rowsort label-3456
SELECT - 82 / col1 * + col1 AS col1 FROM tab0 AS cor0
----
-63
-81
-82

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 + - - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col2 * - col1 * - 43 FROM tab2 AS cor0
----
-132440
-167098
-50439

query I rowsort
SELECT ALL + 94 AS col0 FROM tab0 cor0
----
94
94
94

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 * - 76 - - col0 * - 52 <> 3
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3461
SELECT + - COUNT( * ) FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND + col2
----
0

skipif mysql # not compatible
query I rowsort label-3461
SELECT + - COUNT ( * ) FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND + col2
----
0

query I rowsort
SELECT ALL + col1 + - col2 + - col0 FROM tab0
----
-195
-76
19

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 3 + - col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3464
SELECT + + ( CAST( NULL AS SIGNED ) ), ( CAST( NULL AS SIGNED ) ) FROM tab1 WHERE NOT + col0 * + + col0 NOT IN ( - - col1, col1 )
----

skipif mysql # not compatible
query II rowsort label-3464
SELECT + + ( CAST ( NULL AS INTEGER ) ), ( CAST ( NULL AS INTEGER ) ) FROM tab1 WHERE NOT + col0 * + + col0 NOT IN ( - - col1, col1 )
----

query I rowsort
SELECT ALL - + ( + 90 ) AS col0 FROM tab0 WHERE ( NOT 78 IS NULL )
----
-90
-90
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-3466
SELECT - col2 + + + col2 DIV - col0 AS col0 FROM tab0
----
-10
-100
-50

skipif mysql # not compatible
query I rowsort label-3466
SELECT - col2 + + + col2 / - col0 AS col0 FROM tab0
----
-10
-100
-50

query I rowsort
SELECT + + col2 FROM tab0 cor0 WHERE NULL NOT BETWEEN 99 + - + col0 + + col1 * col0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3468
SELECT DISTINCT * FROM tab1 WHERE - + CAST( 55 AS SIGNED ) + + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3468
SELECT DISTINCT * FROM tab1 WHERE - + CAST ( 55 AS INTEGER ) + + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-3469
SELECT + col0 DIV - + col2 AS col1 FROM tab0
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-3469
SELECT + col0 / - + col2 AS col1 FROM tab0
----
-8
0
0

query II rowsort
SELECT ALL + col2 AS col2, ( 5 ) FROM tab1
----
59
5
68
5
96
5

query I rowsort
SELECT 17 + col1 AS col1 FROM tab2
----
68
84
94

query I rowsort
SELECT 6 + + 0 AS col2 FROM tab2
----
6
6
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3473
SELECT ALL - COUNT( * ) + + - 2 FROM tab2 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-3473
SELECT ALL - COUNT ( * ) + + - 2 FROM tab2 AS cor0
----
-5

query I rowsort
SELECT ALL col2 FROM tab1 AS cor0 WHERE 22 * 67 IS NULL
----

query I rowsort
SELECT DISTINCT + - col1 + - - col0 FROM tab1 AS cor0
----
37
44
80

query I rowsort
SELECT col2 + - 47 AS col2 FROM tab0 AS cor0
----
-37
0
52

onlyif mysql # aggregate syntax: 
query I rowsort label-3477
SELECT DISTINCT + + 8 - + COUNT( * ) col1 FROM tab2 AS cor0
----
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3477
SELECT DISTINCT + + 8 - + COUNT ( * ) col1 FROM tab2 AS cor0
----
5

query I rowsort
SELECT DISTINCT - ( + col2 ) * + 67 * - - 73 FROM tab1 cor0
----
-288569
-332588
-469536

query I rowsort
SELECT ALL + col0 AS col0 FROM tab1 AS cor0 WHERE NOT + 73 / + col1 * - col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 76 col0 FROM tab1 AS cor0
----
-76
-76
-76

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN ( NULL ) AND - 29
----

query II rowsort
SELECT ALL - col1 * - + col1 AS col1, ( + ( - - 53 ) ) AS col0 FROM tab0
----
1
53
441
53
6561
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3483
SELECT DISTINCT MAX( col2 ) AS col1, CAST( - 94 AS SIGNED ) FROM tab2
----
58
-94

skipif mysql # not compatible
query II rowsort label-3483
SELECT DISTINCT MAX ( col2 ) AS col1, CAST ( - 94 AS INTEGER ) FROM tab2
----
58
-94

query I rowsort
SELECT col0 * col2 * + - col2 * - col2 AS col0 FROM tab1
----
17457215
28613312
45121536

query I rowsort
SELECT ALL col2 * + col2 * 48 * - 88 AS col1 FROM tab0
----
-41399424
-422400
-9330816

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3486
SELECT + COUNT( * ) DIV - ( 28 ) AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3486
SELECT + COUNT ( * ) / - ( 28 ) AS col0 FROM tab0
----
0

query I rowsort
SELECT DISTINCT 20 AS col0 FROM tab2 WHERE NOT - - 77 = NULL
----

query I rowsort
SELECT 85 * + - col2 AS col2 FROM tab1
----
-5015
-5780
-8160

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3489
SELECT DISTINCT MIN( col2 ) AS col2, - MAX( - col0 ) + - MIN( col1 ) * - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
10
NULL

skipif mysql # not compatible
query II rowsort label-3489
SELECT DISTINCT MIN ( col2 ) AS col2, - MAX ( - col0 ) + - MIN ( col1 ) * - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
10
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 NOT BETWEEN - col0 AND + - col1 * col1
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - ( col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3492
SELECT - 73 * - - ( - SUM( + col0 ) ) FROM tab1
----
16571

skipif mysql # not compatible
query I rowsort label-3492
SELECT - 73 * - - ( - SUM ( + col0 ) ) FROM tab1
----
16571

query II rowsort
SELECT - col1, 68 AS col0 FROM tab0 AS cor0 WHERE NOT NULL = + 26
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3494
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col1 + 99 NOT IN ( - - 72 * + CAST( NULL AS SIGNED ) * col2, + col1 )
----

skipif mysql # not compatible
query III rowsort label-3494
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col1 + 99 NOT IN ( - - 72 * + CAST ( NULL AS INTEGER ) * col2, + col1 )
----

query I rowsort
SELECT + - col1 * - - 17 FROM tab1 AS cor0
----
-238
-799
-85

query I rowsort
SELECT DISTINCT 74 * + col2 FROM tab2 cor0
----
1702
2960
4292

onlyif mysql # DIV for integer division: 
query II rowsort label-3497
SELECT - ( - - 34 ) DIV - col1, col0 FROM tab0 AS cor0
----
0
15
1
87
34
97

skipif mysql # not compatible
query II rowsort label-3497
SELECT - ( - - 34 ) / - col1, col0 FROM tab0 AS cor0
----
0
15
1
87
34
97

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3498
SELECT ALL + 85 DIV + col0 - + CAST( CAST( - col1 AS SIGNED ) AS SIGNED ) - col2 FROM tab0 AS cor0
----
-98
11
39

skipif mysql # not compatible
query I rowsort label-3498
SELECT ALL + 85 / + col0 - + CAST ( CAST ( - col1 AS INTEGER ) AS INTEGER ) - col2 FROM tab0 AS cor0
----
-98
11
39

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN + 43 AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3500
SELECT ALL + CAST( NULL AS DECIMAL ) + - + col2 / + 37 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3500
SELECT ALL + CAST ( NULL AS REAL ) + - + col2 / + 37 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col0 + - ( col2 ) FROM tab0
----
-196
-62
-97

query I rowsort
SELECT DISTINCT + 98 * + col1 AS col2 FROM tab2
----
4998
6566
7546

onlyif mysql # aggregate syntax: 
query I rowsort label-3503
SELECT + - 40 + - COUNT( * ) AS col0 FROM tab1 cor0
----
-43

skipif mysql # not compatible
query I rowsort label-3503
SELECT + - 40 + - COUNT ( * ) AS col0 FROM tab1 cor0
----
-43

query I rowsort
SELECT ALL - col1 FROM tab0 AS cor0 WHERE NOT ( + 2 * col2 IS NULL )
----
-1
-21
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3505
SELECT + col1 - CAST( NULL AS SIGNED ) * - + col1 * - 43 col0 FROM tab2 AS cor0 WHERE ( + col1 ) = - 72 * col1 - - col1
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3505
SELECT + col1 - CAST ( NULL AS INTEGER ) * - + col1 * - 43 col0 FROM tab2 AS cor0 WHERE ( + col1 ) = - 72 * col1 - - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3506
SELECT 57 + 86 DIV - 37 AS col0 FROM tab1 AS cor0
----
55
55
55

skipif mysql # not compatible
query I rowsort label-3506
SELECT 57 + 86 / - 37 AS col0 FROM tab1 AS cor0
----
55
55
55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col2 FROM tab1 AS cor0 WHERE NULL < ( 38 ) / - 0
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( 4 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 6 * - 31 FROM tab2 AS cor0
----
-186
-186
-186

query I rowsort
SELECT DISTINCT - 80 + + col0 FROM tab0 AS cor0
----
-65
17
7

query III rowsort
SELECT ALL - 27 AS col2, col0 AS col1, - + col0 * + col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - 43 / AVG ( + col0 ) AS col1 FROM tab1 cor0 WHERE + col1 IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3513
SELECT ALL - col2 DIV + 52 + - 56 FROM tab2 AS cor0
----
-56
-56
-57

skipif mysql # not compatible
query I rowsort label-3513
SELECT ALL - col2 / + 52 + - 56 FROM tab2 AS cor0
----
-56
-56
-57

query I rowsort
SELECT + col2 - + - col2 - - col1 AS col2 FROM tab0 AS cor0
----
175
199
41

query III rowsort
SELECT * FROM tab2 WHERE NOT - + 37 + - - col2 / - 70 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 83 * col1 - ( - + col1 ) < - - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3517
SELECT + 3 DIV + - col0 col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3517
SELECT + 3 / + - col0 col1 FROM tab0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3518
SELECT ALL + CAST( - 63 AS SIGNED ) AS col2 FROM tab1
----
-63
-63
-63

skipif mysql # not compatible
query I rowsort label-3518
SELECT ALL + CAST ( - 63 AS INTEGER ) AS col2 FROM tab1
----
-63
-63
-63

query I rowsort
SELECT DISTINCT - - col0 AS col2 FROM tab1 WHERE NOT - ( col0 ) IS NULL
----
51
85
91

query I rowsort
SELECT 62 * + col0 AS col2 FROM tab0
----
5394
6014
930

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3521
SELECT DISTINCT + col2 * + col0 - + - CAST( - 50 AS SIGNED ) DIV - col2 AS col1 FROM tab2 AS cor0
----
1060
2561
4350

skipif mysql # not compatible
query I rowsort label-3521
SELECT DISTINCT + col2 * + col0 - + - CAST ( - 50 AS INTEGER ) / - col2 AS col1 FROM tab2 AS cor0
----
1060
2561
4350

query II rowsort
SELECT - col0, 77 AS col1 FROM tab0 AS cor0
----
-15
77
-87
77
-97
77

query II rowsort
SELECT + col2, 16 FROM tab1 AS cor0
----
59
16
68
16
96
16

query I rowsort
SELECT + col0 + 67 AS col1 FROM tab2
----
113
131
142

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3525
SELECT DISTINCT col0 + CAST( NULL AS SIGNED ) * 50 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3525
SELECT DISTINCT col0 + CAST ( NULL AS INTEGER ) * 50 FROM tab1
----
NULL

query I rowsort
SELECT + 5 + + col1 * - 15 FROM tab2
----
-1000
-1150
-760

query I rowsort
SELECT col2 AS col0 FROM tab1 WHERE ( + col2 ) BETWEEN ( col1 ) AND 67
----
59

query III rowsort
SELECT * FROM tab0 WHERE ( 83 ) + - col2 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE ( - col1 ) NOT IN ( + col2 / - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab2 WHERE NOT ( NULL ) = col2 + 22
----

query I rowsort
SELECT col1 - - 40 AS col0 FROM tab2
----
107
117
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3532
SELECT - SUM( ( 5 ) ) * COUNT( * ) FROM tab2
----
-45

skipif mysql # not compatible
query I rowsort label-3532
SELECT - SUM ( ( 5 ) ) * COUNT ( * ) FROM tab2
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3533
SELECT col2 - - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3533
SELECT col2 - - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 93 - col1 AS col2 FROM tab1
----
46
79
88

query I rowsort
SELECT col0 * - 55 + col1 FROM tab2
----
-2479
-3443
-4058

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3536
SELECT * FROM tab1 WHERE + CAST( NULL AS SIGNED ) BETWEEN ( col0 ) AND + col0
----

skipif mysql # not compatible
query III rowsort label-3536
SELECT * FROM tab1 WHERE + CAST ( NULL AS INTEGER ) BETWEEN ( col0 ) AND + col0
----

query I rowsort
SELECT col2 FROM tab1 WHERE NOT ( 36 ) < ( 57 * 15 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + col0 + + col0 ) BETWEEN col0 * ( + col1 ) AND col0 + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3539
SELECT - COUNT( * ) * 25 AS col0 FROM tab1
----
-75

skipif mysql # not compatible
query I rowsort label-3539
SELECT - COUNT ( * ) * 25 AS col0 FROM tab1
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-3540
SELECT + 72 * + COUNT( col2 ) AS col1 FROM tab0
----
216

skipif mysql # not compatible
query I rowsort label-3540
SELECT + 72 * + COUNT ( col2 ) AS col1 FROM tab0
----
216

onlyif mysql # aggregate syntax: 
query I rowsort label-3541
SELECT DISTINCT + COUNT( * ) * 20 AS col1 FROM tab2
----
60

skipif mysql # not compatible
query I rowsort label-3541
SELECT DISTINCT + COUNT ( * ) * 20 AS col1 FROM tab2
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-3542
SELECT MAX( + col2 ) + - 89 * + 75 AS col0 FROM tab1
----
-6579

skipif mysql # not compatible
query I rowsort label-3542
SELECT MAX ( + col2 ) + - 89 * + 75 AS col0 FROM tab1
----
-6579

query I rowsort
SELECT + col1 FROM tab1 WHERE NULL IN ( - col2 + - col2 )
----

query I rowsort
SELECT DISTINCT col1 * col1 + - col2 FROM tab1
----
-34
100
2141

query I rowsort
SELECT ALL - 71 * + col0 FROM tab1
----
-3621
-6035
-6461

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 41 IN ( col2 / - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 FROM tab1 WHERE NULL IN ( - ( - col0 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3548
SELECT ALL 27 * - MIN( ALL - col2 ) col0 FROM tab0 AS cor0 WHERE - col2 * - col1 IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3548
SELECT ALL 27 * - MIN ( ALL - col2 ) col0 FROM tab0 AS cor0 WHERE - col2 * - col1 IS NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 76 / ( 4 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3550
SELECT + CAST( NULL AS DECIMAL ) * 57 - + col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3550
SELECT + CAST ( NULL AS REAL ) * 57 - + col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 AS col0 FROM tab1 WHERE NOT - col0 NOT BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3552
SELECT 11 DIV + 6 + - 23 FROM tab2
----
-22
-22
-22

skipif mysql # not compatible
query I rowsort label-3552
SELECT 11 / + 6 + - 23 FROM tab2
----
-22
-22
-22

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - col1 * col0 ) < NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL >= 71
----

query I rowsort
SELECT + - 83 + 13 * col1 AS col2 FROM tab0 AS cor0
----
-70
190
970

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3556
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL >= CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3556
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL >= CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT - col2 + - 39 AS col2 FROM tab0 AS cor0
----
-138
-49
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-3558
SELECT DISTINCT + ( SUM( 93 ) ) FROM tab1 AS cor0
----
279

skipif mysql # not compatible
query I rowsort label-3558
SELECT DISTINCT + ( SUM ( 93 ) ) FROM tab1 AS cor0
----
279

onlyif mysql # aggregate syntax: 
query I rowsort label-3559
SELECT DISTINCT + SUM( DISTINCT + col1 ) * + 7 FROM tab1 AS cor0
----
462

skipif mysql # not compatible
query I rowsort label-3559
SELECT DISTINCT + SUM ( DISTINCT + col1 ) * + 7 FROM tab1 AS cor0
----
462

onlyif mysql # aggregate syntax: 
query I rowsort label-3560
SELECT ALL - SUM( ALL + col2 ) AS col1 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-3560
SELECT ALL - SUM ( ALL + col2 ) AS col1 FROM tab0 AS cor0
----
-156

query I rowsort
SELECT ALL 99 FROM tab0 WHERE NULL NOT BETWEEN + col1 AND - col2 * col0
----

query III rowsort
SELECT ALL * FROM tab2 WHERE ( col0 * col2 ) BETWEEN col0 AND col2 * 33
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3563
SELECT - SUM( - 36 ) col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
108

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3563
SELECT - SUM ( - 36 ) col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
108

query I rowsort
SELECT DISTINCT ( + 18 ) AS col2 FROM tab2
----
18

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col0 * col0 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3566
SELECT MIN( - ( - col0 ) ) * - 98 AS col1 FROM tab1
----
-4998

skipif mysql # not compatible
query I rowsort label-3566
SELECT MIN ( - ( - col0 ) ) * - 98 AS col1 FROM tab1
----
-4998

onlyif mysql # aggregate syntax: 
query I rowsort label-3567
SELECT ( SUM( + col2 ) ) AS col2 FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-3567
SELECT ( SUM ( + col2 ) ) AS col2 FROM tab1
----
223

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) NOT BETWEEN ( col2 ) AND col1
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3569
SELECT - CAST( + + CAST( NULL AS DECIMAL ) AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3569
SELECT - CAST ( + + CAST ( NULL AS REAL ) AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3570
SELECT 93 * - COUNT( 68 ) DIV - COUNT( * ) col1 FROM tab1
----
93

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3570
SELECT 93 * - COUNT ( 68 ) / - COUNT ( * ) col1 FROM tab1
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3571
SELECT + ( 13 ) FROM tab0 AS cor0 WHERE NOT NULL IN ( col2 + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-3571
SELECT + ( 13 ) FROM tab0 AS cor0 WHERE NOT NULL IN ( col2 + CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT - - 60 AS col1 FROM tab0 AS cor0
----
60
60
60

onlyif mysql # aggregate syntax: 
query I rowsort label-3573
SELECT MAX( ALL - - col0 ) FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-3573
SELECT MAX ( ALL - - col0 ) FROM tab1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3574
SELECT COUNT( * ) * 6 + COUNT( * ) AS col0 FROM tab1
----
21

skipif mysql # not compatible
query I rowsort label-3574
SELECT COUNT ( * ) * 6 + COUNT ( * ) AS col0 FROM tab1
----
21

query I rowsort
SELECT + col1 + col0 + + col2 * col0 FROM tab2
----
1155
2701
4492

query III rowsort
SELECT * FROM tab1 WHERE NOT 50 * col0 - + 40 / 47 >= col2 + - 62
----

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE ( col1 + - 56 ) IS NOT NULL
----
10
47
99

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab0 AS cor0 WHERE NOT ( + col1 ) NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE col2 * + - 89 * + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-3580
SELECT - ( - 6 ) DIV col1 AS col1 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3580
SELECT - ( - 6 ) / col1 AS col1 FROM tab1 AS cor0
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + + 16 + 84 * col2 col0 FROM tab2 AS cor0
----
2668
4384
6072

query II rowsort
SELECT ALL col2 + + 81 AS col2, + 32 FROM tab1
----
140
32
149
32
177
32

query I rowsort
SELECT DISTINCT + 35 FROM tab0 WHERE NULL BETWEEN ( - col0 ) AND col1 + col1 * 94
----

query I rowsort
SELECT DISTINCT 81 + col2 + + - col1 AS col2 FROM tab0
----
179
47
70

onlyif mysql # DIV for integer division: 
query I rowsort label-3585
SELECT DISTINCT + col0 DIV col2 + + col1 AS col0 FROM tab1
----
14
48
6

skipif mysql # not compatible
query I rowsort label-3585
SELECT DISTINCT + col0 / col2 + + col1 AS col0 FROM tab1
----
14
48
6

query I rowsort
SELECT + col0 + + 77 FROM tab1 AS cor0
----
128
162
168

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 81 + - 59 * + col1 col2 FROM tab1 AS cor0
----
-214
-2692
-745

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3588
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col1 BETWEEN ( col0 ) AND col0 * - CAST( NULL AS SIGNED )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3588
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col1 BETWEEN ( col0 ) AND col0 * - CAST ( NULL AS INTEGER )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 38 - - col1 FROM tab0
----
-17
-37
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3590
SELECT CAST( - ( - - 29 ) AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 0cc9ddad93fc783055518ae4b6be054b

skipif mysql # not compatible
query I rowsort label-3590
SELECT CAST ( - ( - - 29 ) AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 0cc9ddad93fc783055518ae4b6be054b

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3591
SELECT DISTINCT col2 + - CAST( - - col1 AS SIGNED ) * + 21 * - col0 FROM tab1
----
15090
8984
89885

skipif mysql # not compatible
query I rowsort label-3591
SELECT DISTINCT col2 + - CAST ( - - col1 AS INTEGER ) * + 21 * - col0 FROM tab1
----
15090
8984
89885

query I rowsort
SELECT 97 FROM tab2 WHERE ( + col0 * ( + col2 ) ) > ( + col0 + 84 )
----
97
97
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3593
SELECT DISTINCT CAST( + col1 AS SIGNED ) * col2 AS col1 FROM tab0
----
210
3807
99

skipif mysql # not compatible
query I rowsort label-3593
SELECT DISTINCT CAST ( + col1 AS INTEGER ) * col2 AS col1 FROM tab0
----
210
3807
99

query I rowsort
SELECT DISTINCT + col0 FROM tab2 WHERE NOT NULL <= + col1
----

query I rowsort
SELECT - + ( - + 96 ) FROM tab0 AS cor0
----
96
96
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3596
SELECT ALL ( + COUNT( 43 ) ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3596
SELECT ALL ( + COUNT ( 43 ) ) AS col1 FROM tab0 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-3597
SELECT ALL col0 col0, - col2 DIV - 72 FROM tab2 cor0
----
46
0
64
0
75
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3597
SELECT ALL col0 col0, - col2 / - 72 FROM tab2 cor0
----
46
0
64
0
75
0

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab2 AS cor0 WHERE + col1 IN ( + + col0 )
----

query I rowsort
SELECT DISTINCT 88 * - 8 * + col2 AS col0 FROM tab2 AS cor0
----
-16192
-28160
-40832

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3600
SELECT ALL + col0 AS col2 FROM tab1 AS cor0 WHERE ( + 67 * - col2 - col2 / - CAST( NULL AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3600
SELECT ALL + col0 AS col2 FROM tab1 AS cor0 WHERE ( + 67 * - col2 - col2 / - CAST ( NULL AS INTEGER ) ) IS NOT NULL
----

query II rowsort
SELECT ALL 37, col0 AS col0 FROM tab0
----
37
15
37
87
37
97

query I rowsort
SELECT ( + - col2 ) AS col1 FROM tab2 WHERE NOT NULL <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3603
SELECT col2 col0, + CAST( - 92 AS SIGNED ) FROM tab0
----
10
-92
47
-92
99
-92

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3603
SELECT col2 col0, + CAST ( - 92 AS INTEGER ) FROM tab0
----
10
-92
47
-92
99
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3604
SELECT ALL + CAST( + ( - col1 ) AS SIGNED ) FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-3604
SELECT ALL + CAST ( + ( - col1 ) AS INTEGER ) FROM tab2
----
-51
-67
-77

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + - 8 <= - 57
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE NOT + ( - + 76 ) * col0 BETWEEN col1 AND - 24
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3607
SELECT ALL + COUNT( * ) / CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3607
SELECT ALL + COUNT ( * ) / CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL

query I rowsort
SELECT + col1 * - col1 * + col0 AS col2 FROM tab2
----
-119646
-336675
-379456

onlyif mysql # DIV for integer division: 
query I rowsort label-3609
SELECT ( - - col0 ) DIV + col0 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3609
SELECT ( - - col0 ) / + col0 FROM tab1
----
1
1
1

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT col0 + - col2 <> - + col2 + + col0 + col0
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT + col2 <> - - 56 * + ( + + col0 ) + - col1 + + ( col1 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT 45 * col1 + - ( - col0 ) > NULL
----

query I rowsort
SELECT DISTINCT col1 * col0 + - - col0 FROM tab0
----
1230
1914
194

query I rowsort
SELECT + ( - 78 ) AS col0 FROM tab0
----
-78
-78
-78

query I rowsort
SELECT col2 + - col2 / - 52 FROM tab2 WHERE - 62 + + col0 - + - col2 IN ( - + col2 * 18 + 32 + col2 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3616
SELECT + SUM( ALL + 4 ), - 43 AS col2 FROM tab1 AS cor0
----
12
-43

skipif mysql # not compatible
query II rowsort label-3616
SELECT + SUM ( ALL + 4 ), - 43 AS col2 FROM tab1 AS cor0
----
12
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3617
SELECT ALL CAST( NULL AS SIGNED ) + col0 + - + 70 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3617
SELECT ALL CAST ( NULL AS INTEGER ) + col0 + - + 70 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3618
SELECT DISTINCT - - ( ( + COUNT( * ) ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3618
SELECT DISTINCT - - ( ( + COUNT ( * ) ) ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT 72 AS col2 FROM tab1 AS cor0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-3620
SELECT 86 + + + MIN( + col0 ) FROM tab2
----
132

skipif mysql # not compatible
query I rowsort label-3620
SELECT 86 + + + MIN ( + col0 ) FROM tab2
----
132

query I rowsort
SELECT DISTINCT + col2 + - 17 FROM tab2
----
23
41
6

onlyif mysql # DIV for integer division: 
query I rowsort label-3622
SELECT 27 DIV - col2 AS col0 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3622
SELECT 27 / - col2 AS col0 FROM tab2
----
-1
0
0

query I rowsort
SELECT 38 FROM tab2 WHERE NOT - col1 * + + 91 / - 5 BETWEEN + 45 * 32 - + + col1 AND col0 * + 79 OR NOT ( col2 * + col2 ) > NULL
----
38
38

onlyif mysql # aggregate syntax: 
query I rowsort label-3624
SELECT ALL - 0 + + MIN( + col2 ) FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-3624
SELECT ALL - 0 + + MIN ( + col2 ) FROM tab1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-3625
SELECT COUNT( * ) * + 61 col1 FROM tab0
----
183

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3625
SELECT COUNT ( * ) * + 61 col1 FROM tab0
----
183

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 1 col0 FROM tab2
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3627
SELECT + - CAST( + ( 4 ) AS SIGNED ) FROM tab1 WHERE col1 / + ( - col1 ) + 3 - + 15 IS NOT NULL
----
-4
-4
-4

skipif mysql # not compatible
query I rowsort label-3627
SELECT + - CAST ( + ( 4 ) AS INTEGER ) FROM tab1 WHERE col1 / + ( - col1 ) + 3 - + 15 IS NOT NULL
----
-4
-4
-4

onlyif mysql # DIV for integer division: 
query II rowsort label-3628
SELECT + ( 55 ) DIV col0 AS col1, - col0 * 12 AS col1 FROM tab0
----
0
-1044
0
-1164
3
-180

skipif mysql # not compatible
query II rowsort label-3628
SELECT + ( 55 ) / col0 AS col1, - col0 * 12 AS col1 FROM tab0
----
0
-1044
0
-1164
3
-180

query III rowsort
SELECT * FROM tab2 WHERE + col2 * 41 * - 40 * + col1 NOT IN ( - 19 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col2 + + - col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3631
SELECT ALL col0 AS col1 FROM tab1 AS cor0 WHERE ( - ( CAST( + col2 AS SIGNED ) ) ) * col1 < - col0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-3631
SELECT ALL col0 AS col1 FROM tab1 AS cor0 WHERE ( - ( CAST ( + col2 AS INTEGER ) ) ) * col1 < - col0
----
51
85
91

query I rowsort
SELECT DISTINCT + - col2 - - col2 FROM tab0 cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 9 * + - col2 + - 22 + - col1 AS col2, + ( - - 36 ) * + col1 col0 FROM tab2 AS cor0
----
134
1836
261
2772
433
2412

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 80 * - col1 * + + 62 AS col2, + 12 col0 FROM tab1 AS cor0
----
233120
12
24800
12
69440
12

onlyif mysql # aggregate syntax: 
query I rowsort label-3635
SELECT ALL - 40 - COUNT( * ) FROM tab2 AS cor0
----
-43

skipif mysql # not compatible
query I rowsort label-3635
SELECT ALL - 40 - COUNT ( * ) FROM tab2 AS cor0
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-3636
SELECT DISTINCT 82 * COUNT( col2 ) AS col2 FROM tab1
----
246

skipif mysql # not compatible
query I rowsort label-3636
SELECT DISTINCT 82 * COUNT ( col2 ) AS col2 FROM tab1
----
246

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + - 8 col0 FROM tab2 WHERE NOT - - col2 * col2 - - col2 IN ( col2 + - + 72, col2 + - 80 * col2 )
----
15
32
50

onlyif mysql # aggregate syntax: 
query I rowsort label-3638
SELECT DISTINCT COUNT( * ) FROM tab2 AS cor0 WHERE 73 - + - col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3638
SELECT DISTINCT COUNT ( * ) FROM tab2 AS cor0 WHERE 73 - + - col1 IS NULL
----
0

query II rowsort
SELECT - ( 37 ) AS col1, col2 + - col1 AS col0 FROM tab2 AS cor0
----
-37
-28
-37
-37
-37
-9

query II rowsort
SELECT 7 AS col1, + col1 + - + col1 - + - col0 FROM tab0
----
7
15
7
87
7
97

query I rowsort
SELECT DISTINCT - ( 76 ) AS col1 FROM tab1
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-3642
SELECT DISTINCT - SUM( DISTINCT - col0 ) col1 FROM tab0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3642
SELECT DISTINCT - SUM ( DISTINCT - col0 ) col1 FROM tab0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT ALL - ( - ( - - ( - - col0 ) ) ) FROM tab0
----
15
87
97

query III rowsort
SELECT * FROM tab1 WHERE NOT + 30 NOT IN ( 61, + 12 + + - 27 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 94 AS col0, col1 + 74 col1 FROM tab2
----
94
125
94
141
94
151

query I rowsort
SELECT + 49 * 36 FROM tab1
----
1764
1764
1764

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3647
SELECT DISTINCT - CAST( + - col1 AS SIGNED ) AS col1 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-3647
SELECT DISTINCT - CAST ( + - col1 AS INTEGER ) AS col1 FROM tab2
----
51
67
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * + + 55 col1 FROM tab0 AS cor0
----
-2585
-5445
-550

query I rowsort
SELECT + + ( col2 ) * - - col2 FROM tab1 AS cor0
----
3481
4624
9216

onlyif mysql # aggregate syntax: 
query II rowsort label-3650
SELECT DISTINCT + COUNT( * ), + COUNT( + col1 ) FROM tab1 cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-3650
SELECT DISTINCT + COUNT ( * ), + COUNT ( + col1 ) FROM tab1 cor0
----
3
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 38 BETWEEN - - 13 + + - col0 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL < 60
----

query I rowsort
SELECT DISTINCT - - col0 + 57 * 51 FROM tab1 AS cor0
----
2958
2992
2998

query III rowsort
SELECT DISTINCT + col1 AS col0, + 59 AS col0, - - ( - - col0 ) + col1 + - + col2 * col1 AS col2 FROM tab0 cor0
----
9 values hashing to 6e1b06dedf37b4aac865f802864899cb

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( col1 ) <> - 19
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL >= col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3657
SELECT - COUNT( ALL + + col2 ) AS col2 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3657
SELECT - COUNT ( ALL + + col2 ) AS col2 FROM tab0 cor0
----
-3

query II rowsort
SELECT ( - col0 ) AS col0, - col1 FROM tab2 AS cor0
----
-46
-51
-64
-77
-75
-67

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3659
SELECT DISTINCT + - col0 AS col0, + CAST( col0 AS SIGNED ) FROM tab0 AS cor0
----
-15
15
-87
87
-97
97

skipif mysql # not compatible
query II rowsort label-3659
SELECT DISTINCT + - col0 AS col0, + CAST ( col0 AS INTEGER ) FROM tab0 AS cor0
----
-15
15
-87
87
-97
97

query I rowsort
SELECT + 84 * + col0 FROM tab2 AS cor0
----
3864
5376
6300

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3661
SELECT - 52 DIV COUNT( * ) FROM tab0 AS cor0
----
-17

skipif mysql # not compatible
query I rowsort label-3661
SELECT - 52 / COUNT ( * ) FROM tab0 AS cor0
----
-17

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT 69 + + - 2 NOT IN ( + + 14 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3663
SELECT COUNT( DISTINCT - 1 ), CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-3663
SELECT COUNT ( DISTINCT - 1 ), CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
1
NULL

query I rowsort
SELECT col0 - 62 * - - 35 FROM tab0 AS cor0
----
-2073
-2083
-2155

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3665
SELECT - 88 - - CAST( NULL AS SIGNED ) + + - COUNT( * ) + 99 AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3665
SELECT - 88 - - CAST ( NULL AS INTEGER ) + + - COUNT ( * ) + 99 AS col1 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT col1 * 46 * + 73 FROM tab1
----
157826
16790
47012

query III rowsort
SELECT * FROM tab2 WHERE - + col1 + col1 BETWEEN + + col0 * + col1 AND + + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3668
SELECT + 54 - - col0 + - col2 DIV + + col2 FROM tab0
----
140
150
68

skipif mysql # not compatible
query I rowsort label-3668
SELECT + 54 - - col0 + - col2 / + + col2 FROM tab0
----
140
150
68

query I rowsort
SELECT - - 29 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3670
SELECT ALL + 67 * - CAST( NULL AS SIGNED ) * col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3670
SELECT ALL + 67 * - CAST ( NULL AS INTEGER ) * col2 FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT col0 - + + col0 AS col2, + 90 FROM tab2
----
0
90
0
90
0
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3672
SELECT ALL COUNT( * ) + 23 AS col1 FROM tab1
----
26

skipif mysql # not compatible
query I rowsort label-3672
SELECT ALL COUNT ( * ) + 23 AS col1 FROM tab1
----
26

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col2 / - col2 + - col0 + - 23 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT + 27, 74 AS col1 FROM tab1, tab0 AS cor0
----
27
74

onlyif mysql # aggregate syntax: 
query I rowsort label-3675
SELECT ALL - 88 * 22 + - COUNT( + 64 ) * - - 51 FROM tab1
----
-2089

skipif mysql # not compatible
query I rowsort label-3675
SELECT ALL - 88 * 22 + - COUNT ( + 64 ) * - - 51 FROM tab1
----
-2089

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL <= ( col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col0 NOT IN ( col1, - col2 * + 8 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3678
SELECT DISTINCT col1 * + col2 AS col0, + col1 + - CAST( NULL AS SIGNED ) + - ( - + ( + col1 ) ) / + col1 FROM tab2 AS cor0
----
1173
NULL
3080
NULL
3886
NULL

skipif mysql # not compatible
query II rowsort label-3678
SELECT DISTINCT col1 * + col2 AS col0, + col1 + - CAST ( NULL AS INTEGER ) + - ( - + ( + col1 ) ) / + col1 FROM tab2 AS cor0
----
1173
NULL
3080
NULL
3886
NULL

query I rowsort
SELECT ( + 47 ) AS col1 FROM tab0
----
47
47
47

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col0 * + col0 / - - col0 * + 59 * - 57 - - 79 * - 89 * - - col0 <> NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3681
SELECT 11 * - ( - COUNT( * ) ) AS col0, - 93 AS col2 FROM tab1
----
33
-93

skipif mysql # not compatible
query II rowsort label-3681
SELECT 11 * - ( - COUNT ( * ) ) AS col0, - 93 AS col2 FROM tab1
----
33
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3682
SELECT + AVG ( ALL + col2 ) AS col2 FROM tab0 WHERE NOT col1 IS NOT NULL AND - col1 = + col2 * - - 78 - - CAST( + col2 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3682
SELECT + AVG ( ALL + col2 ) AS col2 FROM tab0 WHERE NOT col1 IS NOT NULL AND - col1 = + col2 * - - 78 - - CAST ( + col2 AS INTEGER )
----
NULL

query I rowsort
SELECT col2 * + col2 * + 96 AS col1 FROM tab2 AS cor0
----
153600
322944
50784

query I rowsort
SELECT DISTINCT - col2 * + - col0 FROM tab2 AS cor0
----
1058
2560
4350

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3685
SELECT DISTINCT + CAST( NULL AS SIGNED ) / col0 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3685
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / col0 AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3686
SELECT ALL col2 DIV - ( - 40 ) AS col0, col1 FROM tab1 AS cor0
----
1
47
1
5
2
14

skipif mysql # not compatible
query II rowsort label-3686
SELECT ALL col2 / - ( - 40 ) AS col0, col1 FROM tab1 AS cor0
----
1
47
1
5
2
14

query I rowsort
SELECT - col1 FROM tab0 AS cor0 WHERE NOT 81 NOT IN ( - 55, col2 * - 78 + - col2, + 87 + - + 79 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3688
SELECT DISTINCT + + 83 DIV - 28 AS col1 FROM tab1 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-3688
SELECT DISTINCT + + 83 / - 28 AS col1 FROM tab1 AS cor0
----
-2

query I rowsort
SELECT ALL + ( - 98 ) AS col0 FROM tab0
----
-98
-98
-98

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( 53 / - col0 + - - col0 ) NOT BETWEEN ( NULL ) AND - col1
----

query I rowsort
SELECT DISTINCT col0 * 37 + - - 96 * col1 + - col2 AS col2 FROM tab0
----
3586
5225
8284

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3692
SELECT DISTINCT - col2 * + 40 * - CAST( + ( + + 28 ) AS SIGNED ) AS col2 FROM tab2
----
25760
44800
64960

skipif mysql # not compatible
query I rowsort label-3692
SELECT DISTINCT - col2 * + 40 * - CAST ( + ( + + 28 ) AS INTEGER ) AS col2 FROM tab2
----
25760
44800
64960

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3693
SELECT ALL * FROM tab0 WHERE ( + - col2 - - CAST( 10 AS DECIMAL ) * - 78 ) < ( NULL )
----

skipif mysql # not compatible
query III rowsort label-3693
SELECT ALL * FROM tab0 WHERE ( + - col2 - - CAST ( 10 AS REAL ) * - 78 ) < ( NULL )
----

query I rowsort
SELECT ALL + 83 * + col1 AS col2 FROM tab2
----
4233
5561
6391

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3695
SELECT + - CAST( NULL AS SIGNED ) * - + MAX( 31 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3695
SELECT + - CAST ( NULL AS INTEGER ) * - + MAX ( 31 ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - - 53 * 61 AS col2 FROM tab0 AS cor0
----
3233
3233
3233

query I rowsort
SELECT ALL col0 * col1 + + + col1 AS col0 FROM tab0
----
1296
1848
98

onlyif mysql # DIV for integer division: 
query I rowsort label-3698
SELECT + 32 DIV col0 AS col0 FROM tab0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-3698
SELECT + 32 / col0 AS col0 FROM tab0
----
0
0
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3699
SELECT DISTINCT - 61 * - - 30 + - 65 * + 68 * - ( - COUNT( * ) ) - 96 AS col2 FROM tab2
----
-15186

skipif mysql # not compatible
query I rowsort label-3699
SELECT DISTINCT - 61 * - - 30 + - 65 * + 68 * - ( - COUNT ( * ) ) - 96 AS col2 FROM tab2
----
-15186

query I rowsort
SELECT ALL - ( - + 93 ) AS col1 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde

onlyif mysql # aggregate syntax: 
query I rowsort label-3701
SELECT 9 + - MIN( ALL - - ( + 75 ) ) + - + 9 FROM tab0 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-3701
SELECT 9 + - MIN ( ALL - - ( + 75 ) ) + - + 9 FROM tab0 AS cor0
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3702
SELECT col1 + + - col0 + + col0 * col2 + + - CAST( + col0 AS SIGNED ) - CAST( NULL AS SIGNED ) / + col2 / col2 + - col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3702
SELECT col1 + + - col0 + + col0 * col2 + + - CAST ( + col0 AS INTEGER ) - CAST ( NULL AS INTEGER ) / + col2 / col2 + - col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 81 FROM tab2 cor0
----
81

query I rowsort
SELECT ( + col1 ) FROM tab1 AS cor0 WHERE col0 <= NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 NOT BETWEEN ( NULL ) AND ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3706
SELECT - COUNT( * ) + + CAST( - - 75 AS SIGNED ), CAST( NULL AS SIGNED ) col0 FROM tab2 AS cor0
----
72
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3706
SELECT - COUNT ( * ) + + CAST ( - - 75 AS INTEGER ), CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0
----
72
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3707
SELECT ALL CAST( - 97 AS SIGNED ) + + ( - + ( - - col2 ) ), - 61 * - col2 + - col2 AS col2 FROM tab2 AS cor0
----
-120
1380
-137
2400
-155
3480

skipif mysql # not compatible
query II rowsort label-3707
SELECT ALL CAST ( - 97 AS INTEGER ) + + ( - + ( - - col2 ) ), - 61 * - col2 + - col2 AS col2 FROM tab2 AS cor0
----
-120
1380
-137
2400
-155
3480

query I rowsort
SELECT DISTINCT + col1 - + 18 AS col0 FROM tab1 AS cor0
----
-13
-4
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3709
SELECT ALL - ( col2 ) FROM tab0 AS cor0 WHERE NOT 59 + - CAST( - 88 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3709
SELECT ALL - ( col2 ) FROM tab0 AS cor0 WHERE NOT 59 + - CAST ( - 88 AS INTEGER ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + ( 61 ) BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3711
SELECT ALL CAST( NULL AS SIGNED ), - CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3711
SELECT ALL CAST ( NULL AS INTEGER ), - CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col1 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3713
SELECT + COUNT( DISTINCT - 40 ) FROM tab2 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3713
SELECT + COUNT ( DISTINCT - 40 ) FROM tab2 WHERE NULL IS NOT NULL
----
0

query II rowsort
SELECT + + col0, - 92 / - 40 * col1 FROM tab1 WHERE - col0 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + + 49 <= ( - + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + ( col0 ) * + col0 * + 52 * 76 AS col1 FROM tab0
----
29912688
37184368
889200

onlyif mysql # aggregate syntax: 
query I rowsort label-3717
SELECT ALL + MAX( + 80 ) col2 FROM tab0
----
80

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3717
SELECT ALL + MAX ( + 80 ) col2 FROM tab0
----
80

query I rowsort
SELECT DISTINCT col0 + + 93 FROM tab2
----
139
157
168

onlyif mysql # aggregate syntax: 
query II rowsort label-3719
SELECT + 13 col0, + COUNT( * ) FROM tab1
----
13
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3719
SELECT + 13 col0, + COUNT ( * ) FROM tab1
----
13
3

query I rowsort
SELECT + ( - col0 ) - + + col2 FROM tab2
----
-104
-133
-69

query III rowsort
SELECT * FROM tab0 WHERE col0 + - col2 < NULL
----

query I rowsort
SELECT DISTINCT - col0 + - - col1 AS col0 FROM tab1
----
-37
-44
-80

query II rowsort
SELECT + col0, ( - 76 ) AS col1 FROM tab0 AS cor0
----
15
-76
87
-76
97
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-3724
SELECT ALL COUNT( - - ( - 56 ) ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3724
SELECT ALL COUNT ( - - ( - 56 ) ) AS col0 FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT - ( + 70 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-70

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab1 AS cor0 WHERE 10 * 88 IS NULL
----

query I rowsort
SELECT DISTINCT col1 * col1 - - + ( + + col0 ) AS col2 FROM tab1 AS cor0
----
110
2300
247

query I rowsort
SELECT ALL + col0 * + - col0 * - col0 AS col2 FROM tab1 AS cor0
----
132651
614125
753571

query I rowsort
SELECT col1 * - col1 * - 82 AS col0 FROM tab1
----
16072
181138
2050

query II rowsort
SELECT + 90, - 40 + ( + - col2 ) * col1 AS col2 FROM tab0
----
90
-139
90
-250
90
-3847

query III rowsort
SELECT * FROM tab1 WHERE NOT + + col2 - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3732
SELECT DISTINCT + 16 + - - ( - + COUNT( - + col2 ) ) FROM tab2
----
13

skipif mysql # not compatible
query I rowsort label-3732
SELECT DISTINCT + 16 + - - ( - + COUNT ( - + col2 ) ) FROM tab2
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-3733
SELECT - SUM( + col1 ) col1 FROM tab1
----
-66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3733
SELECT - SUM ( + col1 ) col1 FROM tab1
----
-66

query II rowsort
SELECT DISTINCT 74 * + + ( + col2 ) AS col0, + col0 * + 65 FROM tab1
----
4366
5525
5032
5915
7104
3315

onlyif mysql # DIV for integer division: 
query I rowsort label-3735
SELECT DISTINCT - 69 DIV + - col1 + - col2 AS col1 FROM tab1
----
-46
-67
-92

skipif mysql # not compatible
query I rowsort label-3735
SELECT DISTINCT - 69 / + - col1 + - col2 AS col1 FROM tab1
----
-46
-67
-92

query I rowsort
SELECT DISTINCT + - col0 FROM tab0 WHERE NOT NULL <= - + col2 * + col0 + + col0 + col0 * - + col0 * - col1
----

query III rowsort
SELECT * FROM tab2 WHERE NULL <> + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 86 + + 18 col0 FROM tab0 AS cor0
----
-68
-68
-68

query II rowsort
SELECT ALL - col2 * - + col1 * + + 16 AS col2, col1 AS col2 FROM tab2 AS cor0
----
18768
51
49280
77
62176
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3740
SELECT + 53 * COUNT( * ) + + - CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3740
SELECT + 53 * COUNT ( * ) + + - CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL

query III rowsort
SELECT * FROM tab2 cor0 WHERE - ( 59 ) IN ( + col1, + ( + + col0 ) + - + 86 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3742
SELECT - 69 * + - COUNT( * ) + COUNT( * ) AS col1 FROM tab1
----
210

skipif mysql # not compatible
query I rowsort label-3742
SELECT - 69 * + - COUNT ( * ) + COUNT ( * ) AS col1 FROM tab1
----
210

onlyif mysql # aggregate syntax: 
query I rowsort label-3743
SELECT DISTINCT COUNT( * ) + 35 col2 FROM tab0
----
38

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3743
SELECT DISTINCT COUNT ( * ) + 35 col2 FROM tab0
----
38

query I rowsort
SELECT + 51 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752

query II rowsort
SELECT DISTINCT - col1 - - col2, 28 - + + col1 AS col2 FROM tab2 AS cor0
----
-28
-23
-37
-49
-9
-39

query I rowsort
SELECT DISTINCT - + ( col1 ) AS col1 FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3747
SELECT ALL col1 - - col1 * - CAST( NULL AS DECIMAL ) + + col2, - col0 AS col2 FROM tab2 AS cor0
----
NULL
-46
NULL
-64
NULL
-75

skipif mysql # not compatible
query II rowsort label-3747
SELECT ALL col1 - - col1 * - CAST ( NULL AS REAL ) + + col2, - col0 AS col2 FROM tab2 AS cor0
----
NULL
-46
NULL
-64
NULL
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-3748
SELECT - + ( - + MAX( - 52 ) ) - COUNT( DISTINCT + + col1 ) col0 FROM tab1 cor0
----
-55

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3748
SELECT - + ( - + MAX ( - 52 ) ) - COUNT ( DISTINCT + + col1 ) col0 FROM tab1 cor0
----
-55

query I rowsort
SELECT 15 - col1 FROM tab2 AS cor0
----
-36
-52
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3750
SELECT ALL col1 - - 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-3750
SELECT ALL col1 - - CAST ( NULL AS INTEGER ) col2 FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT + col2 * - col1 + - col1, col1 AS col2 FROM tab2
----
-1224
51
-3157
77
-3953
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3752
SELECT + - COUNT( * ) FROM tab0 WHERE NULL >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-3752
SELECT + - COUNT ( * ) FROM tab0 WHERE NULL >= NULL
----
0

query I rowsort
SELECT + 53 FROM tab0 WHERE NOT NULL <> col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3754
SELECT MAX( ALL - CAST( CAST( 81 AS SIGNED ) AS SIGNED ) ) FROM tab2
----
-81

skipif mysql # not compatible
query I rowsort label-3754
SELECT MAX ( ALL - CAST ( CAST ( 81 AS INTEGER ) AS INTEGER ) ) FROM tab2
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-3755
SELECT ALL ( MAX( - 19 ) ) col1 FROM tab2 AS cor0
----
-19

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3755
SELECT ALL ( MAX ( - 19 ) ) col1 FROM tab2 AS cor0
----
-19

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3756
SELECT ALL * FROM tab2 AS cor0 WHERE col1 * + - CAST( NULL AS DECIMAL ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3756
SELECT ALL * FROM tab2 AS cor0 WHERE col1 * + - CAST ( NULL AS REAL ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - 92, + col2 FROM tab0
----
-92
10
-92
47
-92
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col1, + ( - - ( + + 40 ) ) - + + col2 + - col1 AS col0 FROM tab0
----
-1
-60
-21
9
-81
-88

query I rowsort
SELECT DISTINCT col0 + - - col1 * + col2 * 84 FROM tab0 cor0 WHERE NOT + col2 <> + col0
----

query I rowsort
SELECT - - ( 75 ) AS col0 FROM tab2 AS cor0
----
75
75
75

query I rowsort
SELECT DISTINCT - ( + col2 ) * - col1 AS col0 FROM tab0 AS cor0
----
210
3807
99

query I rowsort
SELECT + + col1 * col2 - + col0 FROM tab2 AS cor0
----
1127
3016
3811

query I rowsort
SELECT ALL 7 * - - col2 FROM tab2 AS cor0
----
161
280
406

onlyif mysql # aggregate syntax: 
query I rowsort label-3764
SELECT - COUNT( + - 66 ) * - - MAX( + col2 ) - + 86 * - MAX( + ( col1 ) ) AS col2 FROM tab0 AS cor0
----
6669

skipif mysql # not compatible
query I rowsort label-3764
SELECT - COUNT ( + - 66 ) * - - MAX ( + col2 ) - + 86 * - MAX ( + ( col1 ) ) AS col2 FROM tab0 AS cor0
----
6669

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3765
SELECT DISTINCT CAST( 29 AS SIGNED ) FROM tab1 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-3765
SELECT DISTINCT CAST ( 29 AS INTEGER ) FROM tab1 AS cor0
----
29

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 62 >= + + 1
----

query II rowsort
SELECT DISTINCT + col2, - col1 FROM tab2 AS cor0
----
23
-51
40
-77
58
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3768
SELECT ALL - CAST( + + col0 AS SIGNED ) AS col0 FROM tab0 cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-3768
SELECT ALL - CAST ( + + col0 AS INTEGER ) AS col0 FROM tab0 cor0
----
-15
-87
-97

query III rowsort
SELECT ALL * FROM tab2 WHERE - col0 + + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 + + ( - - col0 ) AS col0 FROM tab0
----
174
194
30

query I rowsort
SELECT + 51 * col1 + - + 61 FROM tab1 WHERE NULL < NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3772
SELECT - CAST( - 86 AS SIGNED ) + + CAST( - + col0 AS SIGNED ) - + col1 DIV 40 AS col1 FROM tab2
----
10
21
39

skipif mysql # not compatible
query I rowsort label-3772
SELECT - CAST ( - 86 AS INTEGER ) + + CAST ( - + col0 AS INTEGER ) - + col1 / 40 AS col1 FROM tab2
----
10
21
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3773
SELECT DISTINCT + col1 * ( + col2 ) + col1 + + col1 + - - CAST( + col1 AS SIGNED ) * + - col1 AS col0 FROM tab1
----
1081
1176
280

skipif mysql # not compatible
query I rowsort label-3773
SELECT DISTINCT + col1 * ( + col2 ) + col1 + + col1 + - - CAST ( + col1 AS INTEGER ) * + - col1 AS col0 FROM tab1
----
1081
1176
280

query I rowsort
SELECT + 92 + 95 + - - 27 * col0 FROM tab1
----
1564
2482
2644

onlyif mysql # aggregate syntax: 
query I rowsort label-3775
SELECT SUM( - - 61 ) FROM tab1
----
183

skipif mysql # not compatible
query I rowsort label-3775
SELECT SUM ( - - 61 ) FROM tab1
----
183

query I rowsort
SELECT DISTINCT col0 + + + 71 AS col0 FROM tab2
----
117
135
146

query I rowsort
SELECT col0 + 63 * - ( + - col0 ) AS col0 FROM tab1
----
3264
5440
5824

query I rowsort
SELECT DISTINCT 77 + - - col1 AS col1 FROM tab1
----
124
82
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3779
SELECT + CAST( NULL AS SIGNED ) + + col2 / + col2 * + col0 + - 59 * - 34 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3779
SELECT + CAST ( NULL AS INTEGER ) + + col2 / + col2 * + col0 + - 59 * - 34 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3780
SELECT ALL - 33 + - - COUNT( * ) FROM tab0
----
-30

skipif mysql # not compatible
query I rowsort label-3780
SELECT ALL - 33 + - - COUNT ( * ) FROM tab0
----
-30

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3781
SELECT ALL - col2 DIV + col1 - - CAST( - + 93 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-93
-93
-93

skipif mysql # not compatible
query I rowsort label-3781
SELECT ALL - col2 / + col1 - - CAST ( - + 93 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-93
-93
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3782
SELECT ALL - 68 + CAST( NULL AS SIGNED ) / 94 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3782
SELECT ALL - 68 + CAST ( NULL AS INTEGER ) / 94 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - 75 - 1 FROM tab1 AS cor0
----
-76

query I rowsort
SELECT + col1 + + - 95 FROM tab1 AS cor0
----
-48
-81
-90

query II rowsort
SELECT DISTINCT - col2 * col0 + col1 * - col1, 19 AS col1 FROM tab2 AS cor0
----
-3659
19
-8489
19
-8839
19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col1 * col0 * + col1 col0, col2 AS col0 FROM tab1 AS cor0
----
201019
68
2125
59
9996
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3787
SELECT CAST( NULL AS SIGNED ) * - 8 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3787
SELECT CAST ( NULL AS INTEGER ) * - 8 AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 74 FROM tab1, tab0 cor0
----
9 values hashing to 5a567947d14593676e3825756f8e6130

query I rowsort
SELECT - col2 * + 72 FROM tab0
----
-3384
-7128
-720

query III rowsort
SELECT * FROM tab1 WHERE NOT + - col0 * 49 <> NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3791
SELECT DISTINCT - CAST( - COUNT( - col2 ) AS SIGNED ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3791
SELECT DISTINCT - CAST ( - COUNT ( - col2 ) AS INTEGER ) AS col0 FROM tab0
----
3

query I rowsort
SELECT ALL col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
10
47
99

query I rowsort
SELECT ALL + - 50 FROM tab2 cor0
----
-50
-50
-50

query III rowsort
SELECT * FROM tab0 WHERE NOT + - col1 * + col1 > + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3795
SELECT col1 AS col0, + CAST( NULL AS SIGNED ) + + 55 FROM tab1
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-3795
SELECT col1 AS col0, + CAST ( NULL AS INTEGER ) + + 55 FROM tab1
----
14
NULL
47
NULL
5
NULL

query II rowsort
SELECT DISTINCT 2 AS col0, 31 AS col2 FROM tab1
----
2
31

onlyif mysql # DIV for integer division: 
query I rowsort label-3797
SELECT - col0 + - 64 DIV + + col0 AS col2 FROM tab0
----
-19
-87
-97

skipif mysql # not compatible
query I rowsort label-3797
SELECT - col0 + - 64 / + + col0 AS col2 FROM tab0
----
-19
-87
-97

query I rowsort
SELECT ALL col1 + - 80 * 59 AS col1 FROM tab0
----
-4639
-4699
-4719

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col0 col2 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
-1215
-1827
-97

query I rowsort
SELECT ALL + - 91 + col0 AS col1 FROM tab1 AS cor0
----
-40
-6
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 79 col1 FROM tab2 cor0
----
-79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3802
SELECT + 61 DIV + + COUNT( * ) FROM tab1 cor0
----
20

skipif mysql # not compatible
query I rowsort label-3802
SELECT + 61 / + + COUNT ( * ) FROM tab1 cor0
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-3803
SELECT COUNT( - 0 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3803
SELECT COUNT ( - 0 ) AS col0 FROM tab2
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col0 NOT BETWEEN col1 AND + + 39
----

query I rowsort
SELECT DISTINCT + 27 + + col1 FROM tab0
----
108
28
48

query I rowsort
SELECT DISTINCT ( - col2 ) * + 99 AS col0 FROM tab0 AS cor0
----
-4653
-9801
-990

onlyif mysql # aggregate syntax: 
query II rowsort label-3807
SELECT - COUNT( * ) + - 99 AS col0, + COUNT( * ) * - 83 FROM tab0 AS cor0
----
-102
-249

skipif mysql # not compatible
query II rowsort label-3807
SELECT - COUNT ( * ) + - 99 AS col0, + COUNT ( * ) * - 83 FROM tab0 AS cor0
----
-102
-249

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - col2, - col2 col2 FROM tab2 AS cor0
----
23
-23
40
-40
58
-58

query I rowsort
SELECT + - 17 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 490d008f3fb5b70d3971cfc6d84503f4

onlyif mysql # aggregate syntax: 
query I rowsort label-3810
SELECT + MIN( - + col0 ) FROM tab1 WHERE ( NOT 92 IS NOT NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3810
SELECT + MIN ( - + col0 ) FROM tab1 WHERE ( NOT 92 IS NOT NULL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3811
SELECT ALL + + 57 AS col1 FROM tab1 WHERE NOT - col1 / CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-3811
SELECT ALL + + 57 AS col1 FROM tab1 WHERE NOT - col1 / CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT - + col0 * + + 62 - - 22 AS col1 FROM tab1 WHERE ( NOT + col0 < + 77 )
----
-5248
-5620

query I rowsort
SELECT + 87 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

onlyif mysql # aggregate syntax: 
query I rowsort label-3814
SELECT - 80 * + MAX( DISTINCT + col2 ) col1 FROM tab1 cor0
----
-7680

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3814
SELECT - 80 * + MAX ( DISTINCT + col2 ) col1 FROM tab1 cor0
----
-7680

query I rowsort
SELECT + col2 AS col1 FROM tab1 cor0 WHERE NOT col2 / col2 > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3816
SELECT DISTINCT ( ( + col2 ) ) DIV + 58 - col1 FROM tab2
----
-51
-66
-77

skipif mysql # not compatible
query I rowsort label-3816
SELECT DISTINCT ( ( + col2 ) ) / + 58 - col1 FROM tab2
----
-51
-66
-77

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col2 > col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 48 * - 73 FROM tab2
----
-3504
-3504
-3504

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3819
SELECT + CAST( col1 AS SIGNED ) col1 FROM tab1 WHERE NOT ( - - col2 ) IS NULL
----
14
47
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3819
SELECT + CAST ( col1 AS INTEGER ) col1 FROM tab1 WHERE NOT ( - - col2 ) IS NULL
----
14
47
5

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 / - 46 + + 41 / + + col0 / col1 / + - col0 NOT BETWEEN NULL AND + col0
----

query I rowsort
SELECT ALL 88 * - col1 AS col2 FROM tab1
----
-1232
-4136
-440

onlyif mysql # aggregate syntax: 
query I rowsort label-3822
SELECT ( - - COUNT( * ) ) * + COUNT( * ) AS col0 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-3822
SELECT ( - - COUNT ( * ) ) * + COUNT ( * ) AS col0 FROM tab1
----
9

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 / + - col1 IS NOT NULL
----

query II rowsort
SELECT - col0, + 22 AS col2 FROM tab1 cor0
----
-51
22
-85
22
-91
22

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 68 NOT IN ( + col0 / - - 31 - 69 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-3826
SELECT + - 45 DIV + col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3826
SELECT + - 45 / + col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col2 + + + col0 AS col0 FROM tab2 WHERE NOT - 9 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3828
SELECT DISTINCT MIN( + col1 ) + + 98 FROM tab2
----
149

skipif mysql # not compatible
query I rowsort label-3828
SELECT DISTINCT MIN ( + col1 ) + + 98 FROM tab2
----
149

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3829
SELECT - CAST( - 57 AS SIGNED ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

skipif mysql # not compatible
query I rowsort label-3829
SELECT - CAST ( - 57 AS INTEGER ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3830
SELECT - CAST( + col2 AS SIGNED ) * - 20 * + ( col2 ) * - col0 col2 FROM tab1
----
-5917700
-8415680
-9400320

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3830
SELECT - CAST ( + col2 AS INTEGER ) * - 20 * + ( col2 ) * - col0 col2 FROM tab1
----
-5917700
-8415680
-9400320

query I rowsort
SELECT ALL + - 83 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d55748f39f403ec273099c0d87b0bfbb

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 4 col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-4

query I rowsort
SELECT + + col1 AS col1 FROM tab1 AS cor0 WHERE + col1 IS NOT NULL
----
14
47
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3834
SELECT ALL - COUNT( * ) * 54 * - + CAST( 15 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
2430

skipif mysql # not compatible
query I rowsort label-3834
SELECT ALL - COUNT ( * ) * 54 * - + CAST ( 15 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
2430

query I rowsort
SELECT - + 73 * - col2 FROM tab2 AS cor0
----
1679
2920
4234

query I rowsort
SELECT - - col2 + - + col1 * + - col2 FROM tab2 cor0
----
1196
3120
3944

query I rowsort
SELECT + + 76 * - col0 + + - col0 + + + col2 FROM tab0 AS cor0
----
-1108
-6689
-7370

onlyif mysql # aggregate syntax: 
query I rowsort label-3838
SELECT DISTINCT MAX( ALL + col2 ) col2 FROM tab0 cor0
----
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3838
SELECT DISTINCT MAX ( ALL + col2 ) col2 FROM tab0 cor0
----
99

query III rowsort
SELECT ALL * FROM tab1 WHERE + col1 <= col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 46 + - 86 FROM tab2
----
-40
-40
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3841
SELECT + CAST( + 41 AS SIGNED ) FROM tab1
----
41
41
41

skipif mysql # not compatible
query I rowsort label-3841
SELECT + CAST ( + 41 AS INTEGER ) FROM tab1
----
41
41
41

onlyif mysql # aggregate syntax: 
query II rowsort label-3842
SELECT ALL COUNT( * ) AS col0, 54 FROM tab0
----
3
54

skipif mysql # not compatible
query II rowsort label-3842
SELECT ALL COUNT ( * ) AS col0, 54 FROM tab0
----
3
54

query I rowsort
SELECT ALL + 60 + - + col1 FROM tab2
----
-17
-7
9

query I rowsort
SELECT + ( + 68 ) FROM tab1
----
68
68
68

query I rowsort
SELECT - 18 FROM tab0 AS cor0 WHERE col0 > - - 47
----
-18
-18

query II rowsort
SELECT ALL + col0 / - - col1 AS col2, + col0 FROM tab2 cor0 WHERE NULL < NULL
----

query I rowsort
SELECT DISTINCT + col0 - + ( - col2 ) AS col0 FROM tab2 AS cor0
----
104
133
69

query III rowsort
SELECT * FROM tab1 WHERE ( - 68 + col1 + + col2 ) IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3849
SELECT SUM( ALL + + col2 ) DIV + COUNT( * ) AS col0 FROM tab0
----
52

skipif mysql # not compatible
query I rowsort label-3849
SELECT SUM ( ALL + + col2 ) / + COUNT ( * ) AS col0 FROM tab0
----
52

onlyif mysql # DIV for integer division: 
query I rowsort label-3850
SELECT 6 DIV - col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3850
SELECT 6 / - col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3851
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT 62 * 88 + CAST( NULL AS DECIMAL ) * - col0 IS NULL
----

skipif mysql # not compatible
query III rowsort label-3851
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT 62 * 88 + CAST ( NULL AS REAL ) * - col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 91 * col1 col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-1911
-7371
-91

query I rowsort
SELECT ALL + col2 * + - 97 * - 51 AS col1 FROM tab0 cor0
----
232509
489753
49470

query II rowsort
SELECT + col0 AS col1, 55 FROM tab0 AS cor0
----
15
55
87
55
97
55

query I rowsort
SELECT ALL + - col2 * - col1 * col0 AS col0 FROM tab2 AS cor0
----
197120
291450
53958

onlyif mysql # DIV for integer division: 
query I rowsort label-3856
SELECT DISTINCT - col1 DIV - col0 * - col2 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3856
SELECT DISTINCT - col1 / - col0 * - col2 AS col1 FROM tab1
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - - col0 ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3858
SELECT MIN( ALL - + 42 ) FROM tab0
----
-42

skipif mysql # not compatible
query I rowsort label-3858
SELECT MIN ( ALL - + 42 ) FROM tab0
----
-42

query I rowsort
SELECT ALL + col1 * - col2 * + 24 FROM tab0
----
-2376
-5040
-91368

onlyif mysql # aggregate syntax: 
query I rowsort label-3860
SELECT 86 * - COUNT( * ) FROM tab0
----
-258

skipif mysql # not compatible
query I rowsort label-3860
SELECT 86 * - COUNT ( * ) FROM tab0
----
-258

onlyif mysql # aggregate syntax: 
query I rowsort label-3861
SELECT ALL + + MAX( ALL - col2 ) AS col2 FROM tab0 cor0
----
-10

skipif mysql # not compatible
query I rowsort label-3861
SELECT ALL + + MAX ( ALL - col2 ) AS col2 FROM tab0 cor0
----
-10

query I rowsort
SELECT + 76 + - col2 - + col1 AS col2 FROM tab2 AS cor0
----
-41
-49
2

onlyif mysql # DIV for integer division: 
query I rowsort label-3863
SELECT ALL ( - - 73 ) DIV - col1 + - col1 FROM tab0
----
-24
-74
-81

skipif mysql # not compatible
query I rowsort label-3863
SELECT ALL ( - - 73 ) / - col1 + - col1 FROM tab0
----
-24
-74
-81

query I rowsort
SELECT + 56 * + + col1 + + col0 + col0 - 98 * + + 48 + col2 FROM tab2
----
-1733
-224
-744

onlyif mysql # DIV for integer division: 
query I rowsort label-3865
SELECT ALL + col1 DIV ( 18 ) AS col0 FROM tab0 cor0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-3865
SELECT ALL + col1 / ( 18 ) AS col0 FROM tab0 cor0
----
0
1
4

query I rowsort
SELECT DISTINCT 65 + + ( + col1 ) * + - 7 AS col2 FROM tab0 cor0
----
-502
-82
58

query I rowsort
SELECT ALL + ( - 41 ) AS col0 FROM tab2 AS cor0
----
-41
-41
-41

query II rowsort
SELECT + ( + ( col0 ) ), - col0 FROM tab1 AS cor0
----
51
-51
85
-85
91
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 5 * col0 + - col2 col1 FROM tab0 AS cor0
----
28
386
425

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3870
SELECT ALL + CAST( + - col1 AS SIGNED ) FROM tab0 AS cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-3870
SELECT ALL + CAST ( + - col1 AS INTEGER ) FROM tab0 AS cor0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-3871
SELECT ALL + + COUNT( * ) AS col1 FROM tab2 WHERE NOT + 18 <> 38
----
0

skipif mysql # not compatible
query I rowsort label-3871
SELECT ALL + + COUNT ( * ) AS col1 FROM tab2 WHERE NOT + 18 <> 38
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3872
SELECT col2 - col1 + 18 / - col2 * + CAST( NULL AS SIGNED ) * col1 * + col0, + 88 AS col2 FROM tab2
----
NULL
88
NULL
88
NULL
88

skipif mysql # not compatible
query II rowsort label-3872
SELECT col2 - col1 + 18 / - col2 * + CAST ( NULL AS INTEGER ) * col1 * + col0, + 88 AS col2 FROM tab2
----
NULL
88
NULL
88
NULL
88

onlyif mysql # DIV for integer division: 
query I rowsort label-3873
SELECT ALL 43 + col0 DIV col1 * col2 AS col0 FROM tab2
----
101
43
43

skipif mysql # not compatible
query I rowsort label-3873
SELECT ALL 43 + col0 / col1 * col2 AS col0 FROM tab2
----
101
43
43

query I rowsort
SELECT ALL - ( + 33 ) FROM tab2
----
-33
-33
-33

query I rowsort
SELECT DISTINCT col2 + 83 AS col2 FROM tab0
----
130
182
93

query I rowsort
SELECT DISTINCT - 0 + - 75 AS col0 FROM tab1
----
-75

query I rowsort
SELECT - col2 + - 46 FROM tab1 AS cor0
----
-105
-114
-142

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3878
SELECT - CAST( NULL AS SIGNED ) + - COUNT( * ) + SUM( ALL col2 ) AS col0, COUNT( * ) + + COUNT( * ) FROM tab2 AS cor0
----
NULL
6

skipif mysql # not compatible
query II rowsort label-3878
SELECT - CAST ( NULL AS INTEGER ) + - COUNT ( * ) + SUM ( ALL col2 ) AS col0, COUNT ( * ) + + COUNT ( * ) FROM tab2 AS cor0
----
NULL
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3879
SELECT + col2 + + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3879
SELECT + col2 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3880
SELECT ALL - + CAST( - + col2 AS SIGNED ) + ( - - col1 ) + col2 AS col2, col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

skipif mysql # not compatible
query II rowsort label-3880
SELECT ALL - + CAST ( - + col2 AS INTEGER ) + ( - - col1 ) + col2 AS col2, col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT + + ( - 45 ) FROM tab1 AS cor0
----
-45

query I rowsort
SELECT ALL ( - 39 ) FROM tab0
----
-39
-39
-39

onlyif mysql # aggregate syntax: 
query II rowsort label-3883
SELECT DISTINCT + MIN( DISTINCT - ( + + 4 ) ) AS col1, ( 39 ) AS col2 FROM tab0
----
-4
39

skipif mysql # not compatible
query II rowsort label-3883
SELECT DISTINCT + MIN ( DISTINCT - ( + + 4 ) ) AS col1, ( 39 ) AS col2 FROM tab0
----
-4
39

onlyif mysql # DIV for integer division: 
query I rowsort label-3884
SELECT 15 DIV + 2 + - + col0 - - 51 AS col2 FROM tab1 AS cor0
----
-27
-33
7

skipif mysql # not compatible
query I rowsort label-3884
SELECT 15 / + 2 + - + col0 - - 51 AS col2 FROM tab1 AS cor0
----
-27
-33
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3885
SELECT ALL + + CAST( + - 7 AS SIGNED ) + - - col1 FROM tab2 cor0 WHERE NULL <= 81
----

skipif mysql # not compatible
query I rowsort label-3885
SELECT ALL + + CAST ( + - 7 AS INTEGER ) + - - col1 FROM tab2 cor0 WHERE NULL <= 81
----

query I rowsort
SELECT + - 63 * - col1 FROM tab0 AS cor0
----
1323
5103
63

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL > - 48
----

query II rowsort
SELECT - col1 AS col2, col2 FROM tab2 AS cor0
----
-51
23
-67
58
-77
40

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3889
SELECT ALL - CAST( NULL AS DECIMAL ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3889
SELECT ALL - CAST ( NULL AS REAL ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab2 AS cor0 WHERE + 79 IS NOT NULL
----
51
67
77

query III rowsort
SELECT ALL col0, col2, + - col1 * + - 86 * + + 63 + - col2 FROM tab2
----
9 values hashing to eb3b6079f880dea4e2a989c615cbad9d

onlyif mysql # aggregate syntax: 
query I rowsort label-3892
SELECT DISTINCT COUNT( + - 17 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3892
SELECT DISTINCT COUNT ( + - 17 ) FROM tab1
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - 19 <> NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3894
SELECT + 0 * + COUNT( * ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3894
SELECT + 0 * + COUNT ( * ) AS col2 FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 col0 FROM tab0 AS cor0 WHERE NOT 56 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3896
SELECT DISTINCT 63 * - MIN( DISTINCT + col2 ) FROM tab2 AS cor0
----
-1449

skipif mysql # not compatible
query I rowsort label-3896
SELECT DISTINCT 63 * - MIN ( DISTINCT + col2 ) FROM tab2 AS cor0
----
-1449

query III rowsort
SELECT * FROM tab1 WHERE NULL <> - 25
----

query I rowsort
SELECT DISTINCT - 88 + - - col0 FROM tab0
----
-1
-73
9

query I rowsort
SELECT DISTINCT + - 61 + - 91 AS col2 FROM tab2 AS cor0
----
-152

query III rowsort
SELECT * FROM tab0 cor0 WHERE col2 * + col2 + col1 + - + 29 + + col0 NOT IN ( + 91 + - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3901
SELECT ALL - 56 * + col1 - + - col2 + - col2 + + col1 * + CAST( - CAST( + - col2 AS SIGNED ) AS SIGNED ) * - col0 + col1 AS col1 FROM tab1 AS cor0
----
-25350
-293421
-69314

skipif mysql # not compatible
query I rowsort label-3901
SELECT ALL - 56 * + col1 - + - col2 + - col2 + + col1 * + CAST ( - CAST ( + - col2 AS INTEGER ) AS INTEGER ) * - col0 + col1 AS col1 FROM tab1 AS cor0
----
-25350
-293421
-69314

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3902
SELECT col0 * CAST( NULL AS SIGNED ) * + - 6 * - 30 + col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3902
SELECT col0 * CAST ( NULL AS INTEGER ) * + - 6 * - 30 + col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3903
SELECT DISTINCT - - col2 / - col1 * - - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE NOT - col0 * + - col2 + 6 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3903
SELECT DISTINCT - - col2 / - col1 * - - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE NOT - col0 * + - col2 + 6 IS NOT NULL
----

query I rowsort
SELECT 29 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 + - - col1 + - 67 * - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3906
SELECT MIN( 68 ) AS col1 FROM tab1
----
68

skipif mysql # not compatible
query I rowsort label-3906
SELECT MIN ( 68 ) AS col1 FROM tab1
----
68

query II rowsort
SELECT ALL 17 AS col2, col0 AS col2 FROM tab0
----
17
15
17
87
17
97

query III rowsort
SELECT * FROM tab2 WHERE + col0 * - - col1 * + 4 - - col0 * - col0 > NULL
----

query I rowsort
SELECT col0 * - 20 AS col0 FROM tab0
----
-1740
-1940
-300

query I rowsort
SELECT ( ( + + col2 ) ) * - 10 + + col0 AS col1 FROM tab1
----
-505
-589
-909

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3911
SELECT 10 * + - CAST( COUNT( 56 ) AS SIGNED ) FROM tab0
----
-30

skipif mysql # not compatible
query I rowsort label-3911
SELECT 10 * + - CAST ( COUNT ( 56 ) AS INTEGER ) FROM tab0
----
-30

query I rowsort
SELECT DISTINCT 44 * + col2 + + + col1 FROM tab0
----
2149
4357
461

query III rowsort
SELECT * FROM tab0 WHERE col1 - 34 + - 44 + - - col0 * - + ( + col1 ) * - - 7 = - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3914
SELECT DISTINCT + COUNT( * ) + + + COUNT( * ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-3914
SELECT DISTINCT + COUNT ( * ) + + + COUNT ( * ) FROM tab0
----
6

query I rowsort
SELECT + 4 - + - col0 FROM tab2
----
50
68
79

query I rowsort
SELECT DISTINCT ( col2 ) + - 24 FROM tab1
----
35
44
72

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 11 + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + - 69 AS col1 FROM tab0 cor0
----
-69
-69
-69

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 36 IS NOT NULL AND NOT NULL IS NULL
----

query I rowsort
SELECT col0 * 59 + - - col1 FROM tab2 AS cor0
----
2765
3853
4492

onlyif mysql # DIV for integer division: 
query I rowsort label-3921
SELECT DISTINCT - col2 DIV 28 - - col0 FROM tab2 WHERE NULL IS NULL
----
46
63
73

skipif mysql # not compatible
query I rowsort label-3921
SELECT DISTINCT - col2 / 28 - - col0 FROM tab2 WHERE NULL IS NULL
----
46
63
73

query I rowsort
SELECT ALL + - 44 AS col1 FROM tab0 AS cor0 WHERE NOT + col0 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL BETWEEN ( col0 / ( col2 ) ) AND - col0
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3924
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 * - CAST( NULL AS DECIMAL ) / - col1 IS NULL
----

skipif mysql # not compatible
query III rowsort label-3924
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 * - CAST ( NULL AS REAL ) / - col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3925
SELECT + CAST( NULL AS SIGNED ) * + col1 * - 9 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3925
SELECT + CAST ( NULL AS INTEGER ) * + col1 * - 9 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT - ( col1 ) AS col2, - col0 * + col0 AS col1 FROM tab1 cor0
----
-14
-2601
-47
-8281
-5
-7225

onlyif mysql # aggregate syntax: 
query I rowsort label-3927
SELECT DISTINCT 52 * SUM( - 89 ) + + 33 col1 FROM tab1
----
-13851

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3927
SELECT DISTINCT 52 * SUM ( - 89 ) + + 33 col1 FROM tab1
----
-13851

onlyif mysql # aggregate syntax: 
query I rowsort label-3928
SELECT + 24 * - MIN( DISTINCT col1 ) FROM tab0
----
-24

skipif mysql # not compatible
query I rowsort label-3928
SELECT + 24 * - MIN ( DISTINCT col1 ) FROM tab0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-3929
SELECT ALL COUNT( - 4 ) * + 3 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-3929
SELECT ALL COUNT ( - 4 ) * + 3 FROM tab0
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col2, ( + 90 ) * + ( - col1 ) AS col1 FROM tab1
----
14
-1260
47
-4230
5
-450

query I rowsort
SELECT - 91 * - col2 AS col0 FROM tab0
----
4277
9009
910

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( NOT NULL <= + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3933
SELECT DISTINCT - col1 * - col0 FROM tab2 AS cor0 WHERE NOT - CAST( - - col0 AS SIGNED ) = - col1
----
2346
4928
5025

skipif mysql # not compatible
query I rowsort label-3933
SELECT DISTINCT - col1 * - col0 FROM tab2 AS cor0 WHERE NOT - CAST ( - - col0 AS INTEGER ) = - col1
----
2346
4928
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-3934
SELECT DISTINCT + COUNT( 69 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3934
SELECT DISTINCT + COUNT ( 69 ) AS col1 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3935
SELECT DISTINCT + ( + - col0 ) AS col2 FROM tab0 WHERE ( - + col0 ) * + + 86 + + col0 + + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3935
SELECT DISTINCT + ( + - col0 ) AS col2 FROM tab0 WHERE ( - + col0 ) * + + 86 + + col0 + + CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3936
SELECT + 16 * + COUNT( * ) * - - 76 AS col1 FROM tab2
----
3648

skipif mysql # not compatible
query I rowsort label-3936
SELECT + 16 * + COUNT ( * ) * - - 76 AS col1 FROM tab2
----
3648

query I rowsort
SELECT DISTINCT + ( + col1 ) + - 44 FROM tab0 AS cor0
----
-23
-43
37

query I rowsort
SELECT DISTINCT + - 86 - - 6 + + 45 FROM tab2 cor0
----
-35

query I rowsort
SELECT ALL - + 72 AS col0 FROM tab1 AS cor0
----
-72
-72
-72

query I rowsort
SELECT ALL + + col1 - + 59 AS col1 FROM tab1 AS cor0
----
-12
-45
-54

query I rowsort
SELECT - + 88 - col1 AS col1 FROM tab0 AS cor0
----
-109
-169
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 47 * + - col1 + + col2 - + col1 col2 FROM tab1 AS cor0
----
-181
-2188
-576

query I rowsort
SELECT + + 19 - col2 AS col2 FROM tab0 AS cor0
----
-28
-80
9

query I rowsort
SELECT + col2 - + ( + col0 ) FROM tab2 AS cor0
----
-17
-23
-24

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col2 IN ( + - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3946
SELECT COUNT( * ) * 58 + - + COUNT( * ) AS col2 FROM tab0
----
171

skipif mysql # not compatible
query I rowsort label-3946
SELECT COUNT ( * ) * 58 + - + COUNT ( * ) AS col2 FROM tab0
----
171

onlyif mysql # DIV for integer division: 
query I rowsort label-3947
SELECT DISTINCT col1 DIV + ( - col0 ) * - - col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3947
SELECT DISTINCT col1 / + ( - col0 ) * - - col0 FROM tab1
----
0

query I rowsort
SELECT ALL 60 FROM tab0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col0 ) + + col1 col2 FROM tab0
----
108
96
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 79 + col2 col2 FROM tab1
----
138
147
175

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 97 col1 FROM tab1
----
-97
-97
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-3952
SELECT DISTINCT - - ( ( - col0 ) ) DIV + + col1 AS col0 FROM tab1 AS cor0
----
-1
-17
-3

skipif mysql # not compatible
query I rowsort label-3952
SELECT DISTINCT - - ( ( - col0 ) ) / + + col1 AS col0 FROM tab1 AS cor0
----
-1
-17
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3953
SELECT DISTINCT + COUNT( - + col2 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3953
SELECT DISTINCT + COUNT ( - + col2 ) AS col1 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3954
SELECT MIN( - - 70 ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
70

skipif mysql # not compatible
query I rowsort label-3954
SELECT MIN ( - - 70 ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
70

query I rowsort
SELECT - col2 FROM tab0 WHERE NOT NULL BETWEEN + col2 AND 73
----

query I rowsort
SELECT ALL - 74 * - + 82 AS col0 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f41185da2374fb43e5e8ab782e14bf3e

onlyif mysql # DIV for integer division: 
query I rowsort label-3957
SELECT - + 23 DIV + col1 AS col1 FROM tab1 AS cor0
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-3957
SELECT - + 23 / + col1 AS col1 FROM tab1 AS cor0
----
-1
-4
0

query I rowsort
SELECT ALL + 73 * + - col2 FROM tab1 AS cor0
----
-4307
-4964
-7008

onlyif mysql # DIV for integer division: 
query I rowsort label-3959
SELECT - 98 DIV 51 AS col2 FROM tab0 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3959
SELECT - 98 / 51 AS col2 FROM tab0 cor0
----
-1
-1
-1

query II rowsort
SELECT ALL + 42 AS col2, col0 AS col2 FROM tab1 AS cor0
----
42
51
42
85
42
91

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( - 14 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3962
SELECT + COUNT( * ) * - - 78 AS col0 FROM tab1 AS cor0
----
234

skipif mysql # not compatible
query I rowsort label-3962
SELECT + COUNT ( * ) * - - 78 AS col0 FROM tab1 AS cor0
----
234

onlyif mysql # aggregate syntax: 
query I rowsort label-3963
SELECT + COUNT( + col2 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3963
SELECT + COUNT ( + col2 ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3964
SELECT - COUNT( * ) * 78 AS col2 FROM tab2 AS cor0
----
-234

skipif mysql # not compatible
query I rowsort label-3964
SELECT - COUNT ( * ) * 78 AS col2 FROM tab2 AS cor0
----
-234

query I rowsort
SELECT DISTINCT col2 + col1 - + col0 * + - col0 * - col2 AS col0 FROM tab2
----
-163723
-326125
-48594

query I rowsort
SELECT + 26 + + col2 FROM tab0
----
125
36
73

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 91 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 55 AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
55
55
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3969
SELECT + - CAST( NULL AS SIGNED ) + + - 87 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3969
SELECT + - CAST ( NULL AS INTEGER ) + + - 87 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 cor0 WHERE 60 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3971
SELECT - - COUNT( * ) + - 95 FROM tab1 AS cor0
----
-92

skipif mysql # not compatible
query I rowsort label-3971
SELECT - - COUNT ( * ) + - 95 FROM tab1 AS cor0
----
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3972
SELECT ALL CAST( + - COUNT( * ) AS SIGNED ) * 96 - + + 39 FROM tab2 AS cor0
----
-327

skipif mysql # not compatible
query I rowsort label-3972
SELECT ALL CAST ( + - COUNT ( * ) AS INTEGER ) * 96 - + + 39 FROM tab2 AS cor0
----
-327

query I rowsort
SELECT ALL + col1 * - + col0 AS col0 FROM tab1 cor0
----
-425
-4277
-714

query I rowsort
SELECT DISTINCT + + col2 - 42 - - col2 FROM tab1 AS cor0
----
150
76
94

onlyif mysql # DIV for integer division: 
query I rowsort label-3975
SELECT DISTINCT - col2 DIV + - col2 AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-3975
SELECT DISTINCT - col2 / + - col2 AS col1 FROM tab0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col2, + col0 FROM tab0 WHERE NOT + col1 IS NOT NULL
----

query II rowsort
SELECT ALL col2 * + col1, col0 FROM tab2
----
1173
46
3080
64
3886
75

onlyif mysql # DIV for integer division: 
query II rowsort label-3978
SELECT - col2, - col2 DIV col2 * 6 DIV - 41 * + col1 AS col2 FROM tab0
----
-10
0
-47
0
-99
0

skipif mysql # not compatible
query II rowsort label-3978
SELECT - col2, - col2 / col2 * 6 / - 41 * + col1 AS col2 FROM tab0
----
-10
0
-47
0
-99
0

query II rowsort
SELECT ALL col1, - col1 * + col1 * - + col0 * + col1 AS col0 FROM tab0
----
1
97
21
805707
81
7971615

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 18 * + col1 col2 FROM tab0
----
1458
18
378

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3981
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 * CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-3981
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 * CAST ( NULL AS INTEGER ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( ( NOT col0 + - col2 * - - 15 + - + 67 > NULL ) )
----

query I rowsort
SELECT DISTINCT + ( - 38 ) - + col0 AS col1 FROM tab2 cor0 WHERE NULL BETWEEN - 0 * - 96 AND - + 80 + col0 + - 51
----

query II rowsort
SELECT + col2 * - 7 AS col1, - col1 FROM tab1
----
-413
-5
-476
-47
-672
-14

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT + 64 IS NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - - col1 >= - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3987
SELECT 61 DIV - + COUNT( DISTINCT - 52 ) FROM tab1 AS cor0
----
-61

skipif mysql # not compatible
query I rowsort label-3987
SELECT 61 / - + COUNT ( DISTINCT - 52 ) FROM tab1 AS cor0
----
-61

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3988
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL <= + CAST( NULL AS SIGNED ) / - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3988
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL <= + CAST ( NULL AS INTEGER ) / - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT - + col0 FROM tab2 AS cor0 WHERE NOT col2 >= col1 * col2 + + + 14 * + col0 * + col0 / + 24
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-3990
SELECT ALL SUM( DISTINCT - col0 ) AS col2 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-3990
SELECT ALL SUM ( DISTINCT - col0 ) AS col2 FROM tab0 AS cor0
----
-199

query I rowsort
SELECT ALL + - 56 AS col0 FROM tab2 AS cor0
----
-56
-56
-56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 18 + + - 4 / - - col1 col2 FROM tab1 WHERE ( NOT NULL IS NULL )
----

query I rowsort
SELECT DISTINCT col2 + + 94 FROM tab1
----
153
162
190

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3994
SELECT + 13, 13 + - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
13
NULL
13
NULL
13
NULL

skipif mysql # not compatible
query II rowsort label-3994
SELECT + 13, 13 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
13
NULL
13
NULL
13
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3995
SELECT DISTINCT 51 + + COUNT( * ) AS col1 FROM tab1
----
54

skipif mysql # not compatible
query I rowsort label-3995
SELECT DISTINCT 51 + + COUNT ( * ) AS col1 FROM tab1
----
54

onlyif mysql # DIV for integer division: 
query I rowsort label-3996
SELECT DISTINCT col0 DIV - + col0 + - - col1 AS col1 FROM tab0
----
0
20
80

skipif mysql # not compatible
query I rowsort label-3996
SELECT DISTINCT col0 / - + col0 + - - col1 AS col1 FROM tab0
----
0
20
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3997
SELECT DISTINCT + col0 * col1 + + ( + + col0 ) + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3997
SELECT DISTINCT + col0 * col1 + + ( + + col0 ) + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3998
SELECT DISTINCT COUNT( * ) + 78 FROM tab1
----
81

skipif mysql # not compatible
query I rowsort label-3998
SELECT DISTINCT COUNT ( * ) + 78 FROM tab1
----
81

query I rowsort
SELECT ALL - - col2 * col0 * - 43 AS col1 FROM tab0 AS cor0
----
-30315
-37410
-412929

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4000
SELECT - 13 * + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4000
SELECT - 13 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4001
SELECT ALL + SUM( 84 ) FROM tab0
----
252

skipif mysql # not compatible
query I rowsort label-4001
SELECT ALL + SUM ( 84 ) FROM tab0
----
252

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + 55 + - col0 * - col1 col1 FROM tab0
----
2040
5432
6612

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4003
SELECT * FROM tab1 WHERE NOT ( NULL ) = CAST( + col1 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4003
SELECT * FROM tab1 WHERE NOT ( NULL ) = CAST ( + col1 AS INTEGER )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4004
SELECT ALL CAST( NULL AS DECIMAL ) * - COUNT( * ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4004
SELECT ALL CAST ( NULL AS REAL ) * - COUNT ( * ) AS col2 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - 77 col0 FROM tab0
----
-3619
-7623
-770

onlyif mysql # DIV for integer division: 
query I rowsort label-4006
SELECT - col0 DIV ( - col0 * + col0 ) FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4006
SELECT - col0 / ( - col0 * + col0 ) FROM tab1
----
0
0
0

query I rowsort
SELECT 12 + - 22 AS col1 FROM tab0
----
-10
-10
-10

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN - 20 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4009
SELECT col2 DIV col2 col2 FROM tab1
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4009
SELECT col2 / col2 col2 FROM tab1
----
1
1
1

query I rowsort
SELECT 74 * col2 + - 29 AS col2 FROM tab1
----
4337
5003
7075

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col1 BETWEEN NULL AND ( + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 42 col1 FROM tab0
----
-42
-42
-42

query I rowsort
SELECT - ( 79 ) FROM tab1
----
-79
-79
-79

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4014
SELECT col2 FROM tab2 WHERE CAST( col1 AS DECIMAL ) + col1 IS NOT NULL
----
23
40
58

skipif mysql # not compatible
query I rowsort label-4014
SELECT col2 FROM tab2 WHERE CAST ( col1 AS REAL ) + col1 IS NOT NULL
----
23
40
58

query I rowsort
SELECT - 49 - 93 AS col1 FROM tab2
----
-142
-142
-142

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL <= + ( - col2 )
----

query I rowsort
SELECT ALL 22 AS col0 FROM tab1 WHERE NOT 60 + - col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - col2 ) + + col2 = NULL
----

query I rowsort
SELECT ALL - col2 * 92 AS col2 FROM tab1 AS cor0
----
-5428
-6256
-8832

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( col2 ) BETWEEN - col0 / + col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4021
SELECT DISTINCT 87 * + COUNT( * ) FROM tab1 AS cor0
----
261

skipif mysql # not compatible
query I rowsort label-4021
SELECT DISTINCT 87 * + COUNT ( * ) FROM tab1 AS cor0
----
261

onlyif mysql # aggregate syntax: 
query I rowsort label-4022
SELECT COUNT( * ) FROM tab1 cor0 WHERE NOT ( col2 * col1 ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-4022
SELECT COUNT ( * ) FROM tab1 cor0 WHERE NOT ( col2 * col1 ) IS NULL
----
3

query I rowsort
SELECT DISTINCT - col2 * + 70 AS col1 FROM tab0 AS cor0
----
-3290
-6930
-700

query I rowsort
SELECT - col2 * - 85 AS col2 FROM tab1 AS cor0
----
5015
5780
8160

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 89 col2 FROM tab1 AS cor0
----
-89
-89
-89

query I rowsort
SELECT DISTINCT col2 * - col0 AS col0 FROM tab1 cor0 WHERE NOT ( + col1 ) BETWEEN NULL AND + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4027
SELECT ALL + + COUNT( * ) + + 24 AS col1 FROM tab1 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-4027
SELECT ALL + + COUNT ( * ) + + 24 AS col1 FROM tab1 AS cor0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-4028
SELECT 2 * COUNT( * ) FROM tab1 cor0
----
6

skipif mysql # not compatible
query I rowsort label-4028
SELECT 2 * COUNT ( * ) FROM tab1 cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4029
SELECT + MAX( - 44 ) FROM tab2 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-4029
SELECT + MAX ( - 44 ) FROM tab2 AS cor0
----
-44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4030
SELECT COUNT( * ) DIV SUM( DISTINCT - col2 ) col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4030
SELECT COUNT ( * ) / SUM ( DISTINCT - col2 ) col2 FROM tab1 AS cor0
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 56 * col1 IS NULL
----

query I rowsort
SELECT + col0 - - col1 * + col0 FROM tab0 AS cor0 WHERE 11 IS NULL
----

query I rowsort
SELECT + col1 + 99 AS col2 FROM tab1 AS cor0
----
104
113
146

query I rowsort
SELECT + col2 FROM tab2 cor0 WHERE + col2 IS NOT NULL
----
23
40
58

query I rowsort
SELECT + col0 + + - ( 37 ) AS col2 FROM tab1
----
14
48
54

query I rowsort
SELECT DISTINCT - 85 + - 2 FROM tab1
----
-87

query I rowsort
SELECT DISTINCT - 52 + - col1 AS col1 FROM tab0
----
-133
-53
-73

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL > 85 - + 46
----

query I rowsort
SELECT DISTINCT - 74 - - 4 + 99 * - 28 FROM tab2 AS cor0
----
-2842

query I rowsort
SELECT ALL - - 1 + - + col2 AS col0 FROM tab0 AS cor0
----
-46
-9
-98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4041
SELECT ALL COUNT( * ) DIV - - COUNT( * ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4041
SELECT ALL COUNT ( * ) / - - COUNT ( * ) FROM tab1 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4042
SELECT DISTINCT - COUNT( * ) + + - ( 46 ) FROM tab2 AS cor0
----
-49

skipif mysql # not compatible
query I rowsort label-4042
SELECT DISTINCT - COUNT ( * ) + + - ( 46 ) FROM tab2 AS cor0
----
-49

query I rowsort
SELECT 86 FROM tab0 AS cor0 WHERE NULL >= + col1
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( col1 * col0 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4045
SELECT CAST( NULL AS SIGNED ) + - + 55 col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4045
SELECT CAST ( NULL AS INTEGER ) + - + 55 col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 + 82 AS col1 FROM tab2
----
128
146
157

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4047
SELECT CAST( + + 65 AS SIGNED ) + col1 FROM tab1
----
112
70
79

skipif mysql # not compatible
query I rowsort label-4047
SELECT CAST ( + + 65 AS INTEGER ) + col1 FROM tab1
----
112
70
79

onlyif mysql # DIV for integer division: 
query I rowsort label-4048
SELECT DISTINCT - - col1 DIV - ( - + col2 ) + - col0 * col0 + - col1 FROM tab0 AS cor0
----
-305
-7588
-9410

skipif mysql # not compatible
query I rowsort label-4048
SELECT DISTINCT - - col1 / - ( - + col2 ) + - col0 * col0 + - col1 FROM tab0 AS cor0
----
-305
-7588
-9410

onlyif mysql # aggregate syntax: 
query I rowsort label-4049
SELECT DISTINCT + COUNT( * ) FROM tab0 AS cor0 WHERE + col0 < + col2
----
2

skipif mysql # not compatible
query I rowsort label-4049
SELECT DISTINCT + COUNT ( * ) FROM tab0 AS cor0 WHERE + col0 < + col2
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4050
SELECT ALL 52, + ( + - 50 ) * - CAST( 41 + col1 / + ( + 71 * col2 ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
52
2050
52
2050
52
2050

skipif mysql # not compatible
query II rowsort label-4050
SELECT ALL 52, + ( + - 50 ) * - CAST ( 41 + col1 / + ( + 71 * col2 ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
52
2050
52
2050
52
2050

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE NOT - col1 = NULL
----

query I rowsort
SELECT - - col0 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT ALL - ( - col1 ) + - 27 AS col0 FROM tab1 AS cor0 WHERE 77 IS NOT NULL
----
-13
-22
20

query II rowsort
SELECT ALL + col1, 68 AS col0 FROM tab1 cor0
----
14
68
47
68
5
68

query I rowsort
SELECT col1 * - + col2 FROM tab1 AS cor0
----
-1344
-295
-3196

query I rowsort
SELECT - col1 + - col2 FROM tab1 WHERE NOT 21 * + col0 + - col0 / 18 IS NOT NULL
----

query I rowsort
SELECT + col0 * - 3 FROM tab2
----
-138
-192
-225

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4058
SELECT + CAST( NULL AS SIGNED ) DIV + col2 AS col0, - col2 * col1 DIV col0 col0 FROM tab1
----
NULL
-26
NULL
-3
NULL
-35

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4058
SELECT + CAST ( NULL AS INTEGER ) / + col2 AS col0, - col2 * col1 / col0 col0 FROM tab1
----
NULL
-26
NULL
-3
NULL
-35

query I rowsort
SELECT col0 FROM tab1 WHERE NOT - ( + + 30 ) * col2 BETWEEN NULL AND - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4060
SELECT DISTINCT - 19 * 64 * - + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4060
SELECT DISTINCT - 19 * 64 * - + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 66 col2 FROM tab0
----
66
66
66

query I rowsort
SELECT + col0 * - - col1 * col2 AS col0 FROM tab0
----
18270
57105
9603

query III rowsort
SELECT * FROM tab1 WHERE NOT + + 31 BETWEEN + col1 AND 55 + + col2
----
91
47
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4064
SELECT - - MIN( 45 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL <= + col1 * col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4064
SELECT - - MIN ( 45 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL <= + col1 * col2
----
NULL

query I rowsort
SELECT DISTINCT col0 FROM tab0 AS cor0 WHERE ( NOT - - col2 IS NOT NULL )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 96 NOT BETWEEN + + col0 AND NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 + - col1 IS NOT NULL
----

query I rowsort
SELECT ALL - col1 FROM tab2 AS cor0 WHERE ( NULL ) > NULL
----

query I rowsort
SELECT - col1 * col2 + col2 FROM tab0 AS cor0 WHERE NOT col2 * + 97 + - col0 - + col0 IS NULL
----
-200
-3760
0

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4071
SELECT DISTINCT COUNT( * ) * + - 33 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-4071
SELECT DISTINCT COUNT ( * ) * + - 33 FROM tab0
----
-99

onlyif mysql # DIV for integer division: 
query II rowsort label-4072
SELECT ( + 27 ) DIV + col0 AS col2, col1 + - 16 * 72 FROM tab1 cor0
----
0
-1105
0
-1138
0
-1147

skipif mysql # not compatible
query II rowsort label-4072
SELECT ( + 27 ) / + col0 AS col2, col1 + - 16 * 72 FROM tab1 cor0
----
0
-1105
0
-1138
0
-1147

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( - col2 * - + 53 + + + 48 ) NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4074
SELECT DISTINCT - col2, 21 * col2 * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

skipif mysql # not compatible
query II rowsort label-4074
SELECT DISTINCT - col2, 21 * col2 * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT - 80 * col0 AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-1200
-6960
-7760

onlyif mysql # aggregate syntax: 
query I rowsort label-4076
SELECT + - SUM( + - 24 ) AS col0 FROM tab2 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-4076
SELECT + - SUM ( + - 24 ) AS col0 FROM tab2 AS cor0
----
72

query I rowsort
SELECT - 63 * - + col0 FROM tab0 AS cor0
----
5481
6111
945

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col2 FROM tab1 WHERE ( ( NULL ) IS NOT NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4079
SELECT 42 / - - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4079
SELECT 42 / - - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE + 25 + + col2 NOT BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 35 col2, 37 * + col2 * - col0 AS col0 FROM tab1
----
-35
-181152
-35
-185555
-35
-228956

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4082
SELECT ALL + COUNT( * ) DIV - 74 AS col0 FROM tab0, tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-4082
SELECT ALL + COUNT ( * ) / - 74 AS col0 FROM tab0, tab2 cor0
----
0

query I rowsort
SELECT ALL - col1 FROM tab2 WHERE ( col0 * + 44 <> NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN - col0 AND + + 64 * + - col2 * col2 + col1
----

query I rowsort
SELECT ALL col2 AS col2 FROM tab0 WHERE ( NOT NULL <> NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4086
SELECT ALL col2 + + + col2 DIV - + 27 FROM tab1
----
57
66
93

skipif mysql # not compatible
query I rowsort label-4086
SELECT ALL col2 + + + col2 / - + 27 FROM tab1
----
57
66
93

onlyif mysql # aggregate syntax: 
query I rowsort label-4087
SELECT DISTINCT - + 29 - COUNT( * ) FROM tab2 AS cor0
----
-32

skipif mysql # not compatible
query I rowsort label-4087
SELECT DISTINCT - + 29 - COUNT ( * ) FROM tab2 AS cor0
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-4088
SELECT - COUNT( * ) + + - 57 col1 FROM tab0 AS cor0
----
-60

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4088
SELECT - COUNT ( * ) + + - 57 col1 FROM tab0 AS cor0
----
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4089
SELECT - col2 + + CAST( - col0 AS SIGNED ) FROM tab2 AS cor0
----
-104
-133
-69

skipif mysql # not compatible
query I rowsort label-4089
SELECT - col2 + + CAST ( - col0 AS INTEGER ) FROM tab2 AS cor0
----
-104
-133
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4090
SELECT ALL + CAST( NULL AS SIGNED ) * - 29 + ( - MAX( ALL - 12 ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4090
SELECT ALL + CAST ( NULL AS INTEGER ) * - 29 + ( - MAX ( ALL - 12 ) ) FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE + - col1 NOT BETWEEN - col1 + + col2 AND ( col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 19 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 339c9d62143bf2f7566b89a1b56eeeb4

query I rowsort
SELECT + 54 FROM tab1 AS cor0 WHERE NOT + col1 IS NULL
----
54
54
54

query I rowsort
SELECT - col0 * + col1 * + col0 AS col0 FROM tab2 AS cor0
----
-107916
-315392
-376875

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( col2 ) <= - 35 / + col0
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 73 * - 11 + - 62 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4097
SELECT * FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) * col2 * + + col0 / + - 21 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4097
SELECT * FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) * col2 * + + col0 / + - 21 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4098
SELECT + CAST( 96 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
96
96
96

skipif mysql # not compatible
query I rowsort label-4098
SELECT + CAST ( 96 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
96
96
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 11 col0 FROM tab1 AS cor0
----
11

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 BETWEEN - col2 AND - 54
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT - col2, + ( + col2 ) AS col0 FROM tab2
----
-23
23
-40
40
-58
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0, - ( - 59 ) + - col2 col1 FROM tab0
----
15
12
87
49
97
-40

query I rowsort
SELECT col2 * - 43 FROM tab1
----
-2537
-2924
-4128

onlyif mysql # aggregate syntax: 
query II rowsort label-4104
SELECT + - 55 AS col1, COUNT( * ) FROM tab0 AS cor0 WHERE NOT + col2 + - 96 IS NULL
----
-55
3

skipif mysql # not compatible
query II rowsort label-4104
SELECT + - 55 AS col1, COUNT ( * ) FROM tab0 AS cor0 WHERE NOT + col2 + - 96 IS NULL
----
-55
3

query II rowsort
SELECT DISTINCT col1 + - + 95, 48 + 51 AS col2 FROM tab0
----
-14
99
-74
99
-94
99

onlyif mysql # DIV for integer division: 
query I rowsort label-4106
SELECT - col0 + - - col1 + + col2 DIV + - 3 + + col2 + - col1 - + ( - + col1 ) AS col0 FROM tab1 AS cor0
----
-40
2
27

skipif mysql # not compatible
query I rowsort label-4106
SELECT - col0 + - - col1 + + col2 / + - 3 + + col2 + - col1 - + ( - + col1 ) AS col0 FROM tab1 AS cor0
----
-40
2
27

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4107
SELECT * FROM tab2 AS cor0 WHERE - CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) * - col2 * + - col1 + col2 IN ( - 66 )
----

skipif mysql # not compatible
query III rowsort label-4107
SELECT * FROM tab2 AS cor0 WHERE - CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) * - col2 * + - col1 + col2 IN ( - 66 )
----

query I rowsort
SELECT - col1 * col2 + + + col0 FROM tab2 AS cor0
----
-1127
-3016
-3811

onlyif mysql # aggregate syntax: 
query II rowsort label-4109
SELECT + 57 + 88 * - + 35 + - - 51 + + - 99, COUNT( DISTINCT + + col2 ) AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
-3071
0

skipif mysql # not compatible
query II rowsort label-4109
SELECT + 57 + 88 * - + 35 + - - 51 + + - 99, COUNT ( DISTINCT + + col2 ) AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
-3071
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4110
SELECT ALL - ( COUNT( ALL + - col0 ) ) * - 55 AS col0 FROM tab0 AS cor0 WHERE NOT - col1 + col2 / - + col0 + - 31 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4110
SELECT ALL - ( COUNT ( ALL + - col0 ) ) * - 55 AS col0 FROM tab0 AS cor0 WHERE NOT - col1 + col2 / - + col0 + - 31 IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4111
SELECT * FROM tab2 WHERE ( - - CAST( + 29 AS SIGNED ) ) <= - 55 + - + 81
----

skipif mysql # not compatible
query III rowsort label-4111
SELECT * FROM tab2 WHERE ( - - CAST ( + 29 AS INTEGER ) ) <= - 55 + - + 81
----

query I rowsort
SELECT + col2 AS col2 FROM tab1 WHERE + col2 NOT BETWEEN - - col1 AND - ( ( col1 ) )
----
59
68
96

query I rowsort
SELECT DISTINCT - 58 * - col0 AS col0 FROM tab1
----
2958
4930
5278

onlyif mysql # aggregate syntax: 
query I rowsort label-4114
SELECT - COUNT( * ) FROM tab2 WHERE - col2 * + col2 - + col0 * 18 <> + 67
----
-3

skipif mysql # not compatible
query I rowsort label-4114
SELECT - COUNT ( * ) FROM tab2 WHERE - col2 * + col2 - + col0 * 18 <> + 67
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-4115
SELECT + COUNT( * ) * - ( - - 2 ) AS col2, COUNT( * ) FROM tab0
----
-6
3

skipif mysql # not compatible
query II rowsort label-4115
SELECT + COUNT ( * ) * - ( - - 2 ) AS col2, COUNT ( * ) FROM tab0
----
-6
3

onlyif mysql # aggregate syntax: 
query II rowsort label-4116
SELECT COUNT( * ) AS col2, 49 AS col0 FROM tab1
----
3
49

skipif mysql # not compatible
query II rowsort label-4116
SELECT COUNT ( * ) AS col2, 49 AS col0 FROM tab1
----
3
49

query II rowsort
SELECT col2 AS col2, + 92 AS col2 FROM tab1
----
59
92
68
92
96
92

query III rowsort
SELECT * FROM tab2 WHERE - col0 IN ( + ( - 19 ) * col1 + 6 + - col1 )
----

query I rowsort
SELECT ALL + col2 + + 4 AS col2 FROM tab0
----
103
14
51

query I rowsort
SELECT DISTINCT - col0 * - col2 * 71 - + ( col0 ) * + col2 FROM tab1
----
342720
351050
433160

query I rowsort
SELECT ALL - col2 + - 33 + + + 15 * - col2 FROM tab2 AS cor0
----
-401
-673
-961

onlyif mysql # aggregate syntax: 
query I rowsort label-4122
SELECT DISTINCT - 6 * + SUM( - 93 ) AS col0 FROM tab1 AS cor0 WHERE NULL <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4122
SELECT DISTINCT - 6 * + SUM ( - 93 ) AS col0 FROM tab1 AS cor0 WHERE NULL <= NULL
----
NULL

query I rowsort
SELECT DISTINCT + - 58 + col1 AS col1 FROM tab1 AS cor0
----
-11
-44
-53

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col2 + col1 * - - col0 IS NULL
----

query I rowsort
SELECT 82 + - 95 * col0 * + + col1 + + col1 AS col2 FROM tab2 AS cor0
----
-222737
-468001
-477226

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - - col2 ) + - col2 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4127
SELECT DISTINCT + ( - SUM( col0 ) ) FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-4127
SELECT DISTINCT + ( - SUM ( col0 ) ) FROM tab1
----
-227

onlyif mysql # aggregate syntax: 
query I rowsort label-4128
SELECT DISTINCT - SUM( + col0 ) FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-4128
SELECT DISTINCT - SUM ( + col0 ) FROM tab2 AS cor0
----
-185

query II rowsort
SELECT - + col1 AS col0, + col2 - col0 * - + col2 AS col1 FROM tab1 cor0
----
-14
4992
-47
6256
-5
5074

onlyif mysql # aggregate syntax: 
query I rowsort label-4130
SELECT COUNT( DISTINCT + 31 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4130
SELECT COUNT ( DISTINCT + 31 ) FROM tab0 AS cor0
----
1

query I rowsort
SELECT + col0 * + ( + col1 ) AS col2 FROM tab1
----
425
4277
714

query I rowsort
SELECT + col1 * 27 FROM tab1 WHERE NOT 79 + 94 NOT IN ( 85 * - col1 * 71 + - col0 + col1, col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4133
SELECT COUNT( * ) * + 92 AS col0 FROM tab2
----
276

skipif mysql # not compatible
query I rowsort label-4133
SELECT COUNT ( * ) * + 92 AS col0 FROM tab2
----
276

onlyif mysql # DIV for integer division: 
query I rowsort label-4134
SELECT ALL 92 DIV - + ( col2 ) FROM tab0
----
-1
-9
0

skipif mysql # not compatible
query I rowsort label-4134
SELECT ALL 92 / - + ( col2 ) FROM tab0
----
-1
-9
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + - 62 * col2 col2 FROM tab2
----
-1477
-2557
-3663

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4136
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN - col1 AND + CAST( + col0 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4136
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN - col1 AND + CAST ( + col0 AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4137
SELECT ALL 98 * + + CAST( - 81 AS SIGNED ) FROM tab1 AS cor0
----
-7938
-7938
-7938

skipif mysql # not compatible
query I rowsort label-4137
SELECT ALL 98 * + + CAST ( - 81 AS INTEGER ) FROM tab1 AS cor0
----
-7938
-7938
-7938

query I rowsort
SELECT + col2 + + 47 AS col0 FROM tab0 cor0
----
146
57
94

query I rowsort
SELECT - - col2 + - col2 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT ( + ( + + col0 ) ) + - - col2 + + col1 FROM tab0 AS cor0
----
118
143
197

query I rowsort
SELECT + col0 + - 43 * - + col1 FROM tab2
----
2239
2956
3375

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col1 = col0 + + col0
----

query II rowsort
SELECT ALL - col2, col1 FROM tab1 cor0
----
-59
5
-68
47
-96
14

query I rowsort
SELECT DISTINCT + 43 + - - col1 * + 79 * + - 35 AS col2 FROM tab1 cor0
----
-129912
-13782
-38667

onlyif mysql # aggregate syntax: 
query I rowsort label-4145
SELECT DISTINCT + MIN( - col0 ) * - - MIN( + 76 ) AS col2 FROM tab2 AS cor0 WHERE 24 + col2 IS NOT NULL
----
-5700

skipif mysql # not compatible
query I rowsort label-4145
SELECT DISTINCT + MIN ( - col0 ) * - - MIN ( + 76 ) AS col2 FROM tab2 AS cor0 WHERE 24 + col2 IS NOT NULL
----
-5700

onlyif mysql # aggregate syntax: 
query I rowsort label-4146
SELECT MAX( DISTINCT - 44 ) AS col2 FROM tab2 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-4146
SELECT MAX ( DISTINCT - 44 ) AS col2 FROM tab2 AS cor0
----
-44

query I rowsort
SELECT + col1 - ( - + ( - 23 ) ) + + col1 * + - 87 FROM tab0 AS cor0
----
-109
-1829
-6989

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4148
SELECT DISTINCT + col2 * - - col1 * + + CAST( + col0 AS SIGNED ) * + 3 + - col1 * + col0 + + - ( + + ( - + col2 ) ) col1 FROM tab2 AS cor0
----
159551
586472
869383

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4148
SELECT DISTINCT + col2 * - - col1 * + + CAST ( + col0 AS INTEGER ) * + 3 + - col1 * + col0 + + - ( + + ( - + col2 ) ) col1 FROM tab2 AS cor0
----
159551
586472
869383

query I rowsort
SELECT col1 - + 65 + + 26 FROM tab1
----
-25
-34
8

query III rowsort
SELECT * FROM tab0 WHERE + - 94 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-4151
SELECT - 64 - + COUNT( * ), + 50 AS col1 FROM tab0
----
-67
50

skipif mysql # not compatible
query II rowsort label-4151
SELECT - 64 - + COUNT ( * ), + 50 AS col1 FROM tab0
----
-67
50

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4152
SELECT DISTINCT * FROM tab1 WHERE NOT - 91 >= - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4152
SELECT DISTINCT * FROM tab1 WHERE NOT - 91 >= - - CAST ( NULL AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4153
SELECT col0 + 67 - 15 + + 23 + + 75 DIV 77 AS col0 FROM tab2
----
121
139
150

skipif mysql # not compatible
query I rowsort label-4153
SELECT col0 + 67 - 15 + + 23 + + 75 / 77 AS col0 FROM tab2
----
121
139
150

query III rowsort
SELECT ALL * FROM tab1 WHERE + - col1 * - col0 * - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4155
SELECT DISTINCT SUM( ALL col0 ) * + COUNT( * ) * COUNT( * ) AS col2 FROM tab1
----
2043

skipif mysql # not compatible
query I rowsort label-4155
SELECT DISTINCT SUM ( ALL col0 ) * + COUNT ( * ) * COUNT ( * ) AS col2 FROM tab1
----
2043

onlyif mysql # aggregate syntax: 
query I rowsort label-4156
SELECT ALL - 41 - + 53 * - - COUNT( + - 54 ) * 70 FROM tab2
----
-11171

skipif mysql # not compatible
query I rowsort label-4156
SELECT ALL - 41 - + 53 * - - COUNT ( + - 54 ) * 70 FROM tab2
----
-11171

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4157
SELECT ALL col2 + + + CAST( col0 AS SIGNED ) AS col0 FROM tab0
----
196
62
97

skipif mysql # not compatible
query I rowsort label-4157
SELECT ALL col2 + + + CAST ( col0 AS INTEGER ) AS col0 FROM tab0
----
196
62
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4158
SELECT MAX( ALL - - col2 ) FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-4158
SELECT MAX ( ALL - - col2 ) FROM tab0
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4159
SELECT ALL + 52 * - + col2 * - CAST( - col2 AS SIGNED ) AS col2 FROM tab2
----
-174928
-27508
-83200

skipif mysql # not compatible
query I rowsort label-4159
SELECT ALL + 52 * - + col2 * - CAST ( - col2 AS INTEGER ) AS col2 FROM tab2
----
-174928
-27508
-83200

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 27 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 97 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e4a6bd848a69226cbb7ad3d154be321b

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE + 18 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4163
SELECT - - COUNT( * ) * - 20 col2 FROM tab1 AS cor0
----
-60

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4163
SELECT - - COUNT ( * ) * - 20 col2 FROM tab1 AS cor0
----
-60

query II rowsort
SELECT ALL + 79 * ( + - 2 ) AS col0, - col1 + + + ( col0 ) FROM tab0 AS cor0
----
-158
-66
-158
66
-158
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4165
SELECT DISTINCT - - 37 * + SUM( ALL + + col1 ) FROM tab2 AS cor0
----
7215

skipif mysql # not compatible
query I rowsort label-4165
SELECT DISTINCT - - 37 * + SUM ( ALL + + col1 ) FROM tab2 AS cor0
----
7215

onlyif mysql # DIV for integer division: 
query I rowsort label-4166
SELECT + col0 DIV - ( - col0 ) + ( col2 ) DIV - - col1 FROM tab0 AS cor0
----
1
1
100

skipif mysql # not compatible
query I rowsort label-4166
SELECT + col0 / - ( - col0 ) + ( col2 ) / - - col1 FROM tab0 AS cor0
----
1
1
100

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4167
SELECT ALL - COUNT( * ) DIV - 8 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4167
SELECT ALL - COUNT ( * ) / - 8 AS col2 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4168
SELECT MAX( ALL 0 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4168
SELECT MAX ( ALL 0 ) FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4169
SELECT ALL SUM( DISTINCT - col1 ) FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-4169
SELECT ALL SUM ( DISTINCT - col1 ) FROM tab1 AS cor0
----
-66

query I rowsort
SELECT ALL col0 * - 0 + - + col0 * + col2 FROM tab1 AS cor0
----
-4896
-5015
-6188

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4171
SELECT ALL col2 * CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4171
SELECT ALL col2 * CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT + col0 * - 49, - col2 AS col2 FROM tab0
----
-4263
-10
-4753
-99
-735
-47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 87 * - + ( + col1 ) + + - col1, + ( col2 ) * col1 col1 FROM tab2
----
-4488
1173
-5896
3886
-6776
3080

onlyif mysql # aggregate syntax: 
query I rowsort label-4174
SELECT DISTINCT MAX( col2 ) + - 16 AS col2 FROM tab1
----
80

skipif mysql # not compatible
query I rowsort label-4174
SELECT DISTINCT MAX ( col2 ) + - 16 AS col2 FROM tab1
----
80

onlyif mysql # DIV for integer division: 
query I rowsort label-4175
SELECT DISTINCT - 96 DIV col1 * + - 23 AS col0 FROM tab1
----
138
437
46

skipif mysql # not compatible
query I rowsort label-4175
SELECT DISTINCT - 96 / col1 * + - 23 AS col0 FROM tab1
----
138
437
46

onlyif mysql # DIV for integer division: 
query II rowsort label-4176
SELECT + col1 AS col0, col2 * ( + col2 ) * col0 DIV - 85 FROM tab0
----
1
-11184
21
-102
81
-389

skipif mysql # not compatible
query II rowsort label-4176
SELECT + col1 AS col0, col2 * ( + col2 ) * col0 / - 85 FROM tab0
----
1
-11184
21
-102
81
-389

query III rowsort
SELECT * FROM tab2 WHERE NOT + 8 * - col2 + + + col2 IS NOT NULL
----

query I rowsort
SELECT ALL + col0 FROM tab0 AS cor0 WHERE NOT ( col0 <> col2 )
----

query I rowsort
SELECT ALL - 17 + + + ( + - col0 ) AS col1 FROM tab2
----
-63
-81
-92

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4180
SELECT DISTINCT - col1 * col0 * + - CAST( + col2 AS SIGNED ) + - 18, + col2 FROM tab0 AS cor0
----
18252
10
57087
47
9585
99

skipif mysql # not compatible
query II rowsort label-4180
SELECT DISTINCT - col1 * col0 * + - CAST ( + col2 AS INTEGER ) + - 18, + col2 FROM tab0 AS cor0
----
18252
10
57087
47
9585
99

query I rowsort
SELECT - ( + 35 ) + + + ( + - col1 ) FROM tab0 AS cor0
----
-116
-36
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-4182
SELECT - COUNT( + col2 ) AS col2 FROM tab0 AS cor0 WHERE col0 + - ( 64 ) + + - 41 BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-4182
SELECT - COUNT ( + col2 ) AS col2 FROM tab0 AS cor0 WHERE col0 + - ( 64 ) + + - 41 BETWEEN NULL AND NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4183
SELECT ALL - CAST( 32 AS SIGNED ) - + 42 + - COUNT( * ) FROM tab1 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-4183
SELECT ALL - CAST ( 32 AS INTEGER ) - + 42 + - COUNT ( * ) FROM tab1 AS cor0
----
-77

query I rowsort
SELECT - col1 * - - col0 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-1215
-1827
-97

query IIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0 WHERE NOT - + 15 IS NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4186
SELECT CAST( NULL AS SIGNED ) * - col2 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4186
SELECT CAST ( NULL AS INTEGER ) * - col2 AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT col2 - - - 28 FROM tab0
----
-18
19
71

onlyif mysql # aggregate syntax: 
query I rowsort label-4188
SELECT + MAX( - 39 ) AS col0 FROM tab1
----
-39

skipif mysql # not compatible
query I rowsort label-4188
SELECT + MAX ( - 39 ) AS col0 FROM tab1
----
-39

query III rowsort
SELECT ALL * FROM tab1 WHERE + - col1 * - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - 19 AS col1, - col2 FROM tab1
----
-19
-59
-19
-68
-19
-96

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - ( + 55 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4192
SELECT ALL + MAX( DISTINCT 43 ) FROM tab2
----
43

skipif mysql # not compatible
query I rowsort label-4192
SELECT ALL + MAX ( DISTINCT 43 ) FROM tab2
----
43

query I rowsort
SELECT ( + col0 ) * - col2 * + + col0 FROM tab2
----
-163840
-326250
-48668

onlyif mysql # aggregate syntax: 
query I rowsort label-4194
SELECT - ( SUM( - col1 ) ) AS col1 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-4194
SELECT - ( SUM ( - col1 ) ) AS col1 FROM tab1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4195
SELECT ALL COUNT( ALL - col0 ) * - + 27 + 98 AS col2 FROM tab2
----
17

skipif mysql # not compatible
query I rowsort label-4195
SELECT ALL COUNT ( ALL - col0 ) * - + 27 + 98 AS col2 FROM tab2
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4196
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + col2 AND - 14 - CAST( - col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4196
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + col2 AND - 14 - CAST ( - col2 AS INTEGER )
----

query I rowsort
SELECT ALL + col1 * + 69 + - 45 AS col1 FROM tab0 AS cor0
----
1404
24
5544

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL IN ( + col1 )
----

query I rowsort
SELECT col0 / + 4 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN 40 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4200
SELECT DISTINCT - 99 * + 62 + - CAST( + ( - - CAST( - col1 AS SIGNED ) ) AS SIGNED ) FROM tab2 AS cor0
----
-6061
-6071
-6087

skipif mysql # not compatible
query I rowsort label-4200
SELECT DISTINCT - 99 * + 62 + - CAST ( + ( - - CAST ( - col1 AS INTEGER ) ) AS INTEGER ) FROM tab2 AS cor0
----
-6061
-6071
-6087

query I rowsort
SELECT DISTINCT + 29 * 62 FROM tab2 AS cor0
----
1798

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 89 - - col1 * - ( + col2 ) IS NULL
----

query I rowsort
SELECT - ( + 64 ) AS col0 FROM tab1
----
-64
-64
-64

query I rowsort
SELECT DISTINCT 14 + + - col1 FROM tab2
----
-37
-53
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-4205
SELECT DISTINCT + 47 + + col2 DIV 61 - - + col2 + + col1 * - col2 * + col0 AS col1 FROM tab1
----
-24969
-290720
-68400

skipif mysql # not compatible
query I rowsort label-4205
SELECT DISTINCT + 47 + + col2 / 61 - - + col2 + + col1 * - col2 * + col0 AS col1 FROM tab1
----
-24969
-290720
-68400

query I rowsort
SELECT ALL + col1 + col0 AS col1 FROM tab1 WHERE NOT - col1 <= ( 98 )
----

query III rowsort
SELECT * FROM tab1 WHERE + + 81 < NULL
----

query I rowsort
SELECT ALL - col0 + + + col2 AS col1 FROM tab1
----
-23
-26
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4209
SELECT ALL - AVG ( ALL + ( + CAST( NULL AS SIGNED ) ) ) / - 85 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4209
SELECT ALL - AVG ( ALL + ( + CAST ( NULL AS INTEGER ) ) ) / - 85 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - + 8 + + ( - col2 ) AS col1 FROM tab2 AS cor0
----
-31
-48
-66

query I rowsort
SELECT - 58 + - + 56 + - col0 - col0 + + - 86 FROM tab1 AS cor0
----
-302
-370
-382

query I rowsort
SELECT + - 39 + col2 AS col0 FROM tab2 AS cor0
----
-16
1
19

onlyif mysql # aggregate syntax: 
query I rowsort label-4213
SELECT + 72 + + - COUNT( ALL - col1 ) AS col0 FROM tab2 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-4213
SELECT + 72 + + - COUNT ( ALL - col1 ) AS col0 FROM tab2 AS cor0
----
69

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) IN ( + + col2, + col2, - 90 )
----

query I rowsort
SELECT - - col2 + + - 72 FROM tab0 AS cor0
----
-25
-62
27

query I rowsort
SELECT ALL - ( + + 75 ) FROM tab2 AS cor0
----
-75
-75
-75

query I rowsort
SELECT ALL + 82 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c

onlyif mysql # aggregate syntax: 
query I rowsort label-4218
SELECT DISTINCT + 18 + COUNT( * ) FROM tab2
----
21

skipif mysql # not compatible
query I rowsort label-4218
SELECT DISTINCT + 18 + COUNT ( * ) FROM tab2
----
21

query I rowsort
SELECT DISTINCT + col1 + + 28 FROM tab2
----
105
79
95

onlyif mysql # aggregate syntax: 
query I rowsort label-4220
SELECT ALL - 48 + - COUNT( * ) + - COUNT( * ) FROM tab1 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-4220
SELECT ALL - 48 + - COUNT ( * ) + - COUNT ( * ) FROM tab1 AS cor0
----
-54

query I rowsort
SELECT - col2 * col0 * ( - + col0 ) + + col2 FROM tab1 AS cor0 WHERE - 87 BETWEEN - col0 + + col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4222
SELECT DISTINCT - + COUNT( * ) + COUNT( * ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4222
SELECT DISTINCT - + COUNT ( * ) + COUNT ( * ) FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4223
SELECT DISTINCT + 8 AS col2, - COUNT( DISTINCT - + col0 ) FROM tab2 AS cor0
----
8
-3

skipif mysql # not compatible
query II rowsort label-4223
SELECT DISTINCT + 8 AS col2, - COUNT ( DISTINCT - + col0 ) FROM tab2 AS cor0
----
8
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-4224
SELECT ALL + col2 - + 50 DIV + col2 AS col1 FROM tab2 AS cor0
----
21
39
58

skipif mysql # not compatible
query I rowsort label-4224
SELECT ALL + col2 - + 50 / + col2 AS col1 FROM tab2 AS cor0
----
21
39
58

query I rowsort
SELECT 45 * + + 41 - + 13 * - col1 FROM tab2 AS cor0
----
2508
2716
2846

onlyif mysql # aggregate syntax: 
query II rowsort label-4226
SELECT ALL + 57, COUNT( * ) col2 FROM tab1 AS cor0
----
57
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4226
SELECT ALL + 57, COUNT ( * ) col2 FROM tab1 AS cor0
----
57
3

query II rowsort
SELECT DISTINCT - col0 - - col2, 84 AS col1 FROM tab1 AS cor0
----
-23
84
-26
84
45
84

query I rowsort
SELECT ALL 28 FROM tab2 WHERE NOT - - 16 IS NULL
----
28
28
28

query I rowsort
SELECT 73 * - + 9 AS col1 FROM tab1
----
-657
-657
-657

onlyif mysql # aggregate syntax: 
query I rowsort label-4230
SELECT - + COUNT( * ) AS col2 FROM tab2 WHERE NOT NULL = - 62
----
0

skipif mysql # not compatible
query I rowsort label-4230
SELECT - + COUNT ( * ) AS col2 FROM tab2 WHERE NOT NULL = - 62
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4231
SELECT ALL + MIN( + col0 ) col2 FROM tab0
----
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4231
SELECT ALL + MIN ( + col0 ) col2 FROM tab0
----
15

query I rowsort
SELECT + col0 * - 45 * 21 AS col0 FROM tab0
----
-14175
-82215
-91665

query II rowsort
SELECT ALL + col0 * + 41, - col2 AS col0 FROM tab0
----
3567
-10
3977
-99
615
-47

query I rowsort
SELECT - 77 * col1 * + col1 FROM tab1
----
-15092
-170093
-1925

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4235
SELECT ( - CAST( - + 77 AS SIGNED ) ) AS col2 FROM tab0 WHERE NOT NULL NOT IN ( - col1 + + col2 + col2, CAST( - col1 AS SIGNED ) + - col0 + 79 )
----

skipif mysql # not compatible
query I rowsort label-4235
SELECT ( - CAST ( - + 77 AS INTEGER ) ) AS col2 FROM tab0 WHERE NOT NULL NOT IN ( - col1 + + col2 + col2, CAST ( - col1 AS INTEGER ) + - col0 + 79 )
----

query I rowsort
SELECT ALL - - col1 AS col0 FROM tab2 AS cor0 WHERE NOT - col2 <= - 49 + + col0
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 0 NOT IN ( - + col0, col0, - + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4238
SELECT + - SUM( + col2 ) FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-4238
SELECT + - SUM ( + col2 ) FROM tab1 AS cor0
----
-223

query I rowsort
SELECT DISTINCT - col2 + col1 * - col2 AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4240
SELECT DISTINCT 43, - COUNT( * ) AS col0 FROM tab0
----
43
-3

skipif mysql # not compatible
query II rowsort label-4240
SELECT DISTINCT 43, - COUNT ( * ) AS col0 FROM tab0
----
43
-3

query I rowsort
SELECT 59 * + ( + - 79 ) * + col1 + + col1 AS col0 FROM tab0
----
-377460
-4660
-97860

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + + 1 col1 FROM tab1
----
15
48
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4243
SELECT COUNT( * ) * + - CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4243
SELECT COUNT ( * ) * + - CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL

query I rowsort
SELECT ALL - 5 * + col2 AS col1 FROM tab0 AS cor0
----
-235
-495
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-4245
SELECT - + col1 DIV - + col2 AS col2 FROM tab0 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-4245
SELECT - + col1 / - + col2 AS col2 FROM tab0 AS cor0
----
0
1
2

query I rowsort
SELECT ALL col1 AS col0 FROM tab1 cor0 WHERE NOT - 95 + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4247
SELECT MIN( ALL + col0 ) * + + 18 AS col0 FROM tab2 cor0
----
828

skipif mysql # not compatible
query I rowsort label-4247
SELECT MIN ( ALL + col0 ) * + + 18 AS col0 FROM tab2 cor0
----
828

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4248
SELECT DISTINCT - COUNT( * ) AS col2, - AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-4248
SELECT DISTINCT - COUNT ( * ) AS col2, - AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
-3
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 * - col0 col0, - 91 AS col0 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN - 9 + + col2 AND + col2
----

query I rowsort
SELECT DISTINCT col1 * + 57 + - 92 FROM tab0
----
-35
1105
4525

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4251
SELECT + 29 * CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4251
SELECT + 29 * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 51 + - col2 FROM tab0
----
-150
-61
-98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4253
SELECT DISTINCT - 18 + - MAX( col1 ) DIV SUM( DISTINCT - col2 ) FROM tab2
----
-18

skipif mysql # not compatible
query I rowsort label-4253
SELECT DISTINCT - 18 + - MAX ( col1 ) / SUM ( DISTINCT - col2 ) FROM tab2
----
-18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 12 * - col0 col1 FROM tab1
----
1020
1092
612

query I rowsort
SELECT ALL col2 + col1 * - 68 FROM tab0 AS cor0
----
-1418
-5461
31

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 95 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4257
SELECT DISTINCT + + COUNT( * ) AS col2, 68 + COUNT( * ) FROM tab2 AS cor0 WHERE ( + col0 IS NOT NULL )
----
3
71

skipif mysql # not compatible
query II rowsort label-4257
SELECT DISTINCT + + COUNT ( * ) AS col2, 68 + COUNT ( * ) FROM tab2 AS cor0 WHERE ( + col0 IS NOT NULL )
----
3
71

query I rowsort
SELECT ALL + + col2 - 35 FROM tab1 cor0
----
24
33
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4259
SELECT - 99 + - COUNT( * ) * - - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4259
SELECT - 99 + - COUNT ( * ) * - - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col2 + + - 42 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4261
SELECT ALL MIN( col0 ) AS col1 FROM tab0 AS cor0 WHERE NULL <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4261
SELECT ALL MIN ( col0 ) AS col1 FROM tab0 AS cor0 WHERE NULL <> NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4262
SELECT DISTINCT + CAST( NULL AS SIGNED ) - - - col2 AS col0 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4262
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - - - col2 AS col0 FROM tab0 cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 33 * - + 60 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT + col2, + 92 FROM tab0 WHERE NOT NULL BETWEEN + 0 * + ( - - 5 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4265
SELECT + COUNT( * ) * + 9 FROM tab2
----
27

skipif mysql # not compatible
query I rowsort label-4265
SELECT + COUNT ( * ) * + 9 FROM tab2
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-4266
SELECT ( + col2 ) DIV - + col0 AS col1 FROM tab0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-4266
SELECT ( + col2 ) / - + col0 AS col1 FROM tab0
----
-1
-3
0

query I rowsort
SELECT - col2 FROM tab0 WHERE NOT + col0 * - + col0 * - 76 / - - col2 = + col1
----
-10
-47
-99

query I rowsort
SELECT + col1 * - - 83 AS col2 FROM tab1
----
1162
3901
415

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col0 * - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-4270
SELECT ALL - 18 * col0 DIV - col2 FROM tab2
----
23
28
36

skipif mysql # not compatible
query I rowsort label-4270
SELECT ALL - 18 * col0 / - col2 FROM tab2
----
23
28
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4271
SELECT + 35 * - COUNT( * ) AS col0 FROM tab0
----
-105

skipif mysql # not compatible
query I rowsort label-4271
SELECT + 35 * - COUNT ( * ) AS col0 FROM tab0
----
-105

query I rowsort
SELECT DISTINCT 42 / 44 * + col2 AS col0 FROM tab0 AS cor0 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT ALL - + 18 AS col1 FROM tab1 AS cor0
----
-18
-18
-18

query II rowsort
SELECT + 50, col0 AS col2 FROM tab2 AS cor0
----
50
46
50
64
50
75

query I rowsort
SELECT col2 + 68 + - col2 + 69 AS col2 FROM tab0
----
137
137
137

query III rowsort
SELECT * FROM tab2 WHERE NOT + + 6 > - ( - - 87 )
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col2 / + col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4278
SELECT 55 * - + 65, + 63 DIV - + col1 AS col1 FROM tab2 AS cor0
----
-3575
-1
-3575
0
-3575
0

skipif mysql # not compatible
query II rowsort label-4278
SELECT 55 * - + 65, + 63 / - + col1 AS col1 FROM tab2 AS cor0
----
-3575
-1
-3575
0
-3575
0

onlyif mysql # DIV for integer division: 
query II rowsort label-4279
SELECT - col0 DIV - + 7 - + 30 AS col0, col2 col0 FROM tab2 AS cor0
----
-20
58
-21
40
-24
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4279
SELECT - col0 / - + 7 - + 30 AS col0, col2 col0 FROM tab2 AS cor0
----
-20
58
-21
40
-24
23

onlyif mysql # aggregate syntax: 
query I rowsort label-4280
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab1 cor0 WHERE NOT col1 / + 42 + col2 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-4280
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab1 cor0 WHERE NOT col1 / + 42 + col2 > NULL
----
0

query I rowsort
SELECT DISTINCT - 56 AS col0 FROM tab0 WHERE NULL <> + col0 + + col0
----

query I rowsort
SELECT 17 * + + col2 AS col0 FROM tab1
----
1003
1156
1632

query I rowsort
SELECT DISTINCT col1 + - - col1 AS col0 FROM tab1
----
10
28
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4284
SELECT DISTINCT - 85 + 51 * 35 + COUNT( * ) FROM tab1
----
1703

skipif mysql # not compatible
query I rowsort label-4284
SELECT DISTINCT - 85 + 51 * 35 + COUNT ( * ) FROM tab1
----
1703

query I rowsort
SELECT ALL + 52 + col0 FROM tab0
----
139
149
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 65 / - 60 col1 FROM tab0 WHERE col0 * + + col0 * 50 BETWEEN - + 84 AND 75 + col0 + col0
----

query I rowsort
SELECT ALL 79 - col1 FROM tab2
----
12
2
28

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( NULL ) IN ( col0 )
----

query I rowsort
SELECT ALL + col2 FROM tab0 AS cor0 WHERE - 32 * - col0 >= 36
----
10
47
99

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4290
SELECT col1 * - col1, + CAST( NULL AS DECIMAL ) - + col1 AS col1 FROM tab0
----
-1
NULL
-441
NULL
-6561
NULL

skipif mysql # not compatible
query II rowsort label-4290
SELECT col1 * - col1, + CAST ( NULL AS REAL ) - + col1 AS col1 FROM tab0
----
-1
NULL
-441
NULL
-6561
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4291
SELECT DISTINCT CAST( + ( + - AVG ( - col2 ) ) AS SIGNED ) + + + CAST( 40 AS SIGNED ) FROM tab0 AS cor0
----
92

skipif mysql # not compatible
query I rowsort label-4291
SELECT DISTINCT CAST ( + ( + - AVG ( - col2 ) ) AS INTEGER ) + + + CAST ( 40 AS INTEGER ) FROM tab0 AS cor0
----
92

query I rowsort
SELECT + ( - + col1 ) AS col1 FROM tab2 cor0
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4293
SELECT ( + COUNT( ALL + col1 ) ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4293
SELECT ( + COUNT ( ALL + col1 ) ) AS col2 FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL - + 58 FROM tab0 AS cor0
----
-58
-58
-58

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL = - + 38
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4296
SELECT ALL + - 72 * COUNT( - 17 ) FROM tab1 WHERE NOT ( NOT NULL NOT BETWEEN - 84 / - 2 + + col0 - col2 AND NULL )
----
0

skipif mysql # not compatible
query I rowsort label-4296
SELECT ALL + - 72 * COUNT ( - 17 ) FROM tab1 WHERE NOT ( NOT NULL NOT BETWEEN - 84 / - 2 + + col0 - col2 AND NULL )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4297
SELECT DISTINCT CAST( col0 AS SIGNED ) * - col2 AS col0 FROM tab1
----
-4896
-5015
-6188

skipif mysql # not compatible
query I rowsort label-4297
SELECT DISTINCT CAST ( col0 AS INTEGER ) * - col2 AS col0 FROM tab1
----
-4896
-5015
-6188

onlyif mysql # aggregate syntax: 
query I rowsort label-4298
SELECT ALL 64 * COUNT( * ) * - + ( ( - - 93 ) ) FROM tab0
----
-17856

skipif mysql # not compatible
query I rowsort label-4298
SELECT ALL 64 * COUNT ( * ) * - + ( ( - - 93 ) ) FROM tab0
----
-17856

query I rowsort
SELECT col2 * + + col2 AS col1 FROM tab2 WHERE NOT ( NOT NULL IS NOT NULL )
----

query I rowsort
SELECT ALL ( + col0 ) AS col0 FROM tab2 WHERE NOT + 90 * + col2 * ( + - 38 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4301
SELECT DISTINCT + + MIN( + + 92 ) FROM tab0 AS cor0
----
92

skipif mysql # not compatible
query I rowsort label-4301
SELECT DISTINCT + + MIN ( + + 92 ) FROM tab0 AS cor0
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-4302
SELECT + SUM( ALL - 84 ) AS col1 FROM tab2 AS cor0
----
-252

skipif mysql # not compatible
query I rowsort label-4302
SELECT + SUM ( ALL - 84 ) AS col1 FROM tab2 AS cor0
----
-252

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL > + col2 / + - col2
----

query I rowsort
SELECT DISTINCT 82 - + col1 AS col0 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col1 + - - 19 * col2 AS col1 FROM tab1
----
1116
1245
1810

onlyif mysql # aggregate syntax: 
query I rowsort label-4306
SELECT ALL MAX( ALL col2 ) AS col2 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-4306
SELECT ALL MAX ( ALL col2 ) AS col2 FROM tab2 AS cor0
----
58

query I rowsort
SELECT DISTINCT + 45 AS col2 FROM tab1 cor0 WHERE NOT - 14 IS NULL
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4308
SELECT + + col1 + CAST( NULL AS SIGNED ) + 66 + - - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4308
SELECT + + col1 + CAST ( NULL AS INTEGER ) + 66 + - - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 + col1 * 89 AS col2 FROM tab1 AS cor0
----
1297
4274
530

onlyif mysql # aggregate syntax: 
query I rowsort label-4310
SELECT + - 16 + + MAX( ALL - col0 ) FROM tab2 cor0
----
-62

skipif mysql # not compatible
query I rowsort label-4310
SELECT + - 16 + + MAX ( ALL - col0 ) FROM tab2 cor0
----
-62

query I rowsort
SELECT ALL 40 + - + col0 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4312
SELECT - col1 + 48 DIV + + col1 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-4312
SELECT - col1 + 48 / + + col1 FROM tab2 AS cor0
----
-51
-67
-77

query II rowsort
SELECT DISTINCT - col2, + col1 + + col1 - + 4 * + + col0 AS col1 FROM tab0 AS cor0
----
-10
-306
-47
102
-99
-386

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN + + 88 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 43 * + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - - 42 - + ( - + col0 ) FROM tab2 AS cor0
----
106
117
88

query I rowsort
SELECT col1 - 2 - + - col2 + + col2 AS col1 FROM tab0 AS cor0
----
173
197
39

query I rowsort
SELECT ALL + - col1 - + ( col1 ) * - col1 + - col2 AS col0 FROM tab1 AS cor0
----
-39
2094
86

query I rowsort
SELECT col1 - - col1 - + 81 * col2 AS col0 FROM tab1 AS cor0
----
-4769
-5414
-7748

query I rowsort
SELECT ALL - col1 - + + col0 * + 95 FROM tab1 AS cor0
----
-4859
-8080
-8692

query I rowsort
SELECT DISTINCT + + col1 - ( + col1 ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL col0 * col0 + + + col2 + + - 4 * + 17 AS col2 FROM tab2 AS cor0
----
2071
4068
5615

onlyif mysql # aggregate syntax: 
query I rowsort label-4323
SELECT + COUNT( ALL + - 77 ) FROM tab1 cor0 CROSS JOIN tab1 cor1
----
9

skipif mysql # not compatible
query I rowsort label-4323
SELECT + COUNT ( ALL + - 77 ) FROM tab1 cor0 CROSS JOIN tab1 cor1
----
9

query I rowsort
SELECT DISTINCT col2 * + - 41 AS col0 FROM tab1
----
-2419
-2788
-3936

query I rowsort
SELECT DISTINCT ( + 61 ) AS col1 FROM tab2
----
61

onlyif mysql # DIV for integer division: 
query I rowsort label-4326
SELECT + col1 DIV + 15 FROM tab2
----
3
4
5

skipif mysql # not compatible
query I rowsort label-4326
SELECT + col1 / + 15 FROM tab2
----
3
4
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + + ( + 85 ) ) col1 FROM tab2 AS cor0
----
85
85
85

query I rowsort
SELECT ALL - 72 * 64 FROM tab0 AS cor0
----
-4608
-4608
-4608

query I rowsort
SELECT ALL - + col1 AS col0 FROM tab0 AS cor0 WHERE 0 / col1 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - + col1 * - + 0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4331
SELECT DISTINCT - + ( + - SUM( col1 ) ) * + COUNT( col1 ) * + 77 * + - 49 FROM tab2 cor0
----
-2207205

skipif mysql # not compatible
query I rowsort label-4331
SELECT DISTINCT - + ( + - SUM ( col1 ) ) * + COUNT ( col1 ) * + 77 * + - 49 FROM tab2 cor0
----
-2207205

query I rowsort
SELECT ALL - 63 * + + 64 - - col2 AS col1 FROM tab2 AS cor0
----
-3974
-3992
-4009

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 20 AS col0, col2 col1 FROM tab2 AS cor0
----
20
23
20
40
20
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4334
SELECT ALL - - 14 * - SUM( + col0 ) AS col1 FROM tab1 cor0
----
-3178

skipif mysql # not compatible
query I rowsort label-4334
SELECT ALL - - 14 * - SUM ( + col0 ) AS col1 FROM tab1 cor0
----
-3178

onlyif mysql # aggregate syntax: 
query I rowsort label-4335
SELECT COUNT( * ) * + 63 AS col0 FROM tab2
----
189

skipif mysql # not compatible
query I rowsort label-4335
SELECT COUNT ( * ) * + 63 AS col0 FROM tab2
----
189

onlyif mysql # DIV for integer division: 
query I rowsort label-4336
SELECT ALL - 91 DIV + ( + 51 ) AS col0 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4336
SELECT ALL - 91 / + ( + 51 ) AS col0 FROM tab2
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 8 * + col0 col1 FROM tab1
----
408
680
728

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 94 * col1 col2 FROM tab1
----
-1316
-4418
-470

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 * - col1 AS col0, col2 col0 FROM tab0
----
-210
10
-3807
47
-99
99

query I rowsort
SELECT - col0 FROM tab1 AS cor0 WHERE NOT + col0 NOT BETWEEN + col2 AND - col0
----

query I rowsort
SELECT - 74 * - col1 AS col2 FROM tab0 cor0 WHERE NOT ( NULL IS NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4342
SELECT DISTINCT + + col0 DIV - 49 AS col2 FROM tab2 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-4342
SELECT DISTINCT + + col0 / - 49 AS col2 FROM tab2 AS cor0
----
-1
0

query I rowsort
SELECT ALL - - col0 * col2 AS col1 FROM tab1 AS cor0 WHERE col1 + - 62 > - col1
----
6188

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL IN ( ( 9 ), col0, col2, 84 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4345
SELECT ALL - + 8 + + CAST( NULL AS SIGNED ) + - COUNT( * ) col1, COUNT( * ) FROM tab0 AS cor0
----
NULL
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4345
SELECT ALL - + 8 + + CAST ( NULL AS INTEGER ) + - COUNT ( * ) col1, COUNT ( * ) FROM tab0 AS cor0
----
NULL
3

onlyif mysql # DIV for integer division: 
query II rowsort label-4346
SELECT DISTINCT col2 + ( - col2 ) + - col0 DIV col2 AS col1, - col2 + - - 78 FROM tab2 AS cor0
----
-1
20
-1
38
-2
55

skipif mysql # not compatible
query II rowsort label-4346
SELECT DISTINCT col2 + ( - col2 ) + - col0 / col2 AS col1, - col2 + - - 78 FROM tab2 AS cor0
----
-1
20
-1
38
-2
55

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + - 66 / - col2 AND + col1 * - + ( - col1 ) + + col1
----

query I rowsort
SELECT - - 5 * - - col1 AS col1 FROM tab2 AS cor0
----
255
335
385

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4349
SELECT * FROM tab1 cor0 WHERE ( - col0 ) IN ( CAST( NULL AS SIGNED ), - col1 )
----

skipif mysql # not compatible
query III rowsort label-4349
SELECT * FROM tab1 cor0 WHERE ( - col0 ) IN ( CAST ( NULL AS INTEGER ), - col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4350
SELECT DISTINCT + CAST( + - ( 82 ) AS SIGNED ) DIV MAX( DISTINCT col0 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4350
SELECT DISTINCT + CAST ( + - ( 82 ) AS INTEGER ) / MAX ( DISTINCT col0 ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT - ( + - 77 ) * - + col1 FROM tab1 AS cor0
----
-1078
-3619
-385

query I rowsort
SELECT DISTINCT - ( ( col2 ) ) AS col0 FROM tab0 AS cor0
----
-10
-47
-99

query III rowsort
SELECT * FROM tab0 WHERE col0 * - 32 * + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4354
SELECT DISTINCT - COUNT( * ) + - + 42 - + 90 AS col1 FROM tab1
----
-135

skipif mysql # not compatible
query I rowsort label-4354
SELECT DISTINCT - COUNT ( * ) + - + 42 - + 90 AS col1 FROM tab1
----
-135

query I rowsort
SELECT 99 - + + col1 + col1 AS col0 FROM tab1
----
99
99
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4356
SELECT + COUNT( 94 ) - - ( COUNT( * ) ) col2 FROM tab2, tab2 AS cor0
----
18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4356
SELECT + COUNT ( 94 ) - - ( COUNT ( * ) ) col2 FROM tab2, tab2 AS cor0
----
18

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4357
SELECT DISTINCT * FROM tab0 WHERE + CAST( NULL AS DECIMAL ) * col0 - + col2 + + col1 * - - 20 - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4357
SELECT DISTINCT * FROM tab0 WHERE + CAST ( NULL AS REAL ) * col0 - + col2 + + col1 * - - 20 - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-4358
SELECT DISTINCT + col0 + col0 DIV + - col0 col1 FROM tab0
----
14
86
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4358
SELECT DISTINCT + col0 + col0 / + - col0 col1 FROM tab0
----
14
86
96

query I rowsort
SELECT ALL col1 + - 12 AS col1 FROM tab2
----
39
55
65

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 * - - col2 < - col1 + - 46
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 38 / col0 * + col0 - 57 BETWEEN NULL AND - col2
----

query I rowsort
SELECT ALL - ( col2 ) * + col0 - + + col1 + col2 * 75 FROM tab2 AS cor0
----
-67
363
616

query II rowsort
SELECT ( + col1 ) AS col0, + col2 * col1 AS col2 FROM tab1 cor0
----
14
1344
47
3196
5
295

query I rowsort
SELECT ALL - 8 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 47f43f23dcd23959d97d8e3b0aab692e

onlyif mysql # aggregate syntax: 
query I rowsort label-4365
SELECT DISTINCT SUM( ALL + col2 ) FROM tab2 AS cor0 WHERE - col1 IS NOT NULL
----
121

skipif mysql # not compatible
query I rowsort label-4365
SELECT DISTINCT SUM ( ALL + col2 ) FROM tab2 AS cor0 WHERE - col1 IS NOT NULL
----
121

query I rowsort
SELECT DISTINCT + 25 * - + col0 FROM tab2 cor0
----
-1150
-1600
-1875

query I rowsort
SELECT + col1 * + 15 FROM tab0 AS cor0
----
1215
15
315

query I rowsort
SELECT ALL 34 * + 95 * col0 FROM tab2 AS cor0
----
148580
206720
242250

onlyif mysql # aggregate syntax: 
query I rowsort label-4369
SELECT + MIN( ALL - col1 ) AS col1 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-4369
SELECT + MIN ( ALL - col1 ) AS col1 FROM tab2 AS cor0
----
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-4370
SELECT - 9 DIV + + 62 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4370
SELECT - 9 / + + 62 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4371
SELECT * FROM tab0 cor0 WHERE NOT col0 + + CAST( - col0 AS SIGNED ) BETWEEN col0 AND - + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4371
SELECT * FROM tab0 cor0 WHERE NOT col0 + + CAST ( - col0 AS INTEGER ) BETWEEN col0 AND - + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4372
SELECT ALL - CAST( NULL AS SIGNED ) * COUNT( col0 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4372
SELECT ALL - CAST ( NULL AS INTEGER ) * COUNT ( col0 ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4373
SELECT COUNT( * ) * + SUM( - col0 ) FROM tab2
----
-555

skipif mysql # not compatible
query I rowsort label-4373
SELECT COUNT ( * ) * + SUM ( - col0 ) FROM tab2
----
-555

onlyif mysql # aggregate syntax: 
query I rowsort label-4374
SELECT MIN( + col2 ) * - - MIN( + col0 ) AS col2 FROM tab0 cor0
----
150

skipif mysql # not compatible
query I rowsort label-4374
SELECT MIN ( + col2 ) * - - MIN ( + col0 ) AS col2 FROM tab0 cor0
----
150

query I rowsort
SELECT ALL + + 93 AS col2 FROM tab2 AS cor0 WHERE NOT col0 + + col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4376
SELECT - col0 DIV 55 * - col2 FROM tab0 cor0
----
0
10
99

skipif mysql # not compatible
query I rowsort label-4376
SELECT - col0 / 55 * - col2 FROM tab0 cor0
----
0
10
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4377
SELECT ALL - MIN( ALL - col2 ) FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-4377
SELECT ALL - MIN ( ALL - col2 ) FROM tab2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4378
SELECT + MIN( DISTINCT + 41 ) FROM ( tab0 AS cor0 CROSS JOIN tab0 cor1 )
----
41

skipif mysql # not compatible
query I rowsort label-4378
SELECT + MIN ( DISTINCT + 41 ) FROM ( tab0 AS cor0 CROSS JOIN tab0 cor1 )
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-4379
SELECT SUM( ALL + ( col1 ) ) + 23 AS col2 FROM tab0 AS cor0
----
126

skipif mysql # not compatible
query I rowsort label-4379
SELECT SUM ( ALL + ( col1 ) ) + 23 AS col2 FROM tab0 AS cor0
----
126

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 + - + 68 IS NULL
----

query I rowsort
SELECT ALL - col0 * + + 79 FROM tab0 AS cor0
----
-1185
-6873
-7663

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4382
SELECT * FROM tab0 AS cor0 WHERE + CAST( + col0 AS DECIMAL ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4382
SELECT * FROM tab0 AS cor0 WHERE + CAST ( + col0 AS REAL ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4383
SELECT DISTINCT - - COUNT( DISTINCT col0 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4383
SELECT DISTINCT - - COUNT ( DISTINCT col0 ) AS col2 FROM tab1 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-4384
SELECT col2 DIV - + col1 AS col2, col2 AS col1 FROM tab2 cor0
----
0
23
0
40
0
58

skipif mysql # not compatible
query II rowsort label-4384
SELECT col2 / - + col1 AS col2, col2 AS col1 FROM tab2 cor0
----
0
23
0
40
0
58

query II rowsort
SELECT + col1, 11 FROM tab2
----
51
11
67
11
77
11

query I rowsort
SELECT DISTINCT + col1 + - 23 FROM tab2
----
28
44
54

query I rowsort
SELECT + col0 AS col2 FROM tab1 WHERE + - col0 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE - ( + col0 ) <> NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4389
SELECT DISTINCT CAST( NULL AS DECIMAL ) * ( col2 ) + + 19 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4389
SELECT DISTINCT CAST ( NULL AS REAL ) * ( col2 ) + + 19 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - + col1 col2 FROM tab0
----
-66
66
96

query I rowsort
SELECT ALL + col2 * - col0 + + + col2 FROM tab0
----
-658
-860
-9504

query I rowsort
SELECT - col1 - + 27 FROM tab0 cor0
----
-108
-28
-48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 19 col2 FROM tab0 AS cor0
----
-19
-19
-19

onlyif mysql # DIV for integer division: 
query II rowsort label-4394
SELECT DISTINCT + col1 col2, - 1 DIV - 19 FROM tab0 AS cor0
----
1
0
21
0
81
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4394
SELECT DISTINCT + col1 col2, - 1 / - 19 FROM tab0 AS cor0
----
1
0
21
0
81
0

query II rowsort
SELECT + col2 AS col1, col2 * - - col2 AS col1 FROM tab0 AS cor0
----
10
100
47
2209
99
9801

query I rowsort
SELECT DISTINCT + - 13 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-13

query I rowsort
SELECT - 82 * + 92 AS col1 FROM tab1
----
-7544
-7544
-7544

onlyif mysql # DIV for integer division: 
query I rowsort label-4398
SELECT - + 21 DIV + 6 col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 95b6b9b4aae5cc2d9545db9f8940b2dc

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4398
SELECT - + 21 / + 6 col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 95b6b9b4aae5cc2d9545db9f8940b2dc

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + - col2 * + + 80 ) BETWEEN NULL AND 22
----

query II rowsort
SELECT ALL - - col0, col2 FROM tab0 AS cor0
----
15
47
87
10
97
99

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 28 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4402
SELECT + + CAST( NULL AS SIGNED ) AS col0, 50 FROM tab2 AS cor0
----
NULL
50
NULL
50
NULL
50

skipif mysql # not compatible
query II rowsort label-4402
SELECT + + CAST ( NULL AS INTEGER ) AS col0, 50 FROM tab2 AS cor0
----
NULL
50
NULL
50
NULL
50

query I rowsort
SELECT DISTINCT - 13 * + 29 AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-377

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 93 * col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - + col1 * + - 16 AS col1 FROM tab1 AS cor0
----
224
752
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4406
SELECT DISTINCT - MAX( 42 ) * - COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE 85 + - col1 / + - ( col0 ) + col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4406
SELECT DISTINCT - MAX ( 42 ) * - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE 85 + - col1 / + - ( col0 ) + col2 IS NULL
----
NULL

query I rowsort
SELECT DISTINCT 96 AS col0 FROM tab0 cor0 WHERE + col1 >= 49
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4408
SELECT + ( col1 ) AS col0, + CAST( NULL AS SIGNED ) FROM tab2
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-4408
SELECT + ( col1 ) AS col0, + CAST ( NULL AS INTEGER ) FROM tab2
----
51
NULL
67
NULL
77
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4409
SELECT * FROM tab1 WHERE NOT ( 85 * + - col0 / - + CAST( NULL AS SIGNED ) * + col0 + - col2 * + col0 + + col1 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4409
SELECT * FROM tab1 WHERE NOT ( 85 * + - col0 / - + CAST ( NULL AS INTEGER ) * + col0 + - col2 * + col0 + + col1 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4410
SELECT DISTINCT COUNT( ALL + 53 ) * - 91 FROM tab1 AS cor0
----
-273

skipif mysql # not compatible
query I rowsort label-4410
SELECT DISTINCT COUNT ( ALL + 53 ) * - 91 FROM tab1 AS cor0
----
-273

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4411
SELECT ALL - 95 DIV - - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-31

skipif mysql # not compatible
query I rowsort label-4411
SELECT ALL - 95 / - - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-31

query I rowsort
SELECT col2 + - col2 + - col2 AS col1 FROM tab0 cor0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-4413
SELECT DISTINCT + 79, COUNT( * ) AS col1 FROM tab0
----
79
3

skipif mysql # not compatible
query II rowsort label-4413
SELECT DISTINCT + 79, COUNT ( * ) AS col1 FROM tab0
----
79
3

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4414
SELECT DISTINCT CAST( NULL AS DECIMAL ) + 3 * col2 + - - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4414
SELECT DISTINCT CAST ( NULL AS REAL ) + 3 * col2 + - - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT ALL - 11 FROM tab1 WHERE col0 IS NOT NULL
----
-11
-11
-11

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 / - + col2 * - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 65 + + - col1 FROM tab2 AS cor0
----
-12
-2
14

query I rowsort
SELECT - col0 - + 32 AS col0 FROM tab1 cor0
----
-117
-123
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 - + col1 col2 FROM tab1 AS cor0
----
37
44
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4420
SELECT DISTINCT - - ( - + col2 ) + CAST( NULL AS SIGNED ) + - col1 FROM tab2 AS cor0 WHERE NOT col1 * - 62 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4420
SELECT DISTINCT - - ( - + col2 ) + CAST ( NULL AS INTEGER ) + - col1 FROM tab2 AS cor0 WHERE NOT col1 * - 62 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4421
SELECT - COUNT( ALL ( - - col2 ) ) + + 82 FROM tab1
----
79

skipif mysql # not compatible
query I rowsort label-4421
SELECT - COUNT ( ALL ( - - col2 ) ) + + 82 FROM tab1
----
79

query I rowsort
SELECT DISTINCT - 58 AS col1 FROM tab1 WHERE NOT - col2 IS NULL
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4423
SELECT - 20 + - COUNT( * ) AS col1 FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-4423
SELECT - 20 + - COUNT ( * ) AS col1 FROM tab2
----
-23

query I rowsort
SELECT ALL + col2 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
59
68
96

query I rowsort
SELECT ALL - col1 * - + col2 AS col2 FROM tab0
----
210
3807
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 58 col0 FROM tab0 AS cor0
----
58

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 97 + - - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4428
SELECT DISTINCT - ( + SUM( - col0 ) ) AS col0 FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-4428
SELECT DISTINCT - ( + SUM ( - col0 ) ) AS col0 FROM tab1
----
227

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4429
SELECT CAST( 77 AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622

skipif mysql # not compatible
query I rowsort label-4429
SELECT CAST ( 77 AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4430
SELECT ALL - COUNT( * ) DIV 91 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4430
SELECT ALL - COUNT ( * ) / 91 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) IS NOT NULL
----
0

query I rowsort
SELECT + 90 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 96f7a90428db93f472e0d219bab64853

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + 51 col2, col1 AS col2 FROM tab1 AS cor0
----
-51
14
-51
47
-51
5

query II rowsort
SELECT + col2 AS col2, + col1 * + 83 FROM tab2 AS cor0
----
23
4233
40
6391
58
5561

onlyif mysql # DIV for integer division: 
query II rowsort label-4434
SELECT ALL + 54 AS col1, col0 DIV + col1 + + col1 AS col0 FROM tab1 AS cor0
----
54
17
54
22
54
48

skipif mysql # not compatible
query II rowsort label-4434
SELECT ALL + 54 AS col1, col0 / + col1 + + col1 AS col0 FROM tab1 AS cor0
----
54
17
54
22
54
48

query I rowsort
SELECT DISTINCT - - 96 AS col1 FROM tab1 cor0 WHERE NOT + 69 <> - col1 * + + col2 * col1 + - col0
----

query I rowsort
SELECT DISTINCT + col2 FROM tab0 AS cor0 WHERE ( - 91 ) >= NULL
----

query II rowsort
SELECT ALL + + col2, - 94 * col2 + + col1 FROM tab0 AS cor0
----
10
-919
47
-4337
99
-9305

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL = - 57
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4439
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <> 56 * CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4439
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <> 56 * CAST ( NULL AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4440
SELECT - 54 DIV - 73 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4440
SELECT - 54 / - 73 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + col2 * 63 + + col1 + - + ( + 33 ) * - - 12 + + 86 FROM tab2 AS cor0
----
1190
2287
3411

onlyif mysql # aggregate syntax: 
query I rowsort label-4442
SELECT - + COUNT( + 65 ) + - SUM( ALL - + col0 ) FROM tab1 AS cor0
----
224

skipif mysql # not compatible
query I rowsort label-4442
SELECT - + COUNT ( + 65 ) + - SUM ( ALL - + col0 ) FROM tab1 AS cor0
----
224

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4443
SELECT - CAST( NULL AS SIGNED ) + - 15 * - + 83 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4443
SELECT - CAST ( NULL AS INTEGER ) + - 15 * - + 83 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 + 80 AS col2 FROM tab1
----
131
165
171

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + ( + col1 ) + + 65 + - + col2 = - col1 * + 47
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4446
SELECT - SUM( DISTINCT + 16 ) FROM tab1
----
-16

skipif mysql # not compatible
query I rowsort label-4446
SELECT - SUM ( DISTINCT + 16 ) FROM tab1
----
-16

query I rowsort
SELECT + col0 * - - col1 * + col1 * + col2 FROM tab2
----
15178240
19527150
2751858

onlyif mysql # aggregate syntax: 
query I rowsort label-4448
SELECT ALL + COUNT( * ) * - 37 + - + ( - ( + + 33 ) ) AS col1 FROM tab0 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-4448
SELECT ALL + COUNT ( * ) * - 37 + - + ( - ( + + 33 ) ) AS col1 FROM tab0 AS cor0
----
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4449
SELECT - - CAST( 85 AS SIGNED ) * - - COUNT( * ) FROM tab0 AS cor0
----
255

skipif mysql # not compatible
query I rowsort label-4449
SELECT - - CAST ( 85 AS INTEGER ) * - - COUNT ( * ) FROM tab0 AS cor0
----
255

query I rowsort
SELECT - + col2 FROM tab2 AS cor0 WHERE ( NOT NULL IS NOT NULL )
----
-23
-40
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 AS col1, + 81 + - 16 col0 FROM tab0 AS cor0
----
10
65
47
65
99
65

onlyif mysql # aggregate syntax: 
query I rowsort label-4452
SELECT DISTINCT MIN( ALL - - 56 ) AS col2 FROM tab2 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-4452
SELECT DISTINCT MIN ( ALL - - 56 ) AS col2 FROM tab2 AS cor0
----
56

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN + col1 AND - + col1
----

query II rowsort
SELECT DISTINCT 96 * + 37 AS col2, - 15 AS col0 FROM tab1
----
3552
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4455
SELECT DISTINCT - ( + + CAST( - + col0 AS SIGNED ) ) * 69 AS col1 FROM tab1
----
3519
5865
6279

skipif mysql # not compatible
query I rowsort label-4455
SELECT DISTINCT - ( + + CAST ( - + col0 AS INTEGER ) ) * 69 AS col1 FROM tab1
----
3519
5865
6279

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4456
SELECT + col0 * - + col2 + + CAST( - + col1 AS SIGNED ) AS col1 FROM tab2
----
-1109
-2637
-4417

skipif mysql # not compatible
query I rowsort label-4456
SELECT + col0 * - + col2 + + CAST ( - + col1 AS INTEGER ) AS col1 FROM tab2
----
-1109
-2637
-4417

query I rowsort
SELECT col0 * - col0 + col0 * - col1 + - 44 FROM tab1
----
-12602
-3359
-7694

query I rowsort
SELECT ALL + 24 * 3 + - col1 AS col0 FROM tab0 AS cor0
----
-9
51
71

query I rowsort
SELECT col0 * + 56 * - col2 * - + 47 * + col0 FROM tab1
----
1121955800
1482100256
657199872

query I rowsort
SELECT DISTINCT 69 * - col0 FROM tab1
----
-3519
-5865
-6279

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + 98 col1 FROM tab1
----
4998
8330
8918

query IIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0 WHERE - + 42 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4463
SELECT DISTINCT - CAST( - + 73 AS SIGNED ) AS col0 FROM tab0
----
73

skipif mysql # not compatible
query I rowsort label-4463
SELECT DISTINCT - CAST ( - + 73 AS INTEGER ) AS col0 FROM tab0
----
73

query I rowsort
SELECT - 84 * col0 AS col0 FROM tab1
----
-4284
-7140
-7644

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - col1 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT NULL = col2 * col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4467
SELECT CAST( NULL AS SIGNED ) * + col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4467
SELECT CAST ( NULL AS INTEGER ) * + col0 FROM tab2 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT 91 > - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4469
SELECT ALL - + COUNT( DISTINCT - 50 ) FROM tab0 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4469
SELECT ALL - + COUNT ( DISTINCT - 50 ) FROM tab0 cor0
----
-1

query I rowsort
SELECT + ( col1 ) * + 33 FROM tab1 WHERE NOT NULL BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4471
SELECT ALL * FROM tab2 WHERE NOT - CAST( NULL AS DECIMAL ) < ( col1 - col1 )
----

skipif mysql # not compatible
query III rowsort label-4471
SELECT ALL * FROM tab2 WHERE NOT - CAST ( NULL AS REAL ) < ( col1 - col1 )
----

query I rowsort
SELECT col2 + 63 * col0 AS col1 FROM tab2
----
2921
4072
4783

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL > + 36
----

query I rowsort
SELECT - col2 + 7 AS col0 FROM tab0
----
-3
-40
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4475
SELECT DISTINCT 25 * + AVG ( ALL CAST( NULL AS SIGNED ) * + col1 ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4475
SELECT DISTINCT 25 * + AVG ( ALL CAST ( NULL AS INTEGER ) * + col1 ) AS col0 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4476
SELECT + MIN( 88 ) col0 FROM tab2
----
88

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4476
SELECT + MIN ( 88 ) col0 FROM tab2
----
88

query I rowsort
SELECT - ( + 27 ) FROM tab1
----
-27
-27
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-4478
SELECT + COUNT( * ) * 26 + 70 AS col2 FROM tab1
----
148

skipif mysql # not compatible
query I rowsort label-4478
SELECT + COUNT ( * ) * 26 + 70 AS col2 FROM tab1
----
148

query I rowsort
SELECT ALL ( - col0 ) AS col2 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT col2 + + col1 FROM tab2 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT DISTINCT - col1 + col1 FROM tab1 WHERE col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4482
SELECT DISTINCT MIN( DISTINCT col0 ) AS col1 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-4482
SELECT DISTINCT MIN ( DISTINCT col0 ) AS col1 FROM tab1
----
51

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL < + col1 + 97
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4484
SELECT COUNT( * ) FROM tab0 WHERE NULL <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-4484
SELECT COUNT ( * ) FROM tab0 WHERE NULL <> NULL
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( 55 + col1 ) <> col1
----

query I rowsort
SELECT 10 FROM tab2 WHERE - ( 42 ) <> - col2
----
10
10
10

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 + + ( + ( + col0 ) ) <> - col0 + - 35
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4488
SELECT + 36 * + CAST( NULL AS DECIMAL ) col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4488
SELECT + 36 * + CAST ( NULL AS REAL ) col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4489
SELECT ALL - 57 * COUNT( 79 * + col0 ) FROM tab1
----
-171

skipif mysql # not compatible
query I rowsort label-4489
SELECT ALL - 57 * COUNT ( 79 * + col0 ) FROM tab1
----
-171

query I rowsort
SELECT + col2 - 79 AS col2 FROM tab2
----
-21
-39
-56

query I rowsort
SELECT - 36 * col0 FROM tab1
----
-1836
-3060
-3276

query I rowsort
SELECT + 26 * + col1 AS col2 FROM tab0
----
2106
26
546

onlyif mysql # aggregate syntax: 
query I rowsort label-4493
SELECT DISTINCT - COUNT( * ) col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4493
SELECT DISTINCT - COUNT ( * ) col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4494
SELECT COUNT( * ) + - ( + ( 2 ) ) AS col2 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4494
SELECT COUNT ( * ) + - ( + ( 2 ) ) AS col2 FROM tab0 AS cor0
----
1

query I rowsort
SELECT 87 + col1 * - col2 FROM tab2 AS cor0
----
-1086
-2993
-3799

onlyif mysql # DIV for integer division: 
query I rowsort label-4496
SELECT 95 + + col0 DIV 76 col1 FROM tab1 AS cor0
----
95
96
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4496
SELECT 95 + + col0 / 76 col1 FROM tab1 AS cor0
----
95
96
96

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + col1 * - 32 - 44 / + col1 ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4498
SELECT DISTINCT COUNT( * ) * - 76 + 5 AS col2 FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-4498
SELECT DISTINCT COUNT ( * ) * - 76 + 5 AS col2 FROM tab1
----
-223

onlyif mysql # aggregate syntax: 
query I rowsort label-4499
SELECT ALL + - COUNT( * ) * + COUNT( 65 * + col2 + 37 * col0 ) + 40 AS col0 FROM tab2 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-4499
SELECT ALL + - COUNT ( * ) * + COUNT ( 65 * + col2 + 37 * col0 ) + 40 AS col0 FROM tab2 AS cor0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-4500
SELECT DISTINCT - 15 - + COUNT( * ) FROM tab1 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-4500
SELECT DISTINCT - 15 - + COUNT ( * ) FROM tab1 AS cor0
----
-18

query I rowsort
SELECT ALL - col1 + 76 * 63 AS col2 FROM tab1 AS cor0
----
4741
4774
4783

query III rowsort
SELECT * FROM tab2 cor0 WHERE - col2 < NULL
----

query I rowsort
SELECT + + col0 - col0 * - col1 FROM tab2 AS cor0
----
2392
4992
5100

onlyif mysql # aggregate syntax: 
query I rowsort label-4504
SELECT ( - COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4504
SELECT ( - COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL - col0 * 85 AS col1 FROM tab1
----
-4335
-7225
-7735

query I rowsort
SELECT DISTINCT + col2 * + ( col2 ) FROM tab0
----
100
2209
9801

onlyif mysql # aggregate syntax: 
query I rowsort label-4507
SELECT ( ( COUNT( * ) ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4507
SELECT ( ( COUNT ( * ) ) ) FROM tab0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 col2 FROM tab2 WHERE NOT ( NULL ) NOT IN ( col2 * col0 )
----

query I rowsort
SELECT ALL ( - + col2 ) AS col2 FROM tab2
----
-23
-40
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-4510
SELECT ALL + col2 DIV ( 10 ) FROM tab2
----
2
4
5

skipif mysql # not compatible
query I rowsort label-4510
SELECT ALL + col2 / ( 10 ) FROM tab2
----
2
4
5

onlyif mysql # DIV for integer division: 
query I rowsort label-4511
SELECT col0 DIV - 55 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-4511
SELECT col0 / - 55 FROM tab1
----
-1
-1
0

query I rowsort
SELECT ALL col1 * ( + col2 * col1 ) FROM tab1 WHERE NOT 9 NOT BETWEEN + ( col1 ) AND + col0
----
1475

query I rowsort
SELECT ALL col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4514
SELECT DISTINCT + - CAST( NULL AS SIGNED ) * - col1 col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4514
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) * - col1 col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4515
SELECT ALL + col1 DIV 15 AS col1 FROM tab0 AS cor0
----
0
1
5

skipif mysql # not compatible
query I rowsort label-4515
SELECT ALL + col1 / 15 AS col1 FROM tab0 AS cor0
----
0
1
5

query I rowsort
SELECT + 10 FROM tab2 cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4517
SELECT ALL + col2 DIV + 35 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-4517
SELECT ALL + col2 / + 35 FROM tab2 AS cor0
----
0
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4518
SELECT CAST( col0 AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE NOT col0 NOT BETWEEN 29 AND + col2
----

skipif mysql # not compatible
query I rowsort label-4518
SELECT CAST ( col0 AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE NOT col0 NOT BETWEEN 29 AND + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4519
SELECT DISTINCT - 15 DIV 87 * - 26 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4519
SELECT DISTINCT - 15 / 87 * - 26 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4520
SELECT ALL 80 * CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4520
SELECT ALL 80 * CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + 39 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4522
SELECT + SUM( - col1 ) col1 FROM tab1
----
-66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4522
SELECT + SUM ( - col1 ) col1 FROM tab1
----
-66

query I rowsort
SELECT ALL + col0 * + + 56 FROM tab1
----
2856
4760
5096

query I rowsort
SELECT - + ( + + col1 ) * + - 56 + + 27 * col2 FROM tab2 AS cor0
----
3477
5318
5392

query I rowsort
SELECT DISTINCT + col2 * + col2 * - + col2 * 83 + 96 + + col0 FROM tab1 AS cor0
----
-17046276
-26097669
-73432941

query I rowsort
SELECT DISTINCT + 69 AS col0 FROM tab0 AS cor0 WHERE NOT 69 + + - col1 + + col0 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4527
SELECT * FROM tab1 AS cor0 WHERE NOT col1 + - CAST( col0 AS SIGNED ) <= NULL
----

skipif mysql # not compatible
query III rowsort label-4527
SELECT * FROM tab1 AS cor0 WHERE NOT col1 + - CAST ( col0 AS INTEGER ) <= NULL
----

query II rowsort
SELECT ALL + col2 AS col1, col2 AS col2 FROM tab0 AS cor0
----
10
10
47
47
99
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4529
SELECT + CAST( NULL AS SIGNED ) + COUNT( * ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4529
SELECT + CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col2 * - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-4531
SELECT * FROM tab2 AS cor0 WHERE + CAST( CAST( NULL AS DECIMAL ) AS SIGNED ) * + col0 - col1 * col2 NOT BETWEEN col1 AND - col0
----

skipif mysql # not compatible
query III rowsort label-4531
SELECT * FROM tab2 AS cor0 WHERE + CAST ( CAST ( NULL AS REAL ) AS INTEGER ) * + col0 - col1 * col2 NOT BETWEEN col1 AND - col0
----

query I rowsort
SELECT ALL 20 * + col2 AS col0 FROM tab1 AS cor0
----
1180
1360
1920

onlyif mysql # aggregate syntax: 
query I rowsort label-4533
SELECT ALL 87 + - ( - COUNT( * ) ) AS col1 FROM tab0 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-4533
SELECT ALL 87 + - ( - COUNT ( * ) ) AS col1 FROM tab0 AS cor0
----
90

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( 3 * - - col0 * - col2 ) IS NULL
----

query I rowsort
SELECT DISTINCT + ( 88 ) * col0 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT col2 * + ( col2 ) AS col1 FROM tab2 WHERE NULL <> NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE + ( + - 62 ) + - col0 IN ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4538
SELECT ALL COUNT( * ) FROM tab1 WHERE ( + + 43 - + + col2 * 23 ) <> ( + col0 )
----
3

skipif mysql # not compatible
query I rowsort label-4538
SELECT ALL COUNT ( * ) FROM tab1 WHERE ( + + 43 - + + col2 * 23 ) <> ( + col0 )
----
3

query I rowsort
SELECT - ( + ( 82 ) ) * 24 AS col1 FROM tab0
----
-1968
-1968
-1968

query I rowsort
SELECT DISTINCT - col2 * col1 + - - col0 FROM tab1
----
-1293
-210
-3105

query I rowsort
SELECT DISTINCT col0 * col0 + + 76 * 78 AS col0 FROM tab0 WHERE - - col0 > + col2
----
13497

query III rowsort
SELECT * FROM tab1 WHERE - + col2 - - ( - col2 ) - col0 = ( - 42 )
----

query II rowsort
SELECT ( 65 ) AS col1, - 87 + + - 86 AS col1 FROM tab1 AS cor0
----
65
-173
65
-173
65
-173

query I rowsort
SELECT DISTINCT 51 - + col2 * - 14 FROM tab1 AS cor0
----
1003
1395
877

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4545
SELECT ALL - col0 FROM tab1 AS cor0 WHERE col1 * - col2 IN ( - - CAST( + col1 AS DECIMAL ) * - col0 )
----

skipif mysql # not compatible
query I rowsort label-4545
SELECT ALL - col0 FROM tab1 AS cor0 WHERE col1 * - col2 IN ( - - CAST ( + col1 AS REAL ) * - col0 )
----

query I rowsort
SELECT DISTINCT - col2 + 33 AS col0 FROM tab2
----
-25
-7
10

query I rowsort
SELECT ALL - ( + col1 ) - + - ( - col1 ) AS col0 FROM tab0
----
-162
-2
-42

query I rowsort
SELECT ALL - col2 + 79 FROM tab1
----
-17
11
20

onlyif mysql # aggregate syntax: 
query I rowsort label-4549
SELECT COUNT( * ) * ( - 17 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-153

skipif mysql # not compatible
query I rowsort label-4549
SELECT COUNT ( * ) * ( - 17 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-153

query I rowsort
SELECT ( - 53 ) FROM tab0 AS cor0
----
-53
-53
-53

query I rowsort
SELECT DISTINCT - - ( - - col2 ) AS col2 FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT DISTINCT col2 * 82 AS col1 FROM tab0 AS cor0 WHERE - ( - - col0 ) NOT BETWEEN ( - col0 ) AND 14 * col2 + ( + col0 )
----

query I rowsort
SELECT + 60 AS col2 FROM tab2 cor0 WHERE NOT ( NULL ) NOT IN ( + + col1 )
----

query I rowsort
SELECT ALL + 65 * - - ( col0 ) + - col1 * + + col0 * - col0 + col2 AS col2 FROM tab0 AS cor0
----
15813
164614
19247

onlyif mysql # aggregate syntax: 
query I rowsort label-4555
SELECT DISTINCT + SUM( ALL + - col1 ) AS col0 FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-4555
SELECT DISTINCT + SUM ( ALL + - col1 ) AS col0 FROM tab2
----
-195

query I rowsort
SELECT DISTINCT + 77 * - - 42 * + + 25 FROM tab0
----
80850

query II rowsort
SELECT + col0 AS col2, - col2 * + 75 FROM tab2
----
46
-1725
64
-3000
75
-4350

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4558
SELECT CAST( NULL AS SIGNED ) * + - col0 * - 66 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4558
SELECT CAST ( NULL AS INTEGER ) * + - col0 * - 66 AS col2 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <> + 66
----

query I rowsort
SELECT ALL + 92 FROM tab1 WHERE NOT ( NOT ( + col0 ) <= ( 33 ) + col0 )
----
92
92
92

query I rowsort
SELECT ALL + col2 AS col1 FROM tab2 AS cor0 WHERE col2 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + 65 * + 88 * col0 FROM tab0 AS cor0
----
497640
554840
85800

query I rowsort
SELECT DISTINCT - col0 * + - col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 8 col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-8
-8
-8

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab1 WHERE NULL <> - + col0 + + col1
----

query I rowsort
SELECT DISTINCT ( - + ( col2 ) ) + - 75 AS col2 FROM tab1
----
-134
-143
-171

query I rowsort
SELECT ALL - 98 * - ( + + 98 ) AS col1 FROM tab0
----
9604
9604
9604

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4568
SELECT CAST( - + ( - CAST( + col2 AS SIGNED ) ) AS SIGNED ) AS col2 FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-4568
SELECT CAST ( - + ( - CAST ( + col2 AS INTEGER ) ) AS INTEGER ) AS col2 FROM tab0
----
10
47
99

query III rowsort
SELECT * FROM tab1 WHERE - col1 / col2 NOT BETWEEN col2 AND col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + + 92 + + col2 FROM tab2 cor0
----
115
132
150

query III rowsort
SELECT * FROM tab2 cor0 WHERE col2 IN ( col2, - 41 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - + 95 * + col1 AS col0 FROM tab1 AS cor0
----
-1330
-4465
-475

query I rowsort
SELECT + 79 * - - col2 AS col1 FROM tab1 AS cor0
----
4661
5372
7584

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 col1 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND - 75
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4575
SELECT DISTINCT - MIN( ALL - + 59 ) AS col2 FROM tab2 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-4575
SELECT DISTINCT - MIN ( ALL - + 59 ) AS col2 FROM tab2 AS cor0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4576
SELECT + + ( - COUNT( * ) ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4576
SELECT + + ( - COUNT ( * ) ) AS col0 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4577
SELECT + 63 * - COUNT( * ) * - 69 * + 91 FROM tab1 AS cor0
----
1186731

skipif mysql # not compatible
query I rowsort label-4577
SELECT + 63 * - COUNT ( * ) * - 69 * + 91 FROM tab1 AS cor0
----
1186731

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 70 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-4579
SELECT col2 - - 32 DIV col1 AS col0 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-4579
SELECT col2 - - 32 / col1 AS col0 FROM tab2
----
23
40
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 85 AS col1, - col1 * col1 * + 36 col0 FROM tab0
----
85
-15876
85
-236196
85
-36

query I rowsort
SELECT + + col2 * - - col0 + + col2 AS col2 FROM tab2 AS cor0
----
1081
2600
4408

onlyif mysql # aggregate syntax: 
query II rowsort label-4582
SELECT ALL COUNT( * ), + COUNT( * ) FROM tab0 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-4582
SELECT ALL COUNT ( * ), + COUNT ( * ) FROM tab0 AS cor0
----
3
3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( + + col2 ) * + col1 * - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4584
SELECT + COUNT( * ), MIN( - + col1 ) - MIN( DISTINCT + 43 ) col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4584
SELECT + COUNT ( * ), MIN ( - + col1 ) - MIN ( DISTINCT + 43 ) col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 43 col1, col0 AS col2 FROM tab2 AS cor0
----
-43
46
-43
64
-43
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4586
SELECT - MIN( + col0 ) * - 41 AS col2 FROM tab0 AS cor0
----
615

skipif mysql # not compatible
query I rowsort label-4586
SELECT - MIN ( + col0 ) * - 41 AS col2 FROM tab0 AS cor0
----
615

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 11 col1, + col2 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN + col2 AND + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4588
SELECT + CAST( - ( - - col1 ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-4588
SELECT + CAST ( - ( - - col1 ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-1
-21
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4589
SELECT + - CAST( COUNT( * ) AS SIGNED ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4589
SELECT + - CAST ( COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4590
SELECT - MIN( + col0 ) AS col2 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-4590
SELECT - MIN ( + col0 ) AS col2 FROM tab2 AS cor0
----
-46

onlyif mysql # aggregate syntax: 
query II rowsort label-4591
SELECT 86, + 89 - + COUNT( * ) FROM tab0
----
86
86

skipif mysql # not compatible
query II rowsort label-4591
SELECT 86, + 89 - + COUNT ( * ) FROM tab0
----
86
86

query II rowsort
SELECT DISTINCT col0 AS col0, - col1 AS col0 FROM tab1
----
51
-14
85
-5
91
-47

query II rowsort
SELECT DISTINCT col0, 27 FROM tab0
----
15
27
87
27
97
27

query I rowsort
SELECT ALL ( 72 ) FROM tab1
----
72
72
72

onlyif mysql # aggregate syntax: 
query I rowsort label-4595
SELECT ALL 74 * + - COUNT( * ) AS col0 FROM tab2
----
-222

skipif mysql # not compatible
query I rowsort label-4595
SELECT ALL 74 * + - COUNT ( * ) AS col0 FROM tab2
----
-222

onlyif mysql # aggregate syntax: 
query I rowsort label-4596
SELECT + + SUM( DISTINCT col2 ) * - 22 AS col0 FROM tab0 AS cor0
----
-3432

skipif mysql # not compatible
query I rowsort label-4596
SELECT + + SUM ( DISTINCT col2 ) * - 22 AS col0 FROM tab0 AS cor0
----
-3432

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 16 + + col2 col2 FROM tab0
----
115
26
63

query I rowsort
SELECT - 46 + col1 * + 26 FROM tab2
----
1280
1696
1956

onlyif mysql # aggregate syntax: 
query I rowsort label-4599
SELECT + COUNT( * ) + + COUNT( * ) AS col0 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-4599
SELECT + COUNT ( * ) + + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4600
SELECT ALL - COUNT( * ) + - + 18 FROM tab0 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-4600
SELECT ALL - COUNT ( * ) + - + 18 FROM tab0 AS cor0
----
-21

query I rowsort
SELECT ALL + 44 - + ( 85 ) FROM tab2 cor0 WHERE 6 > + - col0 * col1
----
-41
-41
-41

onlyif mysql # DIV for integer division: 
query I rowsort label-4602
SELECT col1 + col1 - - 12 DIV - ( + - ( col1 ) ) + + + 39 FROM tab0 AS cor0
----
201
53
81

skipif mysql # not compatible
query I rowsort label-4602
SELECT col1 + col1 - - 12 / - ( + - ( col1 ) ) + + + 39 FROM tab0 AS cor0
----
201
53
81

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 82 + + col0 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 NOT BETWEEN - col0 * + col0 * - + col1 * - - col1 AND ( - col2 + - col0 + - col1 / 67 )
----

query I rowsort
SELECT ALL col1 * - - 15 AS col2 FROM tab2 AS cor0
----
1005
1155
765

query I rowsort
SELECT ALL - col1 * 32 FROM tab0
----
-2592
-32
-672

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 39 col0 FROM tab0
----
39
39
39

query II rowsort
SELECT col0 - - 6, col2 FROM tab1
----
57
96
91
59
97
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4609
SELECT ALL + 53 - COUNT( ALL col2 ) FROM tab1 cor0
----
50

skipif mysql # not compatible
query I rowsort label-4609
SELECT ALL + 53 - COUNT ( ALL col2 ) FROM tab1 cor0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-4610
SELECT ALL + MIN( ALL col2 ) * - 64 / - + 34 AS col1 FROM tab1 AS cor0 WHERE - col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4610
SELECT ALL + MIN ( ALL col2 ) * - 64 / - + 34 AS col1 FROM tab1 AS cor0 WHERE - col2 IS NULL
----
NULL

query II rowsort
SELECT ALL col1 - col2, col0 FROM tab0 AS cor0
----
-98
97
11
87
34
15

query I rowsort
SELECT col1 * + + 72 - + col2 FROM tab1 AS cor0
----
301
3316
912

query I rowsort
SELECT + - 69 - + col0 * 92 FROM tab1 AS cor0
----
-4761
-7889
-8441

query I rowsort
SELECT ( + + 24 ) * + - ( + col2 ) AS col0 FROM tab1
----
-1416
-1632
-2304

query I rowsort
SELECT + col0 * - + col1 + 64 FROM tab0 AS cor0
----
-1151
-1763
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4616
SELECT ALL CAST( - col2 AS SIGNED ) / - col1 + - col1 AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4616
SELECT ALL CAST ( - col2 AS INTEGER ) / - col1 + - col1 AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + col1 * + 2 AS col2 FROM tab2 cor0
----
102
134
154

onlyif mysql # aggregate syntax: 
query I rowsort label-4618
SELECT ALL 32 * + + COUNT( * ) FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-4618
SELECT ALL 32 * + + COUNT ( * ) FROM tab1 AS cor0
----
96

query III rowsort
SELECT ALL * FROM tab0 WHERE 60 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col2 + - col2 ) < NULL
----

query I rowsort
SELECT ALL ( - - col2 ) * + + col0 FROM tab1
----
4896
5015
6188

query I rowsort
SELECT - 76 AS col0 FROM tab0 WHERE NOT 96 IS NULL
----
-76
-76
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-4623
SELECT COUNT( + - col1 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4623
SELECT COUNT ( + - col1 ) FROM tab0
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL = col2 * + col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4625
SELECT 6 + CAST( NULL AS SIGNED ) + + 27 * + - SUM( ALL + - col1 ) col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4625
SELECT 6 + CAST ( NULL AS INTEGER ) + + 27 * + - SUM ( ALL + - col1 ) col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + 50 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) <= col2
----

query II rowsort
SELECT + col2 + + ( - col1 ) + col0 * - 62 AS col0, - 74 AS col0 FROM tab1 AS cor0
----
-3080
-74
-5216
-74
-5621
-74

query I rowsort
SELECT - 10 AS col1 FROM tab2 WHERE NULL NOT BETWEEN ( + col0 + 6 - - + col1 ) AND 14
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4629
SELECT - CAST( - COUNT( * ) AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-4629
SELECT - CAST ( - COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-4630
SELECT DISTINCT + col1 + + col1 * - + col1 DIV - col1 + + col1 AS col2 FROM tab1 AS cor0
----
141
15
42

skipif mysql # not compatible
query I rowsort label-4630
SELECT DISTINCT + col1 + + col1 * - + col1 / - col1 + + col1 AS col2 FROM tab1 AS cor0
----
141
15
42

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <= - col1 * - + col1 OR NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT 43 - col1 + - col1 FROM tab0 AS cor0
----
-119
1
41

query III rowsort
SELECT * FROM tab1 WHERE - - col2 + col1 BETWEEN + col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4634
SELECT - MIN( - col2 ) + - 82 * + 60 FROM tab0
----
-4821

skipif mysql # not compatible
query I rowsort label-4634
SELECT - MIN ( - col2 ) + - 82 * + 60 FROM tab0
----
-4821

query II rowsort
SELECT DISTINCT 74, + col0 AS col1 FROM tab0
----
74
15
74
87
74
97

query I rowsort
SELECT 90 + - col0 AS col1 FROM tab1
----
-1
39
5

onlyif mysql # aggregate syntax: 
query II rowsort label-4637
SELECT DISTINCT - 81 + - 39, COUNT( * ) AS col0 FROM tab2
----
-120
3

skipif mysql # not compatible
query II rowsort label-4637
SELECT DISTINCT - 81 + - 39, COUNT ( * ) AS col0 FROM tab2
----
-120
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4638
SELECT - MIN( + 8 ) + - MAX( - - ( + col1 ) ) FROM tab0
----
-89

skipif mysql # not compatible
query I rowsort label-4638
SELECT - MIN ( + 8 ) + - MAX ( - - ( + col1 ) ) FROM tab0
----
-89

query II rowsort
SELECT ALL + 54 * - 94 AS col1, + 72 FROM tab2
----
-5076
72
-5076
72
-5076
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - 32 col0 FROM tab1
----
-1504
-160
-448

query I rowsort
SELECT - col0 + - col0 * + col1 FROM tab1
----
-4368
-510
-765

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4642
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + col2 - col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4642
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + col2 - col0 FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT ALL + col0 AS col0, + 20 AS col0 FROM tab2 AS cor0
----
46
20
64
20
75
20

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL IN ( + col0, ( - 1 ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4645
SELECT ALL MIN( col0 ) DIV + + 27 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-4645
SELECT ALL MIN ( col0 ) / + + 27 FROM tab1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4646
SELECT + ( COUNT( * ) ) AS col1 FROM tab0 WHERE NOT 47 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-4646
SELECT + ( COUNT ( * ) ) AS col1 FROM tab0 WHERE NOT 47 IS NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 31 col1 FROM tab2 WHERE NOT NULL <= - 54 / - + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4648
SELECT DISTINCT - + ( + CAST( - col0 AS SIGNED ) ) * + + 32 * 3 FROM tab0 AS cor0
----
1440
8352
9312

skipif mysql # not compatible
query I rowsort label-4648
SELECT DISTINCT - + ( + CAST ( - col0 AS INTEGER ) ) * + + 32 * 3 FROM tab0 AS cor0
----
1440
8352
9312

query I rowsort
SELECT - ( - col2 ) * - 29 AS col2 FROM tab0 AS cor0
----
-1363
-2871
-290

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4650
SELECT + ( - + 38 ) DIV 96 + - - 4 - + SUM( ALL col2 ) FROM tab1 AS cor0
----
-219

skipif mysql # not compatible
query I rowsort label-4650
SELECT + ( - + 38 ) / 96 + - - 4 - + SUM ( ALL col2 ) FROM tab1 AS cor0
----
-219

query I rowsort
SELECT DISTINCT - 2 * col2 + - 86 AS col0 FROM tab2 AS cor0
----
-132
-166
-202

query I rowsort
SELECT 53 * col2 * - + 38 AS col1 FROM tab0 AS cor0
----
-199386
-20140
-94658

onlyif mysql # aggregate syntax: 
query I rowsort label-4653
SELECT MAX( + 23 ) AS col2 FROM tab0 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-4653
SELECT MAX ( + 23 ) AS col2 FROM tab0 AS cor0
----
23

query I rowsort
SELECT + 11 * + - 83 * - col2 AS col2 FROM tab2 AS cor0
----
20999
36520
52954

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4655
SELECT DISTINCT * FROM tab0 cor0 WHERE - 18 < + CAST( - col2 AS SIGNED )
----
87
21
10

skipif mysql # not compatible
query III rowsort label-4655
SELECT DISTINCT * FROM tab0 cor0 WHERE - 18 < + CAST ( - col2 AS INTEGER )
----
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4656
SELECT ALL - COUNT( DISTINCT + - 80 ) FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4656
SELECT ALL - COUNT ( DISTINCT + - 80 ) FROM tab1 AS cor0
----
-1

query II rowsort
SELECT DISTINCT - col2 * - col1 AS col2, + ( - - 96 ) AS col1 FROM tab0 AS cor0
----
210
96
3807
96
99
96

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 47 IN ( col1, col2 )
----
15
81
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 col0 FROM tab1 WHERE NOT 91 * ( + col2 ) - - 32 IN ( - col2 * + col0, + col2 )
----
-59
-68
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4660
SELECT ALL + CAST( - + 6 AS SIGNED ) * + 96 + - col2 + ( + ( + col2 ) ) - + + col0 * - col0 * col1 AS col0 FROM tab1
----
35549
35838
388631

skipif mysql # not compatible
query I rowsort label-4660
SELECT ALL + CAST ( - + 6 AS INTEGER ) * + 96 + - col2 + ( + ( + col2 ) ) - + + col0 * - col0 * col1 AS col0 FROM tab1
----
35549
35838
388631

query I rowsort
SELECT 58 FROM tab1 WHERE NOT - col0 IS NULL
----
58
58
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4662
SELECT ALL MIN( + + 20 ) FROM tab1
----
20

skipif mysql # not compatible
query I rowsort label-4662
SELECT ALL MIN ( + + 20 ) FROM tab1
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4663
SELECT DISTINCT + SUM( col1 ) FROM tab2 WHERE NOT + - CAST( NULL AS SIGNED ) BETWEEN - 69 AND + 27
----
NULL

skipif mysql # not compatible
query I rowsort label-4663
SELECT DISTINCT + SUM ( col1 ) FROM tab2 WHERE NOT + - CAST ( NULL AS INTEGER ) BETWEEN - 69 AND + 27
----
NULL

query II rowsort
SELECT - 5, 82 AS col2 FROM tab1
----
-5
82
-5
82
-5
82

query I rowsort
SELECT ALL - ( 15 ) FROM tab1 WHERE NOT + col1 IS NOT NULL
----

query I rowsort
SELECT ALL col1 + - 23 AS col1 FROM tab2
----
28
44
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4667
SELECT DISTINCT + col1 * - - CAST( col0 AS SIGNED ) + + col0 FROM tab1 AS cor0
----
4368
510
765

skipif mysql # not compatible
query I rowsort label-4667
SELECT DISTINCT + col1 * - - CAST ( col0 AS INTEGER ) + + col0 FROM tab1 AS cor0
----
4368
510
765

query I rowsort
SELECT ALL - col2 * - - col2 FROM tab1 AS cor0
----
-3481
-4624
-9216

query I rowsort
SELECT - 51 * - 18 AS col2 FROM tab0 cor0
----
918
918
918

onlyif mysql # aggregate syntax: 
query I rowsort label-4670
SELECT ALL MAX( ALL - - col1 ) + ( + ( + + COUNT( * ) ) ) FROM tab2
----
80

skipif mysql # not compatible
query I rowsort label-4670
SELECT ALL MAX ( ALL - - col1 ) + ( + ( + + COUNT ( * ) ) ) FROM tab2
----
80

query I rowsort
SELECT ALL - 48 + + col2 * + col0 FROM tab1
----
4848
4967
6140

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 + + + col1 col1 FROM tab1 AS cor0
----
10
28
94

query I rowsort
SELECT - 6 * - + col0 FROM tab2 AS cor0 WHERE NULL <= NULL
----

query I rowsort
SELECT col1 AS col1 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND - col0 + + - 21
----

query I rowsort
SELECT DISTINCT - col0 * + + col0 * - col2 FROM tab1 AS cor0
----
249696
426275
563108

query I rowsort
SELECT DISTINCT - 74 - + ( - - col1 ) AS col0 FROM tab1 cor0
----
-121
-79
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-4677
SELECT ALL ( + COUNT( * ) ) - - 43 AS col1 FROM tab0 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-4677
SELECT ALL ( + COUNT ( * ) ) - - 43 AS col1 FROM tab0 AS cor0
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-4678
SELECT col2 DIV col1 * 22 - col1 * - col0 * col0 + col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
36426
36642
389297

skipif mysql # not compatible
query I rowsort label-4678
SELECT col2 / col1 * 22 - col1 * - col0 * col0 + col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
36426
36642
389297

query II rowsort
SELECT + col2 AS col2, + col1 AS col1 FROM tab1
----
59
5
68
47
96
14

query I rowsort
SELECT - col1 * - col0 * + + 91 AS col1 FROM tab0
----
110565
166257
8827

query II rowsort
SELECT col1 - - - 36 + 86, col1 FROM tab1
----
55
5
64
14
97
47

onlyif mysql # DIV for integer division: 
query I rowsort label-4682
SELECT - 18 DIV - col0 - - col1 * + + col0 * 23 FROM tab2
----
113344
115575
53958

skipif mysql # not compatible
query I rowsort label-4682
SELECT - 18 / - col0 - - col1 * + + col0 * 23 FROM tab2
----
113344
115575
53958

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4683
SELECT + 38 * + - COUNT( * ) DIV COUNT( * ) * COUNT( * ) * COUNT( DISTINCT - 1 ) FROM tab0
----
-114

skipif mysql # not compatible
query I rowsort label-4683
SELECT + 38 * + - COUNT ( * ) / COUNT ( * ) * COUNT ( * ) * COUNT ( DISTINCT - 1 ) FROM tab0
----
-114

onlyif mysql # aggregate syntax: 
query II rowsort label-4684
SELECT - 51 col1, SUM( + 83 ) FROM tab1
----
-51
249

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4684
SELECT - 51 col1, SUM ( + 83 ) FROM tab1
----
-51
249

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( 71 ) BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4686
SELECT DISTINCT + MAX( col2 ), + COUNT( * ) * ( - + 18 ) AS col0 FROM tab1
----
96
-54

skipif mysql # not compatible
query II rowsort label-4686
SELECT DISTINCT + MAX ( col2 ), + COUNT ( * ) * ( - + 18 ) AS col0 FROM tab1
----
96
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-4687
SELECT ALL - COUNT( * ) col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4687
SELECT ALL - COUNT ( * ) col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

query I rowsort
SELECT DISTINCT + 33 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
33

query II rowsort
SELECT ALL col0, - col2 + - 88 + - 81 FROM tab2 AS cor0
----
46
-192
64
-209
75
-227

onlyif mysql # aggregate syntax: 
query I rowsort label-4690
SELECT DISTINCT + COUNT( * ) * - + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4690
SELECT DISTINCT + COUNT ( * ) * - + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-9

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 * + col0 IS NOT NULL
----

query I rowsort
SELECT 40 * col0 AS col0 FROM tab2
----
1840
2560
3000

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + + - 92 col0 FROM tab2
----
-15
-25
-41

query I rowsort
SELECT - ( 60 ) FROM tab0
----
-60
-60
-60

query I rowsort
SELECT DISTINCT - col1 * col2 + col0 + - 82 FROM tab1
----
-1375
-292
-3187

query I rowsort
SELECT ALL ( + + 32 ) * - 74 * col1 FROM tab0
----
-191808
-2368
-49728

query I rowsort
SELECT DISTINCT col0 + - 58 + - col1 * + col0 FROM tab1
----
-398
-4244
-721

query I rowsort
SELECT ALL + 36 + ( + col0 ) FROM tab0
----
123
133
51

onlyif mysql # DIV for integer division: 
query I rowsort label-4699
SELECT - col2 DIV + - col0 AS col1 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4699
SELECT - col2 / + - col0 AS col1 FROM tab1
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4700
SELECT DISTINCT + COUNT( * ) * 63 FROM tab2 WHERE NULL = + 22
----
0

skipif mysql # not compatible
query I rowsort label-4700
SELECT DISTINCT + COUNT ( * ) * 63 FROM tab2 WHERE NULL = + 22
----
0

query I rowsort
SELECT - - 54 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09

onlyif mysql # DIV for integer division: 
query I rowsort label-4702
SELECT ALL + - 38 - - - 10 DIV + col1 FROM tab2 AS cor0
----
-38
-38
-38

skipif mysql # not compatible
query I rowsort label-4702
SELECT ALL + - 38 - - - 10 / + col1 FROM tab2 AS cor0
----
-38
-38
-38

query I rowsort
SELECT ALL - col0 - - col2 FROM tab2 AS cor0
----
-17
-23
-24

query I rowsort
SELECT - col1 + + col2 - - - col1 * + col1 FROM tab0 cor0
----
-452
-6595
97

query I rowsort
SELECT DISTINCT col0 - + col2 * + - 82 FROM tab1 AS cor0
----
4923
5667
7923

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4706
SELECT + CAST( NULL AS DECIMAL ) * + 69 + + COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4706
SELECT + CAST ( NULL AS REAL ) * + 69 + + COUNT ( * ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + 64 + - col0 AS col2 FROM tab1 AS cor0
----
-21
-27
13

query I rowsort
SELECT ALL - 54 AS col2 FROM tab0
----
-54
-54
-54

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL < - 89
----

query I rowsort
SELECT col2 AS col1 FROM tab0 AS cor0 WHERE NOT - col0 * - col1 * - col2 IS NOT NULL
----

query I rowsort
SELECT + ( - 21 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 631fbd1fd929405aba54a22c2a06c757

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - ( - 58 ) * + 93 * col1 col0 FROM tab2 AS cor0
----
-275094
-361398
-415338

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL >= col2
----

query I rowsort
SELECT + + col1 + + col0 + - - col2 AS col0 FROM tab2 cor0
----
120
181
200

onlyif mysql # aggregate syntax: 
query II rowsort label-4715
SELECT - + 94 + - COUNT( 42 ) col0, - 26 FROM tab0 cor0
----
-97
-26

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4715
SELECT - + 94 + - COUNT ( 42 ) col0, - 26 FROM tab0 cor0
----
-97
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-4716
SELECT DISTINCT COUNT( ( + 2 ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4716
SELECT DISTINCT COUNT ( ( + 2 ) ) FROM tab1
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL > + 42
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4718
SELECT col0, + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-4718
SELECT col0, + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
46
NULL
64
NULL
75
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4719
SELECT ALL + - 50 * - col2 - - + CAST( NULL AS SIGNED ) + 2 FROM tab2 WHERE - + 30 + col0 < NULL
----

skipif mysql # not compatible
query I rowsort label-4719
SELECT ALL + - 50 * - col2 - - + CAST ( NULL AS INTEGER ) + 2 FROM tab2 WHERE - + 30 + col0 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 76 + + + 89 col0 FROM tab2
----
165
165
165

onlyif mysql # aggregate syntax: 
query I rowsort label-4721
SELECT - MIN( - + 20 ) * - - 25 col1 FROM tab2 AS cor0
----
500

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4721
SELECT - MIN ( - + 20 ) * - - 25 col1 FROM tab2 AS cor0
----
500

query I rowsort
SELECT DISTINCT col2 + - + col2 * col2 AS col0 FROM tab2 AS cor0
----
-1560
-3306
-506

query I rowsort
SELECT col2 * col0 + 4 + col2 FROM tab2
----
1085
2604
4412

query I rowsort
SELECT + col0 + col2 * - + 67 FROM tab2
----
-1495
-2616
-3811

onlyif mysql # aggregate syntax: 
query I rowsort label-4725
SELECT DISTINCT - COUNT( * ) - - + COUNT( * ) AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4725
SELECT DISTINCT - COUNT ( * ) - - + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + + col2 * + col2 col1 FROM tab1 AS cor0
----
3422
4556
9120

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) <= - + col1
----

query I rowsort
SELECT DISTINCT - 69 * col1 FROM tab0
----
-1449
-5589
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-4729
SELECT 2 * - MIN( DISTINCT 52 ) AS col0 FROM tab0
----
-104

skipif mysql # not compatible
query I rowsort label-4729
SELECT 2 * - MIN ( DISTINCT 52 ) AS col0 FROM tab0
----
-104

onlyif mysql # DIV for integer division: 
query I rowsort label-4730
SELECT + 80 DIV - col2 AS col2 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-4730
SELECT + 80 / - col2 AS col2 FROM tab1
----
-1
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4731
SELECT ALL SUM( ALL col0 ) AS col2 FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-4731
SELECT ALL SUM ( ALL col0 ) AS col2 FROM tab0
----
199

query I rowsort
SELECT ALL 59 * - 46 FROM tab2
----
-2714
-2714
-2714

onlyif mysql # aggregate syntax: 
query I rowsort label-4733
SELECT MAX( + 8 ) AS col0 FROM tab1
----
8

skipif mysql # not compatible
query I rowsort label-4733
SELECT MAX ( + 8 ) AS col0 FROM tab1
----
8

query II rowsort
SELECT DISTINCT 67 AS col1, col1 AS col0 FROM tab1
----
67
14
67
47
67
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4735
SELECT - CAST( - - 61 AS SIGNED ) AS col0 FROM tab2
----
-61
-61
-61

skipif mysql # not compatible
query I rowsort label-4735
SELECT - CAST ( - - 61 AS INTEGER ) AS col0 FROM tab2
----
-61
-61
-61

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL > + col2 )
----

query I rowsort
SELECT DISTINCT - col2 + + ( + 55 ) AS col2 FROM tab0
----
-44
45
8

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - 94 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 0 col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4740
SELECT DISTINCT + MIN( ALL - 58 ) FROM tab1 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-4740
SELECT DISTINCT + MIN ( ALL - 58 ) FROM tab1 AS cor0
----
-58

query I rowsort
SELECT ALL ( 19 ) AS col2 FROM tab0 AS cor0
----
19
19
19

query I rowsort
SELECT DISTINCT + 96 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
96

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4743
SELECT - + col2 DIV + + CAST( + 8 AS SIGNED ) FROM tab1 AS cor0
----
-12
-7
-8

skipif mysql # not compatible
query I rowsort label-4743
SELECT - + col2 / + + CAST ( + 8 AS INTEGER ) FROM tab1 AS cor0
----
-12
-7
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-4744
SELECT ALL 50 + + - COUNT( * ) AS col2 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-4744
SELECT ALL 50 + + - COUNT ( * ) AS col2 FROM tab1
----
47

query III rowsort
SELECT * FROM tab1 WHERE NULL <= + ( 69 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col0 FROM tab2 WHERE + col0 < - 64
----

query I rowsort
SELECT ALL + - col1 * - 12 FROM tab2 WHERE NULL IS NULL
----
612
804
924

query I rowsort
SELECT 32 + - 22 AS col0 FROM tab1
----
10
10
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4749
SELECT ALL + 3 * - + COUNT( * ) + 74 col0 FROM tab2
----
65

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4749
SELECT ALL + 3 * - + COUNT ( * ) + 74 col0 FROM tab2
----
65

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4750
SELECT ALL 28 * 86 - + CAST( - CAST( - col1 AS SIGNED ) AS SIGNED ) + + - col1 DIV col0 AS col0 FROM tab2
----
2330
2341
2356

skipif mysql # not compatible
query I rowsort label-4750
SELECT ALL 28 * 86 - + CAST ( - CAST ( - col1 AS INTEGER ) AS INTEGER ) + + - col1 / col0 AS col0 FROM tab2
----
2330
2341
2356

query III rowsort
SELECT * FROM tab1 WHERE + col2 IN ( - + col1 * - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 + + + col1 AS col1, + col2 col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-8
58
13
40
5
23

query I rowsort
SELECT DISTINCT + + col2 + + 49 FROM tab1 AS cor0
----
108
117
145

onlyif mysql # DIV for integer division: 
query I rowsort label-4754
SELECT ALL + col2 - - 74 DIV + 14 + - col0 FROM tab0 AS cor0
----
-72
37
7

skipif mysql # not compatible
query I rowsort label-4754
SELECT ALL + col2 - - 74 / + 14 + - col0 FROM tab0 AS cor0
----
-72
37
7

query II rowsort
SELECT + ( - 3 ), - ( ( - col2 ) ) * 72 + + - col0 AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-3
3369
-3
633
-3
7031

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 < ( NULL )
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE + col1 = col1 - - - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 43 * col2 + - col2 col1, + col2 + + ( + 52 ) AS col0 FROM tab1 AS cor0
----
2478
111
2856
120
4032
148

query I rowsort
SELECT + col0 AS col1 FROM tab0 WHERE - col1 NOT BETWEEN NULL AND + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4760
SELECT - ( + CAST( - 90 AS SIGNED ) ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 96f7a90428db93f472e0d219bab64853

skipif mysql # not compatible
query I rowsort label-4760
SELECT - ( + CAST ( - 90 AS INTEGER ) ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 96f7a90428db93f472e0d219bab64853

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 64 col1 FROM tab2 AS cor0
----
64
64
64

query II rowsort
SELECT + 69, - col2 AS col2 FROM tab0 AS cor0
----
69
-10
69
-47
69
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-4763
SELECT + col2 DIV + 17 FROM tab1 AS cor0
----
3
4
5

skipif mysql # not compatible
query I rowsort label-4763
SELECT + col2 / + 17 FROM tab1 AS cor0
----
3
4
5

query II rowsort
SELECT + + col2, + 8 AS col1 FROM tab0 AS cor0
----
10
8
47
8
99
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 * - + 79, + col2 col1 FROM tab2
----
-1817
23
-3160
40
-4582
58

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + + 70 + + 47 / + col1 <> NULL
----

query I rowsort
SELECT col0 * ( + col2 ) AS col1 FROM tab1
----
4896
5015
6188

query I rowsort
SELECT ALL 89 * - 29 * + col2 AS col1 FROM tab1
----
-152279
-175508
-247776

query I rowsort
SELECT + 25 AS col2 FROM tab0 WHERE NOT - + col1 BETWEEN + col0 / col2 AND NULL
----
25
25
25

query I rowsort
SELECT ALL 56 * + - col2 AS col0 FROM tab1
----
-3304
-3808
-5376

query I rowsort
SELECT col0 * - 32 AS col1 FROM tab2
----
-1472
-2048
-2400

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4772
SELECT + CAST( + AVG ( DISTINCT + 96 ) AS SIGNED ) AS col0 FROM tab0
----
96

skipif mysql # not compatible
query I rowsort label-4772
SELECT + CAST ( + AVG ( DISTINCT + 96 ) AS INTEGER ) AS col0 FROM tab0
----
96

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 * 34 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4774
SELECT ALL + COUNT( ALL - col1 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4774
SELECT ALL + COUNT ( ALL - col1 ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4775
SELECT - COUNT( ALL + 61 ) DIV - 97 DIV COUNT( * ) AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4775
SELECT - COUNT ( ALL + 61 ) / - 97 / COUNT ( * ) AS col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT - ( - - col2 ) AS col1 FROM tab2 AS cor0
----
-23
-40
-58

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + col0 > ( col2 )
----
15
81
47
97
1
99

query II rowsort
SELECT - + 49 + + 15 AS col2, col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-34
51
-34
85
-34
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4779
SELECT ALL CAST( + col1 AS SIGNED ) + ( - col1 ) * 59 AS col0 FROM tab2 AS cor0
----
-2958
-3886
-4466

skipif mysql # not compatible
query I rowsort label-4779
SELECT ALL CAST ( + col1 AS INTEGER ) + ( - col1 ) * 59 AS col0 FROM tab2 AS cor0
----
-2958
-3886
-4466

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4780
SELECT col0 + - - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4780
SELECT col0 + - - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT col1, 93 FROM tab1 AS cor0
----
14
93
47
93
5
93

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 20 / + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4783
SELECT + COUNT( * ) + - - 6 - 39 col0 FROM tab0 cor0
----
-30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4783
SELECT + COUNT ( * ) + - - 6 - 39 col0 FROM tab0 cor0
----
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4784
SELECT - CAST( NULL AS SIGNED ) + COUNT( * ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4784
SELECT - CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4785
SELECT ALL + MAX( - 17 ) col0 FROM tab2 WHERE + col0 * - col0 IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4785
SELECT ALL + MAX ( - 17 ) col0 FROM tab2 WHERE + col0 * - col0 IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4786
SELECT + col0 DIV + - 32 FROM tab2
----
-1
-2
-2

skipif mysql # not compatible
query I rowsort label-4786
SELECT + col0 / + - 32 FROM tab2
----
-1
-2
-2

query I rowsort
SELECT - col0 * ( - col0 ) - + 39 - col2 FROM tab2 WHERE col1 * - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4788
SELECT DISTINCT + COUNT( * ) - - MIN( DISTINCT col0 ) FROM tab2
----
49

skipif mysql # not compatible
query I rowsort label-4788
SELECT DISTINCT + COUNT ( * ) - - MIN ( DISTINCT col0 ) FROM tab2
----
49

query I rowsort
SELECT DISTINCT col2 + - 21 AS col0 FROM tab0
----
-11
26
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4790
SELECT + + col1 * + col1 + + + ( - - col0 ) - + CAST( - col1 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
549
6657
99

skipif mysql # not compatible
query I rowsort label-4790
SELECT + + col1 * + col1 + + + ( - - col0 ) - + CAST ( - col1 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
549
6657
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4791
SELECT DISTINCT + COUNT( * ) FROM tab2 AS cor0 WHERE + col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4791
SELECT DISTINCT + COUNT ( * ) FROM tab2 AS cor0 WHERE + col0 IS NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4792
SELECT DISTINCT col2 DIV 93 col1 FROM tab1
----
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4792
SELECT DISTINCT col2 / 93 col1 FROM tab1
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4793
SELECT ALL 46 + COUNT( * ) * MIN( + col2 ) FROM tab0 WHERE NOT col1 IS NULL
----
76

skipif mysql # not compatible
query I rowsort label-4793
SELECT ALL 46 + COUNT ( * ) * MIN ( + col2 ) FROM tab0 WHERE NOT col1 IS NULL
----
76

query II rowsort
SELECT + col0 * + - ( 55 ) AS col0, 13 FROM tab2
----
-2530
13
-3520
13
-4125
13

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE 54 BETWEEN + 72 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4796
SELECT DISTINCT COUNT( * ) col2 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-4796
SELECT DISTINCT COUNT ( * ) col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query I rowsort
SELECT DISTINCT + + 66 + - - 95 + + 83 AS col2 FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
244

onlyif mysql # aggregate syntax: 
query I rowsort label-4798
SELECT DISTINCT + SUM( ALL - - 45 ) FROM tab1 cor0
----
135

skipif mysql # not compatible
query I rowsort label-4798
SELECT DISTINCT + SUM ( ALL - - 45 ) FROM tab1 cor0
----
135

query I rowsort
SELECT DISTINCT + 95 * - 33 FROM tab0 AS cor0
----
-3135

onlyif mysql # DIV for integer division: 
query I rowsort label-4800
SELECT ALL + 66 DIV - col1 AS col1 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4800
SELECT ALL + 66 / - col1 AS col1 FROM tab2 AS cor0
----
-1
0
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - ( + 1 ) >= - 39 + + 20
----

query I rowsort
SELECT ( - 85 ) AS col1 FROM tab0 cor0
----
-85
-85
-85

query I rowsort
SELECT ALL col0 * + 85 FROM tab1 AS cor0
----
4335
7225
7735

query I rowsort
SELECT ALL 94 * + + 88 + + ( - col2 ) FROM tab0 AS cor0
----
8173
8225
8262

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4805
SELECT DISTINCT * FROM tab0 WHERE + col0 + + + CAST( NULL AS DECIMAL ) + + ( + 69 ) - + 41 + 54 > NULL
----

skipif mysql # not compatible
query III rowsort label-4805
SELECT DISTINCT * FROM tab0 WHERE + col0 + + + CAST ( NULL AS REAL ) + + ( + 69 ) - + 41 + 54 > NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4806
SELECT ALL COUNT( * ) AS col0, + COUNT( * ) + - MIN( DISTINCT + + 57 ) AS col2 FROM tab1
----
3
-54

skipif mysql # not compatible
query II rowsort label-4806
SELECT ALL COUNT ( * ) AS col0, + COUNT ( * ) + - MIN ( DISTINCT + + 57 ) AS col2 FROM tab1
----
3
-54

onlyif mysql # aggregate syntax: 
query II rowsort label-4807
SELECT + 17 AS col1, COUNT( * ) FROM tab2
----
17
3

skipif mysql # not compatible
query II rowsort label-4807
SELECT + 17 AS col1, COUNT ( * ) FROM tab2
----
17
3

query I rowsort
SELECT - 84 * col0 FROM tab0
----
-1260
-7308
-8148

onlyif mysql # aggregate syntax: 
query I rowsort label-4809
SELECT - 47 + COUNT( * ) * 39 AS col1 FROM tab2 AS cor0
----
70

skipif mysql # not compatible
query I rowsort label-4809
SELECT - 47 + COUNT ( * ) * 39 AS col1 FROM tab2 AS cor0
----
70

query I rowsort
SELECT col0 + - 79 AS col1 FROM tab0
----
-64
18
8

query I rowsort
SELECT DISTINCT - 98 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-4812
SELECT ALL - - MIN( DISTINCT ( - 96 ) ) AS col1 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-4812
SELECT ALL - - MIN ( DISTINCT ( - 96 ) ) AS col1 FROM tab1 AS cor0
----
-96

query I rowsort
SELECT DISTINCT + 67 * col1 AS col0 FROM tab1 AS cor0
----
3149
335
938

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE NULL <> col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4815
SELECT COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE + col1 + ( - col1 ) / col0 + - col0 * - 50 - + - col1 / - ( + ( - col1 ) ) NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-4815
SELECT COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE + col1 + ( - col1 ) / col0 + - col0 * - 50 - + - col1 / - ( + ( - col1 ) ) NOT BETWEEN NULL AND NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4816
SELECT col0 * + 18 - 8 + col1 DIV - col2 - - 5 FROM tab1 AS cor0
----
1527
1635
915

skipif mysql # not compatible
query I rowsort label-4816
SELECT col0 * + 18 - 8 + col1 / - col2 - - 5 FROM tab1 AS cor0
----
1527
1635
915

query I rowsort
SELECT col2 * + col0 + + col0 FROM tab1
----
4947
5100
6279

onlyif mysql # aggregate syntax: 
query I rowsort label-4818
SELECT + ( - - COUNT( * ) ) + - - COUNT( * ) + MIN( - col0 ) FROM tab0
----
-91

skipif mysql # not compatible
query I rowsort label-4818
SELECT + ( - - COUNT ( * ) ) + - - COUNT ( * ) + MIN ( - col0 ) FROM tab0
----
-91

query I rowsort
SELECT ALL + 14 + + 79 AS col1 FROM tab0
----
93
93
93

query I rowsort
SELECT + col2 + + col2 * 84 FROM tab2
----
1955
3400
4930

onlyif mysql # aggregate syntax: 
query I rowsort label-4821
SELECT + 54 * + 53 * + - COUNT( * ) + + 43 AS col0 FROM tab0 AS cor0
----
-8543

skipif mysql # not compatible
query I rowsort label-4821
SELECT + 54 * + 53 * + - COUNT ( * ) + + 43 AS col0 FROM tab0 AS cor0
----
-8543

query I rowsort
SELECT ALL - col1 - - 86 AS col2 FROM tab2 AS cor0
----
19
35
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4823
SELECT MIN( - - col0 ) FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-4823
SELECT MIN ( - - col0 ) FROM tab1 AS cor0
----
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 51 AS col2, - 27 * + 19 col0 FROM tab2 AS cor0
----
51
-513
51
-513
51
-513

query I rowsort
SELECT 69 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4826
SELECT ALL CAST( NULL AS SIGNED ) * + COUNT( * ) col1 FROM tab1, tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4826
SELECT ALL CAST ( NULL AS INTEGER ) * + COUNT ( * ) col1 FROM tab1, tab2 AS cor0
----
NULL

query II rowsort
SELECT ALL - ( + + col0 ), - 56 * + + 35 AS col0 FROM tab0
----
-15
-1960
-87
-1960
-97
-1960

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4828
SELECT + - ( - CAST( - - 40 AS SIGNED ) ) DIV 47 DIV + col0 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4828
SELECT + - ( - CAST ( - - 40 AS INTEGER ) ) / 47 / + col0 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + 77 AS col1 FROM tab0 cor0
----
77
77
77

query I rowsort
SELECT col2 AS col0 FROM tab2 cor0 WHERE NOT NULL BETWEEN ( - col0 + col0 * + - 4 ) AND - 90
----

query I rowsort
SELECT ( - 84 ) AS col2 FROM tab2 AS cor0
----
-84
-84
-84

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 + ( + + col0 ) IS NOT NULL
----

query I rowsort
SELECT - col2 * - - col0 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL 42 * - 38 * + col1 + + 24 AS col1 FROM tab2 WHERE NOT + 87 * + + col0 <> - 14
----

query I rowsort
SELECT DISTINCT 63 * - + col2 FROM tab0
----
-2961
-6237
-630

query I rowsort
SELECT ALL + + 61 AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
61
61
61

query I rowsort
SELECT - col1 * + - col2 AS col0 FROM tab1
----
1344
295
3196

onlyif mysql # DIV for integer division: 
query I rowsort label-4838
SELECT ALL + - col2 * col1 DIV - ( + + 59 ) AS col0 FROM tab2 AS cor0
----
19
52
65

skipif mysql # not compatible
query I rowsort label-4838
SELECT ALL + - col2 * col1 / - ( + + 59 ) AS col0 FROM tab2 AS cor0
----
19
52
65

onlyif mysql # DIV for integer division: 
query I rowsort label-4839
SELECT - col1 DIV - 77 - + - 1 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4839
SELECT - col1 / - 77 - + - 1 FROM tab1 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 69 + col1 col1, + 34 * - + col1 FROM tab0
----
150
-2754
70
-34
90
-714

onlyif mysql # DIV for integer division: 
query I rowsort label-4841
SELECT DISTINCT - col2 DIV - ( ( col0 ) ) + - col1 AS col1 FROM tab1
----
-13
-47
-5

skipif mysql # not compatible
query I rowsort label-4841
SELECT DISTINCT - col2 / - ( ( col0 ) ) + - col1 AS col1 FROM tab1
----
-13
-47
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4842
SELECT DISTINCT - col0 + + + CAST( col0 AS SIGNED ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4842
SELECT DISTINCT - col0 + + + CAST ( col0 AS INTEGER ) FROM tab1
----
0

query I rowsort
SELECT DISTINCT + 69 AS col2 FROM tab0 cor0 WHERE + col1 * + 85 * + col1 IS NOT NULL
----
69

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN - 85 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4845
SELECT DISTINCT + col0 DIV + - col0 AS col0 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4845
SELECT DISTINCT + col0 / + - col0 AS col0 FROM tab2 AS cor0
----
-1

query I rowsort
SELECT DISTINCT - + 74 FROM tab1 AS cor0 WHERE NOT ( - 52 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4847
SELECT - MAX( ALL + 86 ) AS col2 FROM tab1 AS cor0
----
-86

skipif mysql # not compatible
query I rowsort label-4847
SELECT - MAX ( ALL + 86 ) AS col2 FROM tab1 AS cor0
----
-86

query III rowsort
SELECT * FROM tab2 WHERE - 26 * col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - + col0 + - col2 FROM tab2 WHERE NULL IS NULL
----
-104
-133
-69

query I rowsort
SELECT ALL + col0 + + 77 * - - ( - col1 ) AS col2 FROM tab1
----
-1027
-300
-3528

onlyif mysql # DIV for integer division: 
query I rowsort label-4851
SELECT - col2 DIV col0 * + - col2 col2 FROM tab1
----
0
0
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4851
SELECT - col2 / col0 * + - col2 col2 FROM tab1
----
0
0
96

onlyif mysql # aggregate syntax: 
query II rowsort label-4852
SELECT 85 - - SUM( + + col2 ) AS col0, - 80 * + 85 FROM tab0
----
241
-6800

skipif mysql # not compatible
query II rowsort label-4852
SELECT 85 - - SUM ( + + col2 ) AS col0, - 80 * + 85 FROM tab0
----
241
-6800

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4853
SELECT + COUNT( * ) - + ( + COUNT( * ) ) * CAST( NULL AS SIGNED ) col1 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4853
SELECT + COUNT ( * ) - + ( + COUNT ( * ) ) * CAST ( NULL AS INTEGER ) col1 FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4854
SELECT ALL col1 DIV - - 52 + - + col2 AS col0 FROM tab2
----
-23
-39
-57

skipif mysql # not compatible
query I rowsort label-4854
SELECT ALL col1 / - - 52 + - + col2 AS col0 FROM tab2
----
-23
-39
-57

query I rowsort
SELECT - 86 * - - col2 AS col2 FROM tab0
----
-4042
-8514
-860

onlyif mysql # aggregate syntax: 
query I rowsort label-4856
SELECT ALL COUNT( ALL - 95 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4856
SELECT ALL COUNT ( ALL - 95 ) FROM tab2
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4857
SELECT - ( + COUNT( * ) ) * - + COUNT( * ) DIV - COUNT( * ) AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-9

skipif mysql # not compatible
query I rowsort label-4857
SELECT - ( + COUNT ( * ) ) * - + COUNT ( * ) / - COUNT ( * ) AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-9

query I rowsort
SELECT DISTINCT ( + 72 ) FROM tab2
----
72

query II rowsort
SELECT DISTINCT - 76 AS col2, + col1 FROM tab0 AS cor0
----
-76
1
-76
21
-76
81

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( - - 57 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 49 * col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-4263
-4753
-735

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NOT NULL <= - - col2 + - - 54 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4863
SELECT - + 11 DIV + col2 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4863
SELECT - + 11 / + col2 AS col0 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 3 + + + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4865
SELECT + 37 AS col0, 49 * + CAST( NULL AS SIGNED ) * - - 0 * - + 56 * + COUNT( col0 ) col0 FROM tab0 AS cor0
----
37
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4865
SELECT + 37 AS col0, 49 * + CAST ( NULL AS INTEGER ) * - - 0 * - + 56 * + COUNT ( col0 ) col0 FROM tab0 AS cor0
----
37
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4866
SELECT DISTINCT - COUNT( * ) AS col2, 17 AS col0 FROM tab0 cor0
----
-3
17

skipif mysql # not compatible
query II rowsort label-4866
SELECT DISTINCT - COUNT ( * ) AS col2, 17 AS col0 FROM tab0 cor0
----
-3
17

query I rowsort
SELECT DISTINCT + - 57 FROM tab0 AS cor0 WHERE 77 IS NOT NULL
----
-57

query I rowsort
SELECT DISTINCT - - 29 FROM tab2 AS cor0
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-4869
SELECT MAX( + 13 ) FROM tab0 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-4869
SELECT MAX ( + 13 ) FROM tab0 AS cor0
----
13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 73 + + col0 * + - 67 col0 FROM tab1
----
-3344
-5622
-6024

onlyif mysql # aggregate syntax: 
query I rowsort label-4871
SELECT DISTINCT 91 + - MIN( ALL - 48 ) FROM tab0
----
139

skipif mysql # not compatible
query I rowsort label-4871
SELECT DISTINCT 91 + - MIN ( ALL - 48 ) FROM tab0
----
139

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4872
SELECT DISTINCT + col0 + CAST( + 93 AS SIGNED ) col1 FROM tab0
----
108
180
190

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4872
SELECT DISTINCT + col0 + CAST ( + 93 AS INTEGER ) col1 FROM tab0
----
108
180
190

query I rowsort
SELECT 25 * + - col2 FROM tab1
----
-1475
-1700
-2400

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 24 + col2 BETWEEN col1 AND NULL
----
15
81
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT 63 * col2 FROM tab0 cor0 WHERE NOT 98 NOT IN ( + + 52 * col2 * col2 + - - col2 )
----

query I rowsort
SELECT ALL col2 * + col1 + col2 FROM tab2 AS cor0
----
1196
3120
3944

query II rowsort
SELECT ALL - + 35, 68 AS col0 FROM tab1 AS cor0
----
-35
68
-35
68
-35
68

query I rowsort
SELECT - col0 - + - 9 * - 71 FROM tab0 AS cor0
----
-654
-726
-736

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4880
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + CAST( NULL AS DECIMAL ) >= + 90
----

skipif mysql # not compatible
query III rowsort label-4880
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + CAST ( NULL AS REAL ) >= + 90
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL <> - 94 * + + col1
----

query I rowsort
SELECT + + col1 - + - 52 AS col2 FROM tab2 AS cor0
----
103
119
129

query I rowsort
SELECT ALL col2 - + 3 * + 87 FROM tab0 AS cor0
----
-162
-214
-251

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - ( + col0 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col2 AS col0 FROM tab2 cor0 WHERE 41 IS NULL
----

query I rowsort
SELECT + col1 + + col2 * - - 42 * - col2 AS col2 FROM tab2
----
-141221
-22167
-67123

query I rowsort
SELECT ALL ( - ( + col1 ) ) + + col0 AS col0 FROM tab0 WHERE NOT NULL BETWEEN - + 16 / - 67 / - col2 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4888
SELECT DISTINCT - - MAX( + col0 ) FROM tab0 WHERE NOT - CAST( NULL AS SIGNED ) / col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4888
SELECT DISTINCT - - MAX ( + col0 ) FROM tab0 WHERE NOT - CAST ( NULL AS INTEGER ) / col0 IS NULL
----
NULL

query I rowsort
SELECT col1 + + - 9 * + + 18 AS col2 FROM tab0
----
-141
-161
-81

query I rowsort
SELECT DISTINCT col2 * 41 AS col0 FROM tab0
----
1927
4059
410

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4891
SELECT DISTINCT col2 / + col1 * + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4891
SELECT DISTINCT col2 / + col1 * + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT ALL + col2 * + ( + col1 ) AS col1 FROM tab2
----
1173
3080
3886

query II rowsort
SELECT DISTINCT 84 / col2 AS col2, - col1 * - 10 FROM tab2 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT - col0 + 71 FROM tab0 cor0 WHERE NOT 86 IS NULL
----
-16
-26
56

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 83 * - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 * 30 * - - col1 < + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-4897
SELECT - col0 * col2 * + col0 * + col0 + col2 DIV col1 AS col0 FROM tab1 AS cor0
----
-12734490
-36233364
-51242827

skipif mysql # not compatible
query I rowsort label-4897
SELECT - col0 * col2 * + col0 * + col0 + col2 / col1 AS col0 FROM tab1 AS cor0
----
-12734490
-36233364
-51242827

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4898
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 + + + col1 * 75 * - ( CAST( - - col2 AS SIGNED ) ) > NULL
----

skipif mysql # not compatible
query III rowsort label-4898
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 + + + col1 * 75 * - ( CAST ( - - col2 AS INTEGER ) ) > NULL
----

query I rowsort
SELECT - col1 + + - 22 AS col1 FROM tab0 AS cor0
----
-103
-23
-43

query I rowsort
SELECT - + col1 FROM tab2 AS cor0 WHERE NOT - col0 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4901
SELECT CAST( NULL AS SIGNED ) + - col0 col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4901
SELECT CAST ( NULL AS INTEGER ) + - col0 col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4902
SELECT DISTINCT COUNT( ALL 27 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4902
SELECT DISTINCT COUNT ( ALL 27 ) FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4903
SELECT DISTINCT + col1 + - col0 * + - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) + col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4903
SELECT DISTINCT + col1 + - col0 * + - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) + col0 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4904
SELECT ALL * FROM tab2 WHERE CAST( col1 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-4904
SELECT ALL * FROM tab2 WHERE CAST ( col1 AS INTEGER ) IS NULL
----

query II rowsort
SELECT DISTINCT col1 + + col0 * 22, col1 FROM tab1
----
1136
14
1875
5
2049
47

query I rowsort
SELECT ALL + col1 + - + ( - - col2 ) * - 38 AS col0 FROM tab1
----
2247
2631
3662

query II rowsort
SELECT DISTINCT - col0 + + col1 * 2 AS col1, col1 FROM tab1
----
-23
14
-75
5
3
47

query I rowsort
SELECT DISTINCT + col1 + - + col0 FROM tab0
----
-66
-96
66

onlyif mysql # DIV for integer division: 
query II rowsort label-4909
SELECT ALL - col2 col0, - 67 + + col2 DIV 42 AS col0 FROM tab1 AS cor0
----
-59
-66
-68
-66
-96
-65

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4909
SELECT ALL - col2 col0, - 67 + + col2 / 42 AS col0 FROM tab1 AS cor0
----
-59
-66
-68
-66
-96
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-4910
SELECT - + MIN( DISTINCT 77 ) FROM tab2 cor0
----
-77

skipif mysql # not compatible
query I rowsort label-4910
SELECT - + MIN ( DISTINCT 77 ) FROM tab2 cor0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4911
SELECT ALL + MAX( + ( - + 70 ) ) FROM tab1 AS cor0
----
-70

skipif mysql # not compatible
query I rowsort label-4911
SELECT ALL + MAX ( + ( - + 70 ) ) FROM tab1 AS cor0
----
-70

query I rowsort
SELECT ALL + 67 * - col1 AS col0 FROM tab1 AS cor0
----
-3149
-335
-938

query I rowsort
SELECT + - col0 + - + col1 FROM tab1 AS cor0
----
-138
-65
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-4914
SELECT COUNT( * ) * 20 FROM tab1
----
60

skipif mysql # not compatible
query I rowsort label-4914
SELECT COUNT ( * ) * 20 FROM tab1
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-4915
SELECT COUNT( * ) * MAX( DISTINCT col0 ) AS col1 FROM tab2
----
225

skipif mysql # not compatible
query I rowsort label-4915
SELECT COUNT ( * ) * MAX ( DISTINCT col0 ) AS col1 FROM tab2
----
225

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4916
SELECT CAST( - 79 AS SIGNED ) * 4 AS col0 FROM tab2
----
-316
-316
-316

skipif mysql # not compatible
query I rowsort label-4916
SELECT CAST ( - 79 AS INTEGER ) * 4 AS col0 FROM tab2
----
-316
-316
-316

onlyif mysql # aggregate syntax: 
query I rowsort label-4917
SELECT + 77 + COUNT( * ) AS col1 FROM tab1
----
80

skipif mysql # not compatible
query I rowsort label-4917
SELECT + 77 + COUNT ( * ) AS col1 FROM tab1
----
80

onlyif mysql # DIV for integer division: 
query I rowsort label-4918
SELECT DISTINCT - col2 * + 33 + - col1 DIV col0 AS col1 FROM tab2
----
-1321
-1914
-760

skipif mysql # not compatible
query I rowsort label-4918
SELECT DISTINCT - col2 * + 33 + - col1 / col0 AS col1 FROM tab2
----
-1321
-1914
-760

onlyif mysql # aggregate syntax: 
query I rowsort label-4919
SELECT COUNT( * ) * + MAX( ( 53 ) ) FROM tab0
----
159

skipif mysql # not compatible
query I rowsort label-4919
SELECT COUNT ( * ) * + MAX ( ( 53 ) ) FROM tab0
----
159

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4920
SELECT - col2 col1 FROM tab1 WHERE + CAST( NULL AS SIGNED ) * ( 36 ) BETWEEN + 0 AND col2 - + 98
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4920
SELECT - col2 col1 FROM tab1 WHERE + CAST ( NULL AS INTEGER ) * ( 36 ) BETWEEN + 0 AND col2 - + 98
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4921
SELECT col0 + ( CAST( col0 AS SIGNED ) ) AS col1 FROM tab2
----
128
150
92

skipif mysql # not compatible
query I rowsort label-4921
SELECT col0 + ( CAST ( col0 AS INTEGER ) ) AS col1 FROM tab2
----
128
150
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col2 col1 FROM tab1
----
1344
295
3196

query I rowsort
SELECT ALL col0 / - col1 FROM tab1 WHERE NOT ( 34 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4924
SELECT COUNT( * ) * 66 FROM tab0
----
198

skipif mysql # not compatible
query I rowsort label-4924
SELECT COUNT ( * ) * 66 FROM tab0
----
198

onlyif mysql # aggregate syntax: 
query I rowsort label-4925
SELECT - SUM( DISTINCT - col2 ) FROM tab1 WHERE NULL >= - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4925
SELECT - SUM ( DISTINCT - col2 ) FROM tab1 WHERE NULL >= - col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4926
SELECT + COUNT( * ) + 91 AS col2 FROM tab0
----
94

skipif mysql # not compatible
query I rowsort label-4926
SELECT + COUNT ( * ) + 91 AS col2 FROM tab0
----
94

query I rowsort
SELECT - 91 + + col2 AS col1 FROM tab0
----
-44
-81
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4928
SELECT ALL COUNT( * ) FROM tab1 WHERE NOT NULL IN ( + ( col1 ) + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-4928
SELECT ALL COUNT ( * ) FROM tab1 WHERE NOT NULL IN ( + ( col1 ) + col0 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4929
SELECT DISTINCT - 70 DIV col0 AS col1 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-4929
SELECT DISTINCT - 70 / col0 AS col1 FROM tab1
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4930
SELECT DISTINCT MIN( ALL 41 ) FROM tab0
----
41

skipif mysql # not compatible
query I rowsort label-4930
SELECT DISTINCT MIN ( ALL 41 ) FROM tab0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-4931
SELECT MIN( col1 ) + + 72 AS col1 FROM tab1 WHERE ( col0 ) NOT IN ( + 8 )
----
77

skipif mysql # not compatible
query I rowsort label-4931
SELECT MIN ( col1 ) + + 72 AS col1 FROM tab1 WHERE ( col0 ) NOT IN ( + 8 )
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4932
SELECT DISTINCT - CAST( NULL AS SIGNED ) * 72 - + col1 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4932
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * 72 - + col1 AS col2 FROM tab2
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( col2 ) BETWEEN 66 AND 62
----

query I rowsort
SELECT 52 + - 79 FROM tab2
----
-27
-27
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4935
SELECT 51 + - CAST( 54 + 96 * - CAST( NULL AS SIGNED ) AS SIGNED ) * ( + 31 * + ( 87 * col2 ) ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4935
SELECT 51 + - CAST ( 54 + 96 * - CAST ( NULL AS INTEGER ) AS INTEGER ) * ( + 31 * + ( 87 * col2 ) ) AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 - col1 * + 53 FROM tab1
----
-206
-2423
-646

onlyif mysql # aggregate syntax: 
query I rowsort label-4937
SELECT - 7 * + 96 - COUNT( * ) FROM tab1
----
-675

skipif mysql # not compatible
query I rowsort label-4937
SELECT - 7 * + 96 - COUNT ( * ) FROM tab1
----
-675

query I rowsort
SELECT DISTINCT - col2 / col2 FROM tab1 WHERE ( 50 ) >= ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col1 IN ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4940
SELECT DISTINCT - COUNT( * ) * 86 AS col2 FROM tab0 AS cor0
----
-258

skipif mysql # not compatible
query I rowsort label-4940
SELECT DISTINCT - COUNT ( * ) * 86 AS col2 FROM tab0 AS cor0
----
-258

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4941
SELECT ALL CAST( col1 AS SIGNED ) col0 FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4941
SELECT ALL CAST ( col1 AS INTEGER ) col0 FROM tab0 AS cor0
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4942
SELECT ALL * FROM tab0 AS cor0 WHERE col1 NOT BETWEEN - CAST( NULL AS SIGNED ) + col0 AND col0
----
15
81
47

skipif mysql # not compatible
query III rowsort label-4942
SELECT ALL * FROM tab0 AS cor0 WHERE col1 NOT BETWEEN - CAST ( NULL AS INTEGER ) + col0 AND col0
----
15
81
47

query I rowsort
SELECT ALL + 26 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) > NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4944
SELECT DISTINCT - COUNT( * ) FROM tab2 AS cor0 WHERE NOT ( + 70 ) BETWEEN col2 AND CAST( col0 AS SIGNED ) + CAST( NULL AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-4944
SELECT DISTINCT - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( + 70 ) BETWEEN col2 AND CAST ( col0 AS INTEGER ) + CAST ( NULL AS INTEGER )
----
0

query I rowsort
SELECT ALL ( + col0 ) AS col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4946
SELECT + COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2
----
9

skipif mysql # not compatible
query I rowsort label-4946
SELECT + COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4947
SELECT DISTINCT MAX( + 8 ) FROM tab1 AS cor0 CROSS JOIN tab1
----
8

skipif mysql # not compatible
query I rowsort label-4947
SELECT DISTINCT MAX ( + 8 ) FROM tab1 AS cor0 CROSS JOIN tab1
----
8

query I rowsort
SELECT ALL 55 AS col2 FROM tab1 WHERE 47 IN ( + 3 )
----

query I rowsort
SELECT col2 FROM tab1 WHERE NOT - col0 IS NULL
----
59
68
96

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT col1 * col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-4951
SELECT + 39 DIV col2 FROM tab2 cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4951
SELECT + 39 / col2 FROM tab2 cor0
----
0
0
1

query I rowsort
SELECT DISTINCT - ( + 19 ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - col0 AND ( 48 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4953
SELECT + MIN( ALL col1 ) * 65 AS col1 FROM tab0 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-4953
SELECT + MIN ( ALL col1 ) * 65 AS col1 FROM tab0 AS cor0
----
65

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( col2 ) = ( NULL )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN NULL AND ( 31 * - 59 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4956
SELECT SUM( ALL - col2 ) AS col0 FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-4956
SELECT SUM ( ALL - col2 ) AS col0 FROM tab2
----
-121

query III rowsort
SELECT * FROM tab2 WHERE ( col2 ) IN ( ( col0 ) )
----

query I rowsort
SELECT col2 + col0 * 50 FROM tab1
----
2646
4309
4618

query III rowsort
SELECT * FROM tab0 WHERE + 80 BETWEEN ( 74 ) AND ( - 27 )
----

query I rowsort
SELECT DISTINCT col2 + + col2 * + ( + 56 ) AS col2 FROM tab2
----
1311
2280
3306

query I rowsort
SELECT - col1 * - - col1 + 39 AS col1 FROM tab0
----
-402
-6522
38

onlyif mysql # DIV for integer division: 
query I rowsort label-4962
SELECT DISTINCT + col2 + - col2 DIV col2 FROM tab0
----
46
9
98

skipif mysql # not compatible
query I rowsort label-4962
SELECT DISTINCT + col2 + - col2 / col2 FROM tab0
----
46
9
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4963
SELECT ALL CAST( NULL AS SIGNED ) - 71 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4963
SELECT ALL CAST ( NULL AS INTEGER ) - 71 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4964
SELECT ALL + 13 * + + COUNT( * ) + 24 AS col1 FROM tab1
----
63

skipif mysql # not compatible
query I rowsort label-4964
SELECT ALL + 13 * + + COUNT ( * ) + 24 AS col1 FROM tab1
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4965
SELECT - COUNT( * ) + + COUNT( * ) + + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4965
SELECT - COUNT ( * ) + + COUNT ( * ) + + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL IN ( col0 + col2 * - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4967
SELECT - ( + - COUNT( * ) ) AS col2 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4967
SELECT - ( + - COUNT ( * ) ) AS col2 FROM tab2 cor0
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( 41 / + col1 + 44 * ( col1 * - 56 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4969
SELECT DISTINCT + COUNT( * ) * - + 4 + - MAX( ALL + col0 ) FROM tab0
----
-109

skipif mysql # not compatible
query I rowsort label-4969
SELECT DISTINCT + COUNT ( * ) * - + 4 + - MAX ( ALL + col0 ) FROM tab0
----
-109

query I rowsort
SELECT DISTINCT - + 91 * - 73 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
6643

query III rowsort
SELECT * FROM tab0 WHERE ( + 56 ) IS NULL
----

query I rowsort
SELECT ALL + ( col1 ) * col1 AS col1 FROM tab2 WHERE - col0 IS NOT NULL
----
2601
4489
5929

query I rowsort
SELECT DISTINCT - 82 FROM tab1 AS cor0 WHERE ( col0 ) >= - col0 * - col0 - + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 1 - + col0 col2 FROM tab0 AS cor0
----
-14
-86
-96

query I rowsort
SELECT - 1 AS col1 FROM tab1 AS cor0 WHERE - 14 <> ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4976
SELECT - 6 * - CAST( NULL AS SIGNED ) - + col0 + - 91 * - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4976
SELECT - 6 * - CAST ( NULL AS INTEGER ) - + col0 + - 91 * - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 9 col1 FROM tab0 AS cor0
----
-9
-9
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4978
SELECT + SUM( - ( col0 ) ) FROM tab0 AS cor0 WHERE NOT NULL < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4978
SELECT + SUM ( - ( col0 ) ) FROM tab0 AS cor0 WHERE NOT NULL < NULL
----
NULL

query I rowsort
SELECT ALL col2 AS col1 FROM tab2 AS cor0 WHERE ( col2 ) <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4980
SELECT + + 82 col1, COUNT( * ) FROM tab0 AS cor0
----
82
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4980
SELECT + + 82 col1, COUNT ( * ) FROM tab0 AS cor0
----
82
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4981
SELECT SUM( DISTINCT - col0 ) FROM tab1 cor0
----
-227

skipif mysql # not compatible
query I rowsort label-4981
SELECT SUM ( DISTINCT - col0 ) FROM tab1 cor0
----
-227

query I rowsort
SELECT DISTINCT + 15 * + + col0 AS col1 FROM tab1 AS cor0
----
1275
1365
765

query II rowsort
SELECT col2, 30 AS col0 FROM tab2 AS cor0
----
23
30
40
30
58
30

onlyif mysql # DIV for integer division: 
query I rowsort label-4984
SELECT col1 DIV - 18 + 47 FROM tab0 WHERE NOT ( - 57 ) IS NULL
----
43
46
47

skipif mysql # not compatible
query I rowsort label-4984
SELECT col1 / - 18 + 47 FROM tab0 WHERE NOT ( - 57 ) IS NULL
----
43
46
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4985
SELECT DISTINCT - MAX( + 65 ) AS col1 FROM tab2
----
-65

skipif mysql # not compatible
query I rowsort label-4985
SELECT DISTINCT - MAX ( + 65 ) AS col1 FROM tab2
----
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4986
SELECT DISTINCT - col2 FROM tab1 WHERE NOT ( + + 16 ) NOT IN ( + ( CAST( 97 AS SIGNED ) ) )
----

skipif mysql # not compatible
query I rowsort label-4986
SELECT DISTINCT - col2 FROM tab1 WHERE NOT ( + + 16 ) NOT IN ( + ( CAST ( 97 AS INTEGER ) ) )
----

query II rowsort
SELECT ALL + col2 * + 93, 72 AS col2 FROM tab1
----
5487
72
6324
72
8928
72

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( - 54 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4989
SELECT ALL COUNT( * ) AS col2 FROM tab0 WHERE NOT ( NULL ) NOT IN ( - col1 )
----
0

skipif mysql # not compatible
query I rowsort label-4989
SELECT ALL COUNT ( * ) AS col2 FROM tab0 WHERE NOT ( NULL ) NOT IN ( - col1 )
----
0

query I rowsort
SELECT + col2 * - - 86 AS col0 FROM tab0
----
4042
8514
860

query II rowsort
SELECT ALL - ( 97 ) AS col1, + col2 * 44 + + 23 * col0 FROM tab2 AS cor0
----
-97
2070
-97
3232
-97
4277

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col0 FROM tab0 AS cor0 WHERE ( NOT NULL NOT IN ( + 79 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4993
SELECT + - 40 * 59 * - + ( + COUNT( * ) ) AS col0 FROM tab0 cor0
----
7080

skipif mysql # not compatible
query I rowsort label-4993
SELECT + - 40 * 59 * - + ( + COUNT ( * ) ) AS col0 FROM tab0 cor0
----
7080

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT + col1 + + col2 > - 82 + ( 3 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4995
SELECT ALL + - COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-4995
SELECT ALL + - COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-9

query II rowsort
SELECT - 77, col2 FROM tab1
----
-77
59
-77
68
-77
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4997
SELECT DISTINCT + + 42 DIV COUNT( * ) AS col0 FROM tab1 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-4997
SELECT DISTINCT + + 42 / COUNT ( * ) AS col0 FROM tab1 AS cor0
----
14

query I rowsort
SELECT - col0 + ( - 4 ) AS col2 FROM tab0 cor0
----
-101
-19
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4999
SELECT - + 76 + 63 - - MAX( + col2 ) FROM tab0 AS cor0
----
86

skipif mysql # not compatible
query I rowsort label-4999
SELECT - + 76 + 63 - - MAX ( + col2 ) FROM tab0 AS cor0
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5000
SELECT ALL + CAST( 50 AS SIGNED ) AS col0 FROM tab0 cor0
----
50
50
50

skipif mysql # not compatible
query I rowsort label-5000
SELECT ALL + CAST ( 50 AS INTEGER ) AS col0 FROM tab0 cor0
----
50
50
50

query I rowsort
SELECT 2 AS col2 FROM tab2 WHERE col1 * + - col0 IS NOT NULL
----
2
2
2

query III rowsort
SELECT * FROM tab2 WHERE 13 * col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE ( - col0 IS NULL )
----

query II rowsort
SELECT ALL col0, col2 FROM tab1
----
51
96
85
59
91
68

query III rowsort
SELECT ALL * FROM tab0 WHERE col0 - + 92 IS NULL
----

query I rowsort
SELECT DISTINCT + 25 * - 93 + - + col2 + + ( - 78 ) AS col0 FROM tab0
----
-2413
-2450
-2502

query I rowsort
SELECT DISTINCT + 99 + col0 FROM tab2
----
145
163
174

query II rowsort
SELECT - col2, - col2 AS col0 FROM tab1
----
-59
-59
-68
-68
-96
-96

query II rowsort
SELECT 19, 46 AS col1 FROM tab0
----
19
46
19
46
19
46

query I rowsort
SELECT ALL - col2 + - 48 AS col2 FROM tab2
----
-106
-71
-88

query I rowsort
SELECT DISTINCT col1 - 52 FROM tab1
----
-38
-47
-5

query I rowsort
SELECT ALL 46 + - + col0 AS col1 FROM tab2 AS cor0
----
-18
-29
0

query I rowsort
SELECT + 31 - + ( - 97 ) AS col1 FROM tab1 AS cor0
----
128
128
128

query I rowsort
SELECT ALL ( + col0 ) * col2 FROM tab2 cor0
----
1058
2560
4350

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5015
SELECT CAST( - 29 AS SIGNED ) * 23 + COUNT( * ) FROM tab2
----
-664

skipif mysql # not compatible
query I rowsort label-5015
SELECT CAST ( - 29 AS INTEGER ) * 23 + COUNT ( * ) FROM tab2
----
-664

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5016
SELECT 86 * - + CAST( NULL AS SIGNED ) * + col0 + ( 92 ) * col2 + - + 48 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5016
SELECT 86 * - + CAST ( NULL AS INTEGER ) * + col0 + ( 92 ) * col2 + - + 48 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) <= - + 65 * + 19 + + col0 + + + col2 + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5018
SELECT COUNT( * ) + COUNT( * ) col1 FROM tab0 AS cor0 WHERE NOT + col2 BETWEEN NULL AND ( + - col2 / - col1 )
----
4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5018
SELECT COUNT ( * ) + COUNT ( * ) col1 FROM tab0 AS cor0 WHERE NOT + col2 BETWEEN NULL AND ( + - col2 / - col1 )
----
4

query II rowsort
SELECT col0, + col2 AS col0 FROM tab1 AS cor0 WHERE NOT + col0 + + 43 / 81 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5020
SELECT DISTINCT + CAST( + 85 AS SIGNED ) FROM tab1 AS cor0 WHERE ( ( - + col1 - - 78 ) BETWEEN NULL AND 19 )
----

skipif mysql # not compatible
query I rowsort label-5020
SELECT DISTINCT + CAST ( + 85 AS INTEGER ) FROM tab1 AS cor0 WHERE ( ( - + col1 - - 78 ) BETWEEN NULL AND 19 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5021
SELECT DISTINCT + MIN( ALL - 76 ) FROM tab1 AS cor0
----
-76

skipif mysql # not compatible
query I rowsort label-5021
SELECT DISTINCT + MIN ( ALL - 76 ) FROM tab1 AS cor0
----
-76

query I rowsort
SELECT ALL col1 * - ( ( - + ( + 73 ) ) ) FROM tab0 AS cor0
----
1533
5913
73

query I rowsort
SELECT col2 AS col0 FROM tab1 AS cor0 WHERE NOT - col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col2 FROM tab2 AS cor0 WHERE - 9 IS NULL
----

query I rowsort
SELECT - col2 * col1 + - - col2 + ( 64 ) FROM tab1 WHERE NOT + - 56 IS NULL
----
-1184
-172
-3064

query II rowsort
SELECT - col2 AS col1, ( + col1 ) AS col2 FROM tab2
----
-23
51
-40
77
-58
67

query II rowsort
SELECT - 27, col2 - + col1 AS col2 FROM tab1
----
-27
21
-27
54
-27
82

query II rowsort
SELECT ALL col0, + col1 AS col2 FROM tab0
----
15
81
87
21
97
1

query I rowsort
SELECT ALL col0 AS col0 FROM tab2 WHERE NOT - 71 IN ( + + 15 + - col0, - ( + col1 ) * - col1 )
----
46
64
75

query II rowsort
SELECT DISTINCT - 57 AS col0, + 94 + - ( ( - col2 ) ) FROM tab0
----
-57
104
-57
141
-57
193

onlyif mysql # aggregate syntax: 
query I rowsort label-5031
SELECT + MIN( + + col1 ) AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-5031
SELECT + MIN ( + + col1 ) AS col0 FROM tab0
----
1

query I rowsort
SELECT AVG ( ALL col2 ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( - col2 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5033
SELECT DISTINCT - 37 DIV - col0 * + col0 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-5033
SELECT DISTINCT - 37 / - col0 * + col0 FROM tab2 cor0
----
0

query I rowsort
SELECT DISTINCT 82 FROM tab0 AS cor0 WHERE ( - col2 ) IS NOT NULL
----
82

query I rowsort
SELECT - - col2 + 8 FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5036
SELECT + + SUM( 47 ) + + 16 FROM tab0 cor0
----
157

skipif mysql # not compatible
query I rowsort label-5036
SELECT + + SUM ( 47 ) + + 16 FROM tab0 cor0
----
157

query I rowsort
SELECT 7 + 46 FROM tab2, tab1 AS cor0
----
9 values hashing to fede6033dee346dbd272085c05724fda

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5038
SELECT ALL 39 / col2 + + col1 col0 FROM tab2 WHERE + - 80 / + + col2 + - ( + CAST( NULL AS SIGNED ) ) * 78 * - 0 = ( NULL )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5038
SELECT ALL 39 / col2 + + col1 col0 FROM tab2 WHERE + - 80 / + + col2 + - ( + CAST ( NULL AS INTEGER ) ) * 78 * - 0 = ( NULL )
----

query I rowsort
SELECT DISTINCT - ( - 53 ) * - col0 FROM tab1 cor0
----
-2703
-4505
-4823

onlyif mysql # aggregate syntax: 
query I rowsort label-5040
SELECT DISTINCT MAX( + col1 ) * - SUM( + + col2 ) + - COUNT( ALL col0 ) FROM tab1 AS cor0
----
-10484

skipif mysql # not compatible
query I rowsort label-5040
SELECT DISTINCT MAX ( + col1 ) * - SUM ( + + col2 ) + - COUNT ( ALL col0 ) FROM tab1 AS cor0
----
-10484

query I rowsort
SELECT + 92 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5042
SELECT + col2 DIV col0 + - col1 AS col1 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-5042
SELECT + col2 / col0 + - col1 AS col1 FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-5043
SELECT ALL - - ( + - COUNT( * ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5043
SELECT ALL - - ( + - COUNT ( * ) ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT 15 * - - 88 + - col0 FROM tab1 AS cor0
----
1229
1235
1269

query I rowsort
SELECT ( + 97 ) + + 75 FROM tab0 AS cor0
----
172
172
172

query I rowsort
SELECT col0 + + ( - col0 ) AS col1 FROM tab2
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 33 <= col0 AND NOT 18 / + 53 + + + 41 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE 57 IS NOT NULL AND NOT 63 IS NOT NULL
----

query I rowsort
SELECT + 7 + + 52 AS col2 FROM tab1
----
59
59
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5050
SELECT col2 + - 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-5050
SELECT col2 + - CAST ( NULL AS INTEGER ) col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 0 - - col1 * ( - col0 ) FROM tab0
----
-1215
-1827
-97

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col2 + - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - + 50 FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
-50
-50
-50

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN - - col2 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col1, + 49 FROM tab2
----
46
49
64
49
75
49

query I rowsort
SELECT 9 * - + col2 AS col2 FROM tab1
----
-531
-612
-864

onlyif mysql # aggregate syntax: 
query I rowsort label-5057
SELECT ALL MIN( ALL - col0 ) AS col2 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-5057
SELECT ALL MIN ( ALL - col0 ) AS col2 FROM tab0 AS cor0
----
-97

query I rowsort
SELECT ALL - col0 AS col0 FROM tab0 AS cor0 WHERE + col1 IS NOT NULL
----
-15
-87
-97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 4 IS NOT NULL
----

query II rowsort
SELECT + 87 AS col1, + col0 AS col0 FROM tab2 AS cor0
----
87
46
87
64
87
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5061
SELECT - CAST( ( + COUNT( * ) ) AS SIGNED ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5061
SELECT - CAST ( ( + COUNT ( * ) ) AS INTEGER ) FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5062
SELECT ALL ( - CAST( col1 AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-5062
SELECT ALL ( - CAST ( col1 AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
-1
-21
-81

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 >= + 23
----

query I rowsort
SELECT ALL + col2 AS col0 FROM tab2 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col1 / + 59 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NOT ( NOT - ( col2 ) * 54 + - - 72 = NULL ) )
----

query II rowsort
SELECT DISTINCT + + ( - col2 ) AS col2, col1 AS col2 FROM tab0 AS cor0
----
-10
21
-47
81
-99
1

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NULL BETWEEN + col1 AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5069
SELECT DISTINCT - col0 * + - CAST( NULL AS DECIMAL ) AS col1, col2 * + 60 * - + 95 AS col2, + col1 + + 86 FROM tab0 AS cor0
----
9 values hashing to 6d044ae03fd9c058b96754ea24ea374b

skipif mysql # not compatible
query III rowsort label-5069
SELECT DISTINCT - col0 * + - CAST ( NULL AS REAL ) AS col1, col2 * + 60 * - + 95 AS col2, + col1 + + 86 FROM tab0 AS cor0
----
9 values hashing to 6d044ae03fd9c058b96754ea24ea374b

onlyif mysql # aggregate syntax: 
query I rowsort label-5070
SELECT 77 * + COUNT( * ) * + + 95 + - 41 FROM tab2 AS cor0
----
21904

skipif mysql # not compatible
query I rowsort label-5070
SELECT 77 * + COUNT ( * ) * + + 95 + - 41 FROM tab2 AS cor0
----
21904

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5071
SELECT DISTINCT + 11 AS col2, 12 DIV - + COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
11
-1

skipif mysql # not compatible
query II rowsort label-5071
SELECT DISTINCT + 11 AS col2, 12 / - + COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
11
-1

query I rowsort
SELECT + 94 AS col1 FROM tab2 WHERE - 41 BETWEEN col0 AND + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5073
SELECT ALL COUNT( - - 50 ) FROM tab0 WHERE - 18 + 80 IS NULL AND NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5073
SELECT ALL COUNT ( - - 50 ) FROM tab0 WHERE - 18 + 80 IS NULL AND NOT NULL IS NULL
----
0

query I rowsort
SELECT ALL - ( + 7 ) AS col2 FROM tab2 cor0 WHERE NOT NULL = ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5075
SELECT + CAST( + col1 AS SIGNED ) * + col2 + + + ( - col1 ) * - + col2 AS col0 FROM tab1 AS cor0
----
2688
590
6392

skipif mysql # not compatible
query I rowsort label-5075
SELECT + CAST ( + col1 AS INTEGER ) * + col2 + + + ( - col1 ) * - + col2 AS col0 FROM tab1 AS cor0
----
2688
590
6392

onlyif mysql # DIV for integer division: 
query I rowsort label-5076
SELECT ALL ( 92 ) DIV - ( + col2 ) + - 65 FROM tab2 AS cor0
----
-66
-67
-69

skipif mysql # not compatible
query I rowsort label-5076
SELECT ALL ( 92 ) / - ( + col2 ) + - 65 FROM tab2 AS cor0
----
-66
-67
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-5077
SELECT + 33 + - COUNT( * ) AS col1 FROM tab2 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-5077
SELECT + 33 + - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
30

query I rowsort
SELECT + + col0 + - 84 AS col0 FROM tab1 AS cor0
----
-33
1
7

query I rowsort
SELECT col1 * - col1 + + col0 AS col0 FROM tab2 cor0
----
-2555
-4414
-5865

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5080
SELECT * FROM tab1 AS cor0 WHERE - CAST( + col1 AS SIGNED ) * - col2 - CAST( - col2 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-5080
SELECT * FROM tab1 AS cor0 WHERE - CAST ( + col1 AS INTEGER ) * - col2 - CAST ( - col2 AS INTEGER ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - ( + - col0 ) <= - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL + col2, - col2 AS col0 FROM tab0 AS cor0
----
10
-10
47
-47
99
-99

query III rowsort
SELECT * FROM tab0 WHERE - + 26 < NULL
----

query I rowsort
SELECT DISTINCT + col0 * + 2 AS col2 FROM tab1
----
102
170
182

query II rowsort
SELECT + 22 * + col2 AS col0, - col1 FROM tab0
----
1034
-81
2178
-1
220
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-5086
SELECT 76 - - + COUNT( * ) FROM tab1
----
79

skipif mysql # not compatible
query I rowsort label-5086
SELECT 76 - - + COUNT ( * ) FROM tab1
----
79

onlyif mysql # DIV for integer division: 
query I rowsort label-5087
SELECT DISTINCT - col2 + - col0 * + + col0 * col2 DIV - - col2 AS col2 FROM tab2
----
-2139
-4136
-5683

skipif mysql # not compatible
query I rowsort label-5087
SELECT DISTINCT - col2 + - col0 * + + col0 * col2 / - - col2 AS col2 FROM tab2
----
-2139
-4136
-5683

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5088
SELECT ALL CAST( + col2 AS SIGNED ) - + ( - col2 ) - + - col1 AS col2 FROM tab1
----
123
183
206

skipif mysql # not compatible
query I rowsort label-5088
SELECT ALL CAST ( + col2 AS INTEGER ) - + ( - col2 ) - + - col1 AS col2 FROM tab1
----
123
183
206

query I rowsort
SELECT DISTINCT - 46 + - col1 AS col1 FROM tab1
----
-51
-60
-93

query I rowsort
SELECT + - col0 - 60 * + - col2 AS col0 FROM tab0 AS cor0
----
2805
513
5843

query I rowsort
SELECT DISTINCT - ( col1 ) + 38 FROM tab0 AS cor0
----
-43
17
37

onlyif mysql # aggregate syntax: 
query I rowsort label-5092
SELECT - - COUNT( * ) + COUNT( * ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1 WHERE ( - 79 ) IS NOT NULL
----
18

skipif mysql # not compatible
query I rowsort label-5092
SELECT - - COUNT ( * ) + COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1 WHERE ( - 79 ) IS NOT NULL
----
18

query I rowsort
SELECT ALL 76 * - 48 AS col1 FROM tab1
----
-3648
-3648
-3648

onlyif mysql # DIV for integer division: 
query I rowsort label-5094
SELECT ALL + col1 DIV + + 99 AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5094
SELECT ALL + col1 / + + 99 AS col1 FROM tab0
----
0
0
0

query I rowsort
SELECT + - col2 * - - 83 FROM tab0 AS cor0
----
-3901
-8217
-830

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL > + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5097
SELECT ALL - SUM( DISTINCT - col1 ) AS col0 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-5097
SELECT ALL - SUM ( DISTINCT - col1 ) AS col0 FROM tab0 AS cor0
----
103

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL > 7
----

query I rowsort
SELECT - + 27 AS col2 FROM tab1 AS cor0
----
-27
-27
-27

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 <= + 79
----
85
5
59
91
47
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5101
SELECT CAST( + SUM( ALL col2 ) AS SIGNED ) AS col0 FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-5101
SELECT CAST ( + SUM ( ALL col2 ) AS INTEGER ) AS col0 FROM tab2
----
121

query II rowsort
SELECT 85 AS col2, - ( - col2 ) AS col1 FROM tab1
----
85
59
85
68
85
96

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5103
SELECT ALL + CAST( NULL AS DECIMAL ) col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5103
SELECT ALL + CAST ( NULL AS REAL ) col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5104
SELECT col1 FROM tab0 WHERE NOT col1 NOT IN ( - - col0 DIV + col1 + - - col1 )
----
81

skipif mysql # not compatible
query I rowsort label-5104
SELECT col1 FROM tab0 WHERE NOT col1 NOT IN ( - - col0 / + col1 + - - col1 )
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5105
SELECT ALL + MAX( DISTINCT - 95 ) FROM tab1
----
-95

skipif mysql # not compatible
query I rowsort label-5105
SELECT ALL + MAX ( DISTINCT - 95 ) FROM tab1
----
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 AS col2, col2 * col1 col0 FROM tab1
----
59
295
68
3196
96
1344

query I rowsort
SELECT - col0 * + 53 AS col0 FROM tab0
----
-4611
-5141
-795

query I rowsort
SELECT + + ( + 48 ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
48
48
48

query II rowsort
SELECT - col1 AS col1, col1 - - + col0 AS col2 FROM tab1
----
-14
65
-47
138
-5
90

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 * 74 > + 45
----

query II rowsort
SELECT 43 * - col1, - col0 AS col0 FROM tab0
----
-3483
-15
-43
-97
-903
-87

query I rowsort
SELECT DISTINCT + 72 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE + ( + + 25 ) IS NOT NULL
----
72

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 * + + col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5114
SELECT DISTINCT + col0 * - + 85 * + 96 + - col2 + ( - col0 ) * col0 * + col0 * + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5114
SELECT DISTINCT + col0 * - + 85 * + 96 + - col2 + ( - col0 ) * col0 * + col0 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT + 38 + - - col0 FROM tab0 AS cor0
----
125
135
53

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5116
SELECT ALL - ( - + col2 ) AS col1, + CAST( NULL AS SIGNED ) - + 35 AS col2 FROM tab2 cor0
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
query II rowsort label-5116
SELECT ALL - ( - + col2 ) AS col1, + CAST ( NULL AS INTEGER ) - + 35 AS col2 FROM tab2 cor0
----
23
NULL
40
NULL
58
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5117
SELECT - - col2 + + CAST( NULL AS SIGNED ) col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5117
SELECT - - col2 + + CAST ( NULL AS INTEGER ) col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - 57 ) col2 FROM tab0 AS cor0
----
-57
-57
-57

query I rowsort
SELECT - ( - ( col1 ) ) + + col2 FROM tab0 AS cor0
----
100
128
31

query I rowsort
SELECT DISTINCT 1 * + - col0 AS col1 FROM tab0 AS cor0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5121
SELECT MIN( ALL + 84 ) + + 48 - - - COUNT( * ) FROM tab1
----
129

skipif mysql # not compatible
query I rowsort label-5121
SELECT MIN ( ALL + 84 ) + + 48 - - - COUNT ( * ) FROM tab1
----
129

query III rowsort
SELECT * FROM tab2 WHERE + - 59 = col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5123
SELECT DISTINCT - 12 * - COUNT( * ) col2 FROM tab2
----
36

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5123
SELECT DISTINCT - 12 * - COUNT ( * ) col2 FROM tab2
----
36

query I rowsort
SELECT ALL 12 + - 32 AS col0 FROM tab1
----
-20
-20
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5125
SELECT ALL - col1 * + col2 * - + col2 * - CAST( NULL AS SIGNED ) + + + col2 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5125
SELECT ALL - col1 * + col2 * - + col2 * - CAST ( NULL AS INTEGER ) + + + col2 AS col1 FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT + col0, 76 - 23 FROM tab0 cor0
----
15
53
87
53
97
53

onlyif mysql # DIV for integer division: 
query I rowsort label-5127
SELECT DISTINCT - col1 DIV - + col2 + + + ( - 6 ) AS col1 FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-5127
SELECT DISTINCT - col1 / - + col2 + + + ( - 6 ) AS col1 FROM tab1 AS cor0
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5128
SELECT DISTINCT - CAST( - 92 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
92

skipif mysql # not compatible
query I rowsort label-5128
SELECT DISTINCT - CAST ( - 92 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
92

query I rowsort
SELECT ALL - 33 * + col2 FROM tab0
----
-1551
-3267
-330

onlyif mysql # DIV for integer division: 
query I rowsort label-5130
SELECT DISTINCT + 39 DIV col1 * col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5130
SELECT DISTINCT + 39 / col1 * col0 FROM tab2
----
0

query II rowsort
SELECT ALL - ( - 45 ), + ( + - col1 ) + ( + col2 ) AS col2 FROM tab0 AS cor0
----
45
-11
45
-34
45
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5132
SELECT ALL - + COUNT( * ) * - 55 FROM tab1 AS cor0
----
165

skipif mysql # not compatible
query I rowsort label-5132
SELECT ALL - + COUNT ( * ) * - 55 FROM tab1 AS cor0
----
165

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5133
SELECT - - col0 / 41 / + CAST( NULL AS SIGNED ) + col1 / col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5133
SELECT - - col0 / 41 / + CAST ( NULL AS INTEGER ) + col1 / col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - col0 * + col1 FROM tab2 cor0
----
2346
4928
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-5135
SELECT + MIN( - - 80 ) + - + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT 91 <> + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5135
SELECT + MIN ( - - 80 ) + - + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT 91 <> + col0
----
NULL

query I rowsort
SELECT + col0 + + ( - + col2 ) AS col1 FROM tab1 AS cor0
----
-45
23
26

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) <> - col1 / + ( col0 ) * - col1 + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5138
SELECT MAX( DISTINCT - col2 ) FROM tab2 WHERE NOT 97 + + - col1 * - + 6 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5138
SELECT MAX ( DISTINCT - col2 ) FROM tab2 WHERE NOT 97 + + - col1 * - + 6 IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5139
SELECT DISTINCT + 10 DIV + 89 * - + col1 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5139
SELECT DISTINCT + 10 / + 89 * - + col1 AS col1 FROM tab0
----
0

query I rowsort
SELECT DISTINCT - ( - - col2 ) FROM tab2
----
-23
-40
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5141
SELECT - COUNT( - - col2 ) DIV + SUM( ALL col0 ) AS col2 FROM tab0 WHERE NOT col1 * - + 55 DIV - 94 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5141
SELECT - COUNT ( - - col2 ) / + SUM ( ALL col0 ) AS col2 FROM tab0 WHERE NOT col1 * - + 55 / - 94 IS NULL
----
0

query I rowsort
SELECT DISTINCT - + col2 + col1 AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5143
SELECT ALL + COUNT( ALL + - 12 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5143
SELECT ALL + COUNT ( ALL + - 12 ) AS col0 FROM tab1
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5144
SELECT DISTINCT + CAST( - ( - + 62 ) AS SIGNED ) * + + 66 + - COUNT( * ) FROM tab2 cor0 WHERE NOT 68 BETWEEN - CAST( NULL AS SIGNED ) * + - col2 AND - col1 * 91
----
4089

skipif mysql # not compatible
query I rowsort label-5144
SELECT DISTINCT + CAST ( - ( - + 62 ) AS INTEGER ) * + + 66 + - COUNT ( * ) FROM tab2 cor0 WHERE NOT 68 BETWEEN - CAST ( NULL AS INTEGER ) * + - col2 AND - col1 * 91
----
4089

query I rowsort
SELECT - 63 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 5a7845ef6e239561caf9a17a28e274b5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5146
SELECT ALL 31 * - - CAST( NULL AS SIGNED ) + - - 40 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5146
SELECT ALL 31 * - - CAST ( NULL AS INTEGER ) + - - 40 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 + + - ( - col0 ) FROM tab0
----
-66
66
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5148
SELECT ALL - CAST( NULL AS SIGNED ) + + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5148
SELECT ALL - CAST ( NULL AS INTEGER ) + + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5149
SELECT ALL + CAST( NULL AS SIGNED ) + - - 79 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5149
SELECT ALL + CAST ( NULL AS INTEGER ) + - - 79 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL - + 85 - - col0, + col0 AS col1 FROM tab1 AS cor0
----
-34
51
0
85
6
91

query I rowsort
SELECT - col1 + - + col0 * + col0 * + + col2 AS col0 FROM tab1 AS cor0
----
-249710
-426280
-563155

onlyif mysql # aggregate syntax: 
query II rowsort label-5152
SELECT DISTINCT ( + 45 ) AS col0, COUNT( * ) FROM tab0 AS cor0
----
45
3

skipif mysql # not compatible
query II rowsort label-5152
SELECT DISTINCT ( + 45 ) AS col0, COUNT ( * ) FROM tab0 AS cor0
----
45
3

query II rowsort
SELECT col1 AS col1, - col1 AS col2 FROM tab0 cor0
----
1
-1
21
-21
81
-81

query I rowsort
SELECT ALL + ( - 83 ) * + 90 - 12 FROM tab1 cor0
----
-7482
-7482
-7482

query I rowsort
SELECT DISTINCT + + col2 - 6 FROM tab0 AS cor0
----
4
41
93

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5156
SELECT ALL * FROM tab1 AS cor0 WHERE col2 + + + col0 / + col0 * - - col1 + - col0 <= - + col0 OR NOT - - col0 * + - col1 + - CAST( NULL AS SIGNED ) + + col1 + - col0 <> ( NULL )
----

skipif mysql # not compatible
query III rowsort label-5156
SELECT ALL * FROM tab1 AS cor0 WHERE col2 + + + col0 / + col0 * - - col1 + - col0 <= - + col0 OR NOT - - col0 * + - col1 + - CAST ( NULL AS INTEGER ) + + col1 + - col0 <> ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5157
SELECT col1 * col1 / - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5157
SELECT col1 * col1 / - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ( col0 ) * 47 AS col1 FROM tab1
----
2397
3995
4277

query II rowsort
SELECT ( - 21 ) AS col0, col2 AS col1 FROM tab1
----
-21
59
-21
68
-21
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5160
SELECT DISTINCT + ( CAST( NULL AS SIGNED ) ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5160
SELECT DISTINCT + ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT + + col2 AS col1 FROM tab0 WHERE NOT + + col2 * + 89 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + ( + 79 ) AS col2 FROM tab2
----
79

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 94 <> NULL
----

query I rowsort
SELECT ALL - col1 * + col1 AS col0 FROM tab2 cor0
----
-2601
-4489
-5929

query I rowsort
SELECT ALL - + col1 * + 41 AS col2 FROM tab1 cor0
----
-1927
-205
-574

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5166
SELECT DISTINCT COUNT( * ) DIV COUNT( * ) AS col1 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5166
SELECT DISTINCT COUNT ( * ) / COUNT ( * ) AS col1 FROM tab1 AS cor0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5167
SELECT ALL - col2 DIV + 28 FROM tab0 cor0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-5167
SELECT ALL - col2 / + 28 FROM tab0 cor0
----
-1
-3
0

query I rowsort
SELECT DISTINCT 42 * + - ( - col2 ) + col0 FROM tab2
----
1012
1744
2511

query I rowsort
SELECT ALL + 88 + - 25 FROM tab1
----
63
63
63

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5170
SELECT * FROM tab0 WHERE - - 33 NOT IN ( CAST( - col2 AS SIGNED ), - ( - col1 ), + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5170
SELECT * FROM tab0 WHERE - - 33 NOT IN ( CAST ( - col2 AS INTEGER ), - ( - col1 ), + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + col2 + + col0 col0 FROM tab1
----
4947
5100
6279

query I rowsort
SELECT DISTINCT col2 * 78 FROM tab2
----
1794
3120
4524

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5173
SELECT - col0 + - col1 col0 FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) NOT BETWEEN 36 AND col2
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5173
SELECT - col0 + - col1 col0 FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) NOT BETWEEN 36 AND col2
----

query I rowsort
SELECT DISTINCT 40 * col2 AS col1 FROM tab0 AS cor0 WHERE NOT + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5175
SELECT ALL - + SUM( DISTINCT + - 15 ) + - COUNT( ALL 1 ) AS col0 FROM tab1 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-5175
SELECT ALL - + SUM ( DISTINCT + - 15 ) + - COUNT ( ALL 1 ) AS col0 FROM tab1 AS cor0
----
12

query I rowsort
SELECT ALL + 19 * - col1 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1273
-1463
-969

query I rowsort
SELECT - - col1 * - ( col2 ) FROM tab1 AS cor0 WHERE + col2 BETWEEN - - col2 AND col1
----

query I rowsort
SELECT DISTINCT + + col1 * 72 AS col2 FROM tab2 AS cor0 WHERE col0 + + + col0 IS NOT NULL
----
3672
4824
5544

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5179
SELECT ALL ( + - col1 ) AS col2 FROM tab2 AS cor0 WHERE ( NOT + + CAST( NULL AS SIGNED ) <> NULL )
----

skipif mysql # not compatible
query I rowsort label-5179
SELECT ALL ( + - col1 ) AS col2 FROM tab2 AS cor0 WHERE ( NOT + + CAST ( NULL AS INTEGER ) <> NULL )
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-5180
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND - CAST( NULL AS DECIMAL ) - - CAST( - 75 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5180
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND - CAST ( NULL AS REAL ) - - CAST ( - 75 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5181
SELECT ALL - MIN( ALL - - ( 70 ) ) FROM tab1 AS cor0
----
-70

skipif mysql # not compatible
query I rowsort label-5181
SELECT ALL - MIN ( ALL - - ( 70 ) ) FROM tab1 AS cor0
----
-70

query I rowsort
SELECT - 46 + + col2 + col1 + col1 FROM tab2 AS cor0
----
146
148
79

query I rowsort
SELECT - col0 + + + 69 AS col0 FROM tab1 cor0
----
-16
-22
18

query I rowsort
SELECT ALL + + col2 * - + col2 + - 28 - + - col0 - + - col2 * - 77 - + col1 AS col0 FROM tab1 AS cor0
----
-16599
-7972
-9844

query I rowsort
SELECT - 85 * 10 AS col1 FROM tab1
----
-850
-850
-850

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 89 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5187
SELECT - MIN( DISTINCT col0 ) * - COUNT( * ) FROM tab1
----
153

skipif mysql # not compatible
query I rowsort label-5187
SELECT - MIN ( DISTINCT col0 ) * - COUNT ( * ) FROM tab1
----
153

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL > - + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5189
SELECT - SUM( ALL 15 ) col2 FROM tab2 cor0
----
-45

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5189
SELECT - SUM ( ALL 15 ) col2 FROM tab2 cor0
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-5190
SELECT COUNT( - 9 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5190
SELECT COUNT ( - 9 ) AS col2 FROM tab1 AS cor0
----
3

query II rowsort
SELECT + col2, col0 * - col1 AS col0 FROM tab0 AS cor0
----
10
-1827
47
-1215
99
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5192
SELECT DISTINCT + SUM( - ( + col0 ) ) AS col1 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-5192
SELECT DISTINCT + SUM ( - ( + col0 ) ) AS col1 FROM tab1 AS cor0
----
-227

query II rowsort
SELECT - col1, + col0 * + - col1 AS col0 FROM tab2 AS cor0
----
-51
-2346
-67
-5025
-77
-4928

onlyif mysql # aggregate syntax: 
query I rowsort label-5194
SELECT ALL + COUNT( ( - - col2 ) ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5194
SELECT ALL + COUNT ( ( - - col2 ) ) AS col0 FROM tab1 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-5195
SELECT + + col2 * 42 DIV - col1 + + 39 + + col0 * - col0 FROM tab2 AS cor0
----
-2095
-4078
-5622

skipif mysql # not compatible
query I rowsort label-5195
SELECT + + col2 * 42 / - col1 + + 39 + + col0 * - col0 FROM tab2 AS cor0
----
-2095
-4078
-5622

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5196
SELECT DISTINCT + + ( + - 23 ) DIV COUNT( - 43 ) AS col0 FROM tab2 AS cor0
----
-7

skipif mysql # not compatible
query I rowsort label-5196
SELECT DISTINCT + + ( + - 23 ) / COUNT ( - 43 ) AS col0 FROM tab2 AS cor0
----
-7

query I rowsort
SELECT - 61 + + col0 * col0 FROM tab0 AS cor0
----
164
7508
9348

query I rowsort
SELECT ALL + 35 FROM tab1 AS cor0 WHERE col1 * col1 IS NOT NULL
----
35
35
35

onlyif mysql # DIV for integer division: 
query I rowsort label-5199
SELECT + 24 + - - 13 + - + 5 DIV + + col2 - + col2 AS col2 FROM tab1
----
-22
-31
-59

skipif mysql # not compatible
query I rowsort label-5199
SELECT + 24 + - - 13 + - + 5 / + + col2 - + col2 AS col2 FROM tab1
----
-22
-31
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-5200
SELECT DISTINCT COUNT( + - 56 ) AS col2 FROM tab1 WHERE NOT + col1 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-5200
SELECT DISTINCT COUNT ( + - 56 ) AS col2 FROM tab1 WHERE NOT + col1 IS NULL
----
3

query I rowsort
SELECT DISTINCT + 94 FROM tab0 WHERE 57 IS NOT NULL
----
94

query III rowsort
SELECT * FROM tab1 WHERE + - col1 > - 97
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ( - 42 ) AS col1 FROM tab2
----
-42
-42
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-5204
SELECT ALL + ( + 76 ) * - 55 * MAX( - col2 ) + - COUNT( * ) * - COUNT( * ) + - 47 col2 FROM tab1
----
246582

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5204
SELECT ALL + ( + 76 ) * - 55 * MAX ( - col2 ) + - COUNT ( * ) * - COUNT ( * ) + - 47 col2 FROM tab1
----
246582

query III rowsort
SELECT * FROM tab1 WHERE NULL <> col1 * + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5206
SELECT ALL + COUNT( * ) + - ( - 69 ) FROM tab1
----
72

skipif mysql # not compatible
query I rowsort label-5206
SELECT ALL + COUNT ( * ) + - ( - 69 ) FROM tab1
----
72

query I rowsort
SELECT ALL - col0 - - col2 + col1 * - col2 * - col1 AS col1 FROM tab0
----
101
308399
4333

query I rowsort
SELECT col2 * + + 17 FROM tab0
----
1683
170
799

query I rowsort
SELECT DISTINCT - - col0 * col2 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT 10, col0 AS col2 FROM tab1 cor0
----
10
51
10
85
10
91

query I rowsort
SELECT ( + + col0 ) AS col1 FROM tab0 AS cor0
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5212
SELECT col1 - + col2 * - CAST( + col2 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
1677
3431
580

skipif mysql # not compatible
query I rowsort label-5212
SELECT col1 - + col2 * - CAST ( + col2 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
1677
3431
580

query I rowsort
SELECT - col1 * - col1 * + ( + + col1 ) - 7 AS col0 FROM tab1 AS cor0
----
103816
118
2737

query I rowsort
SELECT DISTINCT - + 82 FROM tab2 AS cor0
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5215
SELECT CAST( + col2 AS SIGNED ) + + - col0 FROM tab2
----
-17
-23
-24

skipif mysql # not compatible
query I rowsort label-5215
SELECT CAST ( + col2 AS INTEGER ) + + - col0 FROM tab2
----
-17
-23
-24

query I rowsort
SELECT + + col1 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5217
SELECT + 34 * - + 32, AVG ( ALL - CAST( NULL AS DECIMAL ) ) + 67 - + - 45 col0 FROM tab0 cor0
----
-1088
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5217
SELECT + 34 * - + 32, AVG ( ALL - CAST ( NULL AS REAL ) ) + 67 - + - 45 col0 FROM tab0 cor0
----
-1088
NULL

query I rowsort
SELECT col2 AS col0 FROM tab0 WHERE NOT - - col1 = col0
----
10
47
99

query I rowsort
SELECT + ( + - 62 ) * - 3 * + 36 AS col2 FROM tab2
----
6696
6696
6696

onlyif mysql # DIV for integer division: 
query I rowsort label-5220
SELECT col2 DIV - 4 AS col1 FROM tab2
----
-10
-14
-5

skipif mysql # not compatible
query I rowsort label-5220
SELECT col2 / - 4 AS col1 FROM tab2
----
-10
-14
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-5221
SELECT ALL col2 DIV + + col2 AS col1 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5221
SELECT ALL col2 / + + col2 AS col1 FROM tab2
----
1
1
1

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT - 63 * + 62 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + - col2 * col0 AS col0 FROM tab2 AS cor0 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT + + col1 FROM tab1 AS cor0 WHERE NOT col2 + 38 IS NOT NULL
----

query II rowsort
SELECT col1, 61 FROM tab2
----
51
61
67
61
77
61

onlyif mysql # aggregate syntax: 
query I rowsort label-5226
SELECT + - COUNT( * ) * + + 7 FROM tab0 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-5226
SELECT + - COUNT ( * ) * + + 7 FROM tab0 AS cor0
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5227
SELECT CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE 7 IS NULL
----

skipif mysql # not compatible
query I rowsort label-5227
SELECT CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE 7 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT col1 * + 51 > + col0 * col1 )
----
64
77
40
75
67
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - 79 col2, - col0 col1 FROM tab0 AS cor0
----
79
-15
79
-87
79
-97

query II rowsort
SELECT DISTINCT - col1 AS col1, - col1 FROM tab1 AS cor0
----
-14
-14
-47
-47
-5
-5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5231
SELECT DISTINCT - col0, col2 * + col1 FROM tab2 AS cor0 WHERE + 24 + - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) * + col1 IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-5231
SELECT DISTINCT - col0, col2 * + col1 FROM tab2 AS cor0 WHERE + 24 + - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) * + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5232
SELECT - col1 FROM tab0 AS cor0 WHERE col2 = CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-5232
SELECT - col1 FROM tab0 AS cor0 WHERE col2 = CAST ( NULL AS REAL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 col2, + 86 AS col2 FROM tab2 AS cor0
----
-46
86
-64
86
-75
86

onlyif mysql # aggregate syntax: 
query I rowsort label-5234
SELECT - + COUNT( * ) + - COUNT( + 51 ) FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-5234
SELECT - + COUNT ( * ) + - COUNT ( + 51 ) FROM tab0 AS cor0
----
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL ( - 46 ) col0, + col1 * col2 FROM tab2
----
-46
1173
-46
3080
-46
3886

query I rowsort
SELECT ALL col2 + - col2 AS col1 FROM tab1 WHERE NULL IS NULL
----
0
0
0

query I rowsort
SELECT col2 * + col1 + + col1 AS col0 FROM tab1
----
1358
300
3243

query I rowsort
SELECT + col1 + 75 AS col0 FROM tab2
----
126
142
152

query I rowsort
SELECT ALL + 16 AS col2 FROM tab1
----
16
16
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5240
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + - col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5240
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + - col1 FROM tab1
----
NULL

query I rowsort
SELECT ALL - col2 + - ( + ( col1 ) ) * 33 FROM tab0
----
-132
-2720
-703

query III rowsort
SELECT * FROM tab2 WHERE + + 3 / + + col2 * - col0 + - + col1 < col0 + + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col0 + col0 - - col0 * 2 * + - col0 FROM tab2
----
-11250
-4232
-8192

query I rowsort
SELECT col0 + - ( - - col2 ) FROM tab1
----
-45
23
26

query I rowsort
SELECT ALL ( + - col1 ) + - col2 FROM tab2
----
-117
-125
-74

query I rowsort
SELECT ALL col1 - + col1 + - - 40 AS col0 FROM tab1
----
40
40
40

query I rowsort
SELECT DISTINCT + col0 + - col0 + - 26 AS col2 FROM tab2
----
-26

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 40 IN ( - ( - + 83 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 * + 21 + - 21 AS col2 FROM tab2 AS cor0
----
1050
1386
1596

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 37 < + col0
----
87
21
10
97
1
99

onlyif mysql # aggregate syntax: 
query II rowsort label-5251
SELECT - + 60 AS col1, - 38 + ( + COUNT( * ) ) FROM tab0 AS cor0
----
-60
-35

skipif mysql # not compatible
query II rowsort label-5251
SELECT - + 60 AS col1, - 38 + ( + COUNT ( * ) ) FROM tab0 AS cor0
----
-60
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-5252
SELECT + - MIN( + col0 ) AS col0 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-5252
SELECT + - MIN ( + col0 ) AS col0 FROM tab1 AS cor0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-5253
SELECT ALL SUM( DISTINCT + - col2 ) FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-5253
SELECT ALL SUM ( DISTINCT + - col2 ) FROM tab2 AS cor0
----
-121

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5254
SELECT DISTINCT - SUM( + ( + 76 ) ) FROM tab0 WHERE NOT - 33 * col1 * + CAST( NULL AS SIGNED ) - col2 + + col2 NOT BETWEEN - + col0 AND + - 41
----
NULL

skipif mysql # not compatible
query I rowsort label-5254
SELECT DISTINCT - SUM ( + ( + 76 ) ) FROM tab0 WHERE NOT - 33 * col1 * + CAST ( NULL AS INTEGER ) - col2 + + col2 NOT BETWEEN - + col0 AND + - 41
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col1 + col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 47 col0 FROM tab0
----
47
47
47

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5257
SELECT ALL * FROM tab2 WHERE + CAST( NULL AS SIGNED ) >= + - col2
----

skipif mysql # not compatible
query III rowsort label-5257
SELECT ALL * FROM tab2 WHERE + CAST ( NULL AS INTEGER ) >= + - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5258
SELECT ALL ( - 16 ) DIV + - col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5258
SELECT ALL ( - 16 ) / + - col2 FROM tab1
----
0
0
0

query II rowsort
SELECT DISTINCT - ( 15 ), 56 AS col2 FROM tab0 AS cor0
----
-15
56

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) < + col1 * + + col2
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 + - col0 <= NULL
----

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE - 74 IS NOT NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

query III rowsort
SELECT ALL * FROM tab2 WHERE - col0 + + 67 IS NULL
----

query I rowsort
SELECT - col1 AS col2 FROM tab0 WHERE - col2 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5265
SELECT COUNT( * ) + + - SUM( ALL 90 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-801

skipif mysql # not compatible
query I rowsort label-5265
SELECT COUNT ( * ) + + - SUM ( ALL 90 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-801

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN 99 AND - + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5267
SELECT ALL + col2 col0 FROM tab0 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) + - - col2 <= - col0
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5267
SELECT ALL + col2 col0 FROM tab0 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) + - - col2 <= - col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5268
SELECT - ( - 75 ) + - COUNT( * ) * - MIN( + CAST( col2 AS SIGNED ) ) AS col0 FROM tab2 cor0
----
144

skipif mysql # not compatible
query I rowsort label-5268
SELECT - ( - 75 ) + - COUNT ( * ) * - MIN ( + CAST ( col2 AS INTEGER ) ) AS col0 FROM tab2 cor0
----
144

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL >= + ( - - col2 )
----

query I rowsort
SELECT - ( col0 ) AS col2 FROM tab0 AS cor0 WHERE - col2 + col2 * - col1 <= - col0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5271
SELECT DISTINCT SUM( 70 ) FROM tab1 AS cor0
----
210

skipif mysql # not compatible
query I rowsort label-5271
SELECT DISTINCT SUM ( 70 ) FROM tab1 AS cor0
----
210

onlyif mysql # aggregate syntax: 
query I rowsort label-5272
SELECT DISTINCT SUM( DISTINCT + 23 ) * + COUNT( * ) + - 33 FROM tab0
----
36

skipif mysql # not compatible
query I rowsort label-5272
SELECT DISTINCT SUM ( DISTINCT + 23 ) * + COUNT ( * ) + - 33 FROM tab0
----
36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 20 AS col2, - col1 col2 FROM tab1
----
20
-14
20
-47
20
-5

query I rowsort
SELECT ALL col1 + - 31 + 65 FROM tab1
----
39
48
81

query I rowsort
SELECT DISTINCT - 27 FROM tab0 WHERE NULL BETWEEN 94 AND - - col2 * - col2
----

query III rowsort
SELECT * FROM tab1 WHERE - col2 + col2 IS NULL
----

query I rowsort
SELECT 12 * - ( - + col1 ) - - + 59 + + 38 FROM tab1
----
157
265
661

query I rowsort
SELECT DISTINCT - + col2 - - ( 96 ) AS col1 FROM tab1 AS cor0
----
0
28
37

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 11 + + - col0 BETWEEN NULL AND - 88
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 - - 78 * + - col2 col1 FROM tab0 AS cor0
----
-3585
-759
-7721

query I rowsort
SELECT 14 - col2 AS col2 FROM tab0 WHERE NOT + col2 - col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5282
SELECT ALL col2 * + + col2, 29 + - 44 DIV + + 51 AS col2 FROM tab0
----
100
29
2209
29
9801
29

skipif mysql # not compatible
query II rowsort label-5282
SELECT ALL col2 * + + col2, 29 + - 44 / + + 51 AS col2 FROM tab0
----
100
29
2209
29
9801
29

onlyif mysql # DIV for integer division: 
query I rowsort label-5283
SELECT DISTINCT 57 DIV + col0 AS col0 FROM tab2
----
0
1

skipif mysql # not compatible
query I rowsort label-5283
SELECT DISTINCT 57 / + col0 AS col0 FROM tab2
----
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5284
SELECT - col2 DIV ( 33 ) FROM tab1
----
-1
-2
-2

skipif mysql # not compatible
query I rowsort label-5284
SELECT - col2 / ( 33 ) FROM tab1
----
-1
-2
-2

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 9 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5286
SELECT DISTINCT - CAST( + col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-5286
SELECT DISTINCT - CAST ( + col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-10
-47
-99

query II rowsort
SELECT DISTINCT + ( - 44 ), + col1 - - col1 AS col2 FROM tab1 cor0
----
-44
10
-44
28
-44
94

onlyif mysql # DIV for integer division: 
query I rowsort label-5288
SELECT DISTINCT - col1 * + col2 + col1 DIV + 12 FROM tab0 AS cor0
----
-209
-3801
-99

skipif mysql # not compatible
query I rowsort label-5288
SELECT DISTINCT - col1 * + col2 + col1 / + 12 FROM tab0 AS cor0
----
-209
-3801
-99

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 98 = NULL
----

query I rowsort
SELECT - col0 FROM tab1 cor0 WHERE NOT ( NULL ) BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5291
SELECT ALL + COUNT( * ) * 31 + - ( + COUNT( * ) ) FROM tab1 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-5291
SELECT ALL + COUNT ( * ) * 31 + - ( + COUNT ( * ) ) FROM tab1 AS cor0
----
90

query I rowsort
SELECT - col0 * col2 * 41 FROM tab0 AS cor0
----
-28905
-35670
-393723

query I rowsort
SELECT ALL + 14 AS col2 FROM tab2 AS cor0 WHERE col2 > + col0 * + col1
----

query I rowsort
SELECT col0 * - ( - + 44 ) AS col0 FROM tab0
----
3828
4268
660

onlyif mysql # aggregate syntax: 
query I rowsort label-5295
SELECT SUM( ALL - ( col0 ) ) FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-5295
SELECT SUM ( ALL - ( col0 ) ) FROM tab0
----
-199

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5296
SELECT ALL * FROM tab0 WHERE NOT + col0 + CAST( NULL AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-5296
SELECT ALL * FROM tab0 WHERE NOT + col0 + CAST ( NULL AS REAL ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 5 * + 76 * ( col1 ) col0 FROM tab1
----
-17860
-1900
-5320

query II rowsort
SELECT ALL + col1, + 18 AS col0 FROM tab0
----
1
18
21
18
81
18

query I rowsort
SELECT ( 59 ) * col2 + col0 FROM tab1
----
3566
4103
5715

onlyif mysql # aggregate syntax: 
query I rowsort label-5300
SELECT - COUNT( * ) FROM tab1 WHERE NOT - 17 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5300
SELECT - COUNT ( * ) FROM tab1 WHERE NOT - 17 IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT - col1 * - + ( + col0 ) + + col2 FROM tab2
----
2369
4968
5083

query I rowsort
SELECT ALL 68 * col1 + - 32 AS col0 FROM tab1 WHERE NOT + + 93 IS NOT NULL
----

query I rowsort
SELECT ALL - col1 * - - ( - 25 ) FROM tab1
----
1175
125
350

onlyif mysql # aggregate syntax: 
query I rowsort label-5304
SELECT COUNT( + - col2 ) + + + COUNT( * ) FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-5304
SELECT COUNT ( + - col2 ) + + + COUNT ( * ) FROM tab0 AS cor0
----
6

query I rowsort
SELECT + + col1 + - ( - + col0 ) FROM tab1 AS cor0
----
138
65
90

onlyif mysql # aggregate syntax: 
query I rowsort label-5306
SELECT + COUNT( * ) + - - COUNT( * ) - + SUM( DISTINCT col0 ) AS col2 FROM tab0 AS cor0
----
-193

skipif mysql # not compatible
query I rowsort label-5306
SELECT + COUNT ( * ) + - - COUNT ( * ) - + SUM ( DISTINCT col0 ) AS col2 FROM tab0 AS cor0
----
-193

query I rowsort
SELECT + 85 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + - 81 + 83 FROM tab1 cor0
----
2
2
2

query I rowsort
SELECT ( + col1 ) + 61 FROM tab1
----
108
66
75

query I rowsort
SELECT DISTINCT - 0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
0

query I rowsort
SELECT + 13 * - 51 FROM tab2, tab2 AS cor0
----
9 values hashing to a99cc268cf5abf5b93e2c4a9f9ce6b0e

query II rowsort
SELECT + + 44 * - 15 AS col2, 16 FROM tab1 cor0
----
-660
16
-660
16
-660
16

query I rowsort
SELECT DISTINCT + - ( - 76 ) / + ( + + col0 ) AS col0 FROM tab2 AS cor0 WHERE col1 NOT BETWEEN ( NULL ) AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5314
SELECT col2 - + 72 + + - CAST( NULL AS SIGNED ) * - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5314
SELECT col2 - + 72 + + - CAST ( NULL AS INTEGER ) * - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 - - 73 FROM tab1 AS cor0
----
-12
-18
22

onlyif mysql # aggregate syntax: 
query II rowsort label-5316
SELECT DISTINCT - COUNT( * ) - + 11 AS col0, + COUNT( * ) FROM tab0 AS cor0
----
-14
3

skipif mysql # not compatible
query II rowsort label-5316
SELECT DISTINCT - COUNT ( * ) - + 11 AS col0, + COUNT ( * ) FROM tab0 AS cor0
----
-14
3

query II rowsort
SELECT col2 + col1 AS col2, - col0 FROM tab0 AS cor0
----
100
-97
128
-15
31
-87

query I rowsort
SELECT + col0 + + col2 * + - col2 AS col1 FROM tab0
----
-13
-2194
-9704

query I rowsort
SELECT DISTINCT col2 * - 37 AS col2 FROM tab1
----
-2183
-2516
-3552

query III rowsort
SELECT ALL * FROM tab2 WHERE - col0 - + - 37 + - col1 + - col0 < NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5321
SELECT col2 DIV col2 * col0 AS col0, col1 col0 FROM tab1 WHERE NULL IS NULL
----
51
14
85
5
91
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5321
SELECT col2 / col2 * col0 AS col0, col1 col0 FROM tab1 WHERE NULL IS NULL
----
51
14
85
5
91
47

query I rowsort
SELECT 42 * col1 + + - col1 - - 0 + + col0 FROM tab0
----
138
3336
948

query I rowsort
SELECT ALL - 20 + + col2 - 43 - - + 86 AS col0 FROM tab0 AS cor0
----
122
33
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5324
SELECT col0 FROM tab0 AS cor0 WHERE NOT col1 > - + col1 - + + CAST( + + 9 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-5324
SELECT col0 FROM tab0 AS cor0 WHERE NOT col1 > - + col1 - + + CAST ( + + 9 AS INTEGER )
----

query I rowsort
SELECT + - 11 * + 84 * + col0 FROM tab2 cor0
----
-42504
-59136
-69300

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5326
SELECT + 33 * + AVG ( ALL - - CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5326
SELECT + 33 * + AVG ( ALL - - CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

query II rowsort
SELECT 11 AS col0, 94 FROM tab1
----
11
94
11
94
11
94

onlyif mysql # aggregate syntax: 
query I rowsort label-5328
SELECT - COUNT( * ) * + - COUNT( * ) AS col2 FROM tab1 cor0
----
9

skipif mysql # not compatible
query I rowsort label-5328
SELECT - COUNT ( * ) * + - COUNT ( * ) AS col2 FROM tab1 cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5329
SELECT DISTINCT + 6 * + SUM( + - 18 ) AS col0 FROM tab0 cor0
----
-324

skipif mysql # not compatible
query I rowsort label-5329
SELECT DISTINCT + 6 * + SUM ( + - 18 ) AS col0 FROM tab0 cor0
----
-324

query I rowsort
SELECT DISTINCT + col1 * + - 57 + + col2 AS col0 FROM tab0 AS cor0
----
-1187
-4570
42

onlyif mysql # aggregate syntax: 
query II rowsort label-5331
SELECT - COUNT( * ) AS col2, + 16 * + - COUNT( * ) col2 FROM tab2 AS cor0
----
-3
-48

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5331
SELECT - COUNT ( * ) AS col2, + 16 * + - COUNT ( * ) col2 FROM tab2 AS cor0
----
-3
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-5332
SELECT COUNT( * ) * SUM( 82 ) col1 FROM tab2 AS cor0
----
738

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5332
SELECT COUNT ( * ) * SUM ( 82 ) col1 FROM tab2 AS cor0
----
738

onlyif mysql # aggregate syntax: 
query I rowsort label-5333
SELECT DISTINCT + + 10 + + SUM( ALL 78 ) AS col1 FROM tab0 AS cor0 WHERE - 43 <= - + col0 + - - col2
----
166

skipif mysql # not compatible
query I rowsort label-5333
SELECT DISTINCT + + 10 + + SUM ( ALL 78 ) AS col1 FROM tab0 AS cor0 WHERE - 43 <= - + col0 + - - col2
----
166

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col2 - + + col0 / - ( + + col2 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5335
SELECT - - col0 FROM tab1 WHERE NOT CAST( NULL AS SIGNED ) * - - col1 - - col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-5335
SELECT - - col0 FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) * - - col1 - - col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 85 + - - col1 col0 FROM tab2
----
136
152
162

query I rowsort
SELECT ALL + col1 * + 28 AS col1 FROM tab0
----
2268
28
588

query I rowsort
SELECT col2 * + 32 FROM tab0 AS cor0
----
1504
3168
320

query I rowsort
SELECT ALL - 53 * 32 * + col0 AS col1 FROM tab0 AS cor0
----
-147552
-164512
-25440

onlyif mysql # aggregate syntax: 
query I rowsort label-5340
SELECT MIN( ALL 32 ) col2 FROM tab1 AS cor0 WHERE + 84 / ( col0 ) IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5340
SELECT MIN ( ALL 32 ) col2 FROM tab1 AS cor0 WHERE + 84 / ( col0 ) IS NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT 32 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5342
SELECT ALL + CAST( - col2 AS SIGNED ) + + - col2 AS col1 FROM tab1
----
-118
-136
-192

skipif mysql # not compatible
query I rowsort label-5342
SELECT ALL + CAST ( - col2 AS INTEGER ) + + - col2 AS col1 FROM tab1
----
-118
-136
-192

query IIIIII rowsort
SELECT DISTINCT * FROM ( tab2 cor0 CROSS JOIN tab0 AS cor1 ) WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + col0 * - col2 + + 69 * col1 FROM tab0 AS cor0
----
-9534
4884
579

query I rowsort
SELECT - + 47 + + col0 FROM tab2 AS cor0
----
-1
17
28

onlyif mysql # DIV for integer division: 
query II rowsort label-5346
SELECT col1, 64 DIV + + 19 AS col2 FROM tab2 AS cor0
----
51
3
67
3
77
3

skipif mysql # not compatible
query II rowsort label-5346
SELECT col1, 64 / + + 19 AS col2 FROM tab2 AS cor0
----
51
3
67
3
77
3

query I rowsort
SELECT ALL col1 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col0 - - col0 AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT - - 98 FROM tab2 WHERE NULL IS NULL
----
98
98
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5350
SELECT ALL COUNT( DISTINCT - + 93 ) + + 81 AS col1 FROM tab0
----
82

skipif mysql # not compatible
query I rowsort label-5350
SELECT ALL COUNT ( DISTINCT - + 93 ) + + 81 AS col1 FROM tab0
----
82

query I rowsort
SELECT col1 - + + col0 * - + 33 AS col2 FROM tab2
----
1569
2189
2542

query I rowsort
SELECT - 77 - col0 + + + 5 + + 17 * + - 36 AS col1 FROM tab1
----
-735
-769
-775

query III rowsort
SELECT * FROM tab2 WHERE ( + col0 ) IS NULL OR NOT - col0 NOT BETWEEN NULL AND - + 69 + 53 + + 67 * - col1 / 42
----

query I rowsort
SELECT DISTINCT + col0 + + col1 * - + 55 FROM tab2
----
-2759
-3610
-4171

query I rowsort
SELECT + ( - 97 ) * col0 AS col0 FROM tab1
----
-4947
-8245
-8827

onlyif mysql # aggregate syntax: 
query I rowsort label-5356
SELECT DISTINCT MIN( - 36 ) AS col0 FROM tab1
----
-36

skipif mysql # not compatible
query I rowsort label-5356
SELECT DISTINCT MIN ( - 36 ) AS col0 FROM tab1
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-5357
SELECT - + MAX( + 23 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-23

skipif mysql # not compatible
query I rowsort label-5357
SELECT - + MAX ( + 23 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-23

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN + + col1 + + col2 AND - ( + 15 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5359
SELECT 86 DIV + 28 AS col2 FROM tab1
----
3
3
3

skipif mysql # not compatible
query I rowsort label-5359
SELECT 86 / + 28 AS col2 FROM tab1
----
3
3
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5360
SELECT ALL - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NOT NULL = NULL
----

skipif mysql # not compatible
query I rowsort label-5360
SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NOT NULL = NULL
----

query I rowsort
SELECT DISTINCT + col2 * + + col2 + 24 FROM tab1 AS cor0
----
3505
4648
9240

query I rowsort
SELECT DISTINCT - + 10 FROM tab1 AS cor0 WHERE NULL BETWEEN + 18 + 86 AND + - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 89 col2 FROM tab0 cor0
----
89

query II rowsort
SELECT DISTINCT - 8, col0 FROM tab0 AS cor0
----
-8
15
-8
87
-8
97

query I rowsort
SELECT DISTINCT col1 * + + col0 + - - 17 FROM tab1 AS cor0
----
4294
442
731

query III rowsort
SELECT ALL * FROM tab1 WHERE col1 * - - 70 NOT IN ( - col1, + col2, - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE NOT - + 33 * + - col0 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE 51 <> NULL
----

query I rowsort
SELECT ALL - col1 + ( + - 93 ) + 49 + - + col2 FROM tab0
----
-144
-172
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-5370
SELECT DISTINCT ( - + 83 ) + - COUNT( * ) AS col1 FROM tab2
----
-86

skipif mysql # not compatible
query I rowsort label-5370
SELECT DISTINCT ( - + 83 ) + - COUNT ( * ) AS col1 FROM tab2
----
-86

query I rowsort
SELECT ALL 70 + 73 FROM tab1
----
143
143
143

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 20 <= ( NULL )
----

query I rowsort
SELECT DISTINCT - col2 + 10 AS col2 FROM tab1
----
-49
-58
-86

query I rowsort
SELECT DISTINCT + col1 * + 28 AS col1 FROM tab0
----
2268
28
588

query II rowsort
SELECT DISTINCT + + col0, + 95 FROM tab2 cor0
----
46
95
64
95
75
95

query II rowsort
SELECT DISTINCT 27 AS col1, col2 FROM tab1 AS cor0
----
27
59
27
68
27
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5377
SELECT ALL MAX( ALL col2 ) FROM tab0 cor0
----
99

skipif mysql # not compatible
query I rowsort label-5377
SELECT ALL MAX ( ALL col2 ) FROM tab0 cor0
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5378
SELECT ALL CAST( - - col1 AS SIGNED ) FROM tab0 cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-5378
SELECT ALL CAST ( - - col1 AS INTEGER ) FROM tab0 cor0
----
1
21
81

query I rowsort
SELECT DISTINCT + 58 * + col0 AS col0 FROM tab2
----
2668
3712
4350

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 10 col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f68f33032846e21ee6b2c668fc10355e

query I rowsort
SELECT 14 - + col1 * - col1 FROM tab1 cor0
----
210
2223
39

query I rowsort
SELECT + col0 * col1 * 36 + + col2 * - + 39 AS col1 FROM tab2 AS cor0
----
175848
178638
83559

query I rowsort
SELECT 1 + - + 78 FROM tab0 cor0
----
-77
-77
-77

query I rowsort
SELECT ALL - col0 * 29 FROM tab0 AS cor0
----
-2523
-2813
-435

query I rowsort
SELECT DISTINCT - col2 * + 82 FROM tab0
----
-3854
-8118
-820

onlyif mysql # aggregate syntax: 
query I rowsort label-5386
SELECT - MIN( ALL col1 ) AS col0 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-5386
SELECT - MIN ( ALL col1 ) AS col0 FROM tab0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5387
SELECT + 69 * - 87 * + MIN( + col1 ) AS col1 FROM tab0
----
-6003

skipif mysql # not compatible
query I rowsort label-5387
SELECT + 69 * - 87 * + MIN ( + col1 ) AS col1 FROM tab0
----
-6003

onlyif mysql # aggregate syntax: 
query I rowsort label-5388
SELECT DISTINCT COUNT( ALL + 81 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5388
SELECT DISTINCT COUNT ( ALL + 81 ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5389
SELECT ALL + + SUM( - col1 ) FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-5389
SELECT ALL + + SUM ( - col1 ) FROM tab1 AS cor0
----
-66

query II rowsort
SELECT DISTINCT 40 AS col0, - col0 FROM tab0 AS cor0
----
40
-15
40
-87
40
-97

query II rowsort
SELECT + + col0 AS col1, + col1 AS col2 FROM tab0 AS cor0
----
15
81
87
21
97
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5392
SELECT ALL + CAST( - 14 AS SIGNED ) * - 36 FROM tab1 WHERE ( - ( ( - col2 ) ) ) IN ( col1 * + col0 + 43 )
----

skipif mysql # not compatible
query I rowsort label-5392
SELECT ALL + CAST ( - 14 AS INTEGER ) * - 36 FROM tab1 WHERE ( - ( ( - col2 ) ) ) IN ( col1 * + col0 + 43 )
----

query I rowsort
SELECT ALL - 48 AS col0 FROM tab1
----
-48
-48
-48

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5394
SELECT DISTINCT * FROM tab0 WHERE NOT ( CAST( NULL AS SIGNED ) * + col2 ) > 73
----

skipif mysql # not compatible
query III rowsort label-5394
SELECT DISTINCT * FROM tab0 WHERE NOT ( CAST ( NULL AS INTEGER ) * + col2 ) > 73
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5395
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( - CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-5395
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( - CAST ( NULL AS REAL ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 99 * - 58 + 74 * 54 col1 FROM tab2
----
-1746
-1746
-1746

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( + 11 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-5398
SELECT DISTINCT col0 - - col1 DIV + col2 FROM tab2
----
48
65
76

skipif mysql # not compatible
query I rowsort label-5398
SELECT DISTINCT col0 - - col1 / + col2 FROM tab2
----
48
65
76

query I rowsort
SELECT + col1 * + 65 AS col1 FROM tab0
----
1365
5265
65

query III rowsort
SELECT ALL * FROM tab2 WHERE col1 * + 34 IS NULL
----

query I rowsort
SELECT - 51 * 77 FROM tab2
----
-3927
-3927
-3927

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT BETWEEN NULL AND ( - 82 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5403
SELECT * FROM tab0 WHERE - CAST( - 83 AS SIGNED ) + col2 >= + 15
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5403
SELECT * FROM tab0 WHERE - CAST ( - 83 AS INTEGER ) + col2 >= + 15
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col2 * - col0 AS col1 FROM tab0 WHERE col0 NOT IN ( - col0 )
----
705
870
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-5405
SELECT COUNT( * ) + 84 AS col1 FROM tab1
----
87

skipif mysql # not compatible
query I rowsort label-5405
SELECT COUNT ( * ) + 84 AS col1 FROM tab1
----
87

query I rowsort
SELECT ALL - col2 + + 55 FROM tab1
----
-13
-4
-41

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 14 * col2 >= col2 - col1 * 67
----

query I rowsort
SELECT ALL + 4 + + 26 * col0 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
1330
2214
2370

onlyif mysql # aggregate syntax: 
query I rowsort label-5409
SELECT DISTINCT + 37 * - COUNT( * ) col0 FROM tab1
----
-111

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5409
SELECT DISTINCT + 37 * - COUNT ( * ) col0 FROM tab1
----
-111

query III rowsort
SELECT * FROM tab2 WHERE col2 NOT IN ( col1 + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5411
SELECT DISTINCT COUNT( * ) * 63 AS col1 FROM tab2
----
189

skipif mysql # not compatible
query I rowsort label-5411
SELECT DISTINCT COUNT ( * ) * 63 AS col1 FROM tab2
----
189

query I rowsort
SELECT - col2 * + col0 + col0 FROM tab0
----
-690
-783
-9506

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5413
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5413
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( ( col2 ) / col2 )
----

query I rowsort
SELECT DISTINCT + ( + 4 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2
----
4

query I rowsort
SELECT DISTINCT - col0 * col2 + 76 AS col0 FROM tab1 WHERE NULL < NULL
----

query I rowsort
SELECT + col0 + - 4 AS col2 FROM tab2
----
42
60
71

query IIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab1 WHERE NOT NULL = + 37
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col1 - - col2 IS NULL
----

query I rowsort
SELECT DISTINCT col2 + + col0 * - col2 FROM tab0 AS cor0
----
-658
-860
-9504

query I rowsort
SELECT ALL + col0 + 99 FROM tab2 AS cor0
----
145
163
174

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( 29 ) NOT IN ( - 56 * col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL ( + col1 ) * col0 AS col1 FROM tab1 cor0
----
425
4277
714

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5424
SELECT * FROM tab2 WHERE NOT col1 * + CAST( 1 AS SIGNED ) IN ( - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5424
SELECT * FROM tab2 WHERE NOT col1 * + CAST ( 1 AS INTEGER ) IN ( - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) <= + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5426
SELECT DISTINCT MAX( + ( col2 ) ) FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-5426
SELECT DISTINCT MAX ( + ( col2 ) ) FROM tab1
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5427
SELECT DISTINCT * FROM tab0 WHERE NOT col0 = ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5427
SELECT DISTINCT * FROM tab0 WHERE NOT col0 = ( - CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT 92 * - col1 AS col1 FROM tab2
----
-4692
-6164
-7084

query I rowsort
SELECT DISTINCT ( 56 ) * - col0 FROM tab2
----
-2576
-3584
-4200

query I rowsort
SELECT DISTINCT 33 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT 33 * - col2 AS col0 FROM tab2
----
-1320
-1914
-759

onlyif mysql # aggregate syntax: 
query I rowsort label-5432
SELECT ALL - MAX( - col0 ) FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-5432
SELECT ALL - MAX ( - col0 ) FROM tab1
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-5433
SELECT ALL 71 DIV col2 * - col0 col1 FROM tab1
----
-85
-91
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5433
SELECT ALL 71 / col2 * - col0 col1 FROM tab1
----
-85
-91
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5434
SELECT - SUM( + 11 ) FROM tab0 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-5434
SELECT - SUM ( + 11 ) FROM tab0 AS cor0
----
-33

query II rowsort
SELECT col2, col0 * - col0 AS col1 FROM tab0
----
10
-7569
47
-225
99
-9409

query I rowsort
SELECT DISTINCT - col0 * + 43 / - 48 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 col2, col2 AS col1 FROM tab1 AS cor0
----
59
59
68
68
96
96

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE NOT ( + + col0 ) + + col2 < NULL
----

query II rowsort
SELECT ALL + col0 AS col0, - col2 AS col1 FROM tab0 AS cor0
----
15
-47
87
-10
97
-99

onlyif mysql # DIV for integer division: 
query II rowsort label-5440
SELECT DISTINCT + 64 AS col2, + col0 + col2 DIV col0 AS col0 FROM tab2 AS cor0
----
64
46
64
64
64
75

skipif mysql # not compatible
query II rowsort label-5440
SELECT DISTINCT + 64 AS col2, + col0 + col2 / col0 AS col0 FROM tab2 AS cor0
----
64
46
64
64
64
75

query II rowsort
SELECT DISTINCT + col1, + ( + - col0 ) FROM tab2 AS cor0
----
51
-46
67
-75
77
-64

query III rowsort
SELECT * FROM tab0 cor0 WHERE 62 * + + 84 * col0 - 8 IN ( 14 / - col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5443
SELECT + col0 DIV col1 DIV 91 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5443
SELECT + col0 / col1 / 91 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 92 * col1 col2 FROM tab0
----
-1932
-7452
-92

query I rowsort
SELECT - 77 + - col1 AS col1 FROM tab2
----
-128
-144
-154

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5446
SELECT ALL col2 + + 84 + - + col0 * - + col2 + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5446
SELECT ALL col2 + + 84 + - + col0 * - + col2 + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5447
SELECT DISTINCT col1 * - col1 + + ( + col0 ) DIV 63 AS col0 FROM tab2
----
-2601
-4488
-5928

skipif mysql # not compatible
query I rowsort label-5447
SELECT DISTINCT col1 * - col1 + + ( + col0 ) / 63 AS col0 FROM tab2
----
-2601
-4488
-5928

query I rowsort
SELECT DISTINCT col0 + + + col2 + + col1 + - + 10 FROM tab0
----
108
133
187

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5449
SELECT ALL CAST( NULL AS SIGNED ) + - 22 * - col1 * - 47 + ( 58 ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5449
SELECT ALL CAST ( NULL AS INTEGER ) + - 22 * - col1 * - 47 + ( 58 ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5450
SELECT CAST( NULL AS SIGNED ) * + + COUNT( * ) + - + 30 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5450
SELECT CAST ( NULL AS INTEGER ) * + + COUNT ( * ) + - + 30 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5451
SELECT ALL MAX( ALL 98 ) AS col0 FROM tab0 WHERE ( NULL ) NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5451
SELECT ALL MAX ( ALL 98 ) AS col0 FROM tab0 WHERE ( NULL ) NOT BETWEEN NULL AND NULL
----
NULL

query I rowsort
SELECT DISTINCT + ( + col2 ) + + col1 FROM tab0
----
100
128
31

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 * col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5454
SELECT DISTINCT + 91 * - col0 * + CAST( NULL AS SIGNED ) * - col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5454
SELECT DISTINCT + 91 * - col0 * + CAST ( NULL AS INTEGER ) * - col0 FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT - + col2 * col2, 47 AS col0 FROM tab2 AS cor0
----
-1600
47
-3364
47
-529
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5456
SELECT + - CAST( NULL AS SIGNED ) * ( - 44 ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5456
SELECT + - CAST ( NULL AS INTEGER ) * ( - 44 ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5457
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - col0 col2 FROM tab0 WHERE NOT - - 37 + col0 <> + col1
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5457
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - col0 col2 FROM tab0 WHERE NOT - - 37 + col0 <> + col1
----

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 cor1 WHERE ( NULL ) NOT BETWEEN ( NULL ) AND - 1
----

query I rowsort
SELECT DISTINCT + + col1 - - + col2 FROM tab0 AS cor0
----
100
128
31

query II rowsort
SELECT ALL 3, + 82 * + - 7 AS col1 FROM tab1 AS cor0
----
3
-574
3
-574
3
-574

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 = NULL
----

query I rowsort
SELECT - + col0 AS col1 FROM tab1 AS cor0 WHERE NOT - col0 <= + - col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 41 IS NULL
----

query I rowsort
SELECT - + col2 * + - col1 + - + col1 FROM tab2 cor0
----
1122
3003
3819

query I rowsort
SELECT DISTINCT col0 * + 43 FROM tab1 AS cor0
----
2193
3655
3913

onlyif mysql # DIV for integer division: 
query I rowsort label-5466
SELECT ALL - ( - col2 ) DIV + - col0 col2 FROM tab0 AS cor0
----
-1
-3
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5466
SELECT ALL - ( - col2 ) / + - col0 col2 FROM tab0 AS cor0
----
-1
-3
0

query I rowsort
SELECT ALL - col1 * - + col0 - col0 + col1 + + + 13 + 12 * col1 * col1 * + col2 * + col0 FROM tab1 AS cor0
----
11516082
1504858
164035750

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( ( - 2 ) * ( + - 87 ) * + ( col0 - + 16 ) ) <= col0
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5469
SELECT ALL - CAST( NULL AS DECIMAL ) * + - COUNT( * ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5469
SELECT ALL - CAST ( NULL AS REAL ) * + - COUNT ( * ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT + 27 FROM tab2 WHERE ( NULL ) <> + 20 + + - col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col1 * - col0 * 74 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5472
SELECT AVG ( - ( - + col2 ) ) + - COUNT( * ) AS col1 FROM tab0 WHERE NOT ( NULL NOT BETWEEN NULL AND NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5472
SELECT AVG ( - ( - + col2 ) ) + - COUNT ( * ) AS col1 FROM tab0 WHERE NOT ( NULL NOT BETWEEN NULL AND NULL )
----
NULL

query I rowsort
SELECT 2 * + + col1 * - + col0 FROM tab2
----
-10050
-4692
-9856

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 + + 91 + + col1 > ( + - 18 )
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col1 = ( - 60 / + 85 * + - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT col0, + col2 + ( + + col0 ) + col1 FROM tab2 AS cor0
----
46
120
64
181
75
200

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 AS col0, - col2 col1 FROM tab2 AS cor0
----
51
-23
67
-58
77
-40

query I rowsort
SELECT DISTINCT - col2 + - ( + + ( - 28 ) ) AS col2 FROM tab0
----
-19
-71
18

query II rowsort
SELECT DISTINCT + ( col0 ) AS col2, 27 AS col2 FROM tab0
----
15
27
87
27
97
27

query I rowsort
SELECT ALL - 3 + + col0 FROM tab2
----
43
61
72

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE col2 * - 77 > - 28 + - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + - - 9 col2 FROM tab0 AS cor0
----
-12
-72
8

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( 65, - col0 + col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 96 col1 FROM tab2 AS cor0 WHERE NOT col0 BETWEEN - col0 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT col1 IN ( - + 66 * + - col0 + ( 30 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 98 col1 FROM tab1 AS cor0 WHERE NOT NULL > + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5487
SELECT ALL - 17 + - col1 DIV col0 AS col2 FROM tab2 cor0 WHERE - 9 >= - 45 - col2
----
-17
-18
-18

skipif mysql # not compatible
query I rowsort label-5487
SELECT ALL - 17 + - col1 / col0 AS col2 FROM tab2 cor0 WHERE - 9 >= - 45 - col2
----
-17
-18
-18

query II rowsort
SELECT col2 * - - col2 AS col2, + ( - 32 ) FROM tab1 AS cor0
----
3481
-32
4624
-32
9216
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-5489
SELECT DISTINCT + + col2 DIV - 91 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5489
SELECT DISTINCT + + col2 / - 91 AS col2 FROM tab2 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5490
SELECT DISTINCT 72 DIV + col2 FROM tab2
----
1
3

skipif mysql # not compatible
query I rowsort label-5490
SELECT DISTINCT 72 / + col2 FROM tab2
----
1
3

query I rowsort
SELECT DISTINCT col2 * ( col2 ) + + 72 AS col0 FROM tab2
----
1672
3436
601

onlyif mysql # aggregate syntax: 
query I rowsort label-5492
SELECT DISTINCT MIN( ALL + 25 ) - 6 + - COUNT( + - col0 ) AS col2 FROM tab1
----
16

skipif mysql # not compatible
query I rowsort label-5492
SELECT DISTINCT MIN ( ALL + 25 ) - 6 + - COUNT ( + - col0 ) AS col2 FROM tab1
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-5493
SELECT ALL - 31 + - - COUNT( * ) FROM tab1
----
-28

skipif mysql # not compatible
query I rowsort label-5493
SELECT ALL - 31 + - - COUNT ( * ) FROM tab1
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5494
SELECT - MIN( DISTINCT col2 ) - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5494
SELECT - MIN ( DISTINCT col2 ) - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5495
SELECT col0 - + 73 + - col1 DIV - col2 col1 FROM tab1 AS cor0
----
-22
12
18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5495
SELECT col0 - + 73 + - col1 / - col2 col1 FROM tab1 AS cor0
----
-22
12
18

onlyif mysql # aggregate syntax: 
query I rowsort label-5496
SELECT ALL + SUM( DISTINCT - + col1 ) FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-5496
SELECT ALL + SUM ( DISTINCT - + col1 ) FROM tab1 AS cor0
----
-66

query III rowsort
SELECT * FROM tab1 cor0 WHERE - 1 + + col1 + + col1 + + + 58 * col1 - col1 NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5498
SELECT ALL + col0 - + 18 - + 71 DIV - - col2 AS col2 FROM tab1 AS cor0
----
33
66
72

skipif mysql # not compatible
query I rowsort label-5498
SELECT ALL + col0 - + 18 - + 71 / - - col2 AS col2 FROM tab1 AS cor0
----
33
66
72

query I rowsort
SELECT ALL + 47 + 75 * + col0 AS col0 FROM tab2
----
3497
4847
5672

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 6 > 59
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + - 18 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-5502
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-5502
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query I rowsort
SELECT - - col0 * + + 34 FROM tab2 AS cor0
----
1564
2176
2550

onlyif mysql # aggregate syntax: 
query II rowsort label-5504
SELECT ( + 3 ) AS col0, - MIN( + + col0 ) FROM tab0 cor0
----
3
-15

skipif mysql # not compatible
query II rowsort label-5504
SELECT ( + 3 ) AS col0, - MIN ( + + col0 ) FROM tab0 cor0
----
3
-15

query I rowsort
SELECT DISTINCT + col1 * + ( 31 ) FROM tab0 AS cor0
----
2511
31
651

onlyif mysql # aggregate syntax: 
query I rowsort label-5506
SELECT ALL SUM( - ( col2 ) ) AS col1 FROM tab1 cor0
----
-223

skipif mysql # not compatible
query I rowsort label-5506
SELECT ALL SUM ( - ( col2 ) ) AS col1 FROM tab1 cor0
----
-223

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5507
SELECT DISTINCT - 58 * - CAST( - - COUNT( * ) AS SIGNED ) - + 49 FROM tab0 AS cor0 WHERE NULL IS NULL
----
125

skipif mysql # not compatible
query I rowsort label-5507
SELECT DISTINCT - 58 * - CAST ( - - COUNT ( * ) AS INTEGER ) - + 49 FROM tab0 AS cor0 WHERE NULL IS NULL
----
125

query I rowsort
SELECT - - col1 + + - col0 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) = NULL
----

query I rowsort
SELECT 30 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
30
30
30

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5511
SELECT ALL - ( + 77 ) * CAST( NULL AS SIGNED ) + + - CAST( NULL AS DECIMAL ) AS col2 FROM tab1 WHERE NULL > NULL
----

skipif mysql # not compatible
query I rowsort label-5511
SELECT ALL - ( + 77 ) * CAST ( NULL AS INTEGER ) + + - CAST ( NULL AS REAL ) AS col2 FROM tab1 WHERE NULL > NULL
----

query II rowsort
SELECT - 33, - col2 * col1 + col1 AS col2 FROM tab1
----
-33
-1330
-33
-290
-33
-3149

query I rowsort
SELECT DISTINCT 45 * - - col1 AS col0 FROM tab1
----
2115
225
630

query I rowsort
SELECT ( - - col2 ) * - col1 AS col1 FROM tab1
----
-1344
-295
-3196

onlyif mysql # aggregate syntax: 
query I rowsort label-5515
SELECT 12 * + COUNT( * ) * 53 col0 FROM tab2 WHERE NOT col0 + - - 58 + - 67 NOT BETWEEN ( NULL ) AND ( NULL )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5515
SELECT 12 * + COUNT ( * ) * 53 col0 FROM tab2 WHERE NOT col0 + - - 58 + - 67 NOT BETWEEN ( NULL ) AND ( NULL )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5516
SELECT 23 DIV + col0 AS col2 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5516
SELECT 23 / + col0 AS col2 FROM tab0
----
0
0
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5517
SELECT ALL + 45 * ( - CAST( + 37 AS SIGNED ) ) DIV + col2 AS col2 FROM tab1 AS cor0
----
-17
-24
-28

skipif mysql # not compatible
query I rowsort label-5517
SELECT ALL + 45 * ( - CAST ( + 37 AS INTEGER ) ) / + col2 AS col2 FROM tab1 AS cor0
----
-17
-24
-28

query I rowsort
SELECT ALL + - ( + ( - - col1 ) ) * col0 FROM tab0 AS cor0
----
-1215
-1827
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-5519
SELECT - col1 DIV + + 7 + - + 46 FROM tab1 AS cor0
----
-46
-48
-52

skipif mysql # not compatible
query I rowsort label-5519
SELECT - col1 / + + 7 + - + 46 FROM tab1 AS cor0
----
-46
-48
-52

query I rowsort
SELECT + 56 AS col2 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa

query I rowsort
SELECT ALL col1 AS col1 FROM tab1 WHERE + col0 * + - col2 IS NULL
----

query I rowsort
SELECT ALL 64 + + col1 AS col0 FROM tab0
----
145
65
85

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5523
SELECT + COUNT( * ), CAST( NULL AS DECIMAL ) AS col1 FROM tab2
----
3
NULL

skipif mysql # not compatible
query II rowsort label-5523
SELECT + COUNT ( * ), CAST ( NULL AS REAL ) AS col1 FROM tab2
----
3
NULL

query I rowsort
SELECT DISTINCT col0 + - col0 + - - 21 - + - 21 + + col2 * - + col0 - - col1 FROM tab1
----
-4840
-4968
-6099

query I rowsort
SELECT ALL col2 + - col1 + + col2 AS col0 FROM tab1 cor0
----
113
178
89

onlyif mysql # aggregate syntax: 
query II rowsort label-5526
SELECT ALL 11 col0, COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT 54 / + col0 * + - ( - 79 ) IS NOT NULL
----
11
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5526
SELECT ALL 11 col0, COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT 54 / + col0 * + - ( - 79 ) IS NOT NULL
----
11
0

query I rowsort
SELECT - col2 FROM tab0 cor0 WHERE 79 BETWEEN + 98 AND ( - 66 ) / - - col1 + + + col1 + - - ( - col0 )
----

query I rowsort
SELECT 38 AS col0 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN col0 AND - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5529
SELECT col0 DIV 71 FROM tab0 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-5529
SELECT col0 / 71 FROM tab0 AS cor0
----
0
1
1

query I rowsort
SELECT ALL - 59 AS col2 FROM tab2 cor0
----
-59
-59
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-5531
SELECT DISTINCT + + SUM( ALL - 24 ) * - ( + 69 ) AS col2 FROM tab2 AS cor0
----
4968

skipif mysql # not compatible
query I rowsort label-5531
SELECT DISTINCT + + SUM ( ALL - 24 ) * - ( + 69 ) AS col2 FROM tab2 AS cor0
----
4968

query I rowsort
SELECT ALL col0 AS col0 FROM tab1 AS cor0 WHERE col1 IS NULL AND NOT NULL IS NOT NULL
----

query I rowsort
SELECT 74 + - + 18 FROM tab0 AS cor0
----
56
56
56

query I rowsort
SELECT col1 + 94 * + col1 FROM tab1
----
1330
4465
475

query I rowsort
SELECT ALL 64 * - + 77 + - + col1 AS col0 FROM tab2 WHERE NULL IS NULL
----
-4979
-4995
-5005

query I rowsort
SELECT ( + + col2 ) AS col2 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5537
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5537
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-3

query I rowsort
SELECT ALL + + col1 AS col2 FROM tab0 AS cor0 WHERE 25 IS NULL
----

query II rowsort
SELECT + col0 AS col1, 64 + + col0 FROM tab2
----
46
110
64
128
75
139

onlyif mysql # aggregate syntax: 
query I rowsort label-5540
SELECT ALL - MAX( + - 33 ) FROM tab2
----
33

skipif mysql # not compatible
query I rowsort label-5540
SELECT ALL - MAX ( + - 33 ) FROM tab2
----
33

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 77 / 92 > + - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5542
SELECT DISTINCT COUNT( * ) * - 73 FROM tab2 AS cor0
----
-219

skipif mysql # not compatible
query I rowsort label-5542
SELECT DISTINCT COUNT ( * ) * - 73 FROM tab2 AS cor0
----
-219

query II rowsort
SELECT DISTINCT col0, + col2 AS col0 FROM tab1 AS cor0
----
51
96
85
59
91
68

query I rowsort
SELECT 78 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 = 29 + - 71 * - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5546
SELECT MIN( DISTINCT - CAST( + - 44 AS SIGNED ) ) AS col0 FROM tab0
----
44

skipif mysql # not compatible
query I rowsort label-5546
SELECT MIN ( DISTINCT - CAST ( + - 44 AS INTEGER ) ) AS col0 FROM tab0
----
44

query III rowsort
SELECT * FROM tab1 WHERE NOT + 77 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5548
SELECT * FROM tab0 WHERE NOT NULL < - CAST( NULL AS SIGNED ) * - col0 * - col1 + - col2 - + - col2
----

skipif mysql # not compatible
query III rowsort label-5548
SELECT * FROM tab0 WHERE NOT NULL < - CAST ( NULL AS INTEGER ) * - col0 * - col1 + - col2 - + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5549
SELECT + 82 * - - MAX( col2 ) AS col0 FROM tab0 AS cor0
----
8118

skipif mysql # not compatible
query I rowsort label-5549
SELECT + 82 * - - MAX ( col2 ) AS col0 FROM tab0 AS cor0
----
8118

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 * - + col1 IS NULL
----

query I rowsort
SELECT ALL + 9 AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b

onlyif mysql # aggregate syntax: 
query I rowsort label-5552
SELECT MIN( DISTINCT + 38 ) + + 18 FROM tab1, tab2 cor0
----
56

skipif mysql # not compatible
query I rowsort label-5552
SELECT MIN ( DISTINCT + 38 ) + + 18 FROM tab1, tab2 cor0
----
56

query I rowsort
SELECT + 34 AS col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039

query I rowsort
SELECT - 3 + - - 62 * - + ( + col1 ) FROM tab0 AS cor0
----
-1305
-5025
-65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + - col2 col0 FROM tab2 AS cor0
----
-104
-133
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5556
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col0, COUNT( * ) col2 FROM tab0 AS cor0
----
NULL
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5556
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col0, COUNT ( * ) col2 FROM tab0 AS cor0
----
NULL
3

query I rowsort
SELECT ALL + col0 - + col1 + - col2 FROM tab1 AS cor0
----
-24
-59
21

onlyif mysql # aggregate syntax: 
query I rowsort label-5558
SELECT ALL - COUNT( ALL - - col2 ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5558
SELECT ALL - COUNT ( ALL - - col2 ) AS col0 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT ALL - col0 AS col2 FROM tab2 AS cor0 WHERE NOT - 54 IS NOT NULL
----

query II rowsort
SELECT DISTINCT col1, 55 AS col0 FROM tab1
----
14
55
47
55
5
55

query I rowsort
SELECT + col2 AS col2 FROM tab0 WHERE 80 * + + col0 > + 85
----
10
47
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + - col2 col1 FROM tab0
----
705
870
9603

query I rowsort
SELECT DISTINCT + 97 + - col0 FROM tab0
----
0
10
82

query I rowsort
SELECT - col2 - - col0 * + col0 FROM tab0
----
178
7559
9310

query I rowsort
SELECT - col1 - + 56 AS col0 FROM tab1
----
-103
-61
-70

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT IN ( + 15 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5567
SELECT ALL SUM( DISTINCT + col1 ) - - - 43 FROM tab0
----
60

skipif mysql # not compatible
query I rowsort label-5567
SELECT ALL SUM ( DISTINCT + col1 ) - - - 43 FROM tab0
----
60

query II rowsort
SELECT ALL col1, - col2 AS col0 FROM tab2 cor0
----
51
-23
67
-58
77
-40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5569
SELECT 3 DIV + COUNT( * ) AS col0 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-5569
SELECT 3 / + COUNT ( * ) AS col0 FROM tab2
----
1

query I rowsort
SELECT ALL ( 51 ) FROM tab1 WHERE NOT - - 30 * col0 IS NULL
----
51
51
51

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 >= + - col2 - - - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5572
SELECT ALL MAX( ( + col2 ) ) * + MAX( ALL ( col2 ) ) AS col1 FROM tab1
----
9216

skipif mysql # not compatible
query I rowsort label-5572
SELECT ALL MAX ( ( + col2 ) ) * + MAX ( ALL ( col2 ) ) AS col1 FROM tab1
----
9216

onlyif mysql # aggregate syntax: 
query II rowsort label-5573
SELECT 51 * + 31 AS col1, - COUNT( * ) + + 87 AS col0 FROM tab0
----
1581
84

skipif mysql # not compatible
query II rowsort label-5573
SELECT 51 * + 31 AS col1, - COUNT ( * ) + + 87 AS col0 FROM tab0
----
1581
84

onlyif mysql # aggregate syntax: 
query I rowsort label-5574
SELECT + 9 + + + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
18

skipif mysql # not compatible
query I rowsort label-5574
SELECT + 9 + + + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 90 col1 FROM tab2 cor0
----
-90

onlyif mysql # DIV for integer division: 
query II rowsort label-5576
SELECT ALL - col0, + col2 DIV + 34 AS col1 FROM tab0
----
-15
1
-87
0
-97
2

skipif mysql # not compatible
query II rowsort label-5576
SELECT ALL - col0, + col2 / + 34 AS col1 FROM tab0
----
-15
1
-87
0
-97
2

query II rowsort
SELECT ALL col0 AS col2, - 88 AS col0 FROM tab2
----
46
-88
64
-88
75
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-5578
SELECT COUNT( + 84 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5578
SELECT COUNT ( + 84 ) FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5579
SELECT DISTINCT + col0 + - CAST( NULL AS SIGNED ) + ( 15 ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5579
SELECT DISTINCT + col0 + - CAST ( NULL AS INTEGER ) + ( 15 ) AS col2 FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT + 50 * + col1 / - 19 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5581
SELECT ALL 86 + COUNT( * ) AS col1 FROM tab0
----
89

skipif mysql # not compatible
query I rowsort label-5581
SELECT ALL 86 + COUNT ( * ) AS col1 FROM tab0
----
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 59, + 51 col1 FROM tab0 AS cor0
----
59
51
59
51
59
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5583
SELECT ALL + ( CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5583
SELECT ALL + ( CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5584
SELECT - - COUNT( * ) * - - MIN( DISTINCT + - 79 ) AS col2 FROM tab1 AS cor0
----
-237

skipif mysql # not compatible
query I rowsort label-5584
SELECT - - COUNT ( * ) * - - MIN ( DISTINCT + - 79 ) AS col2 FROM tab1 AS cor0
----
-237

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5585
SELECT ( + 41 ) AS col1, 2 * - CAST( NULL AS DECIMAL ) - - + col2 - 15 AS col2 FROM tab2 WHERE NULL IS NULL
----
41
NULL
41
NULL
41
NULL

skipif mysql # not compatible
query II rowsort label-5585
SELECT ( + 41 ) AS col1, 2 * - CAST ( NULL AS REAL ) - - + col2 - 15 AS col2 FROM tab2 WHERE NULL IS NULL
----
41
NULL
41
NULL
41
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE - - 81 <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 66 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5588
SELECT ALL COUNT( ALL - - col2 ) FROM tab2 AS cor0 WHERE ( + 47 + + 70 / ( col0 ) + col1 + + - col1 + + col1 + 71 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-5588
SELECT ALL COUNT ( ALL - - col2 ) FROM tab2 AS cor0 WHERE ( + 47 + + 70 / ( col0 ) + col1 + + - col1 + + col1 + 71 ) IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5589
SELECT ALL + MAX( DISTINCT - - ( 79 ) ) + - - MIN( ALL + - 62 ) FROM tab0 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-5589
SELECT ALL + MAX ( DISTINCT - - ( 79 ) ) + - - MIN ( ALL + - 62 ) FROM tab0 AS cor0
----
17

query I rowsort
SELECT DISTINCT + 88 * + 46 FROM tab0 AS cor0
----
4048

query I rowsort
SELECT + + 8 + - - col2 * - 32 AS col1 FROM tab2 AS cor0
----
-1272
-1848
-728

query I rowsort
SELECT 88 + col2 AS col2 FROM tab1
----
147
156
184

onlyif mysql # aggregate syntax: 
query I rowsort label-5593
SELECT ALL + COUNT( * ) * - 62 AS col0 FROM tab2
----
-186

skipif mysql # not compatible
query I rowsort label-5593
SELECT ALL + COUNT ( * ) * - 62 AS col0 FROM tab2
----
-186

query I rowsort
SELECT ALL - 96 + col0 FROM tab0
----
-81
-9
1

query II rowsort
SELECT DISTINCT - col2 * col1 * - col0, col2 + + col0 AS col2 FROM tab1
----
25075
144
290836
159
68544
147

onlyif mysql # aggregate syntax: 
query I rowsort label-5596
SELECT ALL ( + COUNT( * ) ) * + 57 AS col0 FROM tab0
----
171

skipif mysql # not compatible
query I rowsort label-5596
SELECT ALL ( + COUNT ( * ) ) * + 57 AS col0 FROM tab0
----
171

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 26 col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
26

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab0 AS cor0 WHERE + 31 * - - col1 * - col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5599
SELECT DISTINCT + 63 * CAST( col0 AS SIGNED ) + + CAST( - 0 AS SIGNED ) FROM tab1 AS cor0
----
3213
5355
5733

skipif mysql # not compatible
query I rowsort label-5599
SELECT DISTINCT + 63 * CAST ( col0 AS INTEGER ) + + CAST ( - 0 AS INTEGER ) FROM tab1 AS cor0
----
3213
5355
5733

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5600
SELECT ALL CAST( NULL AS SIGNED ) * + 95 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5600
SELECT ALL CAST ( NULL AS INTEGER ) * + 95 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col0 + - col1 FROM tab1 cor0 WHERE NULL = ( NULL )
----

query I rowsort
SELECT - 62 * ( - 86 ) FROM tab2
----
5332
5332
5332

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - 45 * - 77 <= - 0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - ( - 71 ) FROM tab2 AS cor0 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT ALL + 88 FROM tab0 AS cor0 WHERE col1 NOT BETWEEN col2 - col2 AND NULL
----

query I rowsort
SELECT - + 3 + col2 AS col1 FROM tab2 AS cor0
----
20
37
55

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col1 + - 50 + + 76 >= col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 + + + col1 col0 FROM tab1 AS cor0
----
10
28
94

onlyif mysql # DIV for integer division: 
query II rowsort label-5609
SELECT ALL + col2 AS col2, - 88 DIV + col1 AS col1 FROM tab2 AS cor0
----
23
-1
40
-1
58
-1

skipif mysql # not compatible
query II rowsort label-5609
SELECT ALL + col2 AS col2, - 88 / + col1 AS col1 FROM tab2 AS cor0
----
23
-1
40
-1
58
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5610
SELECT DISTINCT COUNT( - + 69 ) + - 33 AS col0 FROM tab0
----
-30

skipif mysql # not compatible
query I rowsort label-5610
SELECT DISTINCT COUNT ( - + 69 ) + - 33 AS col0 FROM tab0
----
-30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 + + + col2 col1, + 36 FROM tab0
----
0
36
0
36
0
36

query I rowsort
SELECT ALL - col2 * - col0 * col0 AS col2 FROM tab1
----
249696
426275
563108

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 col0 FROM tab1 WHERE - 43 * - - 6 + col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + - 30 ) col1 FROM tab0
----
-30
-30
-30

query II rowsort
SELECT DISTINCT + 13 + - 71, col2 * + 54 AS col1 FROM tab0 AS cor0
----
-58
2538
-58
5346
-58
540

query I rowsort
SELECT - 28 * col1 AS col1 FROM tab0 AS cor0
----
-2268
-28
-588

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( ( col2 IS NULL ) )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5618
SELECT DISTINCT ( + col0 ) AS col1, col2 DIV 79 * + - col1 FROM tab0 AS cor0
----
15
0
87
0
97
-1

skipif mysql # not compatible
query II rowsort label-5618
SELECT DISTINCT ( + col0 ) AS col1, col2 / 79 * + - col1 FROM tab0 AS cor0
----
15
0
87
0
97
-1

query I rowsort
SELECT DISTINCT 96 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
96

query I rowsort
SELECT DISTINCT 65 - + - col0 * - col0 * + col2 FROM tab1 AS cor0
----
-249631
-426210
-563043

onlyif mysql # aggregate syntax: 
query I rowsort label-5621
SELECT + SUM( 42 ) FROM tab2 cor0
----
126

skipif mysql # not compatible
query I rowsort label-5621
SELECT + SUM ( 42 ) FROM tab2 cor0
----
126

query I rowsort
SELECT DISTINCT - - col1 + - 28 AS col1 FROM tab1 AS cor0
----
-14
-23
19

query I rowsort
SELECT ALL + col1 FROM tab2 AS cor0 WHERE NOT 28 + + - col0 <> 20
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5624
SELECT SUM( 95 ) AS col1 FROM tab0 AS cor0
----
285

skipif mysql # not compatible
query I rowsort label-5624
SELECT SUM ( 95 ) AS col1 FROM tab0 AS cor0
----
285

query I rowsort
SELECT - col0 AS col0 FROM tab0 AS cor0 WHERE NULL < col0 * ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5626
SELECT DISTINCT - MIN( DISTINCT col0 ) AS col0 FROM tab0 WHERE NOT - 93 * col2 - - + 95 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5626
SELECT DISTINCT - MIN ( DISTINCT col0 ) AS col0 FROM tab0 WHERE NOT - 93 * col2 - - + 95 IS NOT NULL
----
NULL

query IIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0 WHERE ( NULL ) <> 95
----

query I rowsort
SELECT DISTINCT - 67 FROM tab1 WHERE - col1 * 13 + - 65 IS NOT NULL
----
-67

query II rowsort
SELECT + col0 - + col2, col0 * - col1 AS col0 FROM tab2
----
17
-5025
23
-2346
24
-4928

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5630
SELECT - CAST( NULL AS SIGNED ) AS col2, + 99 AS col0 FROM tab2, tab0 AS cor0
----
18 values hashing to 9895c640f92b1fc16a1761eeb6cd5b8a

skipif mysql # not compatible
query II rowsort label-5630
SELECT - CAST ( NULL AS INTEGER ) AS col2, + 99 AS col0 FROM tab2, tab0 AS cor0
----
18 values hashing to 9895c640f92b1fc16a1761eeb6cd5b8a

onlyif mysql # aggregate syntax: 
query I rowsort label-5631
SELECT + MIN( DISTINCT + 74 ) FROM tab1
----
74

skipif mysql # not compatible
query I rowsort label-5631
SELECT + MIN ( DISTINCT + 74 ) FROM tab1
----
74

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL < - 57
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5633
SELECT + MIN( ALL ( + col2 ) ) FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-5633
SELECT + MIN ( ALL ( + col2 ) ) FROM tab0 AS cor0
----
10

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - - ( col1 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5635
SELECT + 54 * MIN( - ( col1 ) ) * - + 78 AS col2 FROM tab1
----
197964

skipif mysql # not compatible
query I rowsort label-5635
SELECT + 54 * MIN ( - ( col1 ) ) * - + 78 AS col2 FROM tab1
----
197964

query I rowsort
SELECT DISTINCT col1 / + 10 * + + col0 * + + col1 * - - ( + - col0 ) FROM tab0 WHERE NOT NULL > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * col2 col0 FROM tab0 AS cor0
----
-705
-870
-9603

query I rowsort
SELECT DISTINCT + - col2 AS col0 FROM tab2 AS cor0 WHERE ( + + col2 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5639
SELECT SUM( + col2 ) FROM tab2 cor0
----
121

skipif mysql # not compatible
query I rowsort label-5639
SELECT SUM ( + col2 ) FROM tab2 cor0
----
121

query I rowsort
SELECT DISTINCT + 62 + - + col2 FROM tab2 cor0
----
22
39
4

onlyif mysql # aggregate syntax: 
query I rowsort label-5641
SELECT ( + - MAX( 58 ) ) AS col0 FROM tab1 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-5641
SELECT ( + - MAX ( 58 ) ) AS col0 FROM tab1 AS cor0
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5642
SELECT 43, CAST( NULL AS SIGNED ) + 99 col1 FROM tab0
----
43
NULL
43
NULL
43
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5642
SELECT 43, CAST ( NULL AS INTEGER ) + 99 col1 FROM tab0
----
43
NULL
43
NULL
43
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5643
SELECT - MIN( - 78 ) FROM tab2
----
78

skipif mysql # not compatible
query I rowsort label-5643
SELECT - MIN ( - 78 ) FROM tab2
----
78

onlyif mysql # aggregate syntax: 
query II rowsort label-5644
SELECT - COUNT( * ) AS col2, + 66 FROM tab0
----
-3
66

skipif mysql # not compatible
query II rowsort label-5644
SELECT - COUNT ( * ) AS col2, + 66 FROM tab0
----
-3
66

query I rowsort
SELECT - 44 * - + ( + 82 ) FROM tab2
----
3608
3608
3608

query I rowsort
SELECT DISTINCT - col1 + - + col0 AS col1 FROM tab1
----
-138
-65
-90

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col1 + + 65 + - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5648
SELECT ALL COUNT( * ) + 89 * + ( + ( - + 31 ) ) FROM tab2
----
-2756

skipif mysql # not compatible
query I rowsort label-5648
SELECT ALL COUNT ( * ) + 89 * + ( + ( - + 31 ) ) FROM tab2
----
-2756

query II rowsort
SELECT ALL - 41 + + col2, col0 FROM tab1 AS cor0
----
18
85
27
91
55
51

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5650
SELECT * FROM tab0 AS cor0 WHERE + col2 - - col2 NOT IN ( col0 + - CAST( NULL AS SIGNED ), 76 )
----

skipif mysql # not compatible
query III rowsort label-5650
SELECT * FROM tab0 AS cor0 WHERE + col2 - - col2 NOT IN ( col0 + - CAST ( NULL AS INTEGER ), 76 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5651
SELECT + CAST( NULL AS SIGNED ) * - 20 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5651
SELECT + CAST ( NULL AS INTEGER ) * - 20 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - - 40 AS col1 FROM tab2 AS cor0 WHERE NOT 15 BETWEEN ( 8 ) AND col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5653
SELECT CAST( + col1 AS SIGNED ) * ( col0 ) col2 FROM tab1 AS cor0
----
425
4277
714

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5653
SELECT CAST ( + col1 AS INTEGER ) * ( col0 ) col2 FROM tab1 AS cor0
----
425
4277
714

query II rowsort
SELECT + + col2, 82 * - col1 * + + 71 * + - col1 FROM tab0 AS cor0
----
10
2567502
47
38198142
99
5822

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 - - col2, 24 col0 FROM tab1
----
0
24
0
24
0
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5656
SELECT DISTINCT - - COUNT( * ) DIV 8 FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN - col2 * - ( - col0 ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-5656
SELECT DISTINCT - - COUNT ( * ) / 8 FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN - col2 * - ( - col0 ) AND NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5657
SELECT - 67 + + CAST( NULL AS SIGNED ) / - + col1 * 34 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5657
SELECT - 67 + + CAST ( NULL AS INTEGER ) / - + col1 * 34 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5658
SELECT - - COUNT( ALL - - col0 ) + - + COUNT( * ) AS col1 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-5658
SELECT - - COUNT ( ALL - - col0 ) + - + COUNT ( * ) AS col1 FROM tab2 cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL BETWEEN + col0 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 col2 FROM tab1 cor0 WHERE NULL NOT BETWEEN 31 AND - + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5661
SELECT ALL - col0 - + ( + + CAST( - 57 AS SIGNED ) ) / 67 + ( - CAST( NULL AS SIGNED ) ) * - 89 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5661
SELECT ALL - col0 - + ( + + CAST ( - 57 AS INTEGER ) ) / 67 + ( - CAST ( NULL AS INTEGER ) ) * - 89 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5662
SELECT MAX( ALL + 51 ) AS col2 FROM tab0 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-5662
SELECT MAX ( ALL + 51 ) AS col2 FROM tab0 AS cor0
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5663
SELECT * FROM tab2 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) + + col1 * + - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5663
SELECT * FROM tab2 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) + + col1 * + - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5664
SELECT DISTINCT - SUM( ALL - + 1 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5664
SELECT DISTINCT - SUM ( ALL - + 1 ) FROM tab1
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + 84 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 88 * - - col1 col1 FROM tab2
----
4488
5896
6776

query I rowsort
SELECT col0 * + - col0 + + + 54 FROM tab0 WHERE NOT + col2 IS NULL
----
-171
-7515
-9355

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col2, + col1 AS col0 FROM tab0
----
1
1
21
21
81
81

query I rowsort
SELECT col1 * - 26 * + - col1 * - col1 * + 3 AS col2 FROM tab0
----
-41452398
-722358
-78

query II rowsort
SELECT DISTINCT 41, - col2 * + 86 + - col0 AS col0 FROM tab0
----
41
-4057
41
-8611
41
-947

query III rowsort
SELECT * FROM tab0 WHERE NOT + 30 > - 60 / - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5672
SELECT DISTINCT + MIN( ALL col0 ) AS col2 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-5672
SELECT DISTINCT + MIN ( ALL col0 ) AS col2 FROM tab2
----
46

query II rowsort
SELECT col1, 80 AS col0 FROM tab0 AS cor0
----
1
80
21
80
81
80

query II rowsort
SELECT col0, 70 FROM tab0 AS cor0
----
15
70
87
70
97
70

query I rowsort
SELECT DISTINCT col0 FROM tab2 AS cor0 WHERE col1 + + ( + ( - + col1 ) ) - + - col1 IS NULL
----

query I rowsort
SELECT DISTINCT + 8 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
8

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5677
SELECT ALL + CAST( - col1 AS SIGNED ) * - ( + - 93 ) - + col2 DIV - col0 + + col0 AS col2 FROM tab1 cor0
----
-1250
-380
-4280

skipif mysql # not compatible
query I rowsort label-5677
SELECT ALL + CAST ( - col1 AS INTEGER ) * - ( + - 93 ) - + col2 / - col0 + + col0 AS col2 FROM tab1 cor0
----
-1250
-380
-4280

onlyif mysql # aggregate syntax: 
query II rowsort label-5678
SELECT - COUNT( * ) + 98, 87 col0 FROM tab1 AS cor0
----
95
87

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5678
SELECT - COUNT ( * ) + 98, 87 col0 FROM tab1 AS cor0
----
95
87

query I rowsort
SELECT - + ( - col2 ) + - - col2 FROM tab2 AS cor0
----
116
46
80

onlyif mysql # DIV for integer division: 
query I rowsort label-5680
SELECT DISTINCT - - col1 DIV - 36 AS col2 FROM tab0 AS cor0
----
-2
0

skipif mysql # not compatible
query I rowsort label-5680
SELECT DISTINCT - - col1 / - 36 AS col2 FROM tab0 AS cor0
----
-2
0

query I rowsort
SELECT + col2 + - 58 * col0 FROM tab1 cor0
----
-2862
-4871
-5210

query I rowsort
SELECT DISTINCT col2 * - col2 * + col1 * + col2 AS col2 FROM tab0 AS cor0 WHERE NOT 93 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - + 86 col0 FROM tab1 AS cor0
----
-1204
-4042
-430

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + 62 + - ( col1 ) col2 FROM tab2 AS cor0
----
3111
4087
4697

query I rowsort
SELECT ALL + col0 AS col1 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5686
SELECT ALL col0 DIV + col1 + - col0 * col1 FROM tab0 AS cor0
----
-1215
-1823
0

skipif mysql # not compatible
query I rowsort label-5686
SELECT ALL col0 / + col1 + - col0 * col1 FROM tab0 AS cor0
----
-1215
-1823
0

query I rowsort
SELECT + + col0 AS col1 FROM tab2 cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5688
SELECT DISTINCT MAX( - 78 ) col2 FROM tab2
----
-78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5688
SELECT DISTINCT MAX ( - 78 ) col2 FROM tab2
----
-78

query I rowsort
SELECT ALL - 81 * + - col0 + - - ( 26 ) AS col2 FROM tab2
----
3752
5210
6101

query I rowsort
SELECT ALL - + 5 - - col1 + - - 31 FROM tab1 AS cor0
----
31
40
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5691
SELECT + - ( + - CAST( NULL AS SIGNED ) ) - - 23 / + 2 + - - 48 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5691
SELECT + - ( + - CAST ( NULL AS INTEGER ) ) - - 23 / + 2 + - - 48 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5692
SELECT DISTINCT + col1 DIV - 41 AS col2 FROM tab0 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-5692
SELECT DISTINCT + col1 / - 41 AS col2 FROM tab0 AS cor0
----
-1
0

query II rowsort
SELECT DISTINCT - 36 * + col0 AS col1, 87 * + col0 AS col0 FROM tab0
----
-3132
7569
-3492
8439
-540
1305

query II rowsort
SELECT col0, col2 + + + col1 - - col1 FROM tab0
----
15
209
87
52
97
101

query II rowsort
SELECT + 26 AS col1, col2 AS col2 FROM tab0 AS cor0
----
26
10
26
47
26
99

onlyif mysql # DIV for integer division: 
query I rowsort label-5696
SELECT + ( - 77 ) DIV + 53 FROM tab1 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5696
SELECT + ( - 77 ) / + 53 FROM tab1 cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5697
SELECT DISTINCT - ( - + SUM( - - col0 ) ) AS col0 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-5697
SELECT DISTINCT - ( - + SUM ( - - col0 ) ) AS col0 FROM tab1 AS cor0
----
227

onlyif mysql # aggregate syntax: 
query I rowsort label-5698
SELECT ALL + SUM( + 61 ) FROM tab1 AS cor0
----
183

skipif mysql # not compatible
query I rowsort label-5698
SELECT ALL + SUM ( + 61 ) FROM tab1 AS cor0
----
183

query I rowsort
SELECT + col2 + - + 75 + col0 * col0 FROM tab2 WHERE NOT NULL > ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5700
SELECT DISTINCT - + MIN( - col2 ) + + COUNT( * ) AS col1 FROM tab2 WHERE NOT + - col0 * - col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5700
SELECT DISTINCT - + MIN ( - col2 ) + + COUNT ( * ) AS col1 FROM tab2 WHERE NOT + - col0 * - col2 IS NOT NULL
----
NULL

query I rowsort
SELECT 65 * - - 33 * + - ( + + col0 ) AS col1 FROM tab1
----
-109395
-182325
-195195

onlyif mysql # DIV for integer division: 
query I rowsort label-5702
SELECT - col2 DIV + 34 FROM tab0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-5702
SELECT - col2 / + 34 FROM tab0
----
-1
-2
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 26 >= - - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5704
SELECT COUNT( DISTINCT + - CAST( - + col0 AS SIGNED ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5704
SELECT COUNT ( DISTINCT + - CAST ( - + col0 AS INTEGER ) ) FROM tab0
----
3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col1 <> - ( + col1 )
----

query I rowsort
SELECT ALL + 51 * + - 97 FROM tab0 AS cor0
----
-4947
-4947
-4947

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5707
SELECT - 76 + - CAST( NULL AS SIGNED ) FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5707
SELECT - 76 + - CAST ( NULL AS INTEGER ) FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-5708
SELECT 39 * COUNT( - col2 ) + - + COUNT( * ) + 60 FROM tab2 AS cor0
----
174

skipif mysql # not compatible
query I rowsort label-5708
SELECT 39 * COUNT ( - col2 ) + - + COUNT ( * ) + 60 FROM tab2 AS cor0
----
174

query I rowsort
SELECT ALL + col1 / - col1 + + + col1 * + ( + ( col1 ) ) FROM tab1 AS cor0 WHERE NOT + 32 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5710
SELECT DISTINCT + + SUM( - col0 ) AS col2 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-5710
SELECT DISTINCT + + SUM ( - col0 ) AS col2 FROM tab1 AS cor0
----
-227

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col2 + - 6 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5712
SELECT ALL - - MIN( + 44 ) FROM tab0 cor0
----
44

skipif mysql # not compatible
query I rowsort label-5712
SELECT ALL - - MIN ( + 44 ) FROM tab0 cor0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-5713
SELECT + + MIN( DISTINCT - col1 ) FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-5713
SELECT + + MIN ( DISTINCT - col1 ) FROM tab0 AS cor0
----
-81

query I rowsort
SELECT + col1 + + + 88 FROM tab1 AS cor0
----
102
135
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5715
SELECT - - CAST( - COUNT( * ) AS SIGNED ) DIV - 73 + - SUM( DISTINCT + + col1 ) AS col0 FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-5715
SELECT - - CAST ( - COUNT ( * ) AS INTEGER ) / - 73 + - SUM ( DISTINCT + + col1 ) AS col0 FROM tab0 AS cor0
----
-103

query I rowsort
SELECT col1 + + 48 FROM tab1
----
53
62
95

query I rowsort
SELECT ALL - col2 * col2 + + + col2 AS col2 FROM tab0
----
-2162
-90
-9702

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5718
SELECT ALL COUNT( * ) DIV - + 23 + COUNT( * ) * - 92 AS col2 FROM tab2
----
-276

skipif mysql # not compatible
query I rowsort label-5718
SELECT ALL COUNT ( * ) / - + 23 + COUNT ( * ) * - 92 AS col2 FROM tab2
----
-276

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5719
SELECT ALL + col2 DIV - - col0 AS col0 FROM tab1 WHERE 55 * ( + CAST( - - 66 AS SIGNED ) ) IS NOT NULL
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5719
SELECT ALL + col2 / - - col0 AS col0 FROM tab1 WHERE 55 * ( + CAST ( - - 66 AS INTEGER ) ) IS NOT NULL
----
0
0
1

query I rowsort
SELECT ALL - + col2 * 55 FROM tab2 AS cor0
----
-1265
-2200
-3190

query I rowsort
SELECT DISTINCT + 37 + - 31 AS col2 FROM tab0 WHERE NOT NULL = col0
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5722
SELECT ALL + col2, + 44 DIV - - col2 FROM tab1 cor0
----
59
0
68
0
96
0

skipif mysql # not compatible
query II rowsort label-5722
SELECT ALL + col2, + 44 / - - col2 FROM tab1 cor0
----
59
0
68
0
96
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5723
SELECT - MAX( - 8 ) FROM tab1 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-5723
SELECT - MAX ( - 8 ) FROM tab1 AS cor0
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5724
SELECT - ( - - CAST( + + COUNT( * ) AS SIGNED ) ) * - 64 FROM tab1 cor0
----
192

skipif mysql # not compatible
query I rowsort label-5724
SELECT - ( - - CAST ( + + COUNT ( * ) AS INTEGER ) ) * - 64 FROM tab1 cor0
----
192

onlyif mysql # DIV for integer division: 
query I rowsort label-5725
SELECT 2 DIV col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5725
SELECT 2 / col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + col2 AS col2 FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT - col0 * + 4 FROM tab1 AS cor0
----
-204
-340
-364

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5728
SELECT + CAST( NULL AS SIGNED ) * + col0 * + 11 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5728
SELECT + CAST ( NULL AS INTEGER ) * + col0 * + 11 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 39 col2 FROM tab1 AS cor0
----
-39
-39
-39

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5730
SELECT ALL - col0, - CAST( - col1 AS SIGNED ) AS col0, + + 81 * - col1 + + col1 + col0 * - + col2 AS col2 FROM tab2 AS cor0
----
9 values hashing to 45b4e929720d3c3c270b7db76c280f50

skipif mysql # not compatible
query III rowsort label-5730
SELECT ALL - col0, - CAST ( - col1 AS INTEGER ) AS col0, + + 81 * - col1 + + col1 + col0 * - + col2 AS col2 FROM tab2 AS cor0
----
9 values hashing to 45b4e929720d3c3c270b7db76c280f50

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5732
SELECT - - SUM( col1 ) FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-5732
SELECT - - SUM ( col1 ) FROM tab1 AS cor0
----
66

query I rowsort
SELECT ( 18 ) FROM tab0 AS cor0
----
18
18
18

query I rowsort
SELECT - col1 FROM tab1 cor0 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT + - col1 FROM tab0 WHERE NOT + + col1 NOT BETWEEN NULL AND - col1
----

query III rowsort
SELECT ALL * FROM tab0 WHERE - + 21 * col1 IS NULL
----

query I rowsort
SELECT DISTINCT 51 AS col1 FROM tab2 WHERE NOT ( col0 / + col1 IS NULL )
----
51

query I rowsort
SELECT col2 FROM tab1 WHERE NOT NULL > + + col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NULL > NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5740
SELECT ALL col0, - col2 * col0 + - - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-5740
SELECT ALL col0, - col2 * col0 + - - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
15
NULL
87
NULL
97
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + ( - 84 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5742
SELECT 69 + - col2 + - + col2 * + - col0 * - CAST( CAST( + 20 AS SIGNED ) AS SIGNED ) FROM tab1 AS cor0 WHERE NOT NULL = NULL
----

skipif mysql # not compatible
query I rowsort label-5742
SELECT 69 + - col2 + - + col2 * + - col0 * - CAST ( CAST ( + 20 AS INTEGER ) AS INTEGER ) FROM tab1 AS cor0 WHERE NOT NULL = NULL
----

query I rowsort
SELECT - - ( - - 11 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00

query I rowsort
SELECT + - ( + 95 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1c7934db0632c123332c43f17b661d6c

onlyif mysql # aggregate syntax: 
query I rowsort label-5745
SELECT ALL + 73 - - + COUNT( * ) AS col1 FROM tab1 cor0 WHERE NULL IS NOT NULL
----
73

skipif mysql # not compatible
query I rowsort label-5745
SELECT ALL + 73 - - + COUNT ( * ) AS col1 FROM tab1 cor0 WHERE NULL IS NOT NULL
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5746
SELECT DISTINCT - 79 + + CAST( - 30 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-109

skipif mysql # not compatible
query I rowsort label-5746
SELECT DISTINCT - 79 + + CAST ( - 30 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-109

query II rowsort
SELECT + 99 + + col1 AS col0, col1 FROM tab1 AS cor0
----
104
5
113
14
146
47

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - ( - 64 ) + - col2 - - 63 IS NULL )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT NULL IN ( - + ( - col0 ), + 72, - - col2, + 66 ) )
----

query I rowsort
SELECT ALL + col1 / - - 57 / - + 64 FROM tab2 AS cor0 WHERE NOT col1 * - col1 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5751
SELECT ALL 79 + - col1 + col2 + - col2 - col1 * + col1 * + - col1 + + 76 * + CAST( NULL AS SIGNED ) + 9 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5751
SELECT ALL 79 + - col1 + col2 + - col2 - col1 * + col1 * + - col1 + + 76 * + CAST ( NULL AS INTEGER ) + 9 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - 89 AS col1 FROM tab1 cor0
----
-89
-89
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5753
SELECT CAST( 75 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
75
75
75

skipif mysql # not compatible
query I rowsort label-5753
SELECT CAST ( 75 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
75
75
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5754
SELECT + ( - - CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5754
SELECT + ( - - CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + + col2 * 79 col0 FROM tab0
----
3760
7920
800

query I rowsort
SELECT DISTINCT col0 + - 26 FROM tab2
----
20
38
49

query I rowsort
SELECT - col2 - 15 FROM tab0
----
-114
-25
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-5758
SELECT ALL 49 + + + COUNT( * ) FROM tab0
----
52

skipif mysql # not compatible
query I rowsort label-5758
SELECT ALL 49 + + + COUNT ( * ) FROM tab0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-5759
SELECT ALL + - MIN( DISTINCT + ( col0 ) ) AS col2 FROM tab2 WHERE NULL IS NULL
----
-46

skipif mysql # not compatible
query I rowsort label-5759
SELECT ALL + - MIN ( DISTINCT + ( col0 ) ) AS col2 FROM tab2 WHERE NULL IS NULL
----
-46

onlyif mysql # DIV for integer division: 
query III rowsort label-5760
SELECT ALL col2 DIV 60 - - + 57, + col0, + + col0 AS col1 FROM tab2
----
9 values hashing to 23bf13655e0aef7769f097ed3de4bdcc

skipif mysql # not compatible
query III rowsort label-5760
SELECT ALL col2 / 60 - - + 57, + col0, + + col0 AS col1 FROM tab2
----
9 values hashing to 23bf13655e0aef7769f097ed3de4bdcc

query I rowsort
SELECT DISTINCT col2 - + 66 AS col0 FROM tab0 AS cor0
----
-19
-56
33

query I rowsort
SELECT + col0 FROM tab0 AS cor0 WHERE NULL >= + col2
----

query II rowsort
SELECT col2 * + col1 AS col2, - 88 + + col1 AS col0 FROM tab2
----
1173
-37
3080
-11
3886
-21

query I rowsort
SELECT + - 39 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 504d14939d58aeb4a14f31c80de5b53e

onlyif mysql # aggregate syntax: 
query I rowsort label-5765
SELECT + ( + COUNT( * ) ) FROM tab0 AS cor0 WHERE NOT - col0 * - - col2 * - col1 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-5765
SELECT + ( + COUNT ( * ) ) FROM tab0 AS cor0 WHERE NOT - col0 * - - col2 * - col1 IS NULL
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5766
SELECT + 65 * - 24 * COUNT( * ) - - + MIN( ALL + + col1 ) + - COUNT( * ) DIV COUNT( DISTINCT 81 ) AS col0 FROM tab1 AS cor0
----
-4678

skipif mysql # not compatible
query I rowsort label-5766
SELECT + 65 * - 24 * COUNT ( * ) - - + MIN ( ALL + + col1 ) + - COUNT ( * ) / COUNT ( DISTINCT 81 ) AS col0 FROM tab1 AS cor0
----
-4678

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NULL = 28
----

query I rowsort
SELECT ALL - col2 * col2 - - 90 * + col2 * col0 AS col0 FROM tab1 AS cor0
----
431424
447869
552296

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 48 <> - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 * - col0 = - ( - - 50 ) * 47
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE NOT 43 + - + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5772
SELECT MAX( + CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5772
SELECT MAX ( + CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

query I rowsort
SELECT - 86 * + 73 * 89 FROM tab2
----
-558742
-558742
-558742

query I rowsort
SELECT + col1 * - col2 * + col0 FROM tab0
----
-18270
-57105
-9603

onlyif mysql # DIV for integer division: 
query I rowsort label-5775
SELECT ALL + col2 DIV 84 * - + col0 FROM tab1
----
-51
0
0

skipif mysql # not compatible
query I rowsort label-5775
SELECT ALL + col2 / 84 * - + col0 FROM tab1
----
-51
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5776
SELECT ALL - col0 + col2 + - 45 DIV + col1 FROM tab0
----
-43
-79
32

skipif mysql # not compatible
query I rowsort label-5776
SELECT ALL - col0 + col2 + - 45 / + col1 FROM tab0
----
-43
-79
32

onlyif mysql # aggregate syntax: 
query I rowsort label-5777
SELECT ALL - - COUNT( + + col0 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5777
SELECT ALL - - COUNT ( + + col0 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT + ( + - col0 ) * + - 73 AS col2 FROM tab0
----
1095
6351
7081

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5779
SELECT ALL + COUNT( * ) / + + CAST( NULL AS SIGNED ) + 42 - AVG ( + + 67 ) col1, + 84 FROM tab0 WHERE + - col1 * - - col1 - + + 88 IN ( - 98 * + col1 * + col0 * col1, 83, CAST( + col2 AS SIGNED ), 35, + col0 )
----
NULL
84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5779
SELECT ALL + COUNT ( * ) / + + CAST ( NULL AS INTEGER ) + 42 - AVG ( + + 67 ) col1, + 84 FROM tab0 WHERE + - col1 * - - col1 - + + 88 IN ( - 98 * + col1 * + col0 * col1, 83, CAST ( + col2 AS INTEGER ), 35, + col0 )
----
NULL
84

query II rowsort
SELECT ALL - col2 AS col2, 89 AS col0 FROM tab1 AS cor0
----
-59
89
-68
89
-96
89

query I rowsort
SELECT DISTINCT col0 - + - col0 AS col2 FROM tab1 AS cor0
----
102
170
182

query I rowsort
SELECT + + 52 - - 85 + col2 * + - col0 * - col1 FROM tab1 AS cor0
----
25212
290973
68681

query II rowsort
SELECT ALL - col1, - 39 AS col2 FROM tab2 cor0
----
-51
-39
-67
-39
-77
-39

query I rowsort
SELECT DISTINCT + + col2 * + col0 * col0 AS col2 FROM tab2 AS cor0
----
163840
326250
48668

query I rowsort
SELECT + 69 * col2 + + col1 FROM tab2
----
1638
2837
4069

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab1 WHERE NOT ( col0 / 80 + ( col1 ) IS NULL )
----
51
85
91

query I rowsort
SELECT + col0 + - + ( col2 ) FROM tab1
----
-45
23
26

onlyif mysql # aggregate syntax: 
query I rowsort label-5788
SELECT - - COUNT( * ) AS col1 FROM tab2 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-5788
SELECT - - COUNT ( * ) AS col1 FROM tab2 WHERE NULL IS NULL
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col2 NOT IN ( - 90, col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + + col0 col0 FROM tab1
----
144
147
159

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 * + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + - col1 * 5 AS col1 FROM tab0 AS cor0
----
-105
-405
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-5793
SELECT DISTINCT + - 44 * - col1 DIV - ( col1 ) FROM tab2 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-5793
SELECT DISTINCT + - 44 * - col1 / - ( col1 ) FROM tab2 AS cor0
----
-44

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5794
SELECT - + col1 AS col2 FROM tab2 AS cor0 WHERE NOT CAST( NULL AS DECIMAL ) IS NOT NULL
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-5794
SELECT - + col1 AS col2 FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS REAL ) IS NOT NULL
----
-51
-67
-77

query II rowsort
SELECT col1, 24 FROM tab2
----
51
24
67
24
77
24

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5796
SELECT DISTINCT col1 AS col1, 31 + + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-5796
SELECT DISTINCT col1 AS col1, 31 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
14
NULL
47
NULL
5
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5797
SELECT DISTINCT + - COUNT( * ) FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-5797
SELECT DISTINCT + - COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5798
SELECT - MIN( + 92 ) AS col0 FROM tab0
----
-92

skipif mysql # not compatible
query I rowsort label-5798
SELECT - MIN ( + 92 ) AS col0 FROM tab0
----
-92

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + ( 23 ) BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( + 49 IS NOT NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5801
SELECT ALL + ( CAST( + col2 AS SIGNED ) ) * + + 32 + + col0 AS col0 FROM tab0 AS cor0
----
1519
3265
407

skipif mysql # not compatible
query I rowsort label-5801
SELECT ALL + ( CAST ( + col2 AS INTEGER ) ) * + + 32 + + col0 AS col0 FROM tab0 AS cor0
----
1519
3265
407

onlyif mysql # aggregate syntax: 
query I rowsort label-5802
SELECT + COUNT( * ) * - - COUNT( * ) * ( - 10 ) * - 10 FROM tab2 AS cor0
----
900

skipif mysql # not compatible
query I rowsort label-5802
SELECT + COUNT ( * ) * - - COUNT ( * ) * ( - 10 ) * - 10 FROM tab2 AS cor0
----
900

query II rowsort
SELECT - 37 AS col2, 62 FROM tab0 AS cor0
----
-37
62
-37
62
-37
62

query I rowsort
SELECT ALL + col0 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT + col1 * - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5806
SELECT DISTINCT COUNT( DISTINCT - + 5 ) AS col0 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5806
SELECT DISTINCT COUNT ( DISTINCT - + 5 ) AS col0 FROM tab1 AS cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5807
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT NULL NOT BETWEEN + CAST( - col1 AS SIGNED ) AND NULL )
----

skipif mysql # not compatible
query III rowsort label-5807
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT NULL NOT BETWEEN + CAST ( - col1 AS INTEGER ) AND NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5808
SELECT DISTINCT + MAX( - col1 ) AS col1 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5808
SELECT DISTINCT + MAX ( - col1 ) AS col1 FROM tab0 AS cor0
----
-1

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL <> + 0
----

query I rowsort
SELECT DISTINCT + col1 + - + col0 * - 11 AS col0 FROM tab1
----
1048
575
940

onlyif mysql # aggregate syntax: 
query I rowsort label-5811
SELECT DISTINCT 49 * + COUNT( * ) col0 FROM tab2
----
147

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5811
SELECT DISTINCT 49 * + COUNT ( * ) col0 FROM tab2
----
147

query I rowsort
SELECT - 50 * - + 39 AS col0 FROM tab1
----
1950
1950
1950

query I rowsort
SELECT + 18 * + - 57 AS col1 FROM tab2 AS cor0
----
-1026
-1026
-1026

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 91 BETWEEN + 4 AND + + col1 * - 66
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col2 - - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5816
SELECT + COUNT( * ) * + + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-5816
SELECT + COUNT ( * ) * + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
NULL

query I rowsort
SELECT + col0 + - + col2 + + - 56 AS col1 FROM tab2
----
-32
-33
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-5818
SELECT COUNT( * ) * - COUNT( * ) + - + 26 - - 11 FROM tab0
----
-24

skipif mysql # not compatible
query I rowsort label-5818
SELECT COUNT ( * ) * - COUNT ( * ) + - + 26 - - 11 FROM tab0
----
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-5819
SELECT - ( + col2 ) + col2 DIV col0 col1 FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5819
SELECT - ( + col2 ) + col2 / col0 col1 FROM tab2
----
-23
-40
-58

query I rowsort
SELECT + col1 + - 76 + - 21 FROM tab1
----
-50
-83
-92

query I rowsort
SELECT col0 + 40 * col2 AS col2 FROM tab0 AS cor0
----
1895
4057
487

query I rowsort
SELECT - + 72 FROM tab1 AS cor0 WHERE + col2 + - col0 IS NOT NULL
----
-72
-72
-72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 - - col1 + - col0 col0 FROM tab1 AS cor0
----
-23
-75
3

query I rowsort
SELECT ALL col2 + + ( - col0 ) AS col1 FROM tab1
----
-23
-26
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5825
SELECT DISTINCT MAX( CAST( col0 AS SIGNED ) ) FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-5825
SELECT DISTINCT MAX ( CAST ( col0 AS INTEGER ) ) FROM tab1
----
91

query I rowsort
SELECT DISTINCT + col0 + + 33 * - + 25 FROM tab0
----
-728
-738
-810

query I rowsort
SELECT col2 - - + col1 * + + col1 + - col2 AS col0 FROM tab2
----
2601
4489
5929

query I rowsort
SELECT col2 * - + col2 AS col1 FROM tab1
----
-3481
-4624
-9216

onlyif mysql # aggregate syntax: 
query II rowsort label-5829
SELECT ALL - - COUNT( * ) AS col1, - SUM( - 89 ) + - ( 71 ) AS col1 FROM tab1 AS cor0
----
3
196

skipif mysql # not compatible
query II rowsort label-5829
SELECT ALL - - COUNT ( * ) AS col1, - SUM ( - 89 ) + - ( 71 ) AS col1 FROM tab1 AS cor0
----
3
196

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5830
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN - - CAST( NULL AS SIGNED ) AND 22
----

skipif mysql # not compatible
query III rowsort label-5830
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN - - CAST ( NULL AS INTEGER ) AND 22
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 = + 21 + - ( 2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + col0 AS col0, + col1 - col1 AS col2 FROM tab2 AS cor0
----
46
0
64
0
75
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5833
SELECT - col0 DIV + + col0 AS col1 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5833
SELECT - col0 / + + col0 AS col1 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT ALL - 11 * - col0 + ( ( - col2 ) ) FROM tab1 AS cor0
----
465
876
933

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col0, col0 / col2 + - + 73 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL col2 * - ( + 90 ) FROM tab2 AS cor0
----
-2070
-3600
-5220

query II rowsort
SELECT DISTINCT col1, 31 AS col1 FROM tab1
----
14
31
47
31
5
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5838
SELECT DISTINCT MIN( DISTINCT + col2 ) + + + 60 DIV + 8 AS col1 FROM tab0
----
17

skipif mysql # not compatible
query I rowsort label-5838
SELECT DISTINCT MIN ( DISTINCT + col2 ) + + + 60 / + 8 AS col1 FROM tab0
----
17

query II rowsort
SELECT - 60, col1 FROM tab0
----
-60
1
-60
21
-60
81

query II rowsort
SELECT DISTINCT col2 AS col2, + col1 FROM tab0
----
10
21
47
81
99
1

query I rowsort
SELECT col2 * + 50 AS col0 FROM tab0
----
2350
4950
500

query I rowsort
SELECT col0 + - + 17 + col1 * - col2 AS col2 FROM tab2
----
-1144
-3033
-3828

query I rowsort
SELECT ALL - col0 + + col2 * + col1 FROM tab2
----
1127
3016
3811

query I rowsort
SELECT ALL 93 * 81 * col0 AS col0 FROM tab1
----
384183
640305
685503

query I rowsort
SELECT DISTINCT + col2 + 3 * - col0 AS col2 FROM tab1
----
-196
-205
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-5846
SELECT ALL + 95 * - - COUNT( ALL + 16 ) + COUNT( * ) AS col0 FROM tab0
----
288

skipif mysql # not compatible
query I rowsort label-5846
SELECT ALL + 95 * - - COUNT ( ALL + 16 ) + COUNT ( * ) AS col0 FROM tab0
----
288

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5847
SELECT DISTINCT + 2 * + CAST( col2 AS SIGNED ) AS col0 FROM tab1
----
118
136
192

skipif mysql # not compatible
query I rowsort label-5847
SELECT DISTINCT + 2 * + CAST ( col2 AS INTEGER ) AS col0 FROM tab1
----
118
136
192

query I rowsort
SELECT - col0 AS col2 FROM tab2 WHERE NULL >= - 21
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 4 ) col1 FROM tab1
----
4
4
4

query III rowsort
SELECT * FROM tab0 WHERE NULL <> - col2 - col1
----

query I rowsort
SELECT DISTINCT ( 80 ) * col1 + + col1 FROM tab1 WHERE NOT col2 * 97 NOT BETWEEN - ( col1 ) AND + 98
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5852
SELECT col2 DIV 26 AS col0 FROM tab1
----
2
2
3

skipif mysql # not compatible
query I rowsort label-5852
SELECT col2 / 26 AS col0 FROM tab1
----
2
2
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5853
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + ( - col2 * ( - 86 * col2 ) ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5853
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + ( - col2 * ( - 86 * col2 ) ) AS col1 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5854
SELECT MAX( col2 ) DIV 50 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-5854
SELECT MAX ( col2 ) / 50 FROM tab2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5855
SELECT DISTINCT - col1 + + col1 * ( col1 DIV - col0 ) FROM tab2
----
-102
-154
-67

skipif mysql # not compatible
query I rowsort label-5855
SELECT DISTINCT - col1 + + col1 * ( col1 / - col0 ) FROM tab2
----
-102
-154
-67

query I rowsort
SELECT 83 + col2 AS col1 FROM tab2
----
106
123
141

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + 87 / + 90 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col2 * - 41 + 83 AS col1 FROM tab2 WHERE - col1 NOT IN ( 8 )
----
-1557
-2295
-860

query III rowsort
SELECT * FROM tab0 WHERE NOT - 28 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-5860
SELECT DISTINCT col2 - - col0 DIV - 55 AS col1 FROM tab0
----
47
9
98

skipif mysql # not compatible
query I rowsort label-5860
SELECT DISTINCT col2 - - col0 / - 55 AS col1 FROM tab0
----
47
9
98

query I rowsort
SELECT ALL col1 FROM tab1 WHERE ( col0 * - 90 ) BETWEEN ( col0 ) AND ( col1 * + 60 + + col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5862
SELECT ALL - col0 + col0 DIV + col0 FROM tab0
----
-14
-86
-96

skipif mysql # not compatible
query I rowsort label-5862
SELECT ALL - col0 + col0 / + col0 FROM tab0
----
-14
-86
-96

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + col0 ) NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT ALL col2 * col0 FROM tab0 WHERE col1 BETWEEN ( + col2 ) AND ( NULL )
----

query I rowsort
SELECT - col0 * + 40 AS col0 FROM tab2
----
-1840
-2560
-3000

query I rowsort
SELECT ALL ( + ( + 40 ) ) AS col1 FROM tab2 WHERE col0 BETWEEN NULL AND + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5867
SELECT DISTINCT - col2 FROM tab2 WHERE CAST( NULL AS SIGNED ) * + col2 - - col1 IN ( col2 )
----

skipif mysql # not compatible
query I rowsort label-5867
SELECT DISTINCT - col2 FROM tab2 WHERE CAST ( NULL AS INTEGER ) * + col2 - - col1 IN ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5868
SELECT + SUM( DISTINCT - col0 ) * + ( + ( - 86 ) + 92 * - COUNT( * ) ) col1 FROM tab1
----
82174

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5868
SELECT + SUM ( DISTINCT - col0 ) * + ( + ( - 86 ) + 92 * - COUNT ( * ) ) col1 FROM tab1
----
82174

query I rowsort
SELECT ALL col2 + + col1 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
100
128
31

query I rowsort
SELECT - col0 FROM tab0 WHERE - 25 IS NOT NULL
----
-15
-87
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-5871
SELECT ALL col1 DIV 84 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5871
SELECT ALL col1 / 84 AS col1 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5872
SELECT ALL + COUNT( * ) * - 92 col1 FROM tab2
----
-276

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5872
SELECT ALL + COUNT ( * ) * - 92 col1 FROM tab2
----
-276

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5873
SELECT - 51 * 50 + CAST( NULL AS SIGNED ) * - col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5873
SELECT - 51 * 50 + CAST ( NULL AS INTEGER ) * - col1 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col0 NOT BETWEEN + 86 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5875
SELECT CAST( NULL AS SIGNED ) + - ( col2 ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5875
SELECT CAST ( NULL AS INTEGER ) + - ( col2 ) AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT 27 * - col0 FROM tab1 AS cor0
----
-1377
-2295
-2457

onlyif mysql # aggregate syntax: 
query I rowsort label-5877
SELECT + SUM( DISTINCT - ( col0 ) ) * 98 AS col2 FROM tab2 WHERE NOT + col0 * + col1 NOT BETWEEN col2 AND - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5877
SELECT + SUM ( DISTINCT - ( col0 ) ) * 98 AS col2 FROM tab2 WHERE NOT + col0 * + col1 NOT BETWEEN col2 AND - col0
----
NULL

query I rowsort
SELECT ALL - 66 FROM tab2 AS cor0 CROSS JOIN tab0
----
9 values hashing to a408108d423d7784b7d610cb779e515a

query I rowsort
SELECT ALL 25 FROM tab2 AS cor0 CROSS JOIN tab1
----
9 values hashing to 525a55d5ed224a62da65df36731881a7

query I rowsort
SELECT - col2 FROM tab2 AS cor0 WHERE NOT NULL IN ( 93 )
----

query I rowsort
SELECT ALL + col2 FROM tab2 AS cor0 WHERE NOT ( + 64 + + col2 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 * + col2 IS NOT NULL
----

query I rowsort
SELECT ALL - 82 FROM tab2 AS cor0 WHERE NOT NULL IN ( 68 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5884
SELECT - COUNT( * ) * COUNT( * ) FROM tab2 cor0 WHERE NOT ( + 11 ) NOT IN ( + 86 + 67 )
----
0

skipif mysql # not compatible
query I rowsort label-5884
SELECT - COUNT ( * ) * COUNT ( * ) FROM tab2 cor0 WHERE NOT ( + 11 ) NOT IN ( + 86 + 67 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5885
SELECT COUNT( * ) + + 54 AS col0 FROM tab1 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-5885
SELECT COUNT ( * ) + + 54 AS col0 FROM tab1 AS cor0
----
57

query I rowsort
SELECT + + col0 * col2 + + ( 79 ) * 93 FROM tab0 AS cor0
----
16950
8052
8217

query I rowsort
SELECT DISTINCT - 0 FROM tab0 AS cor0 WHERE ( 4 ) BETWEEN ( NULL ) AND ( col2 + ( - 27 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5888
SELECT + col1 DIV + col2 + 50 FROM tab0 AS cor0
----
50
51
52

skipif mysql # not compatible
query I rowsort label-5888
SELECT + col1 / + col2 + 50 FROM tab0 AS cor0
----
50
51
52

query I rowsort
SELECT col2 * 80 AS col0 FROM tab1 cor0
----
4720
5440
7680

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( 98 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5892
SELECT DISTINCT MIN( ALL col2 ) AS col2 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-5892
SELECT DISTINCT MIN ( ALL col2 ) AS col2 FROM tab1
----
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - col2 ) + 95 col1 FROM tab0
----
-4
48
85

query I rowsort
SELECT ALL col2 + - + 53 FROM tab1
----
15
43
6

query I rowsort
SELECT ALL + col0 + - - 32 AS col1 FROM tab2
----
107
78
96

query I rowsort
SELECT ALL 72 AS col1 FROM tab2 WHERE NULL IS NULL
----
72
72
72

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5897
SELECT DISTINCT * FROM tab2 WHERE NULL IN ( CAST( - 79 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5897
SELECT DISTINCT * FROM tab2 WHERE NULL IN ( CAST ( - 79 AS INTEGER ) )
----

query III rowsort
SELECT * FROM tab1 WHERE ( - col0 * 89 ) NOT BETWEEN + 76 AND - col2 * col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5899
SELECT COUNT( ALL col0 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5899
SELECT COUNT ( ALL col0 ) AS col0 FROM tab0
----
3

query III rowsort
SELECT * FROM tab1 WHERE ( col0 ) IN ( 13 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( col0 ) + 98 IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( col0 ) = col0 AND NOT - col2 - + col1 NOT BETWEEN col0 + + 55 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5903
SELECT DISTINCT COUNT( ALL - 80 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-5903
SELECT DISTINCT COUNT ( ALL - 80 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5904
SELECT + COUNT( * ) - + COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-5904
SELECT + COUNT ( * ) - + COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
0

query I rowsort
SELECT + 99 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

query I rowsort
SELECT ALL - - col2 - - 90 AS col1 FROM tab2 AS cor0
----
113
130
148

query I rowsort
SELECT 39 * + 62 AS col2 FROM tab0 AS cor0 WHERE NULL NOT IN ( col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col0 FROM tab2 AS cor0 WHERE - 79 IS NOT NULL
----
51
67
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5909
SELECT DISTINCT COUNT( * ) * - COUNT( ALL col0 ) FROM tab0 AS cor0 WHERE ( + col1 * - col2 + + col0 * - CAST( NULL AS SIGNED ) ) <= ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-5909
SELECT DISTINCT COUNT ( * ) * - COUNT ( ALL col0 ) FROM tab0 AS cor0 WHERE ( + col1 * - col2 + + col0 * - CAST ( NULL AS INTEGER ) ) <= ( NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5910
SELECT - SUM( + col0 ) AS col2 FROM tab0 cor0
----
-199

skipif mysql # not compatible
query I rowsort label-5910
SELECT - SUM ( + col0 ) AS col2 FROM tab0 cor0
----
-199

query I rowsort
SELECT ALL 81 * + - 63 + + - col2 AS col0 FROM tab0 AS cor0
----
-5113
-5150
-5202

query I rowsort
SELECT ALL + col0 - col1 * - 45 FROM tab2 AS cor0 WHERE ( NULL ) > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5913
SELECT DISTINCT 88 AS col0 FROM tab2 AS cor0 WHERE NOT CAST( + + 47 AS SIGNED ) * ( col2 ) BETWEEN NULL AND - col1
----
88

skipif mysql # not compatible
query I rowsort label-5913
SELECT DISTINCT 88 AS col0 FROM tab2 AS cor0 WHERE NOT CAST ( + + 47 AS INTEGER ) * ( col2 ) BETWEEN NULL AND - col1
----
88

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - col1 + 32 ) > NULL
----

query I rowsort
SELECT 93 * col1 AS col2 FROM tab1 AS cor0 WHERE NOT + col0 + + 51 < ( col1 )
----
1302
4371
465

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5916
SELECT ALL col0 + col1 AS col2 FROM tab0 WHERE NOT - ( - CAST( NULL AS SIGNED ) ) * - 50 IS NOT NULL
----
108
96
98

skipif mysql # not compatible
query I rowsort label-5916
SELECT ALL col0 + col1 AS col2 FROM tab0 WHERE NOT - ( - CAST ( NULL AS INTEGER ) ) * - 50 IS NOT NULL
----
108
96
98

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL > - - col1 * + 41
----

query I rowsort
SELECT DISTINCT - col0 * + 10 FROM tab0
----
-150
-870
-970

onlyif mysql # aggregate syntax: 
query I rowsort label-5919
SELECT + 9 * - - COUNT( * ) AS col2 FROM tab2
----
27

skipif mysql # not compatible
query I rowsort label-5919
SELECT + 9 * - - COUNT ( * ) AS col2 FROM tab2
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5920
SELECT DISTINCT col2 * - 38 * + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5920
SELECT DISTINCT col2 * - 38 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT 36 IN ( + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5922
SELECT + COUNT( * ) DIV + 48 col1 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5922
SELECT + COUNT ( * ) / + 48 col1 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5923
SELECT ALL + CAST( NULL AS SIGNED ) / col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5923
SELECT ALL + CAST ( NULL AS INTEGER ) / col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - 75 * ( + 44 ) AS col2 FROM tab0
----
-3300
-3300
-3300

onlyif mysql # DIV for integer division: 
query I rowsort label-5925
SELECT ALL col1 DIV + - col0 AS col0 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-5925
SELECT ALL col1 / + - col0 AS col0 FROM tab2
----
-1
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5926
SELECT DISTINCT + COUNT( * ) FROM tab1 WHERE NOT + col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5926
SELECT DISTINCT + COUNT ( * ) FROM tab1 WHERE NOT + col2 IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - ( col2 * - col1 ) col0 FROM tab0 WHERE NOT col1 IS NULL
----
178929
2100
9801

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 43 col2 FROM tab1 WHERE NOT + 35 * + col0 - col1 * col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5929
SELECT - + col0 * + col1 + - CAST( 76 AS SIGNED ) FROM tab1 AS cor0
----
-4353
-501
-790

skipif mysql # not compatible
query I rowsort label-5929
SELECT - + col0 * + col1 + - CAST ( 76 AS INTEGER ) FROM tab1 AS cor0
----
-4353
-501
-790

onlyif mysql # aggregate syntax: 
query I rowsort label-5930
SELECT ALL COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE col2 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-5930
SELECT ALL COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE col2 > NULL
----
0

query I rowsort
SELECT DISTINCT + col1 * - - 27 + 3 * - col2 AS col0 FROM tab1 WHERE NULL IN ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5932
SELECT ALL COUNT( - col2 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5932
SELECT ALL COUNT ( - col2 ) AS col0 FROM tab0 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 28 col1, 53 FROM tab0 AS cor0
----
28
53
28
53
28
53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 / + 72 col2 FROM tab1 AS cor0 WHERE NULL <> ( - ( - col0 ) * - col2 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col0 > NULL
----

query II rowsort
SELECT ALL - + col2 AS col0, - 37 FROM tab2 AS cor0
----
-23
-37
-40
-37
-58
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-5937
SELECT + MIN( + 55 ) FROM tab0 AS cor0
----
55

skipif mysql # not compatible
query I rowsort label-5937
SELECT + MIN ( + 55 ) FROM tab0 AS cor0
----
55

query I rowsort
SELECT + + 44 * - - col2 FROM tab1 cor0
----
2596
2992
4224

onlyif mysql # aggregate syntax: 
query II rowsort label-5939
SELECT DISTINCT - - COUNT( * ) AS col0, + ( 47 ) AS col0 FROM tab1 AS cor0
----
3
47

skipif mysql # not compatible
query II rowsort label-5939
SELECT DISTINCT - - COUNT ( * ) AS col0, + ( 47 ) AS col0 FROM tab1 AS cor0
----
3
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5940
SELECT 64 * + 76 + - CAST( COUNT( * ) AS SIGNED ) AS col1 FROM tab1
----
4861

skipif mysql # not compatible
query I rowsort label-5940
SELECT 64 * + 76 + - CAST ( COUNT ( * ) AS INTEGER ) AS col1 FROM tab1
----
4861

onlyif mysql # aggregate syntax: 
query I rowsort label-5941
SELECT ALL MIN( ALL col1 ) + SUM( + col1 ) AS col0 FROM tab0
----
104

skipif mysql # not compatible
query I rowsort label-5941
SELECT ALL MIN ( ALL col1 ) + SUM ( + col1 ) AS col0 FROM tab0
----
104

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5942
SELECT DISTINCT * FROM tab2 WHERE CAST( + ( - + col1 ) AS SIGNED ) <= ( NULL )
----

skipif mysql # not compatible
query III rowsort label-5942
SELECT DISTINCT * FROM tab2 WHERE CAST ( + ( - + col1 ) AS INTEGER ) <= ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 90 + 37 col1, col1 AS col1 FROM tab1
----
127
14
127
47
127
5

query I rowsort
SELECT ALL + col0 * + col0 + - + col0 * + 95 + + col2 FROM tab2
----
-1442
-1944
-2231

query I rowsort
SELECT + col1 + - 86 AS col1 FROM tab2
----
-19
-35
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5946
SELECT DISTINCT CAST( + col0 AS SIGNED ) * + 94 * + col0 + - col1 FROM tab1
----
244480
679145
778367

skipif mysql # not compatible
query I rowsort label-5946
SELECT DISTINCT CAST ( + col0 AS INTEGER ) * + 94 * + col0 + - col1 FROM tab1
----
244480
679145
778367

onlyif mysql # aggregate syntax: 
query I rowsort label-5947
SELECT ALL + 48 + + COUNT( * ) AS col0 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-5947
SELECT ALL + 48 + + COUNT ( * ) AS col0 FROM tab1
----
51

query I rowsort
SELECT + col1 + - 15 FROM tab1
----
-1
-10
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5949
SELECT + CAST( NULL AS SIGNED ) - - + COUNT( * ) FROM tab0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5949
SELECT + CAST ( NULL AS INTEGER ) - - + COUNT ( * ) FROM tab0 WHERE NULL IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE + - col0 * - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5951
SELECT - + COUNT( * ) col1, ( - COUNT( - ( - col0 ) ) ) AS col1 FROM tab1 AS cor0
----
-3
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5951
SELECT - + COUNT ( * ) col1, ( - COUNT ( - ( - col0 ) ) ) AS col1 FROM tab1 AS cor0
----
-3
-3

query I rowsort
SELECT + 19 - - col1 FROM tab0
----
100
20
40

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab1 WHERE - col0 IS NULL AND - col0 NOT BETWEEN col1 AND ( + col1 * + 91 )
----

query I rowsort
SELECT col1 - col0 AS col2 FROM tab0 WHERE - 80 + 83 / - ( - ( - 59 ) ) IS NOT NULL
----
-66
-96
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5955
SELECT - CAST( + ( + COUNT( * ) ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5955
SELECT - CAST ( + ( + COUNT ( * ) ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-3

query II rowsort
SELECT - 78 * - col2 + - 15 + + col0 * col2, + col1 AS col1 FROM tab0 AS cor0
----
1635
21
17310
1
4356
81

onlyif mysql # aggregate syntax: 
query II rowsort label-5957
SELECT ALL - COUNT( * ) * + ( 38 ) AS col0, - COUNT( * ) + - - COUNT( 14 ) FROM tab1 AS cor0
----
-114
0

skipif mysql # not compatible
query II rowsort label-5957
SELECT ALL - COUNT ( * ) * + ( 38 ) AS col0, - COUNT ( * ) + - - COUNT ( 14 ) FROM tab1 AS cor0
----
-114
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5958
SELECT * FROM tab2 AS cor0 WHERE NOT ( col1 * - - CAST( - - col0 AS SIGNED ) ) <> NULL
----

skipif mysql # not compatible
query III rowsort label-5958
SELECT * FROM tab2 AS cor0 WHERE NOT ( col1 * - - CAST ( - - col0 AS INTEGER ) ) <> NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5959
SELECT SUM( 59 ), MIN( ALL - col1 ) AS col0 FROM tab1 AS cor0
----
177
-47

skipif mysql # not compatible
query II rowsort label-5959
SELECT SUM ( 59 ), MIN ( ALL - col1 ) AS col0 FROM tab1 AS cor0
----
177
-47

query I rowsort
SELECT DISTINCT - col2 * + 0 AS col2 FROM tab2
----
0

query I rowsort
SELECT DISTINCT col0 * + 1 AS col2 FROM tab1
----
51
85
91

onlyif mysql # DIV for integer division: 
query I rowsort label-5962
SELECT - 85 DIV + ( + col0 ) FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-5962
SELECT - 85 / + ( + col0 ) FROM tab1
----
-1
-1
0

query II rowsort
SELECT DISTINCT 46, + col1 FROM tab0
----
46
1
46
21
46
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5964
SELECT DISTINCT COUNT( - + 54 ) col0 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5964
SELECT DISTINCT COUNT ( - + 54 ) col0 FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5965
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + col1 + col0 FROM tab2 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-5965
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + col1 + col0 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5966
SELECT + SUM( DISTINCT + col1 ) col2 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5966
SELECT + SUM ( DISTINCT + col1 ) col2 FROM tab0 AS cor0
----
103

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5967
SELECT ALL - col2 col2 FROM tab2 AS cor0 WHERE - col2 + + 91 + - + CAST( NULL AS SIGNED ) + - col2 * + 19 NOT IN ( + + 91 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5967
SELECT ALL - col2 col2 FROM tab2 AS cor0 WHERE - col2 + + 91 + - + CAST ( NULL AS INTEGER ) + - col2 * + 19 NOT IN ( + + 91 )
----

query I rowsort
SELECT DISTINCT - 25 * - 60 + + + 3 + col0 FROM tab2 AS cor0
----
1549
1567
1578

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5969
SELECT - + col1 / + 88 + - col0 - - + CAST( NULL AS SIGNED ) AS col1, - col1 FROM tab1 AS cor0
----
NULL
-14
NULL
-47
NULL
-5

skipif mysql # not compatible
query II rowsort label-5969
SELECT - + col1 / + 88 + - col0 - - + CAST ( NULL AS INTEGER ) AS col1, - col1 FROM tab1 AS cor0
----
NULL
-14
NULL
-47
NULL
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5970
SELECT COUNT( ALL - col2 ) col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5970
SELECT COUNT ( ALL - col2 ) col1 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5971
SELECT + MIN( ALL - 50 ) AS col1 FROM tab1 cor0
----
-50

skipif mysql # not compatible
query I rowsort label-5971
SELECT + MIN ( ALL - 50 ) AS col1 FROM tab1 cor0
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-5972
SELECT + MIN( DISTINCT col0 ) AS col1 FROM tab0 WHERE NOT + 22 IS NULL
----
15

skipif mysql # not compatible
query I rowsort label-5972
SELECT + MIN ( DISTINCT col0 ) AS col1 FROM tab0 WHERE NOT + 22 IS NULL
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5973
SELECT DISTINCT * FROM tab1 WHERE NOT ( + - col0 * CAST( - col0 AS SIGNED ) + CAST( col0 AS SIGNED ) + - - col1 ) >= col0
----

skipif mysql # not compatible
query III rowsort label-5973
SELECT DISTINCT * FROM tab1 WHERE NOT ( + - col0 * CAST ( - col0 AS INTEGER ) + CAST ( col0 AS INTEGER ) + - - col1 ) >= col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5974
SELECT ALL 91 + - COUNT( * ) - + 4 + + CAST( ( + COUNT( DISTINCT col1 ) ) AS SIGNED ) col2 FROM tab2
----
87

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5974
SELECT ALL 91 + - COUNT ( * ) - + 4 + + CAST ( ( + COUNT ( DISTINCT col1 ) ) AS INTEGER ) col2 FROM tab2
----
87

query I rowsort
SELECT + + col1 AS col0 FROM tab2 AS cor0 WHERE - col1 + - 42 <= - - 7
----
51
67
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5976
SELECT DISTINCT - ( COUNT( ( - - CAST( NULL AS SIGNED ) ) ) ) - - + AVG ( ALL + col1 ) col1 FROM tab1 AS cor0 WHERE NOT 15 IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5976
SELECT DISTINCT - ( COUNT ( ( - - CAST ( NULL AS INTEGER ) ) ) ) - - + AVG ( ALL + col1 ) col1 FROM tab1 AS cor0 WHERE NOT 15 IS NOT NULL
----
NULL

query I rowsort
SELECT - col0 + + col1 + - col1 + - + ( 84 ) - + col2 FROM tab0 AS cor0
----
-146
-181
-280

onlyif mysql # DIV for integer division: 
query I rowsort label-5978
SELECT + col2 DIV - + 83 + + col1 + + 95 + col2 * - + ( - - col2 ) + - - 49 * - - col0 AS col2 FROM tab1 AS cor0
----
-23
-6609
784

skipif mysql # not compatible
query I rowsort label-5978
SELECT + col2 / - + 83 + + col1 + + 95 + col2 * - + ( - - col2 ) + - - 49 * - - col0 AS col2 FROM tab1 AS cor0
----
-23
-6609
784

query I rowsort
SELECT - + col2 * - - col2 + - + ( - ( - ( + - col0 ) ) ) + - - col1 AS col1 FROM tab0 AS cor0
----
-2113
-9703
8

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND col1 * + 62 / + 26 + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5981
SELECT DISTINCT + 82 + - COUNT( * ) FROM tab0
----
79

skipif mysql # not compatible
query I rowsort label-5981
SELECT DISTINCT + 82 + - COUNT ( * ) FROM tab0
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-5982
SELECT + COUNT( * ) FROM tab1 WHERE + + 56 / + 1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5982
SELECT + COUNT ( * ) FROM tab1 WHERE + + 56 / + 1 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5983
SELECT - SUM( - 27 ) AS col2 FROM tab2
----
81

skipif mysql # not compatible
query I rowsort label-5983
SELECT - SUM ( - 27 ) AS col2 FROM tab2
----
81

query II rowsort
SELECT DISTINCT + col0 * - 18 - - - col1 AS col2, col0 AS col2 FROM tab1
----
-1535
85
-1685
91
-932
51

query I rowsort
SELECT ALL + col2 + 98 FROM tab2
----
121
138
156

onlyif mysql # aggregate syntax: 
query I rowsort label-5986
SELECT - COUNT( DISTINCT - col2 ) - - COUNT( * ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5986
SELECT - COUNT ( DISTINCT - col2 ) - - COUNT ( * ) FROM tab0
----
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5987
SELECT col0 - - CAST( NULL AS DECIMAL ) - + CAST( - col1 AS SIGNED ) / - + col0 * - 92 * + col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5987
SELECT col0 - - CAST ( NULL AS REAL ) - + CAST ( - col1 AS INTEGER ) / - + col0 * - 92 * + col1 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 55 + + col1 col1 FROM tab1
----
-41
-50
-8

query III rowsort
SELECT * FROM tab1 WHERE NULL <= ( + - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5990
SELECT + ( COUNT( * ) ) - + 39 * + - 34 AS col1 FROM tab1
----
1329

skipif mysql # not compatible
query I rowsort label-5990
SELECT + ( COUNT ( * ) ) - + 39 * + - 34 AS col1 FROM tab1
----
1329

query I rowsort
SELECT - - col2 * - col1 - - 90 * - 66 AS col2 FROM tab1 cor0
----
-6235
-7284
-9136

query I rowsort
SELECT DISTINCT - col1 + - + 6 FROM tab0 AS cor0
----
-27
-7
-87

query I rowsort
SELECT ALL + 21 - 57 FROM tab0 AS cor0
----
-36
-36
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-5994
SELECT ( col1 ) DIV - 82 * - col1 * + 86 + - col0 + - 81 DIV + ( + col0 ) + - col2 AS col2 FROM tab0 AS cor0
----
-196
-67
-97

skipif mysql # not compatible
query I rowsort label-5994
SELECT ( col1 ) / - 82 * - col1 * + 86 + - col0 + - 81 / + ( + col0 ) + - col2 AS col2 FROM tab0 AS cor0
----
-196
-67
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-5995
SELECT + 89 AS col1, - COUNT( * ) FROM tab1 AS cor0 WHERE ( + ( + 93 ) ) NOT BETWEEN - 44 AND NULL
----
89
0

skipif mysql # not compatible
query II rowsort label-5995
SELECT + 89 AS col1, - COUNT ( * ) FROM tab1 AS cor0 WHERE ( + ( + 93 ) ) NOT BETWEEN - 44 AND NULL
----
89
0

query I rowsort
SELECT col1 + - col0 * col0 * + col0 * + + 3 AS col2 FROM tab0 cor0
----
-10044
-1975488
-2738018

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col0 IN ( + col2, + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5998
SELECT MIN( DISTINCT + + ( col1 ) ) AS col1 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-5998
SELECT MIN ( DISTINCT + + ( col1 ) ) AS col1 FROM tab1
----
5

onlyif mysql # aggregate syntax: 
query II rowsort label-5999
SELECT ALL + + COUNT( * ) col1, 36 AS col0 FROM tab2 AS cor0
----
3
36

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5999
SELECT ALL + + COUNT ( * ) col1, 36 AS col0 FROM tab2 AS cor0
----
3
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6000
SELECT ALL + + 50, CAST( - - COUNT( * ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
50
3

skipif mysql # not compatible
query II rowsort label-6000
SELECT ALL + + 50, CAST ( - - COUNT ( * ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
50
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6001
SELECT - CAST( 85 AS SIGNED ) FROM tab0 AS cor0
----
-85
-85
-85

skipif mysql # not compatible
query I rowsort label-6001
SELECT - CAST ( 85 AS INTEGER ) FROM tab0 AS cor0
----
-85
-85
-85

query II rowsort
SELECT + 29 AS col0, - col0 FROM tab2 cor0
----
29
-46
29
-64
29
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-6003
SELECT ALL + 88 * - COUNT( * ) AS col1, 45 FROM tab0
----
-264
45

skipif mysql # not compatible
query II rowsort label-6003
SELECT ALL + 88 * - COUNT ( * ) AS col1, 45 FROM tab0
----
-264
45

query I rowsort
SELECT DISTINCT + 55 * 91 FROM tab0
----
5005

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6005
SELECT * FROM tab0 WHERE NOT - col2 * - CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-6005
SELECT * FROM tab0 WHERE NOT - col2 * - CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-6006
SELECT - col1 DIV col2 * + col1 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6006
SELECT - col1 / col2 * + col1 AS col2 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6007
SELECT - CAST( NULL AS SIGNED ) + 80 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6007
SELECT - CAST ( NULL AS INTEGER ) + 80 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col2 * ( - - col1 ) AS col0 FROM tab0 AS cor0
----
-210
-3807
-99

query I rowsort
SELECT + 21 * + + col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
1071
1785
1911

query I rowsort
SELECT ALL + - 45 FROM tab2 AS cor0 WHERE NOT - col1 IS NULL
----
-45
-45
-45

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 60 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6012
SELECT DISTINCT 16 * + COUNT( DISTINCT col0 ) FROM tab2 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-6012
SELECT DISTINCT 16 * + COUNT ( DISTINCT col0 ) FROM tab2 AS cor0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-6013
SELECT + SUM( DISTINCT - + col0 ) + - MAX( - col2 ) col1 FROM tab0 AS cor0
----
-189

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6013
SELECT + SUM ( DISTINCT - + col0 ) + - MAX ( - col2 ) col1 FROM tab0 AS cor0
----
-189

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6014
SELECT + col1 / CAST( NULL AS SIGNED ) + - + col2 + + - ( + col1 ) + col1 / - col0 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6014
SELECT + col1 / CAST ( NULL AS INTEGER ) + - + col2 + + - ( + col1 ) + col1 / - col0 AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6015
SELECT ALL + MIN( + - col2 ) FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-6015
SELECT ALL + MIN ( + - col2 ) FROM tab2
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-6016
SELECT MAX( DISTINCT - 9 ) + - 42 FROM tab0
----
-51

skipif mysql # not compatible
query I rowsort label-6016
SELECT MAX ( DISTINCT - 9 ) + - 42 FROM tab0
----
-51

query I rowsort
SELECT ALL 16 FROM tab0 WHERE + + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6018
SELECT DISTINCT - col1 * - ( - col0 ) + col1 + + ( + 41 ) * + CAST( NULL AS SIGNED ) AS col0, col1 DIV col2 DIV - 9 + + col2 * 76 AS col2 FROM tab2
----
NULL
1748
NULL
3040
NULL
4408

skipif mysql # not compatible
query II rowsort label-6018
SELECT DISTINCT - col1 * - ( - col0 ) + col1 + + ( + 41 ) * + CAST ( NULL AS INTEGER ) AS col0, col1 / col2 / - 9 + + col2 * 76 AS col2 FROM tab2
----
NULL
1748
NULL
3040
NULL
4408

onlyif mysql # aggregate syntax: 
query I rowsort label-6019
SELECT ALL + COUNT( * ) AS col2 FROM tab1 WHERE - 20 + col0 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-6019
SELECT ALL + COUNT ( * ) AS col2 FROM tab1 WHERE - 20 + col0 < NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6020
SELECT ALL 92 + 70 * - COUNT( * ) AS col2 FROM tab2
----
-118

skipif mysql # not compatible
query I rowsort label-6020
SELECT ALL 92 + 70 * - COUNT ( * ) AS col2 FROM tab2
----
-118

onlyif mysql # aggregate syntax: 
query I rowsort label-6021
SELECT - MIN( DISTINCT + col0 ) FROM tab0 cor0
----
-15

skipif mysql # not compatible
query I rowsort label-6021
SELECT - MIN ( DISTINCT + col0 ) FROM tab0 cor0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-6022
SELECT COUNT( + 29 ) AS col2 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-6022
SELECT COUNT ( + 29 ) AS col2 FROM tab0 cor0
----
3

query I rowsort
SELECT DISTINCT col2 * col0 * col0 * - + col0 - col0 * + 45 FROM tab2 cor0
----
-10488640
-2240798
-24472125

query I rowsort
SELECT - + col1 - - col1 AS col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6025
SELECT - - MAX( + col1 ) * - + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-243

skipif mysql # not compatible
query I rowsort label-6025
SELECT - - MAX ( + col1 ) * - + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-243

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( + 16 - - - ( - col1 ) ) BETWEEN - col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6027
SELECT ALL COUNT( * ) * + + COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
81

skipif mysql # not compatible
query I rowsort label-6027
SELECT ALL COUNT ( * ) * + + COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6028
SELECT COUNT( DISTINCT + 68 ) AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
1

skipif mysql # not compatible
query I rowsort label-6028
SELECT COUNT ( DISTINCT + 68 ) AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6029
SELECT MAX( + - col2 ) AS col0 FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-6029
SELECT MAX ( + - col2 ) AS col0 FROM tab2
----
-23

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) = - col1
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN 9 + + + col1 AND NULL
----

query II rowsort
SELECT - col0 AS col0, 55 - + col0 FROM tab2 AS cor0
----
-46
9
-64
-9
-75
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-6033
SELECT ALL - + MAX( 69 ) FROM tab1 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-6033
SELECT ALL - + MAX ( 69 ) FROM tab1 AS cor0
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-6034
SELECT + SUM( ALL 83 ) AS col0 FROM tab2 AS cor0
----
249

skipif mysql # not compatible
query I rowsort label-6034
SELECT + SUM ( ALL 83 ) AS col0 FROM tab2 AS cor0
----
249

query II rowsort
SELECT ALL col0, col2 + 65 FROM tab0 AS cor0
----
15
112
87
75
97
164

query II rowsort
SELECT - - 96 AS col0, col1 FROM tab2 AS cor0
----
96
51
96
67
96
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6037
SELECT DISTINCT + - SUM( 29 ) FROM tab2 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-6037
SELECT DISTINCT + - SUM ( 29 ) FROM tab2 AS cor0
----
-87

query II rowsort
SELECT + col0, col2 + - col2 FROM tab0 AS cor0
----
15
0
87
0
97
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6039
SELECT ALL - MAX( DISTINCT - - CAST( NULL AS SIGNED ) ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6039
SELECT ALL - MAX ( DISTINCT - - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1
----
NULL

query I rowsort
SELECT col0 AS col1 FROM tab1 WHERE NOT - col2 + + 45 >= + 79 + col0 + col0
----
51
85
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT DISTINCT col0, col1 + + 2 + - - 77 col1, - col1 + - col0 FROM tab0
----
9 values hashing to fcd9d06b2d61a8a38f7aa2c6631eb563

query I rowsort
SELECT DISTINCT col2 * + 67 * - 46 AS col0 FROM tab2
----
-123280
-178756
-70886

query III rowsort
SELECT ALL * FROM tab0 WHERE + + 77 BETWEEN - col2 AND 77
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 20 + + + 17 AS col0 FROM tab0
----
37

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + + 28 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE NOT 63 BETWEEN - col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6047
SELECT 82, MIN( - col0 ) AS col0 FROM tab0 AS cor0
----
82
-97

skipif mysql # not compatible
query II rowsort label-6047
SELECT 82, MIN ( - col0 ) AS col0 FROM tab0 AS cor0
----
82
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-6048
SELECT ALL ( + - ( COUNT( * ) ) ) * COUNT( * ) AS col0 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-6048
SELECT ALL ( + - ( COUNT ( * ) ) ) * COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-9

query I rowsort
SELECT DISTINCT 55 * + col2 AS col0 FROM tab0 AS cor0
----
2585
5445
550

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT NULL <= NULL )
----

query I rowsort
SELECT ALL 58 * + 45 FROM tab2 cor0
----
2610
2610
2610

onlyif mysql # aggregate syntax: 
query I rowsort label-6052
SELECT + COUNT( * ) * 49 * COUNT( * ) FROM tab2 AS cor0
----
441

skipif mysql # not compatible
query I rowsort label-6052
SELECT + COUNT ( * ) * 49 * COUNT ( * ) FROM tab2 AS cor0
----
441

onlyif mysql # aggregate syntax: 
query I rowsort label-6053
SELECT COUNT( * ) * + 46 FROM tab1 AS cor0
----
138

skipif mysql # not compatible
query I rowsort label-6053
SELECT COUNT ( * ) * + 46 FROM tab1 AS cor0
----
138

query II rowsort
SELECT DISTINCT + col2 AS col1, col0 - - + col0 AS col0 FROM tab2 AS cor0
----
23
92
40
128
58
150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6055
SELECT SUM( DISTINCT + + col1 ) + - - AVG ( ALL - - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6055
SELECT SUM ( DISTINCT + + col1 ) + - - AVG ( ALL - - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - col0 AS col1 FROM tab1 AS cor0 WHERE col2 BETWEEN col2 AND - col0
----

query I rowsort
SELECT - 16 FROM tab1 AS cor0 WHERE + col2 * - 44 IS NOT NULL
----
-16
-16
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6058
SELECT + MIN( DISTINCT - CAST( NULL AS SIGNED ) ) * - 49 * - MAX( DISTINCT - col2 ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6058
SELECT + MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) * - 49 * - MAX ( DISTINCT - col2 ) AS col1 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL IN ( col0 + + ( + + col2 ), + col1, + col0, col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6060
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - + CAST( + + COUNT( * ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6060
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - + CAST ( + + COUNT ( * ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6061
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col0 - CAST( NULL AS SIGNED ) / - col2 * - - 33 >= - - col2
----

skipif mysql # not compatible
query III rowsort label-6061
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col0 - CAST ( NULL AS INTEGER ) / - col2 * - - 33 >= - - col2
----

query I rowsort
SELECT + 17 * + - 42 FROM tab2 AS cor0
----
-714
-714
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-6063
SELECT DISTINCT ( + COUNT( * ) ) AS col2 FROM tab1 AS cor0 WHERE NOT - 77 * - - col0 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-6063
SELECT DISTINCT ( + COUNT ( * ) ) AS col2 FROM tab1 AS cor0 WHERE NOT - 77 * - - col0 IS NULL
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6064
SELECT - CAST( NULL AS DECIMAL ) * + col2 / - col2, - col2 AS col1 FROM tab2 AS cor0
----
NULL
-23
NULL
-40
NULL
-58

skipif mysql # not compatible
query II rowsort label-6064
SELECT - CAST ( NULL AS REAL ) * + col2 / - col2, - col2 AS col1 FROM tab2 AS cor0
----
NULL
-23
NULL
-40
NULL
-58

query I rowsort
SELECT 58 * + col1 + + col1 FROM tab2 AS cor0
----
3009
3953
4543

query I rowsort
SELECT DISTINCT + col1 + 55 FROM tab0
----
136
56
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6067
SELECT col1 - - - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6067
SELECT col1 - - - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 87 + + - col2 AS col0 FROM tab2
----
29
47
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 90 - + col0 - + + col2 * - - 36 col2 FROM tab1
----
-2119
-2449
-3417

onlyif mysql # aggregate syntax: 
query I rowsort label-6070
SELECT DISTINCT 38 + - COUNT( * ) * MIN( ALL col2 ) * - SUM( - + col0 ) AS col2 FROM tab1
----
-40141

skipif mysql # not compatible
query I rowsort label-6070
SELECT DISTINCT 38 + - COUNT ( * ) * MIN ( ALL col2 ) * - SUM ( - + col0 ) AS col2 FROM tab1
----
-40141

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL IN ( - col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6072
SELECT DISTINCT col2 * col1 DIV + 53 AS col2 FROM tab2
----
22
58
73

skipif mysql # not compatible
query I rowsort label-6072
SELECT DISTINCT col2 * col1 / + 53 AS col2 FROM tab2
----
22
58
73

query I rowsort
SELECT + col2 + 83 AS col2 FROM tab0 cor0
----
130
182
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col2, col2 FROM tab1 AS cor0
----
-51
96
-85
59
-91
68

query I rowsort
SELECT + + 54 FROM tab0 AS cor0 WHERE NOT + col0 * - ( + - col2 ) IS NULL
----
54
54
54

onlyif mysql # aggregate syntax: 
query I rowsort label-6076
SELECT DISTINCT + COUNT( * ) * - - 57 FROM tab2 AS cor0
----
171

skipif mysql # not compatible
query I rowsort label-6076
SELECT DISTINCT + COUNT ( * ) * - - 57 FROM tab2 AS cor0
----
171

query I rowsort
SELECT DISTINCT + ( 93 ) AS col2 FROM tab0 AS cor0
----
93

query I rowsort
SELECT - 86 FROM tab2 AS cor0 WHERE NOT 49 IS NULL
----
-86
-86
-86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + - ( - - col0 ) + 16 col1 FROM tab2
----
-2330
-4912
-5009

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 <= col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6081
SELECT AVG ( ALL - CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6081
SELECT AVG ( ALL - CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6082
SELECT DISTINCT - 87 + col2 DIV - ( 33 ) AS col0 FROM tab2
----
-87
-88

skipif mysql # not compatible
query I rowsort label-6082
SELECT DISTINCT - 87 + col2 / - ( 33 ) AS col0 FROM tab2
----
-87
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6083
SELECT COUNT( * ), CAST( 61 AS SIGNED ) col2 FROM tab2
----
3
61

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6083
SELECT COUNT ( * ), CAST ( 61 AS INTEGER ) col2 FROM tab2
----
3
61

query III rowsort
SELECT ALL * FROM tab1 WHERE - col1 BETWEEN + ( + - col2 ) AND NULL
----

query I rowsort
SELECT ALL + ( 1 ) AS col0 FROM tab0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6086
SELECT COUNT( + + 95 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-6086
SELECT COUNT ( + + 95 ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6087
SELECT DISTINCT MIN( DISTINCT 54 ) AS col2 FROM tab2
----
54

skipif mysql # not compatible
query I rowsort label-6087
SELECT DISTINCT MIN ( DISTINCT 54 ) AS col2 FROM tab2
----
54

query I rowsort
SELECT col0 + - ( - col0 ) FROM tab1
----
102
170
182

query I rowsort
SELECT DISTINCT + col0 * 47 * + - col0 AS col1 FROM tab2
----
-192512
-264375
-99452

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 47 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col0 + - col1 + 60 - col1 AS col1 FROM tab0
----
-117
-39
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6092
SELECT - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE + 69 * - col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-6092
SELECT - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE + 69 * - col1 IS NULL
----

query II rowsort
SELECT ALL + 23 AS col0, - 71 FROM tab0 AS cor0
----
23
-71
23
-71
23
-71

query III rowsort
SELECT * FROM tab0 cor0 WHERE + col2 + + col2 - col1 IN ( + col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6095
SELECT ALL SUM( ALL CAST( NULL AS SIGNED ) ) * + + COUNT( ALL - col0 ) FROM tab0 WHERE - col0 / - col0 + + + col1 - + 48 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6095
SELECT ALL SUM ( ALL CAST ( NULL AS INTEGER ) ) * + + COUNT ( ALL - col0 ) FROM tab0 WHERE - col0 / - col0 + + + col1 - + 48 IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6096
SELECT ALL 97 + col0 / + - col0 * CAST( NULL AS SIGNED ) * col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6096
SELECT ALL 97 + col0 / + - col0 * CAST ( NULL AS INTEGER ) * col2 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + col0 * col1 + col2 FROM tab1 AS cor0 WHERE + col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6098
SELECT DISTINCT + + 12 * + CAST( - + 9 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-108

skipif mysql # not compatible
query I rowsort label-6098
SELECT DISTINCT + + 12 * + CAST ( - + 9 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-108

query I rowsort
SELECT - col2 + - 64 FROM tab1 AS cor0
----
-123
-132
-160

query I rowsort
SELECT - col0 + + col0 + - col1 + - + col1 FROM tab2 AS cor0
----
-102
-134
-154

onlyif mysql # aggregate syntax: 
query I rowsort label-6101
SELECT ALL MAX( ALL - col0 ) + 90 FROM tab0
----
75

skipif mysql # not compatible
query I rowsort label-6101
SELECT ALL MAX ( ALL - col0 ) + 90 FROM tab0
----
75

query I rowsort
SELECT 13 * - + col1 AS col2 FROM tab1
----
-182
-611
-65

query I rowsort
SELECT ALL col2 AS col2 FROM tab0 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 * + ( - + col2 ) FROM tab2
----
-1600
-3364
-529

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col1 + 9 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query II rowsort label-6106
SELECT ALL + col1, + ( + + 18 ) DIV + + col1 FROM tab1 WHERE col2 < + col2 * + ( ( + 79 ) ) + col2 + + - 62
----
14
1
47
0
5
3

skipif mysql # not compatible
query II rowsort label-6106
SELECT ALL + col1, + ( + + 18 ) / + + col1 FROM tab1 WHERE col2 < + col2 * + ( ( + 79 ) ) + col2 + + - 62
----
14
1
47
0
5
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6107
SELECT ALL ( - MIN( ALL 11 ) ) AS col1 FROM tab0
----
-11

skipif mysql # not compatible
query I rowsort label-6107
SELECT ALL ( - MIN ( ALL 11 ) ) AS col1 FROM tab0
----
-11

query I rowsort
SELECT ALL 98 FROM tab0 AS cor0 WHERE NOT ( NOT ( NOT NULL IS NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6109
SELECT + COUNT( * ) FROM tab0 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6109
SELECT + COUNT ( * ) FROM tab0 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) IS NULL
----
0

query I rowsort
SELECT ALL - 54 * + col0 * col0 AS col1 FROM tab1
----
-140454
-390150
-447174

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6111
SELECT ALL + COUNT( * ) + - ( - CAST( COUNT( * ) AS SIGNED ) ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
18

skipif mysql # not compatible
query I rowsort label-6111
SELECT ALL + COUNT ( * ) + - ( - CAST ( COUNT ( * ) AS INTEGER ) ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-6112
SELECT + - MAX( ALL + 43 ) AS col1 FROM tab2 AS cor0
----
-43

skipif mysql # not compatible
query I rowsort label-6112
SELECT + - MAX ( ALL + 43 ) AS col1 FROM tab2 AS cor0
----
-43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 39 col2 FROM tab1 AS cor0
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6114
SELECT ALL + CAST( - 37 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-37
-37
-37

skipif mysql # not compatible
query I rowsort label-6114
SELECT ALL + CAST ( - 37 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-37
-37
-37

query II rowsort
SELECT ALL + 21, + 8 AS col1 FROM tab0 AS cor0
----
21
8
21
8
21
8

query I rowsort
SELECT + - col1 + - 64 AS col2 FROM tab2 AS cor0
----
-115
-131
-141

query I rowsort
SELECT + col0 * + col1 + ( - col0 ) * - col0 FROM tab2 AS cor0
----
10650
4462
9024

onlyif mysql # aggregate syntax: 
query I rowsort label-6118
SELECT DISTINCT - COUNT( * ) * 4 AS col2 FROM tab2 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-6118
SELECT DISTINCT - COUNT ( * ) * 4 AS col2 FROM tab2 AS cor0
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6119
SELECT DISTINCT * FROM tab2 WHERE ( NOT CAST( NULL AS SIGNED ) IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6119
SELECT DISTINCT * FROM tab2 WHERE ( NOT CAST ( NULL AS INTEGER ) IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE + - col1 * - col2 + col1 * - + 38 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT + col1 + - col2 AS col2, col0 AS col0 FROM tab1
----
-21
91
-54
85
-82
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( 63 ) col1 FROM tab0
----
63
63
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6123
SELECT ALL 71 + + CAST( + - 88 AS SIGNED ) * 84 + - COUNT( * ) col1 FROM tab0
----
-7324

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6123
SELECT ALL 71 + + CAST ( + - 88 AS INTEGER ) * 84 + - COUNT ( * ) col1 FROM tab0
----
-7324

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + 66 * - 37 * + col2 * - col0 col1, + col1 col1 FROM tab2 AS cor0
----
-10622700
67
-2583636
51
-6251520
77

query I rowsort
SELECT + - 12 + + + 59 AS col0 FROM tab2 AS cor0
----
47
47
47

query I rowsort
SELECT DISTINCT col0 + - 1 AS col2 FROM tab2 AS cor0
----
45
63
74

query I rowsort
SELECT + 80 FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN NULL AND - - ( + - 53 )
----

query I rowsort
SELECT - 89 FROM tab0 WHERE + col1 IS NULL
----

query I rowsort
SELECT DISTINCT + 59 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
59

query I rowsort
SELECT DISTINCT - - col2 * col0 + + col0 + - col0 * + ( + 7 ) * + 81 + 20 AS col1 FROM tab1 AS cor0
----
-23950
-43075
-45298

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 * 54 col2 FROM tab2 AS cor0
----
2484
3456
4050

query I rowsort
SELECT ALL col2 - 32 + - - col2 + + col0 FROM tab2 AS cor0
----
112
159
60

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) <> + 88
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 12 NOT BETWEEN + 41 + col1 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col1 * + 21 + - col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6136
SELECT + CAST( - COUNT( DISTINCT + 95 ) AS SIGNED ) FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6136
SELECT + CAST ( - COUNT ( DISTINCT + 95 ) AS INTEGER ) FROM tab1 AS cor0
----
-1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 9 <= NULL
----

query II rowsort
SELECT ALL - - ( - ( - col0 ) ) AS col0, - col2 FROM tab1 AS cor0
----
51
-96
85
-59
91
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6139
SELECT ALL COUNT( * ) - COUNT( DISTINCT col1 ) + + 74 DIV + - 93, CAST( NULL AS SIGNED ) AS col2 FROM tab1 cor0
----
0
NULL

skipif mysql # not compatible
query II rowsort label-6139
SELECT ALL COUNT ( * ) - COUNT ( DISTINCT col1 ) + + 74 / + - 93, CAST ( NULL AS INTEGER ) AS col2 FROM tab1 cor0
----
0
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6140
SELECT DISTINCT COUNT( * ), ( + + COUNT( * ) ) / ( - + CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-6140
SELECT DISTINCT COUNT ( * ), ( + + COUNT ( * ) ) / ( - + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
3
NULL

query I rowsort
SELECT DISTINCT - 58 - col1 FROM tab1 AS cor0
----
-105
-63
-72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6142
SELECT - 45 * + - ( + COUNT( ALL - + 96 ) ) DIV - COUNT( * ) FROM tab2
----
-45

skipif mysql # not compatible
query I rowsort label-6142
SELECT - 45 * + - ( + COUNT ( ALL - + 96 ) ) / - COUNT ( * ) FROM tab2
----
-45

query I rowsort
SELECT DISTINCT - 16 * col1 * - 90 FROM tab2
----
110880
73440
96480

onlyif mysql # aggregate syntax: 
query I rowsort label-6144
SELECT DISTINCT + MIN( col1 ) AS col2 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-6144
SELECT DISTINCT + MIN ( col1 ) AS col2 FROM tab1
----
5

query I rowsort
SELECT ALL col2 + 12 * - col2 * - col2 / + col1 - + 17 AS col0 FROM tab1 WHERE + col2 IN ( + + 25 * - col2 + - col2, col0 ) OR - - col2 IN ( + col0 )
----

query II rowsort
SELECT DISTINCT col2, col0 AS col1 FROM tab0
----
10
87
47
15
99
97

query II rowsort
SELECT col0, + 92 FROM tab1
----
51
92
85
92
91
92

onlyif mysql # aggregate syntax: 
query I rowsort label-6148
SELECT COUNT( - col0 ) * - + MAX( + + col0 ) AS col2 FROM tab2
----
-225

skipif mysql # not compatible
query I rowsort label-6148
SELECT COUNT ( - col0 ) * - + MAX ( + + col0 ) AS col2 FROM tab2
----
-225

onlyif mysql # DIV for integer division: 
query I rowsort label-6149
SELECT + col1 DIV col0 DIV 52 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6149
SELECT + col1 / col0 / 52 AS col0 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6150
SELECT 30 * + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6150
SELECT 30 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 89 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6152
SELECT ALL + MAX( ALL + ( + - col0 ) ) col0 FROM tab1
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6152
SELECT ALL + MAX ( ALL + ( + - col0 ) ) col0 FROM tab1
----
-51

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( 84 / + 72 ) >= + 70
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col1 FROM tab2 cor0 WHERE NOT NULL >= + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6155
SELECT DISTINCT + 54 * - 73 + + ( + col2 ) DIV col2 * - col1 col1 FROM tab1 AS cor0
----
-3947
-3956
-3989

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6155
SELECT DISTINCT + 54 * - 73 + + ( + col2 ) / col2 * - col1 col1 FROM tab1 AS cor0
----
-3947
-3956
-3989

onlyif mysql # DIV for integer division: 
query I rowsort label-6156
SELECT ALL + ( - + col0 ) DIV + - col0 AS col0 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6156
SELECT ALL + ( - + col0 ) / + - col0 AS col0 FROM tab2 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6157
SELECT + - COUNT( * ) DIV - - MAX( ALL + col1 ) AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6157
SELECT + - COUNT ( * ) / - - MAX ( ALL + col1 ) AS col1 FROM tab0 AS cor0
----
0

query II rowsort
SELECT ALL + col0, + col1 / - col1 + - - ( 25 ) + - col2 AS col1 FROM tab0 AS cor0 WHERE NOT 66 <> NULL
----

query I rowsort
SELECT col2 + - + 23 FROM tab1
----
36
45
73

onlyif mysql # aggregate syntax: 
query II rowsort label-6160
SELECT DISTINCT + 47 AS col2, + COUNT( * ) FROM tab2
----
47
3

skipif mysql # not compatible
query II rowsort label-6160
SELECT DISTINCT + 47 AS col2, + COUNT ( * ) FROM tab2
----
47
3

query I rowsort
SELECT - col0 * + - 79 + col2 * + col2 + col1 FROM tab1
----
10201
11860
13259

query I rowsort
SELECT DISTINCT + 79 * 19 + col1 * - + col1 FROM tab0
----
-5060
1060
1500

onlyif mysql # aggregate syntax: 
query I rowsort label-6163
SELECT - COUNT( * ) + + 44 AS col2 FROM tab1
----
41

skipif mysql # not compatible
query I rowsort label-6163
SELECT - COUNT ( * ) + + 44 AS col2 FROM tab1
----
41

query I rowsort
SELECT ALL col2 + col0 * + - col1 FROM tab2
----
-2323
-4888
-4967

query I rowsort
SELECT DISTINCT + + col2 FROM tab0 WHERE NOT + 19 NOT BETWEEN - col1 AND - col2 * 67
----

query I rowsort
SELECT ALL - col1 + - 44 + - + col0 FROM tab0 cor0
----
-140
-142
-152

onlyif mysql # aggregate syntax: 
query I rowsort label-6167
SELECT ALL - + MAX( - 98 ) - - 70 FROM tab0 AS cor0
----
168

skipif mysql # not compatible
query I rowsort label-6167
SELECT ALL - + MAX ( - 98 ) - - 70 FROM tab0 AS cor0
----
168

onlyif mysql # aggregate syntax: 
query II rowsort label-6168
SELECT DISTINCT COUNT( * ) AS col1, 12 AS col2 FROM tab2 AS cor0
----
3
12

skipif mysql # not compatible
query II rowsort label-6168
SELECT DISTINCT COUNT ( * ) AS col1, 12 AS col2 FROM tab2 AS cor0
----
3
12

onlyif mysql # aggregate syntax: 
query I rowsort label-6169
SELECT DISTINCT COUNT( * ) + - COUNT( * ) + MAX( + + col2 ) * + 24 AS col2 FROM tab0
----
2376

skipif mysql # not compatible
query I rowsort label-6169
SELECT DISTINCT COUNT ( * ) + - COUNT ( * ) + MAX ( + + col2 ) * + 24 AS col2 FROM tab0
----
2376

query I rowsort
SELECT + + col2 + - col2 * - col2 AS col2 FROM tab0 WHERE + col0 <= NULL
----

query I rowsort
SELECT 37 + 17 FROM tab0 AS cor0
----
54
54
54

query I rowsort
SELECT DISTINCT col0 - + col0 * + + col0 AS col2 FROM tab1 cor0
----
-2550
-7140
-8190

query II rowsort
SELECT 18 + - - 89, 20 AS col1 FROM tab0 AS cor0
----
107
20
107
20
107
20

query I rowsort
SELECT DISTINCT - - col0 + ( + col0 ) * col1 FROM tab1 AS cor0
----
4368
510
765

query I rowsort
SELECT ALL col2 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
10
47
99

query I rowsort
SELECT ALL + col1 AS col0 FROM tab2 AS cor0 WHERE 71 * + - col2 + + - 61 BETWEEN + 31 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6177
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE NOT col1 / + - col0 BETWEEN ( 25 ) AND + col1 * col0
----
3

skipif mysql # not compatible
query I rowsort label-6177
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT col1 / + - col0 BETWEEN ( 25 ) AND + col1 * col0
----
3

query I rowsort
SELECT - - col1 FROM tab2 AS cor0 WHERE NOT + col0 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 31 * 38 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6180
SELECT + - 76 * + + 31 + - - col2 + + 87 DIV + col0 AS col2 FROM tab0 AS cor0
----
-2257
-2304
-2345

skipif mysql # not compatible
query I rowsort label-6180
SELECT + - 76 * + + 31 + - - col2 + + 87 / + col0 AS col2 FROM tab0 AS cor0
----
-2257
-2304
-2345

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6181
SELECT col2 * - + col0 + - + 29 - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-6181
SELECT col2 * - + col0 + - + 29 - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6182
SELECT col1 DIV + 61 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-6182
SELECT col1 / + 61 FROM tab2
----
0
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6183
SELECT - CAST( NULL AS SIGNED ) * 80 col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6183
SELECT - CAST ( NULL AS INTEGER ) * 80 col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6184
SELECT - CAST( + - 8 AS SIGNED ) AS col2 FROM tab2
----
8
8
8

skipif mysql # not compatible
query I rowsort label-6184
SELECT - CAST ( + - 8 AS INTEGER ) AS col2 FROM tab2
----
8
8
8

onlyif mysql # aggregate syntax: 
query I rowsort label-6185
SELECT + 21 * - COUNT( * ) AS col0 FROM tab0
----
-63

skipif mysql # not compatible
query I rowsort label-6185
SELECT + 21 * - COUNT ( * ) AS col0 FROM tab0
----
-63

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL = + + col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6187
SELECT DISTINCT - COUNT( * ) * + 58 FROM tab1 WHERE NOT - ( - 69 ) - - + CAST( + + col1 AS SIGNED ) > NULL
----
0

skipif mysql # not compatible
query I rowsort label-6187
SELECT DISTINCT - COUNT ( * ) * + 58 FROM tab1 WHERE NOT - ( - 69 ) - - + CAST ( + + col1 AS INTEGER ) > NULL
----
0

query I rowsort
SELECT ( - + 0 ) AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - + 16 * + + col1 FROM tab1 AS cor0
----
-224
-752
-80

query I rowsort
SELECT DISTINCT 73 + - 55 FROM tab2
----
18

query I rowsort
SELECT - 60 + - + 3 FROM tab1
----
-63
-63
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-6192
SELECT - - COUNT( * ) + + ( - SUM( DISTINCT - - col1 ) ) FROM tab2 cor0
----
-192

skipif mysql # not compatible
query I rowsort label-6192
SELECT - - COUNT ( * ) + + ( - SUM ( DISTINCT - - col1 ) ) FROM tab2 cor0
----
-192

onlyif mysql # aggregate syntax: 
query I rowsort label-6193
SELECT ALL 9 * + 7 + + SUM( ALL + col1 ) * + - COUNT( * ) + 17 AS col2 FROM tab0 AS cor0
----
-229

skipif mysql # not compatible
query I rowsort label-6193
SELECT ALL 9 * + 7 + + SUM ( ALL + col1 ) * + - COUNT ( * ) + 17 AS col2 FROM tab0 AS cor0
----
-229

query I rowsort
SELECT + col2 + + - col0 + 57 + - col1 + col2 * - + col0 + + 61 AS col1 FROM tab1 AS cor0
----
-4747
-4928
-6140

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 88 + - - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL col1 AS col2, - col1 FROM tab1 AS cor0
----
14
-14
47
-47
5
-5

query I rowsort
SELECT DISTINCT + col2 * + 46 FROM tab2 AS cor0
----
1058
1840
2668

query I rowsort
SELECT ALL ( - col2 ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col0 * - + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6200
SELECT + COUNT( * ) DIV - - COUNT( * ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-6200
SELECT + COUNT ( * ) / - - COUNT ( * ) FROM tab1
----
1

query I rowsort
SELECT DISTINCT col2 + - col0 - 29 * + col0 * col0 * + col2 AS col1 FROM tab1
----
-12362001
-16330155
-7241139

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL = + 11 * + col2
----

query I rowsort
SELECT DISTINCT + 48 + ( + 54 ) FROM tab1
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-6204
SELECT + SUM( - 58 ) FROM tab1
----
-174

skipif mysql # not compatible
query I rowsort label-6204
SELECT + SUM ( - 58 ) FROM tab1
----
-174

query I rowsort
SELECT DISTINCT + 29 AS col1 FROM tab1 WHERE NULL IS NULL
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-6206
SELECT DISTINCT - COUNT( * ) + + 43 FROM tab0
----
40

skipif mysql # not compatible
query I rowsort label-6206
SELECT DISTINCT - COUNT ( * ) + + 43 FROM tab0
----
40

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL > + col1 * + col2 * - - col1
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 >= + 59
----
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6209
SELECT + + 27 + - - MAX( ALL + - 69 ) AS col2 FROM tab0 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-6209
SELECT + + 27 + - - MAX ( ALL + - 69 ) AS col2 FROM tab0 AS cor0
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6210
SELECT - - SUM( + col1 ) + - + ( CAST( MAX( ALL CAST( NULL AS SIGNED ) ) AS SIGNED ) ) AS col1 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6210
SELECT - - SUM ( + col1 ) + - + ( CAST ( MAX ( ALL CAST ( NULL AS INTEGER ) ) AS INTEGER ) ) AS col1 FROM tab0 cor0
----
NULL

query I rowsort
SELECT - ( 98 ) FROM tab1 WHERE 0 IS NOT NULL
----
-98
-98
-98

onlyif mysql # aggregate syntax: 
query II rowsort label-6212
SELECT 10 col1, + COUNT( * ) FROM tab1
----
10
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6212
SELECT 10 col1, + COUNT ( * ) FROM tab1
----
10
3

query I rowsort
SELECT + col1 * + - col2 * 34 AS col1 FROM tab1 AS cor0
----
-10030
-108664
-45696

query I rowsort
SELECT ALL - col1 * + 76 AS col2 FROM tab2 AS cor0 WHERE NOT NULL < 55 - + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6215
SELECT + COUNT( + 95 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6215
SELECT + COUNT ( + 95 ) AS col0 FROM tab2 AS cor0
----
3

query I rowsort
SELECT - 50 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 29 + 54 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 54 * 8 FROM tab0 AS cor0
----
432

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6219
SELECT + CAST( NULL AS SIGNED ) * - - 67 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6219
SELECT + CAST ( NULL AS INTEGER ) * - - 67 AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6220
SELECT DISTINCT CAST( - col0 AS SIGNED ) AS col0, + 82 + - ( - + col2 ) col1 FROM tab2
----
-46
105
-64
122
-75
140

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6220
SELECT DISTINCT CAST ( - col0 AS INTEGER ) AS col0, + 82 + - ( - + col2 ) col1 FROM tab2
----
-46
105
-64
122
-75
140

query II rowsort
SELECT 66 * + col1 AS col1, - 66 AS col0 FROM tab2
----
3366
-66
4422
-66
5082
-66

query I rowsort
SELECT - ( + - 85 ) * 97 FROM tab1
----
8245
8245
8245

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL < - col1 + col0
----

query I rowsort
SELECT 7 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
7
7
7

query I rowsort
SELECT - 84 FROM tab1 AS cor0 WHERE NOT ( NOT ( NOT col2 + 9 * + col2 IS NULL ) )
----
-84
-84
-84

query I rowsort
SELECT - col0 + - col0 + + 7 AS col1 FROM tab1 AS cor0 WHERE NOT col0 - - 42 IS NULL
----
-163
-175
-95

query I rowsort
SELECT + col1 * 66 FROM tab2
----
3366
4422
5082

query I rowsort
SELECT DISTINCT + col2 + 17 AS col1 FROM tab0
----
116
27
64

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN + col0 * col2 + col2 * + col0 AND ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col1 * - col0 NOT IN ( 52, col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6231
SELECT ALL + + MAX( - col1 ) * - 53 FROM tab1 AS cor0
----
265

skipif mysql # not compatible
query I rowsort label-6231
SELECT ALL + + MAX ( - col1 ) * - 53 FROM tab1 AS cor0
----
265

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 67 col0 FROM tab2 AS cor0
----
67

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6233
SELECT + 27 DIV - CAST( + 28 AS SIGNED ) AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-6233
SELECT + 27 / - CAST ( + 28 AS INTEGER ) AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

onlyif mysql # DIV for integer division: 
query II rowsort label-6234
SELECT ALL col1, - 37 + - col2 + - + col1 DIV ( + ( - - col0 ) ) FROM tab1
----
14
-133
47
-105
5
-96

skipif mysql # not compatible
query II rowsort label-6234
SELECT ALL col1, - 37 + - col2 + - + col1 / ( + ( - - col0 ) ) FROM tab1
----
14
-133
47
-105
5
-96

query I rowsort
SELECT ALL + 82 + - + col1 FROM tab0
----
1
61
81

query I rowsort
SELECT DISTINCT 44 + - 95 * - + ( + ( 2 ) ) AS col2 FROM tab2
----
234

onlyif mysql # aggregate syntax: 
query I rowsort label-6237
SELECT ALL + COUNT( * ) + + - COUNT( * ) col2 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6237
SELECT ALL + COUNT ( * ) + + - COUNT ( * ) col2 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6238
SELECT ALL * FROM tab1 WHERE ( NOT NULL NOT BETWEEN ( + CAST( + col1 AS SIGNED ) ) AND NULL )
----

skipif mysql # not compatible
query III rowsort label-6238
SELECT ALL * FROM tab1 WHERE ( NOT NULL NOT BETWEEN ( + CAST ( + col1 AS INTEGER ) ) AND NULL )
----

query I rowsort
SELECT DISTINCT + col1 + - - col1 FROM tab1
----
10
28
94

query II rowsort
SELECT ALL + 74, 16 AS col2 FROM tab2 AS cor0
----
74
16
74
16
74
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6241
SELECT ALL - COUNT( + - 11 ) - - COUNT( * ) * CAST( + 86 AS SIGNED ) FROM tab2 cor0
----
255

skipif mysql # not compatible
query I rowsort label-6241
SELECT ALL - COUNT ( + - 11 ) - - COUNT ( * ) * CAST ( + 86 AS INTEGER ) FROM tab2 cor0
----
255

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL BETWEEN + col0 AND + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6243
SELECT - COUNT( + 24 ) * + - COUNT( - + 20 ) - - - 92 FROM tab2 AS cor0
----
-83

skipif mysql # not compatible
query I rowsort label-6243
SELECT - COUNT ( + 24 ) * + - COUNT ( - + 20 ) - - - 92 FROM tab2 AS cor0
----
-83

query I rowsort
SELECT - 11 * - - 88 - - col2 * 17 + 2 FROM tab1 AS cor0
----
190
37
666

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 * + col2 / - + 11 >= + col2
----

query I rowsort
SELECT ALL - col0 * - 50 AS col2 FROM tab1
----
2550
4250
4550

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6247
SELECT * FROM tab0 cor0 WHERE NOT - CAST( NULL AS SIGNED ) * + + col0 * + 44 IS NULL
----

skipif mysql # not compatible
query III rowsort label-6247
SELECT * FROM tab0 cor0 WHERE NOT - CAST ( NULL AS INTEGER ) * + + col0 * + 44 IS NULL
----

query I rowsort
SELECT ALL - - ( + + 8 ) FROM tab1 AS cor0
----
8
8
8

onlyif mysql # DIV for integer division: 
query I rowsort label-6249
SELECT + - col0 DIV + - col2 + col1 AS col0 FROM tab2 cor0
----
53
68
78

skipif mysql # not compatible
query I rowsort label-6249
SELECT + - col0 / + - col2 + col1 AS col0 FROM tab2 cor0
----
53
68
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 16 col1 FROM tab1 AS cor0
----
16
16
16

query I rowsort
SELECT 47 AS col0 FROM tab2 cor0 WHERE NOT col2 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6252
SELECT ALL COUNT( * ) * - COUNT( + 50 ) AS col1 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-6252
SELECT ALL COUNT ( * ) * - COUNT ( + 50 ) AS col1 FROM tab0
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-6253
SELECT DISTINCT + col0 DIV 51 AS col1 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-6253
SELECT DISTINCT + col0 / 51 AS col1 FROM tab1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6254
SELECT - col2 AS col2 FROM tab2 WHERE NOT CAST( NULL AS SIGNED ) * - 24 * - 94 BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-6254
SELECT - col2 AS col2 FROM tab2 WHERE NOT CAST ( NULL AS INTEGER ) * - 24 * - 94 BETWEEN NULL AND NULL
----

query I rowsort
SELECT - + col0 * + col1 + + + 2 FROM tab0 WHERE NOT + - col0 BETWEEN NULL AND col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6256
SELECT DISTINCT - CAST( - ( + + col2 ) AS SIGNED ), + col2 FROM tab2
----
23
23
40
40
58
58

skipif mysql # not compatible
query II rowsort label-6256
SELECT DISTINCT - CAST ( - ( + + col2 ) AS INTEGER ), + col2 FROM tab2
----
23
23
40
40
58
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6257
SELECT MAX( 50 ) AS col0 FROM tab1
----
50

skipif mysql # not compatible
query I rowsort label-6257
SELECT MAX ( 50 ) AS col0 FROM tab1
----
50

onlyif mysql # aggregate syntax: 
query II rowsort label-6258
SELECT DISTINCT COUNT( * ), COUNT( * ) AS col1 FROM tab1 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-6258
SELECT DISTINCT COUNT ( * ), COUNT ( * ) AS col1 FROM tab1 AS cor0
----
3
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - col0 + - col0 col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-15
-87
-97

query I rowsort
SELECT - - 77 * + col2 AS col1 FROM tab2 cor0
----
1771
3080
4466

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 + + col0 + + - 85 * - - col2 + + + 54 col2 FROM tab2 AS cor0 WHERE NOT ( - - col2 ) <= - col1
----
-1906
-3359
-4868

onlyif mysql # aggregate syntax: 
query I rowsort label-6262
SELECT MAX( ALL + - 90 ) FROM tab0, tab0 cor0
----
-90

skipif mysql # not compatible
query I rowsort label-6262
SELECT MAX ( ALL + - 90 ) FROM tab0, tab0 cor0
----
-90

query I rowsort
SELECT ALL - col2 + + 90 AS col1 FROM tab0
----
-9
43
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6264
SELECT DISTINCT + 69 DIV + SUM( - col2 ) AS col2 FROM tab2 AS cor0 WHERE NOT 53 IN ( + - col0, col1, + col1 * 51 + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-6264
SELECT DISTINCT + 69 / + SUM ( - col2 ) AS col2 FROM tab2 AS cor0 WHERE NOT 53 IN ( + - col0, col1, + col1 * 51 + col0 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6265
SELECT DISTINCT COUNT( * ) + + + CAST( + MAX( + col2 ) AS SIGNED ) AS col0, CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
61
NULL

skipif mysql # not compatible
query II rowsort label-6265
SELECT DISTINCT COUNT ( * ) + + + CAST ( + MAX ( + col2 ) AS INTEGER ) AS col0, CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
61
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 < - ( + col2 )
----

query I rowsort
SELECT ALL col0 + 79 + ( + col1 ) AS col0 FROM tab2 WHERE NOT NULL IN ( + 10 )
----

query I rowsort
SELECT DISTINCT + 11 * - + col1 AS col1 FROM tab1
----
-154
-517
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6269
SELECT DISTINCT CAST( NULL AS SIGNED ) + 99 + + - COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6269
SELECT DISTINCT CAST ( NULL AS INTEGER ) + 99 + + - COUNT ( * ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6270
SELECT COUNT( ALL + - col2 ) - + 32 FROM tab1
----
-29

skipif mysql # not compatible
query I rowsort label-6270
SELECT COUNT ( ALL + - col2 ) - + 32 FROM tab1
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6271
SELECT col0 - + + CAST( 80 AS SIGNED ) col2 FROM tab2
----
-16
-34
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6271
SELECT col0 - + + CAST ( 80 AS INTEGER ) col2 FROM tab2
----
-16
-34
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 75 - 91 col2 FROM tab1
----
-16
-16
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6273
SELECT 26 / + 71 + - CAST( NULL AS SIGNED ) + 90 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6273
SELECT 26 / + 71 + - CAST ( NULL AS INTEGER ) + 90 AS col1 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE 38 * + col2 / + - col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6275
SELECT ALL + - col2 - - 79 DIV 30 AS col0 FROM tab0 AS cor0
----
-45
-8
-97

skipif mysql # not compatible
query I rowsort label-6275
SELECT ALL + - col2 - - 79 / 30 AS col0 FROM tab0 AS cor0
----
-45
-8
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-6276
SELECT DISTINCT + - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE col0 BETWEEN NULL AND col0
----
0

skipif mysql # not compatible
query I rowsort label-6276
SELECT DISTINCT + - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE col0 BETWEEN NULL AND col0
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 * + + ( - 42 ) NOT BETWEEN 58 AND + ( + + 82 )
----

query I rowsort
SELECT 10 * - col2 FROM tab2
----
-230
-400
-580

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - - col0 NOT BETWEEN 77 AND + 64
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + + ( - + col2 ) AS col2 FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-6281
SELECT - 79 * - COUNT( * ) AS col1 FROM tab0 AS cor0
----
237

skipif mysql # not compatible
query I rowsort label-6281
SELECT - 79 * - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
237

query I rowsort
SELECT DISTINCT - 15 * col2 FROM tab2 cor0
----
-345
-600
-870

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6283
SELECT ALL - 5 + col2 AS col2 FROM tab2 AS cor0 WHERE NULL = + col0 - col1 - - + col1 * + - CAST( 72 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-6283
SELECT ALL - 5 + col2 AS col2 FROM tab2 AS cor0 WHERE NULL = + col0 - col1 - - + col1 * + - CAST ( 72 AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6284
SELECT + + col0 AS col2 FROM tab2 AS cor0 WHERE NOT col0 * + + CAST( 3 AS SIGNED ) + col1 < + 70
----
46
64
75

skipif mysql # not compatible
query I rowsort label-6284
SELECT + + col0 AS col2 FROM tab2 AS cor0 WHERE NOT col0 * + + CAST ( 3 AS INTEGER ) + col1 < + 70
----
46
64
75

query I rowsort
SELECT DISTINCT + col1 FROM tab0 WHERE ( NULL > NULL )
----

query I rowsort
SELECT DISTINCT ( - 64 ) FROM tab0
----
-64

query II rowsort
SELECT ALL - col1 + + 87, col2 FROM tab2
----
10
40
20
58
36
23

onlyif mysql # aggregate syntax: 
query I rowsort label-6288
SELECT DISTINCT - MIN( - 58 ) AS col0 FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-6288
SELECT DISTINCT - MIN ( - 58 ) AS col0 FROM tab2
----
58

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - - col0 / - + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6290
SELECT + 50 * - COUNT( * ) + + 94 AS col1 FROM tab0
----
-56

skipif mysql # not compatible
query I rowsort label-6290
SELECT + 50 * - COUNT ( * ) + + 94 AS col1 FROM tab0
----
-56

query I rowsort
SELECT DISTINCT - col1 FROM tab2 AS cor0 WHERE NOT + col1 BETWEEN - col0 AND ( 68 )
----
-77

onlyif mysql # DIV for integer division: 
query II rowsort label-6292
SELECT - + col0 DIV col0 * + + 40 + + 94 + + 12 AS col2, - 81 FROM tab2 AS cor0
----
66
-81
66
-81
66
-81

skipif mysql # not compatible
query II rowsort label-6292
SELECT - + col0 / col0 * + + 40 + + 94 + + 12 AS col2, - 81 FROM tab2 AS cor0
----
66
-81
66
-81
66
-81

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 81 IS NULL
----

query I rowsort
SELECT DISTINCT + 89 + col2 - + 75 AS col0 FROM tab1 AS cor0 WHERE NOT + col2 * + - col0 + + 38 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NOT NULL NOT BETWEEN 63 AND + - col2 + + 23 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6296
SELECT DISTINCT + COUNT( * ) * - COUNT( * ) FROM tab2 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-6296
SELECT DISTINCT + COUNT ( * ) * - COUNT ( * ) FROM tab2 cor0
----
-9

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 15 <= NULL
----

query I rowsort
SELECT + col2 + + 43 FROM tab2 cor0 WHERE ( NOT NULL IS NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6299
SELECT - CAST( col2 AS SIGNED ) + - + 56 + + + col1 AS col2, col2 FROM tab0 AS cor0
----
-154
99
-22
47
-45
10

skipif mysql # not compatible
query II rowsort label-6299
SELECT - CAST ( col2 AS INTEGER ) + - + 56 + + + col1 AS col2, col2 FROM tab0 AS cor0
----
-154
99
-22
47
-45
10

query II rowsort
SELECT - + col1 + + col1 * ( + col0 ) * - + ( 20 ) * + 64 + + col2 AS col1, 24 FROM tab0 AS cor0
----
-124062
24
-1555234
24
-2338571
24

onlyif mysql # aggregate syntax: 
query I rowsort label-6301
SELECT + MAX( DISTINCT - + col0 ) + + - 40 AS col0 FROM tab0
----
-55

skipif mysql # not compatible
query I rowsort label-6301
SELECT + MAX ( DISTINCT - + col0 ) + + - 40 AS col0 FROM tab0
----
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6302
SELECT col1 + - + col0 * - + CAST( NULL AS SIGNED ) + + 81 * + + col0 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6302
SELECT col1 + - + col0 * - + CAST ( NULL AS INTEGER ) + + 81 * + + col0 AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 + + col0 * + col0 AS col1 FROM tab0
----
178
7559
9310

onlyif mysql # aggregate syntax: 
query I rowsort label-6304
SELECT COUNT( * ) + COUNT( * ) * - COUNT( * ) FROM tab1
----
-6

skipif mysql # not compatible
query I rowsort label-6304
SELECT COUNT ( * ) + COUNT ( * ) * - COUNT ( * ) FROM tab1
----
-6

query I rowsort
SELECT DISTINCT - col0 + + col2 * - 27 AS col1 FROM tab1
----
-1678
-1927
-2643

query I rowsort
SELECT - col0 * - 25 FROM tab1
----
1275
2125
2275

onlyif mysql # aggregate syntax: 
query I rowsort label-6307
SELECT ALL COUNT( 11 ) * - 71 FROM tab2
----
-213

skipif mysql # not compatible
query I rowsort label-6307
SELECT ALL COUNT ( 11 ) * - 71 FROM tab2
----
-213

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - + col1 col2 FROM tab1
----
21
54
82

onlyif mysql # DIV for integer division: 
query I rowsort label-6309
SELECT DISTINCT + 2 DIV 2 - + + 61 AS col2 FROM tab0
----
-60

skipif mysql # not compatible
query I rowsort label-6309
SELECT DISTINCT + 2 / 2 - + + 61 AS col2 FROM tab0
----
-60

query II rowsort
SELECT DISTINCT + 91 AS col1, - 95 FROM tab1 cor0
----
91
-95

query I rowsort
SELECT DISTINCT 34 * + col2 FROM tab2 AS cor0
----
1360
1972
782

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6312
SELECT - COUNT( * ) DIV + - 42 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6312
SELECT - COUNT ( * ) / + - 42 FROM tab2 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 91 * 58 col2 FROM tab0 AS cor0
----
5278
5278
5278

onlyif mysql # aggregate syntax: 
query I rowsort label-6314
SELECT + 48 * + + ( - MAX( col1 ) ) FROM tab1 AS cor0
----
-2256

skipif mysql # not compatible
query I rowsort label-6314
SELECT + 48 * + + ( - MAX ( col1 ) ) FROM tab1 AS cor0
----
-2256

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6315
SELECT + CAST( + 45 AS SIGNED ) * COUNT( DISTINCT - col2 ) DIV - + 96 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6315
SELECT + CAST ( + 45 AS INTEGER ) * COUNT ( DISTINCT - col2 ) / - + 96 FROM tab1 AS cor0
----
-1

query I rowsort
SELECT - 81 AS col0 FROM tab0 cor0
----
-81
-81
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 68 * + - col2 col1 FROM tab1 AS cor0
----
-4012
-4624
-6528

query I rowsort
SELECT DISTINCT + - 68 * + + col0 FROM tab0 AS cor0
----
-1020
-5916
-6596

query I rowsort
SELECT DISTINCT + col2 FROM tab0 AS cor0 WHERE 35 > - - col0
----
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6320
SELECT ALL 38 DIV COUNT( * ) FROM tab0 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-6320
SELECT ALL 38 / COUNT ( * ) FROM tab0 AS cor0
----
12

query I rowsort
SELECT - col2 AS col0 FROM tab2 WHERE NOT + 67 IS NULL
----
-23
-40
-58

query I rowsort
SELECT ALL + col0 + + col1 + col2 FROM tab1
----
149
161
206

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 1 col2 FROM tab0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-6324
SELECT COUNT( * ) AS col1, + 54 FROM tab1
----
3
54

skipif mysql # not compatible
query II rowsort label-6324
SELECT COUNT ( * ) AS col1, + 54 FROM tab1
----
3
54

onlyif mysql # aggregate syntax: 
query I rowsort label-6325
SELECT COUNT( * ) * + 19 AS col1 FROM tab0
----
57

skipif mysql # not compatible
query I rowsort label-6325
SELECT COUNT ( * ) * + 19 AS col1 FROM tab0
----
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 50 + - + col2 * - - col0 col2, col1 * + col1 + + col2 FROM tab0 cor0 WHERE + col0 > 36
----
-820
451
-9553
100

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN col2 AND - col0
----

query I rowsort
SELECT col1 + + 43 FROM tab1 cor0
----
48
57
90

query I rowsort
SELECT DISTINCT + + 8 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
8

query II rowsort
SELECT DISTINCT 67, 52 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
67
52

query I rowsort
SELECT ALL + col2 * - col1 + col1 / col0 FROM tab2 AS cor0 WHERE NULL >= + col2 * col1 + + 18
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6332
SELECT ALL + - 60 - + COUNT( * ) * - + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-6332
SELECT ALL + - 60 - + COUNT ( * ) * - + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6333
SELECT - - CAST( NULL AS SIGNED ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6333
SELECT - - CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6334
SELECT + MAX( + col0 ) AS col2, COUNT( * ) FROM tab1 AS cor0
----
91
3

skipif mysql # not compatible
query II rowsort label-6334
SELECT + MAX ( + col0 ) AS col2, COUNT ( * ) FROM tab1 AS cor0
----
91
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6335
SELECT DISTINCT + COUNT( * ) DIV 85 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6335
SELECT DISTINCT + COUNT ( * ) / 85 AS col2 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6336
SELECT ALL - 84 * COUNT( * ) AS col2 FROM tab1
----
-252

skipif mysql # not compatible
query I rowsort label-6336
SELECT ALL - 84 * COUNT ( * ) AS col2 FROM tab1
----
-252

onlyif mysql # aggregate syntax: 
query I rowsort label-6337
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab1, tab1 cor0
----
9

skipif mysql # not compatible
query I rowsort label-6337
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab1, tab1 cor0
----
9

query II rowsort
SELECT - col0, + col2 FROM tab0
----
-15
47
-87
10
-97
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6339
SELECT MAX( ( col2 ) ) col0 FROM tab1
----
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6339
SELECT MAX ( ( col2 ) ) col0 FROM tab1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6340
SELECT COUNT( * ) * COUNT( * ) AS col1 FROM tab0, tab1 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-6340
SELECT COUNT ( * ) * COUNT ( * ) AS col1 FROM tab0, tab1 AS cor0
----
81

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 50 + - + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - + col0 AS col0 FROM tab2 AS cor0 WHERE NOT + col0 * - 69 + col2 < - 18 * - + col2
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( 1 ) NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT ALL + col2 + - col1 FROM tab2 WHERE NULL IN ( + 96 * + ( + col2 ) )
----

query I rowsort
SELECT + 59 * - col1 + col0 AS col1 FROM tab2
----
-2963
-3878
-4479

query I rowsort
SELECT - ( - col0 ) * - col2 + + 36 AS col1 FROM tab0
----
-669
-834
-9567

query I rowsort
SELECT DISTINCT 31 - ( 58 ) FROM tab2
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-6348
SELECT + ( 96 ) + COUNT( * ) FROM tab1
----
99

skipif mysql # not compatible
query I rowsort label-6348
SELECT + ( 96 ) + COUNT ( * ) FROM tab1
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6349
SELECT - 25 * 90 + - COUNT( * ) AS col2 FROM tab2
----
-2253

skipif mysql # not compatible
query I rowsort label-6349
SELECT - 25 * 90 + - COUNT ( * ) AS col2 FROM tab2
----
-2253

onlyif mysql # aggregate syntax: 
query I rowsort label-6350
SELECT - COUNT( * ) * COUNT( * ) FROM tab0 WHERE ( 11 ) IS NOT NULL
----
-9

skipif mysql # not compatible
query I rowsort label-6350
SELECT - COUNT ( * ) * COUNT ( * ) FROM tab0 WHERE ( 11 ) IS NOT NULL
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 21 col2 FROM tab1 WHERE NULL IS NULL
----
21
21
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 27 * + col2 col2 FROM tab0 WHERE + col0 / col1 IS NULL
----

query I rowsort
SELECT ALL + col2 * 51 + col0 AS col0 FROM tab2
----
1219
2104
3033

onlyif mysql # aggregate syntax: 
query I rowsort label-6354
SELECT + COUNT( * ) * MAX( + ( - col0 ) ) + COUNT( * ) FROM tab0
----
-42

skipif mysql # not compatible
query I rowsort label-6354
SELECT + COUNT ( * ) * MAX ( + ( - col0 ) ) + COUNT ( * ) FROM tab0
----
-42

query I rowsort
SELECT + 59 * - ( 98 * - col1 ) + - 47 FROM tab0
----
121375
468295
5735

query I rowsort
SELECT - 77 * + col2 + col1 AS col1 FROM tab2
----
-1720
-3003
-4399

query I rowsort
SELECT ALL 3 * col2 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT 14 * + col1 AS col2 FROM tab1
----
196
658
70

query I rowsort
SELECT col2 FROM tab1 WHERE NOT NULL <> + col0 * - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6360
SELECT 10 * + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6360
SELECT 10 * + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 69 * + 22 + + ( col0 + - col0 * + 46 ) AS col0 FROM tab2
----
-3588
-4398
-4893

query I rowsort
SELECT + col1 * 66 FROM tab0
----
1386
5346
66

query I rowsort
SELECT DISTINCT - ( 16 ) * col1 FROM tab1
----
-224
-752
-80

query I rowsort
SELECT ALL + col1 / + 25 FROM tab1 WHERE - col2 + - col2 IS NULL
----

query I rowsort
SELECT ALL - col0 * + col0 + col2 * - col0 FROM tab0
----
-19012
-8439
-930

query I rowsort
SELECT 94 FROM tab2 WHERE + col2 IS NOT NULL
----
94
94
94

onlyif mysql # aggregate syntax: 
query I rowsort label-6367
SELECT MAX( ALL + 36 ) * + COUNT( * ) FROM tab1
----
108

skipif mysql # not compatible
query I rowsort label-6367
SELECT MAX ( ALL + 36 ) * + COUNT ( * ) FROM tab1
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-6368
SELECT DISTINCT MAX( ALL col1 ) * + MAX( ALL + col2 + - 38 ) AS col2 FROM tab2 AS cor0
----
1540

skipif mysql # not compatible
query I rowsort label-6368
SELECT DISTINCT MAX ( ALL col1 ) * + MAX ( ALL + col2 + - 38 ) AS col2 FROM tab2 AS cor0
----
1540

query I rowsort
SELECT ALL ( 5 ) + col1 FROM tab2 AS cor0
----
56
72
82

query I rowsort
SELECT - 30 + - 67 * col1 AS col2 FROM tab2 cor0 WHERE ( + col1 ) IS NOT NULL
----
-3447
-4519
-5189

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL IN ( + ( - col1 ) )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6372
SELECT ALL - col1 AS col1 FROM tab1 AS cor0 WHERE NOT CAST( NULL AS DECIMAL ) / - col2 IN ( - ( col2 ) )
----

skipif mysql # not compatible
query I rowsort label-6372
SELECT ALL - col1 AS col1 FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS REAL ) / - col2 IN ( - ( col2 ) )
----

query I rowsort
SELECT 23 AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
23
23
23

onlyif mysql # DIV for integer division: 
query I rowsort label-6374
SELECT 94 DIV 66 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6374
SELECT 94 / 66 FROM tab2
----
1
1
1

query I rowsort
SELECT DISTINCT - 79 + 66 FROM tab0
----
-13

query I rowsort
SELECT ALL + 46 + - col1 FROM tab2
----
-21
-31
-5

query I rowsort
SELECT DISTINCT 0 * col0 AS col2 FROM tab1 AS cor0 WHERE col1 <= col1
----
0

query I rowsort
SELECT ALL 67 FROM tab2 AS cor0 WHERE NOT 32 + + 22 <= 35
----
67
67
67

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 51 + 96 IN ( col2 )
----

query I rowsort
SELECT ALL + - col1 + + 72 FROM tab0 cor0
----
-9
51
71

query I rowsort
SELECT + 97 FROM tab2 AS cor0 WHERE NULL < + col1
----

query I rowsort
SELECT DISTINCT + 6 + + col2 * col0 FROM tab2 cor0
----
1064
2566
4356

query I rowsort
SELECT ALL col0 * 85 FROM tab1 AS cor0 WHERE + 21 * - 10 > - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6384
SELECT + - COUNT( * ) + + 19 AS col0 FROM tab1 AS cor0
----
16

skipif mysql # not compatible
query I rowsort label-6384
SELECT + - COUNT ( * ) + + 19 AS col0 FROM tab1 AS cor0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-6385
SELECT - ( + - COUNT( + col1 ) ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-6385
SELECT - ( + - COUNT ( + col1 ) ) AS col0 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6386
SELECT ALL - MAX( ALL col0 ) FROM tab2 WHERE NOT + 75 * + 36 IS NULL
----
-75

skipif mysql # not compatible
query I rowsort label-6386
SELECT ALL - MAX ( ALL col0 ) FROM tab2 WHERE NOT + 75 * + 36 IS NULL
----
-75

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6387
SELECT ALL ( - col1 ) * + col2 FROM tab0 WHERE NOT NULL NOT BETWEEN + ( ( - col1 ) ) AND 48 - - CAST( + CAST( NULL AS DECIMAL ) + 58 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-6387
SELECT ALL ( - col1 ) * + col2 FROM tab0 WHERE NOT NULL NOT BETWEEN + ( ( - col1 ) ) AND 48 - - CAST ( + CAST ( NULL AS REAL ) + 58 AS INTEGER )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT 75 * - col0 + col2 NOT BETWEEN NULL AND + ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6389
SELECT + - COUNT( * ) * + 26 AS col0 FROM tab2 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-6389
SELECT + - COUNT ( * ) * + 26 AS col0 FROM tab2 AS cor0
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-6390
SELECT + - MAX( 83 ) FROM tab0 AS cor0
----
-83

skipif mysql # not compatible
query I rowsort label-6390
SELECT + - MAX ( 83 ) FROM tab0 AS cor0
----
-83

query I rowsort
SELECT 96 * + + col1 AS col2 FROM tab1 cor0
----
1344
4512
480

query I rowsort
SELECT DISTINCT - + 47 * - col2 FROM tab1 cor0
----
2773
3196
4512

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6393
SELECT ALL CAST( - - col0 AS SIGNED ) FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-6393
SELECT ALL CAST ( - - col0 AS INTEGER ) FROM tab0 AS cor0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6394
SELECT - + SUM( - - 39 ) FROM tab1 AS cor0
----
-117

skipif mysql # not compatible
query I rowsort label-6394
SELECT - + SUM ( - - 39 ) FROM tab1 AS cor0
----
-117

onlyif mysql # aggregate syntax: 
query I rowsort label-6395
SELECT - SUM( ALL + 2 ) FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-6395
SELECT - SUM ( ALL + 2 ) FROM tab0 AS cor0
----
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6396
SELECT ALL COUNT( * ) DIV - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-1

skipif mysql # not compatible
query I rowsort label-6396
SELECT ALL COUNT ( * ) / - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6397
SELECT DISTINCT COUNT( * ) AS col2 FROM tab2 WHERE ( NOT col2 IS NOT NULL )
----
0

skipif mysql # not compatible
query I rowsort label-6397
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab2 WHERE ( NOT col2 IS NOT NULL )
----
0

query I rowsort
SELECT + 20 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 9 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6400
SELECT ALL + - MAX( DISTINCT + + 37 ) FROM tab2 AS cor0
----
-37

skipif mysql # not compatible
query I rowsort label-6400
SELECT ALL + - MAX ( DISTINCT + + 37 ) FROM tab2 AS cor0
----
-37

query II rowsort
SELECT DISTINCT - col2 AS col1, + 70 FROM tab1 AS cor0
----
-59
70
-68
70
-96
70

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE - col1 < NULL
----

query I rowsort
SELECT ALL + col1 * + ( - col1 ) FROM tab1 AS cor0
----
-196
-2209
-25

query II rowsort
SELECT ALL col2, col1 AS col0 FROM tab0 AS cor0
----
10
21
47
81
99
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6405
SELECT COUNT( * ) * 34 * + CAST( NULL AS DECIMAL ) + + SUM( ALL - col0 + col1 ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6405
SELECT COUNT ( * ) * 34 * + CAST ( NULL AS REAL ) + + SUM ( ALL - col0 + col1 ) AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + 88 * - - col2 + + - col1 * col1 AS col1 FROM tab2 AS cor0
----
-2409
-577
615

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( + col0 ) * col0 <= ( - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6408
SELECT ALL col1 / CAST( NULL AS SIGNED ) AS col0 FROM tab2 WHERE NULL NOT BETWEEN col2 AND + col1
----

skipif mysql # not compatible
query I rowsort label-6408
SELECT ALL col1 / CAST ( NULL AS INTEGER ) AS col0 FROM tab2 WHERE NULL NOT BETWEEN col2 AND + col1
----

query I rowsort
SELECT ALL col2 + 97 + - col0 * col2 + + col2 AS col1 FROM tab1
----
-4607
-4800
-5955

query I rowsort
SELECT DISTINCT + col1 * col2 FROM tab1 WHERE ( col1 / 28 - - ( + col0 + col1 * col2 ) ) IS NOT NULL
----
1344
295
3196

query I rowsort
SELECT DISTINCT + col1 * - col0 FROM tab0 WHERE + - col2 IS NOT NULL
----
-1215
-1827
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-6412
SELECT + COUNT( ALL - 53 ) AS col2 FROM tab0 WHERE + col2 + - ( - col2 ) NOT IN ( + col1 )
----
3

skipif mysql # not compatible
query I rowsort label-6412
SELECT + COUNT ( ALL - 53 ) AS col2 FROM tab0 WHERE + col2 + - ( - col2 ) NOT IN ( + col1 )
----
3

query III rowsort
SELECT * FROM tab1 WHERE - + col1 * - col1 < 82
----
85
5
59

query I rowsort
SELECT + ( - 26 ) * col0 FROM tab1 WHERE NULL NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT ALL + 23 + - col0, + col0 FROM tab2
----
-23
46
-41
64
-52
75

query III rowsort
SELECT * FROM tab1 WHERE - + col1 <> ( NULL )
----

query I rowsort
SELECT - col1 * + - 18 FROM tab0
----
1458
18
378

onlyif mysql # aggregate syntax: 
query I rowsort label-6418
SELECT DISTINCT - 40 + - + COUNT( ALL col2 ) + - + 28 FROM tab1
----
-71

skipif mysql # not compatible
query I rowsort label-6418
SELECT DISTINCT - 40 + - + COUNT ( ALL col2 ) + - + 28 FROM tab1
----
-71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 - col2 col0 FROM tab0 AS cor0
----
-100
-128
-31

query I rowsort
SELECT DISTINCT + + col0 * col2 * - 81 * - - 26 + col0 AS col1 FROM tab1 AS cor0
----
-10310925
-10561505
-13031837

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( ( NULL ) NOT BETWEEN NULL AND ( - ( - 96 ) + 36 ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6422
SELECT DISTINCT MAX( ALL - col1 ) * - 51 - - 26 DIV + 67 AS col0 FROM tab0 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-6422
SELECT DISTINCT MAX ( ALL - col1 ) * - 51 - - 26 / + 67 AS col0 FROM tab0 AS cor0
----
51

query I rowsort
SELECT DISTINCT + 80 + + - col0 AS col1 FROM tab1
----
-11
-5
29

query I rowsort
SELECT ALL ( + col1 ) FROM tab0 WHERE - 74 IN ( + 23 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( ( + col2 ) ) IS NOT NULL
----

query I rowsort
SELECT - col1 AS col0 FROM tab2 WHERE NULL NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE ( NULL ) IN ( + col2, + col2 * + col2 * 47 + - 62 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 * - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6429
SELECT DISTINCT 61 * - + 18 + - SUM( DISTINCT - + col0 ) col1 FROM tab1 AS cor0
----
-871

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6429
SELECT DISTINCT 61 * - + 18 + - SUM ( DISTINCT - + col0 ) col1 FROM tab1 AS cor0
----
-871

query I rowsort
SELECT + + col2 * + - col1 AS col2 FROM tab0 cor0
----
-210
-3807
-99

query II rowsort
SELECT DISTINCT col2 AS col2, + 71 * - col0 AS col2 FROM tab0 AS cor0
----
10
-6177
47
-1065
99
-6887

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6432
SELECT ALL ( - CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6432
SELECT ALL ( - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + col0 * - col0 AS col1 FROM tab0 AS cor0
----
-225
-7569
-9409

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL IN ( - 30 + 11 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 25 col1 FROM tab0, tab2 AS cor0
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-6436
SELECT col1 DIV - 65 AS col1 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6436
SELECT col1 / - 65 AS col1 FROM tab0
----
-1
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT DISTINCT 88 col1, 29 col0, + 27 AS col1 FROM tab1
----
88
29
27

query II rowsort
SELECT ALL 77, - 9 AS col2 FROM tab0
----
77
-9
77
-9
77
-9

query I rowsort
SELECT 17 FROM tab2 AS cor0 WHERE NOT ( col2 * col1 ) IS NULL
----
17
17
17

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6440
SELECT ALL + - col1 / - ( 39 + - col0 ) FROM tab1 AS cor0 WHERE NULL IN ( + 96 + + col2, CAST( - 64 AS DECIMAL ) )
----

skipif mysql # not compatible
query I rowsort label-6440
SELECT ALL + - col1 / - ( 39 + - col0 ) FROM tab1 AS cor0 WHERE NULL IN ( + 96 + + col2, CAST ( - 64 AS REAL ) )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 * - 83 BETWEEN ( - - ( + col0 ) ) AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6442
SELECT DISTINCT + CAST( - col0 AS SIGNED ) * + 32 * col2 * col0 + - + col0 + + col1 * col0 FROM tab0
----
-2420340
-29807712
-337200

skipif mysql # not compatible
query I rowsort label-6442
SELECT DISTINCT + CAST ( - col0 AS INTEGER ) * + 32 * col2 * col0 + - + col0 + + col1 * col0 FROM tab0
----
-2420340
-29807712
-337200

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 col2 FROM tab2 WHERE - - col1 + - 76 + - - col2 IS NULL
----

query I rowsort
SELECT DISTINCT - col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6445
SELECT DISTINCT - - ( - - ( - - COUNT( * ) ) ) col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6445
SELECT DISTINCT - - ( - - ( - - COUNT ( * ) ) ) col0 FROM tab1 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + ( - col0 ) * + col2 * + 12 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col2 + + 78 - - 21 + - ( - + col1 ) * - + 27 - + + col0 FROM tab1 AS cor0
----
-1193
-234
-62

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6448
SELECT DISTINCT + CAST( NULL AS DECIMAL ) AS col1, - col1 FROM tab0
----
NULL
-1
NULL
-21
NULL
-81

skipif mysql # not compatible
query II rowsort label-6448
SELECT DISTINCT + CAST ( NULL AS REAL ) AS col1, - col1 FROM tab0
----
NULL
-1
NULL
-21
NULL
-81

query I rowsort
SELECT ALL + col0 FROM tab0 WHERE NOT col2 IN ( + col1 - - - col1 * - col1 * + 78 )
----
15
87
97

query I rowsort
SELECT 30 + + 48 FROM tab0
----
78
78
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( + - 99 ) + - col2 AS col2, + col2 - 83 * 11 col2 FROM tab2
----
-122
-890
-139
-873
-157
-855

query I rowsort
SELECT - col1 + + + col1 AS col2 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6453
SELECT DISTINCT - col1 * + 86 + - + ( + col2 ) DIV + 92 AS col0 FROM tab2
----
-4386
-5762
-6622

skipif mysql # not compatible
query I rowsort label-6453
SELECT DISTINCT - col1 * + 86 + - + ( + col2 ) / + 92 AS col0 FROM tab2
----
-4386
-5762
-6622

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6454
SELECT + CAST( NULL AS SIGNED ) * + - col1 + + col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6454
SELECT + CAST ( NULL AS INTEGER ) * + - col1 + + col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 73 + + - 44 FROM tab1
----
-117
-117
-117

onlyif mysql # aggregate syntax: 
query I rowsort label-6456
SELECT + 25 + COUNT( * ) FROM tab0
----
28

skipif mysql # not compatible
query I rowsort label-6456
SELECT + 25 + COUNT ( * ) FROM tab0
----
28

query I rowsort
SELECT DISTINCT - 80 + - - col2 AS col0 FROM tab0
----
-33
-70
19

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6458
SELECT * FROM tab1 WHERE + CAST( NULL AS SIGNED ) IN ( - + col2 )
----

skipif mysql # not compatible
query III rowsort label-6458
SELECT * FROM tab1 WHERE + CAST ( NULL AS INTEGER ) IN ( - + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6459
SELECT - + ( - - COUNT( * ) ) AS col0 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6459
SELECT - + ( - - COUNT ( * ) ) AS col0 FROM tab2 cor0
----
-3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 63 + - col1 * ( 46 ) <= - - ( + 49 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6461
SELECT DISTINCT MIN( ALL - - col2 ) FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-6461
SELECT DISTINCT MIN ( ALL - - col2 ) FROM tab2 AS cor0
----
23

query I rowsort
SELECT ALL + ( + 83 ) * + col2 - 3 + + ( + col0 ) + 70 * + col0 * 91 AS col0 FROM tab1 AS cor0
----
332886
546429
585402

onlyif mysql # aggregate syntax: 
query I rowsort label-6463
SELECT - - 42 * + MIN( DISTINCT + + 19 ) FROM tab0 AS cor0
----
798

skipif mysql # not compatible
query I rowsort label-6463
SELECT - - 42 * + MIN ( DISTINCT + + 19 ) FROM tab0 AS cor0
----
798

query I rowsort
SELECT ALL 41 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE - 8 < - 80
----

query I rowsort
SELECT ALL col2 + - 45 AS col0 FROM tab1
----
14
23
51

query I rowsort
SELECT ALL col0 + + col1 FROM tab2 WHERE NOT + - 88 + - ( 20 ) + col1 + - col0 IN ( col0 )
----
141
142
97

query I rowsort
SELECT - 93 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 38f445d95788c7dc754ff688a62df03b

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6468
SELECT ALL 27 / 10 + ( + - 95 ) + - ( 74 ) FROM tab2 AS cor0 WHERE CAST( NULL AS DECIMAL ) BETWEEN 6 AND + col0
----

skipif mysql # not compatible
query I rowsort label-6468
SELECT ALL 27 / 10 + ( + - 95 ) + - ( 74 ) FROM tab2 AS cor0 WHERE CAST ( NULL AS REAL ) BETWEEN 6 AND + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6469
SELECT - CAST( - AVG ( ALL - col0 ) AS SIGNED ) FROM tab0 cor0
----
-66

skipif mysql # not compatible
query I rowsort label-6469
SELECT - CAST ( - AVG ( ALL - col0 ) AS INTEGER ) FROM tab0 cor0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-6470
SELECT SUM( - - col1 ) col0 FROM tab2
----
195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6470
SELECT SUM ( - - col1 ) col0 FROM tab2
----
195

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6471
SELECT ALL AVG ( ALL + 72 ) / - AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6471
SELECT ALL AVG ( ALL + 72 ) / - AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1
----
NULL

query I rowsort
SELECT - col1 FROM tab2 WHERE NOT - col2 * - + col0 NOT IN ( + col1, + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6473
SELECT * FROM tab2 WHERE NOT + - col2 * + - 59 * + - 55 - + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-6473
SELECT * FROM tab2 WHERE NOT + - col2 * + - 59 * + - 55 - + CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6474
SELECT ALL - + COUNT( * ) FROM tab1 AS cor0 WHERE NOT col0 - + 32 * - - col2 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-6474
SELECT ALL - + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT col0 - + 32 * - - col2 IS NULL
----
-3

query I rowsort
SELECT DISTINCT + col0 * - col1 + col1 AS col2 FROM tab0 AS cor0
----
-1134
-1806
-96

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( ( ( NULL ) = NULL ) )
----

query I rowsort
SELECT + ( + 86 ) FROM tab2 AS cor0
----
86
86
86

onlyif mysql # aggregate syntax: 
query I rowsort label-6478
SELECT + MAX( ALL + col0 ) AS col1 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-6478
SELECT + MAX ( ALL + col0 ) AS col1 FROM tab0 AS cor0
----
97

onlyif mysql # aggregate syntax: 
query II rowsort label-6479
SELECT DISTINCT + + COUNT( * ) AS col1, 49 AS col1 FROM tab0 AS cor0
----
3
49

skipif mysql # not compatible
query II rowsort label-6479
SELECT DISTINCT + + COUNT ( * ) AS col1, 49 AS col1 FROM tab0 AS cor0
----
3
49

query I rowsort
SELECT ALL + col0 + 97 + col2 FROM tab1
----
241
244
256

query I rowsort
SELECT ALL 10 + - col0 AS col2 FROM tab2 WHERE NULL >= NULL
----

query I rowsort
SELECT ALL + + col1 + col0 - - - col1 AS col0 FROM tab2 cor0
----
46
64
75

query I rowsort
SELECT - 36 + col0 AS col0 FROM tab1 AS cor0
----
15
49
55

onlyif mysql # DIV for integer division: 
query I rowsort label-6484
SELECT + 40 + + ( + col0 ) DIV - - col2 FROM tab2 AS cor0
----
41
41
42

skipif mysql # not compatible
query I rowsort label-6484
SELECT + 40 + + ( + col0 ) / - - col2 FROM tab2 AS cor0
----
41
41
42

query I rowsort
SELECT ALL - col2 * + + col0 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-4896
-5015
-6188

query I rowsort
SELECT col1 * - + 79 AS col0 FROM tab0 AS cor0
----
-1659
-6399
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6487
SELECT ALL - + col1 * + 37 + ( + 82 ) + + col2 / CAST( NULL AS SIGNED ) + + - col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6487
SELECT ALL - + col1 * + 37 + ( + 82 ) + + col2 / CAST ( NULL AS INTEGER ) + + - col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL >= col2 * col2 - + col0
----

query I rowsort
SELECT col2 * + ( + + col0 ) AS col1 FROM tab1 AS cor0
----
4896
5015
6188

query I rowsort
SELECT + col2 * + - col0 AS col1 FROM tab1 AS cor0
----
-4896
-5015
-6188

onlyif mysql # aggregate syntax: 
query I rowsort label-6491
SELECT ALL - SUM( ALL - col2 ) col2 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6491
SELECT ALL - SUM ( ALL - col2 ) col2 FROM tab1 AS cor0
----
223

query I rowsort
SELECT + ( + + col0 ) + + - col0 FROM tab2 WHERE col0 / col1 IS NULL
----

query I rowsort
SELECT DISTINCT col1 * + + col1 + - col0 * 45 FROM tab2
----
1114
3049
531

query I rowsort
SELECT DISTINCT col1 - 61 FROM tab0
----
-40
-60
20

query II rowsort
SELECT ALL 2 + - col2 - 57 AS col1, - col0 AS col2 FROM tab1
----
-114
-85
-123
-91
-151
-51

query I rowsort
SELECT - ( - 17 ) + + + 71 + - col1 FROM tab2 AS cor0
----
11
21
37

query I rowsort
SELECT ALL - 44 + + ( - 52 ) + - 78 * + - col1 FROM tab2 AS cor0
----
3882
5130
5910

query II rowsort
SELECT DISTINCT col1 - - - 11, col0 AS col2 FROM tab1 cor0
----
-6
85
3
51
36
91

query I rowsort
SELECT col2 * - 53 FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
-1219
-2120
-3074

query I rowsort
SELECT ALL 74 * + + col1 AS col1 FROM tab1
----
1036
3478
370

query II rowsort
SELECT DISTINCT 71 AS col0, + 6 - + col2 AS col1 FROM tab2
----
71
-17
71
-34
71
-52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col2 * + 80 col1 FROM tab1
----
391680
401200
495040

onlyif mysql # aggregate syntax: 
query I rowsort label-6503
SELECT + MAX( ALL 95 ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
95

skipif mysql # not compatible
query I rowsort label-6503
SELECT + MAX ( ALL 95 ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
95

query II rowsort
SELECT + col2, 46 AS col1 FROM tab2 AS cor0
----
23
46
40
46
58
46

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL BETWEEN - col2 / + 52 AND + col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) >= col2 / + 62
----

query II rowsort
SELECT - col2, 84 AS col2 FROM tab2 cor0
----
-23
84
-40
84
-58
84

query I rowsort
SELECT ALL - ( - - col2 ) AS col1 FROM tab2 AS cor0
----
-23
-40
-58

query I rowsort
SELECT DISTINCT - 93 - + col1 / col1 / - col2 AS col0 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN col0 AND - col0 * + - 1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6511
SELECT - 73 * - - col2 AS col1, + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
-4307
NULL
-4964
NULL
-7008
NULL

skipif mysql # not compatible
query II rowsort label-6511
SELECT - 73 * - - col2 AS col1, + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
-4307
NULL
-4964
NULL
-7008
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6512
SELECT DISTINCT - MAX( 94 ) FROM tab0
----
-94

skipif mysql # not compatible
query I rowsort label-6512
SELECT DISTINCT - MAX ( 94 ) FROM tab0
----
-94

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6513
SELECT ALL - 53, col0 * + CAST( - col2 AS DECIMAL ) AS col2 FROM tab0 WHERE NOT ( ( 54 ) ) = NULL
----

skipif mysql # not compatible
query II rowsort label-6513
SELECT ALL - 53, col0 * + CAST ( - col2 AS REAL ) AS col2 FROM tab0 WHERE NOT ( ( 54 ) ) = NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + - 70 >= NULL
----

query I rowsort
SELECT - - col2 + + col0 * + - col0 FROM tab2 AS cor0
----
-2093
-4056
-5567

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6516
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( 98, - 74, + - col0 - - CAST( NULL AS DECIMAL ) * 92 * col0, - col1 * - + col2, - 28 )
----

skipif mysql # not compatible
query III rowsort label-6516
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( 98, - 74, + - col0 - - CAST ( NULL AS REAL ) * 92 * col0, - col1 * - + col2, - 28 )
----

query I rowsort
SELECT 70 FROM tab1 WHERE NULL IS NULL
----
70
70
70

query II rowsort
SELECT DISTINCT col1, - 65 * + col0 + 43 AS col0 FROM tab1 WHERE NOT ( NULL NOT IN ( col1 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6519
SELECT ALL + 7 + ( COUNT( + 72 ) ) AS col2 FROM tab2
----
10

skipif mysql # not compatible
query I rowsort label-6519
SELECT ALL + 7 + ( COUNT ( + 72 ) ) AS col2 FROM tab2
----
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 col2 FROM tab0 AS cor0 WHERE + col0 BETWEEN - 0 + + ( + - 16 ) AND col2 * + - col1 * - - 82 * ( + - col0 )
----
10
47
99

query I rowsort
SELECT + col2 + 84 * - col0 + - col0 AS col2 FROM tab1 AS cor0
----
-4239
-7166
-7667

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6522
SELECT DISTINCT CAST( 51 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-6522
SELECT DISTINCT CAST ( 51 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
51

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL < - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6524
SELECT * FROM tab1 AS cor0 WHERE + col0 NOT IN ( - col2, col2 ) OR NOT col0 * + CAST( NULL AS SIGNED ) / + col0 - + ( col1 ) <> NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-6524
SELECT * FROM tab1 AS cor0 WHERE + col0 NOT IN ( - col2, col2 ) OR NOT col0 * + CAST ( NULL AS INTEGER ) / + col0 - + ( col1 ) <> NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col0 + + - col2 FROM tab1
----
-45
23
26

onlyif mysql # DIV for integer division: 
query I rowsort label-6526
SELECT ALL + 97 + + + col0 DIV col1 AS col0 FROM tab1
----
100
114
98

skipif mysql # not compatible
query I rowsort label-6526
SELECT ALL + 97 + + + col0 / col1 AS col0 FROM tab1
----
100
114
98

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6527
SELECT + CAST( NULL AS DECIMAL ) + COUNT( * ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6527
SELECT + CAST ( NULL AS REAL ) + COUNT ( * ) AS col2 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6528
SELECT - COUNT( * ) col0, COUNT( * ) FROM tab2
----
-3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6528
SELECT - COUNT ( * ) col0, COUNT ( * ) FROM tab2
----
-3
3

query I rowsort
SELECT DISTINCT - col2 + + 30 FROM tab0
----
-17
-69
20

query I rowsort
SELECT + 20 FROM tab1 WHERE + 87 IS NULL
----

query I rowsort
SELECT DISTINCT 50 + - 93 FROM tab2
----
-43

query II rowsort
SELECT DISTINCT - + col2 AS col2, - 97 AS col2 FROM tab1 AS cor0
----
-59
-97
-68
-97
-96
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - - col2 col2 FROM tab2 AS cor0
----
-1173
-3080
-3886

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 = ( NULL )
----

query I rowsort
SELECT DISTINCT - 89 FROM tab1 AS cor0 WHERE col0 >= ( + 44 )
----
-89

query I rowsort
SELECT DISTINCT 90 * ( + - col2 ) FROM tab0 AS cor0
----
-4230
-8910
-900

query I rowsort
SELECT + - col1 * + col2 - col2 - - - 6 AS col2 FROM tab1 AS cor0
----
-1446
-3270
-360

query II rowsort
SELECT ALL + 34 * 7 AS col2, - 50 FROM tab2 AS cor0
----
238
-50
238
-50
238
-50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6539
SELECT ALL - col2 + + - 88 - CAST( NULL AS SIGNED ) * + col2 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6539
SELECT ALL - col2 + + - 88 - CAST ( NULL AS INTEGER ) * + col2 AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6540
SELECT ALL COUNT( * ) * + 60 AS col2 FROM tab1
----
180

skipif mysql # not compatible
query I rowsort label-6540
SELECT ALL COUNT ( * ) * + 60 AS col2 FROM tab1
----
180

onlyif mysql # aggregate syntax: 
query I rowsort label-6541
SELECT - 90 * + - COUNT( * ) FROM tab2
----
270

skipif mysql # not compatible
query I rowsort label-6541
SELECT - 90 * + - COUNT ( * ) FROM tab2
----
270

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6542
SELECT + col1 * + + CAST( NULL AS SIGNED ) * col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6542
SELECT + col1 * + + CAST ( NULL AS INTEGER ) * col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6543
SELECT - + CAST( NULL AS DECIMAL ) * + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6543
SELECT - + CAST ( NULL AS REAL ) * + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 2 FROM tab0 AS cor0 WHERE + 67 - - col1 IS NOT NULL
----
2
2
2

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT 90 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6546
SELECT - col1 * - + col2 * + CAST( + col2 AS SIGNED ) AS col2, col1 + - 80 FROM tab0 cor0
----
178929
1
2100
-59
9801
-79

skipif mysql # not compatible
query II rowsort label-6546
SELECT - col1 * - + col2 * + CAST ( + col2 AS INTEGER ) AS col2, col1 + - 80 FROM tab0 cor0
----
178929
1
2100
-59
9801
-79

query I rowsort
SELECT DISTINCT col0 FROM tab0 AS cor0 WHERE NULL IN ( 22 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 41 + + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6549
SELECT DISTINCT - 99 - - + COUNT( * ) - + 35 FROM tab0 AS cor0
----
-131

skipif mysql # not compatible
query I rowsort label-6549
SELECT DISTINCT - 99 - - + COUNT ( * ) - + 35 FROM tab0 AS cor0
----
-131

query I rowsort
SELECT + col1 FROM tab0 AS cor0 WHERE col1 BETWEEN ( + + ( + col0 ) ) AND - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6551
SELECT - 85 DIV col1 AS col0 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6551
SELECT - 85 / col1 AS col0 FROM tab2 AS cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6552
SELECT ALL - - SUM( ALL + - col2 ) AS col0 FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-6552
SELECT ALL - - SUM ( ALL + - col2 ) AS col0 FROM tab2 AS cor0
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-6553
SELECT ALL 95 - - + COUNT( + 32 ) AS col2 FROM tab2 AS cor0
----
98

skipif mysql # not compatible
query I rowsort label-6553
SELECT ALL 95 - - + COUNT ( + 32 ) AS col2 FROM tab2 AS cor0
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-6554
SELECT - - COUNT( * ) * + ( - - 49 ) + + - 0 FROM tab1 AS cor0
----
147

skipif mysql # not compatible
query I rowsort label-6554
SELECT - - COUNT ( * ) * + ( - - 49 ) + + - 0 FROM tab1 AS cor0
----
147

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6555
SELECT DISTINCT - CAST( + MIN( ALL + col2 ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-6555
SELECT DISTINCT - CAST ( + MIN ( ALL + col2 ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-10

query I rowsort
SELECT DISTINCT + col2 * col1 + 64 + col0 * - + col1 FROM tab2 cor0
----
-1075
-1109
-1784

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + - 43 col1 FROM tab2
----
-2193
-2881
-3311

onlyif mysql # aggregate syntax: 
query I rowsort label-6558
SELECT SUM( - col0 ) AS col1 FROM tab2 WHERE + 65 BETWEEN - ( + col1 ) AND - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6558
SELECT SUM ( - col0 ) AS col1 FROM tab2 WHERE + 65 BETWEEN - ( + col1 ) AND - col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6559
SELECT ALL - 12 + - COUNT( * ) FROM tab1
----
-15

skipif mysql # not compatible
query I rowsort label-6559
SELECT ALL - 12 + - COUNT ( * ) FROM tab1
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-6560
SELECT + COUNT( * ) - + 21 AS col2 FROM tab1
----
-18

skipif mysql # not compatible
query I rowsort label-6560
SELECT + COUNT ( * ) - + 21 AS col2 FROM tab1
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-6561
SELECT ALL - MIN( 83 ) * + 99 * MAX( DISTINCT - - col1 ) AS col1 FROM tab1
----
-386199

skipif mysql # not compatible
query I rowsort label-6561
SELECT ALL - MIN ( 83 ) * + 99 * MAX ( DISTINCT - - col1 ) AS col1 FROM tab1
----
-386199

query I rowsort
SELECT ALL ( - + 47 ) FROM tab0 WHERE NULL > NULL
----

query III rowsort
SELECT * FROM tab1 WHERE + 63 NOT BETWEEN - col1 + col0 * - col0 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6564
SELECT 71 DIV - col2 + + col2 FROM tab1
----
58
67
96

skipif mysql # not compatible
query I rowsort label-6564
SELECT 71 / - col2 + + col2 FROM tab1
----
58
67
96

query I rowsort
SELECT ALL col0 + 62 + - - col2 FROM tab0
----
124
159
258

query I rowsort
SELECT + col0 + 60 + - + col0 FROM tab0
----
60
60
60

onlyif mysql # aggregate syntax: 
query I rowsort label-6567
SELECT - 81 + + COUNT( * ) FROM tab1
----
-78

skipif mysql # not compatible
query I rowsort label-6567
SELECT - 81 + + COUNT ( * ) FROM tab1
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-6568
SELECT ALL - - MIN( 96 ) FROM tab2 AS cor0 WHERE - col0 / + + col2 <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6568
SELECT ALL - - MIN ( 96 ) FROM tab2 AS cor0 WHERE - col0 / + + col2 <= NULL
----
NULL

query IIIIII rowsort
SELECT ALL * FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE NULL <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 AS col0, 49 col0 FROM tab0
----
15
49
87
49
97
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6571
SELECT - col0 + col0 AS col1 FROM tab0 AS cor0 WHERE NOT ( + 72 ) + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-6571
SELECT - col0 + col0 AS col1 FROM tab0 AS cor0 WHERE NOT ( + 72 ) + CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6572
SELECT - CAST( NULL AS DECIMAL ) AS col2, col0 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-6572
SELECT - CAST ( NULL AS REAL ) AS col2, col0 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

query I rowsort
SELECT - col2 + + col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT ALL 47 AS col0, - col1 + + 47 AS col0 FROM tab1 AS cor0
----
47
0
47
33
47
42

query I rowsort
SELECT - col1 * - - col2 AS col2 FROM tab2 AS cor0 WHERE NOT NULL = + 27
----

query I rowsort
SELECT DISTINCT - col0 + + - ( 26 ) - + + 21 FROM tab1
----
-132
-138
-98

query I rowsort
SELECT DISTINCT + col2 * 86 + 69 + + col0 AS col1 FROM tab1
----
5228
6008
8376

query I rowsort
SELECT col2 + 93 FROM tab1
----
152
161
189

onlyif mysql # aggregate syntax: 
query I rowsort label-6579
SELECT DISTINCT ( - COUNT( * ) ) + - 98 FROM tab0
----
-101

skipif mysql # not compatible
query I rowsort label-6579
SELECT DISTINCT ( - COUNT ( * ) ) + - 98 FROM tab0
----
-101

onlyif mysql # aggregate syntax: 
query I rowsort label-6580
SELECT - 66 + 23 + - + COUNT( * ) AS col1 FROM tab0
----
-46

skipif mysql # not compatible
query I rowsort label-6580
SELECT - 66 + 23 + - + COUNT ( * ) AS col1 FROM tab0
----
-46

query I rowsort
SELECT 70 + + 24 FROM tab1
----
94
94
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + + - col1 col1 FROM tab2
----
-28
-37
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-6583
SELECT ALL SUM( ALL + ( 61 ) ) FROM tab1
----
183

skipif mysql # not compatible
query I rowsort label-6583
SELECT ALL SUM ( ALL + ( 61 ) ) FROM tab1
----
183

query I rowsort
SELECT DISTINCT + 51 * + col2 + + col1 + + col0 FROM tab1
----
3099
3606
4961

query I rowsort
SELECT DISTINCT + + 87 FROM tab2 WHERE + col2 * + + col2 - - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6586
SELECT ALL 53 * + + COUNT( * ) FROM tab0
----
159

skipif mysql # not compatible
query I rowsort label-6586
SELECT ALL 53 * + + COUNT ( * ) FROM tab0
----
159

query III rowsort
SELECT * FROM tab2 WHERE col0 NOT IN ( + - col0, + ( + - col1 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 6 + - - col0 AS col1 FROM tab0
----
103
21
93

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 37 * + col1 IS NULL
----

query I rowsort
SELECT ALL + col2 + - - col0 * col0 AS col0 FROM tab2 AS cor0
----
2139
4136
5683

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 92 + - 23 col0 FROM tab1 AS cor0 WHERE ( - col2 ) IS NULL
----

query I rowsort
SELECT + col2 + + + col1 + col2 * + 49 FROM tab1 AS cor0
----
2955
3447
4814

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6593
SELECT + col1 AS col2 FROM tab1 AS cor0 WHERE + col1 * CAST( + - col2 AS SIGNED ) <= - col1 + + col2
----
14
47
5

skipif mysql # not compatible
query I rowsort label-6593
SELECT + col1 AS col2 FROM tab1 AS cor0 WHERE + col1 * CAST ( + - col2 AS INTEGER ) <= - col1 + + col2
----
14
47
5

query I rowsort
SELECT ALL col1 AS col2 FROM tab0 WHERE NOT ( NOT ( NOT NULL <> NULL ) )
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 AS cor0 WHERE 54 IS NOT NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

query I rowsort
SELECT + col1 * + - col0 FROM tab2
----
-2346
-4928
-5025

query I rowsort
SELECT ALL + 98 FROM tab2 WHERE NOT NULL IS NOT NULL
----
98
98
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6598
SELECT - 71 * - + 75 * - + COUNT( * ) DIV - + COUNT( * ) FROM tab0
----
5325

skipif mysql # not compatible
query I rowsort label-6598
SELECT - 71 * - + 75 * - + COUNT ( * ) / - + COUNT ( * ) FROM tab0
----
5325

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6599
SELECT ALL + COUNT( * ) DIV - ( + + 8 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6599
SELECT ALL + COUNT ( * ) / - ( + + 8 ) FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6600
SELECT - + SUM( col0 ) AS col1 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-6600
SELECT - + SUM ( col0 ) AS col1 FROM tab1 AS cor0
----
-227

query I rowsort
SELECT - ( + + 40 ) FROM tab0 cor0
----
-40
-40
-40

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6602
SELECT DISTINCT - - col0 * 77 - - + CAST( col0 AS SIGNED ) AS col2, - 14 + + 46 FROM tab1 WHERE NULL IN ( - 71, + col0 + + + col2 - + - col1 )
----

skipif mysql # not compatible
query II rowsort label-6602
SELECT DISTINCT - - col0 * 77 - - + CAST ( col0 AS INTEGER ) AS col2, - 14 + + 46 FROM tab1 WHERE NULL IN ( - 71, + col0 + + + col2 - + - col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6603
SELECT DISTINCT + 79 DIV col1 AS col2 FROM tab0
----
0
3
79

skipif mysql # not compatible
query I rowsort label-6603
SELECT DISTINCT + 79 / col1 AS col2 FROM tab0
----
0
3
79

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6604
SELECT * FROM tab0 WHERE NOT - ( + CAST( NULL AS SIGNED ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-6604
SELECT * FROM tab0 WHERE NOT - ( + CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 91 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 745d1c3a09d935465cad552325c5c945

query I rowsort
SELECT - 3 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + - 65 AS col2 FROM tab2 AS cor0
----
-65

query I rowsort
SELECT DISTINCT - 50 AS col0 FROM tab1 cor0
----
-50

query I rowsort
SELECT + col1 * + col2 - col0 * + - col1 * - col1 + + col1 AS col2 FROM tab0 AS cor0
----
-38136
-94527
3

query III rowsort
SELECT * FROM tab1 WHERE NULL <> + 24
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6611
SELECT ALL + COUNT( * ) FROM tab2 WHERE col1 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-6611
SELECT ALL + COUNT ( * ) FROM tab2 WHERE col1 IS NOT NULL
----
3

query I rowsort
SELECT DISTINCT 63 + + col0 FROM tab0
----
150
160
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6613
SELECT AVG ( - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6613
SELECT AVG ( - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) ) AS col1 FROM tab2
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL BETWEEN + - 64 + ( - col1 ) + + col2 * col0 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6615
SELECT - - col2 * col0 DIV - col2 FROM tab0 AS cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-6615
SELECT - - col2 * col0 / - col2 FROM tab0 AS cor0
----
-15
-87
-97

query I rowsort
SELECT - + 75 + - - col1 AS col1 FROM tab1 AS cor0
----
-28
-61
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-6617
SELECT DISTINCT - + COUNT( * ) * - + 33 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
297

skipif mysql # not compatible
query I rowsort label-6617
SELECT DISTINCT - + COUNT ( * ) * - + 33 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
297

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 54 IS NULL
----

query I rowsort
SELECT DISTINCT - - ( + 8 ) AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - 84 - - 16 AS col1 FROM tab0 AS cor0
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-6621
SELECT - MIN( + col2 ) AS col0 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-6621
SELECT - MIN ( + col2 ) AS col0 FROM tab1 AS cor0
----
-59

onlyif mysql # aggregate syntax: 
query II rowsort label-6622
SELECT 10 * - - 94 AS col1, COUNT( * ) AS col1 FROM tab0 AS cor0
----
940
3

skipif mysql # not compatible
query II rowsort label-6622
SELECT 10 * - - 94 AS col1, COUNT ( * ) AS col1 FROM tab0 AS cor0
----
940
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6623
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 34 IN ( - + 85 + + + CAST( + col2 AS SIGNED ), + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-6623
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 34 IN ( - + 85 + + + CAST ( + col2 AS INTEGER ), + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6624
SELECT CAST( NULL AS SIGNED ) - - 89 + - - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6624
SELECT CAST ( NULL AS INTEGER ) - - 89 + - - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6625
SELECT DISTINCT + - MIN( DISTINCT col2 ) FROM tab0 AS cor0 WHERE NOT NULL >= col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6625
SELECT DISTINCT + - MIN ( DISTINCT col2 ) FROM tab0 AS cor0 WHERE NOT NULL >= col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6626
SELECT ALL + COUNT( * ) * + 52 AS col0 FROM tab0 cor0
----
156

skipif mysql # not compatible
query I rowsort label-6626
SELECT ALL + COUNT ( * ) * + 52 AS col0 FROM tab0 cor0
----
156

query I rowsort
SELECT DISTINCT col2 * + 63 AS col1 FROM tab2
----
1449
2520
3654

onlyif mysql # aggregate syntax: 
query I rowsort label-6628
SELECT ALL - MIN( + + 66 ) AS col2 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-6628
SELECT ALL - MIN ( + + 66 ) AS col2 FROM tab1
----
-66

query I rowsort
SELECT + col0 * col0 * - 14 * 2 AS col1 FROM tab0
----
-211932
-263452
-6300

query I rowsort
SELECT col0 * - + 91 AS col0 FROM tab1
----
-4641
-7735
-8281

query I rowsort
SELECT + 88 * - + col1 AS col0 FROM tab0
----
-1848
-7128
-88

query I rowsort
SELECT - col1 * + col2 * + 49 FROM tab1
----
-14455
-156604
-65856

query I rowsort
SELECT - col1 * + 13 FROM tab0
----
-1053
-13
-273

query II rowsort
SELECT DISTINCT 21 AS col0, - col0 AS col0 FROM tab2
----
21
-46
21
-64
21
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-6635
SELECT COUNT( * ) * - 58 FROM tab1
----
-174

skipif mysql # not compatible
query I rowsort label-6635
SELECT COUNT ( * ) * - 58 FROM tab1
----
-174

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 col0 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN + 50 AND - 21 - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6637
SELECT - 55 * MAX( col0 ) FROM tab0
----
-5335

skipif mysql # not compatible
query I rowsort label-6637
SELECT - 55 * MAX ( col0 ) FROM tab0
----
-5335

query I rowsort
SELECT + 21 * + 34 AS col2 FROM tab0
----
714
714
714

onlyif mysql # aggregate syntax: 
query I rowsort label-6639
SELECT ALL - COUNT( - col1 ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6639
SELECT ALL - COUNT ( - col1 ) AS col0 FROM tab2 AS cor0
----
-3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 11 >= NULL
----

query I rowsort
SELECT - 24 FROM tab0 AS cor0 WHERE NOT col1 - + + col2 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6642
SELECT DISTINCT - ( + - COUNT( * ) ) * - - 60 FROM tab0 cor0
----
180

skipif mysql # not compatible
query I rowsort label-6642
SELECT DISTINCT - ( + - COUNT ( * ) ) * - - 60 FROM tab0 cor0
----
180

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6643
SELECT DISTINCT + MAX( + 99 ) DIV + - MAX( - col1 ) AS col1, + COUNT( * ) FROM tab2 AS cor0
----
1
3

skipif mysql # not compatible
query II rowsort label-6643
SELECT DISTINCT + MAX ( + 99 ) / + - MAX ( - col1 ) AS col1, + COUNT ( * ) FROM tab2 AS cor0
----
1
3

onlyif mysql # DIV for integer division: 
query I rowsort label-6644
SELECT + 28 DIV ( 89 ) * - col1 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6644
SELECT + 28 / ( 89 ) * - col1 AS col2 FROM tab0 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 BETWEEN - col2 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6646
SELECT - CAST( NULL AS SIGNED ) + - 23 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6646
SELECT - CAST ( NULL AS INTEGER ) + - 23 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + - 18 ) + + col1 * col0 col0 FROM tab2
----
2328
4910
5007

query I rowsort
SELECT col2 * + 25 + - + 57 AS col0 FROM tab0
----
1118
193
2418

onlyif mysql # aggregate syntax: 
query I rowsort label-6649
SELECT - 88 + + COUNT( * ) AS col0 FROM tab0
----
-85

skipif mysql # not compatible
query I rowsort label-6649
SELECT - 88 + + COUNT ( * ) AS col0 FROM tab0
----
-85

query II rowsort
SELECT DISTINCT - 72 AS col1, col0 FROM tab0
----
-72
15
-72
87
-72
97

query I rowsort
SELECT DISTINCT - 34 + + col2 + 88 * - col1 AS col1 FROM tab2
----
-4499
-5872
-6770

onlyif mysql # DIV for integer division: 
query I rowsort label-6652
SELECT ALL ( + - col0 ) + col0 DIV - + col0 AS col2 FROM tab2
----
-47
-65
-76

skipif mysql # not compatible
query I rowsort label-6652
SELECT ALL ( + - col0 ) + col0 / - + col0 AS col2 FROM tab2
----
-47
-65
-76

query I rowsort
SELECT ALL 59 * 14 AS col0 FROM tab1
----
826
826
826

query I rowsort
SELECT DISTINCT + col2 + - col2 * + - 76 * 50 * - 92 FROM tab2
----
-13983960
-20276742
-8040777

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + 67 col2 FROM tab0
----
148
68
88

query I rowsort
SELECT ALL - col1 + 3 + - + 40 FROM tab1
----
-42
-51
-84

query I rowsort
SELECT - 47 * - 70 + - 58 FROM tab1 WHERE NULL >= col1
----

query I rowsort
SELECT DISTINCT - - col0 FROM tab1 WHERE - - col2 IS NOT NULL
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6659
SELECT DISTINCT 73 + - MAX( - 24 ) FROM tab1
----
97

skipif mysql # not compatible
query I rowsort label-6659
SELECT DISTINCT 73 + - MAX ( - 24 ) FROM tab1
----
97

onlyif mysql # DIV for integer division: 
query II rowsort label-6660
SELECT ALL - col2 * - col1 - col2 + - - col2 - - 62 DIV - 11 AS col0, - 1 AS col2 FROM tab2 AS cor0
----
1168
-1
3075
-1
3881
-1

skipif mysql # not compatible
query II rowsort label-6660
SELECT ALL - col2 * - col1 - col2 + - - col2 - - 62 / - 11 AS col0, - 1 AS col2 FROM tab2 AS cor0
----
1168
-1
3075
-1
3881
-1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 <= ( - - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col1 * ( - col0 ) AS col2 FROM tab0 AS cor0 WHERE NULL >= 70
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6663
SELECT SUM( - col1 ) col1 FROM tab0 cor0
----
-103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6663
SELECT SUM ( - col1 ) col1 FROM tab0 cor0
----
-103

query I rowsort
SELECT DISTINCT + ( + 0 ) FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6665
SELECT DISTINCT COUNT( ALL + col0 ) AS col1 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-6665
SELECT DISTINCT COUNT ( ALL + col0 ) AS col1 FROM tab2 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6666
SELECT MIN( DISTINCT - + col1 ) FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-6666
SELECT MIN ( DISTINCT - + col1 ) FROM tab2 AS cor0
----
-77

query I rowsort
SELECT - - 69 AS col1 FROM tab0 cor0
----
69
69
69

query I rowsort
SELECT DISTINCT - col1 * - - col0 AS col1 FROM tab1
----
-425
-4277
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-6669
SELECT SUM( + + 35 ) * + - 7 FROM tab2
----
-735

skipif mysql # not compatible
query I rowsort label-6669
SELECT SUM ( + + 35 ) * + - 7 FROM tab2
----
-735

onlyif mysql # aggregate syntax: 
query I rowsort label-6670
SELECT ALL - MIN( - 91 ) AS col2 FROM tab0
----
91

skipif mysql # not compatible
query I rowsort label-6670
SELECT ALL - MIN ( - 91 ) AS col2 FROM tab0
----
91

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL <> - 75
----

query I rowsort
SELECT ALL - - col2 * - 13 + - - col2 AS col2 FROM tab2 AS cor0
----
-276
-480
-696

query I rowsort
SELECT col2 + - col2 FROM tab1 AS cor0 WHERE NOT + col0 > - - col2 + - col1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 35 col2 FROM tab2 cor0
----
-35
-35
-35

query II rowsort
SELECT DISTINCT + - col2 * 19, ( - 16 ) * - 1 AS col1 FROM tab1 AS cor0
----
-1121
16
-1292
16
-1824
16

query II rowsort
SELECT ALL col2 AS col1, - 36 * - - 99 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - col1 >= - + 22 + - - col1 + - 13 + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-6678
SELECT 70 DIV col1 AS col2 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-6678
SELECT 70 / col1 AS col2 FROM tab2 AS cor0
----
0
1
1

query I rowsort
SELECT ALL + col0 AS col1 FROM tab2 AS cor0 WHERE + col1 <> NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + 93 + - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col1 * - 49 AS col1 FROM tab2
----
-2499
-3283
-3773

onlyif mysql # aggregate syntax: 
query I rowsort label-6682
SELECT DISTINCT + ( - - COUNT( DISTINCT - + col0 ) ) * + - MAX( - 4 ) AS col1 FROM tab2 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-6682
SELECT DISTINCT + ( - - COUNT ( DISTINCT - + col0 ) ) * + - MAX ( - 4 ) AS col1 FROM tab2 AS cor0
----
12

query I rowsort
SELECT - ( 53 ) + - 1 AS col2 FROM tab2 AS cor0
----
-54
-54
-54

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6684
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT CAST( - col0 AS SIGNED ) * - col0 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-6684
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT CAST ( - col0 AS INTEGER ) * - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6685
SELECT - ( + COUNT( * ) ) + - ( - 1 ) FROM tab1 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-6685
SELECT - ( + COUNT ( * ) ) + - ( - 1 ) FROM tab1 AS cor0
----
-2

query I rowsort
SELECT + - col2 + - - 84 FROM tab2 AS cor0
----
26
44
61

query II rowsort
SELECT + 15 AS col1, col1 FROM tab2 AS cor0
----
15
51
15
67
15
77

onlyif mysql # DIV for integer division: 
query II rowsort label-6688
SELECT col2 DIV - col1 AS col2, + col1 FROM tab2
----
0
51
0
67
0
77

skipif mysql # not compatible
query II rowsort label-6688
SELECT col2 / - col1 AS col2, + col1 FROM tab2
----
0
51
0
67
0
77

query II rowsort
SELECT ALL - - col2 * + col1 - - + ( + - col2 ) + + col2 * - col0, - col1 AS col2 FROM tab0 WHERE + col0 / - col2 * + col2 - - + col1 >= - col2 * + col2
----
-670
-21
-9603
-1
3055
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-6690
SELECT ALL col0 DIV col0 + + + col1 AS col1 FROM tab1
----
15
48
6

skipif mysql # not compatible
query I rowsort label-6690
SELECT ALL col0 / col0 + + + col1 AS col1 FROM tab1
----
15
48
6

query III rowsort
SELECT * FROM tab1 WHERE + - col2 * 31 = - 93 * col1 * - col0
----

query I rowsort
SELECT - col2 - - col1 + + 32 FROM tab2
----
41
60
69

onlyif mysql # aggregate syntax: 
query I rowsort label-6693
SELECT ALL MIN( - - col1 ) + + + COUNT( * ) FROM tab0
----
4

skipif mysql # not compatible
query I rowsort label-6693
SELECT ALL MIN ( - - col1 ) + + + COUNT ( * ) FROM tab0
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-6694
SELECT ALL 83 - col1 * col2 DIV + col2 FROM tab2
----
16
32
6

skipif mysql # not compatible
query I rowsort label-6694
SELECT ALL 83 - col1 * col2 / + col2 FROM tab2
----
16
32
6

query I rowsort
SELECT ( + + col1 ) + col0 + - - col1 * - col1 + 39 AS col0 FROM tab1
----
-2032
-92
104

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 34 + + col2 col0 FROM tab1 AS cor0
----
102
130
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6697
SELECT DISTINCT + + CAST( NULL AS SIGNED ) - - ( 66 ) - - col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6697
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) - - ( 66 ) - - col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6698
SELECT DISTINCT - + ( 66 ) - + + CAST( + 43 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-109

skipif mysql # not compatible
query I rowsort label-6698
SELECT DISTINCT - + ( 66 ) - + + CAST ( + 43 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-109

onlyif mysql # DIV for integer division: 
query II rowsort label-6699
SELECT DISTINCT - col2 DIV + col0 AS col2, 58 FROM tab2 AS cor0 WHERE ( NULL IS NULL )
----
0
58

skipif mysql # not compatible
query II rowsort label-6699
SELECT DISTINCT - col2 / + col0 AS col2, 58 FROM tab2 AS cor0 WHERE ( NULL IS NULL )
----
0
58

query I rowsort
SELECT DISTINCT - col2 / - 44 / + + col2 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT - + 54 * ( + col2 ) + + col2, col1 AS col0 FROM tab1 AS cor0
----
-3127
5
-3604
47
-5088
14

query I rowsort
SELECT DISTINCT - + col0 / + + 47 FROM tab0 WHERE NOT - - col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6703
SELECT 28 / + + ( - + ( CAST( NULL AS SIGNED ) ) ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6703
SELECT 28 / + + ( - + ( CAST ( NULL AS INTEGER ) ) ) AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6704
SELECT ( + COUNT( * ) ) DIV + - COUNT( * ) + - 40 AS col2 FROM tab0
----
-41

skipif mysql # not compatible
query I rowsort label-6704
SELECT ( + COUNT ( * ) ) / + - COUNT ( * ) + - 40 AS col2 FROM tab0
----
-41

query II rowsort
SELECT 74, + 77 + + 62 * - col2 * + 73 AS col0 FROM tab2 AS cor0
----
74
-104021
74
-180963
74
-262431

onlyif mysql # aggregate syntax: 
query I rowsort label-6706
SELECT ALL - AVG ( 81 ) + - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT + 31 * + col2 <> - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6706
SELECT ALL - AVG ( 81 ) + - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT + 31 * + col2 <> - col1
----
NULL

query II rowsort
SELECT DISTINCT col0, 76 FROM tab0 AS cor0
----
15
76
87
76
97
76

query I rowsort
SELECT ( - 39 ) FROM tab2 AS cor0
----
-39
-39
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-6709
SELECT ALL - + SUM( ALL - col2 ) AS col2 FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-6709
SELECT ALL - + SUM ( ALL - col2 ) AS col2 FROM tab2 AS cor0
----
121

query II rowsort
SELECT ALL + + col1, ( + col0 ) FROM tab1 AS cor0
----
14
51
47
91
5
85

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col0 ) IS NOT NULL AND NULL IN ( + + 18, col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 28 col0 FROM tab2 AS cor0
----
28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 AS col1, ( + 67 ) + - 71 col0 FROM tab1
----
14
-4
47
-4
5
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-6714
SELECT 81 * + SUM( + col1 ) FROM tab0
----
8343

skipif mysql # not compatible
query I rowsort label-6714
SELECT 81 * + SUM ( + col1 ) FROM tab0
----
8343

query II rowsort
SELECT ALL - 38 AS col0, col0 FROM tab0 cor0
----
-38
15
-38
87
-38
97

onlyif mysql # DIV for integer division: 
query I rowsort label-6716
SELECT + + col0 DIV + ( 17 ) AS col2 FROM tab1 AS cor0
----
3
5
5

skipif mysql # not compatible
query I rowsort label-6716
SELECT + + col0 / + ( 17 ) AS col2 FROM tab1 AS cor0
----
3
5
5

query I rowsort
SELECT DISTINCT + - 74 + + - col1 + col1 AS col0 FROM tab2 cor0
----
-74

query II rowsort
SELECT ALL col2 + - col1 + - 38, + ( - - col2 ) AS col2 FROM tab2
----
-47
58
-66
23
-75
40

query I rowsort
SELECT ALL + 31 * + col0 FROM tab1 AS cor0
----
1581
2635
2821

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6720
SELECT ALL COUNT( * ) DIV SUM( ALL + + col2 ) col2 FROM tab0 cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6720
SELECT ALL COUNT ( * ) / SUM ( ALL + + col2 ) col2 FROM tab0 cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6721
SELECT SUM( DISTINCT - col2 ) * MIN( DISTINCT - + col2 ) + - CAST( + COUNT( * ) AS SIGNED ) + 78 FROM tab2 AS cor0
----
7093

skipif mysql # not compatible
query I rowsort label-6721
SELECT SUM ( DISTINCT - col2 ) * MIN ( DISTINCT - + col2 ) + - CAST ( + COUNT ( * ) AS INTEGER ) + 78 FROM tab2 AS cor0
----
7093

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + - col2 col0 FROM tab0
----
-100
-128
-31

onlyif mysql # aggregate syntax: 
query II rowsort label-6723
SELECT + COUNT( * ) + - + ( - ( + 64 ) ) * + MAX( ( + ( col1 ) ) ) AS col0, COUNT( * ) - - 28 FROM tab2
----
4931
31

skipif mysql # not compatible
query II rowsort label-6723
SELECT + COUNT ( * ) + - + ( - ( + 64 ) ) * + MAX ( ( + ( col1 ) ) ) AS col0, COUNT ( * ) - - 28 FROM tab2
----
4931
31

query II rowsort
SELECT DISTINCT + 53 - + col0, + ( + + col1 ) FROM tab1 WHERE NULL IN ( col0, - col2 )
----

query II rowsort
SELECT col0 AS col0, col0 + 40 + - col0 * + col1 * + - col0 * + col1 AS col1 FROM tab0
----
15
1476280
87
3338056
97
9546

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6726
SELECT DISTINCT + 60 * 75 * + ( COUNT( * ) ) - + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6726
SELECT DISTINCT + 60 * 75 * + ( COUNT ( * ) ) - + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN - col2 AND - 79 * + 47 * + - 31 + - 36
----

query I rowsort
SELECT ALL + 98 - col1 + - 15 FROM tab1 cor0
----
36
69
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 14 - + col1 - - 80 col0 FROM tab1 AS cor0
----
47
80
89

query I rowsort
SELECT ALL 75 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

query I rowsort
SELECT DISTINCT + 16 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
16

onlyif mysql # DIV for integer division: 
query I rowsort label-6732
SELECT col1 DIV col1 DIV col1 * - 19 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6732
SELECT col1 / col1 / col1 * - 19 FROM tab2
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 NOT BETWEEN NULL AND + + 74 * col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6734
SELECT DISTINCT - - col1 AS col1 FROM tab2 AS cor0 WHERE CAST( - 57 AS SIGNED ) >= + col2
----

skipif mysql # not compatible
query I rowsort label-6734
SELECT DISTINCT - - col1 AS col1 FROM tab2 AS cor0 WHERE CAST ( - 57 AS INTEGER ) >= + col2
----

query I rowsort
SELECT - 10 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6736
SELECT - + ( - 22 ) AS col1, + CAST( NULL AS DECIMAL ) + + col0 FROM tab2 AS cor0
----
22
NULL
22
NULL
22
NULL

skipif mysql # not compatible
query II rowsort label-6736
SELECT - + ( - 22 ) AS col1, + CAST ( NULL AS REAL ) + + col0 FROM tab2 AS cor0
----
22
NULL
22
NULL
22
NULL

query I rowsort
SELECT ALL + + ( + 44 ) AS col0 FROM tab2 AS cor0
----
44
44
44

onlyif mysql # aggregate syntax: 
query I rowsort label-6738
SELECT + - MAX( - + col1 ) AS col1 FROM tab1 cor0
----
5

skipif mysql # not compatible
query I rowsort label-6738
SELECT + - MAX ( - + col1 ) AS col1 FROM tab1 cor0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6739
SELECT DISTINCT MAX( ALL - 29 ) AS col0 FROM tab2
----
-29

skipif mysql # not compatible
query I rowsort label-6739
SELECT DISTINCT MAX ( ALL - 29 ) AS col0 FROM tab2
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6740
SELECT ALL + 86, - 65 * - ( - col1 ) + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
86
NULL
86
NULL
86
NULL

skipif mysql # not compatible
query II rowsort label-6740
SELECT ALL + 86, - 65 * - ( - col1 ) + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
86
NULL
86
NULL
86
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 79 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6742
SELECT ALL + COUNT( * ) + + COUNT( 45 ) AS col1 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-6742
SELECT ALL + COUNT ( * ) + + COUNT ( 45 ) AS col1 FROM tab1
----
6

query I rowsort
SELECT ALL + col0 * 28 AS col2 FROM tab0
----
2436
2716
420

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 57 + - - 84 col1 FROM tab0
----
141
141
141

query I rowsort
SELECT col2 + + - col1 AS col1 FROM tab1
----
21
54
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6746
SELECT + + CAST( + + COUNT( * ) AS SIGNED ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-6746
SELECT + + CAST ( + + COUNT ( * ) AS INTEGER ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query III rowsort
SELECT ALL * FROM tab2 WHERE - - col1 + - - ( col2 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6748
SELECT ALL 65 DIV MAX( 63 ) + SUM( - - col2 ) AS col0 FROM tab0
----
157

skipif mysql # not compatible
query I rowsort label-6748
SELECT ALL 65 / MAX ( 63 ) + SUM ( - - col2 ) AS col0 FROM tab0
----
157

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 39 col0 FROM tab1 AS cor0
----
39
39
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6750
SELECT + CAST( + AVG ( DISTINCT col1 ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
34

skipif mysql # not compatible
query I rowsort label-6750
SELECT + CAST ( + AVG ( DISTINCT col1 ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + col2 * + col2 col2 FROM tab0 AS cor0
----
-1000
-103823
-970299

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col2 * + ( - + 43 ) = + col1 * + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT col1, - col1 FROM tab0 cor0
----
1
-1
21
-21
81
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-6754
SELECT ALL - 69 * + SUM( + 76 ) AS col2 FROM tab1
----
-15732

skipif mysql # not compatible
query I rowsort label-6754
SELECT ALL - 69 * + SUM ( + 76 ) AS col2 FROM tab1
----
-15732

query III rowsort
SELECT * FROM tab1 WHERE ( NOT 83 / - col0 < + col0 * + - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 - + - 46 col2, - col2 FROM tab0
----
133
-10
143
-99
61
-47

query I rowsort
SELECT + + 24 FROM tab2 WHERE NULL IS NULL
----
24
24
24

query I rowsort
SELECT DISTINCT - col0 - col2 * col1 * ( + col1 ) FROM tab0
----
-196
-308382
-4497

onlyif mysql # aggregate syntax: 
query I rowsort label-6759
SELECT + 97 + - - COUNT( * ) AS col2 FROM tab0
----
100

skipif mysql # not compatible
query I rowsort label-6759
SELECT + 97 + - - COUNT ( * ) AS col2 FROM tab0
----
100

onlyif mysql # DIV for integer division: 
query I rowsort label-6760
SELECT + 91 DIV - - col2 + col1 * - 9 FROM tab0 AS cor0
----
-180
-728
-9

skipif mysql # not compatible
query I rowsort label-6760
SELECT + 91 / - - col2 + col1 * - 9 FROM tab0 AS cor0
----
-180
-728
-9

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 - + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6762
SELECT DISTINCT COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE ( NULL ) >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-6762
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE ( NULL ) >= NULL
----
0

query I rowsort
SELECT 0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT ALL + ( + - col0 ) AS col0 FROM tab2 WHERE NULL IS NULL
----
-46
-64
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-6765
SELECT 35 DIV + col0 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6765
SELECT 35 / + col0 AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT col1 + 85 + - 69 AS col2 FROM tab1 AS cor0 WHERE - col0 IS NULL
----

query I rowsort
SELECT - col2 AS col1 FROM tab2 AS cor0 WHERE NOT - 81 + 89 IS NULL
----
-23
-40
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-6768
SELECT - 42 DIV col1 FROM tab1 AS cor0
----
-3
-8
0

skipif mysql # not compatible
query I rowsort label-6768
SELECT - 42 / col1 FROM tab1 AS cor0
----
-3
-8
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + col0 + 26 AND + col1
----

query I rowsort
SELECT - col2 * - + col1 FROM tab0
----
210
3807
99

query III rowsort
SELECT * FROM tab2 WHERE + col1 >= - col0 OR + 9 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + + col0 FROM tab2 WHERE + 30 + col0 IS NOT NULL
----
46
64
75

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + 19 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6774
SELECT col0 + + - ( - CAST( NULL AS SIGNED ) ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6774
SELECT col0 + + - ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col1 + - col2 * + + col2 * + - ( + ( 78 ) ) + - + col0 FROM tab2 AS cor0
----
124813
262384
41267

query I rowsort
SELECT DISTINCT + col0 + - 69 AS col0 FROM tab1 AS cor0
----
-18
16
22

query I rowsort
SELECT DISTINCT + - 38 AS col0 FROM tab0 AS cor0
----
-38

query I rowsort
SELECT DISTINCT col2 - + ( col2 ) - + - col0 AS col2 FROM tab0 cor0
----
15
87
97

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 > + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6780
SELECT ALL - COUNT( * ) col2 FROM tab1 AS cor0 WHERE NOT + col0 * + - col0 * + 59 <> + col0 * - col2 * + col2 * + 63 / - col1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6780
SELECT ALL - COUNT ( * ) col2 FROM tab1 AS cor0 WHERE NOT + col0 * + - col0 * + 59 <> + col0 * - col2 * + col2 * + 63 / - col1
----
0

query I rowsort
SELECT - col1 + - col2 * + 26 + + - col0 - + - 85 FROM tab2 AS cor0
----
-1096
-1565
-610

query I rowsort
SELECT ALL - 4 - - 9 * + 65 AS col1 FROM tab1 cor0
----
581
581
581

onlyif mysql # DIV for integer division: 
query I rowsort label-6783
SELECT DISTINCT - col2 DIV + col0 + + col2 * - col2 col2 FROM tab0 AS cor0
----
-100
-2212
-9802

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6783
SELECT DISTINCT - col2 / + col0 + + col2 * - col2 col2 FROM tab0 AS cor0
----
-100
-2212
-9802

query I rowsort
SELECT - + col2 + 11 * + 11 AS col0 FROM tab2 cor0
----
63
81
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 75 + col2 col1 FROM tab1
----
-16
-7
21

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6786
SELECT DISTINCT * FROM tab0 WHERE NOT CAST( NULL AS SIGNED ) / - + col0 + + + 43 = - + col2
----

skipif mysql # not compatible
query III rowsort label-6786
SELECT DISTINCT * FROM tab0 WHERE NOT CAST ( NULL AS INTEGER ) / - + col0 + + + 43 = - + col2
----

query II rowsort
SELECT - col1 AS col0, col0 * - col1 FROM tab2 WHERE col2 IS NOT NULL
----
-51
-2346
-67
-5025
-77
-4928

onlyif mysql # aggregate syntax: 
query I rowsort label-6788
SELECT COUNT( * ) * + + 72 AS col1 FROM tab0
----
216

skipif mysql # not compatible
query I rowsort label-6788
SELECT COUNT ( * ) * + + 72 AS col1 FROM tab0
----
216

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6789
SELECT + ( CAST( NULL AS DECIMAL ) ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6789
SELECT + ( CAST ( NULL AS REAL ) ) AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6790
SELECT col2 DIV + col1 * + + col0 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6790
SELECT col2 / + col1 * + + col0 AS col1 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6791
SELECT + col2 col0, CAST( + ( - col1 ) AS SIGNED ) DIV + + col1 AS col1 FROM tab2
----
23
-1
40
-1
58
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6791
SELECT + col2 col0, CAST ( + ( - col1 ) AS INTEGER ) / + + col1 AS col1 FROM tab2
----
23
-1
40
-1
58
-1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT + - 76 + col0 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6793
SELECT - ( - + COUNT( * ) ) AS col2 FROM tab2 AS cor0 WHERE NOT + 4 + - 53 > 57 * - 71 - col2
----
0

skipif mysql # not compatible
query I rowsort label-6793
SELECT - ( - + COUNT ( * ) ) AS col2 FROM tab2 AS cor0 WHERE NOT + 4 + - 53 > 57 * - 71 - col2
----
0

query I rowsort
SELECT - 51 * 24 + - ( - - col1 ) * col2 FROM tab0 cor0
----
-1323
-1434
-5031

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 13 + - col0 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6796
SELECT DISTINCT COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT + col0 / - 29 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-6796
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT + col0 / - 29 IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6797
SELECT DISTINCT COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND + 71
----
0

skipif mysql # not compatible
query I rowsort label-6797
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND + 71
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <> - ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6799
SELECT DISTINCT + - ( - COUNT( * ) ) * - ( ( - COUNT( * ) ) ) FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-6799
SELECT DISTINCT + - ( - COUNT ( * ) ) * - ( ( - COUNT ( * ) ) ) FROM tab1 AS cor0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-6800
SELECT DISTINCT col1 DIV 52 FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-6800
SELECT DISTINCT col1 / 52 FROM tab0 AS cor0
----
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6801
SELECT ALL - ( + col0 ) * + CAST( - - ( col2 ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-4896
-5015
-6188

skipif mysql # not compatible
query I rowsort label-6801
SELECT ALL - ( + col0 ) * + CAST ( - - ( col2 ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-4896
-5015
-6188

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) <> + col2 + + 42
----

query I rowsort
SELECT ALL - col0 + + + col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - 71 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to e72f95c346714d3065a96d67a6fd5062

onlyif mysql # DIV for integer division: 
query I rowsort label-6805
SELECT DISTINCT 70 DIV + col0 + col1 AS col1 FROM tab1
----
15
47
5

skipif mysql # not compatible
query I rowsort label-6805
SELECT DISTINCT 70 / + col0 + col1 AS col1 FROM tab1
----
15
47
5

query II rowsort
SELECT + 40, - col0 AS col0 FROM tab1
----
40
-51
40
-85
40
-91

query I rowsort
SELECT ALL AVG ( ALL + - 91 ) FROM tab0 WHERE ( NOT NULL IS NULL )
----
NULL

query II rowsort
SELECT DISTINCT + col1 * - 39 * + + col1, - col2 * - col0 AS col1 FROM tab2
----
-101439
1058
-175071
4350
-231231
2560

onlyif mysql # aggregate syntax: 
query I rowsort label-6809
SELECT ALL 79 + - + COUNT( * ) FROM tab2
----
76

skipif mysql # not compatible
query I rowsort label-6809
SELECT ALL 79 + - + COUNT ( * ) FROM tab2
----
76

query I rowsort
SELECT ALL - ( - 7 ) FROM tab1
----
7
7
7

onlyif mysql # aggregate syntax: 
query I rowsort label-6811
SELECT ALL COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT col0 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-6811
SELECT ALL COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT col0 > NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6812
SELECT ALL - COUNT( * ) + - - 2 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6812
SELECT ALL - COUNT ( * ) + - - 2 FROM tab1 AS cor0
----
-1

query I rowsort
SELECT DISTINCT - 90 AS col2 FROM tab0 AS cor0 WHERE NOT + col2 <= NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 33 / col1 <> NULL
----

query I rowsort
SELECT - 42 + + col0 FROM tab1 AS cor0
----
43
49
9

query I rowsort
SELECT - 90 + 93 AS col0 FROM tab0
----
3
3
3

query I rowsort
SELECT ALL + 24 FROM tab0 WHERE 22 IS NOT NULL
----
24
24
24

onlyif mysql # aggregate syntax: 
query I rowsort label-6818
SELECT + COUNT( * ) * + 78 AS col0 FROM tab2
----
234

skipif mysql # not compatible
query I rowsort label-6818
SELECT + COUNT ( * ) * + 78 AS col0 FROM tab2
----
234

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL > + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 90 * col1 col1 FROM tab1
----
1260
4230
450

query I rowsort
SELECT + 24 * col0 AS col1 FROM tab2
----
1104
1536
1800

query III rowsort
SELECT * FROM tab0 WHERE + ( col0 ) BETWEEN 53 AND ( - col1 ) * - col2
----
87
21
10
97
1
99

query III rowsort
SELECT * FROM tab1 WHERE NULL IN ( col1 * 74 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6824
SELECT - COUNT( * ) * + 41 AS col1 FROM tab1
----
-123

skipif mysql # not compatible
query I rowsort label-6824
SELECT - COUNT ( * ) * + 41 AS col1 FROM tab1
----
-123

query I rowsort
SELECT ALL + 62 + col2 FROM tab1
----
121
130
158

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 39 BETWEEN ( + 60 ) AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6827
SELECT SUM( ALL + 58 ) * - 19 FROM tab1 WHERE NOT ( - 49 ) BETWEEN ( 32 * ( + 86 ) ) AND - 62
----
-3306

skipif mysql # not compatible
query I rowsort label-6827
SELECT SUM ( ALL + 58 ) * - 19 FROM tab1 WHERE NOT ( - 49 ) BETWEEN ( 32 * ( + 86 ) ) AND - 62
----
-3306

onlyif mysql # aggregate syntax: 
query I rowsort label-6828
SELECT COUNT( * ) AS col0 FROM tab1 WHERE ( ( + 54 ) ) <> + col0 * - col0 + 74
----
3

skipif mysql # not compatible
query I rowsort label-6828
SELECT COUNT ( * ) AS col0 FROM tab1 WHERE ( ( + 54 ) ) <> + col0 * - col0 + 74
----
3

query I rowsort
SELECT col1 + - 10 * ( - col2 ) AS col1 FROM tab0
----
121
551
991

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6830
SELECT DISTINCT COUNT( * ) DIV - MAX( ALL - 30 * 78 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6830
SELECT DISTINCT COUNT ( * ) / - MAX ( ALL - 30 * 78 ) FROM tab2
----
0

query I rowsort
SELECT ALL - 59 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-59
-59
-59

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( col0 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 20 / col1 + col1 * - 16 <= ( NULL )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL <> + 27
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 col0 FROM tab1 WHERE NOT 9 * col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6836
SELECT DISTINCT - 18 DIV - col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-6836
SELECT DISTINCT - 18 / - col0 FROM tab1
----
0

query I rowsort
SELECT 4 + + col2 / 69 FROM tab1 WHERE + col0 * col2 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 * 25 + 40 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6839
SELECT + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) * 28 - 38 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6839
SELECT + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) * 28 - 38 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 * + 88 + - col0 * col0 AS col0 FROM tab1
----
-11049
-12417
-14265

onlyif mysql # DIV for integer division: 
query I rowsort label-6841
SELECT + 72 DIV + col2 FROM tab0
----
0
1
7

skipif mysql # not compatible
query I rowsort label-6841
SELECT + 72 / + col2 FROM tab0
----
0
1
7

onlyif mysql # DIV for integer division: 
query I rowsort label-6842
SELECT col0 DIV - 99 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6842
SELECT col0 / - 99 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT 73 + + 99 FROM tab2
----
172

query I rowsort
SELECT col1 * + col1 + + ( col0 ) FROM tab1
----
110
2300
247

query I rowsort
SELECT DISTINCT - 57 * - 61 AS col0 FROM tab0
----
3477

query I rowsort
SELECT 34 + 45 AS col1 FROM tab1
----
79
79
79

query III rowsort
SELECT * FROM tab1 WHERE col0 - - ( + 32 ) IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6848
SELECT - MAX( col1 ) DIV - 37 FROM tab2
----
2

skipif mysql # not compatible
query I rowsort label-6848
SELECT - MAX ( col1 ) / - 37 FROM tab2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6849
SELECT - COUNT( ( col1 ) ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-6849
SELECT - COUNT ( ( col1 ) ) AS col0 FROM tab0
----
-3

query III rowsort
SELECT * FROM tab1 WHERE ( 48 ) <> - col2 * col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col2 + - 37 col1 FROM tab1
----
4859
4978
6151

query III rowsort
SELECT * FROM tab0 WHERE - col2 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 BETWEEN 94 AND ( col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6854
SELECT ALL + ( MAX( DISTINCT col1 ) ) AS col0 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-6854
SELECT ALL + ( MAX ( DISTINCT col1 ) ) AS col0 FROM tab0 AS cor0
----
81

query I rowsort
SELECT - col1 AS col1 FROM tab1 AS cor0 WHERE NOT col1 NOT IN ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6856
SELECT COUNT( * ) col1 FROM tab2 WHERE NOT + col2 IS NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6856
SELECT COUNT ( * ) col1 FROM tab2 WHERE NOT + col2 IS NULL
----
3

query I rowsort
SELECT ALL - ( - ( col1 ) ) AS col0 FROM tab1
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6858
SELECT DISTINCT col2 AS col2 FROM tab2 WHERE + CAST( NULL AS SIGNED ) = NULL
----

skipif mysql # not compatible
query I rowsort label-6858
SELECT DISTINCT col2 AS col2 FROM tab2 WHERE + CAST ( NULL AS INTEGER ) = NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 36 < ( NULL )
----

query I rowsort
SELECT ALL - ( 50 ) FROM tab1 AS cor0
----
-50
-50
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-6861
SELECT DISTINCT 7 * MAX( + col1 ) AS col0 FROM tab0 AS cor0
----
567

skipif mysql # not compatible
query I rowsort label-6861
SELECT DISTINCT 7 * MAX ( + col1 ) AS col0 FROM tab0 AS cor0
----
567

onlyif mysql # aggregate syntax: 
query I rowsort label-6862
SELECT 25 * - COUNT( * ) FROM tab1 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-6862
SELECT 25 * - COUNT ( * ) FROM tab1 AS cor0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-6863
SELECT ALL + 23 * - COUNT( * ) FROM tab2 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-6863
SELECT ALL + 23 * - COUNT ( * ) FROM tab2 AS cor0
----
-69

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 8 * col2 col2 FROM tab1 cor0
----
472
544
768

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - ( + 1 ) <= ( NULL )
----

query I rowsort
SELECT DISTINCT - 54 AS col2 FROM tab0 WHERE NOT - col2 * col2 BETWEEN NULL AND col1 / - col0
----

query I rowsort
SELECT ALL ( - col1 ) + 50 * + col0 FROM tab2
----
2249
3123
3683

query I rowsort
SELECT 88 * - - 96 + col2 FROM tab2
----
8471
8488
8506

query I rowsort
SELECT - col0 * + col2 + - col2 FROM tab1
----
-4992
-5074
-6256

onlyif mysql # DIV for integer division: 
query I rowsort label-6871
SELECT ALL - col0 + - - 17 DIV - col2 AS col1 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-6871
SELECT ALL - col0 + - - 17 / - col2 AS col1 FROM tab2
----
-46
-64
-75

query I rowsort
SELECT + 37 FROM tab1 WHERE 1 * + col1 <> col0 + - col1
----
37
37
37

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col1 / col1 + - col0 = ( + col1 ) OR NOT - 89 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col1 * + + 44 + col0 FROM tab1
----
-135
-1977
-565

query I rowsort
SELECT DISTINCT + col0 + - col1 * col1 FROM tab1
----
-145
-2118
60

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col1 * col0 + col1 <= ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col0 * - col0 + 15 >= NULL
----

query I rowsort
SELECT ALL 88 * - 49 * col2 FROM tab0
----
-202664
-426888
-43120

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6879
SELECT DISTINCT 1 DIV - + col1 + CAST( - col0 + - col0 AS SIGNED ) FROM tab0
----
-174
-195
-30

skipif mysql # not compatible
query I rowsort label-6879
SELECT DISTINCT 1 / - + col1 + CAST ( - col0 + - col0 AS INTEGER ) FROM tab0
----
-174
-195
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6880
SELECT CAST( NULL AS SIGNED ) FROM tab0 WHERE NOT ( NULL ) IS NOT NULL OR NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6880
SELECT CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT ( NULL ) IS NOT NULL OR NULL IS NULL
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 BETWEEN - col0 AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 NOT BETWEEN ( - col2 ) AND NULL
----

query I rowsort
SELECT ( + col1 ) + col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
102
134
154

onlyif mysql # DIV for integer division: 
query I rowsort label-6884
SELECT + + ( - col1 ) DIV - col2 AS col1 FROM tab0 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-6884
SELECT + + ( - col1 ) / - col2 AS col1 FROM tab0 AS cor0
----
0
1
2

onlyif mysql # DIV for integer division: 
query I rowsort label-6885
SELECT + - col2 DIV 38 FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-6885
SELECT + - col2 / 38 FROM tab0 AS cor0
----
-1
-2
0

query I rowsort
SELECT ALL + 97 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

onlyif mysql # aggregate syntax: 
query I rowsort label-6887
SELECT DISTINCT - COUNT( * ) + - 87 * + 90 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-7839

skipif mysql # not compatible
query I rowsort label-6887
SELECT DISTINCT - COUNT ( * ) + - 87 * + 90 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-7839

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 84 * col1 col2 FROM tab0 WHERE + - col1 * col1 < ( col2 )
----
1764
6804
84

query I rowsort
SELECT ALL 80 + + 57 FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE 75 IS NULL
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 14 IS NULL
----

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT ( 37 ) BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6892
SELECT + CAST( NULL AS DECIMAL ) + - 66 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-6892
SELECT + CAST ( NULL AS REAL ) + - 66 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( - 44 ) IS NULL
----

query I rowsort
SELECT col2 + + ( col0 ) FROM tab2 AS cor0 WHERE + col0 * - + col1 IS NOT NULL
----
104
133
69

query I rowsort
SELECT DISTINCT + col2 - + 5 + - - 24 + col0 FROM tab1 AS cor0
----
163
166
178

query I rowsort
SELECT + col1 AS col2 FROM tab1 AS cor0 WHERE + 20 IS NOT NULL
----
14
47
5

onlyif mysql # DIV for integer division: 
query I rowsort label-6897
SELECT DISTINCT - - ( + col0 ) DIV col1 * - 59 FROM tab1 AS cor0
----
-1003
-177
-59

skipif mysql # not compatible
query I rowsort label-6897
SELECT DISTINCT - - ( + col0 ) / col1 * - 59 FROM tab1 AS cor0
----
-1003
-177
-59

query I rowsort
SELECT - + col1 * + - 0 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - + col2 * - + col2 + + - 90 FROM tab2 AS cor0
----
1510
3274
439

query I rowsort
SELECT ALL - col1 AS col0 FROM tab0 AS cor0 WHERE + col2 IS NOT NULL
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-6901
SELECT - COUNT( * ) * 23 FROM tab1
----
-69

skipif mysql # not compatible
query I rowsort label-6901
SELECT - COUNT ( * ) * 23 FROM tab1
----
-69

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + + 46 * - col2 <= col0 + - col1 * col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 55 IS NOT NULL
----

query I rowsort
SELECT 84 FROM tab2 WHERE NOT ( + col0 ) NOT BETWEEN NULL AND ( + col1 + - 84 / col2 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL BETWEEN ( + col0 ) AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6907
SELECT ALL - SUM( ALL - col2 ) FROM tab2 AS cor0 WHERE ( col0 ) < col0 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6907
SELECT ALL - SUM ( ALL - col2 ) FROM tab2 AS cor0 WHERE ( col0 ) < col0 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6908
SELECT ALL * FROM tab1 cor0 WHERE col2 NOT IN ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-6908
SELECT ALL * FROM tab1 cor0 WHERE col2 NOT IN ( - CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT IN ( 63 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - 27 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6911
SELECT DISTINCT MAX( - col0 ) col1 FROM tab2
----
-46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6911
SELECT DISTINCT MAX ( - col0 ) col1 FROM tab2
----
-46

query I rowsort
SELECT ALL 57 * + col2 AS col2 FROM tab1 WHERE NOT + + 23 / - col2 BETWEEN NULL AND col2
----

query I rowsort
SELECT + col0 + + 35 FROM tab1 AS cor0
----
120
126
86

query I rowsort
SELECT DISTINCT col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6915
SELECT DISTINCT - - SUM( ALL - 59 ) * + - COUNT( * ) FROM tab2 AS cor0
----
531

skipif mysql # not compatible
query I rowsort label-6915
SELECT DISTINCT - - SUM ( ALL - 59 ) * + - COUNT ( * ) FROM tab2 AS cor0
----
531

onlyif mysql # aggregate syntax: 
query I rowsort label-6916
SELECT + MAX( ALL - col2 ) AS col2 FROM tab1 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-59

skipif mysql # not compatible
query I rowsort label-6916
SELECT + MAX ( ALL - col2 ) AS col2 FROM tab1 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-59

query I rowsort
SELECT col1 + + 65 FROM tab2 cor0
----
116
132
142

onlyif mysql # aggregate syntax: 
query I rowsort label-6918
SELECT ALL 76 * + SUM( ALL col0 ) FROM tab1 AS cor0
----
17252

skipif mysql # not compatible
query I rowsort label-6918
SELECT ALL 76 * + SUM ( ALL col0 ) FROM tab1 AS cor0
----
17252

query I rowsort
SELECT + 51 * + + 3 FROM tab2 AS cor0
----
153
153
153

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + ( + + col0 ) * col0 * + - col2 <> + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6921
SELECT DISTINCT MIN( - col1 ) + 11 AS col0 FROM tab0
----
-70

skipif mysql # not compatible
query I rowsort label-6921
SELECT DISTINCT MIN ( - col1 ) + 11 AS col0 FROM tab0
----
-70

query II rowsort
SELECT ALL + 91 AS col0, col0 * + - 29 * - + col2 FROM tab1
----
91
141984
91
145435
91
179452

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - - col2 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + + ( col1 ) * col0 col2 FROM tab2 WHERE + 6 NOT BETWEEN col2 AND + col0 / - - col0 - col0
----
2397
5005
5092

query I rowsort
SELECT - 40 * 27 AS col2 FROM tab1
----
-1080
-1080
-1080

query III rowsort
SELECT ALL * FROM tab2 WHERE ( ( 9 ) NOT BETWEEN ( + col1 ) AND NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 71 + - col2 FROM tab2
----
-111
-129
-94

query I rowsort
SELECT DISTINCT + 65 - + col1 FROM tab1
----
18
51
60

query I rowsort
SELECT ALL col1 / col0 + col2 AS col2 FROM tab0 WHERE NOT - col1 <= ( + 42 / col0 )
----

query I rowsort
SELECT + + ( - 90 ) + - - col2 FROM tab2 AS cor0
----
-32
-50
-67

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6931
SELECT + CAST( + col0 AS SIGNED ) DIV - col2 + - 24 + + col0 AS col2 FROM tab0 AS cor0
----
-9
55
73

skipif mysql # not compatible
query I rowsort label-6931
SELECT + CAST ( + col0 AS INTEGER ) / - col2 + - 24 + + col0 AS col2 FROM tab0 AS cor0
----
-9
55
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6932
SELECT ALL CAST( NULL AS SIGNED ) * - + 68 * - col0 / col1 + + - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6932
SELECT ALL CAST ( NULL AS INTEGER ) * - + 68 * - col0 / col1 + + - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 JOIN tab2 cor1 ON ( NOT NULL IS NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 87 - - 88 * - + col1 col1 FROM tab1
----
-1319
-4223
-527

query I rowsort
SELECT - col0 * - - col1 - - + col0 FROM tab1 AS cor0
----
-340
-4186
-663

query I rowsort
SELECT ALL - + 47 AS col2 FROM tab2 AS cor0
----
-47
-47
-47

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 * col2 / - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 36 AS col2 FROM tab0 cor0
----
36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - ( + + col1 ) col0, + col1 * ( col2 ) - 20 FROM tab0 AS cor0
----
-1
79
-21
190
-81
3787

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN - 55 AND - - col2
----

query II rowsort
SELECT ALL col2 AS col2, 51 + + col1 FROM tab2 AS cor0 WHERE NULL < + 22 * col1 - + col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + + col2 * - + col0 + + + col2 * col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6943
SELECT + COUNT( * ) * - + 54 FROM tab2
----
-162

skipif mysql # not compatible
query I rowsort label-6943
SELECT + COUNT ( * ) * - + 54 FROM tab2
----
-162

onlyif mysql # DIV for integer division: 
query I rowsort label-6944
SELECT - col2 DIV - - 48 AS col1 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6944
SELECT - col2 / - - 48 AS col1 FROM tab2
----
-1
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6945
SELECT + col0 DIV + + col0 col0 FROM tab2
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6945
SELECT + col0 / + + col0 col0 FROM tab2
----
1
1
1

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col2 >= - 32
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6947
SELECT ALL 90 DIV col0 FROM tab0
----
0
1
6

skipif mysql # not compatible
query I rowsort label-6947
SELECT ALL 90 / col0 FROM tab0
----
0
1
6

query I rowsort
SELECT + col2 + + 51 AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT ALL + + 17, col1 FROM tab2 AS cor0
----
17
51
17
67
17
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6950
SELECT DISTINCT + + ( - + COUNT( * ) ) FROM tab2 AS cor0 WHERE + col2 BETWEEN + ( - 29 ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-6950
SELECT DISTINCT + + ( - + COUNT ( * ) ) FROM tab2 AS cor0 WHERE + col2 BETWEEN + ( - 29 ) AND NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6951
SELECT ALL 62 + - ( + + SUM( + col0 ) ) AS col2, + COUNT( * ) AS col2 FROM tab0
----
-137
3

skipif mysql # not compatible
query II rowsort label-6951
SELECT ALL 62 + - ( + + SUM ( + col0 ) ) AS col2, + COUNT ( * ) AS col2 FROM tab0
----
-137
3

query I rowsort
SELECT - + 26 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 47d0574274146de273829785364ada39

query I rowsort
SELECT ALL + ( + + col0 ) FROM tab1
----
51
85
91

query I rowsort
SELECT + 66 * col1 * col0 FROM tab0 AS cor0
----
120582
6402
80190

onlyif mysql # aggregate syntax: 
query I rowsort label-6955
SELECT DISTINCT - COUNT( * ) + + 1 AS col1 FROM tab1 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-6955
SELECT DISTINCT - COUNT ( * ) + + 1 AS col1 FROM tab1 AS cor0
----
-2

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 87 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + - ( 21 ) AS col1 FROM tab0 AS cor0
----
-21
-21
-21

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 * - - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6959
SELECT DISTINCT - MIN( ALL + col1 ) col2, 55 AS col2 FROM tab2 AS cor0
----
-51
55

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6959
SELECT DISTINCT - MIN ( ALL + col1 ) col2, 55 AS col2 FROM tab2 AS cor0
----
-51
55

query I rowsort
SELECT ALL - 29 * - col2 * + - 30 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT DISTINCT col2 + 67 AS col2, ( - + 40 ) * - 37 AS col1 FROM tab2 AS cor0
----
107
1480
125
1480
90
1480

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6962
SELECT + + col1 + - CAST( - - col1 AS SIGNED ) * + - col0 AS col1 FROM tab1 AS cor0
----
430
4324
728

skipif mysql # not compatible
query I rowsort label-6962
SELECT + + col1 + - CAST ( - - col1 AS INTEGER ) * + - col0 AS col1 FROM tab1 AS cor0
----
430
4324
728

query I rowsort
SELECT - 39 + 54 FROM tab1 AS cor0
----
15
15
15

query II rowsort
SELECT col2 + - 44 * - col1, + 24 - + 87 AS col2 FROM tab0
----
143
-63
3611
-63
934
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6965
SELECT MAX( ALL + ( + col2 ) ) + - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6965
SELECT MAX ( ALL + ( + col2 ) ) + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL

query I rowsort
SELECT ALL - col2 * - col2 * + ( + col1 ) AS col0 FROM tab1
----
129024
17405
217328

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - + 49 * col1 * + col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 39 + col0 AS col2 FROM tab0 WHERE - col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6969
SELECT DISTINCT - col2 * + col0 / + 29 / - col1 * CAST( NULL AS SIGNED ) * - - col0 * + col1 + + + col0 col0 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6969
SELECT DISTINCT - col2 * + col0 / + 29 / - col1 * CAST ( NULL AS INTEGER ) * - - col0 * + col1 + + + col0 col0 FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6970
SELECT col0 * - col0 DIV + col0 + + col1 * + 42 FROM tab1
----
125
1883
537

skipif mysql # not compatible
query I rowsort label-6970
SELECT col0 * - col0 / + col0 + + col1 * + 42 FROM tab1
----
125
1883
537

query I rowsort
SELECT DISTINCT - - col1 AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6972
SELECT ALL + 43 DIV + col2 + col1 - - 29 AS col2 FROM tab2
----
107
81
96

skipif mysql # not compatible
query I rowsort label-6972
SELECT ALL + 43 / + col2 + col1 - - 29 AS col2 FROM tab2
----
107
81
96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6973
SELECT + 38 * - col1 AS col1, 49 + - 3 * - - CAST( - 91 AS SIGNED ) FROM tab1 WHERE - + col1 IS NULL
----

skipif mysql # not compatible
query II rowsort label-6973
SELECT + 38 * - col1 AS col1, 49 + - 3 * - - CAST ( - 91 AS INTEGER ) FROM tab1 WHERE - + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6974
SELECT DISTINCT - COUNT( DISTINCT - 75 ) FROM tab1 AS cor0 WHERE NOT + 70 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6974
SELECT DISTINCT - COUNT ( DISTINCT - 75 ) FROM tab1 AS cor0 WHERE NOT + 70 IS NOT NULL
----
0

query I rowsort
SELECT ALL - 69 FROM tab0 AS cor0 WHERE NOT - col0 = - col0 * 79 + - col0 * + col0 + - + col1
----
-69
-69
-69

query II rowsort
SELECT ALL - col1 AS col1, - col1 AS col1 FROM tab0 AS cor0
----
-1
-1
-21
-21
-81
-81

query I rowsort
SELECT DISTINCT + col0 * + 51 FROM tab0
----
4437
4947
765

onlyif mysql # aggregate syntax: 
query I rowsort label-6978
SELECT DISTINCT - + COUNT( * ) col1 FROM ( tab2 cor0 CROSS JOIN tab0 cor1 )
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6978
SELECT DISTINCT - + COUNT ( * ) col1 FROM ( tab2 cor0 CROSS JOIN tab0 cor1 )
----
-9

query I rowsort
SELECT ALL - 9 * 83 FROM tab2
----
-747
-747
-747

onlyif mysql # aggregate syntax: 
query I rowsort label-6980
SELECT + SUM( ALL + + col0 ) col2 FROM tab0
----
199

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6980
SELECT + SUM ( ALL + + col0 ) col2 FROM tab0
----
199

onlyif mysql # aggregate syntax: 
query I rowsort label-6981
SELECT - COUNT( * ) AS col1 FROM tab2 WHERE NOT - + 57 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-6981
SELECT - COUNT ( * ) AS col1 FROM tab2 WHERE NOT - + 57 IS NULL
----
-3

query I rowsort
SELECT ALL - + 15 FROM tab0 cor0
----
-15
-15
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6983
SELECT - - CAST( 8 AS SIGNED ) AS col0, COUNT( * ) DIV - COUNT( * ) AS col2 FROM tab2 AS cor0
----
8
-1

skipif mysql # not compatible
query II rowsort label-6983
SELECT - - CAST ( 8 AS INTEGER ) AS col0, COUNT ( * ) / - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
8
-1

query I rowsort
SELECT - 97 * - col2 FROM tab0 AS cor0
----
4559
9603
970

query II rowsort
SELECT col0 AS col2, - 66 FROM tab2 AS cor0
----
46
-66
64
-66
75
-66

query I rowsort
SELECT DISTINCT - col2 FROM tab2 AS cor0 WHERE ( NULL ) = NULL
----

query I rowsort
SELECT 28 * - 68 FROM tab1 cor0
----
-1904
-1904
-1904

onlyif mysql # DIV for integer division: 
query II rowsort label-6988
SELECT DISTINCT - 30 DIV + col2, col1 * col1 AS col2 FROM tab2
----
-1
2601
0
4489
0
5929

skipif mysql # not compatible
query II rowsort label-6988
SELECT DISTINCT - 30 / + col2, col1 * col1 AS col2 FROM tab2
----
-1
2601
0
4489
0
5929

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 44 col0 FROM tab2 WHERE NOT + 50 NOT IN ( - - col2, - col1 )
----

query II rowsort
SELECT - col1 * - col1 AS col1, 94 AS col0 FROM tab0
----
1
94
441
94
6561
94

onlyif mysql # aggregate syntax: 
query I rowsort label-6991
SELECT - 62 * COUNT( * ) AS col1 FROM tab2 AS cor0
----
-186

skipif mysql # not compatible
query I rowsort label-6991
SELECT - 62 * COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-186

query I rowsort
SELECT ALL + 6 * + + col0 + + + col2 AS col0 FROM tab0 AS cor0
----
137
532
681

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6993
SELECT - 32 + + CAST( NULL AS SIGNED ) - - - 50 * + - 79 * + COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6993
SELECT - 32 + + CAST ( NULL AS INTEGER ) - - - 50 * + - 79 * + COUNT ( * ) FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6994
SELECT + + col2 / + 51 - CAST( NULL AS DECIMAL ) + col0 / - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6994
SELECT + + col2 / + 51 - CAST ( NULL AS REAL ) + col0 / - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT + col0 AS col0, + ( + + 41 ) FROM tab0 AS cor0
----
15
41
87
41
97
41

onlyif mysql # aggregate syntax: 
query I rowsort label-6996
SELECT DISTINCT + + COUNT( DISTINCT + 50 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6996
SELECT DISTINCT + + COUNT ( DISTINCT + 50 ) FROM tab0 AS cor0
----
1

query I rowsort
SELECT - - 1 * - col2 * - col2 * + col2 FROM tab2 AS cor0
----
12167
195112
64000

onlyif mysql # DIV for integer division: 
query I rowsort label-6998
SELECT + - col1 DIV 18 AS col1 FROM tab1 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-6998
SELECT + - col1 / 18 AS col1 FROM tab1 AS cor0
----
-2
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL = col1 + - col1 * - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7000
SELECT - - col2 * - + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7000
SELECT - - col2 * - + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT + col1, col2 * + 84, - 99 * + - ( col0 ) + - col0 AS col2 FROM tab2 WHERE - + ( + 23 ) < NULL
----

query I rowsort
SELECT + col2 - + - 95 * + - col0 * + - col2 AS col1 FROM tab0
----
67022
82660
912384

onlyif mysql # aggregate syntax: 
query I rowsort label-7003
SELECT ALL MAX( - col2 ) - COUNT( * ) col1 FROM tab0
----
-13

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7003
SELECT ALL MAX ( - col2 ) - COUNT ( * ) col1 FROM tab0
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-7004
SELECT DISTINCT COUNT( * ) - + COUNT( * ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7004
SELECT DISTINCT COUNT ( * ) - + COUNT ( * ) FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7005
SELECT 24 + + MIN( + 77 ) FROM tab0 AS cor0
----
101

skipif mysql # not compatible
query I rowsort label-7005
SELECT 24 + + MIN ( + 77 ) FROM tab0 AS cor0
----
101

query I rowsort
SELECT ALL - 32 - + + 15 - + 44 * col0 AS col2 FROM tab0 AS cor0
----
-3875
-4315
-707

onlyif mysql # aggregate syntax: 
query II rowsort label-7007
SELECT ALL COUNT( * ) AS col0, + 42 FROM tab1
----
3
42

skipif mysql # not compatible
query II rowsort label-7007
SELECT ALL COUNT ( * ) AS col0, + 42 FROM tab1
----
3
42

onlyif mysql # aggregate syntax: 
query I rowsort label-7008
SELECT DISTINCT - + MIN( 8 ) AS col2 FROM tab1 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-7008
SELECT DISTINCT - + MIN ( 8 ) AS col2 FROM tab1 AS cor0
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-7009
SELECT ALL SUM( ALL - col2 ) * + 34 + - 24 FROM tab1 AS cor0 WHERE ( + col0 ) BETWEEN 50 AND 39
----
NULL

skipif mysql # not compatible
query I rowsort label-7009
SELECT ALL SUM ( ALL - col2 ) * + 34 + - 24 FROM tab1 AS cor0 WHERE ( + col0 ) BETWEEN 50 AND 39
----
NULL

query I rowsort
SELECT - - 33 * - + 16 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) > + col2 + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7011
SELECT ALL + 84 * - 4 + + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7011
SELECT ALL + 84 * - 4 + + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 47 FROM tab2 cor0
----
47
47
47

query I rowsort
SELECT ALL - - 65 FROM tab0 AS cor0 WHERE NULL > col2 * - 61
----

query I rowsort
SELECT + + 6 AS col0 FROM tab2 WHERE NOT 87 * - col2 * + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7015
SELECT ( + - COUNT( * ) ) * 97 FROM tab1
----
-291

skipif mysql # not compatible
query I rowsort label-7015
SELECT ( + - COUNT ( * ) ) * 97 FROM tab1
----
-291

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL = ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7017
SELECT ALL + 69 * + + COUNT( * ) FROM tab2
----
207

skipif mysql # not compatible
query I rowsort label-7017
SELECT ALL + 69 * + + COUNT ( * ) FROM tab2
----
207

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7018
SELECT ALL CAST( NULL AS SIGNED ) AS col2, + col0 FROM tab0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-7018
SELECT ALL CAST ( NULL AS INTEGER ) AS col2, + col0 FROM tab0
----
NULL
15
NULL
87
NULL
97

query II rowsort
SELECT DISTINCT - 97 AS col1, col0 * ( + + 54 ) * - col1 - + col0 FROM tab1
----
-97
-23035
-97
-231049
-97
-38607

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7020
SELECT 15 * 88 * + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7020
SELECT 15 * 88 * + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 AS col2, - 8 - - 62 col0 FROM tab0
----
1
54
21
54
81
54

query I rowsort
SELECT + 63 * - 79 FROM tab1
----
-4977
-4977
-4977

query I rowsort
SELECT ALL 68 * + col2 + + 74 AS col2 FROM tab0
----
3270
6806
754

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 37 * - 57 col0 FROM tab2
----
-2109
-2109
-2109

query II rowsort
SELECT DISTINCT + col0 AS col0, col2 AS col2 FROM tab2
----
46
23
64
40
75
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7026
SELECT + 82 + + MAX( ALL + 85 ) FROM tab2 AS cor0
----
167

skipif mysql # not compatible
query I rowsort label-7026
SELECT + 82 + + MAX ( ALL + 85 ) FROM tab2 AS cor0
----
167

query I rowsort
SELECT col0 * col1 * - col1 - + - 75 AS col2 FROM tab1 AS cor0
----
-200944
-2050
-9921

onlyif mysql # DIV for integer division: 
query I rowsort label-7028
SELECT DISTINCT + col1 DIV 38 * + + col1 FROM tab1 AS cor0
----
0
47

skipif mysql # not compatible
query I rowsort label-7028
SELECT DISTINCT + col1 / 38 * + + col1 FROM tab1 AS cor0
----
0
47

onlyif mysql # aggregate syntax: 
query I rowsort label-7029
SELECT DISTINCT - COUNT( DISTINCT ( col1 ) ) + - 44 AS col0 FROM tab2 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-7029
SELECT DISTINCT - COUNT ( DISTINCT ( col1 ) ) + - 44 AS col0 FROM tab2 AS cor0
----
-47

query I rowsort
SELECT ALL col2 - + col0 AS col0 FROM tab1 cor0
----
-23
-26
45

query II rowsort
SELECT - - col0 + + + col0, ( + - 95 ) AS col1 FROM tab2 AS cor0
----
128
-95
150
-95
92
-95

query I rowsort
SELECT + col2 + - + col2 + + 31 - - col0 * + 94 AS col1 FROM tab0 AS cor0
----
1441
8209
9149

onlyif mysql # DIV for integer division: 
query I rowsort label-7033
SELECT ALL 3 DIV + col1 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7033
SELECT ALL 3 / + col1 AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT + 22 * - 16 FROM tab0 WHERE + col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-7035
SELECT ALL - 69 DIV + ( - 7 ) AS col0, 27 FROM tab1
----
9
27
9
27
9
27

skipif mysql # not compatible
query II rowsort label-7035
SELECT ALL - 69 / + ( - 7 ) AS col0, 27 FROM tab1
----
9
27
9
27
9
27

onlyif mysql # DIV for integer division: 
query I rowsort label-7036
SELECT ALL ( - + 7 ) DIV col2 + 43 AS col1 FROM tab0
----
43
43
43

skipif mysql # not compatible
query I rowsort label-7036
SELECT ALL ( - + 7 ) / col2 + 43 AS col1 FROM tab0
----
43
43
43

onlyif mysql # DIV for integer division: 
query II rowsort label-7037
SELECT + col2, + 6 DIV + + ( - col2 ) + - col1 FROM tab0
----
10
-21
47
-81
99
-1

skipif mysql # not compatible
query II rowsort label-7037
SELECT + col2, + 6 / + + ( - col2 ) + - col1 FROM tab0
----
10
-21
47
-81
99
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7038
SELECT CAST( - + 0 AS SIGNED ) FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7038
SELECT CAST ( - + 0 AS INTEGER ) FROM tab2
----
0
0
0

query I rowsort
SELECT ALL 2 - + 37 AS col1 FROM tab1
----
-35
-35
-35

query I rowsort
SELECT - col1 * - 4 FROM tab1 WHERE NULL <> NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 89 BETWEEN + col0 * + + col2 * + 18 * col2 AND NULL
----

query I rowsort
SELECT DISTINCT - ( 44 ) FROM tab2 AS cor0
----
-44

onlyif mysql # DIV for integer division: 
query II rowsort label-7043
SELECT - 89 * - col1 DIV col1 * - col0, - 45 + + + col2 col1 FROM tab1
----
-4539
51
-7565
14
-8099
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7043
SELECT - 89 * - col1 / col1 * - col0, - 45 + + + col2 col1 FROM tab1
----
-4539
51
-7565
14
-8099
23

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab0 AS cor0 WHERE col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 84 col1 FROM tab2 AS cor0
----
84

query I rowsort
SELECT ALL col2 * + 55 + 16 FROM tab2 AS cor0
----
1281
2216
3206

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 col0 FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT 42 + - 56 FROM tab2 WHERE NOT ( + - col1 ) IS NULL
----
-14
-14
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-7049
SELECT DISTINCT + 3 + + COUNT( * ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-7049
SELECT DISTINCT + 3 + + COUNT ( * ) FROM tab0
----
6

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 * - col1 - + ( + ( - 45 ) ) * - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7051
SELECT ALL 48 + + SUM( DISTINCT col0 ) AS col1 FROM tab2
----
233

skipif mysql # not compatible
query I rowsort label-7051
SELECT ALL 48 + + SUM ( DISTINCT col0 ) AS col1 FROM tab2
----
233

query I rowsort
SELECT ALL col2 * 42 AS col2 FROM tab1
----
2478
2856
4032

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL < - ( col1 ) + - col2
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7054
SELECT - 25 * - COUNT( * ), 79 - - + COUNT( + ( 68 ) ) AS col1 FROM tab0 WHERE NOT - + col1 < - CAST( NULL AS DECIMAL ) * + + col0 + 58
----
0
79

skipif mysql # not compatible
query II rowsort label-7054
SELECT - 25 * - COUNT ( * ), 79 - - + COUNT ( + ( 68 ) ) AS col1 FROM tab0 WHERE NOT - + col1 < - CAST ( NULL AS REAL ) * + + col0 + 58
----
0
79

query I rowsort
SELECT col1 * 13 FROM tab1
----
182
611
65

query I rowsort
SELECT ALL - 21 * + 74 AS col0 FROM tab1 AS cor0
----
-1554
-1554
-1554

query I rowsort
SELECT ALL - 91 * col0 AS col1 FROM tab0 AS cor0
----
-1365
-7917
-8827

query II rowsort
SELECT + col2, - col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL - 98 + 43 FROM tab2
----
-55
-55
-55

onlyif mysql # aggregate syntax: 
query II rowsort label-7060
SELECT 60 AS col2, COUNT( col1 ) col1 FROM tab1 AS cor0
----
60
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7060
SELECT 60 AS col2, COUNT ( col1 ) col1 FROM tab1 AS cor0
----
60
3

onlyif mysql # DIV for integer division: 
query II rowsort label-7061
SELECT + - col0, 47 DIV 51 AS col2 FROM tab0 AS cor0
----
-15
0
-87
0
-97
0

skipif mysql # not compatible
query II rowsort label-7061
SELECT + - col0, 47 / 51 AS col2 FROM tab0 AS cor0
----
-15
0
-87
0
-97
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7062
SELECT - MAX( - - col0 ) FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-7062
SELECT - MAX ( - - col0 ) FROM tab0 AS cor0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-7063
SELECT MIN( + 36 ) AS col1 FROM tab1 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-7063
SELECT MIN ( + 36 ) AS col1 FROM tab1 AS cor0
----
36

query I rowsort
SELECT DISTINCT col2 * - + col2 - + 95 FROM tab2 AS cor0
----
-1695
-3459
-624

query I rowsort
SELECT - col2 * + + col0 * + 47 * + col1 + + - col0 FROM tab2 AS cor0
----
-13698225
-2536072
-9264704

query II rowsort
SELECT ALL + - 62 AS col2, col1 FROM tab1 AS cor0
----
-62
14
-62
47
-62
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7067
SELECT - MAX( + 11 ) * CAST( NULL AS SIGNED ) + - - COUNT( * ) - - + AVG ( ALL + col2 ) * - + COUNT( * ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7067
SELECT - MAX ( + 11 ) * CAST ( NULL AS INTEGER ) + - - COUNT ( * ) - - + AVG ( ALL + col2 ) * - + COUNT ( * ) FROM tab0 cor0
----
NULL

query II rowsort
SELECT DISTINCT - 14 AS col1, 40 AS col1 FROM tab0 AS cor0
----
-14
40

query I rowsort
SELECT ALL - col1 + - 36 AS col2 FROM tab2
----
-103
-113
-87

query I rowsort
SELECT + col1 AS col1 FROM tab2 WHERE - 75 = NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 18 >= NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 17 + col0 IS NOT NULL
----

query II rowsort
SELECT col2 AS col2, 74 AS col0 FROM tab1
----
59
74
68
74
96
74

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-7074
SELECT DISTINCT col0, ( + CAST( NULL AS DECIMAL ) ) + CAST( NULL AS SIGNED ) + col2 FROM tab2
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-7074
SELECT DISTINCT col0, ( + CAST ( NULL AS REAL ) ) + CAST ( NULL AS INTEGER ) + col2 FROM tab2
----
46
NULL
64
NULL
75
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7075
SELECT - 71 * + COUNT( * ) AS col1 FROM tab0
----
-213

skipif mysql # not compatible
query I rowsort label-7075
SELECT - 71 * + COUNT ( * ) AS col1 FROM tab0
----
-213

query II rowsort
SELECT 99 AS col1, - col0 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND + col0
----

query I rowsort
SELECT + + 88 * + - col2 AS col0 FROM tab1 AS cor0
----
-5192
-5984
-8448

query II rowsort
SELECT - col1 AS col0, col1 FROM tab0 AS cor0
----
-1
1
-21
21
-81
81

onlyif mysql # aggregate syntax: 
query II rowsort label-7079
SELECT - + COUNT( * ) AS col0, + COUNT( * ) + - COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-3
0

skipif mysql # not compatible
query II rowsort label-7079
SELECT - + COUNT ( * ) AS col0, + COUNT ( * ) + - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-3
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7080
SELECT DISTINCT + + col2 * + CAST( NULL AS SIGNED ) / + + ( - 85 ) / + + col0 + col2 * - col0 col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7080
SELECT DISTINCT + + col2 * + CAST ( NULL AS INTEGER ) / + + ( - 85 ) / + + col0 + col2 * - col0 col2 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 92 >= NULL
----

query II rowsort
SELECT ALL + + col2, col2 FROM tab0 AS cor0
----
10
10
47
47
99
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7083
SELECT CAST( NULL AS SIGNED ) + - col2 + + col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7083
SELECT CAST ( NULL AS INTEGER ) + - col2 + + col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7084
SELECT DISTINCT + col2 * - - CAST( NULL AS SIGNED ) * 63 / ( + - 17 ) * - col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7084
SELECT DISTINCT + col2 * - - CAST ( NULL AS INTEGER ) * 63 / ( + - 17 ) * - col1 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT 93 FROM tab0 WHERE - 47 + - 80 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7086
SELECT - COUNT( * ) + + 26 * - MIN( ALL + + 38 ) AS col2 FROM tab0
----
-991

skipif mysql # not compatible
query I rowsort label-7086
SELECT - COUNT ( * ) + + 26 * - MIN ( ALL + + 38 ) AS col2 FROM tab0
----
-991

query I rowsort
SELECT - col2 AS col0 FROM tab0 WHERE NULL BETWEEN NULL AND + + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + + col2 ) col0 FROM tab1
----
59
68
96

query I rowsort
SELECT DISTINCT col2 * - col1 + + + 64 AS col1 FROM tab0 AS cor0
----
-146
-35
-3743

onlyif mysql # aggregate syntax: 
query II rowsort label-7090
SELECT 42 AS col1, + COUNT( * ) FROM tab2
----
42
3

skipif mysql # not compatible
query II rowsort label-7090
SELECT 42 AS col1, + COUNT ( * ) FROM tab2
----
42
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7091
SELECT COUNT( * ) - - + COUNT( * ) AS col1 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-7091
SELECT COUNT ( * ) - - + COUNT ( * ) AS col1 FROM tab2
----
6

query I rowsort
SELECT + + col0 * 91 + + + col0 FROM tab0 AS cor0
----
1380
8004
8924

onlyif mysql # aggregate syntax: 
query I rowsort label-7093
SELECT DISTINCT + 31 - + COUNT( * ) FROM tab2 AS cor0
----
28

skipif mysql # not compatible
query I rowsort label-7093
SELECT DISTINCT + 31 - + COUNT ( * ) FROM tab2 AS cor0
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-7094
SELECT + col2 DIV - 48 FROM tab2 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7094
SELECT + col2 / - 48 FROM tab2 cor0
----
-1
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7095
SELECT ALL * FROM tab1 WHERE NOT col2 * + CAST( NULL AS SIGNED ) + 84 + - col0 / + col2 * ( col1 ) + + 69 BETWEEN ( + + col1 ) AND col0
----

skipif mysql # not compatible
query III rowsort label-7095
SELECT ALL * FROM tab1 WHERE NOT col2 * + CAST ( NULL AS INTEGER ) + 84 + - col0 / + col2 * ( col1 ) + + 69 BETWEEN ( + + col1 ) AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7096
SELECT ALL + MAX( DISTINCT 56 ) * + + COUNT( * ) col1 FROM tab0
----
168

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7096
SELECT ALL + MAX ( DISTINCT 56 ) * + + COUNT ( * ) col1 FROM tab0
----
168

onlyif mysql # DIV for integer division: 
query I rowsort label-7097
SELECT DISTINCT col2 DIV - 38 FROM tab0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-7097
SELECT DISTINCT col2 / - 38 FROM tab0
----
-1
-2
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7098
SELECT 60 DIV 4 AS col1 FROM tab2
----
15
15
15

skipif mysql # not compatible
query I rowsort label-7098
SELECT 60 / 4 AS col1 FROM tab2
----
15
15
15

query II rowsort
SELECT 51, col0 FROM tab0
----
51
15
51
87
51
97

query I rowsort
SELECT - col0 + 57 FROM tab0 WHERE NOT + col0 - + col1 * col1 IN ( - - col2, col0 * + ( col1 ) + - col0 )
----
-30
-40
42

query II rowsort
SELECT DISTINCT + col2 AS col1, col1 + - col0 AS col2 FROM tab1 AS cor0
----
59
-80
68
-44
96
-37

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 + + 88 <= + - ( + + col2 ) + + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7103
SELECT + 51 * + CAST( + ( + col2 ) AS SIGNED ) FROM tab1 AS cor0
----
3009
3468
4896

skipif mysql # not compatible
query I rowsort label-7103
SELECT + 51 * + CAST ( + ( + col2 ) AS INTEGER ) FROM tab1 AS cor0
----
3009
3468
4896

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7104
SELECT - CAST( - col0 AS SIGNED ), 78 AS col1 FROM tab2 AS cor0
----
46
78
64
78
75
78

skipif mysql # not compatible
query II rowsort label-7104
SELECT - CAST ( - col0 AS INTEGER ), 78 AS col1 FROM tab2 AS cor0
----
46
78
64
78
75
78

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + col0 >= NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7106
SELECT CAST( NULL AS SIGNED ) * + - col2 * + 54 col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7106
SELECT CAST ( NULL AS INTEGER ) * + - col2 * + 54 col2 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE + + col0 * + + col0 * col2 < NULL
----

query I rowsort
SELECT DISTINCT + 18 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7109
SELECT - + col2 + 49 AS col0 FROM tab2 WHERE NOT + 1 * - + col1 - + col0 - + CAST( 39 AS SIGNED ) * + col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7109
SELECT - + col2 + 49 AS col0 FROM tab2 WHERE NOT + 1 * - + col1 - + col0 - + CAST ( 39 AS INTEGER ) * + col2 IS NOT NULL
----

query I rowsort
SELECT ALL + - col1 FROM tab1 WHERE NOT - 44 + + - ( + col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7111
SELECT - COUNT( * ) * 59 FROM tab2 AS cor0
----
-177

skipif mysql # not compatible
query I rowsort label-7111
SELECT - COUNT ( * ) * 59 FROM tab2 AS cor0
----
-177

query II rowsort
SELECT + col0 * col0 AS col1, col0 AS col1 FROM tab1 AS cor0
----
2601
51
7225
85
8281
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7113
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-7113
SELECT + ( + + CAST ( col1 AS INTEGER ) ) col1 FROM tab0 AS cor0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7114
SELECT DISTINCT - COUNT( DISTINCT ( + 67 ) ) FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7114
SELECT DISTINCT - COUNT ( DISTINCT ( + 67 ) ) FROM tab1 AS cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - ( - - col1 ) col2, 75 FROM tab1 AS cor0
----
14
75
47
75
5
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1, + col0 col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL OR + - col2 IS NOT NULL
----
1
97
21
87
81
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7117
SELECT - CAST( - 33 AS SIGNED ) FROM tab1 AS cor0
----
33
33
33

skipif mysql # not compatible
query I rowsort label-7117
SELECT - CAST ( - 33 AS INTEGER ) FROM tab1 AS cor0
----
33
33
33

onlyif mysql # DIV for integer division: 
query I rowsort label-7118
SELECT 77 DIV - col2 FROM tab2
----
-1
-1
-3

skipif mysql # not compatible
query I rowsort label-7118
SELECT 77 / - col2 FROM tab2
----
-1
-1
-3

query I rowsort
SELECT ALL + col1 + - 28 AS col1 FROM tab1
----
-14
-23
19

query I rowsort
SELECT DISTINCT - 58 + 0 FROM tab1
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-7121
SELECT ( MIN( - col2 ) ) FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-7121
SELECT ( MIN ( - col2 ) ) FROM tab2
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-7122
SELECT ALL + COUNT( * ) + - 45 FROM tab2
----
-42

skipif mysql # not compatible
query I rowsort label-7122
SELECT ALL + COUNT ( * ) + - 45 FROM tab2
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-7123
SELECT SUM( + - col1 ) AS col2 FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-7123
SELECT SUM ( + - col1 ) AS col2 FROM tab0
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-7124
SELECT DISTINCT + SUM( DISTINCT + col2 ) AS col0 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-7124
SELECT DISTINCT + SUM ( DISTINCT + col2 ) AS col0 FROM tab0 AS cor0
----
156

query I rowsort
SELECT - 48 + - - col0 * col2 + - col2 * - 60 FROM tab2 AS cor0
----
2390
4912
7782

query I rowsort
SELECT 82 + + col2 + + - 31 FROM tab1 AS cor0
----
110
119
147

onlyif mysql # aggregate syntax: 
query I rowsort label-7127
SELECT ALL - 22 + - - COUNT( col1 ) col1 FROM tab0 AS cor0
----
-19

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7127
SELECT ALL - 22 + - - COUNT ( col1 ) col1 FROM tab0 AS cor0
----
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-7128
SELECT DISTINCT + col1 DIV + 63 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7128
SELECT DISTINCT + col1 / + 63 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7129
SELECT - MIN( DISTINCT - - col2 ) * - 65 AS col2 FROM tab1
----
3835

skipif mysql # not compatible
query I rowsort label-7129
SELECT - MIN ( DISTINCT - - col2 ) * - 65 AS col2 FROM tab1
----
3835

query I rowsort
SELECT + col0 * 14 FROM tab2
----
1050
644
896

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7131
SELECT DISTINCT COUNT( ALL - 80 ) * + AVG ( ALL + CAST( NULL AS DECIMAL ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7131
SELECT DISTINCT COUNT ( ALL - 80 ) * + AVG ( ALL + CAST ( NULL AS REAL ) ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7132
SELECT DISTINCT MAX( DISTINCT 17 ) FROM tab2
----
17

skipif mysql # not compatible
query I rowsort label-7132
SELECT DISTINCT MAX ( DISTINCT 17 ) FROM tab2
----
17

query II rowsort
SELECT + 92 AS col0, + col0 AS col1 FROM tab0
----
92
15
92
87
92
97

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + ( + col2 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7135
SELECT + col2 DIV - ( - + col0 ) FROM tab0 cor0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-7135
SELECT + col2 / - ( - + col0 ) FROM tab0 cor0
----
0
1
3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col1 * - + 61 * + col2 * col0 * + + col1 + col1 - - col0 + - col2 + col1 <> + - col1 + + col0 * - + col0 OR NOT NULL IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7137
SELECT DISTINCT + CAST( NULL AS SIGNED ) / - col0 FROM tab2 AS cor0 WHERE + col1 / - 49 BETWEEN - 66 AND + + col0 * - col1
----

skipif mysql # not compatible
query I rowsort label-7137
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / - col0 FROM tab2 AS cor0 WHERE + col1 / - 49 BETWEEN - 66 AND + + col0 * - col1
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( col1 + - col2 * - 51 ) > col0 + col2 + col2 * - 87 * - col1 * 3 * - col1
----

query I rowsort
SELECT DISTINCT col2 * - col2 * + + col2 AS col1 FROM tab0 AS cor0
----
-1000
-103823
-970299

onlyif mysql # DIV for integer division: 
query II rowsort label-7140
SELECT ALL 65 DIV col2 AS col0, col2 * col1 * - 91 FROM tab2
----
1
-280280
1
-353626
2
-106743

skipif mysql # not compatible
query II rowsort label-7140
SELECT ALL 65 / col2 AS col0, col2 * col1 * - 91 FROM tab2
----
1
-280280
1
-353626
2
-106743

query III rowsort
SELECT ALL * FROM tab1 WHERE col1 IN ( + - 17, 29 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7142
SELECT ALL col0, - CAST( NULL AS SIGNED ) / - - ( col1 ) - - + col2 * col2 FROM tab1 AS cor0
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-7142
SELECT ALL col0, - CAST ( NULL AS INTEGER ) / - - ( col1 ) - - + col2 * col2 FROM tab1 AS cor0
----
51
NULL
85
NULL
91
NULL

query I rowsort
SELECT + col2 + + col0 * - + 77 * + col1 AS col2 FROM tab2 AS cor0
----
-180619
-379416
-386867

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7144
SELECT MIN( CAST( + ( - col0 ) AS SIGNED ) ) col1 FROM tab2 AS cor0 WHERE + col2 * - 75 * - + 23 IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7144
SELECT MIN ( CAST ( + ( - col0 ) AS INTEGER ) ) col1 FROM tab2 AS cor0 WHERE + col2 * - 75 * - + 23 IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - - 25 * - col2 + 12 + col0 * - 96 col1 FROM tab0
----
-10840
-254325
-56653

query I rowsort
SELECT - 84 + col0 AS col0 FROM tab2
----
-20
-38
-9

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT IN ( - col0, - 5 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7148
SELECT ALL - 48 DIV col0 + - - 2 FROM tab2
----
1
2
2

skipif mysql # not compatible
query I rowsort label-7148
SELECT ALL - 48 / col0 + - - 2 FROM tab2
----
1
2
2

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - + col1 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7150
SELECT + 97 AS col0, ( + + ( - col1 ) ) AS col1 FROM tab2 WHERE CAST( + col1 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query II rowsort label-7150
SELECT + 97 AS col0, ( + + ( - col1 ) ) AS col1 FROM tab2 WHERE CAST ( + col1 AS INTEGER ) IS NULL
----

query I rowsort
SELECT - 50 + - 30 * - col0 FROM tab2
----
1330
1870
2200

onlyif mysql # DIV for integer division: 
query I rowsort label-7152
SELECT + col2 DIV col0 + col0 AS col2 FROM tab1
----
52
85
91

skipif mysql # not compatible
query I rowsort label-7152
SELECT + col2 / col0 + col0 AS col2 FROM tab1
----
52
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7153
SELECT ALL 85 * + + 39 * 83 + + COUNT( * ) AS col1 FROM tab1
----
275148

skipif mysql # not compatible
query I rowsort label-7153
SELECT ALL 85 * + + 39 * 83 + + COUNT ( * ) AS col1 FROM tab1
----
275148

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7154
SELECT col2 + - col0 DIV - + col1 AS col0, - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
23
NULL
40
NULL
59
NULL

skipif mysql # not compatible
query II rowsort label-7154
SELECT col2 + - col0 / - + col1 AS col0, - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
23
NULL
40
NULL
59
NULL

query I rowsort
SELECT ALL 65 + - - col2 AS col2 FROM tab2
----
105
123
88

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7156
SELECT DISTINCT * FROM tab0 WHERE NOT - ( - - 9 ) * col2 NOT IN ( + CAST( + + 11 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-7156
SELECT DISTINCT * FROM tab0 WHERE NOT - ( - - 9 ) * col2 NOT IN ( + CAST ( + + 11 AS INTEGER ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7157
SELECT + col1 * + 13 * - col1 DIV col1 - - col1 AS col1 FROM tab1 AS cor0 WHERE 91 + 89 <> col2 * + col0
----
-168
-564
-60

skipif mysql # not compatible
query I rowsort label-7157
SELECT + col1 * + 13 * - col1 / col1 - - col1 AS col1 FROM tab1 AS cor0 WHERE 91 + 89 <> col2 * + col0
----
-168
-564
-60

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 * 10 IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-7159
SELECT ALL + ( col1 ), - col1 DIV col1 FROM tab2 cor0
----
51
-1
67
-1
77
-1

skipif mysql # not compatible
query II rowsort label-7159
SELECT ALL + ( col1 ), - col1 / col1 FROM tab2 cor0
----
51
-1
67
-1
77
-1

query I rowsort
SELECT 35 - + col2 * + col1 FROM tab1
----
-1309
-260
-3161

query I rowsort
SELECT col0 - + 34 AS col1 FROM tab2
----
12
30
41

query I rowsort
SELECT DISTINCT - + 59 AS col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-59

query I rowsort
SELECT ( - - 51 ) - + col0 AS col2 FROM tab2
----
-13
-24
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7164
SELECT DISTINCT COUNT( * ) AS col1 FROM ( tab1 cor0 CROSS JOIN tab2 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-7164
SELECT DISTINCT COUNT ( * ) AS col1 FROM ( tab1 cor0 CROSS JOIN tab2 AS cor1 )
----
9

query I rowsort
SELECT - - col0 * - - col1 - - col2 * 60 FROM tab0 WHERE NULL > NULL
----

query I rowsort
SELECT DISTINCT + col2 * + - 54 * 69 + - - 16 FROM tab1 AS cor0
----
-219818
-253352
-357680

query I rowsort
SELECT ALL + 76 * + col0 AS col0 FROM tab1 AS cor0
----
3876
6460
6916

query I rowsort
SELECT DISTINCT + col0 * + 74 AS col2 FROM tab1 AS cor0
----
3774
6290
6734

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7169
SELECT DISTINCT COUNT( * ) DIV + COUNT( * ) AS col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7169
SELECT DISTINCT COUNT ( * ) / + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
1

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE - 83 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col2 * + 0 AS col1 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7172
SELECT + COUNT( * ) AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-7172
SELECT + COUNT ( * ) AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
3

query I rowsort
SELECT - 89 * ( + - 71 ) AS col2 FROM tab2
----
6319
6319
6319

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7174
SELECT - 2 * 85 AS col0, CAST( NULL AS DECIMAL ) AS col1 FROM tab1
----
-170
NULL
-170
NULL
-170
NULL

skipif mysql # not compatible
query II rowsort label-7174
SELECT - 2 * 85 AS col0, CAST ( NULL AS REAL ) AS col1 FROM tab1
----
-170
NULL
-170
NULL
-170
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7175
SELECT + CAST( - + col2 AS SIGNED ) + col1 FROM tab0 WHERE NOT + col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7175
SELECT + CAST ( - + col2 AS INTEGER ) + col1 FROM tab0 WHERE NOT + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7176
SELECT ALL col0 * - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7176
SELECT ALL col0 * - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7177
SELECT + - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-7177
SELECT + - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT - col2 * + 59 FROM tab2 cor0
----
-1357
-2360
-3422

query I rowsort
SELECT ALL - col1 * 70 AS col1 FROM tab2 AS cor0
----
-3570
-4690
-5390

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 37 col2 FROM tab1 AS cor0
----
37
37
37

onlyif mysql # DIV for integer division: 
query I rowsort label-7181
SELECT DISTINCT - col2 DIV 74 * + - col2 AS col2 FROM tab1
----
0
96

skipif mysql # not compatible
query I rowsort label-7181
SELECT DISTINCT - col2 / 74 * + - col2 AS col2 FROM tab1
----
0
96

query I rowsort
SELECT DISTINCT - + 99 * - col1 AS col2 FROM tab2 AS cor0
----
5049
6633
7623

onlyif mysql # aggregate syntax: 
query I rowsort label-7183
SELECT DISTINCT 77 * - + COUNT( * ) * 2 * + COUNT( * ) + - + COUNT( * ) FROM tab2 AS cor0
----
-1389

skipif mysql # not compatible
query I rowsort label-7183
SELECT DISTINCT 77 * - + COUNT ( * ) * 2 * + COUNT ( * ) + - + COUNT ( * ) FROM tab2 AS cor0
----
-1389

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 83 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7185
SELECT + - SUM( - col0 ) * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7185
SELECT + - SUM ( - col0 ) * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + 72 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7187
SELECT ALL + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 WHERE NOT ( - - col1 ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7187
SELECT ALL + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 WHERE NOT ( - - col1 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + ( + col1 ) FROM tab1 AS cor0 WHERE NOT NULL >= ( NULL )
----

query I rowsort
SELECT DISTINCT - col2 * - - col2 AS col1 FROM tab0 AS cor0
----
-100
-2209
-9801

query II rowsort
SELECT ALL col2 AS col2, + 33 AS col0 FROM tab2 AS cor0
----
23
33
40
33
58
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7191
SELECT + col0 / CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7191
SELECT + col0 / CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7192
SELECT ALL 93 DIV + 91 AS col1 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7192
SELECT ALL 93 / + 91 AS col1 FROM tab2
----
1
1
1

query I rowsort
SELECT ALL col1 + - - col0 AS col2 FROM tab1
----
138
65
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7194
SELECT ALL + CAST( - col1 AS SIGNED ) * ( + 96 ) AS col1 FROM tab2 WHERE + 2 > NULL
----

skipif mysql # not compatible
query I rowsort label-7194
SELECT ALL + CAST ( - col1 AS INTEGER ) * ( + 96 ) AS col1 FROM tab2 WHERE + 2 > NULL
----

query I rowsort
SELECT col2 FROM tab2 WHERE ( + col1 * - - 93 ) <= col1 * 41
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7196
SELECT + - COUNT( * ) * + COUNT( * ) FROM tab2 AS cor0 WHERE col0 * col1 IS NOT NULL
----
-9

skipif mysql # not compatible
query I rowsort label-7196
SELECT + - COUNT ( * ) * + COUNT ( * ) FROM tab2 AS cor0 WHERE col0 * col1 IS NOT NULL
----
-9

query I rowsort
SELECT ALL + col2 * - + col0 + + - col1 * 86 AS col0 FROM tab2
----
-10112
-5444
-9182

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7198
SELECT + col0 DIV - CAST( + col0 AS SIGNED ) col2 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7198
SELECT + col0 / - CAST ( + col0 AS INTEGER ) col2 FROM tab2 AS cor0
----
-1
-1
-1

query II rowsort
SELECT ALL 83 * + 50 AS col2, col2 AS col2 FROM tab1 AS cor0
----
4150
59
4150
68
4150
96

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( col0 * - - col0 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7201
SELECT DISTINCT col0, CAST( NULL AS DECIMAL ) FROM tab1
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-7201
SELECT DISTINCT col0, CAST ( NULL AS REAL ) FROM tab1
----
51
NULL
85
NULL
91
NULL

query I rowsort
SELECT 42 + + + 78 AS col1 FROM tab0 WHERE NOT col0 + - 16 + + col1 IS NULL
----
120
120
120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7203
SELECT col1 * + + col0 * - + ( + + CAST( NULL AS SIGNED ) ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7203
SELECT col1 * + + col0 * - + ( + + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT + col1 AS col2, col2 * col2 FROM tab2
----
51
529
67
3364
77
1600

query I rowsort
SELECT ALL 65 * - 76 * - col1 FROM tab1
----
232180
24700
69160

onlyif mysql # aggregate syntax: 
query I rowsort label-7206
SELECT 21 * SUM( ( + 3 ) ) FROM tab2
----
189

skipif mysql # not compatible
query I rowsort label-7206
SELECT 21 * SUM ( ( + 3 ) ) FROM tab2
----
189

onlyif mysql # aggregate syntax: 
query II rowsort label-7207
SELECT 63 AS col1, - COUNT( * ) FROM tab1
----
63
-3

skipif mysql # not compatible
query II rowsort label-7207
SELECT 63 AS col1, - COUNT ( * ) FROM tab1
----
63
-3

query I rowsort
SELECT - col1 * - - col0 AS col0 FROM tab2
----
-2346
-4928
-5025

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT + col0, 74 * - col0 FROM tab0 AS cor0
----
15
-1110
87
-6438
97
-7178

query I rowsort
SELECT - col1 * 19 * + col1 AS col2 FROM tab1
----
-3724
-41971
-475

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7212
SELECT DISTINCT - COUNT( * ) DIV 58 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-7212
SELECT DISTINCT - COUNT ( * ) / 58 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
0

query II rowsort
SELECT ALL 72 * - col1 AS col2, - col0 * - col0 FROM tab2
----
-3672
2116
-4824
5625
-5544
4096

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 16 col1 FROM tab2
----
-16
-16
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-7215
SELECT DISTINCT SUM( ALL col2 ) * + - 67 AS col0 FROM tab1
----
-14941

skipif mysql # not compatible
query I rowsort label-7215
SELECT DISTINCT SUM ( ALL col2 ) * + - 67 AS col0 FROM tab1
----
-14941

query I rowsort
SELECT ALL - col2 + + + col1 FROM tab1 AS cor0
----
-21
-54
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7217
SELECT COUNT( * ) * - + CAST( NULL AS SIGNED ) + - + COUNT( * ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7217
SELECT COUNT ( * ) * - + CAST ( NULL AS INTEGER ) + - + COUNT ( * ) FROM tab1 cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 34 / - 71 + - col0 IS NULL
----

query I rowsort
SELECT col1 + - col0 + - 98 * - col0 FROM tab0 AS cor0
----
1536
8460
9410

onlyif mysql # aggregate syntax: 
query I rowsort label-7220
SELECT ALL - COUNT( + 9 ) * 58 col1 FROM tab2 AS cor0
----
-174

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7220
SELECT ALL - COUNT ( + 9 ) * 58 col1 FROM tab2 AS cor0
----
-174

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + 89 ) col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
89

query I rowsort
SELECT 79 + + col0 AS col0 FROM tab0
----
166
176
94

query III rowsort
SELECT ALL * FROM tab1 WHERE col1 <> - col2 * + + col0 - + 6 * col0 + - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col0 + + 21 * - col2 - + - 49 AS col2 FROM tab1
----
-1105
-1288
-1916

query I rowsort
SELECT ALL 57 - + ( + 14 ) FROM tab0
----
43
43
43

onlyif mysql # aggregate syntax: 
query I rowsort label-7226
SELECT COUNT( * ) * - + 67 FROM tab1
----
-201

skipif mysql # not compatible
query I rowsort label-7226
SELECT COUNT ( * ) * - + 67 FROM tab1
----
-201

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 78 col1 FROM tab0 WHERE - col2 * 77 + + col1 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7228
SELECT * FROM tab0 WHERE CAST( + col1 AS SIGNED ) > NULL
----

skipif mysql # not compatible
query III rowsort label-7228
SELECT * FROM tab0 WHERE CAST ( + col1 AS INTEGER ) > NULL
----

query I rowsort
SELECT ALL col2 + - - 23 AS col0 FROM tab0
----
122
33
70

query I rowsort
SELECT DISTINCT + + 86 AS col2 FROM tab2 AS cor0
----
86

onlyif mysql # DIV for integer division: 
query I rowsort label-7231
SELECT col0 DIV - 39 AS col2 FROM tab0
----
-2
-2
0

skipif mysql # not compatible
query I rowsort label-7231
SELECT col0 / - 39 AS col2 FROM tab0
----
-2
-2
0

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7232
SELECT + col1 / - + col0 AS col1, + CAST( + - col2 AS DECIMAL ) AS col2 FROM tab0 AS cor0 WHERE NOT ( - 16 ) IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-7232
SELECT + col1 / - + col0 AS col1, + CAST ( + - col2 AS REAL ) AS col2 FROM tab0 AS cor0 WHERE NOT ( - 16 ) IS NOT NULL
----

query I rowsort
SELECT - 95 AS col2 FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7234
SELECT DISTINCT 51 DIV COUNT( * ) * 77 FROM tab2 AS cor0
----
1309

skipif mysql # not compatible
query I rowsort label-7234
SELECT DISTINCT 51 / COUNT ( * ) * 77 FROM tab2 AS cor0
----
1309

query II rowsort
SELECT ALL + 24, - col1 * - 83 + - col2 AS col2 FROM tab1 AS cor0
----
24
1066
24
356
24
3833

query II rowsort
SELECT - 35, 87 AS col2 FROM tab0 AS cor0
----
-35
87
-35
87
-35
87

query II rowsort
SELECT - + col0 AS col0, 59 FROM tab2 AS cor0
----
-46
59
-64
59
-75
59

query II rowsort
SELECT ALL 70, + 11 + + 20 AS col1 FROM tab1 AS cor0
----
70
31
70
31
70
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7239
SELECT + - CAST( - col2 AS SIGNED ) col0 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7239
SELECT + - CAST ( - col2 AS INTEGER ) col0 FROM tab2 AS cor0
----
23
40
58

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 * + ( col2 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + col1 AS col1, - col2 FROM tab1 AS cor0
----
14
-96
47
-68
5
-59

query II rowsort
SELECT + 91 AS col0, 10 AS col2 FROM tab1 AS cor0
----
91
10
91
10
91
10

onlyif mysql # aggregate syntax: 
query I rowsort label-7243
SELECT 86 * + COUNT( * ) AS col0 FROM tab0 AS cor0
----
258

skipif mysql # not compatible
query I rowsort label-7243
SELECT 86 * + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
258

query I rowsort
SELECT ALL col0 - - col0 - - - col2 FROM tab2 WHERE + col0 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7245
SELECT COUNT( * ) * 39 - - + CAST( NULL AS SIGNED ) FROM tab1, tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7245
SELECT COUNT ( * ) * 39 - - + CAST ( NULL AS INTEGER ) FROM tab1, tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7246
SELECT + CAST( NULL AS DECIMAL ) * - - col1 - - - col2 + + col1 + col1 * + 24 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7246
SELECT + CAST ( NULL AS REAL ) * - - col1 - - - col2 + + col1 + col1 * + 24 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - 86 * - - 45 * - col2 + col2 AS col2 FROM tab1 AS cor0
----
-228271
-263092
-371424

onlyif mysql # aggregate syntax: 
query I rowsort label-7248
SELECT ALL MAX( + col0 ) + + 81 - - - SUM( + - col0 ) FROM tab2
----
341

skipif mysql # not compatible
query I rowsort label-7248
SELECT ALL MAX ( + col0 ) + + 81 - - - SUM ( + - col0 ) FROM tab2
----
341

query I rowsort
SELECT ALL - col2 + 5 AS col2 FROM tab2
----
-18
-35
-53

query II rowsort
SELECT DISTINCT ( - - col2 ) + - - 75, 62 AS col0 FROM tab1
----
134
62
143
62
171
62

query I rowsort
SELECT ALL col1 * - col2 - col0 FROM tab2 AS cor0 WHERE NOT NULL = + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7252
SELECT + SUM( 15 ) AS col2 FROM tab2 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-7252
SELECT + SUM ( 15 ) AS col2 FROM tab2 AS cor0
----
45

query I rowsort
SELECT DISTINCT - col0 + - + 46 AS col1 FROM tab2 AS cor0
----
-110
-121
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-7254
SELECT ALL + MIN( ALL col1 ) FROM tab1 cor0 WHERE NOT col0 IS NULL
----
5

skipif mysql # not compatible
query I rowsort label-7254
SELECT ALL + MIN ( ALL col1 ) FROM tab1 cor0 WHERE NOT col0 IS NULL
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7255
SELECT DISTINCT + + 19 AS col2, - CAST( + + ( 23 ) AS SIGNED ) FROM tab0 AS cor0
----
19
-23

skipif mysql # not compatible
query II rowsort label-7255
SELECT DISTINCT + + 19 AS col2, - CAST ( + + ( 23 ) AS INTEGER ) FROM tab0 AS cor0
----
19
-23

query I rowsort
SELECT ALL ( + - 6 ) FROM tab0 cor0 WHERE NOT col1 < NULL
----

query I rowsort
SELECT col2 * + - 79 AS col1 FROM tab2 AS cor0
----
-1817
-3160
-4582

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT NULL >= NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7259
SELECT DISTINCT - CAST( col2 AS SIGNED ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-7259
SELECT DISTINCT - CAST ( col2 AS INTEGER ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE 45 >= + + 75
----

query I rowsort
SELECT DISTINCT col2 + + 15 FROM tab0
----
114
25
62

query I rowsort
SELECT ALL - col0 * - - 23 FROM tab0
----
-2001
-2231
-345

query I rowsort
SELECT ALL - 59 * + col1 + col2 FROM tab1
----
-236
-2705
-730

query I rowsort
SELECT - col2 + + 93 FROM tab1
----
-3
25
34

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + ( col1 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT IN ( - + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7267
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 + + ( col0 ) IN ( - col0, + col0 / - col1, - 89 + col1, - CAST( NULL AS SIGNED ), - + col0, CAST( + col1 AS SIGNED ), + CAST( NULL AS SIGNED ), + 8 * col0 - - col1 )
----

skipif mysql # not compatible
query III rowsort label-7267
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 + + ( col0 ) IN ( - col0, + col0 / - col1, - 89 + col1, - CAST ( NULL AS INTEGER ), - + col0, CAST ( + col1 AS INTEGER ), + CAST ( NULL AS INTEGER ), + 8 * col0 - - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7268
SELECT DISTINCT - + MAX( ALL + - 54 ) FROM tab0 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-7268
SELECT DISTINCT - + MAX ( ALL + - 54 ) FROM tab0 AS cor0
----
54

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7269
SELECT + CAST( NULL AS DECIMAL ) / - - col1 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7269
SELECT + CAST ( NULL AS REAL ) / - - col1 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7270
SELECT ALL + SUM( - col2 ) AS col2 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-7270
SELECT ALL + SUM ( - col2 ) AS col2 FROM tab0 AS cor0
----
-156

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) >= - col2 / col1 * 13
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7272
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-7272
SELECT - + ( + + COUNT ( * ) ) col1 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7273
SELECT DISTINCT + MAX( ALL + col0 ) AS col0 FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-7273
SELECT DISTINCT + MAX ( ALL + col0 ) AS col0 FROM tab0
----
97

query II rowsort
SELECT ALL + col2 AS col0, col2 AS col2 FROM tab0
----
10
10
47
47
99
99

query I rowsort
SELECT ALL col2 * + + col0 + - + col0 FROM tab2
----
1012
2496
4275

query III rowsort
SELECT ALL * FROM tab2 WHERE - 91 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7277
SELECT COUNT( - ( 39 ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7277
SELECT COUNT ( - ( 39 ) ) FROM tab1
----
3

query I rowsort
SELECT 80 + col1 AS col2 FROM tab1
----
127
85
94

query I rowsort
SELECT ALL - col2 + + col1 + + - col0 FROM tab2
----
-18
-27
-66

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col1 * + 75 * - col1 + - - 62 + + 5 + 56 + - col2 / + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ( + - col1 ) + + col2 * - - 99 FROM tab1
----
5836
6685
9490

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + 34 col1 FROM tab1
----
-25
-34
-62

query II rowsort
SELECT DISTINCT col0, 37 AS col2 FROM tab0
----
15
37
87
37
97
37

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col0 - - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2, 66 * - col2 * + 80 col0 FROM tab2 AS cor0
----
23
-121440
40
-211200
58
-306240

query I rowsort
SELECT - 75 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 258bc565c64924d905a55eaaa6e57547

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query III rowsort label-7287
SELECT DISTINCT * FROM tab2 WHERE NOT + + CAST( col0 AS SIGNED ) DIV - - col1 * - - ( col2 ) <= + col2
----

skipif mysql # not compatible
query III rowsort label-7287
SELECT DISTINCT * FROM tab2 WHERE NOT + + CAST ( col0 AS INTEGER ) / - - col1 * - - ( col2 ) <= + col2
----

query I rowsort
SELECT + + 60 * col1 AS col0 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - - col0 - - + 46 AS col2 FROM tab0 AS cor0
----
133
143
61

onlyif mysql # aggregate syntax: 
query I rowsort label-7290
SELECT DISTINCT + COUNT( ALL + 63 ) AS col0 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-7290
SELECT DISTINCT + COUNT ( ALL + 63 ) AS col0 FROM tab1 cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7291
SELECT - 38 * + + CAST( NULL AS SIGNED ) * - - col2 + 10 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7291
SELECT - 38 * + + CAST ( NULL AS INTEGER ) * - - col2 + 10 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL NOT BETWEEN + 43 AND - col0
----

query II rowsort
SELECT + - col1 + - 48 AS col2, 76 FROM tab1 AS cor0
----
-53
76
-62
76
-95
76

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) >= - 86 * - col0 + + 71 + - 17
----

query I rowsort
SELECT ALL + col1 * 18 * - col0 AS col0 FROM tab2 AS cor0
----
-42228
-88704
-90450

query I rowsort
SELECT DISTINCT 63 * + 34 FROM tab0
----
2142

onlyif mysql # DIV for integer division: 
query I rowsort label-7297
SELECT + col0 DIV + - col2 AS col1 FROM tab0
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-7297
SELECT + col0 / + - col2 AS col1 FROM tab0
----
-8
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7298
SELECT - COUNT( - col0 ) FROM tab1 AS cor0 WHERE NOT col2 <> col0
----
0

skipif mysql # not compatible
query I rowsort label-7298
SELECT - COUNT ( - col0 ) FROM tab1 AS cor0 WHERE NOT col2 <> col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7299
SELECT - col0 col1 FROM tab2 WHERE CAST( + col2 AS SIGNED ) IS NOT NULL
----
-46
-64
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7299
SELECT - col0 col1 FROM tab2 WHERE CAST ( + col2 AS INTEGER ) IS NOT NULL
----
-46
-64
-75

query I rowsort
SELECT 62 * + 63 FROM tab0 WHERE NOT - col1 + + col2 IN ( 28 )
----
3906
3906
3906

query I rowsort
SELECT col1 + - 93 FROM tab2
----
-16
-26
-42

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL IN ( + col2 * col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 11 + + 65 <> col0 * ( col0 )
----

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab1 WHERE NOT - 61 * - col2 = NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7305
SELECT ALL * FROM tab1 WHERE NOT CAST( NULL AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-7305
SELECT ALL * FROM tab1 WHERE NOT CAST ( NULL AS REAL ) IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7307
SELECT 42 + - COUNT( * ) FROM tab1
----
39

skipif mysql # not compatible
query I rowsort label-7307
SELECT 42 + - COUNT ( * ) FROM tab1
----
39

query III rowsort
SELECT ALL * FROM tab0 WHERE col1 - col0 NOT BETWEEN col2 AND col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7309
SELECT + COUNT( * ) + - COUNT( 61 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7309
SELECT + COUNT ( * ) + - COUNT ( 61 ) FROM tab1
----
0

query I rowsort
SELECT ALL + 11 + col1 * 4 FROM tab2
----
215
279
319

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( 80 + 86 * - col1 ) BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT ALL 70 + col0 AS col2 FROM tab0
----
157
167
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + + 88 col2 FROM tab0
----
-11
41
78

query I rowsort
SELECT 77 + + 66 FROM tab2
----
143
143
143

onlyif mysql # aggregate syntax: 
query I rowsort label-7315
SELECT ALL + MIN( 30 ) + + 44 * 31 AS col0 FROM tab1 WHERE - ( col0 ) IS NOT NULL
----
1394

skipif mysql # not compatible
query I rowsort label-7315
SELECT ALL + MIN ( 30 ) + + 44 * 31 AS col0 FROM tab1 WHERE - ( col0 ) IS NOT NULL
----
1394

query I rowsort
SELECT DISTINCT + col0 * 63 FROM tab1
----
3213
5355
5733

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7317
SELECT * FROM tab1 WHERE NOT ( 69 - - 89 * - col1 ) NOT BETWEEN + col2 AND CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-7317
SELECT * FROM tab1 WHERE NOT ( 69 - - 89 * - col1 ) NOT BETWEEN + col2 AND CAST ( NULL AS REAL )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT 19 * - col0 NOT BETWEEN ( - 53 ) AND NULL
----

query I rowsort
SELECT ALL + 70 * col1 FROM tab0 WHERE NOT NULL IN ( col1 + + 47 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7320
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * + col0 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7320
SELECT DISTINCT - CAST ( NULL AS REAL ) * + col0 AS col2 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7321
SELECT - CAST( NULL AS SIGNED ) - 85 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7321
SELECT - CAST ( NULL AS INTEGER ) - 85 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL ( - col0 ) * - 10 FROM tab0
----
150
870
970

query I rowsort
SELECT + col0 - - col0 * 31 FROM tab0
----
2784
3104
480

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + col0 + - col2 col2 FROM tab1
----
2505
7166
8213

query I rowsort
SELECT ALL col1 AS col1 FROM tab1 WHERE NOT + col1 * ( - 35 ) IS NULL
----
14
47
5

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL > + col0 / - col0
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7327
SELECT - CAST( NULL AS DECIMAL ) + - COUNT( * ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7327
SELECT - CAST ( NULL AS REAL ) + - COUNT ( * ) AS col2 FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE 47 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 41 * + 33 FROM tab2 AS cor0
----
1353
1353
1353

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 90 >= col0
----

query I rowsort
SELECT + 30 * col2 FROM tab2 AS cor0 WHERE - ( - 77 ) NOT IN ( - col1 )
----
1200
1740
690

query I rowsort
SELECT col0 + - col2 * col0 AS col1 FROM tab1 AS cor0
----
-4845
-4930
-6097

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7333
SELECT DISTINCT * FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN ( NULL ) AND CAST( NULL AS SIGNED ) * - ( col2 )
----

skipif mysql # not compatible
query III rowsort label-7333
SELECT DISTINCT * FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN ( NULL ) AND CAST ( NULL AS INTEGER ) * - ( col2 )
----

query I rowsort
SELECT DISTINCT 88 + + ( + col0 ) * col0 AS col0 FROM tab1
----
2689
7313
8369

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col1 / + ( 77 ) IN ( - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 cor0 WHERE col0 * ( col2 ) <> NULL
----

query I rowsort
SELECT DISTINCT col1 * - 77 - - col0 FROM tab1 AS cor0
----
-1027
-300
-3528

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7338
SELECT ALL + col0 - - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7338
SELECT ALL + col0 - - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 + + col2 IN ( + col0 )
----

query I rowsort
SELECT - col2 - + col0 AS col1 FROM tab0 AS cor0
----
-196
-62
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7341
SELECT ALL 82 * col2 + - CAST( NULL AS SIGNED ) * - 41 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7341
SELECT ALL 82 * col2 + - CAST ( NULL AS INTEGER ) * - 41 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7342
SELECT + - COUNT( * ) - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7342
SELECT + - COUNT ( * ) - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col2 * + 44 FROM tab2 AS cor0
----
-1012
-1760
-2552

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 2 col1 FROM tab1 AS cor0 WHERE ( col2 * ( col2 ) ) BETWEEN NULL AND ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7345
SELECT DISTINCT + + 63 * COUNT( * ) col0 FROM tab1 AS cor0
----
189

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7345
SELECT DISTINCT + + 63 * COUNT ( * ) col0 FROM tab1 AS cor0
----
189

query I rowsort
SELECT + col2 - ( 35 ) AS col0 FROM tab2 AS cor0
----
-12
23
5

query I rowsort
SELECT col0 * - col2 FROM tab1 AS cor0 WHERE col2 IS NULL
----

query I rowsort
SELECT - 3 FROM tab1 cor0 WHERE - col1 + + col2 IS NULL
----

query I rowsort
SELECT DISTINCT - - 73 AS col1 FROM tab0 cor0
----
73

query I rowsort
SELECT ALL col1 / + col2 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7351
SELECT COUNT( * ) AS col2 FROM tab1 WHERE NOT ( - col0 ) IN ( + col2 )
----
3

skipif mysql # not compatible
query I rowsort label-7351
SELECT COUNT ( * ) AS col2 FROM tab1 WHERE NOT ( - col0 ) IN ( + col2 )
----
3

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( + 79 ) NOT IN ( - col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NULL ) >= + col2
----

query I rowsort
SELECT ALL + 97 FROM tab2 WHERE NOT + 4 * col0 > + col0
----

query I rowsort
SELECT + col0 * + - col0 FROM tab1
----
-2601
-7225
-8281

query I rowsort
SELECT - ( 25 ) * col2 FROM tab2
----
-1000
-1450
-575

query I rowsort
SELECT DISTINCT - 17 * - - 76 FROM tab2
----
-1292

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7358
SELECT ALL COUNT( * ) DIV - 82 FROM tab0 WHERE NOT NULL NOT BETWEEN 99 + 68 AND + col1 + col1
----
0

skipif mysql # not compatible
query I rowsort label-7358
SELECT ALL COUNT ( * ) / - 82 FROM tab0 WHERE NOT NULL NOT BETWEEN 99 + 68 AND + col1 + col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7359
SELECT + COUNT( * ) FROM tab2 WHERE NOT NULL > col2 * - 44
----
0

skipif mysql # not compatible
query I rowsort label-7359
SELECT + COUNT ( * ) FROM tab2 WHERE NOT NULL > col2 * - 44
----
0

query I rowsort
SELECT + col1 * - - ( 81 ) * - 27 AS col2 FROM tab2
----
-111537
-146529
-168399

onlyif mysql # aggregate syntax: 
query I rowsort label-7361
SELECT MAX( ALL + col1 ) AS col0 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-7361
SELECT MAX ( ALL + col1 ) AS col0 FROM tab1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-7362
SELECT COUNT( - 88 ) col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7362
SELECT COUNT ( - 88 ) col0 FROM tab2 AS cor0
----
3

query II rowsort
SELECT ALL - 9, col1 FROM tab0
----
-9
1
-9
21
-9
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7364
SELECT ALL + MIN( DISTINCT 34 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
34

skipif mysql # not compatible
query I rowsort label-7364
SELECT ALL + MIN ( DISTINCT 34 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-7365
SELECT - SUM( + - 43 ) * COUNT( * ) - COUNT( * ) FROM tab2
----
384

skipif mysql # not compatible
query I rowsort label-7365
SELECT - SUM ( + - 43 ) * COUNT ( * ) - COUNT ( * ) FROM tab2
----
384

onlyif mysql # aggregate syntax: 
query I rowsort label-7366
SELECT MIN( ALL + 9 ) AS col2 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-7366
SELECT MIN ( ALL + 9 ) AS col2 FROM tab1 AS cor0
----
9

query I rowsort
SELECT DISTINCT - 23 AS col1 FROM tab0 cor0 WHERE NOT ( + 67 ) BETWEEN ( ( ( 69 ) ) / col2 ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 0 NOT BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7369
SELECT DISTINCT - col0 * col1 - - col0 DIV col1 FROM tab2 AS cor0
----
-2346
-4928
-5024

skipif mysql # not compatible
query I rowsort label-7369
SELECT DISTINCT - col0 * col1 - - col0 / col1 FROM tab2 AS cor0
----
-2346
-4928
-5024

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( col0 + col0 ) = 34
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-7371
SELECT ALL + + 24 DIV + col1 FROM tab1 cor0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-7371
SELECT ALL + + 24 / + col1 FROM tab1 cor0
----
0
1
4

onlyif mysql # aggregate syntax: 
query I rowsort label-7372
SELECT ALL - + 76 * + COUNT( * ) AS col2 FROM tab1 cor0
----
-228

skipif mysql # not compatible
query I rowsort label-7372
SELECT ALL - + 76 * + COUNT ( * ) AS col2 FROM tab1 cor0
----
-228

query I rowsort
SELECT DISTINCT + 31 * - - col1 FROM tab1 AS cor0
----
1457
155
434

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7374
SELECT ALL * FROM tab2 WHERE - 76 IN ( + CAST( NULL AS DECIMAL ) / - col2 )
----

skipif mysql # not compatible
query III rowsort label-7374
SELECT ALL * FROM tab2 WHERE - 76 IN ( + CAST ( NULL AS REAL ) / - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 65 + + - col1 col2 FROM tab1
----
-112
-70
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + + col1 + + - 19 col1 FROM tab2
----
115
135
83

query I rowsort
SELECT ALL - col1 + - 86 FROM tab1
----
-100
-133
-91

query I rowsort
SELECT - col2 * + col1 * + 73 FROM tab2
----
-224840
-283678
-85629

onlyif mysql # aggregate syntax: 
query I rowsort label-7379
SELECT ALL - COUNT( * ) + MAX( col2 ) FROM tab2 AS cor0
----
55

skipif mysql # not compatible
query I rowsort label-7379
SELECT ALL - COUNT ( * ) + MAX ( col2 ) FROM tab2 AS cor0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-7380
SELECT DISTINCT MAX( DISTINCT - + col1 ) - ( - + COUNT( DISTINCT ( 5 ) ) ) FROM tab1 cor0
----
-4

skipif mysql # not compatible
query I rowsort label-7380
SELECT DISTINCT MAX ( DISTINCT - + col1 ) - ( - + COUNT ( DISTINCT ( 5 ) ) ) FROM tab1 cor0
----
-4

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE 25 >= col1 + - + 84 + + 71 * + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7382
SELECT DISTINCT MIN( + col1 ) AS col2 FROM tab2 cor0
----
51

skipif mysql # not compatible
query I rowsort label-7382
SELECT DISTINCT MIN ( + col1 ) AS col2 FROM tab2 cor0
----
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 21 col0 FROM tab1 cor0
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-7384
SELECT - 11 DIV - - 40 * + col2 - + + 95 FROM tab0
----
-95
-95
-95

skipif mysql # not compatible
query I rowsort label-7384
SELECT - 11 / - - 40 * + col2 - + + 95 FROM tab0
----
-95
-95
-95

query I rowsort
SELECT ( - col1 ) - + - 63 + 17 + - + col1 + - 32 * col2 * 82 AS col1 FROM tab1
----
-154746
-178446
-251852

query I rowsort
SELECT DISTINCT - 60 + + col2 FROM tab1
----
-1
36
8

query I rowsort
SELECT ALL + 67 + + + col1 FROM tab0
----
148
68
88

onlyif mysql # DIV for integer division: 
query I rowsort label-7388
SELECT ALL 71 * + col1 - + ( - col1 ) + + - col2 DIV - 33 FROM tab2 AS cor0
----
3672
4825
5545

skipif mysql # not compatible
query I rowsort label-7388
SELECT ALL 71 * + col1 - + ( - col1 ) + + - col2 / - 33 FROM tab2 AS cor0
----
3672
4825
5545

onlyif mysql # aggregate syntax: 
query I rowsort label-7389
SELECT DISTINCT + ( + + MAX( ALL 21 ) ) AS col0 FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7389
SELECT DISTINCT + ( + + MAX ( ALL 21 ) ) AS col0 FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----
NULL

query I rowsort
SELECT - 47 + + 85 - + 11 FROM tab2 AS cor0
----
27
27
27

query I rowsort
SELECT + 12 AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7392
SELECT + CAST( - col0 AS SIGNED ) AS col1 FROM tab2 cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-7392
SELECT + CAST ( - col0 AS INTEGER ) AS col1 FROM tab2 cor0
----
-46
-64
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-7393
SELECT ALL - col0 DIV col2 AS col1 FROM tab1 cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-7393
SELECT ALL - col0 / col2 AS col1 FROM tab1 cor0
----
-1
-1
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7394
SELECT + + 33 * - CAST( - col2 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
1320
1914
759

skipif mysql # not compatible
query I rowsort label-7394
SELECT + + 33 * - CAST ( - col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
1320
1914
759

query II rowsort
SELECT DISTINCT 26 AS col0, - col1 AS col1 FROM tab2
----
26
-51
26
-67
26
-77

query I rowsort
SELECT DISTINCT + ( - ( col0 ) ) + - col0 AS col0 FROM tab2 WHERE NOT ( ( ( NULL ) IN ( col0 ) ) )
----

query II rowsort
SELECT 43 * - col2 AS col0, ( + col2 ) AS col2 FROM tab0
----
-2021
47
-4257
99
-430
10

onlyif mysql # aggregate syntax: 
query I rowsort label-7398
SELECT ALL - ( + SUM( col1 ) ) AS col1 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-7398
SELECT ALL - ( + SUM ( col1 ) ) AS col1 FROM tab1
----
-66

query II rowsort
SELECT DISTINCT col1 AS col1, col0 AS col2 FROM tab1
----
14
51
47
91
5
85

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 95 IN ( - col0 + - col1 + + - 43 + + 23 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + ( + 75 ) AS col2 FROM tab2 AS cor0
----
75
75
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7402
SELECT DISTINCT - col2 * - CAST( col1 AS SIGNED ) FROM tab2 AS cor0
----
1173
3080
3886

skipif mysql # not compatible
query I rowsort label-7402
SELECT DISTINCT - col2 * - CAST ( col1 AS INTEGER ) FROM tab2 AS cor0
----
1173
3080
3886

query I rowsort
SELECT ALL + + col0 + + + col0 * + col1 FROM tab0 cor0 WHERE + col0 NOT BETWEEN - col2 * - + col2 AND NULL
----
1230
1914
194

query I rowsort
SELECT ALL col0 * - col1 + 68 AS col0 FROM tab1 AS cor0
----
-357
-4209
-646

query II rowsort
SELECT ALL - - ( col2 ), + col2 AS col0 FROM tab2 AS cor0
----
23
23
40
40
58
58

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 96 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL + col2 * 84 AS col2, col2 * col1 AS col2 FROM tab2 AS cor0
----
1932
1173
3360
3080
4872
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-7408
SELECT ALL + 57 * + COUNT( * ) FROM tab1 AS cor0
----
171

skipif mysql # not compatible
query I rowsort label-7408
SELECT ALL + 57 * + COUNT ( * ) FROM tab1 AS cor0
----
171

onlyif mysql # DIV for integer division: 
query II rowsort label-7409
SELECT - 72 DIV + col1 col1, col2 AS col0 FROM tab2 cor0
----
-1
23
-1
58
0
40

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7409
SELECT - 72 / + col1 col1, col2 AS col0 FROM tab2 cor0
----
-1
23
-1
58
0
40

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NOT ( + 33 ) + + col0 IN ( + col0 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7411
SELECT + - col1 DIV + col2 - 24 AS col2 FROM tab0 AS cor0
----
-24
-25
-26

skipif mysql # not compatible
query I rowsort label-7411
SELECT + - col1 / + col2 - 24 AS col2 FROM tab0 AS cor0
----
-24
-25
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7412
SELECT - COUNT( * ) * - 85 + - AVG ( + CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7412
SELECT - COUNT ( * ) * - 85 + - AVG ( + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7413
SELECT ALL + - MIN( DISTINCT + col2 ) AS col1 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-7413
SELECT ALL + - MIN ( DISTINCT + col2 ) AS col1 FROM tab2 AS cor0
----
-23

query I rowsort
SELECT + col1 * - - col0 * - col2 AS col2 FROM tab2 AS cor0
----
-197120
-291450
-53958

query I rowsort
SELECT + col1 * 63 * 20 FROM tab2 AS cor0
----
64260
84420
97020

query I rowsort
SELECT + - ( + + ( - - col2 ) ) FROM tab0 AS cor0
----
-10
-47
-99

query III rowsort
SELECT ALL * FROM tab0 WHERE ( + col0 / 81 + 34 ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7418
SELECT ALL 41 DIV - ( col2 ) + + col1 AS col2 FROM tab0
----
1
17
81

skipif mysql # not compatible
query I rowsort label-7418
SELECT ALL 41 / - ( col2 ) + + col1 AS col2 FROM tab0
----
1
17
81

query I rowsort
SELECT ALL - col2 * col1 FROM tab1 WHERE NULL IS NULL
----
-1344
-295
-3196

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7420
SELECT + COUNT( + - ( - CAST( NULL AS SIGNED ) ) ) DIV + 33 * COUNT( 20 ) FROM tab1 WHERE + 77 <> col1
----
0

skipif mysql # not compatible
query I rowsort label-7420
SELECT + COUNT ( + - ( - CAST ( NULL AS INTEGER ) ) ) / + 33 * COUNT ( 20 ) FROM tab1 WHERE + 77 <> col1
----
0

query I rowsort
SELECT ALL 63 + + col1 AS col2 FROM tab2
----
114
130
140

query III rowsort
SELECT * FROM tab0 WHERE - - col2 BETWEEN + ( - - 65 ) + 63 + - col1 * col2 AND ( ( - col0 ) - + col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7423
SELECT DISTINCT + 38 + - - col1 - - + 57 - col2 DIV col1 AS col1 FROM tab1
----
103
141
89

skipif mysql # not compatible
query I rowsort label-7423
SELECT DISTINCT + 38 + - - col1 - - + 57 - col2 / col1 AS col1 FROM tab1
----
103
141
89

query I rowsort
SELECT DISTINCT 90 + 41 FROM tab1
----
131

query I rowsort
SELECT DISTINCT 8 + + + col0 FROM tab0
----
105
23
95

query I rowsort
SELECT col1 + + 24 - + col1 * + ( col1 ) AS col0 FROM tab2
----
-2526
-4398
-5828

query II rowsort
SELECT - + 58 + - + 73 * - - col1 AS col1, col1 AS col1 FROM tab0 AS cor0
----
-131
1
-1591
21
-5971
81

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7428
SELECT - - CAST( NULL AS DECIMAL ) + - COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7428
SELECT - - CAST ( NULL AS REAL ) + - COUNT ( * ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + col0 * col0 + + - col0 * + col0 + - - col0 AS col0 FROM tab1 cor0
----
51
85
91

query I rowsort
SELECT ALL - + 14 + col2 AS col2 FROM tab1 cor0 WHERE NOT - col1 <= NULL
----

query I rowsort
SELECT ALL - 71 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e72f95c346714d3065a96d67a6fd5062

onlyif mysql # aggregate syntax: 
query I rowsort label-7432
SELECT - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-7432
SELECT - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7433
SELECT ALL - - 52 DIV + + COUNT( * ) + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-7433
SELECT ALL - - 52 / + + COUNT ( * ) + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
14

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col0 = + col1 * + - 10
----

query I rowsort
SELECT DISTINCT + - 74 + + 19 / + - ( - col1 ) AS col2 FROM tab2 WHERE - - col0 + + + 74 NOT BETWEEN col0 AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + 81 < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7437
SELECT ( - ( col1 ) ) DIV col1 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7437
SELECT ( - ( col1 ) ) / col1 FROM tab0
----
-1
-1
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-7438
SELECT ALL 81 DIV + col2 AS col1 FROM tab0
----
0
1
8

skipif mysql # not compatible
query I rowsort label-7438
SELECT ALL 81 / + col2 AS col1 FROM tab0
----
0
1
8

query II rowsort
SELECT col0, col0 + 63 FROM tab0
----
15
78
87
150
97
160

query I rowsort
SELECT - + col0 FROM tab2 WHERE NOT - col2 IS NULL
----
-46
-64
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-7441
SELECT 19 * + col2 * ( col1 ) DIV - ( col2 ) FROM tab2
----
-1273
-1463
-969

skipif mysql # not compatible
query I rowsort label-7441
SELECT 19 * + col2 * ( col1 ) / - ( col2 ) FROM tab2
----
-1273
-1463
-969

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( + 57 - - ( col2 ) * + col2 * 19 - - 69 * 80 * - - 27 )
----

query I rowsort
SELECT DISTINCT - - 85 AS col0 FROM tab1 AS cor0
----
85

query II rowsort
SELECT + - col0 AS col1, - col1 FROM tab1 AS cor0
----
-51
-14
-85
-5
-91
-47

query I rowsort
SELECT ALL ( + ( + col1 ) ) FROM tab2 AS cor0
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7446
SELECT - CAST( - - col2 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-7446
SELECT - CAST ( - - col2 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-10
-47
-99

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( + 60 + + 10 + + col2 + + 95 ) <> ( NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + 48 < - 68
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL - 30 AS col2, col1 FROM tab1 AS cor0
----
-30
14
-30
47
-30
5

query II rowsort
SELECT DISTINCT + - col1 AS col1, + col0 + col2 FROM tab0 cor0
----
-1
196
-21
97
-81
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7451
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col1, COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT - 80 = + 15
----
NULL
3

skipif mysql # not compatible
query II rowsort label-7451
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col1, COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT - 80 = + 15
----
NULL
3

query I rowsort
SELECT + 26 + - 86 FROM tab2
----
-60
-60
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-7453
SELECT - col2 + + col0 + - + col1 DIV 98 col1 FROM tab2
----
17
23
24

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7453
SELECT - col2 + + col0 + - + col1 / 98 col1 FROM tab2
----
17
23
24

onlyif mysql # DIV for integer division: 
query I rowsort label-7454
SELECT - 20 DIV col0 AS col1 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7454
SELECT - 20 / col0 AS col1 FROM tab0
----
-1
0
0

query II rowsort
SELECT ALL - 94 + + + col2, 39 AS col1 FROM tab2
----
-36
39
-54
39
-71
39

query II rowsort
SELECT DISTINCT + + col0, ( 96 ) * - col2 - - - col0 FROM tab0 WHERE NOT col2 + + + col2 IS NULL
----
15
-4527
87
-1047
97
-9601

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7457
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + + col0 AS col1 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7457
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + + col0 AS col1 FROM tab2 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7458
SELECT * FROM tab0 AS cor0 WHERE ( + col2 ) + col2 - + CAST( - + col2 AS SIGNED ) > NULL
----

skipif mysql # not compatible
query III rowsort label-7458
SELECT * FROM tab0 AS cor0 WHERE ( + col2 ) + col2 - + CAST ( - + col2 AS INTEGER ) > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7459
SELECT col1 * col0 - - col2 + + + col1 + + col0 DIV 10 FROM tab1 cor0
----
4401
497
829

skipif mysql # not compatible
query I rowsort label-7459
SELECT col1 * col0 - - col2 + + + col1 + + col0 / 10 FROM tab1 cor0
----
4401
497
829

query I rowsort
SELECT col0 - + + col2 - - + col0 + + ( + 81 ) AS col0 FROM tab0 cor0
----
176
245
64

query I rowsort
SELECT 7 - - col2 FROM tab0
----
106
17
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 12 * 55 col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to f4c5a5ddcfa683320c686f8f5ac92cbd

query I rowsort
SELECT ALL col0 AS col2 FROM tab0 WHERE - col0 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7464
SELECT ALL - - col2 AS col2 FROM tab1 AS cor0 WHERE col2 * + CAST( NULL AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7464
SELECT ALL - - col2 AS col2 FROM tab1 AS cor0 WHERE col2 * + CAST ( NULL AS REAL ) IS NOT NULL
----

query II rowsort
SELECT + - 20, col0 FROM tab2 AS cor0
----
-20
46
-20
64
-20
75

query I rowsort
SELECT + col0 FROM tab1 AS cor0 WHERE NOT + col2 / + - col1 IS NULL
----
51
85
91

query I rowsort
SELECT ALL 25 * ( 44 ) FROM tab2 AS cor0
----
1100
1100
1100

query II rowsort
SELECT + + 70 AS col1, 62 FROM tab1 AS cor0
----
70
62
70
62
70
62

query II rowsort
SELECT DISTINCT + col1, - 68 FROM tab0 AS cor0
----
1
-68
21
-68
81
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-7470
SELECT ALL SUM( + ( + - col1 ) ) * + + MIN( DISTINCT - col0 ) FROM tab0
----
9991

skipif mysql # not compatible
query I rowsort label-7470
SELECT ALL SUM ( + ( + - col1 ) ) * + + MIN ( DISTINCT - col0 ) FROM tab0
----
9991

query I rowsort
SELECT + col2 * + 92 FROM tab2
----
2116
3680
5336

onlyif mysql # aggregate syntax: 
query I rowsort label-7472
SELECT + - MAX( - ( + + 20 ) ) FROM tab1 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-7472
SELECT + - MAX ( - ( + + 20 ) ) FROM tab1 AS cor0
----
20

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 <= - col1 * - - 27
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7474
SELECT 57 * + - ( COUNT( * ) ) AS col2 FROM tab0 AS cor0
----
-171

skipif mysql # not compatible
query I rowsort label-7474
SELECT 57 * + - ( COUNT ( * ) ) AS col2 FROM tab0 AS cor0
----
-171

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7475
SELECT + CAST( + + 32 AS SIGNED ) FROM tab2 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) >= col1 + + col0
----

skipif mysql # not compatible
query I rowsort label-7475
SELECT + CAST ( + + 32 AS INTEGER ) FROM tab2 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) >= col1 + + col0
----

query I rowsort
SELECT DISTINCT col0 * col0 * - col1 FROM tab1 AS cor0
----
-36125
-36414
-389207

query II rowsort
SELECT ALL - - col1 + - 60, + 56 * col2 AS col0 FROM tab2 AS cor0
----
-9
1288
17
2240
7
3248

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7478
SELECT - - COUNT( * ) DIV - 30 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-7478
SELECT - - COUNT ( * ) / - 30 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
0

query I rowsort
SELECT DISTINCT 21 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL NOT BETWEEN 35 AND NULL
----

query I rowsort
SELECT ALL 75 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7481
SELECT DISTINCT * FROM tab0 WHERE ( ( 13 * col2 / CAST( ( + + col1 ) AS SIGNED ) * - 15 IS NOT NULL ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7481
SELECT DISTINCT * FROM tab0 WHERE ( ( 13 * col2 / CAST ( ( + + col1 ) AS INTEGER ) * - 15 IS NOT NULL ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7482
SELECT DISTINCT col1 DIV + - CAST( - + col2 AS SIGNED ) + + col2 AS col2 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-7482
SELECT DISTINCT col1 / + - CAST ( - + col2 AS INTEGER ) + + col2 AS col2 FROM tab1
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7483
SELECT DISTINCT ( - - SUM( ALL + 51 ) ) AS col2 FROM tab0 cor0
----
153

skipif mysql # not compatible
query I rowsort label-7483
SELECT DISTINCT ( - - SUM ( ALL + 51 ) ) AS col2 FROM tab0 cor0
----
153

onlyif mysql # DIV for integer division: 
query I rowsort label-7484
SELECT - col0 DIV + col0 + + 56 AS col2 FROM tab2 AS cor0
----
55
55
55

skipif mysql # not compatible
query I rowsort label-7484
SELECT - col0 / + col0 + + 56 AS col2 FROM tab2 AS cor0
----
55
55
55

query I rowsort
SELECT ALL + 59 - col2 FROM tab0 AS cor0
----
-40
12
49

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 14 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - 6 ) col0 FROM tab2 AS cor0
----
-6
-6
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-7488
SELECT 50 DIV - + col1 FROM tab0 AS cor0
----
-2
-50
0

skipif mysql # not compatible
query I rowsort label-7488
SELECT 50 / - + col1 FROM tab0 AS cor0
----
-2
-50
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 77 = - ( 67 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 86 * + 76 + - + col1 + 64 AS col1 FROM tab1 cor0
----
6553
6586
6595

query I rowsort
SELECT - 48 AS col2 FROM tab0 WHERE col2 IN ( col1 )
----

query I rowsort
SELECT DISTINCT + col1 * + col0 + - col1 FROM tab1
----
420
4230
700

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7493
SELECT DISTINCT - 28 + - + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7493
SELECT DISTINCT - 28 + - + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL

query I rowsort
SELECT - - col2 * + col1 + col0 + 82 + + col2 FROM tab2 WHERE + 21 IS NOT NULL
----
1324
3266
4101

query I rowsort
SELECT DISTINCT col1 - - col2 * + + col2 AS col0 FROM tab2
----
1677
3431
580

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 14 - - 4 col1 FROM tab1 AS cor0
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7497
SELECT ALL ( CAST( NULL AS SIGNED ) ) * - - col2 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7497
SELECT ALL ( CAST ( NULL AS INTEGER ) ) * - - col2 AS col0 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 61 + + - col1 < col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7499
SELECT ALL + SUM( + col2 ) AS col1 FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-7499
SELECT ALL + SUM ( + col2 ) AS col1 FROM tab2 AS cor0
----
121

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7500
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - 20 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7500
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - 20 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 * col0 IN ( - col1 * + - col1 + + col0 + + + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL BETWEEN ( NULL ) AND 13 + col0 + + - col1 / - - 85 + - + col0 + 75
----

query I rowsort
SELECT + col2 AS col1 FROM tab1 WHERE NOT + 3 * - col0 IS NULL
----
59
68
96

query I rowsort
SELECT - col2 + - - 25 AS col0 FROM tab1
----
-34
-43
-71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7505
SELECT ALL - 0 DIV COUNT( * ) * + - 3 AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7505
SELECT ALL - 0 / COUNT ( * ) * + - 3 AS col2 FROM tab0
----
0

query I rowsort
SELECT DISTINCT 21 * + 54 * col0 * + + col2 AS col1 FROM tab2
----
1199772
2903040
4932900

query I rowsort
SELECT col1 * - 27 + + 60 AS col1 FROM tab0
----
-2127
-507
33

onlyif mysql # aggregate syntax: 
query I rowsort label-7508
SELECT + COUNT( * ) + - - 57 FROM tab2
----
60

skipif mysql # not compatible
query I rowsort label-7508
SELECT + COUNT ( * ) + - - 57 FROM tab2
----
60

query I rowsort
SELECT ALL - 41 * - - col1 FROM tab2 AS cor0
----
-2091
-2747
-3157

query II rowsort
SELECT ALL + 1 * + col0 * 46, col2 AS col0 FROM tab0 cor0
----
4002
10
4462
99
690
47

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 JOIN tab2 AS cor1 ON NULL IS NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

onlyif mysql # aggregate syntax: 
query I rowsort label-7512
SELECT SUM( ALL + - 98 ) AS col0 FROM tab0
----
-294

skipif mysql # not compatible
query I rowsort label-7512
SELECT SUM ( ALL + - 98 ) AS col0 FROM tab0
----
-294

onlyif mysql # aggregate syntax: 
query I rowsort label-7513
SELECT - COUNT( ALL + + col0 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-7513
SELECT - COUNT ( ALL + + col0 ) FROM tab1
----
-3

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE 35 * - 41 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7515
SELECT + + COUNT( * ) + - 73 AS col1, COUNT( - col2 ) FROM tab0 cor0 WHERE NULL BETWEEN NULL AND col2
----
-73
0

skipif mysql # not compatible
query II rowsort label-7515
SELECT + + COUNT ( * ) + - 73 AS col1, COUNT ( - col2 ) FROM tab0 cor0 WHERE NULL BETWEEN NULL AND col2
----
-73
0

query III rowsort
SELECT * FROM tab1 cor0 WHERE - ( + + col1 ) > - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7517
SELECT ALL + + MIN( DISTINCT + - col2 ) AS col1 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-7517
SELECT ALL + + MIN ( DISTINCT + - col2 ) AS col1 FROM tab0 AS cor0
----
-99

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT - - 96 / + col2 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-7519
SELECT ALL col2 DIV - 52 AS col1 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7519
SELECT ALL col2 / - 52 AS col1 FROM tab2 AS cor0
----
-1
0
0

query I rowsort
SELECT ALL col1 + - - ( col2 ) AS col1 FROM tab1 AS cor0
----
110
115
64

query II rowsort
SELECT + col0 * + 34 * + col0, col2 AS col0 FROM tab2
----
139264
40
191250
58
71944
23

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7523
SELECT ALL CAST( - - 78 AS SIGNED ) + col0 FROM tab2
----
124
142
153

skipif mysql # not compatible
query I rowsort label-7523
SELECT ALL CAST ( - - 78 AS INTEGER ) + col0 FROM tab2
----
124
142
153

onlyif mysql # aggregate syntax: 
query I rowsort label-7524
SELECT + SUM( DISTINCT 41 ) FROM tab2
----
41

skipif mysql # not compatible
query I rowsort label-7524
SELECT + SUM ( DISTINCT 41 ) FROM tab2
----
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7525
SELECT DISTINCT 79 + + + COUNT( * ) + + 64 DIV + - COUNT( * ) + + - ( - MIN( DISTINCT - col1 ) ) FROM tab1
----
14

skipif mysql # not compatible
query I rowsort label-7525
SELECT DISTINCT 79 + + + COUNT ( * ) + + 64 / + - COUNT ( * ) + + - ( - MIN ( DISTINCT - col1 ) ) FROM tab1
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-7526
SELECT col0 DIV 65 * - 49 - - col1 * - col2 * + col2 FROM tab2
----
-123200
-225437
-26979

skipif mysql # not compatible
query I rowsort label-7526
SELECT col0 / 65 * - 49 - - col1 * - col2 * + col2 FROM tab2
----
-123200
-225437
-26979

query I rowsort
SELECT ALL + col1 * + - col1 AS col1 FROM tab2 AS cor0 WHERE - col1 IS NOT NULL
----
-2601
-4489
-5929

query I rowsort
SELECT ALL ( - ( - col2 ) ) FROM tab2
----
23
40
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 68 * - + col0 col2 FROM tab0 AS cor0
----
1020
5916
6596

query I rowsort
SELECT DISTINCT ( + col1 ) * + + 5 AS col2 FROM tab1 AS cor0
----
235
25
70

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7531
SELECT ALL + col0 * - col0 - - CAST( - col1 AS SIGNED ), col2 AS col2 FROM tab0 AS cor0
----
-306
47
-7590
10
-9410
99

skipif mysql # not compatible
query II rowsort label-7531
SELECT ALL + col0 * - col0 - - CAST ( - col1 AS INTEGER ), col2 AS col2 FROM tab0 AS cor0
----
-306
47
-7590
10
-9410
99

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 * - 94 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col0 <= - - ( col0 ) * - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7534
SELECT + 60 AS col1, - COUNT( * ) + + 81 DIV + + 33 AS col1 FROM tab2 cor0 WHERE NOT CAST( - - 52 AS SIGNED ) IS NOT NULL
----
60
2

skipif mysql # not compatible
query II rowsort label-7534
SELECT + 60 AS col1, - COUNT ( * ) + + 81 / + + 33 AS col1 FROM tab2 cor0 WHERE NOT CAST ( - - 52 AS INTEGER ) IS NOT NULL
----
60
2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7535
SELECT ALL CAST( NULL AS SIGNED ), col2 FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-7535
SELECT ALL CAST ( NULL AS INTEGER ), col2 FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96

query II rowsort
SELECT - 67 AS col1, - col2 + - + col1 FROM tab2 AS cor0
----
-67
-117
-67
-125
-67
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7537
SELECT DISTINCT - - CAST( - 54 AS SIGNED ) FROM tab0 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-7537
SELECT DISTINCT - - CAST ( - 54 AS INTEGER ) FROM tab0 AS cor0
----
-54

onlyif mysql # aggregate syntax: 
query II rowsort label-7538
SELECT + COUNT( * ) AS col2, 61 FROM tab1 AS cor0
----
3
61

skipif mysql # not compatible
query II rowsort label-7538
SELECT + COUNT ( * ) AS col2, 61 FROM tab1 AS cor0
----
3
61

query III rowsort
SELECT * FROM tab2 WHERE NOT + + col2 * - 99 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 WHERE - col2 BETWEEN ( NULL ) AND + 40
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7541
SELECT ALL + COUNT( * ) + - ( 55 ) + + - 89 AS col2 FROM tab2
----
-141

skipif mysql # not compatible
query I rowsort label-7541
SELECT ALL + COUNT ( * ) + - ( 55 ) + + - 89 AS col2 FROM tab2
----
-141

query I rowsort
SELECT DISTINCT - - ( + - 75 ) AS col1 FROM tab1 WHERE NOT NULL < + - col0 * - 74
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 < - 21 * - + col1 + col2
----

query I rowsort
SELECT col1 * ( + 17 ) FROM tab0 AS cor0
----
1377
17
357

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7545
SELECT DISTINCT - SUM( 62 ) AS col0 FROM tab2 WHERE + - 49 + - CAST( NULL AS SIGNED ) <> ( - col2 ) + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7545
SELECT DISTINCT - SUM ( 62 ) AS col0 FROM tab2 WHERE + - 49 + - CAST ( NULL AS INTEGER ) <> ( - col2 ) + col1
----
NULL

query I rowsort
SELECT DISTINCT col1 + 2 AS col2 FROM tab1
----
16
49
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7547
SELECT ALL 77 - - 36 - - CAST( NULL AS SIGNED ) + col1 * - col0 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7547
SELECT ALL 77 - - 36 - - CAST ( NULL AS INTEGER ) + col1 * - col0 AS col2 FROM tab1
----
NULL
NULL
NULL

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE + 87 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7549
SELECT - MIN( col1 ) AS col0 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-7549
SELECT - MIN ( col1 ) AS col0 FROM tab1 AS cor0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-7550
SELECT SUM( + 11 ) FROM tab2 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-7550
SELECT SUM ( + 11 ) FROM tab2 AS cor0
----
33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0, + col0 col0 FROM tab0 AS cor0
----
15
15
87
87
97
97

query I rowsort
SELECT DISTINCT + + col1 - + col1 AS col0 FROM tab2 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 38 col1, col0 FROM tab2 AS cor0
----
38
46
38
64
38
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7554
SELECT + + ( + - COUNT( * ) ) - - 72 + - SUM( ALL + 73 ) DIV - + 46 + + COUNT( * ) * - - 74 + COUNT( * ) + + SUM( DISTINCT ( - col1 ) ) FROM tab1 AS cor0
----
232

skipif mysql # not compatible
query I rowsort label-7554
SELECT + + ( + - COUNT ( * ) ) - - 72 + - SUM ( ALL + 73 ) / - + 46 + + COUNT ( * ) * - - 74 + COUNT ( * ) + + SUM ( DISTINCT ( - col1 ) ) FROM tab1 AS cor0
----
232

query I rowsort
SELECT ALL + 78 FROM tab0 cor0
----
78
78
78

query I rowsort
SELECT DISTINCT col2 - + + col0 FROM tab0 cor0
----
-77
2
32

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab2 AS cor0 WHERE NOT - ( + - col1 ) IS NULL AND NOT ( NULL ) IS NOT NULL
----
-51
-67
-77

query III rowsort
SELECT - + col1 - - col1 + col0, col2, - - col1 AS col2 FROM tab2 AS cor0
----
9 values hashing to 4c5e1ac6c653a513042bb214b971db66

query I rowsort
SELECT col0 * 85 - - col0 AS col1 FROM tab1
----
4386
7310
7826

query I rowsort
SELECT DISTINCT + 66 * - + col1 AS col0 FROM tab0
----
-1386
-5346
-66

query I rowsort
SELECT ALL col1 AS col1 FROM tab0 WHERE NOT NULL = + + col0 + + col0 - + + 26 * + 15 * + 42 / - col2 * 69 * - col0
----

query I rowsort
SELECT - col2 * + + 42 FROM tab2
----
-1680
-2436
-966

query II rowsort
SELECT + col2 * - + col0, - col1 AS col1 FROM tab1
----
-4896
-14
-5015
-5
-6188
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7564
SELECT ALL - MIN( ALL + - col0 ) AS col0, COUNT( * ) - - + ( - COUNT( * ) ) * + MIN( + CAST( - 6 AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
97
21

skipif mysql # not compatible
query II rowsort label-7564
SELECT ALL - MIN ( ALL + - col0 ) AS col0, COUNT ( * ) - - + ( - COUNT ( * ) ) * + MIN ( + CAST ( - 6 AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
97
21

onlyif mysql # aggregate syntax: 
query II rowsort label-7565
SELECT DISTINCT + SUM( - col2 ), - SUM( + col2 ) FROM tab2 AS cor0
----
-121
-121

skipif mysql # not compatible
query II rowsort label-7565
SELECT DISTINCT + SUM ( - col2 ), - SUM ( + col2 ) FROM tab2 AS cor0
----
-121
-121

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7567
SELECT COUNT( + - col1 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7567
SELECT COUNT ( + - col1 ) AS col2 FROM tab2
----
3

query I rowsort
SELECT - + 7 AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to ba940cd66e21e94e95aada5f28e1faf5

query II rowsort
SELECT ALL - + col2 AS col0, col0 FROM tab0 cor0
----
-10
87
-47
15
-99
97

query I rowsort
SELECT ALL + col2 * col0 * col0 + + col0 FROM tab0 cor0
----
10590
75777
931588

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND - + col1
----

query I rowsort
SELECT DISTINCT + ( + col2 ) + 64 FROM tab2 AS cor0
----
104
122
87

query I rowsort
SELECT + - col2 + - 3 FROM tab1 cor0
----
-62
-71
-99

query I rowsort
SELECT DISTINCT col2 + - - col1 AS col1 FROM tab0
----
100
128
31

query I rowsort
SELECT - 35 + - - 84 AS col1 FROM tab1
----
49
49
49

query I rowsort
SELECT DISTINCT 80 + - col1 FROM tab1
----
33
66
75

onlyif mysql # DIV for integer division: 
query I rowsort label-7577
SELECT ALL - col2 DIV 83 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7577
SELECT ALL - col2 / 83 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7578
SELECT DISTINCT 74 + - + MAX( 83 ) AS col1 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-7578
SELECT DISTINCT 74 + - + MAX ( 83 ) AS col1 FROM tab0 AS cor0
----
-9

query I rowsort
SELECT ALL col2 + + + col0 - - col0 AS col0 FROM tab1
----
198
229
250

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7580
SELECT - COUNT( * ) AS col1 FROM tab1 WHERE ( NOT - col0 + - ( + + col1 ) * col1 * + - col0 - + CAST( - col1 AS SIGNED ) IS NULL )
----
-3

skipif mysql # not compatible
query I rowsort label-7580
SELECT - COUNT ( * ) AS col1 FROM tab1 WHERE ( NOT - col0 + - ( + + col1 ) * col1 * + - col0 - + CAST ( - col1 AS INTEGER ) IS NULL )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7581
SELECT - 68 + COUNT( * ) + + COUNT( * ) col1 FROM tab2
----
-62

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7581
SELECT - 68 + COUNT ( * ) + + COUNT ( * ) col1 FROM tab2
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-7582
SELECT ALL + COUNT( * ) + - + 31 FROM tab0
----
-28

skipif mysql # not compatible
query I rowsort label-7582
SELECT ALL + COUNT ( * ) + - + 31 FROM tab0
----
-28

query I rowsort
SELECT DISTINCT col1 + + col2 * + - col1 AS col0 FROM tab0
----
-189
-3726
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-7584
SELECT + 52 * - COUNT( * ) col1 FROM tab2 cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7584
SELECT + 52 * - COUNT ( * ) col1 FROM tab2 cor0 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT col0 + + + ( col0 ) - + - col0 AS col2 FROM tab1 AS cor0
----
153
255
273

query I rowsort
SELECT - + ( + col0 ) + - col1 / - + col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - - 96 FROM tab1 cor0
----
96

query I rowsort
SELECT col0 * - - col2 + - - 24 AS col0 FROM tab2 AS cor0
----
1082
2584
4374

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7589
SELECT - CAST( NULL AS DECIMAL ) / COUNT( * ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7589
SELECT - CAST ( NULL AS REAL ) / COUNT ( * ) AS col1 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 * + - 30 - - col2 + - col2 col2 FROM tab1 AS cor0
----
1770
2040
2880

onlyif mysql # aggregate syntax: 
query I rowsort label-7591
SELECT + + COUNT( * ) * - 89 AS col0 FROM tab1 AS cor0
----
-267

skipif mysql # not compatible
query I rowsort label-7591
SELECT + + COUNT ( * ) * - 89 AS col0 FROM tab1 AS cor0
----
-267

onlyif mysql # aggregate syntax: 
query I rowsort label-7592
SELECT ALL - 38 * COUNT( + col1 ) FROM tab1 AS cor0 WHERE ( NULL ) >= + 35 + - col0 + + 59 * + col1
----
0

skipif mysql # not compatible
query I rowsort label-7592
SELECT ALL - 38 * COUNT ( + col1 ) FROM tab1 AS cor0 WHERE ( NULL ) >= + 35 + - col0 + + 59 * + col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7593
SELECT DISTINCT ( - 36 ) - - COUNT( * ) + - 91 FROM tab1 AS cor0
----
-124

skipif mysql # not compatible
query I rowsort label-7593
SELECT DISTINCT ( - 36 ) - - COUNT ( * ) + - 91 FROM tab1 AS cor0
----
-124

onlyif mysql # aggregate syntax: 
query I rowsort label-7594
SELECT COUNT( * ) * - - ( + + 65 ) * + + COUNT( * ) FROM tab2
----
585

skipif mysql # not compatible
query I rowsort label-7594
SELECT COUNT ( * ) * - - ( + + 65 ) * + + COUNT ( * ) FROM tab2
----
585

onlyif mysql # aggregate syntax: 
query I rowsort label-7595
SELECT - 72 * + + COUNT( * ) * + COUNT( * ) AS col0 FROM tab2
----
-648

skipif mysql # not compatible
query I rowsort label-7595
SELECT - 72 * + + COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab2
----
-648

onlyif mysql # aggregate syntax: 
query I rowsort label-7596
SELECT DISTINCT - MAX( + 42 ) col2 FROM tab2 WHERE NOT - + col1 IS NULL
----
-42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7596
SELECT DISTINCT - MAX ( + 42 ) col2 FROM tab2 WHERE NOT - + col1 IS NULL
----
-42

query III rowsort
SELECT ALL * FROM tab0 WHERE - + 93 = - col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7598
SELECT DISTINCT - COUNT( * ) * + - 94 * - CAST( 77 AS SIGNED ) AS col0 FROM tab1
----
-21714

skipif mysql # not compatible
query I rowsort label-7598
SELECT DISTINCT - COUNT ( * ) * + - 94 * - CAST ( 77 AS INTEGER ) AS col0 FROM tab1
----
-21714

query I rowsort
SELECT - + 1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7600
SELECT DISTINCT + MIN( DISTINCT + + col0 ) FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-7600
SELECT DISTINCT + MIN ( DISTINCT + + col0 ) FROM tab2 AS cor0
----
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col0, col0 AS col1 FROM tab0 AS cor0
----
15
15
87
87
97
97

query I rowsort
SELECT ALL 28 * - 6 + + col0 * - col1 FROM tab0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT 69 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7604
SELECT - 13 * + 17 * - COUNT( * ) AS col1 FROM tab0 AS cor0
----
663

skipif mysql # not compatible
query I rowsort label-7604
SELECT - 13 * + 17 * - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
663

query I rowsort
SELECT + col1 AS col2 FROM tab0 AS cor0 WHERE NOT col1 + + + 87 IS NULL
----
1
21
81

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col2 >= col0
----
85
5
59
91
47
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7607
SELECT + CAST( NULL AS SIGNED ) / - col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7607
SELECT + CAST ( NULL AS INTEGER ) / - col2 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 + col2 - + col0 + + - col1 AS col1 FROM tab2 AS cor0
----
-26
-51
-61

query I rowsort
SELECT col1 AS col2 FROM tab1 WHERE col2 NOT BETWEEN NULL AND + - col2 + + col1
----
14
47
5

query I rowsort
SELECT ALL col0 * 15 + col2 AS col1 FROM tab0
----
1315
1554
272

query I rowsort
SELECT ALL 20 FROM tab0 WHERE ( 54 + + col0 >= col0 * - - col0 * col2 + - - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7612
SELECT ALL MIN( col2 ) + + + 34 AS col1 FROM tab2
----
57

skipif mysql # not compatible
query I rowsort label-7612
SELECT ALL MIN ( col2 ) + + + 34 AS col1 FROM tab2
----
57

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col0 + - 1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7614
SELECT + 46 + + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7614
SELECT + 46 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ( 52 ) * 42 + + + col0 FROM tab2
----
2230
2248
2259

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 * + 59 * col2 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7617
SELECT - col0 + - + CAST( + - col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-66
-96
66

skipif mysql # not compatible
query I rowsort label-7617
SELECT - col0 + - + CAST ( + - col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-66
-96
66

query I rowsort
SELECT ALL - - 89 - 19 AS col1 FROM tab0 AS cor0
----
70
70
70

onlyif mysql # aggregate syntax: 
query I rowsort label-7619
SELECT ALL - COUNT( DISTINCT + - ( + + 88 ) ) AS col1 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7619
SELECT ALL - COUNT ( DISTINCT + - ( + + 88 ) ) AS col1 FROM tab2 AS cor0
----
-1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND + 65
----

query I rowsort
SELECT DISTINCT col0 * ( + - 45 ) + + + ( - - col0 ) * - - col1 + - 11 AS col2 FROM tab0
----
-2099
-4279
529

query I rowsort
SELECT DISTINCT - - 66 * + - 93 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7623
SELECT - CAST( NULL AS DECIMAL ) - + + MIN( ALL + + ( - 28 ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7623
SELECT - CAST ( NULL AS REAL ) - + + MIN ( ALL + + ( - 28 ) ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + - col2 - - col2 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - col2 * col0 - + col1 + + - 72 AS col2 FROM tab1 AS cor0
----
-4982
-5092
-6307

query I rowsort
SELECT ALL + col1 * - + 52 + - col2 + - col2 FROM tab0 AS cor0
----
-1112
-250
-4306

onlyif mysql # aggregate syntax: 
query I rowsort label-7627
SELECT DISTINCT - + COUNT( ALL 51 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7627
SELECT DISTINCT - + COUNT ( ALL 51 ) FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7628
SELECT ALL SUM( DISTINCT + 84 ) * + 75 col0 FROM tab0 AS cor0
----
6300

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7628
SELECT ALL SUM ( DISTINCT + 84 ) * + 75 col0 FROM tab0 AS cor0
----
6300

query I rowsort
SELECT ALL + 56 * 20 AS col2 FROM tab2 AS cor0
----
1120
1120
1120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7630
SELECT ALL CAST( + col1 AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE NOT ( - col1 ) > NULL
----

skipif mysql # not compatible
query I rowsort label-7630
SELECT ALL CAST ( + col1 AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE NOT ( - col1 ) > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7631
SELECT DISTINCT + col2 DIV + ( - col0 ) col1 FROM tab0
----
-1
-3
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7631
SELECT DISTINCT + col2 / + ( - col0 ) col1 FROM tab0
----
-1
-3
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7632
SELECT ALL - col2 DIV + CAST( + + ( - 25 ) AS SIGNED ) FROM tab2
----
0
1
2

skipif mysql # not compatible
query I rowsort label-7632
SELECT ALL - col2 / + CAST ( + + ( - 25 ) AS INTEGER ) FROM tab2
----
0
1
2

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 NOT BETWEEN NULL AND + - 97 * + + col2 + - - 31 + - col0 + + 71
----

query II rowsort
SELECT + col2 AS col1, 31 AS col2 FROM tab0
----
10
31
47
31
99
31

query II rowsort
SELECT ALL + col2 AS col0, col1 AS col0 FROM tab0 AS cor0
----
10
21
47
81
99
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7636
SELECT ALL SUM( - col2 ) FROM tab0 cor0
----
-156

skipif mysql # not compatible
query I rowsort label-7636
SELECT ALL SUM ( - col2 ) FROM tab0 cor0
----
-156

query I rowsort
SELECT ALL - col0 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT ALL - col0 AS col2 FROM tab1 AS cor0 WHERE 89 >= NULL
----

query I rowsort
SELECT DISTINCT 34 * 67 + col0 FROM tab0
----
2293
2365
2375

query III rowsort
SELECT * FROM tab2 WHERE + - col1 * 48 * + col1 + - ( + 40 ) + 69 * - col1 * col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + ( 71 ) ) + + col1 col0 FROM tab2
----
122
138
148

query I rowsort
SELECT DISTINCT - - col2 FROM tab1 WHERE - col1 * - + col1 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 53 < + col0
----
46
51
23

query I rowsort
SELECT col0 - col0 FROM tab0 AS cor0 WHERE NOT - col2 <= + 8 / + + 11
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 6 NOT BETWEEN NULL AND - col2 / 12
----
97
1
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7646
SELECT - COUNT( * ) * - + 16 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) > - + CAST( NULL AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-7646
SELECT - COUNT ( * ) * - + 16 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) > - + CAST ( NULL AS INTEGER )
----
0

query I rowsort
SELECT + col1 * - + col1 AS col0 FROM tab2 cor0
----
-2601
-4489
-5929

query II rowsort
SELECT col2, 70 FROM tab0 AS cor0
----
10
70
47
70
99
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7649
SELECT COUNT( * ) * + CAST( - - MAX( ALL + 80 ) AS SIGNED ) FROM tab1 AS cor0
----
240

skipif mysql # not compatible
query I rowsort label-7649
SELECT COUNT ( * ) * + CAST ( - - MAX ( ALL + 80 ) AS INTEGER ) FROM tab1 AS cor0
----
240

query I rowsort
SELECT ALL 79 / col2 FROM tab0 cor0 WHERE NULL > NULL
----

query I rowsort
SELECT + - col1 AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7652
SELECT DISTINCT + MIN( ALL + 70 ) FROM tab1
----
70

skipif mysql # not compatible
query I rowsort label-7652
SELECT DISTINCT + MIN ( ALL + 70 ) FROM tab1
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-7653
SELECT + COUNT( + - ( - col2 ) ) AS col2 FROM tab0 WHERE NOT + - 25 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7653
SELECT + COUNT ( + - ( - col2 ) ) AS col2 FROM tab0 WHERE NOT + - 25 IS NOT NULL
----
0

query I rowsort
SELECT ALL - 47 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 6942a0d9558277afd0d00408d65cf5aa

onlyif mysql # DIV for integer division: 
query II rowsort label-7655
SELECT + ( + 7 ), + col0 DIV - col1 AS col1 FROM tab1 AS cor0
----
7
-1
7
-17
7
-3

skipif mysql # not compatible
query II rowsort label-7655
SELECT + ( + 7 ), + col0 / - col1 AS col1 FROM tab1 AS cor0
----
7
-1
7
-17
7
-3

query I rowsort
SELECT + 88 + - col2 FROM tab0 WHERE NOT - 0 * + col0 * + 35 * + col1 IS NULL
----
-11
41
78

query I rowsort
SELECT DISTINCT - - 38 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
38

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE NULL < ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7659
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( - CAST( NULL AS SIGNED ) BETWEEN col0 AND + - col0 * - col0 )
----

skipif mysql # not compatible
query III rowsort label-7659
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( - CAST ( NULL AS INTEGER ) BETWEEN col0 AND + - col0 * - col0 )
----

query I rowsort
SELECT + + 80 * + col2 FROM tab2 AS cor0
----
1840
3200
4640

onlyif mysql # DIV for integer division: 
query II rowsort label-7661
SELECT ALL 54 DIV col2 AS col2, col2 * + + col1 AS col1 FROM tab0 AS cor0
----
0
99
1
3807
5
210

skipif mysql # not compatible
query II rowsort label-7661
SELECT ALL 54 / col2 AS col2, col2 * + + col1 AS col1 FROM tab0 AS cor0
----
0
99
1
3807
5
210

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7662
SELECT ALL + 60 DIV + MIN( - col1 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7662
SELECT ALL + 60 / + MIN ( - col1 ) FROM tab0 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7663
SELECT - + col1 DIV + col2 - + 0 FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-7663
SELECT - + col1 / + col2 - + 0 FROM tab0 AS cor0
----
-1
-2
0

query I rowsort
SELECT + 65 - + col0 FROM tab0
----
-22
-32
50

query I rowsort
SELECT ALL - col0 + 57 + - + col2 FROM tab0 WHERE NULL > - ( + col2 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7666
SELECT DISTINCT COUNT( * ) AS col0, + COUNT( ALL + 63 ) FROM tab0
----
3
3

skipif mysql # not compatible
query II rowsort label-7666
SELECT DISTINCT COUNT ( * ) AS col0, + COUNT ( ALL + 63 ) FROM tab0
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7667
SELECT + COUNT( * ) + + + COUNT( * ) FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-7667
SELECT + COUNT ( * ) + + + COUNT ( * ) FROM tab2
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7668
SELECT ALL - - 81 * - COUNT( * ) + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7668
SELECT ALL - - 81 * - COUNT ( * ) + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7669
SELECT - SUM( DISTINCT 68 ) + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-65

skipif mysql # not compatible
query I rowsort label-7669
SELECT - SUM ( DISTINCT 68 ) + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 4 + col0 col1 FROM tab0 AS cor0
----
101
19
91

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 42 / + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col1 * 76 AS col1 FROM tab0 cor0
----
-1596
-6156
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-7673
SELECT ALL - MIN( + + 38 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-38

skipif mysql # not compatible
query I rowsort label-7673
SELECT ALL - MIN ( + + 38 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-38

query I rowsort
SELECT DISTINCT ( + + ( + 99 ) ) FROM tab1 AS cor0
----
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 45 col1 FROM tab1 AS cor0
----
45

query I rowsort
SELECT + - 94 / + 72 + col2 - col2 FROM tab0 AS cor0 WHERE NOT NULL = - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7677
SELECT * FROM tab1 AS cor0 WHERE NOT NULL IN ( + col0 + - 5, col0 * CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-7677
SELECT * FROM tab1 AS cor0 WHERE NOT NULL IN ( + col0 + - 5, col0 * CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7678
SELECT - SUM( ALL + col0 ) AS col1 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-7678
SELECT - SUM ( ALL + col0 ) AS col1 FROM tab2 AS cor0
----
-185

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 60 col1 FROM tab0 AS cor0
----
60
60
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 72 * - + col1 col2, + 83 FROM tab2 cor0 WHERE NOT + 33 * - col1 < NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL BETWEEN ( NULL ) AND - - col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7682
SELECT ALL - CAST( + 99 AS SIGNED ) * COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-297

skipif mysql # not compatible
query I rowsort label-7682
SELECT ALL - CAST ( + 99 AS INTEGER ) * COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-297

query I rowsort
SELECT + ( + - 89 ) FROM tab1
----
-89
-89
-89

onlyif mysql # DIV for integer division: 
query I rowsort label-7684
SELECT + col0 * - col2 DIV + col2 FROM tab0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-7684
SELECT + col0 * - col2 / + col2 FROM tab0
----
-15
-87
-97

query II rowsort
SELECT ALL - col0, col0 AS col2 FROM tab2
----
-46
46
-64
64
-75
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 5 * + col2 col2 FROM tab0
----
235
495
50

query II rowsort
SELECT + col2 AS col1, - 16 - + ( col2 ) FROM tab0
----
10
-26
47
-63
99
-115

onlyif mysql # aggregate syntax: 
query I rowsort label-7688
SELECT ( + 0 ) * - COUNT( * ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7688
SELECT ( + 0 ) * - COUNT ( * ) AS col1 FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7689
SELECT - 90 DIV + col1 FROM tab0
----
-1
-4
-90

skipif mysql # not compatible
query I rowsort label-7689
SELECT - 90 / + col1 FROM tab0
----
-1
-4
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-7690
SELECT ALL SUM( ALL - + 1 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-7690
SELECT ALL SUM ( ALL - + 1 ) FROM tab1
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7691
SELECT * FROM tab2 WHERE NOT - CAST( NULL AS SIGNED ) * + + col0 >= 60
----

skipif mysql # not compatible
query III rowsort label-7691
SELECT * FROM tab2 WHERE NOT - CAST ( NULL AS INTEGER ) * + + col0 >= 60
----

query I rowsort
SELECT ALL + + col2 * - + col2 * + 19 FROM tab2 AS cor0
----
-10051
-30400
-63916

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 BETWEEN + col0 AND + - 52
----

query II rowsort
SELECT + col1 AS col2, col2 FROM tab0 WHERE + col0 * + col0 * + 40 IS NULL
----

query I rowsort
SELECT ALL - col0 + 36 - - 80 FROM tab1
----
25
31
65

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7696
SELECT + CAST( NULL AS DECIMAL ) col0, col1 * + col1 * 6 + - 37 AS col1 FROM tab1
----
NULL
113
NULL
1139
NULL
13217

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7696
SELECT + CAST ( NULL AS REAL ) col0, col1 * + col1 * 6 + - 37 AS col1 FROM tab1
----
NULL
113
NULL
1139
NULL
13217

query I rowsort
SELECT DISTINCT col2 + ( + - 84 ) AS col2 FROM tab0
----
-37
-74
15

query III rowsort
SELECT ALL * FROM tab1 WHERE + col0 / 83 + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE NOT 49 IS NULL OR NOT - 99 = - + 63
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - - col2 * + + 58 * - col0 + - 19 + + ( - ( + col1 ) ) - 56 + - col2 FROM tab1 AS cor0
----
-284153
-291009
-359094

onlyif mysql # aggregate syntax: 
query I rowsort label-7701
SELECT ALL COUNT( * ) * - 46 col1 FROM tab0 AS cor0
----
-138

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7701
SELECT ALL COUNT ( * ) * - 46 col1 FROM tab0 AS cor0
----
-138

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7702
SELECT ALL - + col1 * - CAST( + + col0 AS SIGNED ) - - - 54 FROM tab0 cor0
----
1161
1773
43

skipif mysql # not compatible
query I rowsort label-7702
SELECT ALL - + col1 * - CAST ( + + col0 AS INTEGER ) - - - 54 FROM tab0 cor0
----
1161
1773
43

onlyif mysql # aggregate syntax: 
query I rowsort label-7703
SELECT ALL - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7703
SELECT ALL - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

query I rowsort
SELECT DISTINCT col0 + - - col2 * - + col2 FROM tab1 AS cor0
----
-3396
-4533
-9165

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7705
SELECT ALL CAST( + - 0 AS SIGNED ) DIV - COUNT( * ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7705
SELECT ALL CAST ( + - 0 AS INTEGER ) / - COUNT ( * ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT - + col0 + - 74 FROM tab1 AS cor0
----
-125
-159
-165

query II rowsort
SELECT - + col2 / + + col2, - col0 AS col2 FROM tab2 WHERE ( NOT ( NULL ) NOT BETWEEN - col1 AND NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7708
SELECT MIN( + col2 ) * COUNT( * ) AS col0 FROM tab0
----
30

skipif mysql # not compatible
query I rowsort label-7708
SELECT MIN ( + col2 ) * COUNT ( * ) AS col0 FROM tab0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-7709
SELECT COUNT( + + 98 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7709
SELECT COUNT ( + + 98 ) AS col0 FROM tab1
----
3

query III rowsort
SELECT * FROM tab2 WHERE NULL > - - 94
----

query I rowsort
SELECT + 62 * + col0 FROM tab2
----
2852
3968
4650

query III rowsort
SELECT * FROM tab2 WHERE + - col0 BETWEEN - col1 AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE + col0 NOT BETWEEN - - col0 * - col1 + - - col0 / 11 + - + col0 AND + col1
----
87
21
10
97
1
99

query I rowsort
SELECT ALL 68 + + ( col1 ) + - col1 FROM tab1
----
68
68
68

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL >= + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7716
SELECT + 2 * - + COUNT( * ) FROM tab1
----
-6

skipif mysql # not compatible
query I rowsort label-7716
SELECT + 2 * - + COUNT ( * ) FROM tab1
----
-6

query I rowsort
SELECT ALL 47 FROM tab2 WHERE - + 94 = + col1 * + + 23
----

query I rowsort
SELECT - - 14 AS col2 FROM tab0 AS cor0
----
14
14
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col2, - col0 AS col0 FROM tab2 cor0
----
-51
-46
-67
-75
-77
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-7720
SELECT ALL SUM( col0 ) AS col0 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-7720
SELECT ALL SUM ( col0 ) AS col0 FROM tab1 AS cor0
----
227

onlyif mysql # aggregate syntax: 
query I rowsort label-7721
SELECT - - MAX( ALL col0 ) + + COUNT( * ) + - 82 / 98 col1 FROM tab1 WHERE NOT ( - - col0 ) + + 14 * - 56 <= - - col1 + + 7
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7721
SELECT - - MAX ( ALL col0 ) + + COUNT ( * ) + - 82 / 98 col1 FROM tab1 WHERE NOT ( - - col0 ) + + 14 * - 56 <= - - col1 + + 7
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 = ( + - 42 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE NOT + 98 BETWEEN col1 + + col1 * - col2 + - col0 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + + col1 + - - 67 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 AS col1 FROM tab1 WHERE NOT + col1 IS NULL
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7726
SELECT + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT - col0 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-7726
SELECT + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT - col0 IS NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7727
SELECT DISTINCT - - CAST( + 26 AS SIGNED ) FROM tab0 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-7727
SELECT DISTINCT - - CAST ( + 26 AS INTEGER ) FROM tab0 AS cor0
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-7728
SELECT - col2 DIV - ( col1 ) + - col0 FROM tab1 AS cor0
----
-45
-74
-90

skipif mysql # not compatible
query I rowsort label-7728
SELECT - col2 / - ( col1 ) + - col0 FROM tab1 AS cor0
----
-45
-74
-90

query II rowsort
SELECT + + col2 + col1, col1 AS col1 FROM tab1 AS cor0
----
110
14
115
47
64
5

query I rowsort
SELECT 88 + - + ( col1 ) FROM tab0 AS cor0
----
67
7
87

onlyif mysql # DIV for integer division: 
query I rowsort label-7731
SELECT - 29 DIV col0 * - 37 + + col0 AS col2 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-7731
SELECT - 29 / col0 * - 37 + + col0 AS col2 FROM tab1
----
51
85
91

query I rowsort
SELECT + + 46 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39

query I rowsort
SELECT + + ( - 9 ) FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to caf28657beb43049740febe1fa9ded5a

onlyif mysql # aggregate syntax: 
query I rowsort label-7734
SELECT DISTINCT + COUNT( * ) + ( COUNT( * ) ) AS col2 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-7734
SELECT DISTINCT + COUNT ( * ) + ( COUNT ( * ) ) AS col2 FROM tab0
----
6

query I rowsort
SELECT DISTINCT 20 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
20

query I rowsort
SELECT - ( + 22 ) AS col1 FROM tab0 AS cor0
----
-22
-22
-22

onlyif mysql # DIV for integer division: 
query I rowsort label-7737
SELECT col2 * col1 DIV - col0 FROM tab2 AS cor0
----
-25
-48
-51

skipif mysql # not compatible
query I rowsort label-7737
SELECT col2 * col1 / - col0 FROM tab2 AS cor0
----
-25
-48
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-7738
SELECT ALL + + MIN( ALL col0 ) FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-7738
SELECT ALL + + MIN ( ALL col0 ) FROM tab0 AS cor0
----
15

query I rowsort
SELECT DISTINCT 19 - - + 83 FROM tab1 AS cor0
----
102

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT - 53 <> - 17
----

query I rowsort
SELECT DISTINCT - + 81 - - + 14 + + col0 * + col1 FROM tab0 AS cor0
----
1148
1760
30

onlyif mysql # aggregate syntax: 
query I rowsort label-7742
SELECT ALL + 6 * + 62 + + MAX( DISTINCT + + 88 ) AS col1 FROM tab2 AS cor0
----
460

skipif mysql # not compatible
query I rowsort label-7742
SELECT ALL + 6 * + 62 + + MAX ( DISTINCT + + 88 ) AS col1 FROM tab2 AS cor0
----
460

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - col0 col2, 1 + - 2 col0 FROM tab2 AS cor0
----
-46
-1
-64
-1
-75
-1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 0 * + col1 + + col0 * col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 17 * - ( - 57 ) col0 FROM tab1 AS cor0
----
-969

onlyif mysql # aggregate syntax: 
query I rowsort label-7746
SELECT ALL - ( - COUNT( * ) ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7746
SELECT ALL - ( - COUNT ( * ) ) AS col0 FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7747
SELECT * FROM tab1 WHERE - col1 + 94 IN ( - - col2 * col0, + col2, + col2 * + col1, + - ( - 87 ) / + col1 * CAST( NULL AS SIGNED ) * + col2 * + ( 76 ) + col2, - col0, col0 - - - col1 )
----

skipif mysql # not compatible
query III rowsort label-7747
SELECT * FROM tab1 WHERE - col1 + 94 IN ( - - col2 * col0, + col2, + col2 * + col1, + - ( - 87 ) / + col1 * CAST ( NULL AS INTEGER ) * + col2 * + ( 76 ) + col2, - col0, col0 - - - col1 )
----

query I rowsort
SELECT - - 86 * col2 - col1 FROM tab0 WHERE col2 IS NULL
----

query II rowsort
SELECT ALL + col0 + col0 AS col2, + 29 FROM tab1
----
102
29
170
29
182
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7750
SELECT col1 + 38 + ( + col1 ) * - CAST( NULL AS SIGNED ) * + - col1 * + 97 / + 54 col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7750
SELECT col1 + 38 + ( + col1 ) * - CAST ( NULL AS INTEGER ) * + - col1 * + 97 / + 54 col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL ( + col1 ) + + + col1 * - + col2 * + + col1 - - col0 FROM tab0
----
-1
-308271
-4302

query I rowsort
SELECT ALL - - 43 * + col0 * - + col1 FROM tab2 cor0 WHERE + col0 > + 88
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7753
SELECT - 89 AS col0, col0 * - col0 * + 63 AS col1, + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
9 values hashing to 539cd4767fee4cd57a66b89988d8222d

skipif mysql # not compatible
query III rowsort label-7753
SELECT - 89 AS col0, col0 * - col0 * + 63 AS col1, + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
9 values hashing to 539cd4767fee4cd57a66b89988d8222d

onlyif mysql # aggregate syntax: 
query II rowsort label-7754
SELECT ALL + COUNT( * ) AS col0, + 62 AS col0 FROM tab2 AS cor0
----
3
62

skipif mysql # not compatible
query II rowsort label-7754
SELECT ALL + COUNT ( * ) AS col0, + 62 AS col0 FROM tab2 AS cor0
----
3
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7755
SELECT ALL - + col1 * ( + - CAST( NULL AS SIGNED ) ) + - col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7755
SELECT ALL - + col1 * ( + - CAST ( NULL AS INTEGER ) ) + - col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 3 * + ( col0 ) AS col1 FROM tab2 AS cor0
----
138
192
225

onlyif mysql # aggregate syntax: 
query I rowsort label-7757
SELECT + COUNT( ALL - 72 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-7757
SELECT + COUNT ( ALL - 72 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col0 + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - ( 64 ) AS col2 FROM tab0 AS cor0
----
-64
-64
-64

query I rowsort
SELECT DISTINCT col2 FROM tab2 AS cor0 WHERE NULL BETWEEN col2 AND + col1
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL = + col2 / - + 1
----

query I rowsort
SELECT DISTINCT col2 * - 73 AS col2 FROM tab0
----
-3431
-7227
-730

query I rowsort
SELECT - col1 + + - ( + col1 ) * col0 AS col2 FROM tab2
----
-2397
-5005
-5092

query I rowsort
SELECT DISTINCT - col0 + + - 72 FROM tab1
----
-123
-157
-163

query I rowsort
SELECT ALL - col0 + - col2 * - ( + col2 ) * + col2 AS col2 FROM tab0
----
103808
913
970202

query I rowsort
SELECT + 18 * + 15 FROM tab1
----
270
270
270

query I rowsort
SELECT ALL - ( - 92 ) FROM tab1 AS cor0
----
92
92
92

query II rowsort
SELECT + col0, + col1 * 48 FROM tab2 AS cor0
----
46
2448
64
3696
75
3216

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7769
SELECT 60 DIV + - COUNT( * ) FROM tab0 AS cor0
----
-20

skipif mysql # not compatible
query I rowsort label-7769
SELECT 60 / + - COUNT ( * ) FROM tab0 AS cor0
----
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-7770
SELECT DISTINCT 13 DIV col0 + + + col0 * + 75 AS col1 FROM tab0 AS cor0
----
1125
6525
7275

skipif mysql # not compatible
query I rowsort label-7770
SELECT DISTINCT 13 / col0 + + + col0 * + 75 AS col1 FROM tab0 AS cor0
----
1125
6525
7275

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <= ( 41 - col2 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - 40 BETWEEN col2 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( 50 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 35 <= 23 * col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7775
SELECT COUNT( * ) + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7775
SELECT COUNT ( * ) + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col0 * - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col2 FROM tab1 WHERE NULL NOT BETWEEN ( - 94 ) AND ( - 76 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - col2 col1 FROM tab1
----
-45
23
26

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7779
SELECT * FROM tab0 WHERE - col0 NOT IN ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-7779
SELECT * FROM tab0 WHERE - col0 NOT IN ( - CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7780
SELECT - COUNT( * ) FROM tab1 WHERE + col2 NOT IN ( - col2 )
----
-3

skipif mysql # not compatible
query I rowsort label-7780
SELECT - COUNT ( * ) FROM tab1 WHERE + col2 NOT IN ( - col2 )
----
-3

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) IN ( 43 )
----

query I rowsort
SELECT DISTINCT - 81 + col1 AS col0 FROM tab0
----
-60
-80
0

query I rowsort
SELECT - 62 + - 77 AS col0 FROM tab0
----
-139
-139
-139

onlyif mysql # aggregate syntax: 
query I rowsort label-7784
SELECT + COUNT( * ) + 47 FROM tab1
----
50

skipif mysql # not compatible
query I rowsort label-7784
SELECT + COUNT ( * ) + 47 FROM tab1
----
50

query III rowsort
SELECT * FROM tab1 WHERE NOT 59 * col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-7786
SELECT col1 DIV col0 + - 71 FROM tab1
----
-71
-71
-71

skipif mysql # not compatible
query I rowsort label-7786
SELECT col1 / col0 + - 71 FROM tab1
----
-71
-71
-71

query I rowsort
SELECT - col2 AS col1 FROM tab1 WHERE ( NULL ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 9 * col0 + - col2 col0 FROM tab2 WHERE NOT ( - col2 ) NOT IN ( + col0 * + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7789
SELECT DISTINCT MAX( DISTINCT + 15 ) AS col0 FROM tab1 WHERE NOT col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7789
SELECT DISTINCT MAX ( DISTINCT + 15 ) AS col0 FROM tab1 WHERE NOT col1 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7790
SELECT ALL * FROM tab1 WHERE NOT ( + CAST( - col0 AS SIGNED ) + - col1 ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-7790
SELECT ALL * FROM tab1 WHERE NOT ( + CAST ( - col0 AS INTEGER ) + - col1 ) IS NOT NULL
----

query I rowsort
SELECT ALL + 61 FROM tab0 WHERE NOT col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col2 + 66 FROM tab0
----
-33
19
56

query I rowsort
SELECT DISTINCT - 71 FROM tab1 AS cor0 WHERE ( col2 ) <> - col1
----
-71

query I rowsort
SELECT DISTINCT col0 * 51 FROM tab1 cor0
----
2601
4335
4641

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 93 col2 FROM tab0 WHERE NULL IS NULL
----
93
93
93

query I rowsort
SELECT ALL 3 * + 33 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7797
SELECT + 29 DIV COUNT( * ) FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-7797
SELECT + 29 / COUNT ( * ) FROM tab1
----
9

query III rowsort
SELECT ALL * FROM tab1 WHERE - 5 BETWEEN NULL AND col1
----

query I rowsort
SELECT - ( col1 ) AS col2 FROM tab0 AS cor0 WHERE NOT ( col1 - col2 ) IS NULL
----
-1
-21
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7800
SELECT + - ( CAST( NULL AS SIGNED ) ) / - col0 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7800
SELECT + - ( CAST ( NULL AS INTEGER ) ) / - col0 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 83 * - col1 AS col2 FROM tab2 cor0
----
-4233
-5561
-6391

onlyif mysql # aggregate syntax: 
query I rowsort label-7802
SELECT ALL + 20 * MAX( - 53 ) AS col2 FROM tab2 AS cor0 WHERE NULL > ( - col1 / col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7802
SELECT ALL + 20 * MAX ( - 53 ) AS col2 FROM tab2 AS cor0 WHERE NULL > ( - col1 / col1 )
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 25 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7804
SELECT SUM( ALL + 88 ) AS col0 FROM tab2 AS cor0
----
264

skipif mysql # not compatible
query I rowsort label-7804
SELECT SUM ( ALL + 88 ) AS col0 FROM tab2 AS cor0
----
264

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7805
SELECT + + 71 DIV MIN( col1 + ( 79 ) ) AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7805
SELECT + + 71 / MIN ( col1 + ( 79 ) ) AS col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT col1 * 85 AS col2 FROM tab1 AS cor0
----
1190
3995
425

query I rowsort
SELECT ALL 29 * col2 + 98 AS col0 FROM tab1 AS cor0
----
1809
2070
2882

query I rowsort
SELECT ALL col1 AS col1 FROM tab2 AS cor0 WHERE NOT 68 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 90 * + - 77 FROM tab1
----
6930

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7810
SELECT DISTINCT CAST( + 99 AS SIGNED ) * - col2 + 23 AS col1 FROM tab0
----
-4630
-967
-9778

skipif mysql # not compatible
query I rowsort label-7810
SELECT DISTINCT CAST ( + 99 AS INTEGER ) * - col2 + 23 AS col1 FROM tab0
----
-4630
-967
-9778

query I rowsort
SELECT col1 AS col0 FROM tab1 WHERE NOT ( 86 + 75 ) IN ( 87 - ( 65 + col1 ) )
----
14
47
5

onlyif mysql # DIV for integer division: 
query I rowsort label-7812
SELECT ALL - col1 DIV 73 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7812
SELECT ALL - col1 / 73 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL - col1 + + - 1 FROM tab0
----
-2
-22
-82

query III rowsort
SELECT * FROM tab0 WHERE col2 * + col0 + - col0 * col0 NOT IN ( 3 + col0 * + 17 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 7 + + col2 AS col1 FROM tab1
----
103
66
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7816
SELECT ALL 47 + + MIN( ALL 11 ) + + 41 AS col2 FROM tab2
----
99

skipif mysql # not compatible
query I rowsort label-7816
SELECT ALL 47 + + MIN ( ALL 11 ) + + 41 AS col2 FROM tab2
----
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + + - col1 col2 FROM tab1
----
21
54
82

query I rowsort
SELECT ALL ( ( col1 ) ) AS col1 FROM tab0
----
1
21
81

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 3 * - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - + ( - - 70 ) * col0 FROM tab0 AS cor0
----
-1050
-6090
-6790

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7821
SELECT ALL + CAST( - + MAX( DISTINCT + 40 ) AS SIGNED ) FROM tab1 AS cor0
----
-40

skipif mysql # not compatible
query I rowsort label-7821
SELECT ALL + CAST ( - + MAX ( DISTINCT + 40 ) AS INTEGER ) FROM tab1 AS cor0
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-7822
SELECT SUM( - ( col1 ) ) + COUNT( * ) AS col1 FROM tab0 cor0
----
-100

skipif mysql # not compatible
query I rowsort label-7822
SELECT SUM ( - ( col1 ) ) + COUNT ( * ) AS col1 FROM tab0 cor0
----
-100

query I rowsort
SELECT - - col2 + + 38 AS col2 FROM tab0 cor0
----
137
48
85

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND 52
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 + + col0 * 10 col0 FROM tab2 AS cor0
----
414
576
675

query I rowsort
SELECT - col2 AS col0 FROM tab0 WHERE ( - - col0 * col0 ) IS NULL
----

query I rowsort
SELECT ALL ( col2 ) FROM tab1 WHERE - ( col2 ) <= ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + - col2 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7829
SELECT - - MAX( DISTINCT - 62 ) FROM tab2 AS cor0
----
-62

skipif mysql # not compatible
query I rowsort label-7829
SELECT - - MAX ( DISTINCT - 62 ) FROM tab2 AS cor0
----
-62

query I rowsort
SELECT col1 * + ( + 32 ) * col1 - col2 FROM tab2 AS cor0
----
143590
189688
83209

query I rowsort
SELECT ALL col1 * 28 AS col0 FROM tab2 AS cor0 WHERE NOT - col1 NOT IN ( 39 + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7832
SELECT + 53 - - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7832
SELECT + 53 - - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7833
SELECT DISTINCT + col1 - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7833
SELECT DISTINCT + col1 - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7834
SELECT - 58 - col2 + + 84 + + ( col2 ) * col0 DIV col1 FROM tab1 AS cor0
----
279
89
970

skipif mysql # not compatible
query I rowsort label-7834
SELECT - 58 - col2 + + 84 + + ( col2 ) * col0 / col1 FROM tab1 AS cor0
----
279
89
970

query II rowsort
SELECT ALL + 37, col1 * - col2 AS col1 FROM tab0 cor0
----
37
-210
37
-3807
37
-99

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( + col2 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7837
SELECT DISTINCT + + CAST( + col2 AS SIGNED ) FROM tab1 cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-7837
SELECT DISTINCT + + CAST ( + col2 AS INTEGER ) FROM tab1 cor0
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7838
SELECT + col0 + - CAST( NULL AS SIGNED ) AS col2 FROM tab1 WHERE NOT 10 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7838
SELECT + col0 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 WHERE NOT 10 IS NOT NULL
----

query I rowsort
SELECT ALL - col0 * - 64 AS col1 FROM tab0
----
5568
6208
960

onlyif mysql # aggregate syntax: 
query I rowsort label-7840
SELECT DISTINCT - COUNT( + 45 ) col2 FROM tab1
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7840
SELECT DISTINCT - COUNT ( + 45 ) col2 FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7841
SELECT DISTINCT - 30 * + MIN( DISTINCT - col1 ) FROM tab2
----
2310

skipif mysql # not compatible
query I rowsort label-7841
SELECT DISTINCT - 30 * + MIN ( DISTINCT - col1 ) FROM tab2
----
2310

onlyif mysql # DIV for integer division: 
query I rowsort label-7842
SELECT col1 DIV + - col2 AS col2 FROM tab2
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-7842
SELECT col1 / + - col2 AS col2 FROM tab2
----
-1
-1
-2

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - 24 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + ( - col0 ) * + + col0 * - 24 FROM tab0
----
181656
225816
5400

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7845
SELECT 37 DIV - - ( + MAX( - + col1 ) ) FROM tab0
----
-37

skipif mysql # not compatible
query I rowsort label-7845
SELECT 37 / - - ( + MAX ( - + col1 ) ) FROM tab0
----
-37

query I rowsort
SELECT - 82 + - col1 AS col1 FROM tab2 WHERE NOT - col0 < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7847
SELECT col2 DIV + - 96 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7847
SELECT col2 / + - 96 AS col0 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7848
SELECT DISTINCT COUNT( * ) * - 94 - + COUNT( * ) FROM tab1 AS cor0
----
-285

skipif mysql # not compatible
query I rowsort label-7848
SELECT DISTINCT COUNT ( * ) * - 94 - + COUNT ( * ) FROM tab1 AS cor0
----
-285

query I rowsort
SELECT DISTINCT - col1 / - 6 FROM tab0 AS cor0 WHERE ( NOT 88 IS NOT NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2, 11 * - 16 col0 FROM tab0
----
-10
-176
-47
-176
-99
-176

onlyif mysql # aggregate syntax: 
query I rowsort label-7851
SELECT DISTINCT - COUNT( * ) * - MAX( DISTINCT - - ( col1 ) ) col2 FROM tab0 AS cor0
----
243

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7851
SELECT DISTINCT - COUNT ( * ) * - MAX ( DISTINCT - - ( col1 ) ) col2 FROM tab0 AS cor0
----
243

query I rowsort
SELECT - 41 * + - col0 AS col2 FROM tab1 AS cor0
----
2091
3485
3731

query I rowsort
SELECT ALL col2 * - 35 + - - col1 * - - col1 FROM tab2 cor0
----
1796
2459
4529

query I rowsort
SELECT ALL - 43 * + 21 FROM tab2 AS cor0
----
-903
-903
-903

query I rowsort
SELECT ALL + + ( col2 ) * - + col0 FROM tab1 cor0
----
-4896
-5015
-6188

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 79 col1 FROM tab1, tab1 AS cor0
----
79

onlyif mysql # DIV for integer division: 
query I rowsort label-7857
SELECT DISTINCT col0 DIV 49 + + col1 FROM tab0
----
2
22
81

skipif mysql # not compatible
query I rowsort label-7857
SELECT DISTINCT col0 / 49 + + col1 FROM tab0
----
2
22
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7858
SELECT COUNT( * ) + + SUM( DISTINCT - col2 ) FROM tab2
----
-118

skipif mysql # not compatible
query I rowsort label-7858
SELECT COUNT ( * ) + + SUM ( DISTINCT - col2 ) FROM tab2
----
-118

onlyif mysql # DIV for integer division: 
query I rowsort label-7859
SELECT - col2 + - col2 DIV + col0 AS col0 FROM tab1
----
-59
-68
-97

skipif mysql # not compatible
query I rowsort label-7859
SELECT - col2 + - col2 / + col0 AS col0 FROM tab1
----
-59
-68
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7860
SELECT DISTINCT 42 + - - CAST( NULL AS SIGNED ) * - col1 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7860
SELECT DISTINCT 42 + - - CAST ( NULL AS INTEGER ) * - col1 AS col2 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7861
SELECT CAST( NULL AS SIGNED ) AS col2, 15 FROM tab2
----
NULL
15
NULL
15
NULL
15

skipif mysql # not compatible
query II rowsort label-7861
SELECT CAST ( NULL AS INTEGER ) AS col2, 15 FROM tab2
----
NULL
15
NULL
15
NULL
15

query I rowsort
SELECT col0 * + - 66 FROM tab0
----
-5742
-6402
-990

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + + col1 + + - col1 IN ( + + 58 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ( - 7 ) AS col2 FROM tab2
----
-7
-7
-7

query I rowsort
SELECT + + col2 * 2 * + col1 - + + col1 FROM tab2 AS cor0
----
2295
6083
7705

onlyif mysql # DIV for integer division: 
query I rowsort label-7866
SELECT ALL - + col0 DIV + - col2 + - 75 + col2 DIV - col1 - - + 30 FROM tab1 cor0
----
-45
-51
-55

skipif mysql # not compatible
query I rowsort label-7866
SELECT ALL - + col0 / + - col2 + - 75 + col2 / - col1 - - + 30 FROM tab1 cor0
----
-45
-51
-55

query I rowsort
SELECT + ( + - col0 ) - col1 * - 47 * - + 86 AS col0 FROM tab0
----
-327417
-4139
-84969

onlyif mysql # DIV for integer division: 
query I rowsort label-7868
SELECT - col2 DIV - col2 + + + col1 col2 FROM tab0
----
2
22
82

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7868
SELECT - col2 / - col2 + + + col1 col2 FROM tab0
----
2
22
82

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 57 - 8 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7870
SELECT col2 * - 93, col0 + - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-4371
NULL
-9207
NULL
-930
NULL

skipif mysql # not compatible
query II rowsort label-7870
SELECT col2 * - 93, col0 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-4371
NULL
-9207
NULL
-930
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 88 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7872
SELECT COUNT( DISTINCT CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7872
SELECT COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT + + ( - + col2 ) AS col2 FROM tab0 AS cor0
----
-10
-47
-99

query I rowsort
SELECT DISTINCT - + 37 AS col0 FROM tab2 AS cor0
----
-37

query I rowsort
SELECT col1 AS col0 FROM tab1 AS cor0 WHERE NOT - 89 + - + col1 / + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7876
SELECT ALL * FROM tab0 WHERE NOT - col1 IN ( + - col2 * + CAST( - - 2 AS SIGNED ) * col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7876
SELECT ALL * FROM tab0 WHERE NOT - col1 IN ( + - col2 * + CAST ( - - 2 AS INTEGER ) * col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL + col2 AS col2, col1 AS col1 FROM tab1
----
59
5
68
47
96
14

query I rowsort
SELECT col0 + 44 FROM tab1 WHERE NOT - col0 + + ( - + col2 ) IS NOT NULL
----

query I rowsort
SELECT + col0 * - col2 AS col2 FROM tab0 WHERE NOT + col1 <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7880
SELECT + MAX( - + col1 ) * + COUNT( * ) col1, 15 FROM tab2
----
-153
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7880
SELECT + MAX ( - + col1 ) * + COUNT ( * ) col1, 15 FROM tab2
----
-153
15

query II rowsort
SELECT DISTINCT + 93, 85 AS col2 FROM tab2
----
93
85

query I rowsort
SELECT DISTINCT - col1 * + ( + col0 ) / - 59 + - col0 AS col0 FROM tab1 WHERE ( + + col1 ) IN ( + 24 * col2 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7883
SELECT * FROM tab2 AS cor0 WHERE NOT NULL < + col2 * CAST( NULL AS DECIMAL ) * + col0 / + + col2 * col1 * 23 - - + col1 + + 31 / - col0
----

skipif mysql # not compatible
query III rowsort label-7883
SELECT * FROM tab2 AS cor0 WHERE NOT NULL < + col2 * CAST ( NULL AS REAL ) * + col0 / + + col2 * col1 * 23 - - + col1 + + 31 / - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7884
SELECT + + 0 * + col0 - - col1 * CAST( + - col1 AS SIGNED ) FROM tab2 AS cor0
----
-2601
-4489
-5929

skipif mysql # not compatible
query I rowsort label-7884
SELECT + + 0 * + col0 - - col1 * CAST ( + - col1 AS INTEGER ) FROM tab2 AS cor0
----
-2601
-4489
-5929

query I rowsort
SELECT - - ( - ( + - col1 ) ) AS col1 FROM tab0 AS cor0
----
1
21
81

onlyif mysql # DIV for integer division: 
query II rowsort label-7886
SELECT DISTINCT - + col1 DIV - col1 + + col1 + 66, col1 FROM tab2 AS cor0
----
118
51
134
67
144
77

skipif mysql # not compatible
query II rowsort label-7886
SELECT DISTINCT - + col1 / - col1 + + col1 + 66, col1 FROM tab2 AS cor0
----
118
51
134
67
144
77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7887
SELECT 71 AS col2, CAST( NULL AS SIGNED ) * col1 AS col0 FROM tab0 AS cor0
----
71
NULL
71
NULL
71
NULL

skipif mysql # not compatible
query II rowsort label-7887
SELECT 71 AS col2, CAST ( NULL AS INTEGER ) * col1 AS col0 FROM tab0 AS cor0
----
71
NULL
71
NULL
71
NULL

query I rowsort
SELECT ALL 36 * + + col2 AS col1 FROM tab0
----
1692
3564
360

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( col1 + - col0 / 54 * - col2 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + + col1 * - - col2 AS col0 FROM tab0 AS cor0
----
210
3807
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7891
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL IN ( ( - ( + CAST( NULL AS SIGNED ) ) ) * - 59 + + - 52 + col1 )
----

skipif mysql # not compatible
query III rowsort label-7891
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL IN ( ( - ( + CAST ( NULL AS INTEGER ) ) ) * - 59 + + - 52 + col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7892
SELECT col2 DIV 39 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-7892
SELECT col2 / 39 FROM tab2 AS cor0
----
0
1
1

query II rowsort
SELECT + col1 * + col2 * - - 92, + col1 AS col0 FROM tab1
----
123648
14
27140
5
294032
47

query III rowsort
SELECT * FROM tab2 WHERE NULL = + - 59 * col2 - + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7895
SELECT DISTINCT CAST( - 2 AS SIGNED ) + + ( - 24 ) + + ( - + 38 ) * + col2 AS col1 FROM tab1
----
-2268
-2610
-3674

skipif mysql # not compatible
query I rowsort label-7895
SELECT DISTINCT CAST ( - 2 AS INTEGER ) + + ( - 24 ) + + ( - + 38 ) * + col2 AS col1 FROM tab1
----
-2268
-2610
-3674

query I rowsort
SELECT - 39 + - + col2 AS col2 FROM tab1
----
-107
-135
-98

query I rowsort
SELECT ALL + col2 + 83 AS col0 FROM tab0
----
130
182
93

onlyif mysql # aggregate syntax: 
query I rowsort label-7898
SELECT ALL + 80 - COUNT( * ) * - COUNT( * ) FROM tab2
----
89

skipif mysql # not compatible
query I rowsort label-7898
SELECT ALL + 80 - COUNT ( * ) * - COUNT ( * ) FROM tab2
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7899
SELECT * FROM tab2 AS cor0 WHERE 61 IN ( + CAST( + - CAST( 57 AS SIGNED ) AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-7899
SELECT * FROM tab2 AS cor0 WHERE 61 IN ( + CAST ( + - CAST ( 57 AS INTEGER ) AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7900
SELECT ( - + CAST( - - col0 AS SIGNED ) ) * + col2 + + col1 FROM tab1 cor0
----
-4882
-5010
-6141

skipif mysql # not compatible
query I rowsort label-7900
SELECT ( - + CAST ( - - col0 AS INTEGER ) ) * + col2 + + col1 FROM tab1 cor0
----
-4882
-5010
-6141

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7901
SELECT + + 36 * 30 + - - CAST( NULL AS SIGNED ) + - - col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7901
SELECT + + 36 * 30 + - - CAST ( NULL AS INTEGER ) + - - col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7902
SELECT + col0 * + + 67 - - CAST( + 56 AS SIGNED ) + + col1 * 36 + + col2 AS col1 FROM tab0 AS cor0
----
4024
6651
6690

skipif mysql # not compatible
query I rowsort label-7902
SELECT + col0 * + + 67 - - CAST ( + 56 AS INTEGER ) + + col1 * 36 + + col2 AS col1 FROM tab0 AS cor0
----
4024
6651
6690

onlyif mysql # aggregate syntax: 
query I rowsort label-7903
SELECT COUNT( * ) col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7903
SELECT COUNT ( * ) col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7904
SELECT - MIN( - + CAST( 21 AS SIGNED ) ) FROM tab2 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-7904
SELECT - MIN ( - + CAST ( 21 AS INTEGER ) ) FROM tab2 AS cor0
----
21

query I rowsort
SELECT ALL ( - col2 ) * - 60 AS col0 FROM tab1 AS cor0
----
3540
4080
5760

onlyif mysql # aggregate syntax: 
query I rowsort label-7906
SELECT DISTINCT + + 41 * + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
369

skipif mysql # not compatible
query I rowsort label-7906
SELECT DISTINCT + + 41 * + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
369

query II rowsort
SELECT - col1 AS col2, col2 AS col0 FROM tab1 AS cor0
----
-14
96
-47
68
-5
59

query I rowsort
SELECT ( + - 83 ) FROM tab1 AS cor0
----
-83
-83
-83

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 * + + 23 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 BETWEEN 73 AND + 86 * + + 39 + - col2 + - col0
----
46
51
23
75
67
58

query I rowsort
SELECT col1 * + col2 + - col2 FROM tab2 WHERE NOT col2 + - + 70 * + col2 NOT BETWEEN + col0 AND col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7912
SELECT + COUNT( * ) DIV + - MIN( ALL + col0 ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7912
SELECT + COUNT ( * ) / + - MIN ( ALL + col0 ) AS col0 FROM tab2
----
0

query II rowsort
SELECT + 65 * + col1, col0 AS col0 FROM tab1 AS cor0
----
3055
91
325
85
910
51

onlyif mysql # aggregate syntax: 
query I rowsort label-7914
SELECT ALL + COUNT( - + 60 ) AS col0 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-7914
SELECT ALL + COUNT ( - + 60 ) AS col0 FROM tab1 cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-7915
SELECT COUNT( * ), - SUM( DISTINCT col2 ) AS col2 FROM tab2
----
3
-121

skipif mysql # not compatible
query II rowsort label-7915
SELECT COUNT ( * ), - SUM ( DISTINCT col2 ) AS col2 FROM tab2
----
3
-121

query I rowsort
SELECT ALL col1 + - 54 FROM tab1
----
-40
-49
-7

query I rowsort
SELECT ALL - col1 + - ( col0 ) AS col0 FROM tab2 cor0
----
-141
-142
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-7918
SELECT - ( - 89 ) + + COUNT( 36 ) FROM tab0 AS cor0
----
92

skipif mysql # not compatible
query I rowsort label-7918
SELECT - ( - 89 ) + + COUNT ( 36 ) FROM tab0 AS cor0
----
92

query I rowsort
SELECT ALL - ( - 17 ) FROM tab0 AS cor0
----
17
17
17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - col0 col2, col2 FROM tab0 cor0
----
15
47
87
10
97
99

query I rowsort
SELECT ALL + - col2 FROM tab2 AS cor0 WHERE NOT + 7 <= ( col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7922
SELECT + CAST( NULL AS SIGNED ) + - col2 + - col0 + + 99 * col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7922
SELECT + CAST ( NULL AS INTEGER ) + - col2 + - col0 + + 99 * col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 79 + + - col0 FROM tab1
----
-12
-6
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7924
SELECT - CAST( NULL AS SIGNED ) / 91 + - + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7924
SELECT - CAST ( NULL AS INTEGER ) / 91 + - + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7925
SELECT col2 DIV CAST( + col1 AS SIGNED ) * - 47 FROM tab1
----
-282
-47
-517

skipif mysql # not compatible
query I rowsort label-7925
SELECT col2 / CAST ( + col1 AS INTEGER ) * - 47 FROM tab1
----
-282
-47
-517

onlyif mysql # aggregate syntax: 
query I rowsort label-7926
SELECT + 16 * + ( + COUNT( + + col2 ) ) FROM tab1
----
48

skipif mysql # not compatible
query I rowsort label-7926
SELECT + 16 * + ( + COUNT ( + + col2 ) ) FROM tab1
----
48

query I rowsort
SELECT ALL - 52 + - col1 FROM tab2
----
-103
-119
-129

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7928
SELECT DISTINCT * FROM tab2 WHERE - col1 BETWEEN CAST( - col1 AS SIGNED ) * - + ( + col2 ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-7928
SELECT DISTINCT * FROM tab2 WHERE - col1 BETWEEN CAST ( - col1 AS INTEGER ) * - + ( + col2 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7929
SELECT DISTINCT COUNT( * ) + + 0 col1 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7929
SELECT DISTINCT COUNT ( * ) + + 0 col1 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7930
SELECT + 38 - + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-7930
SELECT + 38 - + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
35

query I rowsort
SELECT DISTINCT 47 - - + col2 * col1 AS col2 FROM tab1 AS cor0
----
1391
3243
342

query I rowsort
SELECT + 23 + ( col0 ) FROM tab2 AS cor0
----
69
87
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 col1 FROM tab1 WHERE NOT - - col0 BETWEEN + 81 AND - col1
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-7934
SELECT ( COUNT( * ) ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-7934
SELECT ( COUNT ( * ) ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query I rowsort
SELECT - col1 FROM tab1 WHERE NOT + - col0 IS NULL
----
-14
-47
-5

query I rowsort
SELECT ALL 46 AS col0 FROM tab0 WHERE NOT ( 63 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 74 * - - 17 FROM tab0
----
1258

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7938
SELECT ALL + col0 * - - CAST( + 37 AS SIGNED ) AS col0, + col2 FROM tab0
----
3219
10
3589
99
555
47

skipif mysql # not compatible
query II rowsort label-7938
SELECT ALL + col0 * - - CAST ( + 37 AS INTEGER ) AS col0, + col2 FROM tab0
----
3219
10
3589
99
555
47

onlyif mysql # DIV for integer division: 
query I rowsort label-7939
SELECT ALL + col2 DIV col1 col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7939
SELECT ALL + col2 / col1 col0 FROM tab2
----
0
0
0

query I rowsort
SELECT - + 99 AS col1 FROM tab0 cor0
----
-99
-99
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-7941
SELECT DISTINCT - MAX( DISTINCT + col1 ) FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-7941
SELECT DISTINCT - MAX ( DISTINCT + col1 ) FROM tab2 AS cor0
----
-77

query I rowsort
SELECT DISTINCT + 24 + - col2 * - col0 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( + col0 + - 94, col2 )
----

query I rowsort
SELECT DISTINCT + 21 * 82 AS col1 FROM tab1 AS cor0
----
1722

query I rowsort
SELECT 52 * + - 79 AS col2 FROM tab1
----
-4108
-4108
-4108

query I rowsort
SELECT ALL - 46 * 97 AS col2 FROM tab0
----
-4462
-4462
-4462

onlyif mysql # aggregate syntax: 
query I rowsort label-7946
SELECT MIN( col1 ) AS col0 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-7946
SELECT MIN ( col1 ) AS col0 FROM tab1
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-7947
SELECT DISTINCT - 13 DIV + col2 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7947
SELECT DISTINCT - 13 / + col2 AS col2 FROM tab2
----
0

query I rowsort
SELECT - col1 FROM tab0 WHERE NOT NULL NOT BETWEEN - col1 AND - col1
----

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 + + col2 * + 63 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7950
SELECT + MIN( ALL 56 ) FROM tab0
----
56

skipif mysql # not compatible
query I rowsort label-7950
SELECT + MIN ( ALL 56 ) FROM tab0
----
56

query III rowsort
SELECT * FROM tab0 WHERE NOT 17 + + - col2 IS NOT NULL
----

query II rowsort
SELECT ALL 72 AS col2, col0 AS col2 FROM tab1
----
72
51
72
85
72
91

query I rowsort
SELECT DISTINCT 88 + - - 17 AS col2 FROM tab1
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-7954
SELECT DISTINCT - SUM( - 22 ) FROM tab0
----
66

skipif mysql # not compatible
query I rowsort label-7954
SELECT DISTINCT - SUM ( - 22 ) FROM tab0
----
66

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - + ( + - col0 ) * ( + 16 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7956
SELECT - + MAX( - col0 ) AS col1 FROM tab1 cor0
----
51

skipif mysql # not compatible
query I rowsort label-7956
SELECT - + MAX ( - col0 ) AS col1 FROM tab1 cor0
----
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 77 + - + 29 * + - col0 col1 FROM tab1 AS cor0
----
1402
2388
2562

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 73 > col2 * col0 * - - col0 * - col0 + - col1 + + - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + col1 / + 17 + - 33 AS col2, + 28 AS col0 FROM tab0 WHERE col1 + 52 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7960
SELECT DISTINCT CAST( - AVG ( ALL 11 ) AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-11

skipif mysql # not compatible
query I rowsort label-7960
SELECT DISTINCT CAST ( - AVG ( ALL 11 ) AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-11

query I rowsort
SELECT + + col0 AS col1 FROM tab2 cor0 WHERE col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 70 * + col2 + - col1 + + col1 col2 FROM tab1 AS cor0
----
-4130
-4760
-6720

query I rowsort
SELECT ALL + 71 + + col1 + + 88 AS col0 FROM tab0 AS cor0
----
160
180
240

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col0 * - + col2 col0 FROM tab0 AS cor0
----
-10575
-75690
-931491

query I rowsort
SELECT col1 AS col1 FROM tab0 cor0 WHERE NULL BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7966
SELECT + + 62 DIV 86 * + COUNT( * ) DIV - 11 AS col2 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-7966
SELECT + + 62 / 86 * + COUNT ( * ) / - 11 AS col2 FROM tab1 cor0
----
0

query I rowsort
SELECT + 69 - - col1 - + col0 AS col0 FROM tab2 AS cor0
----
61
74
82

onlyif mysql # DIV for integer division: 
query I rowsort label-7968
SELECT DISTINCT - col2 + + 59 + - col2 DIV - + col2 FROM tab1
----
-36
-8
1

skipif mysql # not compatible
query I rowsort label-7968
SELECT DISTINCT - col2 + + 59 + - col2 / - + col2 FROM tab1
----
-36
-8
1

query I rowsort
SELECT ALL 61 * - - col1 FROM tab1
----
2867
305
854

query I rowsort
SELECT DISTINCT 79 + col1 FROM tab0
----
100
160
80

query I rowsort
SELECT - 16 * col2 + - + col2 FROM tab2
----
-391
-680
-986

query I rowsort
SELECT - col0 * + - col2 + col1 * col0 + + col2 AS col2 FROM tab1
----
10533
5499
5706

query I rowsort
SELECT ( - 36 ) + + AVG ( + col2 ) AS col2 FROM tab1 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT - 85 - - 53 FROM tab1
----
-32

query I rowsort
SELECT ALL col1 + - 79 * 30 + - ( + col2 ) + - + col2 + - + 98 + + col2 * col0 FROM tab2 AS cor0
----
-1405
1833
89

onlyif mysql # aggregate syntax: 
query I rowsort label-7976
SELECT DISTINCT + COUNT( * ) - 84 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-7976
SELECT DISTINCT + COUNT ( * ) - 84 FROM tab0 AS cor0
----
-81

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE - col0 + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7978
SELECT - COUNT( DISTINCT - col2 ) AS col1 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7978
SELECT - COUNT ( DISTINCT - col2 ) AS col1 FROM tab2 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7979
SELECT DISTINCT - COUNT( * ) * + - 75 AS col0 FROM tab1 cor0
----
225

skipif mysql # not compatible
query I rowsort label-7979
SELECT DISTINCT - COUNT ( * ) * + - 75 AS col0 FROM tab1 cor0
----
225

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL >= col0
----

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NOT + 17 BETWEEN NULL AND ( NULL ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7983
SELECT ALL col1 * col0 / - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7983
SELECT ALL col1 * col0 / - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7984
SELECT ALL COUNT( * ) * - - COUNT( * ) * - 48 col1 FROM tab2 cor0
----
-432

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7984
SELECT ALL COUNT ( * ) * - - COUNT ( * ) * - 48 col1 FROM tab2 cor0
----
-432

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7985
SELECT - CAST( + COUNT( + + 1 ) AS SIGNED ) * + + 77 - 65 AS col2 FROM tab1
----
-296

skipif mysql # not compatible
query I rowsort label-7985
SELECT - CAST ( + COUNT ( + + 1 ) AS INTEGER ) * + + 77 - 65 AS col2 FROM tab1
----
-296

query I rowsort
SELECT DISTINCT ( + col1 ) AS col0 FROM tab0 WHERE NOT + 29 * - 72 IS NULL
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7987
SELECT ALL - col1 * - - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7987
SELECT ALL - col1 * - - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * - 28 * - + col1 FROM tab0
----
12348
183708
28

onlyif mysql # aggregate syntax: 
query I rowsort label-7989
SELECT DISTINCT + + MIN( DISTINCT + 65 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
65

skipif mysql # not compatible
query I rowsort label-7989
SELECT DISTINCT + + MIN ( DISTINCT + 65 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7990
SELECT DISTINCT col0 * + col0 + - - col1 + - - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7990
SELECT DISTINCT col0 * + col0 + - - col1 + - - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT ( - 80 ) * - 32 + col1 + 64 AS col2 FROM tab0 AS cor0
----
2625
2645
2705

query I rowsort
SELECT - + 4 + - col0 AS col1 FROM tab2 AS cor0
----
-50
-68
-79

onlyif mysql # DIV for integer division: 
query II rowsort label-7993
SELECT ALL 51 AS col0, - col2 DIV - col0 FROM tab0 AS cor0
----
51
0
51
1
51
3

skipif mysql # not compatible
query II rowsort label-7993
SELECT ALL 51 AS col0, - col2 / - col0 FROM tab0 AS cor0
----
51
0
51
1
51
3

query II rowsort
SELECT ALL + col1 * - + 59 AS col2, + col1 * + 47 AS col0 FROM tab0 AS cor0
----
-1239
987
-4779
3807
-59
47

query I rowsort
SELECT ALL - + col2 FROM tab2 AS cor0 WHERE NOT NULL < ( NULL )
----

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 71, col1 col0 FROM tab2 AS cor0
----
71
51
71
67
71
77

query I rowsort
SELECT DISTINCT 63 + col0 AS col1 FROM tab1 AS cor0 WHERE NOT 4 / col0 >= - 14
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7999
SELECT + 38 * + - MAX( ALL + col0 ) + + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7999
SELECT + 38 * + - MAX ( ALL + col0 ) + + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8000
SELECT + 43 * COUNT( * ) AS col1 FROM tab0 AS cor0
----
129

skipif mysql # not compatible
query I rowsort label-8000
SELECT + 43 * COUNT ( * ) AS col1 FROM tab0 AS cor0
----
129

query III rowsort
SELECT * FROM tab0 WHERE 97 IS NULL
----

query II rowsort
SELECT DISTINCT 91, 39 AS col2 FROM tab0 WHERE NOT - col2 + 33 + - col0 * - col2 IS NOT NULL
----

query II rowsort
SELECT 53 * - col0 AS col0, col1 FROM tab1
----
-2703
14
-4505
5
-4823
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8004
SELECT CAST( NULL AS SIGNED ) * - + ( MAX( + - 69 ) ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8004
SELECT CAST ( NULL AS INTEGER ) * - + ( MAX ( + - 69 ) ) AS col0 FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE - col2 * + + col2 IS NULL
----

query I rowsort
SELECT DISTINCT - col0 * - + col0 - col0 - col1 FROM tab0
----
129
7461
9311

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8007
SELECT ALL col2 / - - 88 + + + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8007
SELECT ALL col2 / - - 88 + + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 AS col0 FROM tab1 AS cor0 WHERE NOT - col2 + - 91 * - 8 * col0 >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8009
SELECT DISTINCT + MIN( - - 68 ) FROM tab0
----
68

skipif mysql # not compatible
query I rowsort label-8009
SELECT DISTINCT + MIN ( - - 68 ) FROM tab0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-8010
SELECT + 56 * + - 65 * - - COUNT( * ) FROM tab2
----
-10920

skipif mysql # not compatible
query I rowsort label-8010
SELECT + 56 * + - 65 * - - COUNT ( * ) FROM tab2
----
-10920

query III rowsort
SELECT * FROM tab2 WHERE NOT - + col2 * - col0 * col2 + 44 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8012
SELECT ALL - 36 * + COUNT( * ) col1 FROM tab2 AS cor0
----
-108

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8012
SELECT ALL - 36 * + COUNT ( * ) col1 FROM tab2 AS cor0
----
-108

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( col1 * 79 * + - col0 + - col1 ) > NULL
----

query I rowsort
SELECT ALL - 97 * - + 46 * + 37 * + col2 FROM tab1 AS cor0
----
11226392
15849024
9740546

query I rowsort
SELECT - + col2 AS col2 FROM tab2 AS cor0 WHERE NOT + col0 * + col2 * + - col2 IS NOT NULL
----

query II rowsort
SELECT + 83 AS col1, col0 * - - col2 * - + col1 * - col1 + + - col1 * + 52 + 27 FROM tab2 AS cor0
----
83
15174263
83
19523693
83
2749233

onlyif mysql # aggregate syntax: 
query I rowsort label-8017
SELECT + + SUM( ALL + - col1 ) AS col2 FROM tab0 WHERE + - ( + col2 ) <> col0
----
-103

skipif mysql # not compatible
query I rowsort label-8017
SELECT + + SUM ( ALL + - col1 ) AS col2 FROM tab0 WHERE + - ( + col2 ) <> col0
----
-103

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 39 col1 FROM tab2 WHERE NOT + 4 * + col1 = + col1 * col2 * + 26
----
-39

query I rowsort
SELECT col1 * - + col0 * + 94 FROM tab0
----
-114210
-171738
-9118

onlyif mysql # aggregate syntax: 
query I rowsort label-8020
SELECT DISTINCT 8 + - MAX( - 76 ) AS col1 FROM tab2
----
84

skipif mysql # not compatible
query I rowsort label-8020
SELECT DISTINCT 8 + - MAX ( - 76 ) AS col1 FROM tab2
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-8021
SELECT ALL - - ( + - 64 ) * COUNT( * ) + - - ( 88 ) + + COUNT( * ) FROM tab2 AS cor0
----
-101

skipif mysql # not compatible
query I rowsort label-8021
SELECT ALL - - ( + - 64 ) * COUNT ( * ) + - - ( 88 ) + + COUNT ( * ) FROM tab2 AS cor0
----
-101

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col2 * + + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8023
SELECT DISTINCT + CAST( NULL AS SIGNED ) * SUM( ALL col2 ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8023
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * SUM ( ALL col2 ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT 94 + + col0 + - - 81 AS col2 FROM tab1 AS cor0
----
226
260
266

query I rowsort
SELECT ALL 44 AS col1 FROM tab0 AS cor0
----
44
44
44

onlyif mysql # aggregate syntax: 
query I rowsort label-8026
SELECT - 79 + COUNT( * ) FROM tab2 AS cor0
----
-76

skipif mysql # not compatible
query I rowsort label-8026
SELECT - 79 + COUNT ( * ) FROM tab2 AS cor0
----
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8027
SELECT ALL 62 + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8027
SELECT ALL 62 + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT + + 18 + - col0 * - + col2 AS col2 FROM tab1 AS cor0
----
4914
5033
6206

onlyif mysql # aggregate syntax: 
query I rowsort label-8029
SELECT + 63 * ( - COUNT( * ) ) + + - 34 AS col0 FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-8029
SELECT + 63 * ( - COUNT ( * ) ) + + - 34 AS col0 FROM tab1
----
-223

query I rowsort
SELECT 50 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8031
SELECT DISTINCT col1 / - - CAST( NULL AS SIGNED ) * + - 38 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8031
SELECT DISTINCT col1 / - - CAST ( NULL AS INTEGER ) * + - 38 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8032
SELECT ALL - 31 - - + MAX( DISTINCT + col0 ) AS col0 FROM tab2 AS cor0
----
44

skipif mysql # not compatible
query I rowsort label-8032
SELECT ALL - 31 - - + MAX ( DISTINCT + col0 ) AS col0 FROM tab2 AS cor0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-8033
SELECT - COUNT( * ) * - + 22 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-8033
SELECT - COUNT ( * ) * - + 22 FROM tab1 AS cor0
----
66

query I rowsort
SELECT + 48 - - - 25 FROM tab2 AS cor0
----
23
23
23

query I rowsort
SELECT + 15 - col2 FROM tab1 cor0
----
-44
-53
-81

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8036
SELECT ALL + col1 * + 50 * 95 AS col1 FROM tab1 cor0 WHERE NULL <> - 10 * - CAST( - - 59 AS DECIMAL ) * - col2 + - 88 + - - 16 + + - col0 * - + col0
----

skipif mysql # not compatible
query I rowsort label-8036
SELECT ALL + col1 * + 50 * 95 AS col1 FROM tab1 cor0 WHERE NULL <> - 10 * - CAST ( - - 59 AS REAL ) * - col2 + - 88 + - - 16 + + - col0 * - + col0
----

query I rowsort
SELECT + ( col1 ) - - 93 FROM tab1 AS cor0
----
107
140
98

query I rowsort
SELECT DISTINCT - 23 - col0 + + col1 FROM tab1 AS cor0
----
-103
-60
-67

query I rowsort
SELECT ALL + - 30 FROM tab0 cor0
----
-30
-30
-30

query II rowsort
SELECT + col2 - col1 * 2 AS col1, - 13 * - ( + col1 ) FROM tab2 AS cor0
----
-114
1001
-76
871
-79
663

query I rowsort
SELECT + 4 - + 24 AS col1 FROM tab0 AS cor0
----
-20
-20
-20

query II rowsort
SELECT ALL + col2 AS col1, + col2 FROM tab1
----
59
59
68
68
96
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8043
SELECT col1 * - - CAST( NULL AS SIGNED ) * - col1 * col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8043
SELECT col1 * - - CAST ( NULL AS INTEGER ) * - col1 * col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8044
SELECT DISTINCT + col0, 90 DIV - + 14 FROM tab2
----
46
-6
64
-6
75
-6

skipif mysql # not compatible
query II rowsort label-8044
SELECT DISTINCT + col0, 90 / - + 14 FROM tab2
----
46
-6
64
-6
75
-6

query III rowsort
SELECT ALL * FROM tab1 WHERE col0 = - - ( - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8046
SELECT DISTINCT + MIN( + + col2 ) col1 FROM tab0 AS cor0 WHERE - col0 <> NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8046
SELECT DISTINCT + MIN ( + + col2 ) col1 FROM tab0 AS cor0 WHERE - col0 <> NULL
----
NULL

query I rowsort
SELECT ( + 82 ) * + 58 FROM tab0 AS cor0
----
4756
4756
4756

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN + col1 AND NULL
----

query I rowsort
SELECT + col0 * 77 FROM tab1
----
3927
6545
7007

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + - 79 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8051
SELECT + col0 * - - CAST( NULL AS SIGNED ) * - - ( + col2 ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8051
SELECT + col0 * - - CAST ( NULL AS INTEGER ) * - - ( + col2 ) AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + 36 AS col0 FROM tab1 AS cor0
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8053
SELECT ALL - + CAST( col1 AS SIGNED ) * + col2 * - col2 * col2 FROM tab1 AS cor0
----
1026895
12386304
14778304

skipif mysql # not compatible
query I rowsort label-8053
SELECT ALL - + CAST ( col1 AS INTEGER ) * + col2 * - col2 * col2 FROM tab1 AS cor0
----
1026895
12386304
14778304

onlyif mysql # aggregate syntax: 
query I rowsort label-8054
SELECT ALL SUM( DISTINCT - - col0 ) AS col0 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-8054
SELECT ALL SUM ( DISTINCT - - col0 ) AS col0 FROM tab0 AS cor0
----
199

onlyif mysql # DIV for integer division: 
query I rowsort label-8055
SELECT col0 + col0 + - 48 DIV 30 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
127
149
91

skipif mysql # not compatible
query I rowsort label-8055
SELECT col0 + col0 + - 48 / 30 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
127
149
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8056
SELECT DISTINCT + 2 + ( SUM( - 97 ) ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
-289

skipif mysql # not compatible
query I rowsort label-8056
SELECT DISTINCT + 2 + ( SUM ( - 97 ) ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
-289

query I rowsort
SELECT + 77 * 33 + col2 * - - 61 AS col0 FROM tab1
----
6140
6689
8397

onlyif mysql # aggregate syntax: 
query I rowsort label-8058
SELECT 21 + ( COUNT( ALL - col0 ) ) AS col0 FROM tab0
----
24

skipif mysql # not compatible
query I rowsort label-8058
SELECT 21 + ( COUNT ( ALL - col0 ) ) AS col0 FROM tab0
----
24

query I rowsort
SELECT 62 + - ( ( 38 ) ) FROM tab0
----
24
24
24

query I rowsort
SELECT col2 * - col0 + col0 FROM tab2 WHERE NULL BETWEEN - + col0 * col0 AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 36 <> - col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8062
SELECT - 87 * - - MAX( + ( - 0 ) ) DIV SUM( + col2 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8062
SELECT - 87 * - - MAX ( + ( - 0 ) ) / SUM ( + col2 ) FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 52 * - col0 - - 5 - + - col2 AS col0, col1 col0 FROM tab2 AS cor0
----
-2364
51
-3283
77
-3837
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - col2 col2 FROM tab2 cor0
----
-1173
-3080
-3886

query I rowsort
SELECT DISTINCT - col2 * - 93 FROM tab1 AS cor0
----
5487
6324
8928

query I rowsort
SELECT 8 - + 4 * - 36 FROM tab0
----
152
152
152

onlyif mysql # aggregate syntax: 
query I rowsort label-8067
SELECT - ( - - MAX( DISTINCT - 17 ) ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NOT NULL
----
17

skipif mysql # not compatible
query I rowsort label-8067
SELECT - ( - - MAX ( DISTINCT - 17 ) ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NOT NULL
----
17

query I rowsort
SELECT ALL + col2 + + 69 AS col0 FROM tab1 AS cor0
----
128
137
165

query I rowsort
SELECT col0 + ( + - 51 ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-36
36
46

query I rowsort
SELECT DISTINCT + 74 - col0 FROM tab0 cor0
----
-13
-23
59

query II rowsort
SELECT ALL + col1 - col2, col2 FROM tab0 AS cor0
----
-98
99
11
10
34
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8072
SELECT DISTINCT 92 - ( MIN( + col1 ) ) AS col0 FROM tab2 AS cor0
----
41

skipif mysql # not compatible
query I rowsort label-8072
SELECT DISTINCT 92 - ( MIN ( + col1 ) ) AS col0 FROM tab2 AS cor0
----
41

query I rowsort
SELECT + - 1 * + 36 FROM tab0 AS cor0
----
-36
-36
-36

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 NOT BETWEEN + + col1 AND + col2 + col0
----
97
1
99

query I rowsort
SELECT + 12 * col1 FROM tab1
----
168
564
60

onlyif mysql # DIV for integer division: 
query I rowsort label-8076
SELECT col2 DIV + - col1 col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8076
SELECT col2 / + - col1 col1 FROM tab2
----
0
0
0

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT col2 / col2 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8078
SELECT SUM( + CAST( col1 AS SIGNED ) ) AS col2, COUNT( * ) + 60 * COUNT( * ) FROM tab2
----
195
183

skipif mysql # not compatible
query II rowsort label-8078
SELECT SUM ( + CAST ( col1 AS INTEGER ) ) AS col2, COUNT ( * ) + 60 * COUNT ( * ) FROM tab2
----
195
183

onlyif mysql # aggregate syntax: 
query I rowsort label-8079
SELECT - SUM( col2 ) * + 0 * - 15 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8079
SELECT - SUM ( col2 ) * + 0 * - 15 AS col2 FROM tab2
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT 64 * - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - ( - 54 ) AS col0 FROM tab0
----
54

query I rowsort
SELECT ALL - col2 FROM tab2 WHERE NOT ( NOT ( ( NOT + col0 IS NOT NULL ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8083
SELECT DISTINCT - MAX( ALL - col0 ) FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-8083
SELECT DISTINCT - MAX ( ALL - col0 ) FROM tab2 AS cor0
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8084
SELECT ALL + ( + CAST( - col1 AS SIGNED ) ) FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-8084
SELECT ALL + ( + CAST ( - col1 AS INTEGER ) ) FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8085
SELECT ALL COUNT( ALL CAST( NULL AS DECIMAL ) ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8085
SELECT ALL COUNT ( ALL CAST ( NULL AS REAL ) ) FROM tab1 AS cor0
----
0

query II rowsort
SELECT DISTINCT col2, 38 AS col2 FROM tab2
----
23
38
40
38
58
38

onlyif mysql # aggregate syntax: 
query I rowsort label-8087
SELECT + MIN( ALL - 6 ) + - + 50 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-56

skipif mysql # not compatible
query I rowsort label-8087
SELECT + MIN ( ALL - 6 ) + - + 50 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-56

query I rowsort
SELECT col1 - + 28 AS col0 FROM tab0 WHERE NOT NULL IN ( ( - + 50 ), - col1, + 1, - + col2, - 37 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT IN ( - - ( 1 ), + col2 * col0 * + col2 )
----

query I rowsort
SELECT + - 50 AS col2 FROM tab2 AS cor0
----
-50
-50
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-8091
SELECT SUM( + 44 ) FROM tab2 AS cor0
----
132

skipif mysql # not compatible
query I rowsort label-8091
SELECT SUM ( + 44 ) FROM tab2 AS cor0
----
132

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 28 col1 FROM tab2 AS cor0
----
-28
-28
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-8093
SELECT DISTINCT - - SUM( ALL 67 ) + + 75 FROM tab2 AS cor0
----
276

skipif mysql # not compatible
query I rowsort label-8093
SELECT DISTINCT - - SUM ( ALL 67 ) + + 75 FROM tab2 AS cor0
----
276

onlyif mysql # aggregate syntax: 
query I rowsort label-8094
SELECT ALL ( - 36 ) + + + MIN( DISTINCT col1 ) FROM tab1
----
-31

skipif mysql # not compatible
query I rowsort label-8094
SELECT ALL ( - 36 ) + + + MIN ( DISTINCT col1 ) FROM tab1
----
-31

query I rowsort
SELECT DISTINCT + col1 + - - col0 + col0 AS col0 FROM tab0
----
111
195

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8096
SELECT DISTINCT ( + col2 ) * CAST( col1 AS SIGNED ) + + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8096
SELECT DISTINCT ( + col2 ) * CAST ( col1 AS INTEGER ) + + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT col1 + - 64 + col2 AS col2 FROM tab2
----
10
53
61

query III rowsort
SELECT ALL * FROM tab1 WHERE + col2 - + col1 <= - col0 + ( col0 ) OR NULL IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8099
SELECT - + COUNT( * ) FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-8099
SELECT - + COUNT ( * ) FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8100
SELECT ALL + CAST( - - 31 AS SIGNED ) FROM tab2 AS cor0
----
31
31
31

skipif mysql # not compatible
query I rowsort label-8100
SELECT ALL + CAST ( - - 31 AS INTEGER ) FROM tab2 AS cor0
----
31
31
31

query I rowsort
SELECT col0 - col1 + - col1 - + + col1 * - col0 * - col0 AS col1 FROM tab2 cor0 WHERE NULL < NULL
----

query I rowsort
SELECT 92 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

query III rowsort
SELECT * FROM tab1 WHERE + + ( 99 ) > col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - 78 * + col2 + - col1 * ( + + 1 ) AS col0 FROM tab2 cor0
----
-1845
-3197
-4591

onlyif mysql # DIV for integer division: 
query I rowsort label-8105
SELECT + col1 * col0 * + 25 - + - 2 DIV col0 AS col1 FROM tab1 AS cor0
----
10625
106925
17850

skipif mysql # not compatible
query I rowsort label-8105
SELECT + col1 * col0 * + 25 - + - 2 / col0 AS col1 FROM tab1 AS cor0
----
10625
106925
17850

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 / + + 48 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8107
SELECT + + MIN( ALL - - 26 ) FROM tab0 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-8107
SELECT + + MIN ( ALL - - 26 ) FROM tab0 AS cor0
----
26

onlyif mysql # aggregate syntax: 
query II rowsort label-8108
SELECT - + SUM( col0 ) * + - 14 AS col0, - 48 FROM tab2 AS cor0
----
2590
-48

skipif mysql # not compatible
query II rowsort label-8108
SELECT - + SUM ( col0 ) * + - 14 AS col0, - 48 FROM tab2 AS cor0
----
2590
-48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1, col0 col0 FROM tab0 AS cor0
----
-1
97
-21
87
-81
15

onlyif mysql # DIV for integer division: 
query I rowsort label-8110
SELECT - col1 * 19 * + 75 + - col1 DIV + - col2 AS col2 FROM tab1 AS cor0
----
-19950
-66975
-7125

skipif mysql # not compatible
query I rowsort label-8110
SELECT - col1 * 19 * + 75 + - col1 / + - col2 AS col2 FROM tab1 AS cor0
----
-19950
-66975
-7125

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + 47 col2, + col1 FROM tab2 AS cor0
----
-47
51
-47
67
-47
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8112
SELECT - MAX( ALL + + 59 ) AS col1 FROM tab0 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-8112
SELECT - MAX ( ALL + + 59 ) AS col1 FROM tab0 AS cor0
----
-59

query I rowsort
SELECT ALL + col1 * col2 - - col2 FROM tab2 AS cor0
----
1196
3120
3944

query II rowsort
SELECT ALL - col0, col2 + + 82 + + col2 FROM tab2 AS cor0 WHERE NULL < col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8115
SELECT - - col1 * + col0 * 73 AS col0, CAST( - + col1 AS SIGNED ) * - - 22 FROM tab0 AS cor0
----
133371
-462
7081
-22
88695
-1782

skipif mysql # not compatible
query II rowsort label-8115
SELECT - - col1 * + col0 * 73 AS col0, CAST ( - + col1 AS INTEGER ) * - - 22 FROM tab0 AS cor0
----
133371
-462
7081
-22
88695
-1782

query I rowsort
SELECT ALL + col1 * + ( + col1 ) FROM tab1 AS cor0
----
196
2209
25

onlyif mysql # aggregate syntax: 
query I rowsort label-8117
SELECT DISTINCT MAX( + 31 ) * COUNT( * ) FROM tab0
----
93

skipif mysql # not compatible
query I rowsort label-8117
SELECT DISTINCT MAX ( + 31 ) * COUNT ( * ) FROM tab0
----
93

query I rowsort
SELECT ALL 76 * + col0 FROM tab0
----
1140
6612
7372

query I rowsort
SELECT + 95 * 93 FROM tab0
----
8835
8835
8835

onlyif mysql # aggregate syntax: 
query I rowsort label-8120
SELECT DISTINCT + MIN( 99 ) FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-8120
SELECT DISTINCT + MIN ( 99 ) FROM tab0
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8121
SELECT ALL CAST( - - col0 AS SIGNED ) * - ( 5 ) * - 0 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8121
SELECT ALL CAST ( - - col0 AS INTEGER ) * - ( 5 ) * - 0 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col1 * - 13 - - + col2 AS col0 FROM tab1 AS cor0
----
124
278
679

query I rowsort
SELECT ALL - + 38 FROM tab0 cor0
----
-38
-38
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-8124
SELECT ALL + MIN( ALL - - col0 ) FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-8124
SELECT ALL + MIN ( ALL - - col0 ) FROM tab0
----
15

query I rowsort
SELECT ALL col2 FROM tab1 WHERE + col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8126
SELECT - CAST( - 93 AS SIGNED ) AS col1 FROM tab0
----
93
93
93

skipif mysql # not compatible
query I rowsort label-8126
SELECT - CAST ( - 93 AS INTEGER ) AS col1 FROM tab0
----
93
93
93

onlyif mysql # aggregate syntax: 
query I rowsort label-8127
SELECT SUM( ALL + col2 ) FROM tab0 WHERE + + col0 BETWEEN NULL AND + col0 + - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8127
SELECT SUM ( ALL + col2 ) FROM tab0 WHERE + + col0 BETWEEN NULL AND + col0 + - col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8128
SELECT COUNT( * ) * 20 FROM tab2
----
60

skipif mysql # not compatible
query I rowsort label-8128
SELECT COUNT ( * ) * 20 FROM tab2
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-8129
SELECT + MAX( 36 ) FROM tab0
----
36

skipif mysql # not compatible
query I rowsort label-8129
SELECT + MAX ( 36 ) FROM tab0
----
36

query I rowsort
SELECT - ( + 90 ) FROM tab1
----
-90
-90
-90

query I rowsort
SELECT ALL - col0 + + + 30 + col2 FROM tab2
----
13
6
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col0 FROM tab1 AS cor0 WHERE 69 IS NULL
----

query I rowsort
SELECT ALL 6 - 45 + col0 * + 58 + 82 * 7 FROM tab0 AS cor0
----
1405
5581
6161

onlyif mysql # aggregate syntax: 
query I rowsort label-8134
SELECT MIN( DISTINCT + col0 ) - + 81 AS col2 FROM tab0 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-8134
SELECT MIN ( DISTINCT + col0 ) - + 81 AS col2 FROM tab0 AS cor0
----
-66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 89 - 94 col1 FROM tab0 AS cor0
----
-5
-5
-5

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND 32
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8137
SELECT ALL - + MAX( - col0 ) AS col1 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-8137
SELECT ALL - + MAX ( - col0 ) AS col1 FROM tab2 AS cor0
----
46

onlyif mysql # aggregate syntax: 
query II rowsort label-8138
SELECT - 99 + 24 AS col2, SUM( - + 64 ) FROM tab0
----
-75
-192

skipif mysql # not compatible
query II rowsort label-8138
SELECT - 99 + 24 AS col2, SUM ( - + 64 ) FROM tab0
----
-75
-192

query III rowsort
SELECT * FROM tab0 WHERE NOT - + col2 + col0 + - col1 IS NOT NULL
----

query I rowsort
SELECT ALL - 63 FROM tab0 AS cor0 WHERE NOT + col0 <> 80 - 88
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8141
SELECT DISTINCT + CAST( + - col2 AS SIGNED ) AS col1 FROM tab2 cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-8141
SELECT DISTINCT + CAST ( + - col2 AS INTEGER ) AS col1 FROM tab2 cor0
----
-23
-40
-58

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8142
SELECT + COUNT( * ) * CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8142
SELECT + COUNT ( * ) * CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col2 * - 86 FROM tab0 AS cor0
----
4042
8514
860

query I rowsort
SELECT - col2 * + col1 * 41 AS col0 FROM tab1 AS cor0
----
-12095
-131036
-55104

query II rowsort
SELECT ALL col1 * - - 13 * + - 99, col2 AS col0 FROM tab2
----
-65637
23
-86229
58
-99099
40

onlyif mysql # aggregate syntax: 
query I rowsort label-8146
SELECT ALL - SUM( - 13 ) AS col1 FROM tab1
----
39

skipif mysql # not compatible
query I rowsort label-8146
SELECT ALL - SUM ( - 13 ) AS col1 FROM tab1
----
39

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + + 50 + + 80 + + - col0 + + ( + col1 ) <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 col0, + 0 + - col1 FROM tab0
----
15
-81
87
-21
97
-1

query II rowsort
SELECT - col2, 8 AS col2 FROM tab2
----
-23
8
-40
8
-58
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8150
SELECT ALL MAX( + CAST( + col0 AS SIGNED ) ) * + - 23 FROM tab0 cor0
----
-2231

skipif mysql # not compatible
query I rowsort label-8150
SELECT ALL MAX ( + CAST ( + col0 AS INTEGER ) ) * + - 23 FROM tab0 cor0
----
-2231

query I rowsort
SELECT col1 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IN ( - 4, - col0 * ( + col0 ) * col0 - - 25, col0 - - 31 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8152
SELECT + MIN( DISTINCT + col2 ) + 32 AS col2 FROM tab0 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-8152
SELECT + MIN ( DISTINCT + col2 ) + 32 AS col2 FROM tab0 AS cor0
----
42

query II rowsort
SELECT DISTINCT col0 AS col0, + col0 AS col0 FROM tab1 WHERE NOT col0 >= NULL
----

query I rowsort
SELECT DISTINCT + col0 + + 22 FROM tab2
----
68
86
97

query I rowsort
SELECT ALL - + col2 * col0 + + - col2 AS col2 FROM tab1 AS cor0
----
-4992
-5074
-6256

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8156
SELECT - COUNT( * ) * 39 - + MIN( DISTINCT CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8156
SELECT - COUNT ( * ) * 39 - + MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 col0 FROM tab0 AS cor0 WHERE NULL >= ( NULL )
----

query II rowsort
SELECT ALL - 23 * + 64 AS col0, + col1 + ( - col1 ) AS col1 FROM tab0 AS cor0
----
-1472
0
-1472
0
-1472
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8159
SELECT ALL - - 8 + - 0 DIV - - 33 AS col0 FROM tab1 AS cor0
----
8
8
8

skipif mysql # not compatible
query I rowsort label-8159
SELECT ALL - - 8 + - 0 / - - 33 AS col0 FROM tab1 AS cor0
----
8
8
8

query I rowsort
SELECT 75 - + - 95 - - col1 * - + col0 + col2 * + col0 FROM tab2
----
-1118
-2198
-505

onlyif mysql # aggregate syntax: 
query I rowsort label-8161
SELECT COUNT( * ) - + COUNT( * ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8161
SELECT COUNT ( * ) - + COUNT ( * ) AS col2 FROM tab2
----
0

query I rowsort
SELECT DISTINCT col2 - - 90 FROM tab2
----
113
130
148

query I rowsort
SELECT DISTINCT col2 - + - col0 + - - 9 AS col1 FROM tab0
----
106
205
71

onlyif mysql # aggregate syntax: 
query I rowsort label-8164
SELECT - SUM( col0 ) + + 73 AS col2 FROM tab1 AS cor0
----
-154

skipif mysql # not compatible
query I rowsort label-8164
SELECT - SUM ( col0 ) + + 73 AS col2 FROM tab1 AS cor0
----
-154

query I rowsort
SELECT - col1 + - col2 + + - col2 + + + col2 * - 16 AS col1 FROM tab2 AS cor0
----
-1111
-465
-797

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8166
SELECT DISTINCT + COUNT( ALL CAST( NULL AS SIGNED ) ) * ( - ( - 47 ) ) AS col2 FROM tab0 cor0 WHERE NOT + 5 - - - col2 <= 94
----
0

skipif mysql # not compatible
query I rowsort label-8166
SELECT DISTINCT + COUNT ( ALL CAST ( NULL AS INTEGER ) ) * ( - ( - 47 ) ) AS col2 FROM tab0 cor0 WHERE NOT + 5 - - - col2 <= 94
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8167
SELECT ALL + MIN( + + 44 ) AS col2 FROM tab0
----
44

skipif mysql # not compatible
query I rowsort label-8167
SELECT ALL + MIN ( + + 44 ) AS col2 FROM tab0
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8168
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT IN ( + 36, col0 / - - 30 * col2 * + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) * + 96 + 95 )
----

skipif mysql # not compatible
query III rowsort label-8168
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT IN ( + 36, col0 / - - 30 * col2 * + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) * + 96 + 95 )
----

query II rowsort
SELECT + 35, col1 AS col1 FROM tab1 AS cor0
----
35
14
35
47
35
5

query II rowsort
SELECT ALL + - col1 AS col0, + 97 AS col1 FROM tab0 AS cor0
----
-1
97
-21
97
-81
97

query I rowsort
SELECT ALL - col0 * - ( + + col2 ) AS col2 FROM tab2 AS cor0
----
1058
2560
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-8172
SELECT ALL ( - COUNT( * ) ) * + - 96 AS col1 FROM tab2 AS cor0
----
288

skipif mysql # not compatible
query I rowsort label-8172
SELECT ALL ( - COUNT ( * ) ) * + - 96 AS col1 FROM tab2 AS cor0
----
288

onlyif mysql # aggregate syntax: 
query I rowsort label-8173
SELECT ALL + ( - + MAX( + col1 ) ) FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-8173
SELECT ALL + ( - + MAX ( + col1 ) ) FROM tab1
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8174
SELECT DISTINCT + ( + CAST( - 36 AS SIGNED ) ) AS col0 FROM tab0
----
-36

skipif mysql # not compatible
query I rowsort label-8174
SELECT DISTINCT + ( + CAST ( - 36 AS INTEGER ) ) AS col0 FROM tab0
----
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-8175
SELECT ALL + 19 DIV - + 34 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8175
SELECT ALL + 19 / - + 34 FROM tab1 AS cor0
----
0
0
0

query II rowsort
SELECT DISTINCT - + 66 * - col1 AS col1, - col0 + col2 FROM tab1 AS cor0
----
3102
-23
330
-26
924
45

query I rowsort
SELECT ALL 18 FROM tab0 AS cor0 WHERE ( + col2 ) NOT BETWEEN - col0 / + col1 * ( col0 ) AND - col0
----
18
18
18

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8179
SELECT ALL + ( - COUNT( * ) ) * - COUNT( * ) AS col1 FROM tab0 cor0
----
9

skipif mysql # not compatible
query I rowsort label-8179
SELECT ALL + ( - COUNT ( * ) ) * - COUNT ( * ) AS col1 FROM tab0 cor0
----
9

query II rowsort
SELECT DISTINCT + col2 + - + 76 AS col1, 99 AS col2 FROM tab1 cor0
----
-17
99
-8
99
20
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8181
SELECT - COUNT( + 83 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-8181
SELECT - COUNT ( + 83 ) FROM tab0
----
-3

query I rowsort
SELECT ALL - 48 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 31c94943c073954e4ca20b170ab61f8c

query I rowsort
SELECT DISTINCT - 66 * + col1 AS col0 FROM tab1
----
-3102
-330
-924

query I rowsort
SELECT - 36 + + 82 AS col0 FROM tab1 cor0
----
46
46
46

query I rowsort
SELECT ALL col0 * + + col0 + + + col2 + + 39 FROM tab1 AS cor0
----
2736
7323
8388

onlyif mysql # aggregate syntax: 
query I rowsort label-8186
SELECT + + COUNT( * ) + + 47 FROM tab0 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-8186
SELECT + + COUNT ( * ) + + 47 FROM tab0 AS cor0
----
50

onlyif mysql # DIV for integer division: 
query I rowsort label-8187
SELECT ALL - - col0 DIV + 19 AS col2 FROM tab1 AS cor0
----
2
4
4

skipif mysql # not compatible
query I rowsort label-8187
SELECT ALL - - col0 / + 19 AS col2 FROM tab1 AS cor0
----
2
4
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8188
SELECT ALL - SUM( 88 ) AS col0 FROM tab0 AS cor0
----
-264

skipif mysql # not compatible
query I rowsort label-8188
SELECT ALL - SUM ( 88 ) AS col0 FROM tab0 AS cor0
----
-264

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8189
SELECT ALL + 47 + 14 * + CAST( NULL AS SIGNED ) + + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8189
SELECT ALL + 47 + 14 * + CAST ( NULL AS INTEGER ) + + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8190
SELECT 44 DIV + + col2 FROM tab0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-8190
SELECT 44 / + + col2 FROM tab0
----
0
0
4

query I rowsort
SELECT ALL + col1 + 54 * col2 FROM tab0
----
2619
5347
561

onlyif mysql # DIV for integer division: 
query I rowsort label-8192
SELECT 85 DIV - col1 AS col2 FROM tab0
----
-1
-4
-85

skipif mysql # not compatible
query I rowsort label-8192
SELECT 85 / - col1 AS col2 FROM tab0
----
-1
-4
-85

query I rowsort
SELECT + col1 - + col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 BETWEEN - col1 AND NULL
----
75
67
58

query I rowsort
SELECT + 0 AS col1 FROM tab0 cor0 WHERE NOT col0 IS NOT NULL
----

query II rowsort
SELECT + + 77, col2 AS col2 FROM tab1 AS cor0
----
77
59
77
68
77
96

query I rowsort
SELECT col2 AS col2 FROM tab0 AS cor0 WHERE NOT + col1 IN ( col1, - 60 * 27 )
----

query I rowsort
SELECT + + 29 AS col0 FROM tab1 cor0
----
29
29
29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 col2, col1 AS col2 FROM tab0
----
-15
81
-87
21
-97
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8200
SELECT ALL - SUM( col2 ) FROM tab0 WHERE NOT col0 - col1 + col2 - + + ( - col1 ) IS NULL
----
-156

skipif mysql # not compatible
query I rowsort label-8200
SELECT ALL - SUM ( col2 ) FROM tab0 WHERE NOT col0 - col1 + col2 - + + ( - col1 ) IS NULL
----
-156

query II rowsort
SELECT col0 * + col1, + col1 * + col1 AS col0 FROM tab1
----
425
25
4277
2209
714
196

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 95 * + col2 + - ( - + col0 ) IS NULL
----

query II rowsort
SELECT DISTINCT col0, 18 AS col1 FROM tab2
----
46
18
64
18
75
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * + + col0 * - col1 col2 FROM tab0
----
18270
57105
9603

onlyif mysql # DIV for integer division: 
query I rowsort label-8205
SELECT + + col1 DIV - 34 AS col1 FROM tab0 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-8205
SELECT + + col1 / - 34 AS col1 FROM tab0 AS cor0
----
-2
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8206
SELECT ALL + SUM( ALL - col0 ) AS col1 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-8206
SELECT ALL + SUM ( ALL - col0 ) AS col1 FROM tab2 AS cor0
----
-185

onlyif mysql # aggregate syntax: 
query I rowsort label-8207
SELECT + COUNT( * ) + - 62 * + 15 AS col0 FROM tab2 AS cor0
----
-927

skipif mysql # not compatible
query I rowsort label-8207
SELECT + COUNT ( * ) + - 62 * + 15 AS col0 FROM tab2 AS cor0
----
-927

query I rowsort
SELECT DISTINCT - - col1 + + + 24 + - 0 AS col0 FROM tab2 AS cor0
----
101
75
91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8209
SELECT * FROM tab2 WHERE - CAST( NULL AS SIGNED ) BETWEEN - col1 * - col1 / - + col1 * - 75 / - + 22 AND ( col1 )
----

skipif mysql # not compatible
query III rowsort label-8209
SELECT * FROM tab2 WHERE - CAST ( NULL AS INTEGER ) BETWEEN - col1 * - col1 / - + col1 * - 75 / - + 22 AND ( col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8210
SELECT ALL CAST( NULL AS SIGNED ) * + + col2 AS col0, 27 AS col0 FROM tab2
----
NULL
27
NULL
27
NULL
27

skipif mysql # not compatible
query II rowsort label-8210
SELECT ALL CAST ( NULL AS INTEGER ) * + + col2 AS col0, 27 AS col0 FROM tab2
----
NULL
27
NULL
27
NULL
27

query I rowsort
SELECT ALL col1 + 8 * + - col2 FROM tab0
----
-295
-59
-791

onlyif mysql # aggregate syntax: 
query I rowsort label-8212
SELECT - - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-8212
SELECT - - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
3

query I rowsort
SELECT + 15 * - - col2 FROM tab1 AS cor0
----
1020
1440
885

query I rowsort
SELECT ALL 85 - 18 * - 10 FROM tab0 AS cor0
----
265
265
265

onlyif mysql # DIV for integer division: 
query II rowsort label-8215
SELECT + - col2 DIV - + 26 - + 8, + 96 col2 FROM tab1 AS cor0
----
-5
96
-6
96
-6
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8215
SELECT + - col2 / - + 26 - + 8, + 96 col2 FROM tab1 AS cor0
----
-5
96
-6
96
-6
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8216
SELECT + + 17 / - CAST( NULL AS SIGNED ) - COUNT( * ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8216
SELECT + + 17 / - CAST ( NULL AS INTEGER ) - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8217
SELECT DISTINCT + MAX( DISTINCT + ( 98 ) ) + + + COUNT( * ) AS col1, COUNT( col2 ) AS col1 FROM tab1 WHERE ( NOT NULL BETWEEN col1 + 8 AND NULL )
----
NULL
0

skipif mysql # not compatible
query II rowsort label-8217
SELECT DISTINCT + MAX ( DISTINCT + ( 98 ) ) + + + COUNT ( * ) AS col1, COUNT ( col2 ) AS col1 FROM tab1 WHERE ( NOT NULL BETWEEN col1 + 8 AND NULL )
----
NULL
0

query III rowsort
SELECT * FROM tab2 WHERE ( col1 NOT BETWEEN NULL AND + 70 )
----
64
77
40

query I rowsort
SELECT ALL + col2 - + - col0 FROM tab0
----
196
62
97

query III rowsort
SELECT * FROM tab2 WHERE NOT + 58 - - col1 IS NOT NULL
----

query I rowsort
SELECT + col1 * - - 97 AS col1 FROM tab2
----
4947
6499
7469

onlyif mysql # aggregate syntax: 
query I rowsort label-8222
SELECT - COUNT( col1 ) AS col1 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-8222
SELECT - COUNT ( col1 ) AS col1 FROM tab2
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col2 - - col0 NOT BETWEEN col2 AND NULL
----
64
77
40
75
67
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + 26 col1, - col0 AS col2 FROM tab2 AS cor0
----
-26
-46
-26
-64
-26
-75

query II rowsort
SELECT DISTINCT + col1 AS col1, - col1 FROM tab1 AS cor0
----
14
-14
47
-47
5
-5

query I rowsort
SELECT + col2 AS col2 FROM tab2 AS cor0 WHERE NOT col2 < - 83
----
23
40
58

query I rowsort
SELECT DISTINCT 45 + + col0 FROM tab1
----
130
136
96

query I rowsort
SELECT ( + 60 ) AS col1 FROM tab2
----
60
60
60

query III rowsort
SELECT ALL * FROM tab0 WHERE ( 86 ) BETWEEN NULL AND ( - col0 * - 61 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8230
SELECT ALL COUNT( col2 ) + - 59 FROM tab0
----
-56

skipif mysql # not compatible
query I rowsort label-8230
SELECT ALL COUNT ( col2 ) + - 59 FROM tab0
----
-56

query I rowsort
SELECT DISTINCT - col1 * col2 + - 81 FROM tab2
----
-1254
-3161
-3967

query I rowsort
SELECT 93 + ( col1 ) AS col0 FROM tab2 WHERE 37 + - col2 IS NULL
----

query I rowsort
SELECT DISTINCT ( + 87 ) AS col0 FROM tab2
----
87

query I rowsort
SELECT DISTINCT col2 + col1 * + col0 AS col2 FROM tab0
----
1262
1837
196

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col0 BETWEEN NULL AND - 17 * + 1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8236
SELECT - col2 + - 54 DIV + col1 FROM tab2
----
-24
-40
-58

skipif mysql # not compatible
query I rowsort label-8236
SELECT - col2 + - 54 / + col1 FROM tab2
----
-24
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-8237
SELECT ALL - MAX( + 96 ) AS col0 FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-8237
SELECT ALL - MAX ( + 96 ) AS col0 FROM tab1
----
-96

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT IN ( col1 * col0 + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8239
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-8239
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-3

query I rowsort
SELECT 87 * 14 FROM tab1
----
1218
1218
1218

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8241
SELECT + 91 DIV CAST( - col2 * - col2 AS SIGNED ) + 29 DIV 49 AS col1 FROM tab2 WHERE NOT ( 27 + - col1 * - col1 ) = - 35
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8241
SELECT + 91 / CAST ( - col2 * - col2 AS INTEGER ) + 29 / 49 AS col1 FROM tab2 WHERE NOT ( 27 + - col1 * - col1 ) = - 35
----
0
0
0

query I rowsort
SELECT 93 + col0 FROM tab0
----
108
180
190

query I rowsort
SELECT DISTINCT - col1 FROM tab2 WHERE + col0 IS NULL
----

query I rowsort
SELECT ALL - col2 * 84 AS col0 FROM tab2
----
-1932
-3360
-4872

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 97 ) + - col1 col0 FROM tab2
----
20
30
46

query I rowsort
SELECT col2 * 21 AS col2 FROM tab1
----
1239
1428
2016

query I rowsort
SELECT col0 AS col2 FROM tab2 WHERE ( + 97 ) IN ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8248
SELECT SUM( DISTINCT 15 ) * 18 - + MIN( ALL col2 ) FROM tab2
----
247

skipif mysql # not compatible
query I rowsort label-8248
SELECT SUM ( DISTINCT 15 ) * 18 - + MIN ( ALL col2 ) FROM tab2
----
247

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8249
SELECT ALL + CAST( NULL AS DECIMAL ) * + col0 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8249
SELECT ALL + CAST ( NULL AS REAL ) * + col0 AS col1 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL = col0 + col1
----

query I rowsort
SELECT DISTINCT 76 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-8252
SELECT + SUM( 58 ) col0 FROM tab2 AS cor0
----
174

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8252
SELECT + SUM ( 58 ) col0 FROM tab2 AS cor0
----
174

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8253
SELECT + col2 - + CAST( NULL AS DECIMAL ) * col0 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8253
SELECT + col2 - + CAST ( NULL AS REAL ) * col0 AS col0 FROM tab2
----
NULL
NULL
NULL

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 WHERE NOT + 14 * + 57 IS NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8255
SELECT ALL 73 / CAST( NULL AS SIGNED ) col2 FROM tab0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8255
SELECT ALL 73 / CAST ( NULL AS INTEGER ) col2 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8256
SELECT ALL - + 70 + COUNT( * ) FROM tab2 cor0
----
-67

skipif mysql # not compatible
query I rowsort label-8256
SELECT ALL - + 70 + COUNT ( * ) FROM tab2 cor0
----
-67

query I rowsort
SELECT ALL + col2 * - 25 FROM tab1 cor0
----
-1475
-1700
-2400

onlyif mysql # aggregate syntax: 
query I rowsort label-8258
SELECT ALL - MAX( DISTINCT - col2 ) + - COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
7

skipif mysql # not compatible
query I rowsort label-8258
SELECT ALL - MAX ( DISTINCT - col2 ) + - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8259
SELECT ALL COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( col1 + - CAST( NULL AS SIGNED ) * 33 ) IN ( + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-8259
SELECT ALL COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( col1 + - CAST ( NULL AS INTEGER ) * 33 ) IN ( + col2 )
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - col1 AND - 25
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8261
SELECT ALL - - COUNT( * ) * 72 AS col2 FROM tab2 AS cor0
----
216

skipif mysql # not compatible
query I rowsort label-8261
SELECT ALL - - COUNT ( * ) * 72 AS col2 FROM tab2 AS cor0
----
216

onlyif mysql # aggregate syntax: 
query I rowsort label-8262
SELECT DISTINCT COUNT( col0 ) AS col2 FROM tab1 AS cor0 WHERE NOT + col2 NOT BETWEEN ( 44 - ( col1 ) ) AND + col1
----
0

skipif mysql # not compatible
query I rowsort label-8262
SELECT DISTINCT COUNT ( col0 ) AS col2 FROM tab1 AS cor0 WHERE NOT + col2 NOT BETWEEN ( 44 - ( col1 ) ) AND + col1
----
0

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE NULL <= + col2 / col1 + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 42 / 30 col1 FROM tab2 AS cor0 WHERE ( col1 ) BETWEEN col1 AND - 89
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + col1 - 94 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE ( + 83 - ( - col1 - - 79 ) * 4 ) BETWEEN col1 * - 20 AND - 2 + col0 * - 74
----

query I rowsort
SELECT ALL 33 + + - 65 FROM tab0
----
-32
-32
-32

query I rowsort
SELECT ALL + 93 + - col1 FROM tab0
----
12
72
92

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 + col1 / 24 <= ( NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8270
SELECT + COUNT( * ) DIV - 31 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8270
SELECT + COUNT ( * ) / - 31 FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8271
SELECT ALL + 49 DIV col1 FROM tab0
----
0
2
49

skipif mysql # not compatible
query I rowsort label-8271
SELECT ALL + 49 / col1 FROM tab0
----
0
2
49

query III rowsort
SELECT * FROM tab1 WHERE NOT - 92 * + 48 + - 96 BETWEEN ( col0 * - 8 ) AND 98
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8273
SELECT ALL 79 * - COUNT( * ) FROM tab2
----
-237

skipif mysql # not compatible
query I rowsort label-8273
SELECT ALL 79 * - COUNT ( * ) FROM tab2
----
-237

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col2 ) col1 FROM tab0 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE col0 / + col1 IS NULL
----

query I rowsort
SELECT DISTINCT col2 * + col1 * - col2 AS col0 FROM tab2
----
-123200
-225388
-26979

query I rowsort
SELECT - 94 * 3 * col1 AS col0 FROM tab2
----
-14382
-18894
-21714

onlyif mysql # aggregate syntax: 
query I rowsort label-8278
SELECT SUM( + - col1 ) col0 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8278
SELECT SUM ( + - col1 ) col0 FROM tab2 AS cor0
----
-195

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8279
SELECT DISTINCT - - MAX( + - CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8279
SELECT DISTINCT - - MAX ( + - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8280
SELECT + CAST( NULL AS SIGNED ) * + ( + 61 ) * + 79 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8280
SELECT + CAST ( NULL AS INTEGER ) * + ( + 61 ) * + 79 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 79 * col0 AS col2 FROM tab2
----
3634
5056
5925

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8283
SELECT + COUNT( * ) * + + CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8283
SELECT + COUNT ( * ) * + + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT NULL IS NULL ) OR ( 68 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8285
SELECT + 46 DIV + 38 + - + ( + col0 ) FROM tab0 cor0
----
-14
-86
-96

skipif mysql # not compatible
query I rowsort label-8285
SELECT + 46 / + 38 + - + ( + col0 ) FROM tab0 cor0
----
-14
-86
-96

query I rowsort
SELECT ALL + col1 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) <= + col0
----

query I rowsort
SELECT + 19 + + col1 AS col0 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND - col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8288
SELECT DISTINCT - 33 DIV - - SUM( + - col1 ) AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8288
SELECT DISTINCT - 33 / - - SUM ( + - col1 ) AS col0 FROM tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 col0 FROM tab2 AS cor0 WHERE NOT - 6 * - col2 + - 39 * + col2 <> NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND + - col1 * col2
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL IN ( 30 * col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8292
SELECT ALL col1 + - col1 + - CAST( NULL AS SIGNED ) + col1 col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8292
SELECT ALL col1 + - col1 + - CAST ( NULL AS INTEGER ) + col1 col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8293
SELECT COUNT( ALL - + CAST( NULL AS SIGNED ) ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8293
SELECT COUNT ( ALL - + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8294
SELECT SUM( - 42 ) FROM tab0
----
-126

skipif mysql # not compatible
query I rowsort label-8294
SELECT SUM ( - 42 ) FROM tab0
----
-126

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT IN ( - - col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8296
SELECT DISTINCT 39 + 23 DIV + - 39 col1 FROM tab0
----
39

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8296
SELECT DISTINCT 39 + 23 / + - 39 col1 FROM tab0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-8297
SELECT ALL COUNT( - 91 ) + + COUNT( * ) FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-8297
SELECT ALL COUNT ( - 91 ) + + COUNT ( * ) FROM tab1
----
6

query III rowsort
SELECT * FROM tab1 WHERE ( col2 ) NOT IN ( col2 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8299
SELECT ALL + ( 71 ) AS col2, + MIN( DISTINCT - col2 ) col2 FROM tab0
----
71
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8299
SELECT ALL + ( 71 ) AS col2, + MIN ( DISTINCT - col2 ) col2 FROM tab0
----
71
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8300
SELECT DISTINCT COUNT( - + col2 ) + - 89 FROM tab0
----
-86

skipif mysql # not compatible
query I rowsort label-8300
SELECT DISTINCT COUNT ( - + col2 ) + - 89 FROM tab0
----
-86

query I rowsort
SELECT DISTINCT + + col1 * + 71 AS col2 FROM tab2 AS cor0 WHERE NOT - col2 * - + 84 IS NOT NULL
----

query I rowsort
SELECT - + 43 + + 56 FROM tab2 AS cor0
----
13
13
13

onlyif mysql # DIV for integer division: 
query I rowsort label-8303
SELECT ( col0 ) + + 7 DIV + ( + col2 ) * + col0 + - ( + ( col1 ) ) AS col1 FROM tab0 AS cor0
----
-66
66
96

skipif mysql # not compatible
query I rowsort label-8303
SELECT ( col0 ) + + 7 / + ( + col2 ) * + col0 + - ( + ( col1 ) ) AS col1 FROM tab0 AS cor0
----
-66
66
96

onlyif mysql # DIV for integer division: 
query I rowsort label-8304
SELECT - + ( - col2 ) DIV - col2 - + col0 + + col2 AS col1 FROM tab2 cor0
----
-18
-24
-25

skipif mysql # not compatible
query I rowsort label-8304
SELECT - + ( - col2 ) / - col2 - + col0 + + col2 AS col1 FROM tab2 cor0
----
-18
-24
-25

query I rowsort
SELECT 14 + + 37 * 79 FROM tab2 AS cor0 WHERE 56 >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8306
SELECT DISTINCT col1 DIV - + 21 + + 59 col1 FROM tab2
----
56
57

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8306
SELECT DISTINCT col1 / - + 21 + + 59 col1 FROM tab2
----
56
57

onlyif mysql # aggregate syntax: 
query I rowsort label-8307
SELECT DISTINCT - 76 * - SUM( ALL + - 36 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-24624

skipif mysql # not compatible
query I rowsort label-8307
SELECT DISTINCT - 76 * - SUM ( ALL + - 36 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-24624

query I rowsort
SELECT DISTINCT - + 78 AS col1 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-8309
SELECT COUNT( * ) * - 36 AS col2 FROM tab2
----
-108

skipif mysql # not compatible
query I rowsort label-8309
SELECT COUNT ( * ) * - 36 AS col2 FROM tab2
----
-108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8310
SELECT ALL - col0 - - col2 + + - CAST( - col0 AS SIGNED ) FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-8310
SELECT ALL - col0 - - col2 + + - CAST ( - col0 AS INTEGER ) FROM tab1
----
59
68
96

onlyif mysql # DIV for integer division: 
query I rowsort label-8311
SELECT + col2 DIV col0 + - - col0 - - 87 - + + col0 FROM tab2 AS cor0
----
87
87
87

skipif mysql # not compatible
query I rowsort label-8311
SELECT + col2 / col0 + - - col0 - - 87 - + + col0 FROM tab2 AS cor0
----
87
87
87

query I rowsort
SELECT + col0 - - 46 + 69 + - - 29 * + - col1 AS col0 FROM tab1 AS cor0
----
-1157
-240
55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 - + ( 28 ) col0 FROM tab2 AS cor0
----
-5
12
30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 - + - 31 col1 FROM tab0 AS cor0
----
118
128
46

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 14 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8316
SELECT ALL + COUNT( * ) * + + COUNT( * ) AS col1 FROM tab0 cor0
----
9

skipif mysql # not compatible
query I rowsort label-8316
SELECT ALL + COUNT ( * ) * + + COUNT ( * ) AS col1 FROM tab0 cor0
----
9

query I rowsort
SELECT DISTINCT - 48 + - ( - col2 ) AS col2 FROM tab0 AS cor0 WHERE NOT col1 > + 8
----
51

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 41 / 51 * 2 / + 52 * + col1 + - col2 <> col1 * col0
----

query I rowsort
SELECT - ( + col2 ) FROM tab1 WHERE NOT ( NOT ( + col2 ) IS NOT NULL )
----
-59
-68
-96

query II rowsort
SELECT DISTINCT 51 AS col1, col0 FROM tab1
----
51
51
51
85
51
91

onlyif mysql # DIV for integer division: 
query I rowsort label-8321
SELECT - col1 DIV + - col2 * + - 88 * + col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8321
SELECT - col1 / + - col2 * + - 88 * + col1 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT - col1 + - col1 AS col2 FROM tab2 WHERE NOT + col2 IS NULL
----
-102
-134
-154

query II rowsort
SELECT DISTINCT + 2 AS col1, + col0 AS col0 FROM tab2
----
2
46
2
64
2
75

query II rowsort
SELECT - col0 * - + 31 AS col0, 73 AS col2 FROM tab0 AS cor0
----
2697
73
3007
73
465
73

query II rowsort
SELECT col0, col1 FROM tab0 cor0
----
15
81
87
21
97
1

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN - - ( 31 ) + col0 AND ( - - col1 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( 46 * + col2 * + ( + col2 ) ) NOT BETWEEN - col0 AND + col2 - + col2 * - 60
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - + col2 + - col2 * - - col0 <= ( + + 37 + 9 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE + + col0 NOT BETWEEN + + col2 - + ( - col2 ) AND - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col0 * + + 78 + col2 FROM tab2
----
3611
5032
5908

query I rowsort
SELECT ALL + 83 + 39 FROM tab1
----
122
122
122

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL > ( + 97 + - col0 )
----

query I rowsort
SELECT DISTINCT + - col2 + + + col1 FROM tab1 AS cor0 WHERE ( NOT NULL IS NULL )
----

query I rowsort
SELECT - col0 + 22 + + 68 AS col1 FROM tab2 AS cor0
----
15
26
44

onlyif mysql # DIV for integer division: 
query I rowsort label-8335
SELECT 56 DIV col1 * - + col2 + + col2 AS col1 FROM tab0 AS cor0
----
-10
-5445
47

skipif mysql # not compatible
query I rowsort label-8335
SELECT 56 / col1 * - + col2 + + col2 AS col1 FROM tab0 AS cor0
----
-10
-5445
47

onlyif mysql # DIV for integer division: 
query I rowsort label-8336
SELECT ALL col2 DIV - col1 - 68 FROM tab0 AS cor0
----
-167
-68
-68

skipif mysql # not compatible
query I rowsort label-8336
SELECT ALL col2 / - col1 - 68 FROM tab0 AS cor0
----
-167
-68
-68

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 / - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8338
SELECT 26 * ( COUNT( * ) ) FROM tab1 AS cor0 WHERE ( NOT NULL NOT BETWEEN NULL AND ( col2 + + col1 ) )
----
0

skipif mysql # not compatible
query I rowsort label-8338
SELECT 26 * ( COUNT ( * ) ) FROM tab1 AS cor0 WHERE ( NOT NULL NOT BETWEEN NULL AND ( col2 + + col1 ) )
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 >= - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8340
SELECT ALL + MIN( DISTINCT + 23 ) + 9 AS col0 FROM tab1 AS cor0 WHERE col1 - - + ( - col2 ) - 91 + + - col1 IN ( - 52 + + 31 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8340
SELECT ALL + MIN ( DISTINCT + 23 ) + 9 AS col0 FROM tab1 AS cor0 WHERE col1 - - + ( - col2 ) - 91 + + - col1 IN ( - 52 + + 31 )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8341
SELECT 28 DIV 20 + - - col1, col1 + 94 col0 FROM tab0
----
2
95
22
115
82
175

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8341
SELECT 28 / 20 + - - col1, col1 + 94 col0 FROM tab0
----
2
95
22
115
82
175

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab0 WHERE NULL IN ( - - 71 + + col1 )
----

query III rowsort
SELECT * FROM tab2 WHERE ( - - col2 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + + 34 col1 FROM tab2
----
57
74
92

query I rowsort
SELECT ALL col0 * - col2 + - ( + col2 ) FROM tab0
----
-752
-880
-9702

query I rowsort
SELECT ALL - col2 + col0 AS col2 FROM tab2 WHERE ( - + col2 ) IS NOT NULL
----
17
23
24

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8347
SELECT DISTINCT * FROM tab0 WHERE - 58 + - - CAST( + col0 AS DECIMAL ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8347
SELECT DISTINCT * FROM tab0 WHERE - 58 + - - CAST ( + col0 AS REAL ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 67 * col0 FROM tab1
----
-3417
-5695
-6097

query I rowsort
SELECT ALL - col1 FROM tab2 WHERE + col2 / col0 + - + col1 = ( + 7 )
----

query I rowsort
SELECT 82 * - - 7 + col1 * - col2 * + + col1 * - - col2 AS col1 FROM tab1
----
-10213842
-1805762
-86451

query I rowsort
SELECT ALL - 39 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 504d14939d58aeb4a14f31c80de5b53e

query I rowsort
SELECT DISTINCT col1 - + 40 FROM tab2
----
11
27
37

query I rowsort
SELECT DISTINCT - - 38 FROM tab2 cor0
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8354
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col2 + - col0 * + ( - col1 ) * + - col1 + - col2 + + col1 + ( + col0 ) * + CAST( col2 AS SIGNED ) IS NULL OR NOT + 76 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8354
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col2 + - col0 * + ( - col1 ) * + - col1 + - col2 + + col1 + ( + col0 ) * + CAST ( col2 AS INTEGER ) IS NULL OR NOT + 76 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8355
SELECT ALL col1 FROM tab1 AS cor0 WHERE NOT + ( col1 ) BETWEEN col1 AND - CAST( NULL AS DECIMAL ) + col0 OR + 64 > + col1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-8355
SELECT ALL col1 FROM tab1 AS cor0 WHERE NOT + ( col1 ) BETWEEN col1 AND - CAST ( NULL AS REAL ) + col0 OR + 64 > + col1
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8356
SELECT * FROM tab1 AS cor0 WHERE NOT CAST( + 1 AS SIGNED ) - - col1 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8356
SELECT * FROM tab1 AS cor0 WHERE NOT CAST ( + 1 AS INTEGER ) - - col1 IS NOT NULL
----

query II rowsort
SELECT DISTINCT - col2, + col1 FROM tab2
----
-23
51
-40
77
-58
67

query I rowsort
SELECT col1 * - ( - 34 ) FROM tab0
----
2754
34
714

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + col2 ) < - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE NOT - - col2 <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL IN ( ( + 16 ) * + ( col0 ) + - + col2 + col2 + 22 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 31 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8363
SELECT DISTINCT CAST( col0 AS SIGNED ) * + col0 AS col1 FROM tab0 AS cor0
----
225
7569
9409

skipif mysql # not compatible
query I rowsort label-8363
SELECT DISTINCT CAST ( col0 AS INTEGER ) * + col0 AS col1 FROM tab0 AS cor0
----
225
7569
9409

query I rowsort
SELECT col2 * + + 49 FROM tab1 AS cor0
----
2891
3332
4704

query I rowsort
SELECT DISTINCT - 49 * - 28 FROM tab2
----
1372

query I rowsort
SELECT DISTINCT + col2 * - 66 + - col0 AS col1 FROM tab0 AS cor0
----
-3117
-6631
-747

query I rowsort
SELECT ALL col0 FROM tab0 AS cor0 WHERE NOT col2 + - col0 IS NOT NULL
----

query I rowsort
SELECT ALL + col1 * - 80 AS col0 FROM tab2 cor0
----
-4080
-5360
-6160

query II rowsort
SELECT + + 79 AS col2, - col2 FROM tab2 AS cor0
----
79
-23
79
-40
79
-58

query I rowsort
SELECT + - 46 AS col2 FROM tab0 cor0
----
-46
-46
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-8371
SELECT + col1 DIV - - 81 AS col2 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8371
SELECT + col1 / - - 81 AS col2 FROM tab0 AS cor0
----
0
0
1

query III rowsort
SELECT - col0 AS col1, col1 AS col0, - - col2 - - col2 FROM tab0 AS cor0
----
9 values hashing to 57cc03293da6ec2d2785ef3166b3a35e

onlyif mysql # aggregate syntax: 
query I rowsort label-8373
SELECT ALL COUNT( DISTINCT + col0 ) + - 44 + - COUNT( * ) FROM tab0 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-8373
SELECT ALL COUNT ( DISTINCT + col0 ) + - 44 + - COUNT ( * ) FROM tab0 AS cor0
----
-44

query I rowsort
SELECT ALL 32 AS col0 FROM tab0 AS cor0
----
32
32
32

query I rowsort
SELECT 9 - - - col0 + 0 + + col0 AS col1 FROM tab0
----
9
9
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8376
SELECT - COUNT( * ) * - - COUNT( * ) * - 35 + + - MAX( DISTINCT col1 ) * - COUNT( * ) AS col2 FROM tab1
----
456

skipif mysql # not compatible
query I rowsort label-8376
SELECT - COUNT ( * ) * - - COUNT ( * ) * - 35 + + - MAX ( DISTINCT col1 ) * - COUNT ( * ) AS col2 FROM tab1
----
456

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * 63 + + + col1 - + col0 col2 FROM tab1
----
3176
5275
5689

query III rowsort
SELECT ALL * FROM tab0 WHERE - col1 BETWEEN + col2 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8379
SELECT DISTINCT col1 DIV + + ( - - col0 ) + + col0 AS col2 FROM tab0
----
20
87
97

skipif mysql # not compatible
query I rowsort label-8379
SELECT DISTINCT col1 / + + ( - - col0 ) + + col0 AS col2 FROM tab0
----
20
87
97

query I rowsort
SELECT DISTINCT col0 FROM tab0 WHERE ( col1 * - col2 IN ( 25 + + col1 * - 35 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8381
SELECT ALL + 38 - - + CAST( + - ( + 4 ) AS SIGNED ) FROM tab0
----
34
34
34

skipif mysql # not compatible
query I rowsort label-8381
SELECT ALL + 38 - - + CAST ( + - ( + 4 ) AS INTEGER ) FROM tab0
----
34
34
34

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8382
SELECT + ( + 21 ) FROM tab0 WHERE + col0 NOT BETWEEN col2 AND CAST( + CAST( NULL AS DECIMAL ) AS DECIMAL )
----
21
21

skipif mysql # not compatible
query I rowsort label-8382
SELECT + ( + 21 ) FROM tab0 WHERE + col0 NOT BETWEEN col2 AND CAST ( + CAST ( NULL AS REAL ) AS REAL )
----
21
21

onlyif mysql # aggregate syntax: 
query I rowsort label-8383
SELECT ALL 90 * + 10 - + - MIN( - - ( + 32 ) ) FROM tab0 AS cor0
----
932

skipif mysql # not compatible
query I rowsort label-8383
SELECT ALL 90 * + 10 - + - MIN ( - - ( + 32 ) ) FROM tab0 AS cor0
----
932

onlyif mysql # DIV for integer division: 
query I rowsort label-8384
SELECT - col2 DIV + + col1 FROM tab0 AS cor0
----
-99
0
0

skipif mysql # not compatible
query I rowsort label-8384
SELECT - col2 / + + col1 FROM tab0 AS cor0
----
-99
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8385
SELECT DISTINCT - COUNT( * ), 0 AS col0 FROM tab0 AS cor0
----
-3
0

skipif mysql # not compatible
query II rowsort label-8385
SELECT DISTINCT - COUNT ( * ), 0 AS col0 FROM tab0 AS cor0
----
-3
0

query II rowsort
SELECT + col2, 78 AS col1 FROM tab2 AS cor0
----
23
78
40
78
58
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 34 + - col0 col2 FROM tab1 AS cor0 WHERE NOT NULL IN ( - col2 )
----

query I rowsort
SELECT ( + 5 ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NULL >= - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8390
SELECT ALL COUNT( * ) * + 72 AS col2 FROM tab2 AS cor0
----
216

skipif mysql # not compatible
query I rowsort label-8390
SELECT ALL COUNT ( * ) * + 72 AS col2 FROM tab2 AS cor0
----
216

onlyif mysql # aggregate syntax: 
query I rowsort label-8391
SELECT DISTINCT MAX( ALL + col2 ) FROM tab2 cor0
----
58

skipif mysql # not compatible
query I rowsort label-8391
SELECT DISTINCT MAX ( ALL + col2 ) FROM tab2 cor0
----
58

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - + col2 / + col0 - - 96 ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8393
SELECT DISTINCT + ( - - MIN( + col0 ) ) FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-8393
SELECT DISTINCT + ( - - MIN ( + col0 ) ) FROM tab1
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-8394
SELECT 87 DIV col2 DIV + col1 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8394
SELECT 87 / col2 / + col1 AS col2 FROM tab0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8395
SELECT + 16 * - - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8395
SELECT + 16 * - - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL ( - 12 ) * col1 FROM tab2
----
-612
-804
-924

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 * + col2 col1, + 4 * col0 * - col0 col0 FROM tab0
----
210
-30276
3807
-900
99
-37636

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + + 47 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8399
SELECT DISTINCT + COUNT( * ) FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8399
SELECT DISTINCT + COUNT ( * ) FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8400
SELECT DISTINCT + + 80 DIV COUNT( * ) + 49 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
57

skipif mysql # not compatible
query I rowsort label-8400
SELECT DISTINCT + + 80 / COUNT ( * ) + 49 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 col1 FROM tab1 WHERE NOT - + col1 + + - 79 * + ( - 62 ) - + col2 IS NULL
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8402
SELECT - - 13 * - + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-117

skipif mysql # not compatible
query I rowsort label-8402
SELECT - - 13 * - + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-117

onlyif mysql # aggregate syntax: 
query I rowsort label-8403
SELECT DISTINCT + + MAX( + col2 ) FROM tab0 AS cor0 WHERE NOT col1 IN ( + 22, col0, - col2 )
----
99

skipif mysql # not compatible
query I rowsort label-8403
SELECT DISTINCT + + MAX ( + col2 ) FROM tab0 AS cor0 WHERE NOT col1 IN ( + 22, col0, - col2 )
----
99

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) <= + col0
----

query I rowsort
SELECT + col0 FROM tab2 cor0 WHERE NULL = ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8406
SELECT CAST( NULL AS SIGNED ) * AVG ( + col2 ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8406
SELECT CAST ( NULL AS INTEGER ) * AVG ( + col2 ) AS col2 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8407
SELECT + COUNT( * ) AS col0, + 67 + + + 34 FROM tab1
----
3
101

skipif mysql # not compatible
query II rowsort label-8407
SELECT + COUNT ( * ) AS col0, + 67 + + + 34 FROM tab1
----
3
101

onlyif mysql # DIV for integer division: 
query II rowsort label-8408
SELECT - col2, - col2 DIV + ( - + col2 ) col2 FROM tab2
----
-23
1
-40
1
-58
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8408
SELECT - col2, - col2 / + ( - + col2 ) col2 FROM tab2
----
-23
1
-40
1
-58
1

onlyif mysql # DIV for integer division: 
query II rowsort label-8409
SELECT DISTINCT - 77 + + col0 AS col0, col0 * - col0 - - + 12 * - col1 DIV + - col1 col1 FROM tab2
----
-13
-4084
-2
-5613
-31
-2104

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8409
SELECT DISTINCT - 77 + + col0 AS col0, col0 * - col0 - - + 12 * - col1 / + - col1 col1 FROM tab2
----
-13
-4084
-2
-5613
-31
-2104

query I rowsort
SELECT - + col2 FROM tab2 WHERE NULL = + col2 + - 34
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col1, + col0 AS col0 FROM tab1
----
51
51
85
85
91
91

query I rowsort
SELECT ALL col1 + - 28 * - col0 AS col0 FROM tab1
----
1442
2385
2595

query III rowsort
SELECT * FROM tab0 WHERE - + 59 * - + 14 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8414
SELECT MIN( - ( + 15 ) ) FROM tab2
----
-15

skipif mysql # not compatible
query I rowsort label-8414
SELECT MIN ( - ( + 15 ) ) FROM tab2
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8415
SELECT DISTINCT CAST( NULL AS SIGNED ) / + CAST( NULL AS SIGNED ) - - 88 + col2 / col1 AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8415
SELECT DISTINCT CAST ( NULL AS INTEGER ) / + CAST ( NULL AS INTEGER ) - - 88 + col2 / col1 AS col1 FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT IN ( - col1, 51 * - - col2, + 57 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + col0 + col0 col2 FROM tab1
----
-340
-4186
-663

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8418
SELECT ALL - CAST( - 13 AS SIGNED ) FROM tab2
----
13
13
13

skipif mysql # not compatible
query I rowsort label-8418
SELECT ALL - CAST ( - 13 AS INTEGER ) FROM tab2
----
13
13
13

onlyif mysql # aggregate syntax: 
query I rowsort label-8419
SELECT - COUNT( + 5 ) AS col0 FROM tab2 WHERE ( - col0 - - col0 * 32 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8419
SELECT - COUNT ( + 5 ) AS col0 FROM tab2 WHERE ( - col0 - - col0 * 32 ) IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8420
SELECT ALL col1 - - - col0 + CAST( NULL AS DECIMAL ) - - ( - col1 ) * col0 col1, col1 + + 30 * - col2 * + CAST( + 16 AS SIGNED ) FROM tab2 AS cor0
----
NULL
-10989
NULL
-19123
NULL
-27773

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8420
SELECT ALL col1 - - - col0 + CAST ( NULL AS REAL ) - - ( - col1 ) * col0 col1, col1 + + 30 * - col2 * + CAST ( + 16 AS INTEGER ) FROM tab2 AS cor0
----
NULL
-10989
NULL
-19123
NULL
-27773

query I rowsort
SELECT DISTINCT col0 * - col1 - - 10 * - - col1 FROM tab1 AS cor0
----
-375
-3807
-574

onlyif mysql # aggregate syntax: 
query I rowsort label-8422
SELECT DISTINCT + MIN( ALL - col2 ) AS col0 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-8422
SELECT DISTINCT + MIN ( ALL - col2 ) AS col0 FROM tab0 AS cor0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8423
SELECT 65 * + + SUM( col2 ) FROM tab1
----
14495

skipif mysql # not compatible
query I rowsort label-8423
SELECT 65 * + + SUM ( col2 ) FROM tab1
----
14495

onlyif mysql # DIV for integer division: 
query II rowsort label-8424
SELECT - col1 DIV - - 97 AS col1, + 38 DIV col0 FROM tab2
----
0
0
0
0
0
0

skipif mysql # not compatible
query II rowsort label-8424
SELECT - col1 / - - 97 AS col1, + 38 / col0 FROM tab2
----
0
0
0
0
0
0

query I rowsort
SELECT 13 * - 96 FROM tab2
----
-1248
-1248
-1248

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 36 col0 FROM tab0 cor0
----
36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 13 col1 FROM tab2 AS cor0
----
-13
-13
-13

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8428
SELECT * FROM tab2 cor0 WHERE NOT NULL IS NULL AND NULL NOT BETWEEN CAST( NULL AS SIGNED ) AND 4 * - - col2 + col0
----

skipif mysql # not compatible
query III rowsort label-8428
SELECT * FROM tab2 cor0 WHERE NOT NULL IS NULL AND NULL NOT BETWEEN CAST ( NULL AS INTEGER ) AND 4 * - - col2 + col0
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 77 * - - col2 >= NULL
----

query I rowsort
SELECT ALL - ( - + 7 ) AS col0 FROM tab0 AS cor0
----
7
7
7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8431
SELECT ALL * FROM tab2 WHERE + 93 * col0 + - col1 - + 25 + + col0 + col0 * - 42 * + 90 * CAST( - - col2 AS SIGNED ) - + 31 * 55 IS NULL
----

skipif mysql # not compatible
query III rowsort label-8431
SELECT ALL * FROM tab2 WHERE + 93 * col0 + - col1 - + 25 + + col0 + col0 * - 42 * + 90 * CAST ( - - col2 AS INTEGER ) - + 31 * 55 IS NULL
----

query I rowsort
SELECT ALL ( - 77 ) FROM tab1
----
-77
-77
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-8433
SELECT ALL + 76 DIV - col1 AS col1 FROM tab0
----
-3
-76
0

skipif mysql # not compatible
query I rowsort label-8433
SELECT ALL + 76 / - col1 AS col1 FROM tab0
----
-3
-76
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8434
SELECT ALL - CAST( NULL AS SIGNED ) - col0 FROM tab2 WHERE NOT - ( col1 ) - + + col2 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8434
SELECT ALL - CAST ( NULL AS INTEGER ) - col0 FROM tab2 WHERE NOT - ( col1 ) - + + col2 IS NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8435
SELECT DISTINCT + + ( + COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8435
SELECT DISTINCT + + ( + COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-8436
SELECT - 78 * COUNT( * ) + COUNT( * ), - 14 AS col2 FROM tab2 AS cor0
----
-231
-14

skipif mysql # not compatible
query II rowsort label-8436
SELECT - 78 * COUNT ( * ) + COUNT ( * ), - 14 AS col2 FROM tab2 AS cor0
----
-231
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-8437
SELECT DISTINCT - + MAX( ALL - + col2 ) col1 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8437
SELECT DISTINCT - + MAX ( ALL - + col2 ) col1 FROM tab2 AS cor0
----
23

query I rowsort
SELECT ALL ( + col2 ) * - + col2 + col1 AS col2 FROM tab1
----
-3476
-4577
-9202

onlyif mysql # DIV for integer division: 
query I rowsort label-8439
SELECT DISTINCT - col2 DIV - + col1 + - col2 AS col1 FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-8439
SELECT DISTINCT - col2 / - + col1 + - col2 AS col1 FROM tab2
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-8440
SELECT + MIN( DISTINCT + 3 ) AS col0, ( + 62 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
3
62

skipif mysql # not compatible
query II rowsort label-8440
SELECT + MIN ( DISTINCT + 3 ) AS col0, ( + 62 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
3
62

query I rowsort
SELECT DISTINCT - col2 + - 70 AS col0 FROM tab0 WHERE NOT - 7 IS NULL
----
-117
-169
-80

query I rowsort
SELECT ALL + - 75 - + 57 AS col1 FROM tab0 AS cor0
----
-132
-132
-132

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8443
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - CAST( + 96 AS SIGNED ) <= ( + ( - col0 ) )
----

skipif mysql # not compatible
query III rowsort label-8443
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - CAST ( + 96 AS INTEGER ) <= ( + ( - col0 ) )
----

query I rowsort
SELECT + 30 - + col1 FROM tab2 cor0
----
-21
-37
-47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 - 85 AS col2, - 35 * - + 86 col1 FROM tab1 AS cor0
----
-38
3010
-71
3010
-80
3010

query I rowsort
SELECT ALL + ( + col0 ) + 9 FROM tab2
----
55
73
84

onlyif mysql # aggregate syntax: 
query I rowsort label-8447
SELECT ALL - MAX( ALL - + col2 ) FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-8447
SELECT ALL - MAX ( ALL - + col2 ) FROM tab2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-8448
SELECT DISTINCT - 25 * - COUNT( DISTINCT - + col0 ) + + 35 FROM tab1
----
110

skipif mysql # not compatible
query I rowsort label-8448
SELECT DISTINCT - 25 * - COUNT ( DISTINCT - + col0 ) + + 35 FROM tab1
----
110

query I rowsort
SELECT DISTINCT col2 + + + ( - - col2 ) + - - col1 * + ( - - col1 ) AS col0 FROM tab0
----
199
461
6655

query I rowsort
SELECT DISTINCT - col2 * + - ( col1 ) + - col2 + - + col1 * + col0 AS col2 FROM tab2
----
-1196
-1197
-1888

query I rowsort
SELECT ALL 39 - + ( - col0 ) FROM tab1
----
124
130
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8452
SELECT CAST( NULL AS SIGNED ) + - - col0 col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8452
SELECT CAST ( NULL AS INTEGER ) + - - col0 col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-8453
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( - CAST( + ( 71 ) AS SIGNED ) ) <= NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-8453
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( - CAST ( + ( 71 ) AS INTEGER ) ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8454
SELECT 34 * + - COUNT( * ) AS col0 FROM tab1
----
-102

skipif mysql # not compatible
query I rowsort label-8454
SELECT 34 * + - COUNT ( * ) AS col0 FROM tab1
----
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-8455
SELECT COUNT( * ) * 70 FROM tab2
----
210

skipif mysql # not compatible
query I rowsort label-8455
SELECT COUNT ( * ) * 70 FROM tab2
----
210

onlyif mysql # aggregate syntax: 
query I rowsort label-8456
SELECT + MIN( 28 ) AS col0 FROM tab0 AS cor0
----
28

skipif mysql # not compatible
query I rowsort label-8456
SELECT + MIN ( 28 ) AS col0 FROM tab0 AS cor0
----
28

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( ( col1 ) ) <= - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-8458
SELECT - 53 AS col0, COUNT( * ) FROM tab2 AS cor0
----
-53
3

skipif mysql # not compatible
query II rowsort label-8458
SELECT - 53 AS col0, COUNT ( * ) FROM tab2 AS cor0
----
-53
3

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE NOT col0 * 64 NOT BETWEEN NULL AND ( ( + - col2 ) * col0 )
----

query I rowsort
SELECT ALL - 76 * - 54 AS col0 FROM tab2 AS cor0
----
4104
4104
4104

query I rowsort
SELECT + 33 FROM tab0 AS cor0 WHERE NOT NULL = NULL
----

query I rowsort
SELECT 81 FROM tab2 AS cor0 WHERE NOT - col1 < col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8463
SELECT ALL + col0 * 48 col1, CAST( + col1 AS SIGNED ) FROM tab2 AS cor0
----
2208
51
3072
77
3600
67

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8463
SELECT ALL + col0 * 48 col1, CAST ( + col1 AS INTEGER ) FROM tab2 AS cor0
----
2208
51
3072
77
3600
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8464
SELECT + ( - CAST( NULL AS SIGNED ) ) + COUNT( * ) * + - ( + 69 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8464
SELECT + ( - CAST ( NULL AS INTEGER ) ) + COUNT ( * ) * + - ( + 69 ) FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8465
SELECT + 10 + + + 62 + - col1 DIV - col2 AS col0 FROM tab2
----
73
73
74

skipif mysql # not compatible
query I rowsort label-8465
SELECT + 10 + + + 62 + - col1 / - col2 AS col0 FROM tab2
----
73
73
74

onlyif mysql # DIV for integer division: 
query I rowsort label-8466
SELECT + 8 DIV - - 56 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8466
SELECT + 8 / - - 56 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8467
SELECT MAX( DISTINCT - + col2 ) * + 83 FROM tab2
----
-1909

skipif mysql # not compatible
query I rowsort label-8467
SELECT MAX ( DISTINCT - + col2 ) * + 83 FROM tab2
----
-1909

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 < + - col1
----

query II rowsort
SELECT ALL + + 60 * + - 59 AS col2, ( + - col2 ) AS col1 FROM tab0 AS cor0
----
-3540
-10
-3540
-47
-3540
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8470
SELECT ALL - COUNT( * ) + 71 AS col2 FROM tab1
----
68

skipif mysql # not compatible
query I rowsort label-8470
SELECT ALL - COUNT ( * ) + 71 AS col2 FROM tab1
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8471
SELECT + ( + col2 ) + + CAST( NULL AS SIGNED ) + + 25 + + col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8471
SELECT + ( + col2 ) + + CAST ( NULL AS INTEGER ) + + 25 + + col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + 41 + + 48 * + - col1 AS col0 FROM tab1
----
-199
-2215
-631

query II rowsort
SELECT ALL - col0 + col1 + - - 24, - col2 AS col1 FROM tab1 cor0
----
-13
-96
-20
-68
-56
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 15 + - col2 + + - col0 col0 FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
-118
-54
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-8475
SELECT ALL - COUNT( * ) - - - COUNT( * ) FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-8475
SELECT ALL - COUNT ( * ) - - - COUNT ( * ) FROM tab2 AS cor0
----
-6

query I rowsort
SELECT DISTINCT + - ( ( col0 ) ) FROM tab2 AS cor0
----
-46
-64
-75

query I rowsort
SELECT - 9 * + col2 + - col1 FROM tab2 AS cor0
----
-258
-437
-589

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 * + - col2 AS col2, col2 col0 FROM tab2
----
1173
23
3080
40
3886
58

query II rowsort
SELECT ALL 49 + - - col0 * + col2 + + + 90, 43 AS col0 FROM tab2
----
1197
43
2699
43
4489
43

query I rowsort
SELECT DISTINCT 67 + - + col2 - 21 FROM tab1
----
-13
-22
-50

query II rowsort
SELECT ALL col2 + col1, col2 AS col0 FROM tab1
----
110
96
115
68
64
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8482
SELECT - col0 * - col0 - 92 * + 23 * + CAST( NULL AS SIGNED ) * + + col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8482
SELECT - col0 * - col0 - 92 * + 23 * + CAST ( NULL AS INTEGER ) * + + col2 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - + 40 = - 29
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col2 * + + 7 * - col0 + col2 - - - 97 AS col1 FROM tab2 WHERE NULL >= NULL
----

query I rowsort
SELECT + + ( - col2 ) FROM tab2 AS cor0 WHERE NOT NULL >= ( + col0 )
----

query I rowsort
SELECT DISTINCT - col1 * + 57 + - col0 - 49 AS col2 FROM tab0 cor0
----
-1333
-203
-4681

onlyif mysql # aggregate syntax: 
query I rowsort label-8487
SELECT ALL + - MAX( - 94 ) FROM tab2 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-8487
SELECT ALL + - MAX ( - 94 ) FROM tab2 AS cor0
----
94

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 IN ( + col0, col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - + 17 * - 64 FROM tab2 AS cor0
----
1088

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 20 * + 82 col1 FROM tab2 AS cor0
----
-1640
-1640
-1640

onlyif mysql # aggregate syntax: 
query I rowsort label-8491
SELECT SUM( DISTINCT + 36 ) AS col1 FROM tab0 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-8491
SELECT SUM ( DISTINCT + 36 ) AS col1 FROM tab0 AS cor0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-8492
SELECT DISTINCT - 59 * SUM( ALL - + col1 ) FROM tab1 AS cor0
----
3894

skipif mysql # not compatible
query I rowsort label-8492
SELECT DISTINCT - 59 * SUM ( ALL - + col1 ) FROM tab1 AS cor0
----
3894

query I rowsort
SELECT ALL - 58 * + + col0 * + col1 AS col0 FROM tab1 AS cor0 WHERE ( NOT - 68 + col2 NOT BETWEEN - 44 AND NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8494
SELECT + + col1 / + 27 * + CAST( NULL AS SIGNED ) col2, - col2 AS col2 FROM tab0 cor0
----
NULL
-10
NULL
-47
NULL
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8494
SELECT + + col1 / + 27 * + CAST ( NULL AS INTEGER ) col2, - col2 AS col2 FROM tab0 cor0
----
NULL
-10
NULL
-47
NULL
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-8495
SELECT DISTINCT + col0 DIV 47 AS col1 FROM tab0 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-8495
SELECT DISTINCT + col0 / 47 AS col1 FROM tab0 AS cor0
----
0
1
2

query I rowsort
SELECT DISTINCT col2 FROM tab2 WHERE - col2 IS NULL
----

query I rowsort
SELECT DISTINCT col0 + + - col0 * - 78 AS col0 FROM tab1
----
4029
6715
7189

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 col2 FROM tab2 WHERE - 62 > col2 + + col1 * col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8499
SELECT ALL - COUNT( * ) * - 17 + + + MIN( + col0 ) AS col2 FROM tab2
----
97

skipif mysql # not compatible
query I rowsort label-8499
SELECT ALL - COUNT ( * ) * - 17 + + + MIN ( + col0 ) AS col2 FROM tab2
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8500
SELECT 41 + - COUNT( * ) - COUNT( * ) FROM tab2
----
35

skipif mysql # not compatible
query I rowsort label-8500
SELECT 41 + - COUNT ( * ) - COUNT ( * ) FROM tab2
----
35

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN col0 * - col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8502
SELECT - COUNT( * ) + + + 29 FROM tab2 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-8502
SELECT - COUNT ( * ) + + + 29 FROM tab2 AS cor0
----
26

query I rowsort
SELECT col0 + + 28 AS col1 FROM tab2 AS cor0
----
103
74
92

query II rowsort
SELECT DISTINCT 92 * col0 + - 16 * + 85, - col1 AS col2 FROM tab0 cor0
----
20
-81
6644
-21
7564
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8505
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab0 WHERE NULL IN ( + + 19, col1, - + col2 + + - col0, + 17 + - 29, 3, - col2 - - + 57 )
----
0

skipif mysql # not compatible
query I rowsort label-8505
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab0 WHERE NULL IN ( + + 19, col1, - + col2 + + - col0, + 17 + - 29, 3, - col2 - - + 57 )
----
0

query I rowsort
SELECT - col2 FROM tab2 AS cor0 WHERE - 33 <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col1 * + - col0 + col2 IS NOT NULL
----

query II rowsort
SELECT - 16 - + 7, ( col2 ) FROM tab2 cor0
----
-23
23
-23
40
-23
58

query I rowsort
SELECT DISTINCT - 25 - + col1 AS col2 FROM tab1 AS cor0
----
-30
-39
-72

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col1 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8511
SELECT ALL - COUNT( + col2 ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8511
SELECT ALL - COUNT ( + col2 ) AS col0 FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8512
SELECT + - 35 - - COUNT( * ) * - + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8512
SELECT + - 35 - - COUNT ( * ) * - + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ( - col2 ) - col1 - - + col1 * - col0 FROM tab1 AS cor0
----
-4392
-489
-824

onlyif mysql # DIV for integer division: 
query II rowsort label-8514
SELECT ALL + col0 DIV + col0 AS col0, col1 * col0 FROM tab2 cor0
----
1
2346
1
4928
1
5025

skipif mysql # not compatible
query II rowsort label-8514
SELECT ALL + col0 / + col0 AS col0, col1 * col0 FROM tab2 cor0
----
1
2346
1
4928
1
5025

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 44 col0, + 9 AS col1 FROM tab0
----
44
9
44
9
44
9

query II rowsort
SELECT ALL - 88, col2 FROM tab1
----
-88
59
-88
68
-88
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8517
SELECT CAST( NULL AS SIGNED ) / col0 col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8517
SELECT CAST ( NULL AS INTEGER ) / col0 col2 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 28 >= + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8519
SELECT - COUNT( ALL - - col0 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8519
SELECT - COUNT ( ALL - - col0 ) FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8520
SELECT DISTINCT MIN( - - col2 ) FROM tab0 cor0
----
10

skipif mysql # not compatible
query I rowsort label-8520
SELECT DISTINCT MIN ( - - col2 ) FROM tab0 cor0
----
10

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 BETWEEN NULL AND - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8522
SELECT ALL SUM( DISTINCT - col2 ) FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-8522
SELECT ALL SUM ( DISTINCT - col2 ) FROM tab2 AS cor0
----
-121

query I rowsort
SELECT DISTINCT + AVG ( ALL ( col0 ) ) * - ( - 31 ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query II rowsort
SELECT ALL + 22 + + + 6 AS col0, - 40 * - col2 + + col0 AS col2 FROM tab1 AS cor0
----
28
2445
28
2811
28
3891

query I rowsort
SELECT ALL col0 FROM tab1 AS cor0 WHERE col2 BETWEEN NULL AND NULL
----

query II rowsort
SELECT - col2 * + col0 + - 5 AS col2, + col1 * - 11 AS col0 FROM tab1
----
-4901
-154
-5020
-55
-6193
-517

onlyif mysql # aggregate syntax: 
query I rowsort label-8527
SELECT DISTINCT + MIN( ALL + + ( col2 ) ) + - - 53 col0 FROM tab2
----
76

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8527
SELECT DISTINCT + MIN ( ALL + + ( col2 ) ) + - - 53 col0 FROM tab2
----
76

query I rowsort
SELECT DISTINCT + col1 * 99 FROM tab1
----
1386
4653
495

onlyif mysql # DIV for integer division: 
query I rowsort label-8529
SELECT ALL 17 DIV + col0 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8529
SELECT ALL 17 / + col0 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
0
0
0

query I rowsort
SELECT 79 * + col2 AS col0 FROM tab0 AS cor0
----
3713
7821
790

query I rowsort
SELECT + 36 + - + 58 AS col1 FROM tab1
----
-22
-22
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-8532
SELECT DISTINCT - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) IS NULL
----
-9

skipif mysql # not compatible
query I rowsort label-8532
SELECT DISTINCT - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) IS NULL
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8533
SELECT DISTINCT + COUNT( * ) + - COUNT( * ) + - - COUNT( * ) * + + 58 * + 54 FROM tab2
----
9396

skipif mysql # not compatible
query I rowsort label-8533
SELECT DISTINCT + COUNT ( * ) + - COUNT ( * ) + - - COUNT ( * ) * + + 58 * + 54 FROM tab2
----
9396

onlyif mysql # DIV for integer division: 
query I rowsort label-8534
SELECT DISTINCT 72 DIV + 52 - - ( col1 ) AS col1 FROM tab0
----
2
22
82

skipif mysql # not compatible
query I rowsort label-8534
SELECT DISTINCT 72 / + 52 - - ( col1 ) AS col1 FROM tab0
----
2
22
82

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 + - 86 >= NULL
----

query I rowsort
SELECT + 98 * + col0 * - col2 AS col0 FROM tab1 AS cor0
----
-479808
-491470
-606424

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8537
SELECT - CAST( NULL AS DECIMAL ) / + + col2 * col1 + col0 * + + col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8537
SELECT - CAST ( NULL AS REAL ) / + + col2 * col1 + col0 * + + col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8538
SELECT DISTINCT MIN( + ( - col2 ) ) AS col1, + COUNT( ALL + col1 ) AS col2 FROM tab2
----
-58
3

skipif mysql # not compatible
query II rowsort label-8538
SELECT DISTINCT MIN ( + ( - col2 ) ) AS col1, + COUNT ( ALL + col1 ) AS col2 FROM tab2
----
-58
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8539
SELECT 83 * + 10 * COUNT( * ) FROM tab2
----
2490

skipif mysql # not compatible
query I rowsort label-8539
SELECT 83 * + 10 * COUNT ( * ) FROM tab2
----
2490

query I rowsort
SELECT 1 * - col1 AS col2 FROM tab0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-8541
SELECT - COUNT( * ) FROM tab1 WHERE NOT - - col0 > ( + col2 )
----
-1

skipif mysql # not compatible
query I rowsort label-8541
SELECT - COUNT ( * ) FROM tab1 WHERE NOT - - col0 > ( + col2 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-8542
SELECT DISTINCT 69 + - col0 DIV - col0 + - col1 - - 85 - col0 - - col2 * - + 39 * 45 * - 90 FROM tab0 AS cor0 WHERE NULL IS NULL
----
15637107
1579547
7423709

skipif mysql # not compatible
query I rowsort label-8542
SELECT DISTINCT 69 + - col0 / - col0 + - col1 - - 85 - col0 - - col2 * - + 39 * 45 * - 90 FROM tab0 AS cor0 WHERE NULL IS NULL
----
15637107
1579547
7423709

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 2 * col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8544
SELECT + 54 * + COUNT( * ) AS col1 FROM tab0
----
162

skipif mysql # not compatible
query I rowsort label-8544
SELECT + 54 * + COUNT ( * ) AS col1 FROM tab0
----
162

query IIIIII rowsort
SELECT ALL * FROM tab1 cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

onlyif mysql # aggregate syntax: 
query I rowsort label-8546
SELECT DISTINCT + MIN( + ( - col0 ) ) AS col0 FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-8546
SELECT DISTINCT + MIN ( + ( - col0 ) ) AS col0 FROM tab0
----
-97

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8547
SELECT ALL col2 * + 48 * - + CAST( NULL AS DECIMAL ) * + 57 * - - ( - 29 ) * + - col0 AS col0 FROM tab2 AS cor0 WHERE NOT ( - col2 ) <> col1
----

skipif mysql # not compatible
query I rowsort label-8547
SELECT ALL col2 * + 48 * - + CAST ( NULL AS REAL ) * + 57 * - - ( - 29 ) * + - col0 AS col0 FROM tab2 AS cor0 WHERE NOT ( - col2 ) <> col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 59 col2 FROM tab1 AS cor0
----
-59
-59
-59

query I rowsort
SELECT DISTINCT + col1 * + ( - - col0 ) AS col0 FROM tab2 AS cor0
----
2346
4928
5025

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8550
SELECT DISTINCT col0 col1, + col1 / - + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8550
SELECT DISTINCT col0 col1, + col1 / - + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
51
NULL
85
NULL
91
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8551
SELECT - + 30 AS col2, CAST( + col0 AS SIGNED ) FROM tab2 AS cor0
----
-30
46
-30
64
-30
75

skipif mysql # not compatible
query II rowsort label-8551
SELECT - + 30 AS col2, CAST ( + col0 AS INTEGER ) FROM tab2 AS cor0
----
-30
46
-30
64
-30
75

query II rowsort
SELECT DISTINCT - col1 AS col1, - col1 FROM tab0 AS cor0
----
-1
-1
-21
-21
-81
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-8553
SELECT DISTINCT + - 30 + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-8553
SELECT DISTINCT + - 30 + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-8554
SELECT ( + + 75 ) + + COUNT( * ) FROM tab1
----
78

skipif mysql # not compatible
query I rowsort label-8554
SELECT ( + + 75 ) + + COUNT ( * ) FROM tab1
----
78

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 11 <= ( NULL ) AND NOT NULL IS NULL
----

query I rowsort
SELECT ALL + col1 + - - col0 * - + col1 FROM tab1
----
-420
-4230
-700

query III rowsort
SELECT * FROM tab1 WHERE 42 IS NULL AND NULL IS NULL
----

query I rowsort
SELECT 99 * - col0 + - 86 * + 97 * col0 * + col1 + + - col2 FROM tab1 AS cor0
----
-3553824
-35687811
-5961333

query I rowsort
SELECT 60 * 34 + - col2 FROM tab0 AS cor0
----
1941
1993
2030

query I rowsort
SELECT - col2 + - 37 AS col2 FROM tab0 AS cor0
----
-136
-47
-84

query I rowsort
SELECT DISTINCT - 5 + col2 FROM tab0 AS cor0 WHERE NOT ( col1 + + - col2 ) > NULL
----

query I rowsort
SELECT DISTINCT - ( - ( 92 ) ) FROM tab1 AS cor0
----
92

query I rowsort
SELECT + col0 * - 56 AS col1 FROM tab1 AS cor0
----
-2856
-4760
-5096

onlyif mysql # aggregate syntax: 
query I rowsort label-8564
SELECT ALL SUM( 93 ) AS col0 FROM tab1 AS cor0
----
279

skipif mysql # not compatible
query I rowsort label-8564
SELECT ALL SUM ( 93 ) AS col0 FROM tab1 AS cor0
----
279

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 55 col0 FROM tab0 AS cor0
----
55
55
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8566
SELECT ALL - ( - CAST( + + col0 AS SIGNED ) ) col2 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8566
SELECT ALL - ( - CAST ( + + col0 AS INTEGER ) ) col2 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT DISTINCT + 26 * - col2 * + 47 AS col0 FROM tab1 AS cor0
----
-117312
-72098
-83096

query III rowsort
SELECT * FROM tab1 WHERE NOT - + 84 + + col1 <> NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8569
SELECT DISTINCT 57 AS col2, col1 DIV - + col2 FROM tab1
----
57
0

skipif mysql # not compatible
query II rowsort label-8569
SELECT DISTINCT 57 AS col2, col1 / - + col2 FROM tab1
----
57
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8570
SELECT + 32 DIV + col1 AS col0 FROM tab1
----
0
2
6

skipif mysql # not compatible
query I rowsort label-8570
SELECT + 32 / + col1 AS col0 FROM tab1
----
0
2
6

query II rowsort
SELECT col1 * + 53 AS col2, 94 AS col0 FROM tab2
----
2703
94
3551
94
4081
94

query I rowsort
SELECT + - ( + + 34 ) FROM tab2 AS cor0
----
-34
-34
-34

query I rowsort
SELECT ALL 38 - - 28 * col2 FROM tab1 cor0 WHERE NULL > ( col2 ) + + 1 * + 28 + - col0 * - col0 + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8574
SELECT ALL + COUNT( * ) + + 31 FROM tab0 AS cor0 WHERE + 2 + - col0 NOT IN ( + ( col2 ) + col0 / + col2 )
----
34

skipif mysql # not compatible
query I rowsort label-8574
SELECT ALL + COUNT ( * ) + + 31 FROM tab0 AS cor0 WHERE + 2 + - col0 NOT IN ( + ( col2 ) + col0 / + col2 )
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-8575
SELECT MAX( ALL col0 ) AS col2 FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-8575
SELECT MAX ( ALL col0 ) AS col2 FROM tab0
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8576
SELECT - MIN( + CAST( NULL AS SIGNED ) ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8576
SELECT - MIN ( + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0
----
NULL

query I rowsort
SELECT col1 + + + 17 FROM tab1 AS cor0
----
22
31
64

query I rowsort
SELECT DISTINCT + - 25 AS col2 FROM tab0 cor0 WHERE NOT 72 + + - ( + 42 ) IS NULL
----
-25

query I rowsort
SELECT DISTINCT + + ( - col0 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN - 25 + col2 + + - col1 AND + - col0
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT + col0 NOT BETWEEN NULL AND - 22 / - col1
----

query I rowsort
SELECT - col1 + col2 * ( 84 ) AS col0 FROM tab1 AS cor0
----
4951
5665
8050

query I rowsort
SELECT ALL + - 38 AS col1 FROM tab1 cor0
----
-38
-38
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-8583
SELECT MIN( ALL + - col2 ) FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-8583
SELECT MIN ( ALL + - col2 ) FROM tab1
----
-96

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN - col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8585
SELECT ALL + MAX( DISTINCT + 12 ) AS col1 FROM tab2
----
12

skipif mysql # not compatible
query I rowsort label-8585
SELECT ALL + MAX ( DISTINCT + 12 ) AS col1 FROM tab2
----
12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 + - 80 + col0 col1, - 67 FROM tab0
----
-18
-67
116
-67
17
-67

query I rowsort
SELECT DISTINCT - col2 * col1 - + + 48 + + col1 FROM tab2
----
-1170
-3051
-3867

onlyif mysql # aggregate syntax: 
query I rowsort label-8588
SELECT DISTINCT ( - - COUNT( - col2 ) ) + 93 AS col0 FROM tab2
----
96

skipif mysql # not compatible
query I rowsort label-8588
SELECT DISTINCT ( - - COUNT ( - col2 ) ) + 93 AS col0 FROM tab2
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8589
SELECT MAX( ALL + 44 ) + - ( + 64 ) FROM tab2
----
-20

skipif mysql # not compatible
query I rowsort label-8589
SELECT MAX ( ALL + 44 ) + - ( + 64 ) FROM tab2
----
-20

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 12 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 9 AS col1 FROM tab1 cor0
----
-9
-9
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8592
SELECT DISTINCT CAST( col1 AS SIGNED ) * + 98 + ( - col1 ) AS col1 FROM tab0 AS cor0
----
2037
7857
97

skipif mysql # not compatible
query I rowsort label-8592
SELECT DISTINCT CAST ( col1 AS INTEGER ) * + 98 + ( - col1 ) AS col1 FROM tab0 AS cor0
----
2037
7857
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8593
SELECT DISTINCT + - COUNT( * ) * + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-8593
SELECT DISTINCT + - COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-9

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 + - 86 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8595
SELECT COUNT( + + 56 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8595
SELECT COUNT ( + + 56 ) AS col2 FROM tab1
----
3

query II rowsort
SELECT DISTINCT col0 AS col1, col1 AS col0 FROM tab2
----
46
51
64
77
75
67

onlyif mysql # aggregate syntax: 
query I rowsort label-8597
SELECT COUNT( 1 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8597
SELECT COUNT ( 1 ) AS col1 FROM tab1
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 col1, - col1 FROM tab2
----
51
-51
67
-67
77
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8599
SELECT + MIN( DISTINCT 81 ) AS col1 FROM tab2 WHERE NOT + CAST( NULL AS SIGNED ) * col0 IS NOT NULL
----
81

skipif mysql # not compatible
query I rowsort label-8599
SELECT + MIN ( DISTINCT 81 ) AS col1 FROM tab2 WHERE NOT + CAST ( NULL AS INTEGER ) * col0 IS NOT NULL
----
81

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 > ( + + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 < col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8602
SELECT ALL + 45 + + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-8602
SELECT ALL + 45 + + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
42

query I rowsort
SELECT ALL col1 FROM tab0 WHERE NOT NULL <= + col0
----

query I rowsort
SELECT ALL - col0 * - col2 * + + col1 * + 60 FROM tab1
----
1504500
17450160
4112640

query I rowsort
SELECT ALL - col0 * - - col2 * 93 FROM tab1 AS cor0
----
-455328
-466395
-575484

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8606
SELECT ALL CAST( - col1 AS SIGNED ) - - + ( - col0 ) + - 81 * 6 FROM tab1 AS cor0
----
-551
-576
-624

skipif mysql # not compatible
query I rowsort label-8606
SELECT ALL CAST ( - col1 AS INTEGER ) - - + ( - col0 ) + - 81 * 6 FROM tab1 AS cor0
----
-551
-576
-624

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8607
SELECT CAST( - - 51 AS SIGNED ) AS col1 FROM tab2 cor0
----
51
51
51

skipif mysql # not compatible
query I rowsort label-8607
SELECT CAST ( - - 51 AS INTEGER ) AS col1 FROM tab2 cor0
----
51
51
51

onlyif mysql # DIV for integer division: 
query II rowsort label-8608
SELECT DISTINCT - + col1, col0 DIV + 2 AS col1 FROM tab0 AS cor0
----
-1
48
-21
43
-81
7

skipif mysql # not compatible
query II rowsort label-8608
SELECT DISTINCT - + col1, col0 / + 2 AS col1 FROM tab0 AS cor0
----
-1
48
-21
43
-81
7

query I rowsort
SELECT DISTINCT + col1 * + - 8 AS col1 FROM tab2 AS cor0 WHERE NOT NULL < ( col1 )
----

query I rowsort
SELECT ALL + 35 + + + col2 * - col0 FROM tab2 AS cor0
----
-1023
-2525
-4315

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT - col1 col2, col2, 66 AS col1 FROM tab1 AS cor0
----
9 values hashing to d0efb746e26965ad06d7190394396b89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 col0, 99 AS col1 FROM tab0 AS cor0
----
-1
99
-21
99
-81
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8613
SELECT - 31 * CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8613
SELECT - 31 * CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8614
SELECT ALL + - SUM( DISTINCT col2 ) FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-8614
SELECT ALL + - SUM ( DISTINCT col2 ) FROM tab2 AS cor0
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-8615
SELECT - + MAX( ALL - 98 ) - 24 AS col0 FROM tab0 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-8615
SELECT - + MAX ( ALL - 98 ) - 24 AS col0 FROM tab0 AS cor0
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-8616
SELECT - - COUNT( ALL - + col0 ) AS col1 FROM tab1 WHERE ( - col2 IS NULL )
----
0

skipif mysql # not compatible
query I rowsort label-8616
SELECT - - COUNT ( ALL - + col0 ) AS col1 FROM tab1 WHERE ( - col2 IS NULL )
----
0

query I rowsort
SELECT + col2 * - 82 FROM tab2 WHERE 61 / col0 IS NOT NULL
----
-1886
-3280
-4756

query III rowsort
SELECT ALL * FROM tab1 WHERE + 30 = 20 + - col1
----

query I rowsort
SELECT - ( 9 ) FROM tab1 WHERE - col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8620
SELECT ALL + col1 - + - CAST( + col1 AS SIGNED ) * - col1 AS col2 FROM tab0
----
-420
-6480
0

skipif mysql # not compatible
query I rowsort label-8620
SELECT ALL + col1 - + - CAST ( + col1 AS INTEGER ) * - col1 AS col2 FROM tab0
----
-420
-6480
0

query I rowsort
SELECT DISTINCT col2 FROM tab2 cor0 WHERE NULL <> NULL
----

query II rowsort
SELECT DISTINCT - col0 AS col0, + col2 FROM tab1 cor0 WHERE NULL IS NULL OR + - col0 + + - col2 NOT BETWEEN + col0 / col1 - + - 83 + - ( col0 ) AND col0
----
-51
96
-85
59
-91
68

onlyif mysql # aggregate syntax: 
query I rowsort label-8623
SELECT + ( COUNT( + col0 ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8623
SELECT + ( COUNT ( + col0 ) ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8624
SELECT + - COUNT( * ) * - + 41 AS col2 FROM tab0 AS cor0
----
123

skipif mysql # not compatible
query I rowsort label-8624
SELECT + - COUNT ( * ) * - + 41 AS col2 FROM tab0 AS cor0
----
123

query II rowsort
SELECT ALL - col1 AS col0, + col1 FROM tab0
----
-1
1
-21
21
-81
81

query I rowsort
SELECT + col1 * - 79 FROM tab2
----
-4029
-5293
-6083

query I rowsort
SELECT ALL col2 * - ( + 18 ) FROM tab2 AS cor0
----
-1044
-414
-720

query II rowsort
SELECT col1 AS col1, + col2 FROM tab0 AS cor0
----
1
99
21
10
81
47

query I rowsort
SELECT DISTINCT - col1 * 90 * 10 AS col2 FROM tab1 AS cor0
----
-12600
-42300
-4500

query II rowsort
SELECT + 79, col2 * col2 AS col0 FROM tab0 AS cor0
----
79
100
79
2209
79
9801

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 11 + + - col2 / + + 70 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - col1 col2, - col2 AS col0 FROM tab2 AS cor0
----
-51
-23
-67
-58
-77
-40

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL BETWEEN + col2 AND NULL
----

query I rowsort
SELECT 50 * col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
2350
250
700

onlyif mysql # aggregate syntax: 
query I rowsort label-8635
SELECT + 26 * + 44 * COUNT( * ) AS col0 FROM tab1
----
3432

skipif mysql # not compatible
query I rowsort label-8635
SELECT + 26 * + 44 * COUNT ( * ) AS col0 FROM tab1
----
3432

query I rowsort
SELECT col2 AS col2 FROM tab1 WHERE NOT + col1 < - 38
----
59
68
96

query I rowsort
SELECT + 11 * - col1 FROM tab0
----
-11
-231
-891

query I rowsort
SELECT 70 * 98 FROM tab1
----
6860
6860
6860

query I rowsort
SELECT DISTINCT - + col2 * - - col1 AS col2 FROM tab0 AS cor0
----
-210
-3807
-99

query I rowsort
SELECT ALL + col0 * - 37 FROM tab0 AS cor0
----
-3219
-3589
-555

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 1 ) col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

onlyif mysql # aggregate syntax: 
query I rowsort label-8642
SELECT ALL - COUNT( - + col2 ) + + - 91 FROM tab1 AS cor0 WHERE NOT + col1 + - 17 + - - 57 * col1 + + + col2 IS NULL
----
-94

skipif mysql # not compatible
query I rowsort label-8642
SELECT ALL - COUNT ( - + col2 ) + + - 91 FROM tab1 AS cor0 WHERE NOT + col1 + - 17 + - - 57 * col1 + + + col2 IS NULL
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-8643
SELECT ALL - MAX( 69 ) FROM tab1 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-8643
SELECT ALL - MAX ( 69 ) FROM tab1 AS cor0
----
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-8644
SELECT DISTINCT ( + 47 ) DIV col1 AS col0 FROM tab0 AS cor0
----
0
2
47

skipif mysql # not compatible
query I rowsort label-8644
SELECT DISTINCT ( + 47 ) / col1 AS col0 FROM tab0 AS cor0
----
0
2
47

onlyif mysql # DIV for integer division: 
query I rowsort label-8645
SELECT - 63 DIV - + col2 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8645
SELECT - 63 / - + col2 FROM tab1
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + + col2 col2 FROM tab0
----
198
20
94

onlyif mysql # aggregate syntax: 
query I rowsort label-8647
SELECT SUM( DISTINCT col0 ) * - - COUNT( * ) * + COUNT( * ) AS col2 FROM tab0
----
1791

skipif mysql # not compatible
query I rowsort label-8647
SELECT SUM ( DISTINCT col0 ) * - - COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab0
----
1791

onlyif mysql # aggregate syntax: 
query I rowsort label-8648
SELECT COUNT( ALL - 69 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8648
SELECT COUNT ( ALL - 69 ) FROM tab1
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8649
SELECT + CAST( NULL AS SIGNED ) * + - AVG ( DISTINCT col1 ) / + COUNT( * ) - - 40 AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8649
SELECT + CAST ( NULL AS INTEGER ) * + - AVG ( DISTINCT col1 ) / + COUNT ( * ) - - 40 AS col0 FROM tab1
----
NULL

query I rowsort
SELECT ALL - 68 - 12 AS col2 FROM tab1
----
-80
-80
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-8651
SELECT + 29 - - - MIN( ALL + 78 ) AS col0 FROM tab0
----
-49

skipif mysql # not compatible
query I rowsort label-8651
SELECT + 29 - - - MIN ( ALL + 78 ) AS col0 FROM tab0
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-8652
SELECT ALL - 7 + COUNT( * ) FROM tab1
----
-4

skipif mysql # not compatible
query I rowsort label-8652
SELECT ALL - 7 + COUNT ( * ) FROM tab1
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8653
SELECT ALL + CAST( + 14 AS SIGNED ) * 96 DIV - COUNT( * ) FROM tab1 AS cor0
----
-448

skipif mysql # not compatible
query I rowsort label-8653
SELECT ALL + CAST ( + 14 AS INTEGER ) * 96 / - COUNT ( * ) FROM tab1 AS cor0
----
-448

onlyif mysql # aggregate syntax: 
query I rowsort label-8654
SELECT COUNT( * ) * + 30 FROM tab1 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-8654
SELECT COUNT ( * ) * + 30 FROM tab1 AS cor0
----
90

onlyif mysql # DIV for integer division: 
query I rowsort label-8655
SELECT - col2 DIV 21 FROM tab1
----
-2
-3
-4

skipif mysql # not compatible
query I rowsort label-8655
SELECT - col2 / 21 FROM tab1
----
-2
-3
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8656
SELECT - COUNT( * ) DIV COUNT( * ) col2 FROM tab2
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8656
SELECT - COUNT ( * ) / COUNT ( * ) col2 FROM tab2
----
-1

query I rowsort
SELECT DISTINCT + + 72 * + col0 + col0 FROM tab1 AS cor0 WHERE col1 * - 35 / + col0 + + col1 * + col0 >= NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8658
SELECT ALL 84 * + col0 + 35 AS col2, - col2 DIV - 27 col2 FROM tab1 AS cor0
----
4319
3
7175
2
7679
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8658
SELECT ALL 84 * + col0 + 35 AS col2, - col2 / - 27 col2 FROM tab1 AS cor0
----
4319
3
7175
2
7679
2

query I rowsort
SELECT - - col1 * - - 8 AS col1 FROM tab0 cor0
----
168
648
8

onlyif mysql # aggregate syntax: 
query I rowsort label-8660
SELECT + - MAX( ALL col0 ) FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-8660
SELECT + - MAX ( ALL col0 ) FROM tab0 AS cor0
----
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * 9 + col2 + - ( - 59 ) col2 FROM tab0 AS cor0
----
1031
241
852

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE ( - - col0 ) > + 1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - ( - - 79 ) FROM tab1
----
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8664
SELECT + CAST( - COUNT( + + col2 ) AS SIGNED ) AS col2 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-8664
SELECT + CAST ( - COUNT ( + + col2 ) AS INTEGER ) AS col2 FROM tab1
----
-3

query I rowsort
SELECT ALL - col2 + + - ( 39 ) FROM tab0
----
-138
-49
-86

query I rowsort
SELECT ALL + ( + - 18 ) AS col2 FROM tab0
----
-18
-18
-18

query II rowsort
SELECT ALL + col1 AS col0, 85 AS col2 FROM tab2
----
51
85
67
85
77
85

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8668
SELECT - col0, + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
-15
NULL
-87
NULL
-97
NULL

skipif mysql # not compatible
query II rowsort label-8668
SELECT - col0, + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
-15
NULL
-87
NULL
-97
NULL

query I rowsort
SELECT DISTINCT - col2 * + - col0 AS col2 FROM tab1
----
4896
5015
6188

query I rowsort
SELECT ALL 54 + + 35 AS col1 FROM tab2
----
89
89
89

query I rowsort
SELECT ALL - 35 * - col1 * ( - col2 ) FROM tab1
----
-10325
-111860
-47040

query III rowsort
SELECT ALL * FROM tab0 WHERE + - 34 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 40 + 0 FROM tab2 AS cor0
----
40
40
40

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 + - col0 / + col2 >= - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8675
SELECT - 23 * CAST( NULL AS SIGNED ) + - col0 * - col1 + - col2 * + + col1 + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8675
SELECT - 23 * CAST ( NULL AS INTEGER ) + - col0 * - col1 + - col2 * + + col1 + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8676
SELECT + - 37 + - + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-40

skipif mysql # not compatible
query I rowsort label-8676
SELECT + - 37 + - + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-40

query I rowsort
SELECT - col1 - - col1 * + 15 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8678
SELECT * FROM tab1 WHERE + CAST( NULL AS SIGNED ) / 82 IN ( + CAST( NULL AS SIGNED ) * 57 )
----

skipif mysql # not compatible
query III rowsort label-8678
SELECT * FROM tab1 WHERE + CAST ( NULL AS INTEGER ) / 82 IN ( + CAST ( NULL AS INTEGER ) * 57 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8679
SELECT DISTINCT MAX( - CAST( NULL AS SIGNED ) ) * + COUNT( * ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8679
SELECT DISTINCT MAX ( - CAST ( NULL AS INTEGER ) ) * + COUNT ( * ) AS col0 FROM tab1
----
NULL

query I rowsort
SELECT ALL col0 * - 20 FROM tab1
----
-1020
-1700
-1820

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col1 * + col0 + + col2 <> col1
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 96 * 87 <= NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - 49 ) >= ( col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 7 + + 64 AS col0 FROM tab0
----
71
71
71

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( 44 ) NOT BETWEEN - col1 * 1 AND 39 + - 5
----

query I rowsort
SELECT ALL - 73 AS col2 FROM tab1 WHERE NOT NULL IN ( col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8687
SELECT col1 + + col2 AS col2 FROM tab0 WHERE NOT CAST( NULL AS SIGNED ) NOT BETWEEN + 49 AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-8687
SELECT col1 + + col2 AS col2 FROM tab0 WHERE NOT CAST ( NULL AS INTEGER ) NOT BETWEEN + 49 AND ( NULL )
----

query I rowsort
SELECT 17 * 85 FROM tab2 WHERE NULL IS NULL
----
1445
1445
1445

onlyif mysql # aggregate syntax: 
query I rowsort label-8689
SELECT - 34 * COUNT( * ) + + 29 FROM tab1
----
-73

skipif mysql # not compatible
query I rowsort label-8689
SELECT - 34 * COUNT ( * ) + + 29 FROM tab1
----
-73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8690
SELECT 99 DIV + MAX( + col2 ) AS col1 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-8690
SELECT 99 / + MAX ( + col2 ) AS col1 FROM tab2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8691
SELECT 68 DIV + col0 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-8691
SELECT 68 / + col0 FROM tab2
----
0
1
1

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col1 / - 54 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8693
SELECT - col0 DIV CAST( + col1 * ( + col2 ) AS SIGNED ) AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8693
SELECT - col0 / CAST ( + col1 * ( + col2 ) AS INTEGER ) AS col0 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8694
SELECT ALL + COUNT( * ) + MAX( DISTINCT 10 ) FROM tab1
----
13

skipif mysql # not compatible
query I rowsort label-8694
SELECT ALL + COUNT ( * ) + MAX ( DISTINCT 10 ) FROM tab1
----
13

query III rowsort
SELECT ALL * FROM tab1 WHERE ( 66 ) <= NULL
----

query I rowsort
SELECT + col2 * - 45 + 51 AS col0 FROM tab2
----
-1749
-2559
-984

query I rowsort
SELECT ALL - 22 * + col0 FROM tab1
----
-1122
-1870
-2002

onlyif mysql # aggregate syntax: 
query I rowsort label-8698
SELECT COUNT( * ) col1 FROM tab0 WHERE - col2 >= - 66 + + col1
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8698
SELECT COUNT ( * ) col1 FROM tab0 WHERE - col2 >= - 66 + + col1
----
1

query I rowsort
SELECT ALL col1 AS col0 FROM tab1 WHERE NOT + col2 >= NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 / - col2 BETWEEN NULL AND ( - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col0 FROM tab2 WHERE NOT NULL NOT BETWEEN + 27 * - col1 + col0 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( col2 * - col1 ) NOT BETWEEN NULL AND ( col0 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8703
SELECT - col1 AS col2 FROM tab2 cor0 WHERE NOT col2 * - CAST( NULL AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-8703
SELECT - col1 AS col2 FROM tab2 cor0 WHERE NOT col2 * - CAST ( NULL AS REAL ) IS NULL
----

query I rowsort
SELECT ALL + 43 * + col1 AS col2 FROM tab0 AS cor0 WHERE ( 57 ) IS NOT NULL
----
3483
43
903

onlyif mysql # aggregate syntax: 
query I rowsort label-8705
SELECT ALL + MAX( DISTINCT col2 ) AS col0 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-8705
SELECT ALL + MAX ( DISTINCT col2 ) AS col0 FROM tab2 AS cor0
----
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 25 ) col2 FROM tab2 AS cor0
----
25
25
25

onlyif mysql # aggregate syntax: 
query I rowsort label-8707
SELECT + - MAX( 81 ) AS col2 FROM tab2 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-8707
SELECT + - MAX ( 81 ) AS col2 FROM tab2 AS cor0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-8708
SELECT - MAX( DISTINCT - 57 ) AS col0 FROM tab0 cor0
----
57

skipif mysql # not compatible
query I rowsort label-8708
SELECT - MAX ( DISTINCT - 57 ) AS col0 FROM tab0 cor0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-8709
SELECT DISTINCT + COUNT( ALL + 55 ) FROM tab1 AS cor0 WHERE ( NULL ) = NULL
----
0

skipif mysql # not compatible
query I rowsort label-8709
SELECT DISTINCT + COUNT ( ALL + 55 ) FROM tab1 AS cor0 WHERE ( NULL ) = NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8710
SELECT + - COUNT( - 8 ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8710
SELECT + - COUNT ( - 8 ) AS col1 FROM tab2 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 8 + 10 IN ( + col0 * - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8712
SELECT + + 68 * - COUNT( * ) FROM tab2 AS cor0
----
-204

skipif mysql # not compatible
query I rowsort label-8712
SELECT + + 68 * - COUNT ( * ) FROM tab2 AS cor0
----
-204

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) >= ( 8 )
----

query I rowsort
SELECT DISTINCT col0 FROM tab2 AS cor0 WHERE - col2 IN ( + col2 + - col2 / 76 )
----

query I rowsort
SELECT ALL 87 + 5 FROM tab2 AS cor0 WHERE + col2 + col2 NOT IN ( col1 * + 25 + + col1 )
----
92
92
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 26 ) + 62 col2 FROM tab0
----
88
88
88

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 > ( + col0 )
----
85
5
59
91
47
68

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) NOT IN ( + 44 ) OR NULL NOT IN ( + col2 )
----

query I rowsort
SELECT ALL - 7 + col1 FROM tab1
----
-2
40
7

query I rowsort
SELECT - col0 * + col1 AS col0 FROM tab2 WHERE NULL NOT IN ( 75 + col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8721
SELECT - ( + CAST( 94 AS SIGNED ) ) + COUNT( * ) AS col2 FROM tab2 WHERE col1 / + col1 - + 65 * col1 < + col2
----
-91

skipif mysql # not compatible
query I rowsort label-8721
SELECT - ( + CAST ( 94 AS INTEGER ) ) + COUNT ( * ) AS col2 FROM tab2 WHERE col1 / + col1 - + 65 * col1 < + col2
----
-91

query I rowsort
SELECT DISTINCT 80 + + + 23 FROM tab1
----
103

query III rowsort
SELECT * FROM tab2 WHERE ( col0 ) NOT IN ( 41 / - ( + ( + 78 ) * + 65 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-8724
SELECT DISTINCT + col1 + - - 61 DIV - 98 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-8724
SELECT DISTINCT + col1 + - - 61 / - 98 FROM tab2
----
51
67
77

query I rowsort
SELECT col1 AS col2 FROM tab2 WHERE ( 26 + + col0 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8726
SELECT + MAX( DISTINCT 49 ) FROM tab0 WHERE ( col2 + col1 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8726
SELECT + MAX ( DISTINCT 49 ) FROM tab0 WHERE ( col2 + col1 ) IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8727
SELECT DISTINCT - - 30 + MIN( - col2 ) AS col1 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-8727
SELECT DISTINCT - - 30 + MIN ( - col2 ) AS col1 FROM tab1 AS cor0
----
-66

query I rowsort
SELECT + col0 + + - col0 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8729
SELECT - COUNT( * ) + + 94 * + 55 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
5161

skipif mysql # not compatible
query I rowsort label-8729
SELECT - COUNT ( * ) + + 94 * + 55 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
5161

onlyif mysql # DIV for integer division: 
query I rowsort label-8730
SELECT 90 + + col0 + + + 42 DIV - col2 AS col0 FROM tab1
----
141
175
181

skipif mysql # not compatible
query I rowsort label-8730
SELECT 90 + + col0 + + + 42 / - col2 AS col0 FROM tab1
----
141
175
181

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL <> NULL
----

query I rowsort
SELECT col1 + 23 FROM tab2
----
100
74
90

query I rowsort
SELECT ALL + ( + 43 ) AS col1 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 199105619049271147956de52e7f5ed4

onlyif mysql # aggregate syntax: 
query I rowsort label-8734
SELECT DISTINCT - 69 * - COUNT( * ) + + + 29 FROM tab2 AS cor0
----
236

skipif mysql # not compatible
query I rowsort label-8734
SELECT DISTINCT - 69 * - COUNT ( * ) + + + 29 FROM tab2 AS cor0
----
236

onlyif mysql # aggregate syntax: 
query I rowsort label-8735
SELECT MAX( DISTINCT + col2 ) AS col1 FROM tab2 AS cor0 WHERE ( - col1 - - - col0 ) >= + 85 * 69
----
NULL

skipif mysql # not compatible
query I rowsort label-8735
SELECT MAX ( DISTINCT + col2 ) AS col1 FROM tab2 AS cor0 WHERE ( - col1 - - - col0 ) >= + 85 * 69
----
NULL

query I rowsort
SELECT col2 * 84 * + + 37 AS col2 FROM tab1 cor0
----
183372
211344
298368

onlyif mysql # aggregate syntax: 
query I rowsort label-8737
SELECT ALL ( - ( - - COUNT( * ) ) ) * COUNT( * ) AS col0 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-8737
SELECT ALL ( - ( - - COUNT ( * ) ) ) * COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8738
SELECT DISTINCT + COUNT( * ) * - 93 FROM tab0
----
-279

skipif mysql # not compatible
query I rowsort label-8738
SELECT DISTINCT + COUNT ( * ) * - 93 FROM tab0
----
-279

onlyif mysql # DIV for integer division: 
query I rowsort label-8739
SELECT ALL ( + + col0 ) DIV + col1 FROM tab0
----
0
4
97

skipif mysql # not compatible
query I rowsort label-8739
SELECT ALL ( + + col0 ) / + col1 FROM tab0
----
0
4
97

query I rowsort
SELECT ALL - 79 * col2 FROM tab1
----
-4661
-5372
-7584

onlyif mysql # DIV for integer division: 
query II rowsort label-8741
SELECT DISTINCT 18 DIV + 59 AS col2, - 64 DIV col1 AS col2 FROM tab2
----
0
-1
0
0

skipif mysql # not compatible
query II rowsort label-8741
SELECT DISTINCT 18 / + 59 AS col2, - 64 / col1 AS col2 FROM tab2
----
0
-1
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8742
SELECT col2 DIV + - 78 AS col2 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8742
SELECT col2 / + - 78 AS col2 FROM tab1
----
-1
0
0

query II rowsort
SELECT - col0 * + - col1 AS col0, col0 + 31 - 77 FROM tab0
----
1215
-31
1827
41
97
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8744
SELECT ALL 89 * + SUM( ALL + - col2 ) AS col0 FROM tab2
----
-10769

skipif mysql # not compatible
query I rowsort label-8744
SELECT ALL 89 * + SUM ( ALL + - col2 ) AS col0 FROM tab2
----
-10769

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col2 NOT BETWEEN ( NULL ) AND ( col2 )
----

query II rowsort
SELECT col1 * + + 71 AS col0, col0 AS col2 FROM tab0
----
1491
87
5751
15
71
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8747
SELECT COUNT( DISTINCT - col0 ) + - 58 FROM tab1 WHERE NOT 19 * - 40 - 17 * + 77 IS NULL
----
-55

skipif mysql # not compatible
query I rowsort label-8747
SELECT COUNT ( DISTINCT - col0 ) + - 58 FROM tab1 WHERE NOT 19 * - 40 - 17 * + 77 IS NULL
----
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-8748
SELECT DISTINCT - 12 DIV - col0 * 48 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8748
SELECT DISTINCT - 12 / - col0 * 48 AS col1 FROM tab0
----
0

query I rowsort
SELECT ( + 79 ) AS col0 FROM tab0 AS cor0
----
79
79
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 90 * - col0 col2 FROM tab1 AS cor0
----
-4590
-7650
-8190

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( 64 * + ( + 47 ) * - col0 ) BETWEEN ( NULL ) AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8752
SELECT MIN( ALL - ( col0 ) ) AS col1 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-8752
SELECT MIN ( ALL - ( col0 ) ) AS col1 FROM tab2 AS cor0
----
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-8753
SELECT DISTINCT + 1 DIV - col2 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8753
SELECT DISTINCT + 1 / - col2 AS col1 FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 48 col2, ( - col0 ) - + ( + 7 ) FROM tab0
----
48
-104
48
-22
48
-94

query II rowsort
SELECT ALL col1 + + - col1 * + 19, + col2 AS col1 FROM tab0
----
-1458
47
-18
99
-378
10

query I rowsort
SELECT DISTINCT + ( col1 ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
14
47
5

query I rowsort
SELECT - - col0 * 10 - - ( col2 ) FROM tab1 AS cor0 WHERE NOT col1 + col0 IS NOT NULL
----

query I rowsort
SELECT + col2 * - col1 * + - 57 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
11970
216999
5643

query I rowsort
SELECT ALL + col1 * + + col1 AS col1 FROM tab2 AS cor0
----
2601
4489
5929

query I rowsort
SELECT + - col0 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN - col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8761
SELECT + SUM( ALL + col0 ) AS col0 FROM tab0 cor0
----
199

skipif mysql # not compatible
query I rowsort label-8761
SELECT + SUM ( ALL + col0 ) AS col0 FROM tab0 cor0
----
199

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 - - col2 * + - 1 / + 99 + - col2 NOT BETWEEN - col1 AND - ( - ( + 52 ) )
----
51
14
96
85
5
59

onlyif mysql # aggregate syntax: 
query I rowsort label-8763
SELECT DISTINCT - COUNT( * ) + - SUM( ALL - + col1 ) + - 26 col1 FROM tab0 AS cor0
----
74

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8763
SELECT DISTINCT - COUNT ( * ) + - SUM ( ALL - + col1 ) + - 26 col1 FROM tab0 AS cor0
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8764
SELECT - CAST( + col0 AS SIGNED ) col1 FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8764
SELECT - CAST ( + col0 AS INTEGER ) col1 FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-8765
SELECT ALL ( COUNT( * ) ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8765
SELECT ALL ( COUNT ( * ) ) AS col2 FROM tab1 AS cor0
----
3

query I rowsort
SELECT - - col1 * + + 21 * + + col1 FROM tab2 WHERE NULL NOT BETWEEN ( NULL ) AND ( NULL )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE - - col0 * col1 + + - col0 NOT IN ( - col2 * + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT 42, col1 FROM tab2
----
42
51
42
67
42
77

query III rowsort
SELECT * FROM tab0 WHERE NULL IN ( 20, 67 + - col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NOT ( NULL ) BETWEEN + col2 AND - 77 )
----

query I rowsort
SELECT col1 * - 70 AS col1 FROM tab2
----
-3570
-4690
-5390

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8772
SELECT ALL + COUNT( * ) DIV + 15 + COUNT( - 3 ) + 14 AS col2 FROM tab2
----
17

skipif mysql # not compatible
query I rowsort label-8772
SELECT ALL + COUNT ( * ) / + 15 + COUNT ( - 3 ) + 14 AS col2 FROM tab2
----
17

query III rowsort
SELECT * FROM tab1 WHERE - 14 IN ( + col1 * + col0 + col1 )
----

query I rowsort
SELECT - + ( - + col1 ) / - - col2 FROM tab1 WHERE + + 34 IS NULL
----

query I rowsort
SELECT ALL ( - col1 ) + - - col0 FROM tab0
----
-66
66
96

query I rowsort
SELECT ALL ( + + col1 ) + - col0 AS col1 FROM tab2
----
-8
13
5

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 + col0 * + - col2 IS NULL
----

query I rowsort
SELECT col2 * + - col1 * - + col1 + - col1 + 21 AS col1 FROM tab0 AS cor0
----
119
308307
4410

query I rowsort
SELECT 76 FROM tab0 AS cor0 WHERE NULL IN ( col0 * col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + 9 - + col2 AS col1, col2 col2 FROM tab2 AS cor0
----
-14
23
-31
40
-49
58

query I rowsort
SELECT - + col1 - 93 FROM tab1 AS cor0
----
-107
-140
-98

query I rowsort
SELECT col2 - - 82 + + + 94 FROM tab1 AS cor0
----
235
244
272

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8783
SELECT DISTINCT SUM( 80 ) - - - 24 DIV + - 2 FROM tab2 AS cor0
----
252

skipif mysql # not compatible
query I rowsort label-8783
SELECT DISTINCT SUM ( 80 ) - - - 24 / + - 2 FROM tab2 AS cor0
----
252

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8784
SELECT - COUNT( * ) DIV 86 + + 4 AS col1 FROM tab2 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-8784
SELECT - COUNT ( * ) / 86 + + 4 AS col1 FROM tab2 AS cor0
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-8785
SELECT - ( - MIN( ALL 99 ) ) AS col1, 43 FROM tab0 cor0
----
99
43

skipif mysql # not compatible
query II rowsort label-8785
SELECT - ( - MIN ( ALL 99 ) ) AS col1, 43 FROM tab0 cor0
----
99
43

query II rowsort
SELECT ALL ( - col2 ) AS col0, 93 + col0 + - 69 * col0 * - 27 * col0 FROM tab1 AS cor0
----
-59
13460353
-68
15427687
-96
4845807

onlyif mysql # aggregate syntax: 
query I rowsort label-8787
SELECT - + MIN( ALL + col1 ) col0 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8787
SELECT - + MIN ( ALL + col1 ) col0 FROM tab1 AS cor0
----
-5

query I rowsort
SELECT 55 * 45 AS col2 FROM tab0 AS cor0
----
2475
2475
2475

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8789
SELECT - - SUM( + 9 ) AS col2 FROM tab2 AS cor0 WHERE NOT col1 * + + 31 < - CAST( ( 79 ) AS SIGNED )
----
27

skipif mysql # not compatible
query I rowsort label-8789
SELECT - - SUM ( + 9 ) AS col2 FROM tab2 AS cor0 WHERE NOT col1 * + + 31 < - CAST ( ( 79 ) AS INTEGER )
----
27

query II rowsort
SELECT DISTINCT - - col0 * 0, - 81 + col1 + + col1 * col2 + - col2 AS col1 FROM tab0 AS cor0
----
0
-80
0
140
0
3760

query II rowsort
SELECT 27, - 61 AS col2 FROM tab2
----
27
-61
27
-61
27
-61

query III rowsort
SELECT * FROM tab1 WHERE NOT - ( - - col1 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8793
SELECT - CAST( - col2 AS SIGNED ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
10
47
99

skipif mysql # not compatible
query I rowsort label-8793
SELECT - CAST ( - col2 AS INTEGER ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8794
SELECT - 52 * SUM( - col0 ) * 80 AS col1 FROM tab0
----
827840

skipif mysql # not compatible
query I rowsort label-8794
SELECT - 52 * SUM ( - col0 ) * 80 AS col1 FROM tab0
----
827840

onlyif mysql # aggregate syntax: 
query I rowsort label-8795
SELECT DISTINCT 1 * + COUNT( 46 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8795
SELECT DISTINCT 1 * + COUNT ( 46 ) FROM tab1
----
3

query II rowsort
SELECT + - col0, - 91 - - 56 AS col2 FROM tab1 AS cor0
----
-51
-35
-85
-35
-91
-35

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - ( + col2 ) + 70 ) > NULL
----

query I rowsort
SELECT + col2 * - 19 + - col2 + + 49 - - 1 * + 32 * - 22 AS col1 FROM tab1 AS cor0
----
-1835
-2015
-2575

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8799
SELECT ALL CAST( NULL AS SIGNED ) * + col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8799
SELECT ALL CAST ( NULL AS INTEGER ) * + col2 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - - col2 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
10
47
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8801
SELECT DISTINCT + COUNT( DISTINCT - col2 ) DIV 79 AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8801
SELECT DISTINCT + COUNT ( DISTINCT - col2 ) / 79 AS col2 FROM tab0 AS cor0
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 55 <= + 57
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT col2 + col2 AS col0, 16 FROM tab2 AS cor0
----
116
16
46
16
80
16

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8804
SELECT * FROM tab1 AS cor0 WHERE - ( + + 47 ) NOT IN ( ( + CAST( NULL AS SIGNED ) ) * 7 )
----

skipif mysql # not compatible
query III rowsort label-8804
SELECT * FROM tab1 AS cor0 WHERE - ( + + 47 ) NOT IN ( ( + CAST ( NULL AS INTEGER ) ) * 7 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8805
SELECT - SUM( 77 ) AS col1 FROM tab0 cor0 WHERE NULL IS NULL
----
-231

skipif mysql # not compatible
query I rowsort label-8805
SELECT - SUM ( 77 ) AS col1 FROM tab0 cor0 WHERE NULL IS NULL
----
-231

onlyif mysql # aggregate syntax: 
query I rowsort label-8806
SELECT ALL + 45 + + 96 + - SUM( DISTINCT - col2 ) AS col2 FROM tab0
----
297

skipif mysql # not compatible
query I rowsort label-8806
SELECT ALL + 45 + + 96 + - SUM ( DISTINCT - col2 ) AS col2 FROM tab0
----
297

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8807
SELECT + CAST( - 10 AS SIGNED ) AS col0 FROM tab2
----
-10
-10
-10

skipif mysql # not compatible
query I rowsort label-8807
SELECT + CAST ( - 10 AS INTEGER ) AS col0 FROM tab2
----
-10
-10
-10

query I rowsort
SELECT ALL - col1 * 17 + + - col1 FROM tab2
----
-1206
-1386
-918

query II rowsort
SELECT DISTINCT + 0 AS col0, ( - + col1 ) + + - col2 FROM tab0
----
0
-100
0
-128
0
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-8810
SELECT DISTINCT 0 DIV - col2 * col2 + + col0 AS col1 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-8810
SELECT DISTINCT 0 / - col2 * col2 + + col0 AS col1 FROM tab1
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8811
SELECT ALL - COUNT( DISTINCT + 58 ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-8811
SELECT ALL - COUNT ( DISTINCT + 58 ) FROM tab0
----
-1

query I rowsort
SELECT DISTINCT + + col2 - + ( - col0 ) AS col0 FROM tab0 AS cor0
----
196
62
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8813
SELECT + SUM( ALL - - 55 ) FROM tab0 AS cor0
----
165

skipif mysql # not compatible
query I rowsort label-8813
SELECT + SUM ( ALL - - 55 ) FROM tab0 AS cor0
----
165

query I rowsort
SELECT + col0 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( col2 ) AND ( col1 + ( 80 ) )
----

query I rowsort
SELECT - 50 - 39 + + col2 AS col1 FROM tab0 AS cor0
----
-42
-79
10

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8816
SELECT DISTINCT - 79 AS col0, + CAST( + 85 AS SIGNED ) * col0 * - 50 AS col0 FROM tab1
----
-79
-216750
-79
-361250
-79
-386750

skipif mysql # not compatible
query II rowsort label-8816
SELECT DISTINCT - 79 AS col0, + CAST ( + 85 AS INTEGER ) * col0 * - 50 AS col0 FROM tab1
----
-79
-216750
-79
-361250
-79
-386750

onlyif mysql # aggregate syntax: 
query I rowsort label-8817
SELECT 97 + - ( - COUNT( * ) ) FROM tab1
----
100

skipif mysql # not compatible
query I rowsort label-8817
SELECT 97 + - ( - COUNT ( * ) ) FROM tab1
----
100

query II rowsort
SELECT 50, - 27 AS col2 FROM tab1
----
50
-27
50
-27
50
-27

query I rowsort
SELECT col2 AS col2 FROM tab2 AS cor0 WHERE NOT col2 <> ( + 26 )
----

query I rowsort
SELECT ALL ( + - col2 ) AS col1 FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-8821
SELECT ( - 30 ) * + 33 * + COUNT( * ) FROM tab2
----
-2970

skipif mysql # not compatible
query I rowsort label-8821
SELECT ( - 30 ) * + 33 * + COUNT ( * ) FROM tab2
----
-2970

onlyif mysql # DIV for integer division: 
query I rowsort label-8822
SELECT + col0 DIV 98 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8822
SELECT + col0 / 98 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8823
SELECT ALL + ( - CAST( - col2 AS SIGNED ) ) FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-8823
SELECT ALL + ( - CAST ( - col2 AS INTEGER ) ) FROM tab2
----
23
40
58

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL < + - col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8825
SELECT ALL COUNT( * ), + COUNT( * ) FROM tab1 WHERE NOT NULL >= + - 85 / - col1
----
0
0

skipif mysql # not compatible
query II rowsort label-8825
SELECT ALL COUNT ( * ), + COUNT ( * ) FROM tab1 WHERE NOT NULL >= + - 85 / - col1
----
0
0

query I rowsort
SELECT DISTINCT + - 15 * + col0 + - col2 AS col0 FROM tab0 WHERE NOT NULL <> col2
----

query III rowsort
SELECT - col2 * col1, col1, - col1 AS col2 FROM tab0
----
9 values hashing to 02dc79c7b4b281052b9e88d4ceec5d6b

query I rowsort
SELECT DISTINCT + ( - - col1 ) * - col1 FROM tab1 AS cor0
----
-196
-2209
-25

query I rowsort
SELECT ALL col1 * - + col0 * + ( + + col2 ) + - 45 AS col0 FROM tab0 AS cor0
----
-18315
-57150
-9648

query II rowsort
SELECT ALL col1, col0 + + 47 AS col0 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT 68 + col1 FROM tab2 AS cor0
----
119
135
145

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8832
SELECT ALL + + CAST( NULL AS SIGNED ) * + col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8832
SELECT ALL + + CAST ( NULL AS INTEGER ) * + col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 - - + 63 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col1 + - - 45 + + col0 FROM tab1 AS cor0
----
110
135
183

onlyif mysql # aggregate syntax: 
query II rowsort label-8835
SELECT ALL + COUNT( * ) AS col0, + COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9
9

skipif mysql # not compatible
query II rowsort label-8835
SELECT ALL + COUNT ( * ) AS col0, + COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8836
SELECT DISTINCT + - MAX( ( + col1 ) ) + 42 * + + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NOT ( + - col0 ) IS NOT NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8836
SELECT DISTINCT + - MAX ( ( + col1 ) ) + 42 * + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NOT ( + - col0 ) IS NOT NULL )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8837
SELECT + col1 DIV + 47 AS col0 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8837
SELECT + col1 / + 47 AS col0 FROM tab1 AS cor0
----
0
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8838
SELECT DISTINCT + col1 DIV col2 + + + col1 + col0 FROM tab2 AS cor0
----
142
143
99

skipif mysql # not compatible
query I rowsort label-8838
SELECT DISTINCT + col1 / col2 + + + col1 + col0 FROM tab2 AS cor0
----
142
143
99

query I rowsort
SELECT + 87 * - col0 FROM tab2 AS cor0
----
-4002
-5568
-6525

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( NOT NULL < NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8841
SELECT DISTINCT + col2 DIV + col1 + - col0 * + - col2 AS col0 FROM tab0 AS cor0
----
705
870
9702

skipif mysql # not compatible
query I rowsort label-8841
SELECT DISTINCT + col2 / + col1 + - col0 * + - col2 AS col0 FROM tab0 AS cor0
----
705
870
9702

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - + 73 ) * + - ( - 69 ) col1 FROM tab0 AS cor0
----
-5037
-5037
-5037

onlyif mysql # DIV for integer division: 
query I rowsort label-8843
SELECT - - col2 DIV - + col2 - col1 + ( - 95 ) AS col1 FROM tab1 AS cor0
----
-101
-110
-143

skipif mysql # not compatible
query I rowsort label-8843
SELECT - - col2 / - + col2 - col1 + ( - 95 ) AS col1 FROM tab1 AS cor0
----
-101
-110
-143

query I rowsort
SELECT - col0 * - col1 + + - col1 FROM tab1
----
420
4230
700

query I rowsort
SELECT DISTINCT + 47 * + + 56 AS col2 FROM tab1 WHERE NOT + col0 * - col2 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL BETWEEN - col0 * col1 + + 58 AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE + col1 - - col0 > - ( - 52 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 68 + col2 FROM tab0
----
115
167
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8849
SELECT DISTINCT MAX( DISTINCT - CAST( NULL AS SIGNED ) ) + - 46 + + - 62 * - COUNT( * ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8849
SELECT DISTINCT MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) + - 46 + + - 62 * - COUNT ( * ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT ALL - col2 * - col2 FROM tab1 WHERE NOT NULL < ( - + 43 * + - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8851
SELECT - - MIN( + col1 ) + - - ( + ( - 79 ) ) AS col0 FROM tab2 AS cor0
----
-28

skipif mysql # not compatible
query I rowsort label-8851
SELECT - - MIN ( + col1 ) + - - ( + ( - 79 ) ) AS col0 FROM tab2 AS cor0
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-8852
SELECT COUNT( * ) * + COUNT( * ) * + COUNT( * ) * - COUNT( * ) FROM tab2 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-8852
SELECT COUNT ( * ) * + COUNT ( * ) * + COUNT ( * ) * - COUNT ( * ) FROM tab2 AS cor0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-8853
SELECT 12 * - - ( COUNT( * ) ) AS col1 FROM tab2 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-8853
SELECT 12 * - - ( COUNT ( * ) ) AS col1 FROM tab2 AS cor0
----
36

query I rowsort
SELECT ALL col1 - + - 31 * + col1 AS col1 FROM tab0 AS cor0
----
2592
32
672

onlyif mysql # aggregate syntax: 
query I rowsort label-8855
SELECT ALL - 0 + + - COUNT( * ) col0 FROM tab2
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8855
SELECT ALL - 0 + + - COUNT ( * ) col0 FROM tab2
----
-3

query I rowsort
SELECT DISTINCT ( + + col1 ) FROM tab2 WHERE NOT ( + col2 ) IS NULL
----
51
67
77

query I rowsort
SELECT - 40 * - - 63 AS col1 FROM tab0
----
-2520
-2520
-2520

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - ( + col2 ) + 63 IS NOT NULL OR - 2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 * 48 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8860
SELECT ALL COUNT( * ) DIV - - MAX( ALL col2 ) FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-8860
SELECT ALL COUNT ( * ) / - - MAX ( ALL col2 ) FROM tab1 cor0
----
0

query I rowsort
SELECT col0 + + col1 AS col0 FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----

query I rowsort
SELECT ALL + + col1 FROM tab0 cor0 WHERE 8 > + col0
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8863
SELECT - col0, + col1 / - - 87 / + ( + CAST( NULL AS DECIMAL ) ) AS col2 FROM tab1 AS cor0
----
-51
NULL
-85
NULL
-91
NULL

skipif mysql # not compatible
query II rowsort label-8863
SELECT - col0, + col1 / - - 87 / + ( + CAST ( NULL AS REAL ) ) AS col2 FROM tab1 AS cor0
----
-51
NULL
-85
NULL
-91
NULL

query I rowsort
SELECT ( - - 34 ) AS col0 FROM tab2 AS cor0
----
34
34
34

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT + + col0 < NULL OR + - ( col2 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL - col2, col0 - + 60 AS col1 FROM tab0
----
-10
27
-47
-45
-99
37

onlyif mysql # DIV for integer division: 
query I rowsort label-8867
SELECT + col2 DIV + - col2 AS col1 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8867
SELECT + col2 / + - col2 AS col1 FROM tab1
----
-1
-1
-1

query II rowsort
SELECT ALL col1 AS col2, col1 * - 75 FROM tab2
----
51
-3825
67
-5025
77
-5775

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col2 * col0 + col1 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8870
SELECT DISTINCT SUM( - col1 ) col1 FROM tab2
----
-195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8870
SELECT DISTINCT SUM ( - col1 ) col1 FROM tab2
----
-195

onlyif mysql # aggregate syntax: 
query II rowsort label-8871
SELECT DISTINCT - COUNT( * ), 34 AS col2 FROM tab1
----
-3
34

skipif mysql # not compatible
query II rowsort label-8871
SELECT DISTINCT - COUNT ( * ), 34 AS col2 FROM tab1
----
-3
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8872
SELECT + COUNT( * ) DIV + - 31 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8872
SELECT + COUNT ( * ) / + - 31 FROM tab2
----
0

query I rowsort
SELECT - col2 FROM tab0 WHERE NOT 39 IN ( + col2, 7 )
----
-10
-47
-99

query I rowsort
SELECT DISTINCT - col2 + + 99 AS col0 FROM tab2 AS cor0 WHERE + 36 = + col2
----

query II rowsort
SELECT DISTINCT col0, + col1 * 98 FROM tab1 AS cor0
----
51
1372
85
490
91
4606

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 78 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 34 FROM tab1 WHERE NULL = NULL
----

query I rowsort
SELECT 22 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

query I rowsort
SELECT ALL + col1 + - - 60 FROM tab1
----
107
65
74

query I rowsort
SELECT + col1 + - - col2 * - + col1 FROM tab0
----
-189
-3726
-98

query I rowsort
SELECT - + col0 * + col0 * col1 + - + col1 AS col1 FROM tab0 cor0
----
-158970
-18306
-9410

query II rowsort
SELECT + - col0 + col0, + col0 AS col2 FROM tab1 AS cor0
----
0
51
0
85
0
91

query I rowsort
SELECT - col0 + + - col1 - - + 93 AS col0 FROM tab1 AS cor0
----
-45
28
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8884
SELECT ALL + MAX( - 5 ) FROM tab2 cor0
----
-5

skipif mysql # not compatible
query I rowsort label-8884
SELECT ALL + MAX ( - 5 ) FROM tab2 cor0
----
-5

query I rowsort
SELECT + + 80 * + ( - 88 ) * - + col0 AS col2 FROM tab1 AS cor0
----
359040
598400
640640

query II rowsort
SELECT ALL - ( - col1 ), col1 FROM tab1 cor0
----
14
14
47
47
5
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8887
SELECT DISTINCT + + COUNT( * ) * + MAX( + col0 ) AS col1 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8887
SELECT DISTINCT + + COUNT ( * ) * + MAX ( + col0 ) AS col1 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT - 67 + col1 FROM tab1
----
-20
-53
-62

query III rowsort
SELECT ALL * FROM tab1 WHERE - 81 * + + col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1, col2 col0 FROM tab2 WHERE + col2 * + col2 - - col1 IS NULL
----

query I rowsort
SELECT ( + col0 ) - - - ( - 94 ) AS col0 FROM tab2
----
140
158
169

query III rowsort
SELECT * FROM tab2 WHERE + + 37 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 74 - col0 * + 92 col1 FROM tab2
----
-4158
-5814
-6826

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8894
SELECT DISTINCT - 69 - COUNT( * ) - + - CAST( NULL AS DECIMAL ) AS col1, 3 FROM tab2 AS cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-8894
SELECT DISTINCT - 69 - COUNT ( * ) - + - CAST ( NULL AS REAL ) AS col1, 3 FROM tab2 AS cor0
----
NULL
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 * - + col2 + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) >= + + 0 + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8897
SELECT MIN( - + col2 ) FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-8897
SELECT MIN ( - + col2 ) FROM tab2
----
-58

query I rowsort
SELECT ALL - col2 * - + 47 FROM tab0
----
2209
4653
470

query I rowsort
SELECT ALL + ( - + 46 ) AS col2 FROM tab0
----
-46
-46
-46

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 * + ( col1 ) * - 34 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-8901
SELECT + + COUNT( - 43 ), COUNT( * ) FROM tab0 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-8901
SELECT + + COUNT ( - 43 ), COUNT ( * ) FROM tab0 AS cor0
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8902
SELECT + + MAX( ALL + col1 ) AS col2 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-8902
SELECT + + MAX ( ALL + col1 ) AS col2 FROM tab0 AS cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8903
SELECT ALL + MIN( DISTINCT + col1 ) AS col0 FROM tab0 AS cor0 WHERE col1 / - 65 = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8903
SELECT ALL + MIN ( DISTINCT + col1 ) AS col0 FROM tab0 AS cor0 WHERE col1 / - 65 = NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8904
SELECT - MIN( - + col2 ) AS col1 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-8904
SELECT - MIN ( - + col2 ) AS col1 FROM tab1 AS cor0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8905
SELECT - - SUM( ALL - col1 ) FROM tab2 cor0
----
-195

skipif mysql # not compatible
query I rowsort label-8905
SELECT - - SUM ( ALL - col1 ) FROM tab2 cor0
----
-195

query I rowsort
SELECT DISTINCT - 46 FROM tab2 WHERE NOT 19 IS NOT NULL
----

query I rowsort
SELECT col0 * col2 * ( col2 ) * + 86 FROM tab2
----
2092724
21697800
8806400

query I rowsort
SELECT + + col1 FROM tab2 WHERE NOT ( NULL ) IN ( col0 * - - col2, + col2 * col0 )
----

query I rowsort
SELECT ALL 38 FROM tab1 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - 25 col2 FROM tab2
----
-1150
-1600
-1875

onlyif mysql # DIV for integer division: 
query I rowsort label-8911
SELECT 48 DIV - - 95 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8911
SELECT 48 / - - 95 AS col2 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8912
SELECT ALL - 34 DIV - col0 col2 FROM tab0
----
0
0
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8912
SELECT ALL - 34 / - col0 col2 FROM tab0
----
0
0
2

query I rowsort
SELECT ALL - col0 FROM tab0 WHERE NOT col1 * col2 IS NOT NULL
----

query I rowsort
SELECT + col1 FROM tab0 WHERE NOT - 6 IS NULL
----
1
21
81

query I rowsort
SELECT - - AVG ( ALL col0 ) AS col2 FROM tab1 WHERE NOT + - 53 * - + 3 + col2 IS NOT NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL < col1 / - + 90
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8917
SELECT DISTINCT - + SUM( ALL + CAST( + col1 AS SIGNED ) ) + - - COUNT( - - ( - - col2 ) ) FROM tab2 AS cor0
----
-192

skipif mysql # not compatible
query I rowsort label-8917
SELECT DISTINCT - + SUM ( ALL + CAST ( + col1 AS INTEGER ) ) + - - COUNT ( - - ( - - col2 ) ) FROM tab2 AS cor0
----
-192

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8918
SELECT + MIN( + 17 ) col2 FROM tab0 AS cor0 WHERE + 77 / + CAST( - col0 AS SIGNED ) BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8918
SELECT + MIN ( + 17 ) col2 FROM tab0 AS cor0 WHERE + 77 / + CAST ( - col0 AS INTEGER ) BETWEEN NULL AND NULL
----
NULL

query I rowsort
SELECT - col2 + col2 + - - ( - + col0 ) FROM tab2
----
-46
-64
-75

query II rowsort
SELECT DISTINCT 0, + 31 AS col0 FROM tab0
----
0
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 51, col0 col2 FROM tab0 AS cor0
----
51
15
51
87
51
97

onlyif mysql # DIV for integer division: 
query I rowsort label-8922
SELECT ALL 46 + col1 + - 93 DIV + 24 AS col2 FROM tab2 cor0
----
110
120
94

skipif mysql # not compatible
query I rowsort label-8922
SELECT ALL 46 + col1 + - 93 / + 24 AS col2 FROM tab2 cor0
----
110
120
94

query I rowsort
SELECT DISTINCT + col2 - + 21 + - col1 FROM tab2 AS cor0
----
-30
-49
-58

query I rowsort
SELECT + 31 - + - 96 FROM tab1 AS cor0
----
127
127
127

query I rowsort
SELECT + col2 - 24 + + col1 FROM tab2 AS cor0
----
101
50
93

onlyif mysql # aggregate syntax: 
query I rowsort label-8926
SELECT + COUNT( * ) + - 37 AS col1 FROM tab2 AS cor0
----
-34

skipif mysql # not compatible
query I rowsort label-8926
SELECT + COUNT ( * ) + - 37 AS col1 FROM tab2 AS cor0
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-8927
SELECT COUNT( * ) + COUNT( * ) * - + 67 FROM tab2 AS cor0
----
-198

skipif mysql # not compatible
query I rowsort label-8927
SELECT COUNT ( * ) + COUNT ( * ) * - + 67 FROM tab2 AS cor0
----
-198

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 45 * - col0 IS NOT NULL AND NOT + col2 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8929
SELECT ALL + COUNT( * ) * - - SUM( - col0 ) + - 29 FROM tab1
----
-710

skipif mysql # not compatible
query I rowsort label-8929
SELECT ALL + COUNT ( * ) * - - SUM ( - col0 ) + - 29 FROM tab1
----
-710

query III rowsort
SELECT ALL * FROM tab0 WHERE + col0 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8931
SELECT * FROM tab2 WHERE - + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8931
SELECT * FROM tab2 WHERE - + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE col0 * + 0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 92 * col2 AS col0 FROM tab2 AS cor0
----
2116
3680
5336

query I rowsort
SELECT ALL 2 * - col2 - + - 52 - + + col2 * - col2 + col2 * - 63 AS col0 FROM tab1 AS cor0
----
-302
256
3028

query I rowsort
SELECT - 77 * - - 65 + col0 * + 69 FROM tab2 cor0
----
-1831
-589
170

query I rowsort
SELECT DISTINCT 1 FROM tab1 AS cor0 WHERE - 58 * - col1 >= NULL
----

query I rowsort
SELECT ALL ( + - col1 ) * + - col1 AS col0 FROM tab0 AS cor0
----
1
441
6561

query I rowsort
SELECT ALL + col1 FROM tab0 cor0 WHERE col1 IS NOT NULL
----
1
21
81

query I rowsort
SELECT - col2 * 88 FROM tab1 cor0
----
-5192
-5984
-8448

onlyif mysql # aggregate syntax: 
query I rowsort label-8940
SELECT - MIN( ALL + + 58 ) col1 FROM tab0 AS cor0
----
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8940
SELECT - MIN ( ALL + + 58 ) col1 FROM tab0 AS cor0
----
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 98, + col0 * + col2 col2 FROM tab1 AS cor0
----
-98
4896
-98
5015
-98
6188

query I rowsort
SELECT ALL - col1 FROM tab0 WHERE ( NULL < - col2 )
----

query I rowsort
SELECT + col0 + + col2 * + col2 AS col0 FROM tab1 WHERE NOT col1 - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8944
SELECT DISTINCT MAX( DISTINCT - - col2 ) FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-8944
SELECT DISTINCT MAX ( DISTINCT - - col2 ) FROM tab1
----
96

onlyif mysql # aggregate syntax: 
query II rowsort label-8945
SELECT - + COUNT( * ), MIN( 63 ) / - COUNT( * ) AS col2 FROM tab1 WHERE NOT col1 + - col0 IS NOT NULL
----
0
NULL

skipif mysql # not compatible
query II rowsort label-8945
SELECT - + COUNT ( * ), MIN ( 63 ) / - COUNT ( * ) AS col2 FROM tab1 WHERE NOT col1 + - col0 IS NOT NULL
----
0
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8946
SELECT ALL 86 DIV + col0 + col1 DIV + + 92 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-8946
SELECT ALL 86 / + col0 + col1 / + + 92 FROM tab1
----
0
1
1

query I rowsort
SELECT + ( + + 97 ) + col2 FROM tab0
----
107
144
196

onlyif mysql # aggregate syntax: 
query I rowsort label-8948
SELECT DISTINCT - + SUM( col0 ) AS col2 FROM tab2 cor0
----
-185

skipif mysql # not compatible
query I rowsort label-8948
SELECT DISTINCT - + SUM ( col0 ) AS col2 FROM tab2 cor0
----
-185

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( + col0 ) + ( + + col2 ) / col0 * - - col0 AND + col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8950
SELECT ALL COUNT( * ) AS col0, - 44 FROM tab2 AS cor0 WHERE NOT - 59 <= NULL
----
0
-44

skipif mysql # not compatible
query II rowsort label-8950
SELECT ALL COUNT ( * ) AS col0, - 44 FROM tab2 AS cor0 WHERE NOT - 59 <= NULL
----
0
-44

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8951
SELECT 71 * - COUNT( * ) DIV + - COUNT( * ), 88 AS col2 FROM tab0 AS cor0
----
71
88

skipif mysql # not compatible
query II rowsort label-8951
SELECT 71 * - COUNT ( * ) / + - COUNT ( * ), 88 AS col2 FROM tab0 AS cor0
----
71
88

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL BETWEEN 61 AND - - col0
----

query I rowsort
SELECT - col2 FROM tab1 AS cor0 WHERE ( NOT ( 20 + 67 * - + col2 BETWEEN col1 AND NULL ) )
----
-59
-68
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 72 col0 FROM tab2 AS cor0
----
72
72
72

query II rowsort
SELECT ALL col2 AS col2, - 32 AS col1 FROM tab2 AS cor0
----
23
-32
40
-32
58
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-8956
SELECT COUNT( * ) * 8 AS col0 FROM tab0
----
24

skipif mysql # not compatible
query I rowsort label-8956
SELECT COUNT ( * ) * 8 AS col0 FROM tab0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-8957
SELECT MIN( ALL col0 ) AS col0 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-8957
SELECT MIN ( ALL col0 ) AS col0 FROM tab2
----
46

query I rowsort
SELECT col0 - - 85 FROM tab1
----
136
170
176

query I rowsort
SELECT - col0 - - - col0 AS col1 FROM tab1
----
-102
-170
-182

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8960
SELECT * FROM tab0 WHERE NOT col2 / + CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8960
SELECT * FROM tab0 WHERE NOT col2 / + CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT col0 * + 49, + col0 FROM tab1
----
2499
51
4165
85
4459
91

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 42 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0, ( col1 ) col1 FROM tab0
----
15
81
87
21
97
1

query II rowsort
SELECT ALL - 67, + col0 AS col0 FROM tab2
----
-67
46
-67
64
-67
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8965
SELECT + ( - + CAST( col2 AS SIGNED ) ) FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-8965
SELECT + ( - + CAST ( col2 AS INTEGER ) ) FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-8966
SELECT 90, COUNT( * ) AS col2 FROM tab2 AS cor0
----
90
3

skipif mysql # not compatible
query II rowsort label-8966
SELECT 90, COUNT ( * ) AS col2 FROM tab2 AS cor0
----
90
3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col0 * + 56 NOT BETWEEN + col0 AND - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col0, 31 AS col0 FROM tab0 cor0
----
10
31
47
31
99
31

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 JOIN tab0 cor1 ON NOT 10 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8970
SELECT DISTINCT - SUM( ALL - 13 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
117

skipif mysql # not compatible
query I rowsort label-8970
SELECT DISTINCT - SUM ( ALL - 13 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-8971
SELECT + COUNT( * ) * - 17 AS col0 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-8971
SELECT + COUNT ( * ) * - 17 AS col0 FROM tab1
----
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + 4 col0 FROM tab0
----
348
388
60

query I rowsort
SELECT col2 * - ( - 74 ) FROM tab0
----
3478
7326
740

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 / + 17 <> NULL
----

query I rowsort
SELECT DISTINCT - col1 * - 25 FROM tab1 cor0
----
1175
125
350

query I rowsort
SELECT ALL + + 25 * + 41 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8977
SELECT + - ( MAX( DISTINCT 90 ) ) FROM tab0 AS cor0 WHERE NOT NULL < - col2 + - - 81
----
NULL

skipif mysql # not compatible
query I rowsort label-8977
SELECT + - ( MAX ( DISTINCT 90 ) ) FROM tab0 AS cor0 WHERE NOT NULL < - col2 + - - 81
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8978
SELECT DISTINCT 95 DIV - col2 AS col1 FROM tab0 cor0
----
-2
-9
0

skipif mysql # not compatible
query I rowsort label-8978
SELECT DISTINCT 95 / - col2 AS col1 FROM tab0 cor0
----
-2
-9
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8979
SELECT - ( - - CAST( + COUNT( * ) AS SIGNED ) ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-8979
SELECT - ( - - CAST ( + COUNT ( * ) AS INTEGER ) ) AS col0 FROM tab0
----
-3

query I rowsort
SELECT DISTINCT - col0 * - col1 + col2 AS col0 FROM tab1
----
4345
484
810

query I rowsort
SELECT DISTINCT + + col0 FROM tab1 WHERE + col1 * - 8 < + col0
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8982
SELECT ALL - col2 + + + ( - 65 ) * col1 + col2 * - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8982
SELECT ALL - col2 + + + ( - 65 ) * col1 + col2 * - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE 69 - - ( col2 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col2 + - col1 + - 87 FROM tab2
----
-161
-204
-212

onlyif mysql # aggregate syntax: 
query I rowsort label-8985
SELECT DISTINCT + MIN( - ( + - 18 ) ) AS col0 FROM tab1
----
18

skipif mysql # not compatible
query I rowsort label-8985
SELECT DISTINCT + MIN ( - ( + - 18 ) ) AS col0 FROM tab1
----
18

query I rowsort
SELECT ALL col2 + + 40 + - ( - 78 ) FROM tab2
----
141
158
176

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8987
SELECT ALL + 16 * CAST( NULL AS DECIMAL ) * COUNT( * ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8987
SELECT ALL + 16 * CAST ( NULL AS REAL ) * COUNT ( * ) AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8988
SELECT + 43 + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8988
SELECT + 43 + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 41 col0 FROM tab0 AS cor0 WHERE ( NOT - col2 IS NULL )
----
41
41
41

onlyif mysql # aggregate syntax: 
query I rowsort label-8990
SELECT ALL - COUNT( * ) FROM tab1 AS cor0 WHERE NOT 20 + + 91 + 65 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8990
SELECT ALL - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT 20 + + 91 + 65 IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT - col0 - - col2 * + col2 FROM tab1 AS cor0
----
3396
4533
9165

query I rowsort
SELECT 40 - - + 4 FROM tab0 AS cor0
----
44
44
44

onlyif mysql # DIV for integer division: 
query II rowsort label-8993
SELECT col2 + - col2 + - + col1 DIV - col0 AS col1, 87 FROM tab1 AS cor0
----
0
87
0
87
0
87

skipif mysql # not compatible
query II rowsort label-8993
SELECT col2 + - col2 + - + col1 / - col0 AS col1, 87 FROM tab1 AS cor0
----
0
87
0
87
0
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8994
SELECT col2 * + CAST( NULL AS SIGNED ) + - + col0 FROM tab0 AS cor0 WHERE NULL NOT IN ( - 88 )
----

skipif mysql # not compatible
query I rowsort label-8994
SELECT col2 * + CAST ( NULL AS INTEGER ) + - + col0 FROM tab0 AS cor0 WHERE NULL NOT IN ( - 88 )
----

query I rowsort
SELECT + ( - - 39 ) AS col1 FROM tab1
----
39
39
39

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col0 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8997
SELECT SUM( - + 94 ) col2 FROM tab0
----
-282

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8997
SELECT SUM ( - + 94 ) col2 FROM tab0
----
-282

onlyif mysql # aggregate syntax: 
query I rowsort label-8998
SELECT ALL MAX( + 16 ) col2 FROM tab0 AS cor0
----
16

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8998
SELECT ALL MAX ( + 16 ) col2 FROM tab0 AS cor0
----
16

query I rowsort
SELECT - ( - 90 ) FROM tab1 AS cor0
----
90
90
90

query I rowsort
SELECT col0 * + - 6 FROM tab0
----
-522
-582
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-9001
SELECT MAX( + + 72 ) * - + MIN( + ( + col0 ) ) * + 97 + 81 FROM tab0
----
-104679

skipif mysql # not compatible
query I rowsort label-9001
SELECT MAX ( + + 72 ) * - + MIN ( + ( + col0 ) ) * + 97 + 81 FROM tab0
----
-104679

query I rowsort
SELECT DISTINCT + 88 + - 76 FROM tab2 WHERE NOT NULL IS NOT NULL
----
12

query I rowsort
SELECT col1 * + col2 * - - col2 FROM tab1
----
129024
17405
217328

query II rowsort
SELECT + col1 AS col1, + 10 AS col2 FROM tab2 AS cor0
----
51
10
67
10
77
10

query I rowsort
SELECT + 74 * + 29 AS col2 FROM tab0 cor0
----
2146
2146
2146

onlyif mysql # aggregate syntax: 
query I rowsort label-9006
SELECT - ( - COUNT( + 97 ) ) AS col2 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9006
SELECT - ( - COUNT ( + 97 ) ) AS col2 FROM tab2 cor0
----
3

query II rowsort
SELECT DISTINCT col2, 13 AS col0 FROM tab2 cor0
----
23
13
40
13
58
13

onlyif mysql # aggregate syntax: 
query I rowsort label-9008
SELECT - SUM( ALL - - col2 ) FROM tab0 cor0 WHERE - 84 IS NOT NULL
----
-156

skipif mysql # not compatible
query I rowsort label-9008
SELECT - SUM ( ALL - - col2 ) FROM tab0 cor0 WHERE - 84 IS NOT NULL
----
-156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9009
SELECT DISTINCT 88 col2 FROM tab0 AS cor0 WHERE + CAST( NULL AS SIGNED ) + 31 IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9009
SELECT DISTINCT 88 col2 FROM tab0 AS cor0 WHERE + CAST ( NULL AS INTEGER ) + 31 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE + 54 <= - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9011
SELECT - 88 * + + SUM( + 59 ) FROM tab0
----
-15576

skipif mysql # not compatible
query I rowsort label-9011
SELECT - 88 * + + SUM ( + 59 ) FROM tab0
----
-15576

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9012
SELECT * FROM tab0 WHERE + col1 * - col1 BETWEEN 49 * ( - CAST( + + col2 AS SIGNED ) ) + - col1 * col1 - - col0 AND - col2
----
15
81
47
87
21
10

skipif mysql # not compatible
query III rowsort label-9012
SELECT * FROM tab0 WHERE + col1 * - col1 BETWEEN 49 * ( - CAST ( + + col2 AS INTEGER ) ) + - col1 * col1 - - col0 AND - col2
----
15
81
47
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9013
SELECT 13 + 67 * + ( - COUNT( * ) ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE NULL IS NOT NULL
----
13

skipif mysql # not compatible
query I rowsort label-9013
SELECT 13 + 67 * + ( - COUNT ( * ) ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE NULL IS NOT NULL
----
13

query I rowsort
SELECT - 6 + + 79 FROM tab1
----
73
73
73

query I rowsort
SELECT - col2 + - - 39 - + 20 * 48 FROM tab2
----
-944
-961
-979

query I rowsort
SELECT + + 7 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

onlyif mysql # DIV for integer division: 
query I rowsort label-9017
SELECT ALL 68 DIV - col1 - col1 DIV + ( col1 ) + + + col2 FROM tab2 AS cor0
----
21
39
56

skipif mysql # not compatible
query I rowsort label-9017
SELECT ALL 68 / - col1 - col1 / + ( col1 ) + + + col2 FROM tab2 AS cor0
----
21
39
56

query II rowsort
SELECT ALL - 45 AS col0, 94 * - col1 * + - col2 FROM tab1 AS cor0
----
-45
126336
-45
27730
-45
300424

onlyif mysql # aggregate syntax: 
query I rowsort label-9019
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE 33 * - col1 / + col1 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9019
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE 33 * - col1 / + col1 IS NOT NULL
----
-3

query I rowsort
SELECT + ( + 47 ) * + col0 AS col1 FROM tab0 cor0
----
4089
4559
705

onlyif mysql # aggregate syntax: 
query I rowsort label-9021
SELECT DISTINCT COUNT( * ) * - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NULL >= col1 * + - 16
----
0

skipif mysql # not compatible
query I rowsort label-9021
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NULL >= col1 * + - 16
----
0

query I rowsort
SELECT col1 AS col2 FROM tab2 AS cor0 WHERE NOT + 7 + - 4 - - + col0 IS NULL
----
51
67
77

query I rowsort
SELECT + 12 * col0 FROM tab1
----
1020
1092
612

onlyif mysql # aggregate syntax: 
query I rowsort label-9024
SELECT + COUNT( * ) * + + 82 col1 FROM tab1
----
246

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9024
SELECT + COUNT ( * ) * + + 82 col1 FROM tab1
----
246

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + ( - col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9026
SELECT - - COUNT( * ) FROM tab1 WHERE NOT col1 BETWEEN - col2 AND - col1
----
3

skipif mysql # not compatible
query I rowsort label-9026
SELECT - - COUNT ( * ) FROM tab1 WHERE NOT col1 BETWEEN - col2 AND - col1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9027
SELECT DISTINCT * FROM tab0 WHERE NULL IN ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-9027
SELECT DISTINCT * FROM tab0 WHERE NULL IN ( CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT - ( + + col1 ) AS col1 FROM tab1 AS cor0
----
-14
-47
-5

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 40 < NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 49 + + - ( - col1 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 90 AS col2 FROM tab1 cor0
----
90
90
90

query III rowsort
SELECT * FROM tab1 cor0 WHERE + 31 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-9033
SELECT - + 17 DIV 42 col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9033
SELECT - + 17 / 42 col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT col1 * + col0 + + col0 AS col2 FROM tab2 AS cor0
----
2392
4992
5100

query I rowsort
SELECT DISTINCT + + 37 AS col1 FROM tab2 AS cor0
----
37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 16 + - col1 col2 FROM tab2
----
-35
-51
-61

query I rowsort
SELECT + - ( - - col2 ) FROM tab1 WHERE ( NOT - 6 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9038
SELECT DISTINCT 85 * - COUNT( * ) * - 25 + 67 FROM tab0
----
6442

skipif mysql # not compatible
query I rowsort label-9038
SELECT DISTINCT 85 * - COUNT ( * ) * - 25 + 67 FROM tab0
----
6442

onlyif mysql # aggregate syntax: 
query I rowsort label-9039
SELECT + SUM( DISTINCT 19 ) AS col0 FROM tab1, tab1 AS cor0
----
19

skipif mysql # not compatible
query I rowsort label-9039
SELECT + SUM ( DISTINCT 19 ) AS col0 FROM tab1, tab1 AS cor0
----
19

query III rowsort
SELECT ALL * FROM tab2 WHERE - col0 * col1 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9041
SELECT DISTINCT + COUNT( ALL - col0 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9041
SELECT DISTINCT + COUNT ( ALL - col0 ) FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9042
SELECT DISTINCT - col2 + + - 4 / + + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9042
SELECT DISTINCT - col2 + + - 4 / + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE 67 * + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9044
SELECT ALL CAST( NULL AS SIGNED ) + - - COUNT( * ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9044
SELECT ALL CAST ( NULL AS INTEGER ) + - - COUNT ( * ) AS col1 FROM tab0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9045
SELECT + - 20 * 99 - + 99 / CAST( - MIN( + col1 ) AS SIGNED ) FROM tab2 WHERE + 39 BETWEEN col1 + 14 AND - - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9045
SELECT + - 20 * 99 - + 99 / CAST ( - MIN ( + col1 ) AS INTEGER ) FROM tab2 WHERE + 39 BETWEEN col1 + 14 AND - - col2
----
NULL

query II rowsort
SELECT ALL + + col1, + 34 AS col0 FROM tab2 AS cor0
----
51
34
67
34
77
34

query I rowsort
SELECT + col2 * - + col1 + col0 + - - 86 * + col1 FROM tab1 AS cor0
----
-89
220
937

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9048
SELECT - CAST( 68 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-68
-68
-68

skipif mysql # not compatible
query I rowsort label-9048
SELECT - CAST ( 68 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-68
-68
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9049
SELECT ALL + CAST( + + MAX( ALL - col2 ) AS SIGNED ) + - - 91 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
32

skipif mysql # not compatible
query I rowsort label-9049
SELECT ALL + CAST ( + + MAX ( ALL - col2 ) AS INTEGER ) + - - 91 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
32

query I rowsort
SELECT DISTINCT + col2 + + 39 AS col2 FROM tab2
----
62
79
97

query I rowsort
SELECT ALL - col0 AS col2 FROM tab1 AS cor0 WHERE - 17 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9052
SELECT DISTINCT + MIN( ALL col2 ) FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-9052
SELECT DISTINCT + MIN ( ALL col2 ) FROM tab2 AS cor0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-9053
SELECT ALL + - ( - COUNT( + + ( + + col0 ) ) ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9053
SELECT ALL + - ( - COUNT ( + + ( + + col0 ) ) ) AS col1 FROM tab0 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-9054
SELECT - + col1 * + ( + 26 ) + col0 + col1 DIV 39 + col1 AS col0 FROM tab2 AS cor0
----
-1228
-1599
-1860

skipif mysql # not compatible
query I rowsort label-9054
SELECT - + col1 * + ( + 26 ) + col0 + col1 / 39 + col1 AS col0 FROM tab2 AS cor0
----
-1228
-1599
-1860

query I rowsort
SELECT - 28 * col2 AS col1 FROM tab1 AS cor0
----
-1652
-1904
-2688

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col2 + - - ( + + col2 ) IS NOT NULL
----

query II rowsort
SELECT DISTINCT 75 * 92 * + col1, col2 FROM tab1
----
324300
68
34500
59
96600
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 AS col1, ( - col2 ) col0 FROM tab0
----
15
-47
87
-10
97
-99

query I rowsort
SELECT + 93 * + + col0 AS col1 FROM tab0 AS cor0
----
1395
8091
9021

onlyif mysql # aggregate syntax: 
query I rowsort label-9060
SELECT ALL SUM( + col0 ) col2 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9060
SELECT ALL SUM ( + col0 ) col2 FROM tab0 AS cor0
----
199

onlyif mysql # aggregate syntax: 
query I rowsort label-9061
SELECT + + MIN( DISTINCT + + 49 ) AS col0 FROM tab1 AS cor0
----
49

skipif mysql # not compatible
query I rowsort label-9061
SELECT + + MIN ( DISTINCT + + 49 ) AS col0 FROM tab1 AS cor0
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-9062
SELECT ALL - COUNT( * ) + - + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-9062
SELECT ALL - COUNT ( * ) + - + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-6

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 JOIN tab1 AS cor1 ON NOT NULL IS NOT NULL WHERE NOT ( NULL IS NOT NULL )
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT + col1 + + 5 + - col2 <> NULL
----

query I rowsort
SELECT DISTINCT 14 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9066
SELECT ALL + 43 * col1 + col1 DIV col1 + 77 FROM tab0 AS cor0
----
121
3561
981

skipif mysql # not compatible
query I rowsort label-9066
SELECT ALL + 43 * col1 + col1 / col1 + 77 FROM tab0 AS cor0
----
121
3561
981

query I rowsort
SELECT - col1 + + ( col2 ) FROM tab0 AS cor0 WHERE NULL = NULL
----

query I rowsort
SELECT ALL - col0 * - col2 + col0 FROM tab1
----
4947
5100
6279

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9069
SELECT MAX( - col2 ) DIV COUNT( * ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-9069
SELECT MAX ( - col2 ) / COUNT ( * ) AS col0 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9070
SELECT + MAX( - 23 ) FROM tab0
----
-23

skipif mysql # not compatible
query I rowsort label-9070
SELECT + MAX ( - 23 ) FROM tab0
----
-23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 AS col2, col0 col0 FROM tab1
----
51
51
85
85
91
91

query I rowsort
SELECT DISTINCT + col1 + 95 AS col1 FROM tab2
----
146
162
172

query III rowsort
SELECT ALL * FROM tab2 WHERE - col2 / col2 * + col0 + ( + 14 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - + 87 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ( col1 ) - - - col2 AS col1 FROM tab2
----
28
37
9

query I rowsort
SELECT ALL + 80 FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND col0 + + 51
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9077
SELECT DISTINCT - SUM( - col1 ) - - + CAST( NULL AS SIGNED ) col1, MAX( + col1 ) AS col0 FROM tab2 AS cor0
----
NULL
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9077
SELECT DISTINCT - SUM ( - col1 ) - - + CAST ( NULL AS INTEGER ) col1, MAX ( + col1 ) AS col0 FROM tab2 AS cor0
----
NULL
77

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( NOT - 74 <= NULL )
----

query I rowsort
SELECT DISTINCT + 30 * - 59 FROM tab0
----
-1770

query I rowsort
SELECT 54 * - col1 * - col2 * + - 9 * + - col1 FROM tab0
----
149866362
2143260
48114

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9081
SELECT + 47 * CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9081
SELECT + 47 * CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + 15 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 1172c9a62bdad7db0def9205c06ee1f2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col2, - col2 FROM tab0
----
10
-10
47
-47
99
-99

query I rowsort
SELECT ALL 36 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752

query I rowsort
SELECT ALL 28 AS col1 FROM tab2 cor0
----
28
28
28

onlyif mysql # aggregate syntax: 
query I rowsort label-9086
SELECT + 37 * - SUM( ( col1 ) ) + - 85 FROM tab0 AS cor0 WHERE NOT + col2 * + + col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9086
SELECT + 37 * - SUM ( ( col1 ) ) + - 85 FROM tab0 AS cor0 WHERE NOT + col2 * + + col0 IS NOT NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 16 * 15 BETWEEN - col0 + - 5 AND - col2 * col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9088
SELECT DISTINCT MAX( 13 ) FROM tab1 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-9088
SELECT DISTINCT MAX ( 13 ) FROM tab1 AS cor0
----
13

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9089
SELECT ALL - + CAST( NULL AS DECIMAL ) col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9089
SELECT ALL - + CAST ( NULL AS REAL ) col1 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9090
SELECT - CAST( + + 46 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-46
-46
-46

skipif mysql # not compatible
query I rowsort label-9090
SELECT - CAST ( + + 46 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-46
-46
-46

query I rowsort
SELECT ALL - 32 * + col0 + + col0 FROM tab0 AS cor0
----
-2697
-3007
-465

query I rowsort
SELECT - 2 * + + 92 FROM tab2 AS cor0
----
-184
-184
-184

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - col1 ) * col0 <= - + 18
----

query II rowsort
SELECT - col2 AS col2, - 33 FROM tab0 AS cor0
----
-10
-33
-47
-33
-99
-33

query II rowsort
SELECT DISTINCT 33 AS col1, col0 * + - ( - + 73 ) * + col0 AS col2 FROM tab2 AS cor0
----
33
154468
33
299008
33
410625

onlyif mysql # aggregate syntax: 
query I rowsort label-9096
SELECT ALL + SUM( DISTINCT - + col1 ) FROM tab1 AS cor0 WHERE col2 BETWEEN - col0 * + - col0 AND - - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9096
SELECT ALL + SUM ( DISTINCT - + col1 ) FROM tab1 AS cor0 WHERE col2 BETWEEN - col0 * + - col0 AND - - col0
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT + 15 BETWEEN col1 AND - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 49 AS col2 FROM tab2
----
-49
-49
-49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 89 col0 FROM tab1
----
-89

query I rowsort
SELECT + 36 FROM tab2 AS cor0 WHERE NOT NULL = + 87 + col2
----

query I rowsort
SELECT ALL + 7 * + 96 AS col0 FROM tab1 AS cor0
----
672
672
672

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9102
SELECT * FROM tab0 AS cor0 WHERE NOT ( col0 * - + CAST( NULL AS SIGNED ) + + + col0 ) NOT BETWEEN ( NULL ) AND - 24 * 89
----

skipif mysql # not compatible
query III rowsort label-9102
SELECT * FROM tab0 AS cor0 WHERE NOT ( col0 * - + CAST ( NULL AS INTEGER ) + + + col0 ) NOT BETWEEN ( NULL ) AND - 24 * 89
----

query I rowsort
SELECT ALL col0 AS col0 FROM tab0 cor0 WHERE ( NULL ) NOT BETWEEN - col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9104
SELECT ALL + MAX( ALL col2 ) AS col0 FROM tab0 cor0
----
99

skipif mysql # not compatible
query I rowsort label-9104
SELECT ALL + MAX ( ALL col2 ) AS col0 FROM tab0 cor0
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9105
SELECT - - col0 * - - ( + - CAST( col0 AS SIGNED ) ) + + col0 * + ( - 2 ) AS col1 FROM tab1 AS cor0
----
-2703
-7395
-8463

skipif mysql # not compatible
query I rowsort label-9105
SELECT - - col0 * - - ( + - CAST ( col0 AS INTEGER ) ) + + col0 * + ( - 2 ) AS col1 FROM tab1 AS cor0
----
-2703
-7395
-8463

query I rowsort
SELECT - - col1 - - 94 - - + ( 57 ) AS col1 FROM tab1 AS cor0
----
156
165
198

onlyif mysql # DIV for integer division: 
query I rowsort label-9107
SELECT + col2 - - col1 DIV + - ( - col2 ) FROM tab2 AS cor0
----
25
41
59

skipif mysql # not compatible
query I rowsort label-9107
SELECT + col2 - - col1 / + - ( - col2 ) FROM tab2 AS cor0
----
25
41
59

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 1 = NULL
----

query I rowsort
SELECT 48 - + + col0 FROM tab1 AS cor0
----
-3
-37
-43

query I rowsort
SELECT - col1 + - + 13 + + - col0 FROM tab0 AS cor0
----
-109
-111
-121

query I rowsort
SELECT ALL + 95 FROM tab1 AS cor0 WHERE NOT - col1 * + - 69 + col1 NOT BETWEEN + col2 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9112
SELECT - col1 + 10 + col1 DIV 16 * + col0 AS col1 FROM tab2 cor0
----
189
243
97

skipif mysql # not compatible
query I rowsort label-9112
SELECT - col1 + 10 + col1 / 16 * + col0 AS col1 FROM tab2 cor0
----
189
243
97

query I rowsort
SELECT - 73 * 56 AS col1 FROM tab1 AS cor0 WHERE - 76 IS NOT NULL
----
-4088
-4088
-4088

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9114
SELECT ALL + - CAST( + col0 AS SIGNED ) FROM tab0 AS cor0 WHERE NOT ( NULL IS NOT NULL )
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-9114
SELECT ALL + - CAST ( + col0 AS INTEGER ) FROM tab0 AS cor0 WHERE NOT ( NULL IS NOT NULL )
----
-15
-87
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9115
SELECT DISTINCT COUNT( * ) + + COUNT( * ) + + ( COUNT( * ) ) + - + 8 * + CAST( NULL AS SIGNED ) + COUNT( * ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9115
SELECT DISTINCT COUNT ( * ) + + COUNT ( * ) + + ( COUNT ( * ) ) + - + 8 * + CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col0 FROM tab0
----
NULL

query I rowsort
SELECT col0 + - - 19 * - col2 AS col2 FROM tab1
----
-1036
-1201
-1773

query I rowsort
SELECT col2 + + col1 + - - col2 AS col1 FROM tab0
----
175
199
41

query I rowsort
SELECT - col1 * 65 + - col1 AS col1 FROM tab2
----
-3366
-4422
-5082

query I rowsort
SELECT col0 * + - col0 * - - 32 FROM tab2 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col0 NOT IN ( + col1, 98 * + - col0 * col1, - + col1 / + 75 * 97 / col1 * - 24 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - + col2 * + col2 + + col0 + - col2 * + - 45 - + 42 + col0 FROM tab1 WHERE 51 IS NOT NULL
----
-1424
-4836
-698

query III rowsort
SELECT ALL * FROM tab2 WHERE - - col2 * col0 + + col1 * - col0 + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9123
SELECT DISTINCT - + 84 + + COUNT( * ) FROM tab2 cor0
----
-81

skipif mysql # not compatible
query I rowsort label-9123
SELECT DISTINCT - + 84 + + COUNT ( * ) FROM tab2 cor0
----
-81

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN col2 * - col2 AND + - col0
----

query II rowsort
SELECT ( col2 ) AS col2, col1 * + + col2 FROM tab0 AS cor0
----
10
210
47
3807
99
99

query I rowsort
SELECT DISTINCT + - col0 * - col2 * + 87 AS col2 FROM tab2 AS cor0
----
222720
378450
92046

query II rowsort
SELECT ALL + col1, col1 * + - 41 + - 51 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN + ( 45 ) AND + + col0
----

query I rowsort
SELECT DISTINCT + 55 * col2 AS col2 FROM tab2 cor0
----
1265
2200
3190

onlyif mysql # aggregate syntax: 
query I rowsort label-9129
SELECT ALL + COUNT( * ) * ( - COUNT( * ) ) FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-9129
SELECT ALL + COUNT ( * ) * ( - COUNT ( * ) ) FROM tab1 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9130
SELECT DISTINCT - COUNT( * ) FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-9130
SELECT DISTINCT - COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-9131
SELECT 16 DIV - 43 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9131
SELECT 16 / - 43 FROM tab2
----
0
0
0

query II rowsort
SELECT col0 AS col1, - col2 AS col0 FROM tab2 AS cor0
----
46
-23
64
-40
75
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9133
SELECT CAST( - 33 AS SIGNED ) col2 FROM tab1 AS cor0
----
-33
-33
-33

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9133
SELECT CAST ( - 33 AS INTEGER ) col2 FROM tab1 AS cor0
----
-33
-33
-33

query I rowsort
SELECT DISTINCT - col0 * ( ( - col0 ) ) FROM tab2 AS cor0
----
2116
4096
5625

onlyif mysql # aggregate syntax: 
query I rowsort label-9135
SELECT ALL + COUNT( * ) * - 73 * - SUM( + 5 ) AS col0 FROM tab1 AS cor0
----
3285

skipif mysql # not compatible
query I rowsort label-9135
SELECT ALL + COUNT ( * ) * - 73 * - SUM ( + 5 ) AS col0 FROM tab1 AS cor0
----
3285

query I rowsort
SELECT DISTINCT - col1 * + + col1 FROM tab0 AS cor0
----
-1
-441
-6561

onlyif mysql # aggregate syntax: 
query I rowsort label-9137
SELECT MAX( 28 ) AS col2 FROM tab2 AS cor0
----
28

skipif mysql # not compatible
query I rowsort label-9137
SELECT MAX ( 28 ) AS col2 FROM tab2 AS cor0
----
28

query I rowsort
SELECT 33 AS col1 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
33
33
33

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9139
SELECT DISTINCT + COUNT( * ) + + 76 AS col2 FROM tab1 WHERE NOT NULL < CAST( NULL AS DECIMAL ) + - - col2 + 58 * - ( col0 ) + col0
----
76

skipif mysql # not compatible
query I rowsort label-9139
SELECT DISTINCT + COUNT ( * ) + + 76 AS col2 FROM tab1 WHERE NOT NULL < CAST ( NULL AS REAL ) + - - col2 + 58 * - ( col0 ) + col0
----
76

query II rowsort
SELECT col1 * col0 AS col1, - col2 FROM tab2
----
2346
-23
4928
-40
5025
-58

query II rowsort
SELECT - 23 AS col1, col1 * + col0 * col0 AS col0 FROM tab0
----
-23
158949
-23
18225
-23
9409

query I rowsort
SELECT DISTINCT 69 * + - col0 FROM tab1
----
-3519
-5865
-6279

query I rowsort
SELECT 69 * - - 3 FROM tab2
----
207
207
207

query II rowsort
SELECT + col2 AS col2, - col2 FROM tab1 AS cor0
----
59
-59
68
-68
96
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + 15 col0 FROM tab0 AS cor0
----
1215
15
315

onlyif mysql # DIV for integer division: 
query I rowsort label-9146
SELECT + - 40 DIV - 68 + + col1 FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-9146
SELECT + - 40 / - 68 + + col1 FROM tab0 AS cor0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9147
SELECT ALL + 0 + 87 * + COUNT( * ) col1 FROM tab2 cor0
----
261

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9147
SELECT ALL + 0 + 87 * + COUNT ( * ) col1 FROM tab2 cor0
----
261

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9148
SELECT ALL + col2 * + CAST( - - 57 AS SIGNED ) * - 77 * - - col0 + - col0 - + col0 + + - col2 AS col2 FROM tab0 AS cor0
----
-3094322
-3818614
-42147860

skipif mysql # not compatible
query I rowsort label-9148
SELECT ALL + col2 * + CAST ( - - 57 AS INTEGER ) * - 77 * - - col0 + - col0 - + col0 + + - col2 AS col2 FROM tab0 AS cor0
----
-3094322
-3818614
-42147860

onlyif mysql # aggregate syntax: 
query I rowsort label-9149
SELECT ALL - MIN( DISTINCT - + col1 ) AS col1 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-9149
SELECT ALL - MIN ( DISTINCT - + col1 ) AS col1 FROM tab1 AS cor0
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9150
SELECT - COUNT( * ) col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE - ( - CAST( NULL AS SIGNED ) ) BETWEEN - + 0 AND ( NULL )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9150
SELECT - COUNT ( * ) col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE - ( - CAST ( NULL AS INTEGER ) ) BETWEEN - + 0 AND ( NULL )
----
0

query I rowsort
SELECT 37 + - col0 FROM tab1 AS cor0
----
-14
-48
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9152
SELECT ALL + CAST( + AVG ( + + 93 ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-9152
SELECT ALL + CAST ( + AVG ( + + 93 ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
93

query I rowsort
SELECT 49 FROM tab2 cor0 WHERE col0 NOT IN ( 98 + - 79 )
----
49
49
49

onlyif mysql # DIV for integer division: 
query I rowsort label-9154
SELECT DISTINCT + + 16 DIV + col2 FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-9154
SELECT DISTINCT + + 16 / + col2 FROM tab0 AS cor0
----
0
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9155
SELECT - COUNT( * ) FROM tab0 cor0 WHERE ( NULL ) NOT BETWEEN + col2 * - + 2 + - - 53 * + 99 * - CAST( + + 13 AS SIGNED ) + col2 + - 8 / + col2 - - 54 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-9155
SELECT - COUNT ( * ) FROM tab0 cor0 WHERE ( NULL ) NOT BETWEEN + col2 * - + 2 + - - 53 * + 99 * - CAST ( + + 13 AS INTEGER ) + col2 + - 8 / + col2 - - 54 AND NULL
----
0

query I rowsort
SELECT col2 AS col1 FROM tab2 AS cor0 WHERE - col1 + - col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 17 AS col0, + ( 35 ) col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-17
35

onlyif mysql # DIV for integer division: 
query I rowsort label-9158
SELECT ALL - col1 DIV - col0 AS col2 FROM tab2 cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-9158
SELECT ALL - col1 / - col0 AS col2 FROM tab2 cor0
----
0
1
1

query I rowsort
SELECT ALL - col1 + + - 29 FROM tab0
----
-110
-30
-50

query I rowsort
SELECT col0 * col1 - - col1 AS col2 FROM tab2
----
2397
5005
5092

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - - col1 * + col1 col2 FROM tab1
----
110
2300
247

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9162
SELECT CAST( NULL AS DECIMAL ) * + - col1 - - col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9162
SELECT CAST ( NULL AS REAL ) * + - col1 - - col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - 52 * + col2 FROM tab2 WHERE NOT NULL IN ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9164
SELECT + COUNT( * ) + 29 FROM tab1
----
32

skipif mysql # not compatible
query I rowsort label-9164
SELECT + COUNT ( * ) + 29 FROM tab1
----
32

query I rowsort
SELECT + ( + 6 ) AS col1 FROM tab0
----
6
6
6

query I rowsort
SELECT + ( - col0 ) AS col0 FROM tab2 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT - ( 86 ) AS col1 FROM tab0
----
-86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9168
SELECT DISTINCT - col1 - - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9168
SELECT DISTINCT - col1 - - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9169
SELECT col0 DIV - col0 + + col2 AS col0 FROM tab0
----
46
9
98

skipif mysql # not compatible
query I rowsort label-9169
SELECT col0 / - col0 + + col2 AS col0 FROM tab0
----
46
9
98

query I rowsort
SELECT ALL col1 * ( + col0 ) FROM tab2 WHERE col0 + col2 IS NOT NULL
----
2346
4928
5025

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 93 + + col0 col1 FROM tab1
----
144
178
184

query I rowsort
SELECT ALL - col0 FROM tab1 WHERE ( NULL ) IS NULL
----
-51
-85
-91

query III rowsort
SELECT * FROM tab0 WHERE NULL = + col1 / + col1
----

query I rowsort
SELECT + col0 FROM tab2 WHERE NULL BETWEEN - 34 / + 43 AND + col1 + - col2
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9175
SELECT + CAST( NULL AS DECIMAL ) + + COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9175
SELECT + CAST ( NULL AS REAL ) + + COUNT ( * ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9176
SELECT 92 + COUNT( * ) FROM tab1
----
95

skipif mysql # not compatible
query I rowsort label-9176
SELECT 92 + COUNT ( * ) FROM tab1
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9177
SELECT ALL * FROM tab1 WHERE NOT NULL IN ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-9177
SELECT ALL * FROM tab1 WHERE NOT NULL IN ( CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9178
SELECT ALL - MAX( col1 ) + 5 FROM tab1
----
-42

skipif mysql # not compatible
query I rowsort label-9178
SELECT ALL - MAX ( col1 ) + 5 FROM tab1
----
-42

query I rowsort
SELECT DISTINCT - col1 * - col0 AS col1 FROM tab0 WHERE NOT col2 < ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9180
SELECT COUNT( * ) * - COUNT( + 30 ) FROM tab0 WHERE - col0 * col2 IS NOT NULL
----
-9

skipif mysql # not compatible
query I rowsort label-9180
SELECT COUNT ( * ) * - COUNT ( + 30 ) FROM tab0 WHERE - col0 * col2 IS NOT NULL
----
-9

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( 0 ) NOT BETWEEN ( NULL ) AND - col1 - col0
----

query I rowsort
SELECT ( + col0 ) * + col1 + + ( - col1 ) AS col0 FROM tab2
----
2295
4851
4958

onlyif mysql # aggregate syntax: 
query I rowsort label-9183
SELECT DISTINCT + SUM( - col1 ) FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-9183
SELECT DISTINCT + SUM ( - col1 ) FROM tab1
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-9184
SELECT + SUM( - col1 ) + - 55 AS col2 FROM tab1
----
-121

skipif mysql # not compatible
query I rowsort label-9184
SELECT + SUM ( - col1 ) + - 55 AS col2 FROM tab1
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-9185
SELECT ALL - 97 * SUM( col1 ) col0 FROM tab1
----
-6402

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9185
SELECT ALL - 97 * SUM ( col1 ) col0 FROM tab1
----
-6402

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 * + 78 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 AS col0 FROM tab2 WHERE NOT col0 * col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9188
SELECT CAST( NULL AS SIGNED ) * col2 col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9188
SELECT CAST ( NULL AS INTEGER ) * col2 col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 + 87 FROM tab2 AS cor0
----
133
151
162

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) >= 19
----

query I rowsort
SELECT - col2 + - 27 FROM tab0 AS cor0
----
-126
-37
-74

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 39 > NULL
----

query III rowsort
SELECT * FROM tab0 WHERE 31 * + col1 <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col2 > 86 * + 2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 26 + 15 * + 37 FROM tab2
----
529
529
529

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( col2 ) > 61
----
97
1
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9197
SELECT * FROM tab1 cor0 WHERE col2 BETWEEN NULL AND ( + CAST( col0 AS SIGNED ) / col2 + col0 )
----

skipif mysql # not compatible
query III rowsort label-9197
SELECT * FROM tab1 cor0 WHERE col2 BETWEEN NULL AND ( + CAST ( col0 AS INTEGER ) / col2 + col0 )
----

query I rowsort
SELECT - 30 * - 96 - - 19 FROM tab0 AS cor0
----
2899
2899
2899

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) IN ( + 67 + 18 * + 99 )
----

query I rowsort
SELECT DISTINCT + 33 FROM tab0 AS cor0 WHERE col0 > + col0
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - col0 ) IN ( + col0 * + col1 )
----

query I rowsort
SELECT ALL - - col1 - 93 FROM tab2 cor0
----
-16
-26
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-9203
SELECT COUNT( * ) - - COUNT( * ) * MIN( col0 ) FROM tab1 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-9203
SELECT COUNT ( * ) - - COUNT ( * ) * MIN ( col0 ) FROM tab1 AS cor0
----
156

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 NOT IN ( col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9205
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE NULL IN ( col2 )
----
0

skipif mysql # not compatible
query I rowsort label-9205
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE NULL IN ( col2 )
----
0

query I rowsort
SELECT ALL + col0 - - 3 FROM tab1 AS cor0
----
54
88
94

query I rowsort
SELECT DISTINCT - ( - - 49 ) AS col0 FROM tab2
----
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9208
SELECT DISTINCT - 97 * - + MIN( CAST( - 94 AS SIGNED ) ) AS col0 FROM tab0
----
-9118

skipif mysql # not compatible
query I rowsort label-9208
SELECT DISTINCT - 97 * - + MIN ( CAST ( - 94 AS INTEGER ) ) AS col0 FROM tab0
----
-9118

onlyif mysql # DIV for integer division: 
query I rowsort label-9209
SELECT DISTINCT - col2 DIV - ( - col0 ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9209
SELECT DISTINCT - col2 / - ( - col0 ) AS col2 FROM tab2
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - col0 ) > col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 >= - 80
----

query I rowsort
SELECT + 36 * - + ( 23 ) AS col1 FROM tab0
----
-828
-828
-828

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN col2 * 6 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9214
SELECT - 15 + COUNT( * ) AS col1 FROM tab2 WHERE NOT 88 * col2 IS NULL
----
-12

skipif mysql # not compatible
query I rowsort label-9214
SELECT - 15 + COUNT ( * ) AS col1 FROM tab2 WHERE NOT 88 * col2 IS NULL
----
-12

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NULL <> ( 91 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9216
SELECT DISTINCT COUNT( * ) DIV MAX( 86 ) AS col1 FROM tab0, tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9216
SELECT DISTINCT COUNT ( * ) / MAX ( 86 ) AS col1 FROM tab0, tab0 AS cor0
----
0

query IIIIII rowsort
SELECT ALL * FROM tab2 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 67 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9218
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9218
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT ( ( + col0 * col1 ) NOT BETWEEN NULL AND + 58 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( + 4 NOT BETWEEN NULL AND NULL )
----

query I rowsort
SELECT DISTINCT - col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9222
SELECT + MAX( DISTINCT 55 ) FROM tab0 AS cor0 WHERE NOT - col2 = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9222
SELECT + MAX ( DISTINCT 55 ) FROM tab0 AS cor0 WHERE NOT - col2 = NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9223
SELECT DISTINCT 48 * COUNT( * ) FROM tab1 AS cor0 WHERE NULL IN ( col2 )
----
0

skipif mysql # not compatible
query I rowsort label-9223
SELECT DISTINCT 48 * COUNT ( * ) FROM tab1 AS cor0 WHERE NULL IN ( col2 )
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + + col2 BETWEEN ( NULL ) AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + - col1 - - col2 col1 FROM tab0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-9226
SELECT - COUNT( DISTINCT - col2 ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-9226
SELECT - COUNT ( DISTINCT - col2 ) AS col1 FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9227
SELECT DISTINCT 99 * - COUNT( * ) FROM tab1 WHERE ( NULL ) >= - col1 - - - ( - 92 )
----
0

skipif mysql # not compatible
query I rowsort label-9227
SELECT DISTINCT 99 * - COUNT ( * ) FROM tab1 WHERE ( NULL ) >= - col1 - - - ( - 92 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9228
SELECT ALL - SUM( ALL + col0 ) AS col1 FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-9228
SELECT ALL - SUM ( ALL + col0 ) AS col1 FROM tab1
----
-227

query I rowsort
SELECT DISTINCT 18 * - - col0 + col0 FROM tab0
----
1653
1843
285

query I rowsort
SELECT DISTINCT 89 + col2 AS col1 FROM tab0
----
136
188
99

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT IN ( + 86 )
----

query II rowsort
SELECT + 9 * + col1, col0 AS col0 FROM tab2
----
459
46
603
75
693
64

onlyif mysql # aggregate syntax: 
query I rowsort label-9233
SELECT COUNT( * ) * 57 FROM tab0
----
171

skipif mysql # not compatible
query I rowsort label-9233
SELECT COUNT ( * ) * 57 FROM tab0
----
171

onlyif mysql # aggregate syntax: 
query I rowsort label-9234
SELECT SUM( ALL + - col1 ) AS col1 FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-9234
SELECT SUM ( ALL + - col1 ) AS col1 FROM tab0
----
-103

query I rowsort
SELECT - + col1 * - - col0 * ( + + col0 ) * + col2 FROM tab0 AS cor0
----
-1589490
-856575
-931491

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col0 NOT IN ( - + 50 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( ( NULL ) <> + col1 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 97 * - + col1 NOT IN ( - 39 )
----

query I rowsort
SELECT - ( + 12 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e698dd57d3aac30af14ce35da434bb45

query I rowsort
SELECT col0 + + 90 - + col0 - - 11 + - ( - col1 ) + col0 FROM tab1
----
166
191
239

query I rowsort
SELECT ALL + 40 - + col0 + + + col0 FROM tab1 AS cor0
----
40
40
40

onlyif mysql # aggregate syntax: 
query II rowsort label-9242
SELECT DISTINCT - + 55 - - + 31 - COUNT( * ) AS col1, 69 * + 65 AS col1 FROM tab1 cor0
----
-27
4485

skipif mysql # not compatible
query II rowsort label-9242
SELECT DISTINCT - + 55 - - + 31 - COUNT ( * ) AS col1, 69 * + 65 AS col1 FROM tab1 cor0
----
-27
4485

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 17 * + 88 IS NULL
----

query I rowsort
SELECT DISTINCT - col1 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( - 66 ) AND ( col2 * + - col2 + 55 + 75 * 34 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9245
SELECT ALL - COUNT( - ( - col2 ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9245
SELECT ALL - COUNT ( - ( - col2 ) ) FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9246
SELECT ALL - 32 - + COUNT( * ) FROM tab0 cor0
----
-35

skipif mysql # not compatible
query I rowsort label-9246
SELECT ALL - 32 - + COUNT ( * ) FROM tab0 cor0
----
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9247
SELECT ALL - 92 * - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9247
SELECT ALL - 92 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 40 IN ( ( - 46 ) + + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9249
SELECT + MIN( DISTINCT col2 ) / + - CAST( NULL AS SIGNED ) col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9249
SELECT + MIN ( DISTINCT col2 ) / + - CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT ALL col0, + col1 AS col0 FROM tab1
----
51
14
85
5
91
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9251
SELECT COUNT( * ) * 65 FROM tab0
----
195

skipif mysql # not compatible
query I rowsort label-9251
SELECT COUNT ( * ) * 65 FROM tab0
----
195

query I rowsort
SELECT col0 * + + col0 * + + col1 * + - col0 AS col1 FROM tab1
----
-1857114
-3070625
-35417837

onlyif mysql # aggregate syntax: 
query I rowsort label-9253
SELECT + MAX( 46 ) AS col1 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-9253
SELECT + MAX ( 46 ) AS col1 FROM tab2
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-9254
SELECT - 95 DIV - col0 AS col2 FROM tab0
----
0
1
6

skipif mysql # not compatible
query I rowsort label-9254
SELECT - 95 / - col0 AS col2 FROM tab0
----
0
1
6

query I rowsort
SELECT col0 FROM tab1 WHERE NOT - col1 + + 70 NOT BETWEEN + col2 * + col2 * + col0 AND ( - 63 / + 60 )
----

query I rowsort
SELECT ALL col0 * col2 FROM tab0 WHERE NOT - 49 + + + 80 BETWEEN - + col0 AND ( NULL )
----

query I rowsort
SELECT col0 * - col1 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col2 NOT IN ( - col1, + 60 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col2 * - 94 + - 19 FROM tab2 AS cor0
----
2143
3741
5433

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9260
SELECT ALL + CAST( NULL AS SIGNED ) AS col2 FROM tab2 cor0 WHERE + 2 IN ( - col1 )
----

skipif mysql # not compatible
query I rowsort label-9260
SELECT ALL + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0 WHERE + 2 IN ( - col1 )
----

query I rowsort
SELECT DISTINCT - 89 AS col0 FROM tab1 cor0
----
-89

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN + + 83 AND 32
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 36 col0 FROM tab2 AS cor0
----
36
36
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9264
SELECT + CAST( - col1 AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE NOT col1 + col2 > col0 * + col2
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-9264
SELECT + CAST ( - col1 AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE NOT col1 + col2 > col0 * + col2
----
-14
-47
-5

onlyif mysql # DIV for integer division: 
query II rowsort label-9265
SELECT col0 DIV + - col0 AS col1, 61 + + col2 AS col1 FROM tab0 AS cor0
----
-1
108
-1
160
-1
71

skipif mysql # not compatible
query II rowsort label-9265
SELECT col0 / + - col0 AS col1, 61 + + col2 AS col1 FROM tab0 AS cor0
----
-1
108
-1
160
-1
71

query I rowsort
SELECT ALL - 64 * + 81 FROM tab0 AS cor0
----
-5184
-5184
-5184

query II rowsort
SELECT col0 AS col0, + 17 * + 57 - 45 FROM tab1
----
51
924
85
924
91
924

query III rowsort
SELECT * FROM tab2 WHERE NULL < - 1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9269
SELECT DISTINCT CAST( - SUM( ALL - 4 ) AS SIGNED ) + ( + 10 ) AS col1 FROM tab1
----
22

skipif mysql # not compatible
query I rowsort label-9269
SELECT DISTINCT CAST ( - SUM ( ALL - 4 ) AS INTEGER ) + ( + 10 ) AS col1 FROM tab1
----
22

query I rowsort
SELECT col1 + + 41 FROM tab1
----
46
55
88

onlyif mysql # aggregate syntax: 
query I rowsort label-9271
SELECT ALL + 53 + - + MAX( ALL + col0 ) FROM tab0
----
-44

skipif mysql # not compatible
query I rowsort label-9271
SELECT ALL + 53 + - + MAX ( ALL + col0 ) FROM tab0
----
-44

query III rowsort
SELECT * FROM tab0 WHERE 16 + - col0 - + ( col0 ) - col2 / col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9273
SELECT CAST( + col1 AS SIGNED ) + - - col0 FROM tab1
----
138
65
90

skipif mysql # not compatible
query I rowsort label-9273
SELECT CAST ( + col1 AS INTEGER ) + - - col0 FROM tab1
----
138
65
90

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - col2 ) + - 55 <= + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col1 FROM tab0 AS cor0 WHERE NOT + 89 <= + col1 * col0 * - + ( - - col0 ) - - - col0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9276
SELECT ALL - COUNT( - 66 ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9276
SELECT ALL - COUNT ( - 66 ) AS col0 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9277
SELECT + - COUNT( * ) * + - 52 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-9277
SELECT + - COUNT ( * ) * + - 52 FROM tab0 AS cor0
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-9278
SELECT ALL SUM( - 95 ) FROM tab1 AS cor0
----
-285

skipif mysql # not compatible
query I rowsort label-9278
SELECT ALL SUM ( - 95 ) FROM tab1 AS cor0
----
-285

onlyif mysql # aggregate syntax: 
query I rowsort label-9279
SELECT COUNT( * ) / 29 * SUM( col0 ) AS col2 FROM tab0 AS cor0 WHERE NULL NOT IN ( ( - col1 ) * + ( - col2 ) * + col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9279
SELECT COUNT ( * ) / 29 * SUM ( col0 ) AS col2 FROM tab0 AS cor0 WHERE NULL NOT IN ( ( - col1 ) * + ( - col2 ) * + col0 )
----
NULL

query IIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( 64 ) AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9281
SELECT - col2 - - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9281
SELECT - col2 - - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9282
SELECT DISTINCT - 83 - - + CAST( + + CAST( + COUNT( * ) AS SIGNED ) AS SIGNED ) * - COUNT( * ) * 99 AS col0 FROM tab2 AS cor0
----
-974

skipif mysql # not compatible
query I rowsort label-9282
SELECT DISTINCT - 83 - - + CAST ( + + CAST ( + COUNT ( * ) AS INTEGER ) AS INTEGER ) * - COUNT ( * ) * 99 AS col0 FROM tab2 AS cor0
----
-974

onlyif mysql # aggregate syntax: 
query I rowsort label-9283
SELECT + MAX( DISTINCT + + 30 ) + + + 45 FROM tab1 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-9283
SELECT + MAX ( DISTINCT + + 30 ) + + + 45 FROM tab1 AS cor0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9284
SELECT ALL - + MAX( - + col2 ) - 84 + + 42 AS col0 FROM tab2 AS cor0
----
-19

skipif mysql # not compatible
query I rowsort label-9284
SELECT ALL - + MAX ( - + col2 ) - 84 + + 42 AS col0 FROM tab2 AS cor0
----
-19

query I rowsort
SELECT + - ( + ( col1 ) ) FROM tab2 AS cor0
----
-51
-67
-77

query I rowsort
SELECT + - 14 * - ( - 52 ) * - col2 FROM tab1 cor0
----
42952
49504
69888

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 53 col2 FROM tab1 AS cor0
----
53
53
53

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( NULL ) BETWEEN - + 56 * + + ( col2 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9289
SELECT + col2 + - ( - col0 ) * CAST( NULL AS SIGNED ) * + + 62 * col0 FROM tab1 cor0 WHERE NOT + ( - - 35 ) + + 64 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9289
SELECT + col2 + - ( - col0 ) * CAST ( NULL AS INTEGER ) * + + 62 * col0 FROM tab1 cor0 WHERE NOT + ( - - 35 ) + + 64 IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 47 * - ( - - 97 ) FROM tab1
----
4559
4559
4559

query I rowsort
SELECT ALL - col0 * + 65 FROM tab1
----
-3315
-5525
-5915

query I rowsort
SELECT 52 * - col0 * + - ( + col1 ) AS col2 FROM tab1
----
22100
222404
37128

query I rowsort
SELECT ALL + col0 * + 23 FROM tab0
----
2001
2231
345

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 col0 FROM tab0 WHERE NULL IS NULL
----
-15
-87
-97

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9295
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * + 13 * + 96 + - col2 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9295
SELECT DISTINCT - CAST ( NULL AS REAL ) * + 13 * + 96 + - col2 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT - - col1 * col2 * col0 * + col1 FROM tab2 AS cor0
----
15178240
19527150
2751858

onlyif mysql # aggregate syntax: 
query I rowsort label-9297
SELECT ALL + 0 * - COUNT( * ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9297
SELECT ALL + 0 * - COUNT ( * ) FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9298
SELECT ALL CAST( - + COUNT( col1 ) AS SIGNED ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-9298
SELECT ALL CAST ( - + COUNT ( col1 ) AS INTEGER ) FROM tab0
----
-3

query III rowsort
SELECT * FROM tab1 WHERE NOT - 41 IN ( + col1, col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9300
SELECT ALL + 39 + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
48

skipif mysql # not compatible
query I rowsort label-9300
SELECT ALL + 39 + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
48

query II rowsort
SELECT DISTINCT + 72, - 23 - col1 * + col1 AS col2 FROM tab0
----
72
-24
72
-464
72
-6584

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9302
SELECT + col0 AS col2 FROM tab2 cor0 WHERE NULL <= - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-9302
SELECT + col0 AS col2 FROM tab2 cor0 WHERE NULL <= - CAST ( NULL AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + + col1 ) + col0 col2 FROM tab0 AS cor0
----
-66
66
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9304
SELECT ALL COUNT( * ) FROM tab1 cor0 WHERE NOT col2 + - + 82 - - 38 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-9304
SELECT ALL COUNT ( * ) FROM tab1 cor0 WHERE NOT col2 + - + 82 - - 38 IS NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9305
SELECT col0 + - - 92 * CAST( NULL AS SIGNED ) 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-9305
SELECT col0 + - - 92 * CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT - + col1 AS col2, col0 * col2 AS col0 FROM tab1 AS cor0
----
-14
4896
-47
6188
-5
5015

query I rowsort
SELECT col1 + - - col2 AS col2 FROM tab0 cor0
----
100
128
31

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NULL BETWEEN - 43 + - 94 * + - col1 - - col1 AND + col1
----

query I rowsort
SELECT col0 + col2 - - + col0 AS col2 FROM tab0 AS cor0
----
184
293
77

query I rowsort
SELECT ALL - - ( + col0 ) * col2 AS col2 FROM tab2 AS cor0
----
1058
2560
4350

query I rowsort
SELECT DISTINCT col2 + - 11 FROM tab1 AS cor0
----
48
57
85

query I rowsort
SELECT DISTINCT - - col0 FROM tab1 AS cor0 WHERE + 3 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9313
SELECT DISTINCT CAST( NULL AS SIGNED ) * - - col1 * - - col1 + - col2 col1 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9313
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - - col1 * - - col1 + - col2 col1 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 78 col2 FROM tab2 WHERE ( NULL IS NOT NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 47 col0 FROM tab1
----
47
47
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9316
SELECT - MIN( + col2 ) * - - MIN( ALL + col1 ) FROM tab1
----
-295

skipif mysql # not compatible
query I rowsort label-9316
SELECT - MIN ( + col2 ) * - - MIN ( ALL + col1 ) FROM tab1
----
-295

query I rowsort
SELECT ALL col0 * ( - 28 ) - - col0 + + 13 FROM tab0
----
-2336
-2606
-392

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9318
SELECT ALL CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NULL <> - 17
----

skipif mysql # not compatible
query I rowsort label-9318
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NULL <> - 17
----

query I rowsort
SELECT DISTINCT + col1 - - + col1 FROM tab1 AS cor0
----
10
28
94

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9320
SELECT * FROM tab0 AS cor0 WHERE + col2 - + + CAST( NULL AS SIGNED ) NOT IN ( - CAST( NULL AS SIGNED ), col0 )
----

skipif mysql # not compatible
query III rowsort label-9320
SELECT * FROM tab0 AS cor0 WHERE + col2 - + + CAST ( NULL AS INTEGER ) NOT IN ( - CAST ( NULL AS INTEGER ), col0 )
----

query I rowsort
SELECT 69 FROM tab2 AS cor0 WHERE NOT ( + col1 + - col2 ) NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + col2 + + col1 ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9323
SELECT + + COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN col1 - + CAST( NULL AS DECIMAL ) AND col1
----
0

skipif mysql # not compatible
query I rowsort label-9323
SELECT + + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN col1 - + CAST ( NULL AS REAL ) AND col1
----
0

query II rowsort
SELECT ALL + col2 AS col2, + ( ( + 38 ) ) FROM tab1 AS cor0
----
59
38
68
38
96
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + 80 col0, + col0 AS col0 FROM tab0 AS cor0
----
-80
15
-80
87
-80
97

query II rowsort
SELECT 90 AS col2, + col1 FROM tab1 AS cor0
----
90
14
90
47
90
5

query I rowsort
SELECT ALL + + col1 FROM tab2 WHERE NOT - + col2 IS NULL
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9328
SELECT ALL + 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-9328
SELECT ALL + CAST ( - col2 AS INTEGER ) col2 FROM tab0
----
-10
-47
-99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9329
SELECT ALL * FROM tab0 WHERE NOT CAST( 84 AS SIGNED ) NOT IN ( ( - CAST( - col1 AS SIGNED ) ) )
----

skipif mysql # not compatible
query III rowsort label-9329
SELECT ALL * FROM tab0 WHERE NOT CAST ( 84 AS INTEGER ) NOT IN ( ( - CAST ( - col1 AS INTEGER ) ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9330
SELECT col2 * 67 AS col0, CAST( NULL AS SIGNED ) + + - col1 AS col2 FROM tab0
----
3149
NULL
6633
NULL
670
NULL

skipif mysql # not compatible
query II rowsort label-9330
SELECT col2 * 67 AS col0, CAST ( NULL AS INTEGER ) + + - col1 AS col2 FROM tab0
----
3149
NULL
6633
NULL
670
NULL

query I rowsort
SELECT - col2 AS col1 FROM tab1 WHERE NOT NULL <= - col2
----

query I rowsort
SELECT + 33 * + col2 AS col2 FROM tab2
----
1320
1914
759

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 col1 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN 75 + + col1 + + + col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9334
SELECT DISTINCT COUNT( * ) * - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-9334
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9335
SELECT ALL + COUNT( * ) + - COUNT( 87 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9335
SELECT ALL + COUNT ( * ) + - COUNT ( 87 ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL + 63 * col0 AS col0 FROM tab1
----
3213
5355
5733

onlyif mysql # aggregate syntax: 
query I rowsort label-9337
SELECT - SUM( - 44 ) AS col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
396

skipif mysql # not compatible
query I rowsort label-9337
SELECT - SUM ( - 44 ) AS col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
396

query I rowsort
SELECT DISTINCT - + 77 AS col1 FROM tab2 cor0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-9339
SELECT COUNT( * ) * + 23 AS col1 FROM tab0 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-9339
SELECT COUNT ( * ) * + 23 AS col1 FROM tab0 AS cor0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-9340
SELECT - SUM( + 96 ) * + ( - + MIN( - col2 ) ) AS col2 FROM tab1 AS cor0
----
-27648

skipif mysql # not compatible
query I rowsort label-9340
SELECT - SUM ( + 96 ) * + ( - + MIN ( - col2 ) ) AS col2 FROM tab1 AS cor0
----
-27648

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9341
SELECT ALL + col2 * - CAST( NULL AS SIGNED ) * CAST( col2 AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9341
SELECT ALL + col2 * - CAST ( NULL AS INTEGER ) * CAST ( col2 AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN + col2 AND col1
----

query I rowsort
SELECT 87 * - - col2 FROM tab1 AS cor0
----
5133
5916
8352

onlyif mysql # aggregate syntax: 
query I rowsort label-9344
SELECT - + 0 + - - COUNT( * ) col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9344
SELECT - + 0 + - - COUNT ( * ) col2 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9345
SELECT ALL - ( - 68 ) + - COUNT( * ) * + 54 AS col0 FROM tab1
----
-94

skipif mysql # not compatible
query I rowsort label-9345
SELECT ALL - ( - 68 ) + - COUNT ( * ) * + 54 AS col0 FROM tab1
----
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-9346
SELECT ALL 64 DIV + + col2 + - ( + col0 ) AS col2 FROM tab1
----
-51
-84
-91

skipif mysql # not compatible
query I rowsort label-9346
SELECT ALL 64 / + + col2 + - ( + col0 ) AS col2 FROM tab1
----
-51
-84
-91

query I rowsort
SELECT DISTINCT col2 + + col2 - - 38 FROM tab0
----
132
236
58

onlyif mysql # DIV for integer division: 
query I rowsort label-9348
SELECT ALL - col2 + - col1 DIV 26 * 90 AS col1 FROM tab2
----
-113
-220
-238

skipif mysql # not compatible
query I rowsort label-9348
SELECT ALL - col2 + - col1 / 26 * 90 AS col1 FROM tab2
----
-113
-220
-238

query I rowsort
SELECT DISTINCT + 58 + - + 60 FROM tab2
----
-2

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 * + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9351
SELECT - + COUNT( * ) col1 FROM tab2 WHERE NOT - 58 IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9351
SELECT - + COUNT ( * ) col1 FROM tab2 WHERE NOT - 58 IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 - col0 BETWEEN NULL AND - col2
----
64
77
40
75
67
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9353
SELECT CAST( + - col0 AS SIGNED ) FROM tab0 AS cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-9353
SELECT CAST ( + - col0 AS INTEGER ) FROM tab0 AS cor0
----
-15
-87
-97

query I rowsort
SELECT - 79 AS col2 FROM tab0 cor0
----
-79
-79
-79

query I rowsort
SELECT + col1 + - ( - + col1 ) FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
162
2
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9356
SELECT ALL - ( CAST( - 55 AS SIGNED ) ) FROM tab0 AS cor0
----
55
55
55

skipif mysql # not compatible
query I rowsort label-9356
SELECT ALL - ( CAST ( - 55 AS INTEGER ) ) FROM tab0 AS cor0
----
55
55
55

query I rowsort
SELECT DISTINCT 39 * + 72 - - col0 FROM tab2 AS cor0
----
2854
2872
2883

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9358
SELECT + col2, + col1 * - + CAST( NULL AS SIGNED ) col1 FROM tab0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9358
SELECT + col2, + col1 * - + CAST ( NULL AS INTEGER ) col1 FROM tab0
----
10
NULL
47
NULL
99
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9359
SELECT DISTINCT MIN( + + col2 ) AS col1 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-9359
SELECT DISTINCT MIN ( + + col2 ) AS col1 FROM tab2
----
23

query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 AS cor0 WHERE NOT 20 IS NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

query II rowsort
SELECT - 95 * + 9 * + col2 AS col1, + col0 AS col0 FROM tab2 AS cor0
----
-19665
46
-34200
64
-49590
75

query I rowsort
SELECT DISTINCT ( + + col1 ) AS col0 FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT ALL - ( + + col0 ) + - + col0 AS col0 FROM tab0 AS cor0
----
-174
-194
-30

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 78 * + + 71 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9365
SELECT COUNT( * ) + + 5 FROM tab2 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-9365
SELECT COUNT ( * ) + + 5 FROM tab2 AS cor0
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-9366
SELECT - col2 + + col1 DIV + col2 FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-9366
SELECT - col2 + + col1 / + col2 FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-9367
SELECT DISTINCT + + COUNT( * ) + 65 * + COUNT( * ) * AVG ( - 63 ) AS col0 FROM tab0 AS cor0 WHERE ( NOT NULL IS NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9367
SELECT DISTINCT + + COUNT ( * ) + 65 * + COUNT ( * ) * AVG ( - 63 ) AS col0 FROM tab0 AS cor0 WHERE ( NOT NULL IS NULL )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 32 * + col2 col0 FROM tab2 AS cor0
----
-1280
-1856
-736

query I rowsort
SELECT ALL + 7 AS col0 FROM tab1 cor0
----
7
7
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9370
SELECT DISTINCT + CAST( + SUM( ( - ( - col2 ) ) ) AS SIGNED ) FROM tab2 cor0
----
121

skipif mysql # not compatible
query I rowsort label-9370
SELECT DISTINCT + CAST ( + SUM ( ( - ( - col2 ) ) ) AS INTEGER ) FROM tab2 cor0
----
121

query I rowsort
SELECT - 26 AS col0 FROM tab2 cor0
----
-26
-26
-26

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 84 * + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 2 * col2 * - col1 FROM tab0
----
-198
-420
-7614

onlyif mysql # aggregate syntax: 
query I rowsort label-9374
SELECT + ( - - COUNT( ALL + col0 ) ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9374
SELECT + ( - - COUNT ( ALL + col0 ) ) AS col0 FROM tab2
----
3

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + - col1 > - col2 * - 90
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col1 * + 62 + + + col0 * col2 * - col2 FROM tab2
----
-21172
-248146
-97626

query I rowsort
SELECT 43 * - - 78 AS col1 FROM tab0
----
3354
3354
3354

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 64 NOT BETWEEN + col2 * - ( col0 ) + + col0 * - 12 * 52 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9379
SELECT 38 AS col2, + CAST( col0 AS SIGNED ) FROM tab2
----
38
46
38
64
38
75

skipif mysql # not compatible
query II rowsort label-9379
SELECT 38 AS col2, + CAST ( col0 AS INTEGER ) FROM tab2
----
38
46
38
64
38
75

query I rowsort
SELECT ALL + 92 + ( - - 4 ) AS col0 FROM tab1
----
96
96
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - + 48 col0 FROM tab1
----
-1
-34
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9382
SELECT - SUM( + CAST( - ( + - 54 ) AS SIGNED ) ) - - + COUNT( DISTINCT 85 ) FROM tab2
----
-161

skipif mysql # not compatible
query I rowsort label-9382
SELECT - SUM ( + CAST ( - ( + - 54 ) AS INTEGER ) ) - - + COUNT ( DISTINCT 85 ) FROM tab2
----
-161

query I rowsort
SELECT ALL - col0 + - - col2 FROM tab1
----
-23
-26
45

query I rowsort
SELECT DISTINCT + col2 + + 2 FROM tab0
----
101
12
49

query I rowsort
SELECT + col2 - + 10 FROM tab1 AS cor0
----
49
58
86

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL >= col0 + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9387
SELECT COUNT( * ) * - 17 FROM tab0
----
-51

skipif mysql # not compatible
query I rowsort label-9387
SELECT COUNT ( * ) * - 17 FROM tab0
----
-51

query II rowsort
SELECT DISTINCT + col2, col0 FROM tab2
----
23
46
40
64
58
75

query I rowsort
SELECT DISTINCT - - col0 FROM tab0 WHERE NOT ( NOT col2 IS NULL )
----

query II rowsort
SELECT DISTINCT 90 AS col0, + col1 AS col0 FROM tab2 AS cor0
----
90
51
90
67
90
77

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL >= + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9392
SELECT 84 + - CAST( NULL AS SIGNED ) col2 FROM tab0 AS cor0 WHERE NOT - col2 NOT IN ( col2, - col2 * - col1 + - - CAST( 89 AS SIGNED ) )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9392
SELECT 84 + - CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0 WHERE NOT - col2 NOT IN ( col2, - col2 * - col1 + - - CAST ( 89 AS INTEGER ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col0 AS col0, 72 col1 FROM tab2 AS cor0
----
-46
72
-64
72
-75
72

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 <= - col1 * col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9395
SELECT - - MAX( DISTINCT + col1 ) FROM tab0 cor0
----
81

skipif mysql # not compatible
query I rowsort label-9395
SELECT - - MAX ( DISTINCT + col1 ) FROM tab0 cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9396
SELECT MAX( + + 45 ) FROM tab2
----
45

skipif mysql # not compatible
query I rowsort label-9396
SELECT MAX ( + + 45 ) FROM tab2
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-9397
SELECT ALL - COUNT( * ) + - ( + - 32 ) AS col0 FROM tab1
----
29

skipif mysql # not compatible
query I rowsort label-9397
SELECT ALL - COUNT ( * ) + - ( + - 32 ) AS col0 FROM tab1
----
29

onlyif mysql # aggregate syntax: 
query II rowsort label-9398
SELECT + MAX( ALL + col2 ), COUNT( * ) AS col2 FROM tab0
----
99
3

skipif mysql # not compatible
query II rowsort label-9398
SELECT + MAX ( ALL + col2 ), COUNT ( * ) AS col2 FROM tab0
----
99
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9399
SELECT MAX( 7 ) AS col0 FROM tab2
----
7

skipif mysql # not compatible
query I rowsort label-9399
SELECT MAX ( 7 ) AS col0 FROM tab2
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-9400
SELECT DISTINCT MAX( - + col1 ) + 0 AS col0 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-9400
SELECT DISTINCT MAX ( - + col1 ) + 0 AS col0 FROM tab0
----
-1

query I rowsort
SELECT - ( col0 ) * + + col0 * - col0 FROM tab1
----
132651
614125
753571

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( + 93 ) BETWEEN ( NULL ) AND + 68 * + col0 * + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9403
SELECT ALL + 1 / - CAST( col0 AS SIGNED ) FROM tab1 WHERE NOT NULL > col0
----

skipif mysql # not compatible
query I rowsort label-9403
SELECT ALL + 1 / - CAST ( col0 AS INTEGER ) FROM tab1 WHERE NOT NULL > col0
----

query I rowsort
SELECT + col0 AS col2 FROM tab0 AS cor0 WHERE col1 IS NULL
----

query I rowsort
SELECT - 67 * + 52 * - ( + 50 ) + + col1 AS col2 FROM tab2 AS cor0
----
174251
174267
174277

query I rowsort
SELECT - col0 + + - col1 * + + 64 FROM tab2 AS cor0
----
-3310
-4363
-4992

onlyif mysql # aggregate syntax: 
query I rowsort label-9407
SELECT - COUNT( * ) + - 19 - - + 28 AS col0 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-9407
SELECT - COUNT ( * ) + - 19 - - + 28 AS col0 FROM tab1 AS cor0
----
6

query II rowsort
SELECT ALL col0, - 72 * + ( - col1 ) * + + col0 AS col2 FROM tab2
----
46
168912
64
354816
75
361800

onlyif mysql # aggregate syntax: 
query I rowsort label-9409
SELECT DISTINCT + COUNT( * ) * - + COUNT( * ) + + + COUNT( * ) FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-9409
SELECT DISTINCT + COUNT ( * ) * - + COUNT ( * ) + + + COUNT ( * ) FROM tab2
----
-6

query I rowsort
SELECT + + col1 * col0 - - col1 AS col1 FROM tab1 AS cor0
----
430
4324
728

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9411
SELECT CAST( - COUNT( * ) AS SIGNED ) - + 55 * + COUNT( * ) col1 FROM tab2 cor0
----
-168

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9411
SELECT CAST ( - COUNT ( * ) AS INTEGER ) - + 55 * + COUNT ( * ) col1 FROM tab2 cor0
----
-168

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9412
SELECT * FROM tab2 AS cor0 WHERE NULL < + col0 + + CAST( - col1 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9412
SELECT * FROM tab2 AS cor0 WHERE NULL < + col0 + + CAST ( - col1 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9413
SELECT + + COUNT( * ) - - - 65 AS col2 FROM tab1 AS cor0
----
-62

skipif mysql # not compatible
query I rowsort label-9413
SELECT + + COUNT ( * ) - - - 65 AS col2 FROM tab1 AS cor0
----
-62

query I rowsort
SELECT + + 96 * col2 * 62 + + col1 + + - 69 * + 49 * + 69 FROM tab1 AS cor0
----
117884
171494
338117

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9415
SELECT col0 + + - CAST( NULL AS SIGNED ) 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-9415
SELECT col0 + + - CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9416
SELECT DISTINCT - ( - - col0 ) + + - col0 DIV - col0, - col2 AS col2 FROM tab0
----
-14
-47
-86
-10
-96
-99

skipif mysql # not compatible
query II rowsort label-9416
SELECT DISTINCT - ( - - col0 ) + + - col0 / - col0, - col2 AS col2 FROM tab0
----
-14
-47
-86
-10
-96
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9417
SELECT ALL - MAX( ALL col2 ) FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-9417
SELECT ALL - MAX ( ALL col2 ) FROM tab1
----
-96

query I rowsort
SELECT ALL 13 + + + 46 + - col2 * col2 FROM tab2
----
-1541
-3305
-470

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9419
SELECT DISTINCT - ( - COUNT( * ) ) AS col1 FROM tab0 WHERE + col1 - - CAST( NULL AS SIGNED ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9419
SELECT DISTINCT - ( - COUNT ( * ) ) AS col1 FROM tab0 WHERE + col1 - - CAST ( NULL AS INTEGER ) IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT + col2 - - col1 * + col1 FROM tab0
----
100
451
6608

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9421
SELECT + CAST( SUM( col1 ) AS SIGNED ) FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-9421
SELECT + CAST ( SUM ( col1 ) AS INTEGER ) FROM tab0
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-9422
SELECT + COUNT( ALL 74 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9422
SELECT + COUNT ( ALL 74 ) AS col0 FROM tab1 AS cor0
----
3

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT + 27 IS NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

query I rowsort
SELECT col2 * + + col1 * + col2 * + col0 AS col1 FROM tab1
----
1479425
19776848
6580224

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9425
SELECT DISTINCT - MIN( + + col0 ) DIV COUNT( * ) FROM tab2
----
-15

skipif mysql # not compatible
query I rowsort label-9425
SELECT DISTINCT - MIN ( + + col0 ) / COUNT ( * ) FROM tab2
----
-15

query II rowsort
SELECT DISTINCT col1 + + col0 AS col1, + 68 * col0 FROM tab1 WHERE - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9427
SELECT MIN( DISTINCT - - 60 ) * - + 36 + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-2163

skipif mysql # not compatible
query I rowsort label-9427
SELECT MIN ( DISTINCT - - 60 ) * - + 36 + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-2163

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9428
SELECT * FROM tab1 cor0 WHERE NOT CAST( NULL AS SIGNED ) - 3 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9428
SELECT * FROM tab1 cor0 WHERE NOT CAST ( NULL AS INTEGER ) - 3 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9429
SELECT DISTINCT + COUNT( ALL 43 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9429
SELECT DISTINCT + COUNT ( ALL 43 ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL + col2 FROM tab1 AS cor0 WHERE + 61 <= ( - 15 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9431
SELECT + SUM( DISTINCT - 11 ) + - 39 * - MIN( 89 ) FROM tab2 AS cor0
----
3460

skipif mysql # not compatible
query I rowsort label-9431
SELECT + SUM ( DISTINCT - 11 ) + - 39 * - MIN ( 89 ) FROM tab2 AS cor0
----
3460

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9432
SELECT ALL - + AVG ( ALL + + CAST( NULL AS SIGNED ) ) * COUNT( * ) * 40 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9432
SELECT ALL - + AVG ( ALL + + CAST ( NULL AS INTEGER ) ) * COUNT ( * ) * 40 FROM tab1 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9433
SELECT ALL * FROM tab1 AS cor0 WHERE CAST( + - col1 AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9433
SELECT ALL * FROM tab1 AS cor0 WHERE CAST ( + - col1 AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col2 * + - col1 * + - col2 AS col1 FROM tab1 AS cor0
----
129024
17405
217328

query I rowsort
SELECT DISTINCT + col1 + + 80 AS col1 FROM tab0 AS cor0
----
101
161
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9436
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - + col1 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9436
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - + col1 FROM tab1 cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL <= + - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9438
SELECT ALL + 31 * 11 DIV - + col1 FROM tab0
----
-16
-341
-4

skipif mysql # not compatible
query I rowsort label-9438
SELECT ALL + 31 * 11 / - + col1 FROM tab0
----
-16
-341
-4

query II rowsort
SELECT - col2 + - 98 AS col0, + col0 * col2 * + + ( + col1 ) FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT col0 AS col1, - ( - 86 ) FROM tab2 WHERE NOT col0 IS NULL
----
46
86
64
86
75
86

query II rowsort
SELECT col0, - ( col1 ) * - - 59 AS col2 FROM tab0
----
15
-4779
87
-1239
97
-59

query I rowsort
SELECT DISTINCT + col2 + - 54 FROM tab1
----
14
42
5

query II rowsort
SELECT - col0, col1 AS col2 FROM tab0
----
-15
81
-87
21
-97
1

query I rowsort
SELECT col2 * - 81 * + col2 FROM tab2
----
-129600
-272484
-42849

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 col0 FROM tab2 WHERE NOT - + col0 + + + col2 IS NULL
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9446
SELECT + CAST( NULL AS SIGNED ) / + + CAST( - AVG ( - col2 ) AS SIGNED ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9446
SELECT + CAST ( NULL AS INTEGER ) / + + CAST ( - AVG ( - col2 ) AS INTEGER ) AS col2 FROM tab0
----
NULL

query I rowsort
SELECT - + col0 * - + col0 * col1 + col2 - + + col1 - - col0 FROM tab1 AS cor0
----
36264
36547
389319

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( 1 * + 97 ) BETWEEN - col2 - + 31 + col2 * - - col2 * 4 AND - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col1 + - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL < 9
----

query II rowsort
SELECT ALL - col2 AS col1, 72 * + ( 2 ) FROM tab0 AS cor0
----
-10
144
-47
144
-99
144

query I rowsort
SELECT DISTINCT col0 + + + col1 - col0 AS col2 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9453
SELECT COUNT( * ) + + 79 AS col0 FROM tab1, tab2 AS cor0
----
88

skipif mysql # not compatible
query I rowsort label-9453
SELECT COUNT ( * ) + + 79 AS col0 FROM tab1, tab2 AS cor0
----
88

query I rowsort
SELECT ALL + 63 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c3eea92c46f2c49716f386a58b575025

query I rowsort
SELECT + ( + 75 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

query I rowsort
SELECT + col0 AS col1 FROM tab1 WHERE + col0 IS NOT NULL
----
51
85
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9457
SELECT 5 DIV COUNT( * ) AS col0 FROM tab1, tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9457
SELECT 5 / COUNT ( * ) AS col0 FROM tab1, tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT - ( col0 ) + - ( + col2 ) FROM tab0 AS cor0
----
-196
-62
-97

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 81 BETWEEN NULL AND + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-9460
SELECT DISTINCT COUNT( * ), + 73 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0
73

skipif mysql # not compatible
query II rowsort label-9460
SELECT DISTINCT COUNT ( * ), + 73 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0
73

query I rowsort
SELECT ALL ( - col2 ) FROM tab0 AS cor0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9462
SELECT - COUNT( * ) - 62 + - MAX( - 11 ) + + MIN( DISTINCT + 24 ) * - - COUNT( * ) * + 70 * + 43 col0 FROM tab0
----
216666

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9462
SELECT - COUNT ( * ) - 62 + - MAX ( - 11 ) + + MIN ( DISTINCT + 24 ) * - - COUNT ( * ) * + 70 * + 43 col0 FROM tab0
----
216666

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab2 WHERE - 19 + 39 IS NOT NULL AND ( NULL ) IS NOT NULL
----

query II rowsort
SELECT DISTINCT - 66 AS col0, + col2 AS col0 FROM tab0
----
-66
10
-66
47
-66
99

query II rowsort
SELECT ALL col0 * + - 58 * + + col1, 5 AS col0 FROM tab1
----
-24650
5
-248066
5
-41412
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9466
SELECT + CAST( + col0 AS SIGNED ) * - 89 col2 FROM tab0
----
-1335
-7743
-8633

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9466
SELECT + CAST ( + col0 AS INTEGER ) * - 89 col2 FROM tab0
----
-1335
-7743
-8633

onlyif mysql # DIV for integer division: 
query I rowsort label-9467
SELECT - - 31 DIV col2 FROM tab0 WHERE NOT + 34 IS NULL
----
0
0
3

skipif mysql # not compatible
query I rowsort label-9467
SELECT - - 31 / col2 FROM tab0 WHERE NOT + 34 IS NULL
----
0
0
3

query II rowsort
SELECT ALL 92 AS col2, col1 FROM tab2
----
92
51
92
67
92
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col2, - col1 FROM tab1
----
51
-14
85
-5
91
-47

query I rowsort
SELECT - ( + + 10 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN 14 AND NULL
----

query I rowsort
SELECT + ( + - col0 ) * + - ( - col2 ) * + - col1 * - - col1 + + 80 FROM tab2 cor0
----
15178320
19527230
2751938

query I rowsort
SELECT DISTINCT - 33 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-33

query I rowsort
SELECT DISTINCT + - col0 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-15
-87
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9474
SELECT ALL - col2 + + + ( - CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9474
SELECT ALL - col2 + + + ( - 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-9475
SELECT CAST( - - 17 AS SIGNED ) * COUNT( * ) col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN ( - 15 ) AND NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9475
SELECT CAST ( - - 17 AS INTEGER ) * COUNT ( * ) col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN ( - 15 ) AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9476
SELECT - COUNT( * ) * - + 98 FROM tab0 AS cor0
----
294

skipif mysql # not compatible
query I rowsort label-9476
SELECT - COUNT ( * ) * - + 98 FROM tab0 AS cor0
----
294

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9477
SELECT ALL + COUNT( * ) DIV - - ( + COUNT( * ) ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-9477
SELECT ALL + COUNT ( * ) / - - ( + COUNT ( * ) ) FROM tab1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9478
SELECT ALL MAX( DISTINCT - 30 ) + - 94 AS col0 FROM tab2, tab1 cor0
----
-124

skipif mysql # not compatible
query I rowsort label-9478
SELECT ALL MAX ( DISTINCT - 30 ) + - 94 AS col0 FROM tab2, tab1 cor0
----
-124

onlyif mysql # aggregate syntax: 
query II rowsort label-9479
SELECT DISTINCT + 21, - 84 + - COUNT( * ) AS col0 FROM tab2
----
21
-87

skipif mysql # not compatible
query II rowsort label-9479
SELECT DISTINCT + 21, - 84 + - COUNT ( * ) AS col0 FROM tab2
----
21
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-9480
SELECT COUNT( * ) + - - 47 col0 FROM tab0 AS cor0
----
50

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9480
SELECT COUNT ( * ) + - - 47 col0 FROM tab0 AS cor0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-9481
SELECT + COUNT( * ) + 64 AS col1 FROM tab1 AS cor0
----
67

skipif mysql # not compatible
query I rowsort label-9481
SELECT + COUNT ( * ) + 64 AS col1 FROM tab1 AS cor0
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-9482
SELECT col1 * - 2 + + 0 DIV - + col2 AS col2 FROM tab1 AS cor0
----
-10
-28
-94

skipif mysql # not compatible
query I rowsort label-9482
SELECT col1 * - 2 + + 0 / - + col2 AS col2 FROM tab1 AS cor0
----
-10
-28
-94

query I rowsort
SELECT DISTINCT + + col2 * - + col0 FROM tab0 AS cor0
----
-705
-870
-9603

onlyif mysql # DIV for integer division: 
query I rowsort label-9484
SELECT - - 96 DIV + col1 FROM tab1 AS cor0
----
19
2
6

skipif mysql # not compatible
query I rowsort label-9484
SELECT - - 96 / + col1 FROM tab1 AS cor0
----
19
2
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9485
SELECT + MAX( DISTINCT - col2 ) DIV + 31 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-9485
SELECT + MAX ( DISTINCT - col2 ) / + 31 FROM tab1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9486
SELECT - MIN( - 85 ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
85

skipif mysql # not compatible
query I rowsort label-9486
SELECT - MIN ( - 85 ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 col1, + col2 col0 FROM tab1
----
59
59
68
68
96
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9488
SELECT + 71 + + 2 AS col0, COUNT( ALL 22 ) DIV - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
73
-1

skipif mysql # not compatible
query II rowsort label-9488
SELECT + 71 + + 2 AS col0, COUNT ( ALL 22 ) / - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
73
-1

query I rowsort
SELECT ALL + col2 * + + col0 + col0 * - - 92 * + col1 AS col2 FROM tab1 cor0
----
399672
44115
70584

query III rowsort
SELECT * FROM tab2 cor0 WHERE + col2 <> + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 4 + + col1 AS col1 FROM tab0 AS cor0
----
25
5
85

query I rowsort
SELECT 85 + + ( - 82 ) + 40 FROM tab1 cor0
----
43
43
43

onlyif mysql # aggregate syntax: 
query I rowsort label-9493
SELECT DISTINCT - ( + + COUNT( * ) ) col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9493
SELECT DISTINCT - ( + + COUNT ( * ) ) col2 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT - col0 * - 3 - 13 + 16 + + 40 * - + col2 + col0 FROM tab0 cor0
----
-1817
-3569
-49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 56 * - 39 col2 FROM tab1 AS cor0
----
-2184
-2184
-2184

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NOT + + col2 > - - 25 + + col0 )
----
85
5
59
91
47
68

onlyif mysql # aggregate syntax: 
query I rowsort label-9497
SELECT DISTINCT + COUNT( DISTINCT - col0 ) * + + COUNT( col2 ) * - + MIN( - 45 ) * + 63 AS col0 FROM tab0
----
25515

skipif mysql # not compatible
query I rowsort label-9497
SELECT DISTINCT + COUNT ( DISTINCT - col0 ) * + + COUNT ( col2 ) * - + MIN ( - 45 ) * + 63 AS col0 FROM tab0
----
25515

onlyif mysql # aggregate syntax: 
query II rowsort label-9498
SELECT ALL MAX( 23 ) AS col2, SUM( DISTINCT - - col1 ) FROM tab2
----
23
195

skipif mysql # not compatible
query II rowsort label-9498
SELECT ALL MAX ( 23 ) AS col2, SUM ( DISTINCT - - col1 ) FROM tab2
----
23
195

onlyif mysql # aggregate syntax: 
query I rowsort label-9499
SELECT DISTINCT MAX( DISTINCT - + ( 5 ) ) AS col2 FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-9499
SELECT DISTINCT MAX ( DISTINCT - + ( 5 ) ) AS col2 FROM tab1
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9500
SELECT DISTINCT COUNT( 68 ) col2 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9500
SELECT DISTINCT COUNT ( 68 ) col2 FROM tab0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 63 col2 FROM tab0 cor0
----
63
63
63

query I rowsort
SELECT ALL - + 95 AS col0 FROM tab2 AS cor0
----
-95
-95
-95

query I rowsort
SELECT ALL 6 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

onlyif mysql # aggregate syntax: 
query I rowsort label-9504
SELECT + COUNT( * ) + + 7 + + 39 + - + 26 AS col0 FROM tab0 WHERE NOT NULL IS NULL
----
20

skipif mysql # not compatible
query I rowsort label-9504
SELECT + COUNT ( * ) + + 7 + + 39 + - + 26 AS col0 FROM tab0 WHERE NOT NULL IS NULL
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-9505
SELECT - COUNT( * ) col1 FROM tab2 WHERE NOT col0 IS NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9505
SELECT - COUNT ( * ) col1 FROM tab2 WHERE NOT col0 IS NULL
----
-3

query I rowsort
SELECT ALL + 39 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

query IIIIII rowsort
SELECT ALL * FROM tab1 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL BETWEEN - 97 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 col0, col0 * + 33 AS col1 FROM tab0 AS cor0
----
15
495
87
2871
97
3201

query I rowsort
SELECT ALL + ( + 64 ) FROM tab0 AS cor0
----
64
64
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 50 + - 5 - + col1 * col1 col0 FROM tab1 AS cor0
----
-2264
-251
-80

query I rowsort
SELECT DISTINCT + 93 * 98 AS col2 FROM tab1 AS cor0
----
9114

onlyif mysql # aggregate syntax: 
query I rowsort label-9512
SELECT DISTINCT + + COUNT( * ) + + 39 AS col1 FROM tab2 cor0
----
42

skipif mysql # not compatible
query I rowsort label-9512
SELECT DISTINCT + + COUNT ( * ) + + 39 AS col1 FROM tab2 cor0
----
42

query I rowsort
SELECT col1 AS col0 FROM tab2 WHERE - + 81 IS NOT NULL
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9514
SELECT DISTINCT + CAST( + 39 AS SIGNED ) FROM tab2
----
39

skipif mysql # not compatible
query I rowsort label-9514
SELECT DISTINCT + CAST ( + 39 AS INTEGER ) FROM tab2
----
39

query I rowsort
SELECT ALL - ( + - col2 ) * 26 + - col0 + + - col2 AS col0 FROM tab1
----
1390
1609
2349

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9516
SELECT ALL - CAST( - 0 AS SIGNED ) - + - col0 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-9516
SELECT ALL - CAST ( - 0 AS INTEGER ) - + - col0 FROM tab2
----
46
64
75

query I rowsort
SELECT DISTINCT + 2 - - col2 AS col0 FROM tab1 AS cor0
----
61
70
98

onlyif mysql # DIV for integer division: 
query I rowsort label-9518
SELECT ALL 0 DIV - + 26 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9518
SELECT ALL 0 / - + 26 AS col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9519
SELECT 22 - + COUNT( * ) AS col1, 85 FROM tab2 cor0
----
19
85

skipif mysql # not compatible
query II rowsort label-9519
SELECT 22 - + COUNT ( * ) AS col1, 85 FROM tab2 cor0
----
19
85

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 77 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9521
SELECT ( + + 72 ) + + + CAST( - col0 AS SIGNED ) * - 63 - - col0 + - col0 AS col2 FROM tab0
----
1017
5553
6183

skipif mysql # not compatible
query I rowsort label-9521
SELECT ( + + 72 ) + + + CAST ( - col0 AS INTEGER ) * - 63 - - col0 + - col0 AS col2 FROM tab0
----
1017
5553
6183

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 17 + + 59 * 42 * - col2 + 47, col2 col2 FROM tab2
----
-143660
58
-56930
23
-99056
40

query I rowsort
SELECT - ( - 13 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

query I rowsort
SELECT DISTINCT - 89 + + col0 AS col0 FROM tab1
----
-38
-4
2

onlyif mysql # DIV for integer division: 
query I rowsort label-9525
SELECT ALL + ( col1 ) DIV + col0 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9525
SELECT ALL + ( col1 ) / + col0 AS col1 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) >= ( 89 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + - col2 + 48 col2 FROM tab1 AS cor0
----
-4848
-4967
-6140

query I rowsort
SELECT + col1 * + col0 + 36 AS col0 FROM tab1 AS cor0 WHERE NOT + col0 - + 84 IS NULL
----
4313
461
750

query I rowsort
SELECT col2 * - 8 AS col1 FROM tab2 AS cor0
----
-184
-320
-464

onlyif mysql # aggregate syntax: 
query I rowsort label-9530
SELECT ALL - ( + - ( - COUNT( * ) ) ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-9530
SELECT ALL - ( + - ( - COUNT ( * ) ) ) FROM tab1
----
-3

query I rowsort
SELECT DISTINCT + col1 * - 0 AS col1 FROM tab0
----
0

query II rowsort
SELECT + ( - 84 ), + col1 FROM tab1 WHERE NOT - + col2 - col2 >= NULL
----

query I rowsort
SELECT + 89 * + 94 FROM tab2
----
8366
8366
8366

query I rowsort
SELECT DISTINCT + - 8 AS col1 FROM tab2 WHERE NOT 89 / + col0 NOT BETWEEN + col2 AND - 17
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9535
SELECT + - CAST( - COUNT( * ) AS SIGNED ) AS col2, + MAX( col0 ) AS col2 FROM tab2 WHERE NOT NULL < + - col0 * - 42
----
0
NULL

skipif mysql # not compatible
query II rowsort label-9535
SELECT + - CAST ( - COUNT ( * ) AS INTEGER ) AS col2, + MAX ( col0 ) AS col2 FROM tab2 WHERE NOT NULL < + - col0 * - 42
----
0
NULL

query I rowsort
SELECT DISTINCT - - col1 FROM tab2 AS cor0 WHERE col1 * + - col0 <= - col1 + + col0
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9537
SELECT + + 85 + + COUNT( * ) * - - 34 + - - 24 AS col0 FROM tab1 AS cor0
----
211

skipif mysql # not compatible
query I rowsort label-9537
SELECT + + 85 + + COUNT ( * ) * - - 34 + - - 24 AS col0 FROM tab1 AS cor0
----
211

query I rowsort
SELECT ALL + col2 + - + 10 * 5 AS col1 FROM tab0 cor0
----
-3
-40
49

query II rowsort
SELECT DISTINCT - col2 AS col2, + col2 + - col1 + - 40 FROM tab0 cor0
----
-10
-51
-47
-74
-99
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9540
SELECT + CAST( - AVG ( DISTINCT + 58 ) AS SIGNED ) FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-9540
SELECT + CAST ( - AVG ( DISTINCT + 58 ) AS INTEGER ) FROM tab2
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9541
SELECT DISTINCT - - CAST( NULL AS SIGNED ) AS col1 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-9541
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
NULL

query I rowsort
SELECT ALL ( col0 ) * - col0 AS col0 FROM tab0 AS cor0
----
-225
-7569
-9409

onlyif mysql # aggregate syntax: 
query I rowsort label-9543
SELECT + COUNT( * ) FROM tab0 AS cor0 WHERE 39 + + col2 + 68 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-9543
SELECT + COUNT ( * ) FROM tab0 AS cor0 WHERE 39 + + col2 + 68 IS NOT NULL
----
3

query I rowsort
SELECT ( col0 ) * 50 + col1 * - col2 * - 7 * - 49 * - + col1 + - + 36 + - ( + col1 ) AS col1 FROM tab0
----
105770514
1516923
38770

query II rowsort
SELECT ALL - col1 AS col0, col1 * col1 AS col1 FROM tab0
----
-1
1
-21
441
-81
6561

onlyif mysql # aggregate syntax: 
query I rowsort label-9546
SELECT ALL COUNT( * ) + + 78 FROM tab2
----
81

skipif mysql # not compatible
query I rowsort label-9546
SELECT ALL COUNT ( * ) + + 78 FROM tab2
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9547
SELECT - AVG ( - col0 ) + + COUNT( * ) * COUNT( * ) FROM tab0 WHERE NULL <> - + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9547
SELECT - AVG ( - col0 ) + + COUNT ( * ) * COUNT ( * ) FROM tab0 WHERE NULL <> - + col1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + - - 93 col0 FROM tab1
----
-3
25
34

onlyif mysql # aggregate syntax: 
query I rowsort label-9549
SELECT ALL + 77 + - - COUNT( * ) FROM tab0
----
80

skipif mysql # not compatible
query I rowsort label-9549
SELECT ALL + 77 + - - COUNT ( * ) FROM tab0
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-9550
SELECT ALL SUM( DISTINCT 49 ) * COUNT( * ) + + 54 col2 FROM tab1
----
201

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9550
SELECT ALL SUM ( DISTINCT 49 ) * COUNT ( * ) + + 54 col2 FROM tab1
----
201

query II rowsort
SELECT DISTINCT + col1, + col0 FROM tab1 cor0
----
14
51
47
91
5
85

onlyif mysql # DIV for integer division: 
query I rowsort label-9552
SELECT - 94 + + + 46 + - ( + ( - 62 ) ) + 68 + + + col0 DIV + 67 AS col1 FROM tab2 AS cor0
----
82
82
83

skipif mysql # not compatible
query I rowsort label-9552
SELECT - 94 + + + 46 + - ( + ( - 62 ) ) + 68 + + + col0 / + 67 AS col1 FROM tab2 AS cor0
----
82
82
83

query II rowsort
SELECT DISTINCT - 42 AS col1, + col1 * - + 12 * - + col0 FROM tab1 AS cor0
----
-42
5100
-42
51324
-42
8568

onlyif mysql # aggregate syntax: 
query I rowsort label-9554
SELECT - ( + SUM( DISTINCT 19 ) ) AS col2 FROM tab0 AS cor0
----
-19

skipif mysql # not compatible
query I rowsort label-9554
SELECT - ( + SUM ( DISTINCT 19 ) ) AS col2 FROM tab0 AS cor0
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-9555
SELECT + MAX( DISTINCT + 87 ) FROM tab2 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-9555
SELECT + MAX ( DISTINCT + 87 ) FROM tab2 AS cor0
----
87

query I rowsort
SELECT - 0 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT 2 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

onlyif mysql # aggregate syntax: 
query I rowsort label-9558
SELECT - + COUNT( * ) + + - 31 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-40

skipif mysql # not compatible
query I rowsort label-9558
SELECT - + COUNT ( * ) + + - 31 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-40

query I rowsort
SELECT DISTINCT + col1 * - + col1 FROM tab2
----
-2601
-4489
-5929

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT NULL BETWEEN NULL AND - 19 + + col1 )
----

query I rowsort
SELECT DISTINCT + 31 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
31

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 / col2 / col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9563
SELECT ALL - 20 / - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9563
SELECT ALL - 20 / - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9564
SELECT + MIN( + + col2 ) * + - 54 FROM tab2 AS cor0
----
-1242

skipif mysql # not compatible
query I rowsort label-9564
SELECT + MIN ( + + col2 ) * + - 54 FROM tab2 AS cor0
----
-1242

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9565
SELECT ALL + - ( + CAST( COUNT( * ) AS SIGNED ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9565
SELECT ALL + - ( + CAST ( COUNT ( * ) AS INTEGER ) ) FROM tab0 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) >= - col2 + - col0
----

query I rowsort
SELECT ALL + col2 * - 0 AS col1 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9568
SELECT ALL - 70 DIV + - 31 AS col0 FROM tab1
----
2
2
2

skipif mysql # not compatible
query I rowsort label-9568
SELECT ALL - 70 / + - 31 AS col0 FROM tab1
----
2
2
2

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col0 - - ( + + 21 ) * - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9570
SELECT ALL - col0 * + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9570
SELECT ALL - col0 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9571
SELECT MIN( ALL + col2 ) col0 FROM tab2
----
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9571
SELECT MIN ( ALL + col2 ) col0 FROM tab2
----
23

query I rowsort
SELECT ALL 69 * 50 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9573
SELECT + SUM( + + col0 ) col1 FROM tab1
----
227

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9573
SELECT + SUM ( + + col0 ) col1 FROM tab1
----
227

query I rowsort
SELECT + col2 FROM tab0 AS cor0 WHERE NOT ( NULL IS NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NOT - 63 IS NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT 68 col1, + col2 * 25 AS col0, - 17 FROM tab0 AS cor0
----
9 values hashing to ed36a9757503dce7cc305d1c86c54a42

query II rowsort
SELECT - - col2 AS col2, col2 FROM tab0 WHERE NOT + col0 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL col1 * + col1 + + col2 + - ( col0 ) * + - ( + + 43 ) AS col1 FROM tab2 WHERE NOT col1 * + - col0 * + ( - 20 ) * - - col1 IS NULL
----
4602
7772
8721

query I rowsort
SELECT - 52 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 9500afe5646d620d5e8943351a29d082

query I rowsort
SELECT ( col2 ) * 57 AS col0 FROM tab1
----
3363
3876
5472

onlyif mysql # aggregate syntax: 
query I rowsort label-9581
SELECT ALL ( + + COUNT( * ) ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9581
SELECT ALL ( + + COUNT ( * ) ) AS col1 FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT col1 + + 68 AS col0 FROM tab0 AS cor0
----
149
69
89

query I rowsort
SELECT ALL + col2 FROM tab1 cor0 WHERE NOT col2 + + col2 > 1 + + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9584
SELECT col1 DIV col0 + - - col0 FROM tab1 cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-9584
SELECT col1 / col0 + - - col0 FROM tab1 cor0
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9585
SELECT DISTINCT + SUM( DISTINCT + col0 ) AS col1 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-9585
SELECT DISTINCT + SUM ( DISTINCT + col0 ) AS col1 FROM tab0 AS cor0
----
199

onlyif mysql # aggregate syntax: 
query I rowsort label-9586
SELECT - COUNT( + - 58 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9586
SELECT - COUNT ( + - 58 ) FROM tab2 AS cor0
----
-3

query II rowsort
SELECT ALL + col0, ( - col0 ) AS col1 FROM tab0 AS cor0
----
15
-15
87
-87
97
-97

query I rowsort
SELECT DISTINCT - 11 FROM tab2 AS cor0 WHERE NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9589
SELECT ( - MAX( DISTINCT - - 37 ) ) FROM tab2
----
-37

skipif mysql # not compatible
query I rowsort label-9589
SELECT ( - MAX ( DISTINCT - - 37 ) ) FROM tab2
----
-37

query I rowsort
SELECT ALL col0 + 31 AS col0 FROM tab2
----
106
77
95

query II rowsort
SELECT DISTINCT + 16 + + col2, - col0 AS col2 FROM tab0
----
115
-97
26
-87
63
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-9592
SELECT + COUNT( * ) col0 FROM tab0 WHERE col1 IS NOT NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9592
SELECT + COUNT ( * ) col0 FROM tab0 WHERE col1 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9593
SELECT + 39 - + COUNT( * ) AS col1 FROM tab0
----
36

skipif mysql # not compatible
query I rowsort label-9593
SELECT + 39 - + COUNT ( * ) AS col1 FROM tab0
----
36

query I rowsort
SELECT ALL + col0 - + 26 * - + 68 + col2 FROM tab1
----
1912
1915
1927

query I rowsort
SELECT ALL col0 - - - 90 + - col2 FROM tab0
----
-122
-13
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-9596
SELECT DISTINCT COUNT( * ) FROM tab1 AS cor0 WHERE NULL <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-9596
SELECT DISTINCT COUNT ( * ) FROM tab1 AS cor0 WHERE NULL <= NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9597
SELECT ALL + + ( - - col2 ) AS col2, + ( + CAST( - + 42 AS SIGNED ) ) FROM tab2 AS cor0
----
23
-42
40
-42
58
-42

skipif mysql # not compatible
query II rowsort label-9597
SELECT ALL + + ( - - col2 ) AS col2, + ( + CAST ( - + 42 AS INTEGER ) ) FROM tab2 AS cor0
----
23
-42
40
-42
58
-42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 * - col0 col0, - col1 AS col1 FROM tab0 AS cor0
----
1215
-81
1827
-21
97
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9599
SELECT + 70 * + 87 DIV COUNT( * ) AS col2 FROM tab0
----
2030

skipif mysql # not compatible
query I rowsort label-9599
SELECT + 70 * + 87 / COUNT ( * ) AS col2 FROM tab0
----
2030

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9600
SELECT DISTINCT + COUNT( * ) AS col2, + COUNT( * ) + - - COUNT( * ) DIV + - 51 FROM tab2
----
3
3

skipif mysql # not compatible
query II rowsort label-9600
SELECT DISTINCT + COUNT ( * ) AS col2, + COUNT ( * ) + - - COUNT ( * ) / + - 51 FROM tab2
----
3
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9601
SELECT ALL - CAST( NULL AS SIGNED ) * - col0 * - col0 * + 30 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9601
SELECT ALL - CAST ( NULL AS INTEGER ) * - col0 * - col0 * + 30 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + 12 AS col2 FROM tab1 cor0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-9603
SELECT COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL > - 0 + 33
----
0

skipif mysql # not compatible
query I rowsort label-9603
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL > - 0 + 33
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9604
SELECT DISTINCT - SUM( ALL col2 ) AS col2 FROM tab0 cor0
----
-156

skipif mysql # not compatible
query I rowsort label-9604
SELECT DISTINCT - SUM ( ALL col2 ) AS col2 FROM tab0 cor0
----
-156

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 NOT BETWEEN NULL AND col1
----

query I rowsort
SELECT ( + - 47 ) AS col1 FROM tab0
----
-47
-47
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-9607
SELECT + COUNT( * ) * - 37 AS col2 FROM tab2
----
-111

skipif mysql # not compatible
query I rowsort label-9607
SELECT + COUNT ( * ) * - 37 AS col2 FROM tab2
----
-111

query I rowsort
SELECT 14 * + 93 FROM tab2
----
1302
1302
1302

query I rowsort
SELECT col1 FROM tab0 WHERE NOT - + col2 IS NULL
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9610
SELECT - ( + col2 ) + + + 64 + - + CAST( 36 AS SIGNED ) FROM tab0 cor0
----
-19
-71
18

skipif mysql # not compatible
query I rowsort label-9610
SELECT - ( + col2 ) + + + 64 + - + CAST ( 36 AS INTEGER ) FROM tab0 cor0
----
-19
-71
18

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 71 - + col1 < - - col1 + + + 92 * col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 17 / + 61 + 98 FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT 31 NOT BETWEEN NULL AND + - 73
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9613
SELECT ALL - 73 * + - ( 23 ) + - - 43 * AVG ( ALL + CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-9613
SELECT ALL - 73 * + - ( 23 ) + - - 43 * AVG ( ALL + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9614
SELECT - - col2 - - + CAST( + col1 AS SIGNED ) - + 29 AS col0 FROM tab2 AS cor0
----
45
88
96

skipif mysql # not compatible
query I rowsort label-9614
SELECT - - col2 - - + CAST ( + col1 AS INTEGER ) - + 29 AS col0 FROM tab2 AS cor0
----
45
88
96

query I rowsort
SELECT - + col0 + - + 86 FROM tab0 AS cor0
----
-101
-173
-183

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9616
SELECT + ( - col1 ) + + col0 * - col2 * - - col0 + col1 + + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9616
SELECT + ( - col1 ) + + col0 * - col2 * - - col0 + col1 + + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 48 * + 80 + + ( col2 ) AS col2 FROM tab2
----
3863
3880
3898

query I rowsort
SELECT col1 * - + 48 + - col2 FROM tab0
----
-1018
-147
-3935

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col0 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9620
SELECT col1 * - col1 + - CAST( NULL AS SIGNED ) + 43 + - - col2 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9620
SELECT col1 * - col1 + - CAST ( NULL AS INTEGER ) + 43 + - - col2 AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 + + 36 FROM tab0
----
117
37
57

query I rowsort
SELECT + 14 FROM tab1 WHERE ( NULL ) IS NOT NULL
----

query II rowsort
SELECT + col0, - 10 * + 17 FROM tab1
----
51
-170
85
-170
91
-170

query III rowsort
SELECT * FROM tab1 WHERE - 77 / col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 33 * + 36 FROM tab0 AS cor0
----
1188
1188
1188

query II rowsort
SELECT + col1, - col2 FROM tab2 AS cor0
----
51
-23
67
-58
77
-40

query I rowsort
SELECT - col1 * 22 AS col1 FROM tab0 AS cor0
----
-1782
-22
-462

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9628
SELECT * FROM tab0 AS cor0 WHERE NOT + ( - - 79 ) <> - + CAST( NULL AS SIGNED ) + + + col2
----

skipif mysql # not compatible
query III rowsort label-9628
SELECT * FROM tab0 AS cor0 WHERE NOT + ( - - 79 ) <> - + CAST ( NULL AS INTEGER ) + + + col2
----

query I rowsort
SELECT 85 * + ( - + col2 ) FROM tab1 AS cor0
----
-5015
-5780
-8160

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9630
SELECT ALL - SUM( + CAST( + col1 AS SIGNED ) ) FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-9630
SELECT ALL - SUM ( + CAST ( + col1 AS INTEGER ) ) FROM tab0 AS cor0
----
-103

onlyif mysql # DIV for integer division: 
query I rowsort label-9631
SELECT 55 DIV ( + + 78 ) + - col2 AS col1 FROM tab0 AS cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-9631
SELECT 55 / ( + + 78 ) + - col2 AS col1 FROM tab0 AS cor0
----
-10
-47
-99

query I rowsort
SELECT ALL - - col1 FROM tab1 AS cor0 WHERE 21 * + 96 * + col0 / + - col0 IS NOT NULL
----
14
47
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col2 FROM tab2 cor0 WHERE + col0 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9634
SELECT + + 12 * + 51 DIV - + ( + - COUNT( * ) ) FROM tab0 AS cor0
----
204

skipif mysql # not compatible
query I rowsort label-9634
SELECT + + 12 * + 51 / - + ( + - COUNT ( * ) ) FROM tab0 AS cor0
----
204

onlyif mysql # aggregate syntax: 
query I rowsort label-9635
SELECT ( COUNT( - + col2 ) ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9635
SELECT ( COUNT ( - + col2 ) ) FROM tab1 cor0
----
3

query I rowsort
SELECT DISTINCT + + ( 81 ) * + - col0 FROM tab1 AS cor0
----
-4131
-6885
-7371

query II rowsort
SELECT ALL + col1 - - - col0 AS col2, 31 AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-37
31
-44
31
-80
31

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 31 NOT BETWEEN NULL AND - 64
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 NOT IN ( col0, - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 43 * 63 * 7 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 53 * + col1 - 57 * + col1 FROM tab2 AS cor0
----
-204
-268
-308

onlyif mysql # DIV for integer division: 
query I rowsort label-9642
SELECT ALL col2 DIV - 8 AS col0 FROM tab1
----
-12
-7
-8

skipif mysql # not compatible
query I rowsort label-9642
SELECT ALL col2 / - 8 AS col0 FROM tab1
----
-12
-7
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-9643
SELECT ALL - 22 DIV col1 * - 18 FROM tab1
----
0
18
72

skipif mysql # not compatible
query I rowsort label-9643
SELECT ALL - 22 / col1 * - 18 FROM tab1
----
0
18
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col1 FROM tab0 WHERE NOT + col1 <= + col2 + col1 * col0 + - ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9645
SELECT + 26 * - COUNT( * ) FROM tab1
----
-78

skipif mysql # not compatible
query I rowsort label-9645
SELECT + 26 * - COUNT ( * ) FROM tab1
----
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9646
SELECT ALL - 6 * - col1 FROM tab2 WHERE NOT NULL <> CAST( col0 AS SIGNED ) + 60
----

skipif mysql # not compatible
query I rowsort label-9646
SELECT ALL - 6 * - col1 FROM tab2 WHERE NOT NULL <> CAST ( col0 AS INTEGER ) + 60
----

query I rowsort
SELECT DISTINCT 59 * + col1 FROM tab0
----
1239
4779
59

query I rowsort
SELECT - - 2 * - col1 FROM tab2 AS cor0
----
-102
-134
-154

query I rowsort
SELECT - ( col0 ) * - ( ( + 40 ) * + col0 ) FROM tab0 WHERE NULL <> NULL
----

query I rowsort
SELECT + col2 * ( ( - col2 ) ) AS col2 FROM tab1
----
-3481
-4624
-9216

onlyif mysql # aggregate syntax: 
query I rowsort label-9651
SELECT + COUNT( * ) * - 63 FROM tab2
----
-189

skipif mysql # not compatible
query I rowsort label-9651
SELECT + COUNT ( * ) * - 63 FROM tab2
----
-189

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9652
SELECT * FROM tab0 WHERE NOT ( + 16 ) NOT BETWEEN + 58 / col0 AND ( - CAST( col1 AS SIGNED ) + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-9652
SELECT * FROM tab0 WHERE NOT ( + 16 ) NOT BETWEEN + 58 / col0 AND ( - CAST ( col1 AS INTEGER ) + CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT - col0 AS col2 FROM tab1 WHERE NULL BETWEEN ( NULL ) AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9654
SELECT ALL - 11 DIV 40 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9654
SELECT ALL - 11 / 40 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9655
SELECT DISTINCT - 29 * + MAX( - 59 ) AS col0 FROM tab0
----
1711

skipif mysql # not compatible
query I rowsort label-9655
SELECT DISTINCT - 29 * + MAX ( - 59 ) AS col0 FROM tab0
----
1711

query I rowsort
SELECT DISTINCT - col1 * - col0 + col2 * col1 AS col1 FROM tab1
----
2058
720
7473

query I rowsort
SELECT 16 * + col0 AS col1 FROM tab0
----
1392
1552
240

query I rowsort
SELECT ALL 5 * col2 + + 65 FROM tab2
----
180
265
355

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col0 ) col1 FROM tab1 WHERE NOT - col1 IS NULL
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9660
SELECT COUNT( - 85 ) AS col0 FROM tab0 WHERE NOT - col2 + col2 * 59 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9660
SELECT COUNT ( - 85 ) AS col0 FROM tab0 WHERE NOT - col2 + col2 * 59 IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 44 * col2 col1 FROM tab1
----
2596
2992
4224

query I rowsort
SELECT - col0 * + 72 + - col0 FROM tab1
----
-3723
-6205
-6643

onlyif mysql # aggregate syntax: 
query I rowsort label-9663
SELECT COUNT( * ) FROM tab2 WHERE NOT ( - 65 ) < ( - col1 )
----
2

skipif mysql # not compatible
query I rowsort label-9663
SELECT COUNT ( * ) FROM tab2 WHERE NOT ( - 65 ) < ( - col1 )
----
2

query I rowsort
SELECT ALL col1 + + col2 FROM tab0 WHERE 60 BETWEEN NULL AND + col2 * col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9665
SELECT col2 DIV 54 AS col0 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9665
SELECT col2 / 54 AS col0 FROM tab1
----
1
1
1

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL < 77
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9667
SELECT DISTINCT - COUNT( 53 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-9667
SELECT DISTINCT - COUNT ( 53 ) FROM tab1
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - 20 + col1 col0 FROM tab0
----
-179
-1979
-859

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN 93 / + col0 AND NULL
----

query I rowsort
SELECT ALL col0 AS col0 FROM tab1 AS cor0 WHERE - col1 / col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9671
SELECT ALL COUNT( DISTINCT + col0 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9671
SELECT ALL COUNT ( DISTINCT + col0 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT col1 * - 28 AS col0 FROM tab1 AS cor0
----
-1316
-140
-392

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9673
SELECT ALL CAST( + 36 AS SIGNED ) * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9673
SELECT ALL CAST ( + 36 AS INTEGER ) * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col1 * - col0 AS col2 FROM tab1 WHERE NOT ( 18 ) IN ( col1 * - col0 )
----
-425
-4277
-714

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 19 * + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9676
SELECT COUNT( * ) * 69 FROM tab2
----
207

skipif mysql # not compatible
query I rowsort label-9676
SELECT COUNT ( * ) * 69 FROM tab2
----
207

onlyif mysql # aggregate syntax: 
query I rowsort label-9677
SELECT 12 * COUNT( * ) AS col1 FROM tab2
----
36

skipif mysql # not compatible
query I rowsort label-9677
SELECT 12 * COUNT ( * ) AS col1 FROM tab2
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-9678
SELECT DISTINCT COUNT( * ) * + COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0
----
81

skipif mysql # not compatible
query I rowsort label-9678
SELECT DISTINCT COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0
----
81

query I rowsort
SELECT 6 FROM tab2 AS cor0 CROSS JOIN tab2
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9680
SELECT - CAST( col2 AS SIGNED ) * 55 FROM tab0 cor0
----
-2585
-5445
-550

skipif mysql # not compatible
query I rowsort label-9680
SELECT - CAST ( col2 AS INTEGER ) * 55 FROM tab0 cor0
----
-2585
-5445
-550

onlyif mysql # aggregate syntax: 
query I rowsort label-9681
SELECT - COUNT( ALL 53 ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9681
SELECT - COUNT ( ALL 53 ) AS col1 FROM tab0 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 * col1 IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - 49 * - col0 ) IN ( 46 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 56 * 52 col2 FROM tab2 AS cor0
----
2912

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 = ( col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 35 * 95 col0 FROM tab0 AS cor0
----
3325
3325
3325

query I rowsort
SELECT DISTINCT ( 42 ) + ( col0 ) AS col2 FROM tab0 AS cor0
----
129
139
57

query I rowsort
SELECT ALL - col1 + col1 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( + 52 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9689
SELECT col0 * + CAST( 95 AS SIGNED ) * + 72 FROM tab2
----
314640
437760
513000

skipif mysql # not compatible
query I rowsort label-9689
SELECT col0 * + CAST ( 95 AS INTEGER ) * + 72 FROM tab2
----
314640
437760
513000

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9690
SELECT + MAX( + CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9690
SELECT + MAX ( + CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9691
SELECT ALL col0 * + CAST( + col1 AS SIGNED ) + col0 col1 FROM tab2 WHERE col1 IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9691
SELECT ALL col0 * + CAST ( + col1 AS INTEGER ) + col0 col1 FROM tab2 WHERE col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9692
SELECT ALL + col2 DIV col1 + + ( col0 ) AS col1 FROM tab1
----
57
92
96

skipif mysql # not compatible
query I rowsort label-9692
SELECT ALL + col2 / col1 + + ( col0 ) AS col1 FROM tab1
----
57
92
96

query I rowsort
SELECT DISTINCT - 21 + - - col1 * - col1 FROM tab2
----
-2622
-4510
-5950

query I rowsort
SELECT col2 + 18 * col2 FROM tab0
----
1881
190
893

query I rowsort
SELECT ALL col2 * 19 * 67 AS col0 FROM tab0
----
126027
12730
59831

query I rowsort
SELECT DISTINCT 80 + - 19 FROM tab2 WHERE NOT - col1 NOT BETWEEN col1 AND - col1 + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9697
SELECT DISTINCT + MIN( col2 ) * + 1 AS col2 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-9697
SELECT DISTINCT + MIN ( col2 ) * + 1 AS col2 FROM tab2
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9698
SELECT ALL col2 * - CAST( - 74 AS SIGNED ) AS col1 FROM tab2
----
1702
2960
4292

skipif mysql # not compatible
query I rowsort label-9698
SELECT ALL col2 * - CAST ( - 74 AS INTEGER ) AS col1 FROM tab2
----
1702
2960
4292

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 45 * - col1 * - col0 + col0 col1 FROM tab2 AS cor0
----
105616
221824
226200

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - col1 ) * - 48 col0 FROM tab0 AS cor0
----
1008
3888
48

onlyif mysql # aggregate syntax: 
query I rowsort label-9701
SELECT ALL COUNT( * ) + 1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
10

skipif mysql # not compatible
query I rowsort label-9701
SELECT ALL COUNT ( * ) + 1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
10

query I rowsort
SELECT ALL + col1 FROM tab2 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL BETWEEN ( + 99 + - col1 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9704
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-9704
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9705
SELECT DISTINCT - - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9705
SELECT DISTINCT - - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9706
SELECT + 45 - - - col0 DIV + 43 FROM tab2 AS cor0
----
44
44
44

skipif mysql # not compatible
query I rowsort label-9706
SELECT + 45 - - - col0 / + 43 FROM tab2 AS cor0
----
44
44
44

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9707
SELECT ALL * FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) * + col1 < + col1
----

skipif mysql # not compatible
query III rowsort label-9707
SELECT ALL * FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) * + col1 < + col1
----

query I rowsort
SELECT + col1 FROM tab2 AS cor0 WHERE + col1 = col0 - + 47
----

query I rowsort
SELECT - - 31 - + + col0 + ( ( - 90 ) ) AS col2 FROM tab0 AS cor0
----
-146
-156
-74

query III rowsort
SELECT * FROM tab1 cor0 WHERE 6 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 92 FROM tab1 AS cor0 WHERE ( NULL ) IN ( 61 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9712
SELECT + COUNT( - 98 ) + + 76 AS col2 FROM tab0 cor0
----
79

skipif mysql # not compatible
query I rowsort label-9712
SELECT + COUNT ( - 98 ) + + 76 AS col2 FROM tab0 cor0
----
79

query I rowsort
SELECT DISTINCT col1 - col0 + - - col0 AS col2 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9714
SELECT ALL - COUNT( * ) * - CAST( NULL AS SIGNED ) FROM tab2 cor0 WHERE NOT col0 BETWEEN NULL AND - col0 + - 0
----
NULL

skipif mysql # not compatible
query I rowsort label-9714
SELECT ALL - COUNT ( * ) * - CAST ( NULL AS INTEGER ) FROM tab2 cor0 WHERE NOT col0 BETWEEN NULL AND - col0 + - 0
----
NULL

query I rowsort
SELECT - col0 * - - 61 + 82 + - 21 AS col2 FROM tab2 AS cor0
----
-2745
-3843
-4514

onlyif mysql # aggregate syntax: 
query I rowsort label-9716
SELECT DISTINCT MIN( DISTINCT + 34 ) AS col0 FROM tab2 AS cor0
----
34

skipif mysql # not compatible
query I rowsort label-9716
SELECT DISTINCT MIN ( DISTINCT + 34 ) AS col0 FROM tab2 AS cor0
----
34

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( col0 ) >= 15
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col2 FROM tab2 WHERE NOT - col0 * col1 * 42 IS NULL
----
-23
-40
-58

query I rowsort
SELECT 80 + + ( - col1 ) * - 87 AS col0 FROM tab0
----
167
1907
7127

query II rowsort
SELECT ALL + col1 + + - col0, col0 FROM tab1
----
-37
51
-44
91
-80
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9721
SELECT ALL - MIN( + col2 ) / CAST( NULL AS SIGNED ) FROM tab2 WHERE NOT 35 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9721
SELECT ALL - MIN ( + col2 ) / CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT 35 IS NULL
----
NULL

query I rowsort
SELECT 26 * + col1 + col2 * + 87 FROM tab1
----
5263
7138
8716

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9723
SELECT ALL ( CAST( NULL AS SIGNED ) ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9723
SELECT ALL ( CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9724
SELECT 77 * + + SUM( - 79 ) FROM tab1
----
-18249

skipif mysql # not compatible
query I rowsort label-9724
SELECT 77 * + + SUM ( - 79 ) FROM tab1
----
-18249

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 32 - 28 * + col1 <= 2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) <> 53 * - col1 * - col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NOT ( NULL ) NOT BETWEEN NULL AND NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col1 NOT IN ( col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL = 34 - + col1 + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-9730
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( + CAST( NULL AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-9730
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( + CAST ( NULL AS INTEGER ) ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9731
SELECT 53 * - - COUNT( * ) FROM tab1
----
159

skipif mysql # not compatible
query I rowsort label-9731
SELECT 53 * - - COUNT ( * ) FROM tab1
----
159

query I rowsort
SELECT DISTINCT - 70 FROM tab2 AS cor0 WHERE NOT 12 * col1 - + - 2 NOT IN ( col1 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( col2 - - - col1 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 73 * col2 col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( - - col1 * - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 49 + + 50 col2 FROM tab1 AS cor0
----
99
99
99

query I rowsort
SELECT ALL + col1 AS col1 FROM tab0 AS cor0 WHERE + 44 * + col2 >= NULL
----

query I rowsort
SELECT ( - + 59 ) + + col0 AS col0 FROM tab2 AS cor0
----
-13
16
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9738
SELECT + COUNT( * ) + COUNT( 7 ) * SUM( DISTINCT col2 ) AS col0 FROM tab0 AS cor0 WHERE NOT + ( - - 87 ) >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9738
SELECT + COUNT ( * ) + COUNT ( 7 ) * SUM ( DISTINCT col2 ) AS col0 FROM tab0 AS cor0 WHERE NOT + ( - - 87 ) >= NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9739
SELECT + - col1 DIV - col0 * - - col2 DIV + col1 DIV + col1 + col0 + + col0 AS col2 FROM tab1 AS cor0
----
102
170
182

skipif mysql # not compatible
query I rowsort label-9739
SELECT + - col1 / - col0 * - - col2 / + col1 / + col1 + col0 + + col0 AS col2 FROM tab1 AS cor0
----
102
170
182

onlyif mysql # aggregate syntax: 
query I rowsort label-9740
SELECT DISTINCT + - SUM( - - col0 ) FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-9740
SELECT DISTINCT + - SUM ( - - col0 ) FROM tab2 AS cor0
----
-185

onlyif mysql # aggregate syntax: 
query I rowsort label-9741
SELECT ALL - COUNT( - col0 ) FROM tab1 AS cor0 WHERE col2 * + col2 + - col2 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9741
SELECT ALL - COUNT ( - col0 ) FROM tab1 AS cor0 WHERE col2 * + col2 + - col2 IS NOT NULL
----
-3

query III rowsort
SELECT * FROM tab1 WHERE ( + 30 * + ( - col2 ) ) >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9743
SELECT SUM( + + col0 ) AS col2 FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-9743
SELECT SUM ( + + col0 ) AS col2 FROM tab2
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-9744
SELECT DISTINCT SUM( + col0 ) + + 70 FROM tab2
----
255

skipif mysql # not compatible
query I rowsort label-9744
SELECT DISTINCT SUM ( + col0 ) + + 70 FROM tab2
----
255

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 39 * - - col2 AS col1, ( + ( - 43 ) ) col2 FROM tab1
----
-2301
-43
-2652
-43
-3744
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-9746
SELECT DISTINCT COUNT( * ) * 92 FROM tab1 WHERE ( + col1 * col1 * - 6 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9746
SELECT DISTINCT COUNT ( * ) * 92 FROM tab1 WHERE ( + col1 * col1 * - 6 ) IS NULL
----
0

query I rowsort
SELECT - col2 AS col1 FROM tab0 WHERE + col1 + + 12 + + col2 IS NOT NULL
----
-10
-47
-99

query I rowsort
SELECT + col2 * + + 71 FROM tab1
----
4189
4828
6816

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9749
SELECT ALL ( 47 ) FROM tab0 AS cor0 WHERE + 43 NOT BETWEEN NULL AND ( - col1 + - col2 + - CAST( + + 63 AS SIGNED ) / + col1 )
----
47
47
47

skipif mysql # not compatible
query I rowsort label-9749
SELECT ALL ( 47 ) FROM tab0 AS cor0 WHERE + 43 NOT BETWEEN NULL AND ( - col1 + - col2 + - CAST ( + + 63 AS INTEGER ) / + col1 )
----
47
47
47

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9750
SELECT ( - 93 ) * - CAST( + CAST( NULL AS SIGNED ) AS DECIMAL ) + + - ( + col1 ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9750
SELECT ( - 93 ) * - CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) + + - ( + col1 ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 85 + - + 73 - - - 30 * - col1 FROM tab2 cor0
----
1372
1852
2152

query I rowsort
SELECT ALL col2 * + 41 - + col0 - + + col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
1536
2245
874

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9753
SELECT ALL COUNT( + + CAST( + + 73 AS SIGNED ) ) + COUNT( * ) AS col0 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-9753
SELECT ALL COUNT ( + + CAST ( + + 73 AS INTEGER ) ) + COUNT ( * ) AS col0 FROM tab1
----
6

query I rowsort
SELECT DISTINCT - col0 * - col2 + + col0 + - 13 + ( 42 ) + + col2 * + col2 AS col1 FROM tab2
----
1662
4253
7818

query I rowsort
SELECT + 12 + col0 * - 6 AS col2 FROM tab0 WHERE + col2 / - col0 * + 95 * + col1 IS NULL
----

query I rowsort
SELECT - - 20 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

query I rowsort
SELECT ALL col0 + - + 47 * - col1 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query II rowsort
SELECT ALL - col1 + - - col2 AS col0, + 45 FROM tab1 AS cor0
----
21
45
54
45
82
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9759
SELECT ALL - CAST( - COUNT( * ) AS SIGNED ) * - - 83 + 95 FROM tab2 AS cor0
----
344

skipif mysql # not compatible
query I rowsort label-9759
SELECT ALL - CAST ( - COUNT ( * ) AS INTEGER ) * - - 83 + 95 FROM tab2 AS cor0
----
344

query I rowsort
SELECT ALL + 55 - - col2 + - - col2 FROM tab2 cor0
----
101
135
171

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 5 + + - col1 * col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9762
SELECT DISTINCT - 13 * + + MAX( - 50 ) FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - col0 * col1 + col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9762
SELECT DISTINCT - 13 * + + MAX ( - 50 ) FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - col0 * col1 + col2 )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - 12 * 48 col0 FROM tab1
----
29376
48960
52416

onlyif mysql # aggregate syntax: 
query I rowsort label-9764
SELECT DISTINCT 99 * + 62 * MAX( DISTINCT - col2 ) * + COUNT( * ) AS col0 FROM tab2
----
-423522

skipif mysql # not compatible
query I rowsort label-9764
SELECT DISTINCT 99 * + 62 * MAX ( DISTINCT - col2 ) * + COUNT ( * ) AS col0 FROM tab2
----
-423522

query I rowsort
SELECT - col2 * - 63 AS col1 FROM tab2
----
1449
2520
3654

query I rowsort
SELECT DISTINCT 39 * - col2 AS col1 FROM tab0
----
-1833
-3861
-390

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9767
SELECT ALL * FROM tab2 WHERE NOT NULL IN ( + CAST( - 68 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-9767
SELECT ALL * FROM tab2 WHERE NOT NULL IN ( + CAST ( - 68 AS INTEGER ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9768
SELECT col2 DIV + - 72 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9768
SELECT col2 / + - 72 FROM tab1
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9769
SELECT - - SUM( ALL + 39 ) * + - 17 * - ( - 99 * 67 ) FROM tab2 WHERE NOT - 42 + - + 32 NOT BETWEEN NULL AND col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9769
SELECT - - SUM ( ALL + 39 ) * + - 17 * - ( - 99 * 67 ) FROM tab2 WHERE NOT - 42 + - + 32 NOT BETWEEN NULL AND col1
----
NULL

query I rowsort
SELECT DISTINCT - 44 * - col1 AS col1 FROM tab2
----
2244
2948
3388

query III rowsort
SELECT * FROM tab2 WHERE NOT - 22 NOT IN ( col0 )
----

query I rowsort
SELECT + 19 * + - 92 AS col2 FROM tab2
----
-1748
-1748
-1748

query I rowsort
SELECT - 85 * + col2 * - 10 * + 28 AS col2 FROM tab0
----
1118600
2356200
238000

query I rowsort
SELECT DISTINCT col2 * - + col2 * - 50 FROM tab0
----
110450
490050
5000

query II rowsort
SELECT DISTINCT + + 66, 96 AS col0 FROM tab1 AS cor0
----
66
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9776
SELECT COUNT( DISTINCT + 7 ) AS col1 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9776
SELECT COUNT ( DISTINCT + 7 ) AS col1 FROM tab2 AS cor0
----
1

query I rowsort
SELECT + ( - 90 ) FROM tab0 AS cor0
----
-90
-90
-90

query I rowsort
SELECT + 63 * - col2 + + col1 / + col1 FROM tab2 AS cor0 WHERE NOT 23 * - col0 - + 58 NOT BETWEEN - + col1 + 99 AND - col0 * col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9779
SELECT ALL ( + - COUNT( + col0 ) ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-9779
SELECT ALL ( + - COUNT ( + col0 ) ) AS col0 FROM tab1
----
-3

query I rowsort
SELECT DISTINCT + + 45 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
45

onlyif mysql # aggregate syntax: 
query II rowsort label-9781
SELECT ALL AVG ( DISTINCT + 60 ) + COUNT( + col0 ) col1, 99 AS col0 FROM tab2 WHERE NOT NULL <= - + col1
----
NULL
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9781
SELECT ALL AVG ( DISTINCT + 60 ) + COUNT ( + col0 ) col1, 99 AS col0 FROM tab2 WHERE NOT NULL <= - + col1
----
NULL
99

onlyif mysql # DIV for integer division: 
query I rowsort label-9782
SELECT DISTINCT 91 DIV 87 * + col2 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-9782
SELECT DISTINCT 91 / 87 * + col2 FROM tab2
----
23
40
58

query I rowsort
SELECT ALL + 22 FROM tab1 WHERE NOT NULL IS NOT NULL
----
22
22
22

query I rowsort
SELECT DISTINCT 88 AS col2 FROM tab1 cor0
----
88

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 62 NOT IN ( - col0, 81 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 23 col1 FROM tab1 AS cor0
----
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + ( - + 29 ), col2 col0 FROM tab1 AS cor0
----
-29
59
-29
68
-29
96

query II rowsort
SELECT DISTINCT + - col1 + col1, - 86 AS col2 FROM tab2 AS cor0
----
0
-86

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT - col2 * + + 28 * + col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 * + col1 + + + col1 AS col1 FROM tab2
----
2397
5005
5092

query III rowsort
SELECT * FROM tab0 WHERE + ( - col0 ) * 12 > + 99 + 52
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9792
SELECT - COUNT( * ) + - 63 FROM tab0
----
-66

skipif mysql # not compatible
query I rowsort label-9792
SELECT - COUNT ( * ) + - 63 FROM tab0
----
-66

query I rowsort
SELECT + col1 + + - col1 AS col1 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9794
SELECT ALL - COUNT( * ) + 4 AS col0 FROM tab2 WHERE NOT - col2 / 15 / 49 IS NOT NULL
----
4

skipif mysql # not compatible
query I rowsort label-9794
SELECT ALL - COUNT ( * ) + 4 AS col0 FROM tab2 WHERE NOT - col2 / 15 / 49 IS NOT NULL
----
4

query I rowsort
SELECT DISTINCT + col2 * ( col0 ) + 40 FROM tab2
----
1098
2600
4390

query I rowsort
SELECT DISTINCT 46 * + col2 * + col0 + + + col2 + 9 AS col0 FROM tab1 AS cor0
----
225321
230758
284725

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 84 = - - 76
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - ( 56 ) AS col2 FROM tab0 AS cor0
----
-56
-56
-56

query I rowsort
SELECT - col1 * + col0 * - - col2 + - + 50 + - col2 AS col1 FROM tab1 AS cor0
----
-25184
-290954
-68690

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9800
SELECT DISTINCT - ( - - CAST( col2 AS SIGNED ) ) + + col0 AS col0 FROM tab0 WHERE NOT - + col2 + - 57 - col1 * - - 47 / + col1 NOT BETWEEN ( NULL ) AND col2
----

skipif mysql # not compatible
query I rowsort label-9800
SELECT DISTINCT - ( - - CAST ( col2 AS INTEGER ) ) + + col0 AS col0 FROM tab0 WHERE NOT - + col2 + - 57 - col1 * - - 47 / + col1 NOT BETWEEN ( NULL ) AND col2
----

query I rowsort
SELECT ALL - 88 + col0 FROM tab1
----
-3
-37
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9802
SELECT - ( col2 ) * col0 + - CAST( + + col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-1104
-2624
-4425

skipif mysql # not compatible
query I rowsort label-9802
SELECT - ( col2 ) * col0 + - CAST ( + + col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-1104
-2624
-4425

onlyif mysql # aggregate syntax: 
query I rowsort label-9803
SELECT ALL - MIN( DISTINCT col0 ) FROM tab2 cor0
----
-46

skipif mysql # not compatible
query I rowsort label-9803
SELECT ALL - MIN ( DISTINCT col0 ) FROM tab2 cor0
----
-46

query II rowsort
SELECT col1, + 99 FROM tab1 AS cor0
----
14
99
47
99
5
99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9805
SELECT + - col1, + 62 + 82 - CAST( NULL AS SIGNED ) * + - col0 AS col1 FROM tab0 cor0
----
-1
NULL
-21
NULL
-81
NULL

skipif mysql # not compatible
query II rowsort label-9805
SELECT + - col1, + 62 + 82 - CAST ( NULL AS INTEGER ) * + - col0 AS col1 FROM tab0 cor0
----
-1
NULL
-21
NULL
-81
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9806
SELECT MIN( 53 ) FROM tab0 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-9806
SELECT MIN ( 53 ) FROM tab0 AS cor0
----
53

onlyif mysql # aggregate syntax: 
query II rowsort label-9807
SELECT DISTINCT - ( + COUNT( * ) ) * - ( + + COUNT( * ) ), + 62 AS col1 FROM tab2 AS cor0
----
9
62

skipif mysql # not compatible
query II rowsort label-9807
SELECT DISTINCT - ( + COUNT ( * ) ) * - ( + + COUNT ( * ) ), + 62 AS col1 FROM tab2 AS cor0
----
9
62

query II rowsort
SELECT DISTINCT 79 * - + 50 AS col1, + col1 + col2 - - col2 FROM tab1 AS cor0
----
-3950
123
-3950
183
-3950
206

onlyif mysql # aggregate syntax: 
query I rowsort label-9809
SELECT - - COUNT( * ) + COUNT( * ) AS col2 FROM tab1 WHERE NOT + col0 IS NULL
----
6

skipif mysql # not compatible
query I rowsort label-9809
SELECT - - COUNT ( * ) + COUNT ( * ) AS col2 FROM tab1 WHERE NOT + col0 IS NULL
----
6

query I rowsort
SELECT DISTINCT + ( + 42 ) * + 38 AS col0 FROM tab2 AS cor0
----
1596

onlyif mysql # DIV for integer division: 
query I rowsort label-9811
SELECT DISTINCT + col0 * - 95 * + ( - - col2 ) + 98 DIV col2 AS col0 FROM tab0 AS cor0
----
-66973
-82641
-912285

skipif mysql # not compatible
query I rowsort label-9811
SELECT DISTINCT + col0 * - 95 * + ( - - col2 ) + 98 / col2 AS col0 FROM tab0 AS cor0
----
-66973
-82641
-912285

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9812
SELECT ALL + 99 * + + CAST( NULL AS SIGNED ) * - col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9812
SELECT ALL + 99 * + + CAST ( NULL AS INTEGER ) * - col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9813
SELECT COUNT( * ) DIV 43 AS col0 FROM tab0 AS cor0 WHERE ( NULL BETWEEN ( - + 34 ) AND ( - + 66 ) )
----
0

skipif mysql # not compatible
query I rowsort label-9813
SELECT COUNT ( * ) / 43 AS col0 FROM tab0 AS cor0 WHERE ( NULL BETWEEN ( - + 34 ) AND ( - + 66 ) )
----
0

query I rowsort
SELECT - - ( - 22 ) + + + 0 * - + col1 * col0 FROM tab2 AS cor0
----
-22
-22
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9815
SELECT ALL + - CAST( NULL AS SIGNED ) FROM tab2 cor0 WHERE NOT ( NOT ( NOT - 29 - + col1 = - col1 ) )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9815
SELECT ALL + - CAST ( NULL AS INTEGER ) FROM tab2 cor0 WHERE NOT ( NOT ( NOT - 29 - + col1 = - col1 ) )
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9816
SELECT + 0 / + MIN( - 54 ) AS col2, + 76 FROM tab2 AS cor0 WHERE ( ( NOT NULL IN ( - col2 + - col1 ) ) )
----
NULL
76

skipif mysql # not compatible
query II rowsort label-9816
SELECT + 0 / + MIN ( - 54 ) AS col2, + 76 FROM tab2 AS cor0 WHERE ( ( NOT NULL IN ( - col2 + - col1 ) ) )
----
NULL
76

query I rowsort
SELECT ALL + col2 + + 17 + col2 AS col2 FROM tab0
----
111
215
37

query III rowsort
SELECT ALL * FROM tab2 WHERE + col0 NOT IN ( - - col2, + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + AVG ( ALL 83 ) FROM tab2 WHERE NULL < col1 * - col0 + ( col1 )
----
NULL

query I rowsort
SELECT ALL col2 + - - 60 AS col0 FROM tab2
----
100
118
83

query I rowsort
SELECT + col0 + col1 AS col2 FROM tab2 WHERE NULL IS NULL
----
141
142
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9822
SELECT ALL - col0 + - col1 + + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9822
SELECT ALL - col0 + - col1 + + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9823
SELECT + SUM( + col1 ) col1 FROM tab0
----
103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9823
SELECT + SUM ( + col1 ) col1 FROM tab0
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-9824
SELECT DISTINCT COUNT( * ) + + + COUNT( * ) + + MIN( - + col0 ) AS col0 FROM tab0
----
-91

skipif mysql # not compatible
query I rowsort label-9824
SELECT DISTINCT COUNT ( * ) + + + COUNT ( * ) + + MIN ( - + col0 ) AS col0 FROM tab0
----
-91

query I rowsort
SELECT DISTINCT + col2 + + 57 + + col1 - + col2 FROM tab0
----
138
58
78

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL IN ( 76 + - col1, col0, - - col1 )
----

query I rowsort
SELECT DISTINCT - col1 + - 17 * col0 AS col0 FROM tab1 AS cor0
----
-1450
-1594
-881

onlyif mysql # DIV for integer division: 
query I rowsort label-9828
SELECT - 4 DIV - col2 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9828
SELECT - 4 / - col2 AS col2 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9829
SELECT - SUM( col0 ) FROM tab1 cor0
----
-227

skipif mysql # not compatible
query I rowsort label-9829
SELECT - SUM ( col0 ) FROM tab1 cor0
----
-227

query II rowsort
SELECT DISTINCT + + col2 AS col2, col2 FROM tab2 AS cor0
----
23
23
40
40
58
58

query I rowsort
SELECT DISTINCT + + ( 1 ) FROM tab0 AS cor0
----
1

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 9 * - 30 + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9833
SELECT - - CAST( + + col0 AS SIGNED ) AS col2, col1 * - col0 FROM tab0 AS cor0 WHERE NOT NULL >= - ( + col1 )
----

skipif mysql # not compatible
query II rowsort label-9833
SELECT - - CAST ( + + col0 AS INTEGER ) AS col2, col1 * - col0 FROM tab0 AS cor0 WHERE NOT NULL >= - ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9834
SELECT - + COUNT( * ) + 17 FROM tab2 AS cor0 WHERE NOT col1 * - - col2 IS NOT NULL
----
17

skipif mysql # not compatible
query I rowsort label-9834
SELECT - + COUNT ( * ) + 17 FROM tab2 AS cor0 WHERE NOT col1 * - - col2 IS NOT NULL
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9835
SELECT ALL + + CAST( NULL AS SIGNED ) * col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9835
SELECT ALL + + CAST ( NULL AS INTEGER ) * col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 * + 24 FROM tab2
----
1224
1608
1848

query I rowsort
SELECT 90 * + + col0 FROM tab0
----
1350
7830
8730

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - + 44 col2 FROM tab1
----
-2244
-3740
-4004

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col0, - col1 FROM tab0
----
15
-81
87
-21
97
-1

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 31 + - 51 + col0 * - - 36 = + + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL col1, col2 AS col0 FROM tab1
----
14
96
47
68
5
59

onlyif mysql # aggregate syntax: 
query I rowsort label-9842
SELECT ALL - 17 * + + COUNT( * ) FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-9842
SELECT ALL - 17 * + + COUNT ( * ) FROM tab1
----
-51

query I rowsort
SELECT DISTINCT col1 * - + col2 * - col0 AS col2 FROM tab0 AS cor0
----
18270
57105
9603

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9844
SELECT * FROM tab0 cor0 WHERE NOT ( CAST( NULL AS SIGNED ) <= NULL )
----

skipif mysql # not compatible
query III rowsort label-9844
SELECT * FROM tab0 cor0 WHERE NOT ( CAST ( NULL AS INTEGER ) <= NULL )
----

query I rowsort
SELECT DISTINCT 18 * + + 73 FROM tab1 AS cor0
----
1314

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 32 + + col1 + + - 96 col2 FROM tab1 AS cor0
----
-17
-50
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9847
SELECT DISTINCT + col1 * - CAST( 57 AS SIGNED ) FROM tab0
----
-1197
-4617
-57

skipif mysql # not compatible
query I rowsort label-9847
SELECT DISTINCT + col1 * - CAST ( 57 AS INTEGER ) FROM tab0
----
-1197
-4617
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-9848
SELECT ALL - ( + col2 ) * 1 DIV - 98 col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9848
SELECT ALL - ( + col2 ) * 1 / - 98 col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9849
SELECT + COUNT( * ) * + 15 AS col0 FROM tab2 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-9849
SELECT + COUNT ( * ) * + 15 AS col0 FROM tab2 AS cor0
----
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9850
SELECT - - 41 DIV + COUNT( * ) AS col1 FROM tab1 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-9850
SELECT - - 41 / + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
13

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT NULL <> - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9852
SELECT - COUNT( * ) * - 30 AS col2 FROM tab0 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-9852
SELECT - COUNT ( * ) * - 30 AS col2 FROM tab0 AS cor0
----
90

query I rowsort
SELECT DISTINCT + col1 * - col1 * col0 + col0 AS col2 FROM tab1 AS cor0
----
-200928
-2040
-9945

query I rowsort
SELECT col2 * + col1 + ( 93 ) AS col0 FROM tab0 AS cor0
----
192
303
3900

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9855
SELECT DISTINCT + CAST( - + col2 AS SIGNED ) AS col1 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-9855
SELECT DISTINCT + CAST ( - + col2 AS INTEGER ) AS col1 FROM tab1
----
-59
-68
-96

query I rowsort
SELECT DISTINCT col0 * + - col0 + - - col2 + + + col0 FROM tab2
----
-2047
-3992
-5492

query I rowsort
SELECT 11 + - + 96 FROM tab0
----
-85
-85
-85

query I rowsort
SELECT ALL ( col2 ) + - + 7 AS col2 FROM tab2
----
16
33
51

onlyif mysql # aggregate syntax: 
query I rowsort label-9859
SELECT DISTINCT + + COUNT( * ) + + 38 AS col0 FROM tab1 WHERE + 1 = NULL
----
38

skipif mysql # not compatible
query I rowsort label-9859
SELECT DISTINCT + + COUNT ( * ) + + 38 AS col0 FROM tab1 WHERE + 1 = NULL
----
38

query III rowsort
SELECT * FROM tab1 WHERE col1 < - 81
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9861
SELECT ALL 70 + - COUNT( * ) FROM tab1
----
67

skipif mysql # not compatible
query I rowsort label-9861
SELECT ALL 70 + - COUNT ( * ) FROM tab1
----
67

query I rowsort
SELECT DISTINCT - 71 - - col2 FROM tab0 AS cor0
----
-24
-61
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9863
SELECT DISTINCT MAX( DISTINCT - col2 ) / - + ( CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9863
SELECT DISTINCT MAX ( DISTINCT - col2 ) / - + ( CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 36 col0 FROM tab0 AS cor0
----
-36
-36
-36

query II rowsort
SELECT ALL + + col0, - col1 * + 94 FROM tab0 AS cor0
----
15
-7614
87
-1974
97
-94

query II rowsort
SELECT - 84, - col2 AS col2 FROM tab0 AS cor0
----
-84
-10
-84
-47
-84
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9867
SELECT DISTINCT MIN( - 87 ) AS col2 FROM tab2 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-9867
SELECT DISTINCT MIN ( - 87 ) AS col2 FROM tab2 AS cor0
----
-87

query I rowsort
SELECT + ( + ( + col0 ) ) FROM tab1 cor0
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9869
SELECT + SUM( ALL + ( 25 ) ) FROM tab2 cor0
----
75

skipif mysql # not compatible
query I rowsort label-9869
SELECT + SUM ( ALL + ( 25 ) ) FROM tab2 cor0
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9870
SELECT ALL + - CAST( - 10 AS SIGNED ) FROM tab2 AS cor0
----
10
10
10

skipif mysql # not compatible
query I rowsort label-9870
SELECT ALL + - CAST ( - 10 AS INTEGER ) FROM tab2 AS cor0
----
10
10
10

query I rowsort
SELECT + + ( + 19 ) FROM tab0 AS cor0
----
19
19
19

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + 35 + - col0 * + - 17 )
----

query II rowsort
SELECT DISTINCT 49 AS col2, + col1 AS col2 FROM tab2
----
49
51
49
67
49
77

onlyif mysql # DIV for integer division: 
query I rowsort label-9874
SELECT + col2 DIV + + 38 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-9874
SELECT + col2 / + + 38 FROM tab2
----
0
1
1

query I rowsort
SELECT ( col0 ) * - - 50 FROM tab0
----
4350
4850
750

onlyif mysql # aggregate syntax: 
query I rowsort label-9876
SELECT COUNT( * ) * + 3 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-9876
SELECT COUNT ( * ) * + 3 FROM tab1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9877
SELECT DISTINCT - - MIN( - - col1 ) AS col2 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-9877
SELECT DISTINCT - - MIN ( - - col1 ) AS col2 FROM tab1 AS cor0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9878
SELECT - + MIN( - 24 ) FROM tab1 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-9878
SELECT - + MIN ( - 24 ) FROM tab1 AS cor0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-9879
SELECT DISTINCT - - COUNT( * ) col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9879
SELECT DISTINCT - - COUNT ( * ) col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9

query I rowsort
SELECT 12 + 22 + + + 66 FROM tab1
----
100
100
100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9881
SELECT + CAST( NULL AS SIGNED ) + + COUNT( * ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9881
SELECT + CAST ( NULL AS INTEGER ) + + COUNT ( * ) AS col0 FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9882
SELECT + 41 + + + ( - + col0 ) * + 60 DIV + 1 FROM tab2 AS cor0
----
-2719
-3799
-4459

skipif mysql # not compatible
query I rowsort label-9882
SELECT + 41 + + + ( - + col0 ) * + 60 / + 1 FROM tab2 AS cor0
----
-2719
-3799
-4459

query I rowsort
SELECT ALL - 63 + + 0 FROM tab1 AS cor0
----
-63
-63
-63

onlyif mysql # aggregate syntax: 
query II rowsort label-9884
SELECT DISTINCT - + COUNT( * ) AS col0, - COUNT( * ) FROM tab2 AS cor0
----
-3
-3

skipif mysql # not compatible
query II rowsort label-9884
SELECT DISTINCT - + COUNT ( * ) AS col0, - COUNT ( * ) FROM tab2 AS cor0
----
-3
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-9885
SELECT ALL col1 DIV 77 * - - col1 AS col2 FROM tab2 AS cor0
----
0
0
77

skipif mysql # not compatible
query I rowsort label-9885
SELECT ALL col1 / 77 * - - col1 AS col2 FROM tab2 AS cor0
----
0
0
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9886
SELECT 72 * + COUNT( * ) AS col1 FROM tab2 AS cor0
----
216

skipif mysql # not compatible
query I rowsort label-9886
SELECT 72 * + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
216

query I rowsort
SELECT + col0 * 3 * - ( + - col1 ) FROM tab1 AS cor0
----
1275
12831
2142

query I rowsort
SELECT ALL - - ( 71 ) AS col1 FROM tab1 AS cor0
----
71
71
71

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( 44 + col2 - + col1 * - col1 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + + col2 * - col2, col1 + + col1 AS col1 FROM tab1 AS cor0
----
-3481
10
-4624
94
-9216
28

query I rowsort
SELECT DISTINCT - 50 + - + col1 + col1 - - + 6 FROM tab1
----
-44

query I rowsort
SELECT ALL - col1 + + 46 FROM tab0
----
-35
25
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - 0 col2 FROM tab1
----
59
68
96

query I rowsort
SELECT 42 - 18 AS col2 FROM tab0
----
24
24
24

query I rowsort
SELECT ALL - col0 + + - col0 FROM tab2
----
-128
-150
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-9896
SELECT DISTINCT - MAX( ALL + col2 ) - + - 58 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9896
SELECT DISTINCT - MAX ( ALL + col2 ) - + - 58 AS col2 FROM tab2
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9897
SELECT * FROM tab0 AS cor0 WHERE col2 * col2 NOT IN ( - CAST( + 92 AS DECIMAL ), 29 * - col1 / col0 - - CAST( - 6 AS DECIMAL ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9897
SELECT * FROM tab0 AS cor0 WHERE col2 * col2 NOT IN ( - CAST ( + 92 AS REAL ), 29 * - col1 / col0 - - CAST ( - 6 AS REAL ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col0 - - 30 - + - col0 AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
30
30
30

query II rowsort
SELECT DISTINCT - 30, col1 FROM tab1 cor0
----
-30
14
-30
47
-30
5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9900
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT IN ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-9900
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT IN ( CAST ( NULL AS INTEGER ) )
----

query II rowsort
SELECT ALL + 65, + col2 AS col1 FROM tab1 AS cor0
----
65
59
65
68
65
96

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + 14 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + col1 * - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT - col1 AS col0, col1 + - - 48 AS col1 FROM tab0 AS cor0
----
-1
49
-21
69
-81
129

query II rowsort
SELECT 16 AS col0, - col1 * col0 FROM tab0 AS cor0
----
16
-1215
16
-1827
16
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-9906
SELECT MAX( - 17 ) AS col2 FROM tab1
----
-17

skipif mysql # not compatible
query I rowsort label-9906
SELECT MAX ( - 17 ) AS col2 FROM tab1
----
-17

query I rowsort
SELECT DISTINCT 71 + col0 * col2 AS col0 FROM tab1
----
4967
5086
6259

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 <> + 95
----

query II rowsort
SELECT DISTINCT - col2 * - + col2 * - col2 * + col2 AS col1, 27 AS col0 FROM tab1
----
-12117361
27
-21381376
27
-84934656
27

query II rowsort
SELECT - - ( + col1 ) AS col1, + 75 FROM tab1 AS cor0
----
14
75
47
75
5
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9911
SELECT + COUNT( * ) AS col1 FROM tab1 WHERE - - col0 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-9911
SELECT + COUNT ( * ) AS col1 FROM tab1 WHERE - - col0 >= NULL
----
0

query II rowsort
SELECT col1 + + col2 - 82, + col1 AS col0 FROM tab2 AS cor0
----
-8
51
35
77
43
67

onlyif mysql # aggregate syntax: 
query I rowsort label-9913
SELECT DISTINCT + - 43 - + COUNT( * ) + + 22 * - 18 FROM tab0 AS cor0
----
-442

skipif mysql # not compatible
query I rowsort label-9913
SELECT DISTINCT + - 43 - + COUNT ( * ) + + 22 * - 18 FROM tab0 AS cor0
----
-442

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9914
SELECT + col1 * - col0 + + 9 AS col0, + CAST( + col0 AS SIGNED ) FROM tab1 AS cor0
----
-416
85
-4268
91
-705
51

skipif mysql # not compatible
query II rowsort label-9914
SELECT + col1 * - col0 + + 9 AS col0, + CAST ( + col0 AS INTEGER ) FROM tab1 AS cor0
----
-416
85
-4268
91
-705
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9915
SELECT - + COUNT( * ) FROM tab2 AS cor0 WHERE + CAST( col0 AS SIGNED ) IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9915
SELECT - + COUNT ( * ) FROM tab2 AS cor0 WHERE + CAST ( col0 AS INTEGER ) IS NOT NULL
----
-3

query I rowsort
SELECT - - col2 + + + col1 FROM tab1 AS cor0
----
110
115
64

query I rowsort
SELECT DISTINCT + + ( - + ( + 61 ) ) FROM tab1 AS cor0
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-9918
SELECT ALL COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-9918
SELECT ALL COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) <= NULL
----
0

query I rowsort
SELECT DISTINCT + 75 AS col0 FROM tab1 cor0
----
75

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col0 = - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + - 60 ) + - col0 col1 FROM tab1
----
-111
-145
-151

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9922
SELECT DISTINCT 89 + + col1 + + ( CAST( + 27 AS SIGNED ) ) AS col0 FROM tab2
----
167
183
193

skipif mysql # not compatible
query I rowsort label-9922
SELECT DISTINCT 89 + + col1 + + ( CAST ( + 27 AS INTEGER ) ) AS col0 FROM tab2
----
167
183
193

query I rowsort
SELECT ALL + + col0 AS col2 FROM tab2 WHERE NOT NULL BETWEEN NULL AND + 70
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9924
SELECT + - CAST( NULL AS SIGNED ) AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9924
SELECT + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9925
SELECT + 22 AS col0, - COUNT( * ) FROM tab2
----
22
-3

skipif mysql # not compatible
query II rowsort label-9925
SELECT + 22 AS col0, - COUNT ( * ) FROM tab2
----
22
-3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + + col2 - - col0 + col1 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9927
SELECT DISTINCT COUNT( * ) - 39 AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
-39

skipif mysql # not compatible
query I rowsort label-9927
SELECT DISTINCT COUNT ( * ) - 39 AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-9928
SELECT - SUM( ALL + col1 ) AS col2 FROM tab1 cor0
----
-66

skipif mysql # not compatible
query I rowsort label-9928
SELECT - SUM ( ALL + col1 ) AS col2 FROM tab1 cor0
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9929
SELECT DISTINCT - - CAST( + MIN( ALL - col2 ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-9929
SELECT DISTINCT - - CAST ( + MIN ( ALL - col2 ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-9930
SELECT DISTINCT - ( ( 45 ) ) DIV col2 col0 FROM tab2
----
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9930
SELECT DISTINCT - ( ( 45 ) ) / col2 col0 FROM tab2
----
-1
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9931
SELECT DISTINCT ( + COUNT( * ) ) AS col0, 45 FROM tab1
----
3
45

skipif mysql # not compatible
query II rowsort label-9931
SELECT DISTINCT ( + COUNT ( * ) ) AS col0, 45 FROM tab1
----
3
45

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 42 + + + 27 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9933
SELECT DISTINCT - MIN( 3 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-3

skipif mysql # not compatible
query I rowsort label-9933
SELECT DISTINCT - MIN ( 3 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-3

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab2 AS cor0 WHERE NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9935
SELECT - - ( + SUM( ALL + - col2 ) ) FROM tab2 cor0
----
-121

skipif mysql # not compatible
query I rowsort label-9935
SELECT - - ( + SUM ( ALL + - col2 ) ) FROM tab2 cor0
----
-121

query I rowsort
SELECT 50 + + 56 AS col1 FROM tab0 AS cor0
----
106
106
106

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9937
SELECT - ( + CAST( NULL AS SIGNED ) ) + + - col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9937
SELECT - ( + CAST ( NULL AS INTEGER ) ) + + - col0 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 * col0 + + ( + col0 ) + + + ( col1 ) AS col2 FROM tab0 AS cor0
----
-1119
-1719
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9939
SELECT ALL + + col1 * + CAST( + 99 AS SIGNED ) FROM tab1 AS cor0
----
1386
4653
495

skipif mysql # not compatible
query I rowsort label-9939
SELECT ALL + + col1 * + CAST ( + 99 AS INTEGER ) FROM tab1 AS cor0
----
1386
4653
495

query I rowsort
SELECT DISTINCT + col1 + col2 * + - col0 AS col0 FROM tab2 AS cor0
----
-1007
-2483
-4283

query I rowsort
SELECT DISTINCT ( + + col0 ) FROM tab0 AS cor0 WHERE 5 <= - + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9942
SELECT * FROM tab0 WHERE NOT NULL BETWEEN ( + col1 * + - col2 / CAST( NULL AS SIGNED ) ) AND + col0
----

skipif mysql # not compatible
query III rowsort label-9942
SELECT * FROM tab0 WHERE NOT NULL BETWEEN ( + col1 * + - col2 / CAST ( NULL AS INTEGER ) ) AND + col0
----

query I rowsort
SELECT ALL ( - ( - col0 ) ) AS col0 FROM tab0
----
15
87
97

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 10 - + col0 + + col0 - - 28 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9945
SELECT - 82 * + COUNT( ALL + - col1 ) FROM tab0
----
-246

skipif mysql # not compatible
query I rowsort label-9945
SELECT - 82 * + COUNT ( ALL + - col1 ) FROM tab0
----
-246

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9946
SELECT CAST( NULL AS SIGNED ) * SUM( DISTINCT + col2 ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9946
SELECT CAST ( NULL AS INTEGER ) * SUM ( DISTINCT + col2 ) AS col1 FROM tab2
----
NULL

query I rowsort
SELECT ALL + col1 + + + col0 FROM tab2
----
141
142
97

query I rowsort
SELECT ALL ( - + 71 ) FROM tab1
----
-71
-71
-71

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab0 cor0 WHERE NOT col2 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 col2, ( 4 ) * + + col0 FROM tab0 AS cor0
----
-1
388
-21
348
-81
60

onlyif mysql # DIV for integer division: 
query I rowsort label-9951
SELECT DISTINCT - col0 DIV + col0 + + 0 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-9951
SELECT DISTINCT - col0 / + col0 + + 0 FROM tab2
----
-1

query I rowsort
SELECT - col1 + - + col0 * - 24 + 39 FROM tab0
----
2106
2366
318

onlyif mysql # DIV for integer division: 
query I rowsort label-9953
SELECT ALL 70 DIV - col1 + + - col1 FROM tab1
----
-19
-19
-48

skipif mysql # not compatible
query I rowsort label-9953
SELECT ALL 70 / - col1 + + - col1 FROM tab1
----
-19
-19
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-9954
SELECT ALL - + col1 - + col0 DIV 51 DIV - 33 col2 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9954
SELECT ALL - + col1 - + col0 / 51 / - 33 col2 FROM tab2 AS cor0
----
-51
-67
-77

query II rowsort
SELECT ALL ( + col2 ), - 88 FROM tab1 AS cor0
----
59
-88
68
-88
96
-88

query I rowsort
SELECT - col0 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN + col2 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL >= ( + col1 )
----

query I rowsort
SELECT + col1 - ( + col0 ) AS col1 FROM tab1 AS cor0
----
-37
-44
-80

query I rowsort
SELECT ALL - col2 - + 2 AS col2 FROM tab2 AS cor0
----
-25
-42
-60

query I rowsort
SELECT DISTINCT col2 * + - col1 * + ( + 23 ) * + col0 FROM tab2
----
-1241034
-4533760
-6703350

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9961
SELECT DISTINCT 53 + + col0 * + CAST( NULL AS SIGNED ) * col0 * - - col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9961
SELECT DISTINCT 53 + + col0 * + CAST ( NULL AS INTEGER ) * col0 * - - col0 FROM tab1
----
NULL

query I rowsort
SELECT 32 * - 29 AS col2 FROM tab1
----
-928
-928
-928

onlyif mysql # DIV for integer division: 
query I rowsort label-9963
SELECT col0 DIV 95 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9963
SELECT col0 / 95 FROM tab2
----
0
0
0

query I rowsort
SELECT 80 * col1 AS col0 FROM tab2
----
4080
5360
6160

onlyif mysql # aggregate syntax: 
query I rowsort label-9965
SELECT - MAX( DISTINCT - - 14 ) FROM tab1
----
-14

skipif mysql # not compatible
query I rowsort label-9965
SELECT - MAX ( DISTINCT - - 14 ) FROM tab1
----
-14

query II rowsort
SELECT DISTINCT 58 AS col2, + col0 FROM tab0
----
58
15
58
87
58
97

query I rowsort
SELECT + - 98 AS col1 FROM tab2 cor0
----
-98
-98
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-9968
SELECT ALL - SUM( - col2 ) FROM tab1 cor0
----
223

skipif mysql # not compatible
query I rowsort label-9968
SELECT ALL - SUM ( - col2 ) FROM tab1 cor0
----
223

query I rowsort
SELECT ALL - - ( - - col0 ) * + 56 FROM tab0 AS cor0 WHERE NOT ( NOT NULL IS NULL ) OR NOT ( NULL ) BETWEEN - 11 AND NULL
----
4872
5432
840

onlyif mysql # aggregate syntax: 
query I rowsort label-9970
SELECT ALL + MAX( - 90 ) * MAX( 30 ) FROM tab2 cor0
----
-2700

skipif mysql # not compatible
query I rowsort label-9970
SELECT ALL + MAX ( - 90 ) * MAX ( 30 ) FROM tab2 cor0
----
-2700

query I rowsort
SELECT DISTINCT - 41 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-41

onlyif mysql # DIV for integer division: 
query II rowsort label-9972
SELECT col2 * col1 AS col1, - col0 DIV - col2 FROM tab2
----
1173
2
3080
1
3886
1

skipif mysql # not compatible
query II rowsort label-9972
SELECT col2 * col1 AS col1, - col0 / - col2 FROM tab2
----
1173
2
3080
1
3886
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9973
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-9973
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9974
SELECT ALL - + COUNT( ALL + - 99 ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9974
SELECT ALL - + COUNT ( ALL + - 99 ) AS col2 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT ALL + ( + - 49 ) AS col2 FROM tab0 AS cor0 WHERE col2 IS NULL
----

query II rowsort
SELECT + col0 AS col2, col2 * + - col0 AS col0 FROM tab1 AS cor0
----
51
-4896
85
-5015
91
-6188

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 BETWEEN + - col1 AND - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( ( - 41 ) - + ( - ( - col2 ) ) IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9979
SELECT - CAST( - 91 AS SIGNED ) FROM tab1
----
91
91
91

skipif mysql # not compatible
query I rowsort label-9979
SELECT - CAST ( - 91 AS INTEGER ) FROM tab1
----
91
91
91

onlyif mysql # aggregate syntax: 
query II rowsort label-9980
SELECT ALL 93 + MIN( + col0 ) AS col0, - MIN( ALL - col0 ) FROM tab0
----
108
97

skipif mysql # not compatible
query II rowsort label-9980
SELECT ALL 93 + MIN ( + col0 ) AS col0, - MIN ( ALL - col0 ) FROM tab0
----
108
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9981
SELECT col2 + + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) * - col1 + + 62 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9981
SELECT col2 + + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) * - col1 + + 62 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9982
SELECT - MIN( col1 ) + COUNT( * ) AS col0 FROM tab1
----
-2

skipif mysql # not compatible
query I rowsort label-9982
SELECT - MIN ( col1 ) + COUNT ( * ) AS col0 FROM tab1
----
-2

query I rowsort
SELECT - col0 + + 3 AS col1 FROM tab1
----
-48
-82
-88

query I rowsort
SELECT - col1 * - - 27 FROM tab1 WHERE NULL IS NULL
----
-1269
-135
-378

query I rowsort
SELECT DISTINCT col2 + 51 AS col0 FROM tab2
----
109
74
91

onlyif mysql # DIV for integer division: 
query I rowsort label-9986
SELECT ALL + col0 + + + col2 + col1 DIV 31 AS col0 FROM tab1
----
144
147
160

skipif mysql # not compatible
query I rowsort label-9986
SELECT ALL + col0 + + + col2 + col1 / 31 AS col0 FROM tab1
----
144
147
160

onlyif mysql # aggregate syntax: 
query I rowsort label-9987
SELECT - + COUNT( * ) + + 23 AS col2 FROM tab1 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-9987
SELECT - + COUNT ( * ) + + 23 AS col2 FROM tab1 AS cor0
----
20

query I rowsort
SELECT + 60 AS col2 FROM tab0 cor0
----
60
60
60

onlyif mysql # DIV for integer division: 
query I rowsort label-9989
SELECT DISTINCT col1 DIV col1 * + col0 FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-9989
SELECT DISTINCT col1 / col1 * + col0 FROM tab0 AS cor0
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9990
SELECT DISTINCT - CAST( NULL AS SIGNED ) / 99 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9990
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / 99 AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9991
SELECT DISTINCT - - 85 + + 50 - 63 * - COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
702

skipif mysql # not compatible
query I rowsort label-9991
SELECT DISTINCT - - 85 + + 50 - 63 * - COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
702

query I rowsort
SELECT ALL col0 - - col2 - ( + col2 ) AS col2 FROM tab1 cor0
----
51
85
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9993
SELECT + 80 + + 87 + COUNT( * ) DIV - COUNT( * ) FROM tab0 AS cor0
----
166

skipif mysql # not compatible
query I rowsort label-9993
SELECT + 80 + + 87 + COUNT ( * ) / - COUNT ( * ) FROM tab0 AS cor0
----
166

onlyif mysql # aggregate syntax: 
query I rowsort label-9994
SELECT + COUNT( + ( - col0 ) ) * - - 2 * + COUNT( * ) + COUNT( * ) FROM tab2 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-9994
SELECT + COUNT ( + ( - col0 ) ) * - - 2 * + COUNT ( * ) + COUNT ( * ) FROM tab2 AS cor0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-9995
SELECT COUNT( * ) + + 53 AS col2 FROM tab1 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-9995
SELECT COUNT ( * ) + + 53 AS col2 FROM tab1 AS cor0
----
56

query I rowsort
SELECT - - col1 * + - col0 FROM tab0 AS cor0
----
-1215
-1827
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-9997
SELECT MIN( 66 ) col2 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9997
SELECT MIN ( 66 ) col2 FROM tab1 AS cor0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-9998
SELECT - 16 * + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-9998
SELECT - 16 * + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-48

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL IN ( - + col0 )
----

