sqllogictest
Artifact Content
Not logged in

Artifact 61e926cd3dc41624985cd62cd9d79c14b1be65f8:


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