sqllogictest
Artifact Content
Not logged in

Artifact a2007762688f1443e3ea536676b190b8eff03441:


hash-threshold 8

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

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

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

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

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

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

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

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

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

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

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

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1
SELECT ALL - AVG ( DISTINCT + + 78 ) AS col0 FROM tab2 AS cor0 WHERE NOT + CAST( NULL AS DECIMAL ) * + + 20 / col1 + - 83 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1
SELECT ALL - AVG ( DISTINCT + + 78 ) AS col0 FROM tab2 AS cor0 WHERE NOT + CAST ( NULL AS REAL ) * + + 20 / col1 + - 83 IS NULL
----
NULL

query I rowsort
SELECT DISTINCT - col2 + - - col1 FROM tab2 AS cor0
----
28
37
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 82 + col1 + + - 88 + + col1 col1 FROM tab1
----
-142
-160
-76

onlyif mysql # DIV for integer division: 
query I rowsort label-4
SELECT + 70 DIV - col2 AS col1 FROM tab2
----
-1
-1
-3

skipif mysql # not compatible
query I rowsort label-4
SELECT + 70 / - col2 AS col1 FROM tab2
----
-1
-1
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-5
SELECT ALL 27 * col0 DIV + + 97 FROM tab1 AS cor0
----
14
23
25

skipif mysql # not compatible
query I rowsort label-5
SELECT ALL 27 * col0 / + + 97 FROM tab1 AS cor0
----
14
23
25

query I rowsort
SELECT + col2 + + - 6 AS col1 FROM tab2 AS cor0
----
17
34
52

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

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

query I rowsort
SELECT + col2 + col0 + 35 * col1 FROM tab0 AS cor0
----
231
2897
832

query I rowsort
SELECT 84 + - col0 FROM tab1 AS cor0
----
-1
-7
33

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

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

query I rowsort
SELECT DISTINCT - + 23 + - col2 * - - col0 FROM tab1 AS cor0
----
-4919
-5038
-6211

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

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

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

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

query II rowsort
SELECT 65 AS col1, - 12 AS col0 FROM tab2
----
65
-12
65
-12
65
-12

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-17
SELECT DISTINCT COUNT( * ) col0, 72 * - 26 FROM tab0 cor0
----
3
-1872

skipif mysql # not compatible
query II rowsort label-17
SELECT DISTINCT COUNT ( * ) col0, 72 * - 26 FROM tab0 cor0
----
3
-1872

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

skipif mysql # not compatible
query I rowsort label-18
SELECT DISTINCT - COUNT ( * ) * - - 38 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-342

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-19
SELECT CAST( MAX( - 35 ) AS SIGNED ) FROM tab2
----
-35

skipif mysql # not compatible
query I rowsort label-19
SELECT CAST ( MAX ( - 35 ) AS INTEGER ) FROM tab2
----
-35

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

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

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

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

query II rowsort
SELECT + ( + col1 ) * 29 AS col0, + 8 AS col2 FROM tab1
----
1363
8
145
8
406
8

query I rowsort
SELECT DISTINCT + + col1 FROM tab1 WHERE + - col1 * + col2 * + 44 - - + 81 IS NOT NULL
----
14
47
5

onlyif mysql # DIV for integer division: 
query I rowsort label-24
SELECT DISTINCT - 32 + - col0 DIV ( col1 ) AS col0 FROM tab0 AS cor0
----
-129
-32
-36

skipif mysql # not compatible
query I rowsort label-24
SELECT DISTINCT - 32 + - col0 / ( col1 ) AS col0 FROM tab0 AS cor0
----
-129
-32
-36

query I rowsort
SELECT DISTINCT + col2 * - col0 * - col0 AS col1 FROM tab0 cor0
----
10575
75690
931491

query I rowsort
SELECT - + 82 * - + col1 - - 81 + + - ( col0 ) AS col2 FROM tab0 AS cor0
----
1716
66
6708

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 13 + + col2 + col0 = + col0 + col2
----

query I rowsort
SELECT DISTINCT - - col1 + + 60 AS col2 FROM tab1 AS cor0
----
107
65
74

onlyif mysql # aggregate syntax: 
query I rowsort label-29
SELECT DISTINCT + 16 - + - SUM( ALL - col0 ) col2 FROM tab2
----
-169

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-29
SELECT DISTINCT + 16 - + - SUM ( ALL - col0 ) col2 FROM tab2
----
-169

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-30
SELECT + 1 DIV MIN( DISTINCT - 55 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-30
SELECT + 1 / MIN ( DISTINCT - 55 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
0

query II rowsort
SELECT + col1, col0 AS col2 FROM tab2 WHERE ( + col2 ) IS NOT NULL
----
51
46
67
75
77
64

onlyif mysql # aggregate syntax: 
query I rowsort label-32
SELECT - COUNT( * ) * + MAX( ALL + - 58 ) * + 8 + + COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
4185

skipif mysql # not compatible
query I rowsort label-32
SELECT - COUNT ( * ) * + MAX ( ALL + - 58 ) * + 8 + + COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
4185

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

onlyif mysql # DIV for integer division: 
query I rowsort label-34
SELECT - 99 DIV + 37 - - - 30 FROM tab0 AS cor0
----
-32
-32
-32

skipif mysql # not compatible
query I rowsort label-34
SELECT - 99 / + 37 - - - 30 FROM tab0 AS cor0
----
-32
-32
-32

query I rowsort
SELECT - 93 - + - col0 * - + col1 - - col1 - 90 FROM tab2 cor0
----
-2478
-5034
-5141

query II rowsort
SELECT 18 AS col2, - 30 FROM tab0
----
18
-30
18
-30
18
-30

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

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

query II rowsort
SELECT + - col2 + - 98 AS col2, col2 FROM tab2 WHERE NOT + + 28 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-39
SELECT ALL - 10 DIV + - 41 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-39
SELECT ALL - 10 / + - 41 AS col2 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-40
SELECT DISTINCT COUNT( DISTINCT - CAST( NULL AS SIGNED ) ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-40
SELECT DISTINCT COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) FROM tab0
----
0

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

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

query I rowsort
SELECT DISTINCT col1 * 51 AS col0 FROM tab0 AS cor0
----
1071
4131
51

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-45
SELECT MAX( ALL + - col0 ) * 31 FROM tab0
----
-465

skipif mysql # not compatible
query I rowsort label-45
SELECT MAX ( ALL + - col0 ) * 31 FROM tab0
----
-465

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

onlyif mysql # aggregate syntax: 
query I rowsort label-47
SELECT ALL SUM( + - 60 ) col1 FROM tab1
----
-180

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-47
SELECT ALL SUM ( + - 60 ) col1 FROM tab1
----
-180

onlyif mysql # DIV for integer division: 
query II rowsort label-48
SELECT + + col2 AS col2, - col0 * 42 DIV + ( - - 41 ) FROM tab1 cor0
----
59
-87
68
-93
96
-52

skipif mysql # not compatible
query II rowsort label-48
SELECT + + col2 AS col2, - col0 * 42 / + ( - - 41 ) FROM tab1 cor0
----
59
-87
68
-93
96
-52

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-49
SELECT ALL - 47 AS col1, CAST( col2 AS SIGNED ) * - + col2 + + - 18 FROM tab0 AS cor0
----
-47
-118
-47
-2227
-47
-9819

skipif mysql # not compatible
query II rowsort label-49
SELECT ALL - 47 AS col1, CAST ( col2 AS INTEGER ) * - + col2 + + - 18 FROM tab0 AS cor0
----
-47
-118
-47
-2227
-47
-9819

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

query II rowsort
SELECT ALL + - 4 AS col1, - col0 AS col1 FROM tab0 AS cor0
----
-4
-15
-4
-87
-4
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-52
SELECT ALL 71 + + COUNT( ALL + col0 ) FROM tab2 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-52
SELECT ALL 71 + + COUNT ( ALL + col0 ) FROM tab2 AS cor0
----
74

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

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

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

query II rowsort
SELECT 50, col2 FROM tab1 cor0
----
50
59
50
68
50
96

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

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

query IIIIII rowsort
SELECT ALL * FROM tab0, tab0 cor0 WHERE NULL >= NULL
----

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

skipif mysql # not compatible
query I rowsort label-59
SELECT ALL + 4 / + + col2 FROM tab2
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NOT - 39 < + - 93 )
----

query I rowsort
SELECT + 39 AS col1 FROM tab0 WHERE NULL IS NULL
----
39
39
39

query I rowsort
SELECT - 56 + + + col0 AS col1 FROM tab1
----
-5
29
35

query I rowsort
SELECT ALL - 89 + - col0 FROM tab1 AS cor0
----
-140
-174
-180

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

query I rowsort
SELECT DISTINCT + + 61 + + + 6 AS col1 FROM tab2 AS cor0
----
67

query I rowsort
SELECT DISTINCT - + col2 + + 54 AS col1 FROM tab2 AS cor0
----
-4
14
31

query I rowsort
SELECT ALL + col1 + + + col2 FROM tab1 AS cor0
----
110
115
64

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL <= col1 * 80 / - col0 * - 95 + - ( 67 ) * - - 56
----

query III rowsort
SELECT * FROM tab1 WHERE ( - col2 ) NOT IN ( col0 + col1 ) AND NOT NULL <= NULL
----

query II rowsort
SELECT - + 15 + - - col1 + + col2, - 50 * + 40 + + col1 + col2 AS col1 FROM tab0 cor0
----
113
-1872
16
-1969
85
-1900

query I rowsort
SELECT + col1 + + + 67 AS col0 FROM tab2 AS cor0
----
118
134
144

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 11 + + col1 col0 FROM tab2 AS cor0
----
62
78
88

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

onlyif mysql # aggregate syntax: 
query I rowsort label-74
SELECT + 44 * COUNT( * ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
132

skipif mysql # not compatible
query I rowsort label-74
SELECT + 44 * COUNT ( * ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
132

query I rowsort
SELECT DISTINCT - col1 * - ( - 61 ) AS col1 FROM tab0
----
-1281
-4941
-61

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

query I rowsort
SELECT 99 + col2 / + 93 AS col1 FROM tab0 AS cor0 WHERE NOT 77 >= ( NULL )
----

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

query II rowsort
SELECT 29 * col0 AS col1, + 16 + col0 FROM tab0 cor0
----
2523
103
2813
113
435
31

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-81
SELECT - 58 + + COUNT ( * ) col0 FROM tab1 AS cor0
----
-55

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 <> 82 + - + col0
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 97 + - - col0 >= + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 54 < - col2 + - col1 * - col1
----
15
81
47
87
21
10

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

query I rowsort
SELECT + - 74 * - 51 FROM tab0 cor0
----
3774
3774
3774

onlyif mysql # DIV for integer division: 
query II rowsort label-87
SELECT DISTINCT - + col2 DIV + - 53 + + col0 col0, - ( - - 40 ) AS col1 FROM tab1 AS cor0
----
52
-40
86
-40
92
-40

skipif mysql # not compatible
query II rowsort label-87
SELECT DISTINCT - + col2 / + - 53 + + col0 col0, - ( - - 40 ) AS col1 FROM tab1 AS cor0
----
52
-40
86
-40
92
-40

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

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

query I rowsort
SELECT ( col2 ) * + + 84 AS col1 FROM tab2
----
1932
3360
4872

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL >= - - col0 * 95
----

onlyif mysql # aggregate syntax: 
query I rowsort label-92
SELECT COUNT( * ) * + + 42 FROM tab2
----
126

skipif mysql # not compatible
query I rowsort label-92
SELECT COUNT ( * ) * + + 42 FROM tab2
----
126

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

query I rowsort
SELECT col0 + + + 22 - col0 + col2 * - col0 FROM tab2 cor0
----
-1036
-2538
-4328

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-95
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 70 * col2 = - 98 * - CAST( - 34 AS DECIMAL ) + col1 + + ( 92 ) + + 47
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-95
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 70 * col2 = - 98 * - CAST ( - 34 AS REAL ) + col1 + + ( 92 ) + + 47
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 96 * - - col2 * - col2 FROM tab1 AS cor0 WHERE NULL <= col0 / - + 79 / + + 6
----

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

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

query II rowsort
SELECT + 95 + - 72 AS col0, + ( - col0 ) + - col0 FROM tab0 cor0
----
23
-174
23
-194
23
-30

query I rowsort
SELECT DISTINCT + col2 + - - 50 AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 86 > NULL
----

query I rowsort
SELECT - - 84 * - - col1 AS col0 FROM tab2 AS cor0
----
4284
5628
6468

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-106
SELECT 65 * + + ( + COUNT( * ) ) - 81 FROM tab1 AS cor0
----
114

skipif mysql # not compatible
query I rowsort label-106
SELECT 65 * + + ( + COUNT ( * ) ) - 81 FROM tab1 AS cor0
----
114

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

query I rowsort
SELECT ALL + ( - 54 ) AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 4ecdb0f1b85f0d4fdc3a826efd9f2342

query III rowsort
SELECT ALL * FROM tab0 WHERE - col2 IN ( - + 4, col0 / - col2 * col2, ( - 85 ) )
----

query II rowsort
SELECT + col2, col2 * - 19 + - col1 FROM tab1
----
59
-1126
68
-1339
96
-1838

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

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

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

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

query I rowsort
SELECT DISTINCT 86 * - col0 FROM tab0 AS cor0
----
-1290
-7482
-8342

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-115
SELECT - 66 * SUM( - col1 ) FROM tab2 AS cor0
----
12870

skipif mysql # not compatible
query I rowsort label-115
SELECT - 66 * SUM ( - col1 ) FROM tab2 AS cor0
----
12870

query I rowsort
SELECT ALL + 70 * + + 15 FROM tab2 AS cor0
----
1050
1050
1050

onlyif mysql # aggregate syntax: 
query I rowsort label-117
SELECT DISTINCT COUNT( * ) AS col0 FROM tab1 WHERE ( - ( col0 ) ) NOT IN ( - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-117
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab1 WHERE ( - ( col0 ) ) NOT IN ( - col0 )
----
0

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-120
SELECT - COUNT( + 15 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-120
SELECT - COUNT ( + 15 ) FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-121
SELECT ( - SUM( + 60 ) ) FROM tab0
----
-180

skipif mysql # not compatible
query I rowsort label-121
SELECT ( - SUM ( + 60 ) ) FROM tab0
----
-180

query I rowsort
SELECT DISTINCT - col1 FROM tab2 WHERE NOT col1 + + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-123
SELECT COUNT( * ) FROM tab0 WHERE NULL <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-123
SELECT COUNT ( * ) FROM tab0 WHERE NULL <= NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 44 NOT IN ( col2 )
----

query I rowsort
SELECT ALL col0 + 34 FROM tab2 WHERE NOT ( NULL ) NOT IN ( + col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-126
SELECT - 44 DIV - col2 + - col1 FROM tab2
----
-50
-67
-76

skipif mysql # not compatible
query I rowsort label-126
SELECT - 44 / - col2 + - col1 FROM tab2
----
-50
-67
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-127
SELECT COUNT( DISTINCT 87 ) + 69 FROM tab1
----
70

skipif mysql # not compatible
query I rowsort label-127
SELECT COUNT ( DISTINCT 87 ) + 69 FROM tab1
----
70

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col1 - - col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 38 - - col1 FROM tab1
----
43
52
85

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

onlyif mysql # aggregate syntax: 
query I rowsort label-131
SELECT ALL + COUNT( * ) AS col2 FROM tab1 WHERE ( NULL ) NOT BETWEEN ( NULL ) AND - 86 * + col1
----
0

skipif mysql # not compatible
query I rowsort label-131
SELECT ALL + COUNT ( * ) AS col2 FROM tab1 WHERE ( NULL ) NOT BETWEEN ( NULL ) AND - 86 * + col1
----
0

query I rowsort
SELECT DISTINCT col2 * + 22 FROM tab1
----
1298
1496
2112

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + col1 col0 FROM tab0
----
108
96
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * 60 col1 FROM tab2
----
1380
2400
3480

query I rowsort
SELECT col1 FROM tab2 WHERE - ( 88 ) * - col0 NOT BETWEEN col1 AND ( + 40 + col0 )
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-136
SELECT - 28 + + MAX( DISTINCT - col2 ) AS col2 FROM tab1
----
-87

skipif mysql # not compatible
query I rowsort label-136
SELECT - 28 + + MAX ( DISTINCT - col2 ) AS col2 FROM tab1
----
-87

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-138
SELECT DISTINCT - MAX( ALL 88 ) - COUNT( ALL 21 ) FROM tab2
----
-91

skipif mysql # not compatible
query I rowsort label-138
SELECT DISTINCT - MAX ( ALL 88 ) - COUNT ( ALL 21 ) FROM tab2
----
-91

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-140
SELECT DISTINCT - 19 + - CAST( col1 AS SIGNED ) AS col0 FROM tab0
----
-100
-20
-40

skipif mysql # not compatible
query I rowsort label-140
SELECT DISTINCT - 19 + - CAST ( col1 AS INTEGER ) AS col0 FROM tab0
----
-100
-20
-40

query I rowsort
SELECT ALL col1 FROM tab1 WHERE NULL <= col2
----

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

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( col0 ) < 46
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 * - ( col2 * 78 ) FROM tab0
----
-54990
-67860
-749034

onlyif mysql # aggregate syntax: 
query I rowsort label-146
SELECT 67 * COUNT( * ) AS col1 FROM tab1 AS cor0
----
201

skipif mysql # not compatible
query I rowsort label-146
SELECT 67 * COUNT ( * ) AS col1 FROM tab1 AS cor0
----
201

query I rowsort
SELECT ALL 20 AS col1 FROM tab0 AS cor0 WHERE NOT - 70 * + col2 BETWEEN - 61 AND ( col0 * col0 + col1 )
----
20
20
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 3 * col2 col1 FROM tab1 AS cor0 WHERE ( NULL ) <> 13
----

query I rowsort
SELECT ALL + 45 FROM tab1 AS cor0 WHERE NULL >= col2 + + 12 * col0
----

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

query I rowsort
SELECT DISTINCT ( + col1 ) FROM tab0 WHERE NULL <= + col2 + + col1
----

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

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

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2 WHERE NOT NULL >= NULL
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 71 * - col1 col1 FROM tab2 AS cor0
----
-3621
-4757
-5467

query I rowsort
SELECT - + col2 * - 45 FROM tab0 AS cor0
----
2115
4455
450

onlyif mysql # DIV for integer division: 
query I rowsort label-157
SELECT + 71 DIV - col0 col0 FROM tab1 cor0 WHERE NOT - col0 + - 97 BETWEEN ( col2 ) AND - col2 * 62
----
-1
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-157
SELECT + 71 / - col0 col0 FROM tab1 cor0 WHERE NOT - col0 + - 97 BETWEEN ( col2 ) AND - col2 * 62
----
-1
0
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-159
SELECT DISTINCT + + SUM( ALL col0 ) AS col2 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-159
SELECT DISTINCT + + SUM ( ALL col0 ) AS col2 FROM tab2 AS cor0
----
185

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-161
SELECT + SUM( + - col0 ) * - 42 AS col2 FROM tab1
----
9534

skipif mysql # not compatible
query I rowsort label-161
SELECT + SUM ( + - col0 ) * - 42 AS col2 FROM tab1
----
9534

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - col1 col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-1173
-3080
-3886

query I rowsort
SELECT DISTINCT - col0 + 26 AS col0 FROM tab1 WHERE - col2 IS NOT NULL
----
-25
-59
-65

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL <= ( + 69 * - 78 )
----

query I rowsort
SELECT 49 AS col2 FROM tab1 WHERE NOT 38 + + col0 NOT BETWEEN NULL AND 96
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-166
SELECT ALL + CAST( + col1 AS SIGNED ) * - 36 AS col2 FROM tab2 cor0
----
-1836
-2412
-2772

skipif mysql # not compatible
query I rowsort label-166
SELECT ALL + CAST ( + col1 AS INTEGER ) * - 36 AS col2 FROM tab2 cor0
----
-1836
-2412
-2772

query I rowsort
SELECT - + col1 * - 71 AS col1 FROM tab0 AS cor0
----
1491
5751
71

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT ALL - col0 * + 64 AS col2 FROM tab2
----
-2944
-4096
-4800

onlyif mysql # aggregate syntax: 
query I rowsort label-175
SELECT + 86 + - - ( - 3 ) - - COUNT( * ) * 0 AS col2 FROM tab1
----
83

skipif mysql # not compatible
query I rowsort label-175
SELECT + 86 + - - ( - 3 ) - - COUNT ( * ) * 0 AS col2 FROM tab1
----
83

query I rowsort
SELECT + 29 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

query I rowsort
SELECT DISTINCT 10 FROM tab1 AS cor0 WHERE ( + col2 / - col2 * 74 ) > col2 * 34 + + col2
----

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

query I rowsort
SELECT ALL col0 FROM tab0 AS cor0 WHERE NULL NOT IN ( + 73 )
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE col2 * + + 76 NOT IN ( col1 - + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-182
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT IN ( + CAST( - + col0 AS SIGNED ) / 86 + 24 )
----

skipif mysql # not compatible
query III rowsort label-182
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT IN ( + CAST ( - + col0 AS INTEGER ) / 86 + 24 )
----

query II rowsort
SELECT + 26 AS col2, + col0 * - col0 * col1 AS col0 FROM tab2 AS cor0
----
26
-107916
26
-315392
26
-376875

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

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

query I rowsort
SELECT ALL + col0 FROM tab0 AS cor0 WHERE + col1 BETWEEN 53 * + col2 AND - col2 * + ( col1 )
----

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - 68 ) * col0 IN ( + 81 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-189
SELECT DISTINCT + 98 - - + COUNT( ALL + 60 ) AS col1 FROM tab2
----
101

skipif mysql # not compatible
query I rowsort label-189
SELECT DISTINCT + 98 - - + COUNT ( ALL + 60 ) AS col1 FROM tab2
----
101

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

onlyif mysql # aggregate syntax: 
query I rowsort label-191
SELECT ( - MAX( ALL 98 ) ) - - 15 FROM tab1
----
-83

skipif mysql # not compatible
query I rowsort label-191
SELECT ( - MAX ( ALL 98 ) ) - - 15 FROM tab1
----
-83

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

query I rowsort
SELECT 64 * col0 FROM tab1 WHERE - col1 * - col1 NOT IN ( + 73 )
----
3264
5440
5824

query I rowsort
SELECT DISTINCT ( - col0 ) * + col2 * + col0 AS col2 FROM tab0
----
-10575
-75690
-931491

onlyif mysql # DIV for integer division: 
query I rowsort label-195
SELECT ALL + + 26 DIV + col1 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-195
SELECT ALL + + 26 / + col1 FROM tab2 cor0
----
0
0
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-197
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - CAST( - col1 AS SIGNED ) > NULL
----

skipif mysql # not compatible
query III rowsort label-197
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - CAST ( - col1 AS INTEGER ) > NULL
----

query I rowsort
SELECT - 31 + + 92 FROM tab1 cor0
----
61
61
61

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

skipif mysql # not compatible
query I rowsort label-199
SELECT 75 * - + MIN ( ALL + col0 ) + - MIN ( ALL + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 24 col2 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 797d0f7c145f8ac623924448c714bbcc

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-201
SELECT CAST( - - 54 AS SIGNED ) FROM tab2
----
54
54
54

skipif mysql # not compatible
query I rowsort label-201
SELECT CAST ( - - 54 AS INTEGER ) FROM tab2
----
54
54
54

onlyif mysql # aggregate syntax: 
query I rowsort label-202
SELECT DISTINCT - + 75 + COUNT( * ) AS col0 FROM tab1 WHERE NULL BETWEEN NULL AND + + col1
----
-75

skipif mysql # not compatible
query I rowsort label-202
SELECT DISTINCT - + 75 + COUNT ( * ) AS col0 FROM tab1 WHERE NULL BETWEEN NULL AND + + col1
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-203
SELECT * FROM tab2 WHERE NOT NULL IN ( - + CAST( NULL AS SIGNED ) + col2 )
----

skipif mysql # not compatible
query III rowsort label-203
SELECT * FROM tab2 WHERE NOT NULL IN ( - + CAST ( NULL AS INTEGER ) + col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-204
SELECT DISTINCT - - col2 DIV + 71 FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-204
SELECT DISTINCT - - col2 / + 71 FROM tab0 AS cor0
----
0
1

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

skipif mysql # not compatible
query I rowsort label-205
SELECT - CAST ( - col0 AS INTEGER ) - + 9 + col0 AS col1 FROM tab2 AS cor0 WHERE NOT - col1 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( 50 * + col2 * + col1 ) BETWEEN NULL AND - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

query III rowsort
SELECT DISTINCT - 70 col1, - col2 * + col0 AS col1, 78 AS col2 FROM tab1 AS cor0
----
9 values hashing to 93aaccf5b700133e84be6b0b74622306

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-211
SELECT ALL - 65 * - CAST( NULL AS SIGNED ), ( col1 ) AS col2 FROM tab1
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-211
SELECT ALL - 65 * - CAST ( NULL AS INTEGER ), ( col1 ) AS col2 FROM tab1
----
NULL
14
NULL
47
NULL
5

query I rowsort
SELECT col1 + + col1 * - col1 FROM tab0 WHERE NOT - 82 * + 40 + + col2 - - 40 < col1 + - 41
----

query IIIIII rowsort
SELECT * FROM tab1, tab2 cor0 WHERE ( NULL ) IS NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

query I rowsort
SELECT ALL - col2 + - col1 - 93 / 2 FROM tab2 WHERE ( NOT NULL <> ( NULL ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-215
SELECT DISTINCT + CAST( ( + + col0 ) AS SIGNED ) FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-215
SELECT DISTINCT + CAST ( ( + + col0 ) AS INTEGER ) FROM tab2
----
46
64
75

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

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

query I rowsort
SELECT col1 AS col0 FROM tab2 cor0 WHERE NOT ( + col2 + col2 * - - col0 ) IS NULL
----
51
67
77

query I rowsort
SELECT DISTINCT + col0 * - col0 + - + col0 FROM tab0 AS cor0
----
-240
-7656
-9506

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

query I rowsort
SELECT + - col0 + + 32 AS col2 FROM tab1 AS cor0
----
-19
-53
-59

query I rowsort
SELECT DISTINCT - - ( col2 ) + + col2 + + - col0 AS col0 FROM tab2 AS cor0
----
0
16
41

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-222
SELECT + - 90 + + col0 - 96 * + 13 * + - CAST( NULL AS DECIMAL ) * col0 * + + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-222
SELECT + - 90 + + col0 - 96 * + 13 * + - CAST ( NULL AS REAL ) * col0 * + + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col2 ) * - 51 col0 FROM tab2 AS cor0
----
-1173
-2040
-2958

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

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

query I rowsort
SELECT col1 + + + col2 - + 65 * + - col2 + - col2 - + + col1 AS col2 FROM tab2 cor0
----
1495
2600
3770

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col2 ) col2 FROM tab0 AS cor0 WHERE 50 + - 3 = NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 * + 31 / - + col0 / col2 + col0 = 26
----

onlyif mysql # aggregate syntax: 
query I rowsort label-228
SELECT MIN( - 39 ) + - + 78 FROM tab0
----
-117

skipif mysql # not compatible
query I rowsort label-228
SELECT MIN ( - 39 ) + - + 78 FROM tab0
----
-117

query I rowsort
SELECT DISTINCT - col0 * 7 + + ( + - col0 ) + + + col1 AS col1 FROM tab1
----
-394
-675
-681

onlyif mysql # DIV for integer division: 
query I rowsort label-230
SELECT ALL 37 DIV + + col2 - - + col2 AS col0 FROM tab0
----
13
47
99

skipif mysql # not compatible
query I rowsort label-230
SELECT ALL 37 / + + col2 - - + col2 AS col0 FROM tab0
----
13
47
99

query I rowsort
SELECT ALL col1 * ( + col1 ) + ( col0 ) AS col2 FROM tab0
----
528
6576
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-232
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + 76 - - + 36 + MIN( - 3 ) * CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-232
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + 76 - - + 36 + MIN ( - 3 ) * CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-233
SELECT - COUNT ( * ) AS col2 FROM tab1 WHERE + - col0 IS NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-234
SELECT - ( + CAST( MIN( ALL 53 ) AS SIGNED ) ) FROM tab1
----
-53

skipif mysql # not compatible
query I rowsort label-234
SELECT - ( + CAST ( MIN ( ALL 53 ) AS INTEGER ) ) FROM tab1
----
-53

query I rowsort
SELECT ALL col0 + - + 55 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-40
32
42

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-236
SELECT ALL * FROM tab0 AS cor0 WHERE col2 IN ( col1 * col1 + CAST( - + col2 AS SIGNED ) * + col2 )
----

skipif mysql # not compatible
query III rowsort label-236
SELECT ALL * FROM tab0 AS cor0 WHERE col2 IN ( col1 * col1 + CAST ( - + col2 AS INTEGER ) * + col2 )
----

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( - col2 ) IN ( - 46 )
----

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-242
SELECT - col0 * + CAST( - 72 AS SIGNED ) AS col0 FROM tab1 cor0
----
3672
6120
6552

skipif mysql # not compatible
query I rowsort label-242
SELECT - col0 * + CAST ( - 72 AS INTEGER ) AS col0 FROM tab1 cor0
----
3672
6120
6552

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

skipif mysql # not compatible
query I rowsort label-243
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE NOT - col2 = NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-244
SELECT DISTINCT col2 + - 29 AS col1 FROM tab0 WHERE NOT + + 98 BETWEEN - CAST( - - col0 AS SIGNED ) AND ( + - col1 * - ( - col1 ) + - col0 )
----
-19
18
70

skipif mysql # not compatible
query I rowsort label-244
SELECT DISTINCT col2 + - 29 AS col1 FROM tab0 WHERE NOT + + 98 BETWEEN - CAST ( - - col0 AS INTEGER ) AND ( + - col1 * - ( - col1 ) + - col0 )
----
-19
18
70

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN - 90 + - 22 AND + + col0 AND col2 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-246
SELECT ALL CAST( NULL AS DECIMAL ) * + 17 / + 67 col2, col1 AS col1 FROM tab0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-246
SELECT ALL CAST ( NULL AS REAL ) * + 17 / + 67 col2, col1 AS col1 FROM tab0
----
NULL
1
NULL
21
NULL
81

onlyif mysql # aggregate syntax: 
query I rowsort label-247
SELECT DISTINCT COUNT( * ) FROM tab0 WHERE NOT 62 / + + 11 <= + - col1
----
3

skipif mysql # not compatible
query I rowsort label-247
SELECT DISTINCT COUNT ( * ) FROM tab0 WHERE NOT 62 / + + 11 <= + - col1
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-248
SELECT 60 col2, + COUNT( * ) FROM tab2
----
60
3

skipif mysql # not compatible
query II rowsort label-248
SELECT 60 col2, + COUNT ( * ) FROM tab2
----
60
3

onlyif mysql # aggregate syntax: 
query I rowsort label-249
SELECT ALL - COUNT( * ) * + MIN( 12 ) AS col1 FROM tab0
----
-36

skipif mysql # not compatible
query I rowsort label-249
SELECT ALL - COUNT ( * ) * + MIN ( 12 ) AS col1 FROM tab0
----
-36

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0, - col1 col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
15
-81
87
-21
97
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-253
SELECT + CAST( COUNT( + - ( + - col0 ) ) AS SIGNED ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-253
SELECT + CAST ( COUNT ( + - ( + - col0 ) ) AS INTEGER ) AS col0 FROM tab1
----
3

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT IN ( + - 6, 5 * col0 )
----

query I rowsort
SELECT + 14 + + col0 FROM tab2 AS cor0
----
60
78
89

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-257
SELECT - col0 DIV + 46 FROM tab2 WHERE + + CAST( NULL AS SIGNED ) IS NULL
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-257
SELECT - col0 / + 46 FROM tab2 WHERE + + CAST ( NULL AS INTEGER ) IS NULL
----
-1
-1
-1

query II rowsort
SELECT col1, 3 * + + ( - col1 ) FROM tab2 AS cor0
----
51
-153
67
-201
77
-231

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-262
SELECT SUM( DISTINCT - 77 ) FROM tab0 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-262
SELECT SUM ( DISTINCT - 77 ) FROM tab0 AS cor0
----
-77

query I rowsort
SELECT + - 30 - + 59 AS col1 FROM tab2 AS cor0
----
-89
-89
-89

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-264
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) >= NULL AND NOT - CAST( + - 66 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-264
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) >= NULL AND NOT - CAST ( + - 66 AS INTEGER ) IS NULL
----

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-267
SELECT ALL - 33 DIV - CAST( 33 AS SIGNED ) - + - COUNT( * ) AS col2 FROM tab1
----
4

skipif mysql # not compatible
query I rowsort label-267
SELECT ALL - 33 / - CAST ( 33 AS INTEGER ) - + - COUNT ( * ) AS col2 FROM tab1
----
4

query I rowsort
SELECT + col2 - + + col0 AS col0 FROM tab2
----
-17
-23
-24

query I rowsort
SELECT - col1 - + 8 FROM tab0
----
-29
-89
-9

query I rowsort
SELECT + + col0 FROM tab2 WHERE NOT + 22 IS NOT NULL
----

query I rowsort
SELECT ALL col0 + - col0 FROM tab2 WHERE NOT ( - + col1 / + col2 + + col2 ) > 93 + 32
----
0
0
0

query I rowsort
SELECT - 11 * col0 * ( + 78 ) + col2 AS col2 FROM tab1 AS cor0
----
-43662
-72871
-78010

query I rowsort
SELECT ALL + col2 * col1 * + + 94 FROM tab2 AS cor0
----
110262
289520
365284

query II rowsort
SELECT - - col0 * col0 AS col1, + 77 + - col1 AS col2 FROM tab2 AS cor0
----
2116
26
4096
0
5625
10

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

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

query II rowsort
SELECT ALL - + col1 * - col1 AS col0, - col2 AS col0 FROM tab1 AS cor0
----
196
-96
2209
-68
25
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-277
SELECT MIN( ALL 77 ) * + ( - ( + - COUNT( * ) ) ) AS col1 FROM tab2
----
231

skipif mysql # not compatible
query I rowsort label-277
SELECT MIN ( ALL 77 ) * + ( - ( + - COUNT ( * ) ) ) AS col1 FROM tab2
----
231

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

query II rowsort
SELECT ALL + col0, - 3 AS col2 FROM tab0
----
15
-3
87
-3
97
-3

query I rowsort
SELECT DISTINCT - + 31 * - col2 * + 63 + col0 AS col2 FROM tab2 AS cor0
----
113349
44965
78184

query I rowsort
SELECT DISTINCT - 90 * col0 FROM tab1 AS cor0
----
-4590
-7650
-8190

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

skipif mysql # not compatible
query I rowsort label-282
SELECT ALL - + CAST ( NULL AS INTEGER ) * - col1 * + col1 + + col2 - + CAST ( - 56 AS INTEGER ) + + 47 * - col0 * col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-284
SELECT + col0 * col0 + - 15 DIV + + 39 col1 FROM tab2 AS cor0
----
2116
4096
5625

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-284
SELECT + col0 * col0 + - 15 / + + 39 col1 FROM tab2 AS cor0
----
2116
4096
5625

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

query II rowsort
SELECT ALL - - col1 AS col1, - col2 FROM tab0 AS cor0 WHERE col0 >= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-287
SELECT - CAST( - ( MAX( - - col2 ) ) AS SIGNED ) * + COUNT( * ) col0 FROM tab2 AS cor0
----
174

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-287
SELECT - CAST ( - ( MAX ( - - col2 ) ) AS INTEGER ) * + COUNT ( * ) col0 FROM tab2 AS cor0
----
174

query I rowsort
SELECT DISTINCT 27 + + col2 FROM tab2 cor0
----
50
67
85

query I rowsort
SELECT + col2 - 90 / + col2 AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-291
SELECT DISTINCT 25 DIV - col0 * + col0 col0 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-291
SELECT DISTINCT 25 / - col0 * + col0 col0 FROM tab1
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-293
SELECT - 92 + - COUNT( * ) AS col0 FROM tab0
----
-95

skipif mysql # not compatible
query I rowsort label-293
SELECT - 92 + - COUNT ( * ) AS col0 FROM tab0
----
-95

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

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

query III rowsort
SELECT * FROM tab0 cor0 WHERE - col0 BETWEEN - col2 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + col0 col0 FROM tab1 WHERE NULL IS NULL
----
-45
23
26

query III rowsort
SELECT ALL * FROM tab2 WHERE ( 32 BETWEEN NULL AND - col0 * - col0 / - + col2 )
----

query III rowsort
SELECT * FROM tab2 WHERE col1 NOT IN ( + - 13, col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-299
SELECT DISTINCT MAX( ALL + col0 ) col0 FROM tab1
----
91

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

query I rowsort
SELECT + 45 * + col2 - col1 * + col0 AS col0 FROM tab2
----
-1311
-2415
-3128

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

onlyif mysql # aggregate syntax: 
query II rowsort label-302
SELECT + - 21 + - + ( 4 ) AS col2, - COUNT( * ) AS col1 FROM tab2 cor0
----
-25
-3

skipif mysql # not compatible
query II rowsort label-302
SELECT + - 21 + - + ( 4 ) AS col2, - COUNT ( * ) AS col1 FROM tab2 cor0
----
-25
-3

query I rowsort
SELECT ALL - - 46 * + col1 * + + ( + ( - col0 ) ) AS col2 FROM tab1 AS cor0
----
-19550
-196742
-32844

query I rowsort
SELECT + - col1 + - - col0 FROM tab0 AS cor0
----
-66
66
96

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

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

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

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

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

query I rowsort
SELECT ALL + ( + col2 ) + + col2 AS col1 FROM tab2 cor0
----
116
46
80

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-309
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( + 52 ) / - - ( - + CAST( NULL AS SIGNED ) ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-309
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( + 52 ) / - - ( - + CAST ( NULL AS INTEGER ) ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - - 98 + col2 FROM tab0 AS cor0
----
108
145
197

onlyif mysql # aggregate syntax: 
query I rowsort label-311
SELECT + MIN( ALL + 77 ) FROM tab0
----
77

skipif mysql # not compatible
query I rowsort label-311
SELECT + MIN ( ALL + 77 ) FROM tab0
----
77

query II rowsort
SELECT ALL 62, 91 AS col2 FROM tab1
----
62
91
62
91
62
91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-313
SELECT + CAST( NULL AS SIGNED ) AS col1, col0 + 98 FROM tab0
----
NULL
113
NULL
185
NULL
195

skipif mysql # not compatible
query II rowsort label-313
SELECT + CAST ( NULL AS INTEGER ) AS col1, col0 + 98 FROM tab0
----
NULL
113
NULL
185
NULL
195

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

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

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

query II rowsort
SELECT - col1, 10 AS col1 FROM tab2
----
-51
10
-67
10
-77
10

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-317
SELECT - col0 AS col0, 41 * CAST( NULL AS DECIMAL ) FROM tab1
----
-51
NULL
-85
NULL
-91
NULL

skipif mysql # not compatible
query II rowsort label-317
SELECT - col0 AS col0, 41 * CAST ( NULL AS REAL ) FROM tab1
----
-51
NULL
-85
NULL
-91
NULL

query I rowsort
SELECT - 83 * - - col2 * + ( - col2 ) FROM tab0 AS cor0
----
183347
813483
8300

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( - + col2 NOT BETWEEN - + 53 AND 35 * - 8 * - - 63 - - - 41 )
----

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

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

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

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - 36 ) + - - col2 - - col1 * + - col0 * + col2 * - col1 + - - 21 BETWEEN 80 AND NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-325
SELECT DISTINCT + - col2 FROM tab1 AS cor0 WHERE col1 + 40 + col0 * CAST( NULL AS SIGNED ) IS NULL
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-325
SELECT DISTINCT + - col2 FROM tab1 AS cor0 WHERE col1 + 40 + col0 * CAST ( NULL AS INTEGER ) IS NULL
----
-59
-68
-96

query I rowsort
SELECT ALL - ( ( - + col1 ) ) AS col0 FROM tab0 cor0
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-327
SELECT ALL - 0 * col1 + - + 26 * - 55 + + CAST( NULL AS SIGNED ) + + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-327
SELECT ALL - 0 * col1 + - + 26 * - 55 + + CAST ( NULL AS INTEGER ) + + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-328
SELECT ALL - ( + + COUNT( * ) ) + + 14 * - MAX( + col2 ) * + + COUNT( * ) FROM tab0 AS cor0
----
-4161

skipif mysql # not compatible
query I rowsort label-328
SELECT ALL - ( + + COUNT ( * ) ) + + 14 * - MAX ( + col2 ) * + + COUNT ( * ) FROM tab0 AS cor0
----
-4161

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-331
SELECT - col1 AS col1, - col0 - CAST( - col0 AS SIGNED ) FROM tab1
----
-14
0
-47
0
-5
0

skipif mysql # not compatible
query II rowsort label-331
SELECT - col1 AS col1, - col0 - CAST ( - col0 AS INTEGER ) FROM tab1
----
-14
0
-47
0
-5
0

query I rowsort
SELECT + col1 FROM tab0 WHERE ( NOT ( NULL ) IS NOT NULL )
----
1
21
81

query II rowsort
SELECT col0, 31 AS col2 FROM tab1
----
51
31
85
31
91
31

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-336
SELECT DISTINCT 85 + - + SUM( DISTINCT col1 ) + - - 58 AS col0 FROM tab0 cor0
----
40

skipif mysql # not compatible
query I rowsort label-336
SELECT DISTINCT 85 + - + SUM ( DISTINCT col1 ) + - - 58 AS col0 FROM tab0 cor0
----
40

query I rowsort
SELECT ALL + ( - - col0 ) + - 65 + + col2 + - - col1 * + col0 * - - 67 FROM tab2 AS cor0
----
157186
330215
336743

onlyif mysql # aggregate syntax: 
query I rowsort label-338
SELECT ALL - MAX( DISTINCT - 43 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
43

skipif mysql # not compatible
query I rowsort label-338
SELECT ALL - MAX ( DISTINCT - 43 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
43

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

onlyif mysql # DIV for integer division: 
query I rowsort label-340
SELECT DISTINCT - 64 DIV + ( + col0 ) FROM tab2 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-340
SELECT DISTINCT - 64 / + ( + col0 ) FROM tab2 AS cor0
----
-1
0

onlyif mysql # DIV for integer division: 
query I rowsort label-341
SELECT DISTINCT + - col2 DIV + + col2 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-341
SELECT DISTINCT + - col2 / + + col2 FROM tab2 AS cor0
----
-1

query I rowsort
SELECT + - 45 - col2 * - col0 AS col1 FROM tab0 AS cor0
----
660
825
9558

query I rowsort
SELECT ALL 9 + - + col2 * + col0 FROM tab1 AS cor0
----
-4887
-5006
-6179

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

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

query I rowsort
SELECT + AVG ( 10 ) FROM tab0 WHERE NOT - 26 * col0 < NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 22 col1 FROM tab1 WHERE NULL BETWEEN - col0 AND NULL
----

query I rowsort
SELECT DISTINCT - 93 * col0 FROM tab0
----
-1395
-8091
-9021

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-348
SELECT DISTINCT - 36 + + + CAST( NULL AS SIGNED ) + - MIN( + - 37 ) - - - ( COUNT( * ) ) + + 22 * + COUNT( * ) AS col2 FROM tab0 WHERE NULL NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-348
SELECT DISTINCT - 36 + + + CAST ( NULL AS INTEGER ) + - MIN ( + - 37 ) - - - ( COUNT ( * ) ) + + 22 * + COUNT ( * ) AS col2 FROM tab0 WHERE NULL NOT BETWEEN NULL AND NULL
----
NULL

query I rowsort
SELECT 53 AS col1 FROM tab1 WHERE NOT NULL BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-350
SELECT DISTINCT SUM( ALL + - 1 ) AS col1 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-350
SELECT DISTINCT SUM ( ALL + - 1 ) AS col1 FROM tab2
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-351
SELECT ALL COUNT( * ) DIV - 48 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-351
SELECT ALL COUNT ( * ) / - 48 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-352
SELECT DISTINCT - - SUM( + col1 ) FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-352
SELECT DISTINCT - - SUM ( + col1 ) FROM tab1 AS cor0
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-353
SELECT CAST( NULL AS SIGNED ), + col1 + 4 + - col1 * + + col1 AS col2 FROM tab1 AS cor0
----
NULL
-16
NULL
-178
NULL
-2158

skipif mysql # not compatible
query II rowsort label-353
SELECT CAST ( NULL AS INTEGER ), + col1 + 4 + - col1 * + + col1 AS col2 FROM tab1 AS cor0
----
NULL
-16
NULL
-178
NULL
-2158

query I rowsort
SELECT col1 * + 26 AS col2 FROM tab1 cor0
----
1222
130
364

onlyif mysql # DIV for integer division: 
query I rowsort label-355
SELECT ALL + - 92 DIV + col1 + + col0 * ( + col0 ) FROM tab2 AS cor0
----
2115
4095
5624

skipif mysql # not compatible
query I rowsort label-355
SELECT ALL + - 92 / + col1 + + col0 * ( + col0 ) FROM tab2 AS cor0
----
2115
4095
5624

query I rowsort
SELECT DISTINCT col0 + - 91 FROM tab0 AS cor0
----
-4
-76
6

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 50 IS NULL
----

query I rowsort
SELECT 4 + + 87 AS col1 FROM tab2
----
91
91
91

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

onlyif mysql # aggregate syntax: 
query I rowsort label-360
SELECT ALL MIN( DISTINCT 68 ) FROM tab2
----
68

skipif mysql # not compatible
query I rowsort label-360
SELECT ALL MIN ( DISTINCT 68 ) FROM tab2
----
68

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

query I rowsort
SELECT DISTINCT - 17 * - col1 - - 28 AS col0 FROM tab2
----
1167
1337
895

query I rowsort
SELECT DISTINCT col0 * - 38 AS col2 FROM tab1
----
-1938
-3230
-3458

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

query I rowsort
SELECT DISTINCT + ( - - 45 ) * + col2 - col0 FROM tab1
----
2570
2969
4269

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

skipif mysql # not compatible
query I rowsort label-366
SELECT - COUNT ( * ) * 13 FROM tab2
----
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-367
SELECT DISTINCT - 41 DIV - 95 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-367
SELECT DISTINCT - 41 / - 95 FROM tab2 AS cor0
----
0

query I rowsort
SELECT + 22 AS col2 FROM tab0 cor0
----
22
22
22

query II rowsort
SELECT - col0 - - - 36 + col0, 40 AS col0 FROM tab1
----
-36
40
-36
40
-36
40

query I rowsort
SELECT 95 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3

query I rowsort
SELECT + 93 * 95 FROM tab0 cor0
----
8835
8835
8835

query I rowsort
SELECT ALL + 67 * - 0 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - ( col2 ) * 53 * + 75 FROM tab1 AS cor0
----
-234525
-270300
-381600

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-375
SELECT + col1 DIV + - col2 FROM tab2
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-375
SELECT + col1 / + - col2 FROM tab2
----
-1
-1
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-376
SELECT ALL col0 FROM tab2 WHERE NOT - CAST( 21 AS SIGNED ) <> NULL
----

skipif mysql # not compatible
query I rowsort label-376
SELECT ALL col0 FROM tab2 WHERE NOT - CAST ( 21 AS INTEGER ) <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-377
SELECT ALL col0 DIV ( 77 ) FROM tab0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-377
SELECT ALL col0 / ( 77 ) FROM tab0
----
0
1
1

query I rowsort
SELECT ALL - 74 * + col2 + col2 AS col1 FROM tab2 AS cor0
----
-1679
-2920
-4234

query I rowsort
SELECT DISTINCT - 72 FROM tab0 cor0
----
-72

query I rowsort
SELECT ALL col2 * col1 + + - 86 AS col1 FROM tab2 AS cor0
----
1087
2994
3800

onlyif mysql # aggregate syntax: 
query I rowsort label-381
SELECT + MIN( - - col2 ) + + - ( + + 20 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-381
SELECT + MIN ( - - col2 ) + + - ( + + 20 ) FROM tab2
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-382
SELECT ALL + col1 DIV 87 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-382
SELECT ALL + col1 / 87 FROM tab2
----
0
0
0

query I rowsort
SELECT - + 53 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to fee5c00ad71c23e23683a32c71fe6e7d

query I rowsort
SELECT 20 + + 63 * + + 86 * 42 * - col0 FROM tab1
----
-11605336
-19342240
-20707576

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-387
SELECT ALL + 64 + COUNT( * ) FROM tab1 AS cor0
----
67

skipif mysql # not compatible
query I rowsort label-387
SELECT ALL + 64 + COUNT ( * ) FROM tab1 AS cor0
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-388
SELECT ALL + col1 + col0 + + CAST( + col1 AS SIGNED ) FROM tab2 AS cor0
----
148
209
218

skipif mysql # not compatible
query I rowsort label-388
SELECT ALL + col1 + col0 + + CAST ( + col1 AS INTEGER ) FROM tab2 AS cor0
----
148
209
218

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

query II rowsort
SELECT DISTINCT 9 - - col1, - col0 AS col1 FROM tab1
----
14
-85
23
-51
56
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-391
SELECT 6, COUNT( * ) col2 FROM tab1
----
6
3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-392
SELECT DISTINCT - 40 * COUNT( * ) col1 FROM tab0
----
-120

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-392
SELECT DISTINCT - 40 * COUNT ( * ) col1 FROM tab0
----
-120

query I rowsort
SELECT 22 - + col0 FROM tab2
----
-24
-42
-53

query II rowsort
SELECT DISTINCT col0, + col0 + + 82 AS col1 FROM tab2
----
46
128
64
146
75
157

query I rowsort
SELECT DISTINCT col0 * - col0 * col2 AS col2 FROM tab2
----
-163840
-326250
-48668

query I rowsort
SELECT DISTINCT + col2 FROM tab1 WHERE NOT + ( - - col0 ) IS NOT NULL
----

query I rowsort
SELECT - 56 - - ( - 80 ) AS col1 FROM tab0
----
-136
-136
-136

query II rowsort
SELECT ALL + col1, 96 AS col2 FROM tab1
----
14
96
47
96
5
96

onlyif mysql # aggregate syntax: 
query I rowsort label-399
SELECT + COUNT( DISTINCT + + col2 ) + - - 72 AS col1 FROM tab0 cor0
----
75

skipif mysql # not compatible
query I rowsort label-399
SELECT + COUNT ( DISTINCT + + col2 ) + - - 72 AS col1 FROM tab0 cor0
----
75

query II rowsort
SELECT ALL + col1 AS col2, - col0 + + 76 FROM tab0 AS cor0
----
1
-21
21
-11
81
61

query I rowsort
SELECT DISTINCT + col0 + - + 56 + - - col1 FROM tab1 AS cor0
----
34
82
9

query I rowsort
SELECT - 1 + - + ( + 52 ) FROM tab1 cor0
----
-53
-53
-53

onlyif mysql # aggregate syntax: 
query II rowsort label-403
SELECT ALL + 68 + - MAX( DISTINCT col0 ), 69 AS col2 FROM tab0
----
-29
69

skipif mysql # not compatible
query II rowsort label-403
SELECT ALL + 68 + - MAX ( DISTINCT col0 ), 69 AS col2 FROM tab0
----
-29
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 85 col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 8ebc8ffafb1517ea04e3a6fc4059d88a

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

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

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

query I rowsort
SELECT DISTINCT + 49 * + col2 FROM tab1 AS cor0 WHERE NOT NULL < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - col1 * + ( - 19 ) col1 FROM tab1 AS cor0
----
25536
5605
60724

query I rowsort
SELECT + + 54 AS col1 FROM tab1 AS cor0
----
54
54
54

onlyif mysql # aggregate syntax: 
query I rowsort label-410
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL <= ( 95 )
----
0

skipif mysql # not compatible
query I rowsort label-410
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL <= ( 95 )
----
0

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

skipif mysql # not compatible
query I rowsort label-411
SELECT 55 / - col2 AS col2 FROM tab0 AS cor0
----
-1
-5
0

query I rowsort
SELECT - col0 * - 69 * 92 FROM tab1 AS cor0
----
323748
539580
577668

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

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

query I rowsort
SELECT ALL 34 * + 6 AS col0 FROM tab0
----
204
204
204

query I rowsort
SELECT ALL + ( col2 ) * - + 13 FROM tab1
----
-1248
-767
-884

query I rowsort
SELECT DISTINCT 0 * - - col2 AS col0 FROM tab0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-417
SELECT DISTINCT + col0 * ( - CAST( - col0 AS SIGNED ) ) AS col1 FROM tab0
----
225
7569
9409

skipif mysql # not compatible
query I rowsort label-417
SELECT DISTINCT + col0 * ( - CAST ( - col0 AS INTEGER ) ) AS col1 FROM tab0
----
225
7569
9409

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - - col1 ) col2 FROM tab0
----
1
21
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-420
SELECT ALL - COUNT( * ), SUM( + CAST( - col0 AS SIGNED ) ) * 68 AS col1 FROM tab2 AS cor0
----
-3
-12580

skipif mysql # not compatible
query II rowsort label-420
SELECT ALL - COUNT ( * ), SUM ( + CAST ( - col0 AS INTEGER ) ) * 68 AS col1 FROM tab2 AS cor0
----
-3
-12580

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

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

query I rowsort
SELECT DISTINCT 24 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
24

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-424
SELECT 34 + MAX( ALL - 62 ) * SUM( DISTINCT - 65 ) FROM tab0 AS cor0
----
4064

skipif mysql # not compatible
query I rowsort label-424
SELECT 34 + MAX ( ALL - 62 ) * SUM ( DISTINCT - 65 ) FROM tab0 AS cor0
----
4064

query I rowsort
SELECT + 42 + col0 FROM tab1 AS cor0
----
127
133
93

query I rowsort
SELECT ALL col0 + + - col2 AS col1 FROM tab2 AS cor0
----
17
23
24

query I rowsort
SELECT - - col0 + + col1 * - col0 FROM tab2 AS cor0
----
-2300
-4864
-4950

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

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

query I rowsort
SELECT + - 43 + - col1 FROM tab2 AS cor0
----
-110
-120
-94

query I rowsort
SELECT ALL - + col1 + col0 * + + col2 AS col2 FROM tab1 AS cor0
----
4882
5010
6141

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 41 <= + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ( 18 ) FROM tab0, tab2 AS cor0
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

query I rowsort
SELECT ALL - ( - col1 ) AS col2 FROM tab2 WHERE + ( - col2 ) > NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-434
SELECT COUNT( * ) AS col0 FROM tab2 WHERE NULL NOT IN ( - - col2, - 64 - + col2, - + col1, + col1 + + CAST( - col2 AS SIGNED ) + col2, - col2, + + col0 + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-434
SELECT COUNT ( * ) AS col0 FROM tab2 WHERE NULL NOT IN ( - - col2, - 64 - + col2, - + col1, + col1 + + CAST ( - col2 AS INTEGER ) + col2, - col2, + + col0 + col1 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-435
SELECT ALL + 79 - + - 19 * + COUNT( * ) col1 FROM tab2
----
136

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-435
SELECT ALL + 79 - + - 19 * + COUNT ( * ) col1 FROM tab2
----
136

query III rowsort
SELECT ALL * FROM tab1 WHERE col2 + - 96 IS NULL
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 83 * 73 col1 FROM tab0
----
6059
6059
6059

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-441
SELECT COUNT( ALL - col0 ) * + 62 AS col2 FROM tab2 AS cor0
----
186

skipif mysql # not compatible
query I rowsort label-441
SELECT COUNT ( ALL - col0 ) * + 62 AS col2 FROM tab2 AS cor0
----
186

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

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

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

query II rowsort
SELECT - col1 AS col2, + col0 FROM tab2 AS cor0
----
-51
46
-67
75
-77
64

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

onlyif mysql # aggregate syntax: 
query I rowsort label-446
SELECT ALL - 60 * - COUNT( * ) * - 67 AS col0 FROM tab0 AS cor0
----
-12060

skipif mysql # not compatible
query I rowsort label-446
SELECT ALL - 60 * - COUNT ( * ) * - 67 AS col0 FROM tab0 AS cor0
----
-12060

onlyif mysql # aggregate syntax: 
query I rowsort label-447
SELECT - 43 * - MIN( - - col0 ) AS col1 FROM tab0
----
645

skipif mysql # not compatible
query I rowsort label-447
SELECT - 43 * - MIN ( - - col0 ) AS col1 FROM tab0
----
645

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-449
SELECT + COUNT( * ) * + COUNT( * ) * - ( - COUNT( * ) ) FROM tab0
----
27

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL <> + 50
----

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-452
SELECT DISTINCT - CAST( + - 62 AS SIGNED ) + MAX( + - col0 ) FROM tab2 AS cor0
----
16

skipif mysql # not compatible
query I rowsort label-452
SELECT DISTINCT - CAST ( + - 62 AS INTEGER ) + MAX ( + - col0 ) FROM tab2 AS cor0
----
16

query I rowsort
SELECT col1 + - - col0 AS col1 FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
141
142
97

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-455
SELECT + AVG ( DISTINCT - 59 ) + 87 - - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-455
SELECT + AVG ( DISTINCT - 59 ) + 87 - - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL

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

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

query I rowsort
SELECT DISTINCT - 47 * + 58 + + 86 + col1 AS col2 FROM tab0 AS cor0
----
-2559
-2619
-2639

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 71 + + - 87 + + col0 col2 FROM tab0 AS cor0
----
-1
71
81

query I rowsort
SELECT DISTINCT - - 23 * col2 - + - col2 * col0 - - - col1 FROM tab1 AS cor0
----
6367
7090
7705

query I rowsort
SELECT ALL - - 76 + + col0 AS col1 FROM tab2 AS cor0
----
122
140
151

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-463
SELECT + ( + + CAST ( - + 38 AS INTEGER ) ) col0 FROM tab2 AS cor0
----
-38
-38
-38

onlyif mysql # DIV for integer division: 
query I rowsort label-464
SELECT col2 DIV 3 * - col2 - + + col0 DIV - col2 AS col0 FROM tab0
----
-22
-3267
-705

skipif mysql # not compatible
query I rowsort label-464
SELECT col2 / 3 * - col2 - + + col0 / - col2 AS col0 FROM tab0
----
-22
-3267
-705

query I rowsort
SELECT + col1 * - + 51 - + col1 FROM tab0
----
-1092
-4212
-52

query II rowsort
SELECT + + 65 + col0 AS col2, + col1 AS col2 FROM tab2 AS cor0
----
111
51
129
77
140
67

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

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

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

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

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-474
SELECT ALL - CAST( NULL AS SIGNED ) * - 48 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + ( + 64 ) * + - col1 + - col1 IS NOT NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-477
SELECT DISTINCT COUNT( + + 35 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-477
SELECT DISTINCT COUNT ( + + 35 ) FROM tab2
----
3

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

query I rowsort
SELECT - 26 + + col2 * 95 AS col2 FROM tab2
----
2159
3774
5484

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

query III rowsort
SELECT * FROM tab0 WHERE NOT - + col1 * + 87 < NULL
----

query II rowsort
SELECT + + col1 AS col1, 49 AS col0 FROM tab0 WHERE NOT + col2 * + col2 = col2
----
1
49
21
49
81
49

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

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

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

skipif mysql # not compatible
query I rowsort label-484
SELECT + + 6 + CAST ( NULL AS INTEGER ) * - MAX ( ALL 77 ) FROM tab2 AS cor0
----
NULL

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

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

query I rowsort
SELECT ALL + col1 * col2 + - col1 AS col0 FROM tab1 AS cor0
----
1330
290
3149

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

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

query I rowsort
SELECT DISTINCT + + 64 FROM tab2 cor0 WHERE NOT 98 NOT BETWEEN 61 AND - - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-489
SELECT COUNT( DISTINCT 0 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
1

skipif mysql # not compatible
query I rowsort label-489
SELECT COUNT ( DISTINCT 0 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * - + ( 23 ) col2 FROM tab2
----
1058
1472
1725

query I rowsort
SELECT ALL + ( + + col2 ) * + col1 FROM tab1
----
1344
295
3196

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

onlyif mysql # aggregate syntax: 
query I rowsort label-493
SELECT ALL ( - 97 ) * - COUNT( * ) * + + SUM( - - 1 ) AS col0 FROM tab0
----
873

skipif mysql # not compatible
query I rowsort label-493
SELECT ALL ( - 97 ) * - COUNT ( * ) * + + SUM ( - - 1 ) AS col0 FROM tab0
----
873

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-495
SELECT ALL + + COUNT( * ) DIV + 83 + - CAST( SUM( DISTINCT col2 ) AS SIGNED ) FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-495
SELECT ALL + + COUNT ( * ) / + 83 + - CAST ( SUM ( DISTINCT col2 ) AS INTEGER ) FROM tab2 AS cor0
----
-121

query I rowsort
SELECT DISTINCT - col2 + - - col0 AS col1 FROM tab2 AS cor0
----
17
23
24

query I rowsort
SELECT DISTINCT + 37 * - - 87 FROM tab2 AS cor0
----
3219

onlyif mysql # aggregate syntax: 
query I rowsort label-498
SELECT + + 73 + + MIN( - col1 ) AS col1 FROM tab0 cor0
----
-8

skipif mysql # not compatible
query I rowsort label-498
SELECT + + 73 + + MIN ( - col1 ) AS col1 FROM tab0 cor0
----
-8

query I rowsort
SELECT DISTINCT 97 + - col1 FROM tab0 cor0
----
16
76
96

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-501
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col2, + CAST( - col2 AS SIGNED ) * col2 / - - 73 * + 82 * - col2 FROM tab1 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-501
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col2, + CAST ( - col2 AS INTEGER ) * col2 / - - 73 * + 82 * - col2 FROM tab1 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE 39 / - 16 - - 71 * + col2 < - col1
----

query I rowsort
SELECT ALL + col2 - 5 FROM tab0
----
42
5
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-504
SELECT DISTINCT + CAST( NULL AS SIGNED ) * COUNT( 80 ) * ( 81 ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-504
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * COUNT ( 80 ) * ( 81 ) AS col0 FROM tab2
----
NULL

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + col0, + col0 col2 FROM tab2 WHERE - col2 NOT BETWEEN + + 32 AND + + 70
----
46
46
64
64
75
75

query II rowsort
SELECT 55 AS col2, 99 * - - 24 AS col1 FROM tab0
----
55
2376
55
2376
55
2376

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

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

skipif mysql # not compatible
query I rowsort label-509
SELECT ALL - CAST ( - CAST ( - MAX ( - col2 ) AS INTEGER ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-510
SELECT ALL - COUNT( * ) DIV + SUM( - col0 ) AS col1, MAX( ALL - col2 ) AS col1 FROM tab2 AS cor0
----
0
-23

skipif mysql # not compatible
query II rowsort label-510
SELECT ALL - COUNT ( * ) / + SUM ( - col0 ) AS col1, MAX ( ALL - col2 ) AS col1 FROM tab2 AS cor0
----
0
-23

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

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

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

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

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

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

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

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

query I rowsort
SELECT 8 * ( + 27 ) AS col0 FROM tab2
----
216
216
216

query I rowsort
SELECT 26 * - col2 * - + 21 AS col0 FROM tab0
----
25662
54054
5460

query I rowsort
SELECT + ( 60 ) AS col2 FROM tab1
----
60
60
60

query I rowsort
SELECT DISTINCT + 50 FROM tab0 WHERE NOT NULL < ( + col1 )
----

query II rowsort
SELECT + col2 AS col2, - col0 FROM tab0 WHERE + - col1 NOT BETWEEN - col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-520
SELECT - 52 * COUNT( * ) FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-520
SELECT - 52 * COUNT ( * ) FROM tab0
----
-156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-521
SELECT ( COUNT( * ) ) * - CAST( + 98 AS SIGNED ) AS col1 FROM tab1
----
-294

skipif mysql # not compatible
query I rowsort label-521
SELECT ( COUNT ( * ) ) * - CAST ( + 98 AS INTEGER ) AS col1 FROM tab1
----
-294

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

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

query I rowsort
SELECT DISTINCT 32 + col2 + + col0 * ( ( col1 ) ) FROM tab0
----
1294
1869
228

query I rowsort
SELECT ALL col2 + col0 - + - col2 / col0 + - - 22 * - 64 / + col2 * - col1 * - + 91 * - col1 FROM tab2 AS cor0 WHERE ( 62 ) IS NULL
----

query I rowsort
SELECT DISTINCT + - 9 + - + 6 AS col2 FROM tab2 AS cor0
----
-15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + - col2 col2 FROM tab0 AS cor0
----
-196
-62
-97

query I rowsort
SELECT ALL - 31 + - col2 AS col2 FROM tab0 cor0
----
-130
-41
-78

query I rowsort
SELECT + 18 + 51 FROM tab0
----
69
69
69

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-530
SELECT + + 70 * CAST( - col2 AS SIGNED ) FROM tab0 AS cor0
----
-3290
-6930
-700

skipif mysql # not compatible
query I rowsort label-530
SELECT + + 70 * CAST ( - col2 AS INTEGER ) FROM tab0 AS cor0
----
-3290
-6930
-700

query I rowsort
SELECT ALL col0 * - 71 * + col2 FROM tab1 AS cor0
----
-347616
-356065
-439348

onlyif mysql # aggregate syntax: 
query I rowsort label-532
SELECT COUNT( * ) * + 43 - - - 26 FROM tab2 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-532
SELECT COUNT ( * ) * + 43 - - - 26 FROM tab2 AS cor0
----
103

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

query I rowsort
SELECT DISTINCT - col0 + + + 36 * + 40 FROM tab1 AS cor0
----
1349
1355
1389

query I rowsort
SELECT + - ( - - col0 ) - - + col2 AS col0 FROM tab2 AS cor0
----
-17
-23
-24

query I rowsort
SELECT ALL + col1 * + 81 FROM tab2
----
4131
5427
6237

query I rowsort
SELECT DISTINCT 24 * + col1 * col0 FROM tab0
----
2328
29160
43848

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

onlyif mysql # aggregate syntax: 
query I rowsort label-539
SELECT DISTINCT SUM( ALL 98 ) * - - 92 FROM tab2 AS cor0
----
27048

skipif mysql # not compatible
query I rowsort label-539
SELECT DISTINCT SUM ( ALL 98 ) * - - 92 FROM tab2 AS cor0
----
27048

query I rowsort
SELECT DISTINCT + - 68 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) <> + col1 + + - col0 + + col0 * + col1
----

query I rowsort
SELECT DISTINCT + 18 FROM tab2 AS cor0 WHERE col0 / - 25 IS NOT NULL
----
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - + col0 col2 FROM tab1 AS cor0
----
-2601
-7225
-8281

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

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

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

query I rowsort
SELECT ALL col2 * - + 9 AS col1 FROM tab0 AS cor0
----
-423
-891
-90

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-548
SELECT - 61 + - 34 - + - col2 DIV col0 AS col1 FROM tab1 AS cor0
----
-94
-95
-95

skipif mysql # not compatible
query I rowsort label-548
SELECT - 61 + - 34 - + - col2 / col0 AS col1 FROM tab1 AS cor0
----
-94
-95
-95

query III rowsort
SELECT * FROM tab0 WHERE NULL IN ( ( - - col1 ), col0, col1 * ( - col0 ) * - col1, col1 + + col0, + 36 )
----

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 61 * col2 IS NOT NULL
----

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 12 + 59 BETWEEN - - col0 AND NULL
----

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

query III rowsort
SELECT * FROM tab1 cor0 WHERE 41 >= 15 + - col2 - - col2 * + - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col0 * + + col1 AS col2 FROM tab2 WHERE NOT col1 = + - 71 - + col0
----
2346
4928
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-557
SELECT + MAX( + col0 ) * - MAX( + col2 ) + + MIN( DISTINCT + 21 ) AS col0 FROM tab0
----
-9582

skipif mysql # not compatible
query I rowsort label-557
SELECT + MAX ( + col0 ) * - MAX ( + col2 ) + + MIN ( DISTINCT + 21 ) AS col0 FROM tab0
----
-9582

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 20 + col1 col0 FROM tab0
----
101
21
41

query I rowsort
SELECT + - col2 * col2 + - col0 + + col2 AS col1 FROM tab0 AS cor0
----
-177
-2177
-9799

onlyif mysql # DIV for integer division: 
query I rowsort label-560
SELECT - + 59 DIV col0 + - col1 FROM tab2 cor0
----
-52
-67
-77

skipif mysql # not compatible
query I rowsort label-560
SELECT - + 59 / col0 + - col1 FROM tab2 cor0
----
-52
-67
-77

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

skipif mysql # not compatible
query I rowsort label-561
SELECT ALL + MAX ( ALL - 31 ) AS col1 FROM tab1 AS cor0
----
-31

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

query I rowsort
SELECT col0 + col0 + - 47 AS col1 FROM tab0 AS cor0
----
-17
127
147

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

query I rowsort
SELECT DISTINCT + + ( - ( - 22 ) ) AS col0 FROM tab0 AS cor0
----
22

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

query II rowsort
SELECT col1 col2, 71 FROM tab0
----
1
71
21
71
81
71

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

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

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

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

query II rowsort
SELECT DISTINCT - 47, - col0 * col0 AS col1 FROM tab1
----
-47
-2601
-47
-7225
-47
-8281

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

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

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT 53 >= - 82
----

query I rowsort
SELECT col2 + - col2 * - - col0 * - col2 FROM tab0
----
33182
8710
950796

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

query II rowsort
SELECT DISTINCT - col0 + 75 AS col1, + col2 FROM tab2 cor0
----
0
58
11
40
29
23

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

query I rowsort
SELECT ALL 45 + - col2 + col0 * 28 FROM tab0 cor0
----
2471
2662
418

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 16 + + 4 * + - 16 * col0 * - - 39 col2 FROM tab1 AS cor0
----
-127312
-212176
-227152

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-581
SELECT DISTINCT - CAST( + - col1 AS DECIMAL ) + + + 9 + - + 57 + CAST( NULL AS SIGNED ) * - - col0 col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-581
SELECT DISTINCT - CAST ( + - col1 AS REAL ) + + + 9 + - + 57 + CAST ( NULL AS INTEGER ) * - - col0 col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - + 13 * - - 79 * 60 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN col1 AND col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-583
SELECT ALL - 86 DIV - MAX( ALL ( + col1 ) ) + - COUNT( 22 ) FROM tab0 cor0
----
-2

skipif mysql # not compatible
query I rowsort label-583
SELECT ALL - 86 / - MAX ( ALL ( + col1 ) ) + - COUNT ( 22 ) FROM tab0 cor0
----
-2

query I rowsort
SELECT ALL col1 + - 14 * col1 * - ( + - col1 ) AS col0 FROM tab0
----
-13
-6153
-91773

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-586
SELECT ( COUNT( * ) ) * - CAST( COUNT( * ) AS SIGNED ) AS col1 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-586
SELECT ( COUNT ( * ) ) * - CAST ( COUNT ( * ) AS INTEGER ) AS col1 FROM tab0
----
-9

query I rowsort
SELECT 95 AS col0 FROM tab2 WHERE NULL IS NULL
----
95
95
95

query I rowsort
SELECT + col0 - + 94 + + col0 AS col1 FROM tab1
----
76
8
88

onlyif mysql # aggregate syntax: 
query I rowsort label-589
SELECT ALL - MAX( ALL + 46 ) * + MIN( - - 34 ) AS col1 FROM tab0, tab1 AS cor0
----
-1564

skipif mysql # not compatible
query I rowsort label-589
SELECT ALL - MAX ( ALL + 46 ) * + MIN ( - - 34 ) AS col1 FROM tab0, tab1 AS cor0
----
-1564

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

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

query I rowsort
SELECT - col0 + - - 60 FROM tab1 AS cor0
----
-25
-31
9

query I rowsort
SELECT + ( col0 ) + 51 * col0 FROM tab2 AS cor0
----
2392
3328
3900

query I rowsort
SELECT DISTINCT + 65 / col0 FROM tab1 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-594
SELECT 21 DIV - COUNT( * ) + 82 AS col1 FROM tab1 WHERE NOT + 33 IS NULL
----
75

skipif mysql # not compatible
query I rowsort label-594
SELECT 21 / - COUNT ( * ) + 82 AS col1 FROM tab1 WHERE NOT + 33 IS NULL
----
75

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-595
SELECT ALL COUNT ( * ) / CAST ( + 23 AS INTEGER ) col0 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-596
SELECT DISTINCT MAX( col2 ) * 44 AS col2 FROM tab1
----
4224

skipif mysql # not compatible
query I rowsort label-596
SELECT DISTINCT MAX ( col2 ) * 44 AS col2 FROM tab1
----
4224

onlyif mysql # DIV for integer division: 
query I rowsort label-597
SELECT DISTINCT col2 DIV + 7 FROM tab0
----
1
14
6

skipif mysql # not compatible
query I rowsort label-597
SELECT DISTINCT col2 / + 7 FROM tab0
----
1
14
6

query I rowsort
SELECT DISTINCT col0 FROM tab2 WHERE NOT NULL BETWEEN NULL AND ( - ( + ( col0 ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-599
SELECT - SUM( + 66 ) AS col2 FROM tab1
----
-198

skipif mysql # not compatible
query I rowsort label-599
SELECT - SUM ( + 66 ) AS col2 FROM tab1
----
-198

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-603
SELECT DISTINCT - MIN( ALL - col2 ) + + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-603
SELECT DISTINCT - MIN ( ALL - col2 ) + + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col1 FROM tab2 WHERE col0 BETWEEN ( col2 ) AND ( col2 )
----

query I rowsort
SELECT DISTINCT 29 * - 12 + - col0 * - 56 FROM tab1
----
2508
4412
4748

query I rowsort
SELECT ALL + 91 * col1 + 85 FROM tab0
----
176
1996
7456

onlyif mysql # DIV for integer division: 
query I rowsort label-608
SELECT - col0 + - col0 DIV 30 AS col1 FROM tab1
----
-52
-87
-94

skipif mysql # not compatible
query I rowsort label-608
SELECT - col0 + - col0 / 30 AS col1 FROM tab1
----
-52
-87
-94

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

onlyif mysql # aggregate syntax: 
query I rowsort label-610
SELECT ALL COUNT( * ) + COUNT( * ) FROM tab1 WHERE NOT - col1 + - col1 BETWEEN col1 + col1 AND + 66
----
6

skipif mysql # not compatible
query I rowsort label-610
SELECT ALL COUNT ( * ) + COUNT ( * ) FROM tab1 WHERE NOT - col1 + - col1 BETWEEN col1 + col1 AND + 66
----
6

query I rowsort
SELECT + col1 * + col0 AS col0 FROM tab0 WHERE NOT ( 39 * col0 ) > col0
----

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

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab2 WHERE NOT col2 * - 58 NOT IN ( + col0 )
----

query I rowsort
SELECT col0 * 93 AS col0 FROM tab0 AS cor0
----
1395
8091
9021

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

onlyif mysql # aggregate syntax: 
query I rowsort label-616
SELECT DISTINCT 16 * - COUNT( * ) col2 FROM tab1 AS cor0
----
-48

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

onlyif mysql # aggregate syntax: 
query I rowsort label-617
SELECT DISTINCT - COUNT( * ) * COUNT( * ) FROM tab0 cor0 WHERE NOT 34 BETWEEN NULL AND 64
----
0

skipif mysql # not compatible
query I rowsort label-617
SELECT DISTINCT - COUNT ( * ) * COUNT ( * ) FROM tab0 cor0 WHERE NOT 34 BETWEEN NULL AND 64
----
0

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

skipif mysql # not compatible
query I rowsort label-618
SELECT ALL COUNT ( * ) AS col1 FROM tab1 cor0 CROSS JOIN tab1
----
9

query I rowsort
SELECT col1 * ( 26 * + col1 ) FROM tab2
----
116714
154154
67626

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 87 * 44 >= NULL
----

query I rowsort
SELECT ALL + + ( 61 ) + col1 AS col1 FROM tab2 AS cor0
----
112
128
138

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-622
SELECT DISTINCT - CAST( - 95 AS SIGNED ) DIV ( - ( - col1 ) ) + - col2 AS col0 FROM tab1 AS cor0
----
-40
-66
-90

skipif mysql # not compatible
query I rowsort label-622
SELECT DISTINCT - CAST ( - 95 AS INTEGER ) / ( - ( - col1 ) ) + - col2 AS col0 FROM tab1 AS cor0
----
-40
-66
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-623
SELECT ALL 16 + 7 DIV - 79 FROM tab0 AS cor0
----
16
16
16

skipif mysql # not compatible
query I rowsort label-623
SELECT ALL 16 + 7 / - 79 FROM tab0 AS cor0
----
16
16
16

query I rowsort
SELECT 35 + - col0 FROM tab2 cor0
----
-11
-29
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-625
SELECT DISTINCT + 69 + - 51 * COUNT( * ) AS col1 FROM tab0 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-625
SELECT DISTINCT + 69 + - 51 * COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-84

query I rowsort
SELECT ALL 80 AS col2 FROM tab2 AS cor0 WHERE - col1 + - 31 IS NULL
----

query I rowsort
SELECT + - ( - col0 ) + 9 AS col2 FROM tab0 AS cor0
----
106
24
96

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 92 col1 FROM tab2 WHERE + col1 * col2 IS NOT NULL
----
92

query I rowsort
SELECT ALL 7 + + 96 + 50 AS col1 FROM tab1
----
153
153
153

query I rowsort
SELECT DISTINCT - col0 * - 41 AS col0 FROM tab0 WHERE NOT col0 + col2 IS NULL
----
3567
3977
615

query I rowsort
SELECT + col0 AS col0 FROM tab2 WHERE - col2 + 11 <> NULL
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 - + col1 col2 FROM tab0
----
-11
-34
98

query I rowsort
SELECT - col1 * - + 60 AS col2 FROM tab1
----
2820
300
840

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

onlyif mysql # aggregate syntax: 
query I rowsort label-637
SELECT - 7 * COUNT( ALL - ( col2 ) ) col1 FROM tab1
----
-21

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-637
SELECT - 7 * COUNT ( ALL - ( col2 ) ) col1 FROM tab1
----
-21

query I rowsort
SELECT - 97 FROM tab2 WHERE NOT col2 <> ( - 75 / 57 ) OR NOT ( NULL ) NOT BETWEEN ( NULL ) AND + col1
----

query I rowsort
SELECT 58 - + 48 + - 29 FROM tab1 AS cor0
----
-19
-19
-19

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) < - col2 * - 6 + col2 / 10 AND ( col0 ) + - 14 IS NULL
----

query I rowsort
SELECT ALL - 6 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e92b2679faac7be63701967e3f0c0934

query I rowsort
SELECT + 25 * 34 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL ) <= 83
----

query II rowsort
SELECT col0, - ( - + col2 ) AS col1 FROM tab1 AS cor0
----
51
96
85
59
91
68

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL >= ( - 45 )
----

query II rowsort
SELECT ALL col2 AS col0, + 66 AS col2 FROM tab0 AS cor0
----
10
66
47
66
99
66

query I rowsort
SELECT - 8 * ( col0 ) AS col2 FROM tab2 AS cor0
----
-368
-512
-600

query I rowsort
SELECT ALL - col0 * col0 AS col2 FROM tab2 AS cor0 WHERE NOT - col1 IN ( col1 )
----
-2116
-4096
-5625

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-648
SELECT ALL CAST( NULL AS DECIMAL ) AS col2, - 1 AS col1 FROM tab1 cor0
----
NULL
-1
NULL
-1
NULL
-1

skipif mysql # not compatible
query II rowsort label-648
SELECT ALL CAST ( NULL AS REAL ) AS col2, - 1 AS col1 FROM tab1 cor0
----
NULL
-1
NULL
-1
NULL
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-649
SELECT - + COUNT( * ) DIV 49 + + 74 FROM tab1 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-649
SELECT - + COUNT ( * ) / 49 + + 74 FROM tab1 AS cor0
----
74

query I rowsort
SELECT ALL - col2 * col0 AS col1 FROM tab2 WHERE 83 IS NULL
----

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

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 + + col2 / 64 <= NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-653
SELECT COUNT( * ) DIV + SUM( DISTINCT + 22 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-653
SELECT COUNT ( * ) / + SUM ( DISTINCT + 22 ) FROM tab0
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-655
SELECT COUNT( * ) FROM tab1 WHERE NOT + + 68 BETWEEN - 19 + + col0 AND 70 * col1
----
1

skipif mysql # not compatible
query I rowsort label-655
SELECT COUNT ( * ) FROM tab1 WHERE NOT + + 68 BETWEEN - 19 + + col0 AND 70 * col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-656
SELECT DISTINCT - MAX( DISTINCT + 80 ) * - COUNT( * ) FROM tab2 cor0
----
240

skipif mysql # not compatible
query I rowsort label-656
SELECT DISTINCT - MAX ( DISTINCT + 80 ) * - COUNT ( * ) FROM tab2 cor0
----
240

query I rowsort
SELECT DISTINCT 46 * - ( - col1 ) FROM tab2
----
2346
3082
3542

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 7 * + - col1 * - col0 - - ( - col0 + - col2 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-659
SELECT col1 DIV + col1 + 36 AS col1 FROM tab0
----
37
37
37

skipif mysql # not compatible
query I rowsort label-659
SELECT col1 / + col1 + 36 AS col1 FROM tab0
----
37
37
37

onlyif mysql # DIV for integer division: 
query I rowsort label-660
SELECT - col1 + col2 DIV - 73 * + col0 col1 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-660
SELECT - col1 + col2 / - 73 * + col0 col1 FROM tab2
----
-51
-67
-77

query I rowsort
SELECT DISTINCT col0 + col0 * + - col1 + - - 67 * - 46 FROM tab0 AS cor0
----
-3082
-4282
-4822

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

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 * 42 IS NULL
----

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

query I rowsort
SELECT DISTINCT - 77 - col2 FROM tab0 AS cor0
----
-124
-176
-87

query I rowsort
SELECT ALL + 29 + - col0 FROM tab0
----
-58
-68
14

onlyif mysql # DIV for integer division: 
query I rowsort label-668
SELECT ALL + col0 - - + 86 + - + 66 DIV 26 AS col2 FROM tab2
----
130
148
159

skipif mysql # not compatible
query I rowsort label-668
SELECT ALL + col0 - - + 86 + - + 66 / 26 AS col2 FROM tab2
----
130
148
159

onlyif mysql # aggregate syntax: 
query I rowsort label-669
SELECT - MIN( ALL - 98 ) AS col1 FROM tab0
----
98

skipif mysql # not compatible
query I rowsort label-669
SELECT - MIN ( ALL - 98 ) AS col1 FROM tab0
----
98

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

skipif mysql # not compatible
query I rowsort label-670
SELECT DISTINCT col1 + col1 / - col2 AS col1 FROM tab2
----
49
66
76

query I rowsort
SELECT ALL col1 - - 40 + 97 FROM tab2
----
188
204
214

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-674
SELECT col2 + - + 24 + - col2 * + 12 + - 4 + 43 * + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-674
SELECT col2 + - + 24 + - col2 * + 12 + - 4 + 43 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-675
SELECT ALL - CAST( NULL AS SIGNED ) FROM tab2 WHERE NOT ( col2 NOT IN ( - col1 + - col2 * 15 ) )
----

skipif mysql # not compatible
query I rowsort label-675
SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT ( col2 NOT IN ( - col1 + - col2 * 15 ) )
----

query I rowsort
SELECT + 98 + 66 AS col2 FROM tab0
----
164
164
164

onlyif mysql # aggregate syntax: 
query I rowsort label-677
SELECT DISTINCT - COUNT( * ) * - + MAX( ALL 36 ) * - + 81 col2 FROM tab2
----
-8748

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-677
SELECT DISTINCT - COUNT ( * ) * - + MAX ( ALL 36 ) * - + 81 col2 FROM tab2
----
-8748

query I rowsort
SELECT ALL + 56 * - col1 FROM tab1 AS cor0
----
-2632
-280
-784

onlyif mysql # DIV for integer division: 
query II rowsort label-679
SELECT ALL + - 52 + + - 29 AS col2, - col0 DIV - - col1 FROM tab0 AS cor0
----
-81
-4
-81
-97
-81
0

skipif mysql # not compatible
query II rowsort label-679
SELECT ALL + - 52 + + - 29 AS col2, - col0 / - - col1 FROM tab0 AS cor0
----
-81
-4
-81
-97
-81
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 * col0 * + col0 * + 58 IS NULL
----

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

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

query I rowsort
SELECT - 72 * - col1 + + col0 - - 45 FROM tab1 AS cor0
----
1104
3520
490

query I rowsort
SELECT + col0 * - 50 AS col1 FROM tab1 AS cor0
----
-2550
-4250
-4550

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

onlyif mysql # DIV for integer division: 
query I rowsort label-686
SELECT DISTINCT - - 23 * col0 DIV 63 FROM tab2 AS cor0
----
16
23
27

skipif mysql # not compatible
query I rowsort label-686
SELECT DISTINCT - - 23 * col0 / 63 FROM tab2 AS cor0
----
16
23
27

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

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

query I rowsort
SELECT - ( 40 ) AS col0 FROM tab2
----
-40
-40
-40

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - col0 ) > - + 56
----
85
5
59
91
47
68

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

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

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

query I rowsort
SELECT + + col1 * - 55 FROM tab1 cor0
----
-2585
-275
-770

onlyif mysql # aggregate syntax: 
query I rowsort label-695
SELECT - - MIN( DISTINCT + 3 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-695
SELECT - - MIN ( DISTINCT + 3 ) FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-696
SELECT DISTINCT CAST( + col1 AS SIGNED ) * - - ( 8 ) FROM tab2 AS cor0
----
408
536
616

skipif mysql # not compatible
query I rowsort label-696
SELECT DISTINCT CAST ( + col1 AS INTEGER ) * - - ( 8 ) FROM tab2 AS cor0
----
408
536
616

query II rowsort
SELECT DISTINCT 64 + col0, + 52 AS col0 FROM tab1 AS cor0
----
115
52
149
52
155
52

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

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

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

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

query I rowsort
SELECT DISTINCT + col1 + - 86 AS col0 FROM tab0 AS cor0
----
-5
-65
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-701
SELECT + + 70 DIV + col1 + + + col2 + + ( - - col1 ) * + + col0 AS col0 FROM tab0 AS cor0
----
1262
1840
266

skipif mysql # not compatible
query I rowsort label-701
SELECT + + 70 / + col1 + + + col2 + + ( - - col1 ) * + + col0 AS col0 FROM tab0 AS cor0
----
1262
1840
266

onlyif mysql # DIV for integer division: 
query I rowsort label-702
SELECT ALL - + 83 - - 95 DIV col2 * col0 FROM tab1 AS cor0
----
-83
2
8

skipif mysql # not compatible
query I rowsort label-702
SELECT ALL - + 83 - - 95 / col2 * col0 FROM tab1 AS cor0
----
-83
2
8

query I rowsort
SELECT ALL 29 - + 32 FROM tab1
----
-3
-3
-3

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-706
SELECT ( - COUNT( * ) ) AS col2 FROM tab2 WHERE - 46 NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-706
SELECT ( - COUNT ( * ) ) AS col2 FROM tab2 WHERE - 46 NOT BETWEEN NULL AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-707
SELECT DISTINCT 14 - - - COUNT( * ) col1 FROM tab0
----
11

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-707
SELECT DISTINCT 14 - - - COUNT ( * ) col1 FROM tab0
----
11

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

query I rowsort
SELECT - col2 * ( col2 ) * + col0 FROM tab0
----
-33135
-8700
-950697

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

query I rowsort
SELECT ALL + col2 - + col2 AS col1 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-712
SELECT DISTINCT + COUNT( DISTINCT 71 ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-712
SELECT DISTINCT + COUNT ( DISTINCT 71 ) FROM tab2 AS cor0
----
1

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-715
SELECT ALL ( + + 38 ) * + COUNT ( * ) FROM tab0
----
114

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-716
SELECT + + col0 + ( + 41 ) / - col1 col0 FROM tab2 WHERE NOT + col0 + + + col2 > + 92 / + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-716
SELECT + + col0 + ( + 41 ) / - col1 col0 FROM tab2 WHERE NOT + col0 + + + col2 > + 92 / + + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-717
SELECT DISTINCT 47 DIV + ( + MIN( + 13 ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-717
SELECT DISTINCT 47 / + ( + MIN ( + 13 ) ) FROM tab2
----
3

query I rowsort
SELECT - ( - - col2 ) + + col1 * - col1 FROM tab0 WHERE NOT + + col1 / + col2 * col1 IN ( - col2 )
----
-100
-451
-6608

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

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

query II rowsort
SELECT + + 37 AS col2, + col1 AS col1 FROM tab1 AS cor0
----
37
14
37
47
37
5

query II rowsort
SELECT + 38 AS col2, 3 FROM tab2 AS cor0
----
38
3
38
3
38
3

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

query I rowsort
SELECT DISTINCT - 65 FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND + + 93 + - 27 * + + 57 * + - col2
----

query I rowsort
SELECT DISTINCT - - col1 + col0 * - col1 AS col2 FROM tab2 cor0
----
-2295
-4851
-4958

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-726
SELECT ALL + 16 * 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-726
SELECT ALL + 16 * CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + ( - col2 ) * - col0 AS col0 FROM tab2 AS cor0
----
1058
2560
4350

query I rowsort
SELECT ALL col1 + + + 86 FROM tab1 cor0
----
100
133
91

onlyif mysql # DIV for integer division: 
query I rowsort label-729
SELECT ALL + 77 DIV ( + col0 ) FROM tab0 AS cor0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-729
SELECT ALL + 77 / ( + col0 ) FROM tab0 AS cor0
----
0
0
5

onlyif mysql # aggregate syntax: 
query I rowsort label-730
SELECT DISTINCT + MIN( DISTINCT col1 ) * - COUNT( * ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-730
SELECT DISTINCT + MIN ( DISTINCT col1 ) * - COUNT ( * ) FROM tab0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 46 col2 FROM tab2 WHERE NOT ( NOT 36 * + - col1 IN ( - - 54 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-732
SELECT + CAST( col0 AS SIGNED ) * + col2 * col1 + + - 30 FROM tab2
----
197090
291420
53928

skipif mysql # not compatible
query I rowsort label-732
SELECT + CAST ( col0 AS INTEGER ) * + col2 * col1 + + - 30 FROM tab2
----
197090
291420
53928

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-733
SELECT 47 DIV COUNT( * ) * COUNT( * ) FROM tab2
----
45

skipif mysql # not compatible
query I rowsort label-733
SELECT 47 / COUNT ( * ) * COUNT ( * ) FROM tab2
----
45

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-735
SELECT DISTINCT - COUNT( * ) + + COUNT( * ) DIV + + COUNT( * ) col1 FROM tab2
----
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-735
SELECT DISTINCT - COUNT ( * ) + + COUNT ( * ) / + + COUNT ( * ) col1 FROM tab2
----
-2

query I rowsort
SELECT DISTINCT 94 + + col0 AS col1 FROM tab0 AS cor0
----
109
181
191

onlyif mysql # aggregate syntax: 
query I rowsort label-737
SELECT - + COUNT( DISTINCT - col0 ) + - - 62 + + 56 AS col0 FROM tab1 AS cor0
----
115

skipif mysql # not compatible
query I rowsort label-737
SELECT - + COUNT ( DISTINCT - col0 ) + - - 62 + + 56 AS col0 FROM tab1 AS cor0
----
115

onlyif mysql # DIV for integer division: 
query I rowsort label-738
SELECT col2 + ( + ( - 31 ) ) - - - 39 DIV - col0 * col2 + ( 79 ) FROM tab1
----
107
116
144

skipif mysql # not compatible
query I rowsort label-738
SELECT col2 + ( + ( - 31 ) ) - - - 39 / - col0 * col2 + ( 79 ) FROM tab1
----
107
116
144

query II rowsort
SELECT + - col1, - col1 AS col0 FROM tab0 WHERE NULL IS NULL
----
-1
-1
-21
-21
-81
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-740
SELECT ALL + MAX( 60 ) AS col2 FROM tab2
----
60

skipif mysql # not compatible
query I rowsort label-740
SELECT ALL + MAX ( 60 ) AS col2 FROM tab2
----
60

query I rowsort
SELECT ALL col0 FROM tab0 WHERE - + col0 + col1 BETWEEN NULL AND - - col1
----

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

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

query I rowsort
SELECT DISTINCT - - 90 + - - 19 FROM tab2 cor0
----
109

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

query II rowsort
SELECT DISTINCT col1 * - - col0 col2, ( + - col1 ) * col0 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND NULL
----

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

query I rowsort
SELECT col2 - - col1 + - col0 + + + col2 FROM tab1
----
155
38
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-748
SELECT + MIN( 74 ) + + COUNT( * ) + - COUNT( * ) DIV COUNT( * ) AS col1 FROM tab0
----
76

skipif mysql # not compatible
query I rowsort label-748
SELECT + MIN ( 74 ) + + COUNT ( * ) + - COUNT ( * ) / COUNT ( * ) AS col1 FROM tab0
----
76

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

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

query I rowsort
SELECT ALL col0 - + - col0 AS col0 FROM tab0
----
174
194
30

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-752
SELECT * FROM tab1 WHERE NOT NULL IN ( col0 * 67, 11, - col2 + col2 + col2 * - CAST( NULL AS SIGNED ) * + ( 73 ) * + col0 / + - col0 / - + ( - col0 ) + col0 )
----

skipif mysql # not compatible
query III rowsort label-752
SELECT * FROM tab1 WHERE NOT NULL IN ( col0 * 67, 11, - col2 + col2 + col2 * - CAST ( NULL AS INTEGER ) * + ( 73 ) * + col0 / + - col0 / - + ( - col0 ) + col0 )
----

query I rowsort
SELECT 88 * + - col2 - col2 FROM tab0 AS cor0
----
-4183
-8811
-890

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

query I rowsort
SELECT ALL - 30 * - 79 * - - col0 FROM tab0
----
206190
229890
35550

onlyif mysql # aggregate syntax: 
query I rowsort label-756
SELECT DISTINCT COUNT( * ) * + COUNT( * ) * + 67 AS col1 FROM tab2
----
603

skipif mysql # not compatible
query I rowsort label-756
SELECT DISTINCT COUNT ( * ) * + COUNT ( * ) * + 67 AS col1 FROM tab2
----
603

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

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

query I rowsort
SELECT + col1 * + + 6 + - col0 FROM tab2 AS cor0
----
260
327
398

query I rowsort
SELECT - + 45 + - 68 AS col1 FROM tab1 cor0 WHERE NOT + 67 * + col0 > col1 + + - 91
----

query I rowsort
SELECT - col2 * col1 + - col1 * col2 AS col1 FROM tab0 AS cor0
----
-198
-420
-7614

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 17 * + col1 col2 FROM tab0 AS cor0
----
1377
17
357

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

onlyif mysql # DIV for integer division: 
query I rowsort label-764
SELECT DISTINCT 97 DIV col2 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-764
SELECT DISTINCT 97 / col2 FROM tab1 AS cor0
----
1

query I rowsort
SELECT DISTINCT - col1 * ( + - col1 ) AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
196
2209
25

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

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 55 >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-769
SELECT col0 DIV - - col1 AS col0 FROM tab0 cor0
----
0
4
97

skipif mysql # not compatible
query I rowsort label-769
SELECT col0 / - - col1 AS col0 FROM tab0 cor0
----
0
4
97

onlyif mysql # aggregate syntax: 
query I rowsort label-770
SELECT ALL COUNT( * ) + - + 36 FROM tab1 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-770
SELECT ALL COUNT ( * ) + - + 36 FROM tab1 AS cor0
----
-33

query I rowsort
SELECT DISTINCT - col0 + - col0 + + - ( col1 ) * col0 AS col0 FROM tab1 AS cor0
----
-4459
-595
-816

query I rowsort
SELECT DISTINCT - 66 * - - 18 + + + col1 AS col1 FROM tab0 AS cor0
----
-1107
-1167
-1187

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-774
SELECT ALL ( + COUNT( * ) ), COUNT( * ) - - + 95 AS col2 FROM tab2
----
3
98

skipif mysql # not compatible
query II rowsort label-774
SELECT ALL ( + COUNT ( * ) ), COUNT ( * ) - - + 95 AS col2 FROM tab2
----
3
98

query I rowsort
SELECT + 28 + - 72 FROM tab0 cor0
----
-44
-44
-44

onlyif mysql # DIV for integer division: 
query II rowsort label-776
SELECT ALL - 44 * 55 DIV + 54, col0 AS col0 FROM tab0 AS cor0
----
-44
15
-44
87
-44
97

skipif mysql # not compatible
query II rowsort label-776
SELECT ALL - 44 * 55 / + 54, col0 AS col0 FROM tab0 AS cor0
----
-44
15
-44
87
-44
97

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

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

query I rowsort
SELECT + - col1 + col2 - col2 + + - col2 AS col2 FROM tab1 AS cor0
----
-110
-115
-64

query I rowsort
SELECT ALL + - col0 + - - col1 AS col1 FROM tab2 AS cor0
----
-8
13
5

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

onlyif mysql # aggregate syntax: 
query II rowsort label-781
SELECT DISTINCT + 25 + + 78, + COUNT( * ) AS col0 FROM tab2 AS cor0
----
103
3

skipif mysql # not compatible
query II rowsort label-781
SELECT DISTINCT + 25 + + 78, + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
103
3

query II rowsort
SELECT + col1 + col2 * + col0, - col2 AS col0 FROM tab0 AS cor0 WHERE NULL <= + col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-783
SELECT COUNT( * ) DIV + 60 * - + 55 AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-783
SELECT COUNT ( * ) / + 60 * - + 55 AS col0 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-784
SELECT DISTINCT - + SUM( 77 ) AS col0, + 31 FROM tab2 AS cor0
----
-231
31

skipif mysql # not compatible
query II rowsort label-784
SELECT DISTINCT - + SUM ( 77 ) AS col0, + 31 FROM tab2 AS cor0
----
-231
31

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col0 * 7 + 92 + - + col2 IS NULL
----

query II rowsort
SELECT DISTINCT + 82, col0 * + col1 + col0 AS col2 FROM tab1
----
82
4368
82
510
82
765

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

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

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

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

query I rowsort
SELECT DISTINCT - - col2 + col1 + - 7 * col0 * - - col2 FROM tab1 AS cor0
----
-34162
-35041
-43201

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-792
SELECT CAST( AVG ( ALL - col1 ) AS SIGNED ) * + ( + + 80 ) FROM tab2
----
-5200

skipif mysql # not compatible
query I rowsort label-792
SELECT CAST ( AVG ( ALL - col1 ) AS INTEGER ) * + ( + + 80 ) FROM tab2
----
-5200

onlyif mysql # DIV for integer division: 
query II rowsort label-793
SELECT col2 - + col1 AS col0, col1 DIV 32 * + 69 FROM tab1 WHERE + 70 * + col2 + + - col0 * - + col2 * col1 + col2 IS NOT NULL
----
21
69
54
0
82
0

skipif mysql # not compatible
query II rowsort label-793
SELECT col2 - + col1 AS col0, col1 / 32 * + 69 FROM tab1 WHERE + 70 * + col2 + + - col0 * - + col2 * col1 + col2 IS NOT NULL
----
21
69
54
0
82
0

onlyif mysql # DIV for integer division: 
query II rowsort label-794
SELECT ALL + col0 AS col0, - 74 DIV + 71 AS col2 FROM tab0
----
15
-1
87
-1
97
-1

skipif mysql # not compatible
query II rowsort label-794
SELECT ALL + col0 AS col0, - 74 / + 71 AS col2 FROM tab0
----
15
-1
87
-1
97
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-795
SELECT - SUM( DISTINCT - - 34 ) FROM tab0
----
-34

skipif mysql # not compatible
query I rowsort label-795
SELECT - SUM ( DISTINCT - - 34 ) FROM tab0
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-796
SELECT MAX( DISTINCT + col0 ) col1 FROM tab0
----
97

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

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

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

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

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

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

query I rowsort
SELECT ALL + col2 * - + col1 FROM tab2
----
-1173
-3080
-3886

onlyif mysql # aggregate syntax: 
query I rowsort label-801
SELECT - MAX( - - ( + col2 ) ) + + 56 FROM tab2
----
-2

skipif mysql # not compatible
query I rowsort label-801
SELECT - MAX ( - - ( + col2 ) ) + + 56 FROM tab2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-802
SELECT ALL + - COUNT( * ) + + + ( - 16 ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-25

skipif mysql # not compatible
query I rowsort label-802
SELECT ALL + - COUNT ( * ) + + + ( - 16 ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-25

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

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

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

query II rowsort
SELECT - 48 AS col1, 95 FROM tab1
----
-48
95
-48
95
-48
95

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

skipif mysql # not compatible
query I rowsort label-806
SELECT ALL COUNT ( * ) * - SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-808
SELECT DISTINCT COUNT( * ) * 2 AS col1 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-808
SELECT DISTINCT COUNT ( * ) * 2 AS col1 FROM tab0
----
6

query I rowsort
SELECT DISTINCT - - 5 FROM tab2 cor0
----
5

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

onlyif mysql # aggregate syntax: 
query I rowsort label-811
SELECT COUNT( + 26 ) col2 FROM tab1 cor0
----
3

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 49 IS NOT NULL
----

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

skipif mysql # not compatible
query I rowsort label-813
SELECT + + 53 * COUNT ( + col0 ) FROM tab0 cor0
----
159

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

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

skipif mysql # not compatible
query I rowsort label-815
SELECT - col2 / - - col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-816
SELECT DISTINCT COUNT( - + 83 ) DIV 42 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-816
SELECT DISTINCT COUNT ( - + 83 ) / 42 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-817
SELECT DISTINCT 31 * - 73 AS col2, MAX( col2 ) AS col0 FROM tab0
----
-2263
99

skipif mysql # not compatible
query II rowsort label-817
SELECT DISTINCT 31 * - 73 AS col2, MAX ( col2 ) AS col0 FROM tab0
----
-2263
99

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-823
SELECT + + col1 * - col2, + 46 * - CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0
----
-210
NULL
-3807
NULL
-99
NULL

skipif mysql # not compatible
query II rowsort label-823
SELECT + + col1 * - col2, + 46 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0
----
-210
NULL
-3807
NULL
-99
NULL

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-824
SELECT col0 / - + ( col2 ) col2 FROM tab0 AS cor0
----
-8
0
0

query I rowsort
SELECT DISTINCT + col1 + 50 FROM tab0 AS cor0
----
131
51
71

query III rowsort
SELECT * FROM tab1 cor0 WHERE col2 + + col1 * - 53 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-827
SELECT - - col0 * - - 8 - - 54 DIV ( 75 ) DIV col2 DIV + col2 + + col2 AS col2 FROM tab0 AS cor0
----
167
706
875

skipif mysql # not compatible
query I rowsort label-827
SELECT - - col0 * - - 8 - - 54 / ( 75 ) / col2 / + col2 + + col2 AS col2 FROM tab0 AS cor0
----
167
706
875

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-829
SELECT col1 + - 86 + + col1 DIV + + 17 AS col0 FROM tab2 AS cor0 WHERE col1 * - - col0 IS NOT NULL
----
-16
-32
-5

skipif mysql # not compatible
query I rowsort label-829
SELECT col1 + - 86 + + col1 / + + 17 AS col0 FROM tab2 AS cor0 WHERE col1 * - - col0 IS NOT NULL
----
-16
-32
-5

query I rowsort
SELECT - + 25 + - 83 + + 54 * + col1 - - 71 FROM tab1 AS cor0
----
233
2501
719

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

query I rowsort
SELECT ALL - ( + - col1 ) * - + col2 * - - col1 AS col1 FROM tab0
----
-308367
-4410
-99

query I rowsort
SELECT ( + - 83 ) * - + col2 FROM tab2 cor0
----
1909
3320
4814

onlyif mysql # DIV for integer division: 
query II rowsort label-834
SELECT DISTINCT - + col2 DIV 93, + col1 AS col1 FROM tab0 AS cor0
----
-1
1
0
21
0
81

skipif mysql # not compatible
query II rowsort label-834
SELECT DISTINCT - + col2 / 93, + col1 AS col1 FROM tab0 AS cor0
----
-1
1
0
21
0
81

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

query I rowsort
SELECT col2 AS col2 FROM tab1 WHERE NULL < + ( + - 50 )
----

query I rowsort
SELECT DISTINCT + col1 - + col0 + - col0 AS col0 FROM tab0
----
-153
-193
51

query I rowsort
SELECT ALL 55 * - - col2 FROM tab1
----
3245
3740
5280

onlyif mysql # DIV for integer division: 
query I rowsort label-839
SELECT DISTINCT - col1 DIV - ( - 81 ) AS col1 FROM tab0 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-839
SELECT DISTINCT - col1 / - ( - 81 ) AS col1 FROM tab0 AS cor0
----
-1
0

onlyif mysql # DIV for integer division: 
query I rowsort label-840
SELECT + 64 DIV 36 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-840
SELECT + 64 / 36 FROM tab1 AS cor0
----
1
1
1

query II rowsort
SELECT ALL - col2 col0, + 26 + + 68 * - col1 AS col1 FROM tab2 cor0 WHERE NOT 54 IS NOT NULL
----

query I rowsort
SELECT - col0 FROM tab2 AS cor0 WHERE NOT NULL > col0 * + col0
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 + - 38 = NULL
----

query I rowsort
SELECT DISTINCT + col0 * 63 FROM tab2
----
2898
4032
4725

query I rowsort
SELECT - ( - col1 ) * 88 * - - col0 AS col1 FROM tab2
----
206448
433664
442200

query I rowsort
SELECT - 29 * + col2 FROM tab2
----
-1160
-1682
-667

query II rowsort
SELECT DISTINCT 41, 42 + - col2 AS col1 FROM tab2
----
41
-16
41
19
41
2

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

query I rowsort
SELECT DISTINCT + 1 AS col2 FROM tab1 cor0
----
1

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-852
SELECT DISTINCT - col0 * - - CAST( - col2 AS SIGNED ) FROM tab0
----
705
870
9603

skipif mysql # not compatible
query I rowsort label-852
SELECT DISTINCT - col0 * - - CAST ( - col2 AS INTEGER ) FROM tab0
----
705
870
9603

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

query I rowsort
SELECT ALL 61 AS col0 FROM tab2 cor0
----
61
61
61

query I rowsort
SELECT DISTINCT col0 + - 86 AS col0 FROM tab1 AS cor0
----
-1
-35
5

query I rowsort
SELECT ALL - col0 * - + col2 - - col1 + + col1 FROM tab1 cor0
----
4924
5025
6282

query I rowsort
SELECT ALL + col1 + col2 * + + 31 FROM tab0 AS cor0
----
1538
3070
331

query II rowsort
SELECT ALL - col0 + - 17 AS col0, + 15 FROM tab0 AS cor0
----
-104
15
-114
15
-32
15

query I rowsort
SELECT DISTINCT + ( - - 49 ) - + col0 + 85 FROM tab2 AS cor0
----
59
70
88

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

onlyif mysql # aggregate syntax: 
query I rowsort label-861
SELECT ALL MIN( 28 ) * - - COUNT( * ) FROM tab2
----
84

skipif mysql # not compatible
query I rowsort label-861
SELECT ALL MIN ( 28 ) * - - COUNT ( * ) FROM tab2
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-862
SELECT DISTINCT COUNT( * ) - ( - - MAX( DISTINCT - ( - 87 ) ) ) FROM tab0
----
-84

skipif mysql # not compatible
query I rowsort label-862
SELECT DISTINCT COUNT ( * ) - ( - - MAX ( DISTINCT - ( - 87 ) ) ) FROM tab0
----
-84

query I rowsort
SELECT 68 * + col0 - col1 AS col1 FROM tab1
----
3454
5775
6141

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

skipif mysql # not compatible
query II rowsort label-864
SELECT DISTINCT + 96, COUNT ( * ) AS col0 FROM tab2
----
96
3

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

query I rowsort
SELECT ALL col0 FROM tab1 WHERE NOT col1 / - 24 IS NULL AND NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-867
SELECT col2 DIV - - ( + 83 ) * + col2 - - - col1 + col0 + 87 + - col2 * - 48 * 37 AS col1 FROM tab2 AS cor0
----
103103
40930
71114

skipif mysql # not compatible
query I rowsort label-867
SELECT col2 / - - ( + 83 ) * + col2 - - - col1 + col0 + 87 + - col2 * - 48 * 37 AS col1 FROM tab2 AS cor0
----
103103
40930
71114

query I rowsort
SELECT - - ( 50 ) AS col0 FROM tab2 cor0
----
50
50
50

onlyif mysql # aggregate syntax: 
query I rowsort label-869
SELECT DISTINCT SUM( DISTINCT col1 ) AS col0 FROM tab0 WHERE 71 = col0
----
NULL

skipif mysql # not compatible
query I rowsort label-869
SELECT DISTINCT SUM ( DISTINCT col1 ) AS col0 FROM tab0 WHERE 71 = col0
----
NULL

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

query I rowsort
SELECT - + 82 FROM tab0 cor0
----
-82
-82
-82

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

onlyif mysql # aggregate syntax: 
query I rowsort label-873
SELECT ALL + MIN( DISTINCT + + col1 ) col0 FROM tab2 AS cor0
----
51

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

query I rowsort
SELECT col1 * - + 36 AS col1 FROM tab0 AS cor0
----
-2916
-36
-756

query I rowsort
SELECT DISTINCT + col2 * + - 91 FROM tab1 AS cor0
----
-5369
-6188
-8736

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 87 col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

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

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

query I rowsort
SELECT - - 7 * 54 + + 86 FROM tab1 AS cor0
----
464
464
464

query I rowsort
SELECT + 25 FROM tab1 AS cor0 WHERE NULL <> - col2
----

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-886
SELECT ALL - COUNT ( * ) FROM tab0 AS cor0 WHERE ( NOT ( NULL IS NULL ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-887
SELECT DISTINCT 27 + + COUNT( * ) + 2 col1 FROM tab0 AS cor0
----
32

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

query I rowsort
SELECT 30 + + 27 FROM tab1 AS cor0
----
57
57
57

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL = + 23 * + ( - 38 )
----

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

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

skipif mysql # not compatible
query I rowsort label-891
SELECT ALL + 69 - 4 - - col2 + - - ( + col0 ) + CAST ( NULL AS INTEGER ) * - col2 FROM tab1
----
NULL
NULL
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-893
SELECT + - col1 * - ( - CAST( + - col1 AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
196
2209
25

skipif mysql # not compatible
query I rowsort label-893
SELECT + - col1 * - ( - CAST ( + - col1 AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
196
2209
25

query I rowsort
SELECT - col0 - + 22 FROM tab2 AS cor0
----
-68
-86
-97

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-896
SELECT CAST( + - 30 AS SIGNED ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 56fa25f9fb8040460fe3c894000ea8fb

skipif mysql # not compatible
query I rowsort label-896
SELECT CAST ( + - 30 AS INTEGER ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 56fa25f9fb8040460fe3c894000ea8fb

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 71 + + col2 + col2 * + col0 * 24 / + col1 IS NOT NULL
----

query I rowsort
SELECT - 16 * col1 AS col1 FROM tab1
----
-224
-752
-80

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

onlyif mysql # DIV for integer division: 
query I rowsort label-900
SELECT 25 DIV - col0 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-900
SELECT 25 / - col0 FROM tab0
----
-1
0
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-902
SELECT DISTINCT * FROM tab1 WHERE NOT - - col1 + - CAST( + - col0 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-902
SELECT DISTINCT * FROM tab1 WHERE NOT - - col1 + - CAST ( + - col0 AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT col1 * + 38 FROM tab2
----
1938
2546
2926

query I rowsort
SELECT + 16 + + 17 AS col1 FROM tab0 WHERE NOT col1 + col1 IS NULL
----
33
33
33

query I rowsort
SELECT ( - col0 ) * - ( 78 ) FROM tab2
----
3588
4992
5850

onlyif mysql # aggregate syntax: 
query I rowsort label-906
SELECT 92 * + MAX( - - col1 ) FROM tab2
----
7084

skipif mysql # not compatible
query I rowsort label-906
SELECT 92 * + MAX ( - - col1 ) FROM tab2
----
7084

onlyif mysql # aggregate syntax: 
query I rowsort label-907
SELECT - COUNT( ALL + col1 ) FROM tab0 WHERE NOT + - 90 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-907
SELECT - COUNT ( ALL + col1 ) FROM tab0 WHERE NOT + - 90 IS NOT NULL
----
0

query II rowsort
SELECT DISTINCT - col0 * + col1, col2 FROM tab1
----
-425
59
-4277
68
-714
96

onlyif mysql # aggregate syntax: 
query I rowsort label-909
SELECT - + 77 + - SUM( ALL + col1 ) AS col2 FROM tab2 AS cor0
----
-272

skipif mysql # not compatible
query I rowsort label-909
SELECT - + 77 + - SUM ( ALL + col1 ) AS col2 FROM tab2 AS cor0
----
-272

onlyif mysql # aggregate syntax: 
query I rowsort label-910
SELECT 68 * - - COUNT( * ) * + 93 col1 FROM tab0
----
18972

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-910
SELECT 68 * - - COUNT ( * ) * + 93 col1 FROM tab0
----
18972

query I rowsort
SELECT ALL ( - + 26 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 47d0574274146de273829785364ada39

query III rowsort
SELECT * FROM tab2 WHERE 49 <> + + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 / 31 BETWEEN NULL AND - col0 - - col1
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 > + col0
----
51
14
96

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

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

query I rowsort
SELECT DISTINCT - 18 + + col2 AS col1 FROM tab2 AS cor0
----
22
40
5

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-921
SELECT - MIN( - 90 ) - + - COUNT( * ) * + + 16 FROM tab0 AS cor0
----
138

skipif mysql # not compatible
query I rowsort label-921
SELECT - MIN ( - 90 ) - + - COUNT ( * ) * + + 16 FROM tab0 AS cor0
----
138

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + col1 ) + 96 col2 FROM tab1
----
101
110
143

query II rowsort
SELECT DISTINCT 94 + 51 * col2 * - col0 AS col0, + ( + 71 ) FROM tab1
----
-249602
71
-255671
71
-315494
71

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-925
SELECT 41 * 17 - - - 59 * - + CAST( NULL AS SIGNED ) * + - col2 / + + col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-925
SELECT 41 * 17 - - - 59 * - + CAST ( NULL AS INTEGER ) * + - col2 / + + col0 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE ( ( NULL ) >= + col1 + + + col2 )
----

query II rowsort
SELECT DISTINCT + 40 + + 21 * 20, + 21 AS col0 FROM tab0 WHERE NOT NULL >= + 38 * - 84
----

query II rowsort
SELECT ALL - + col1 AS col0, ( + - 54 ) FROM tab1 AS cor0
----
-14
-54
-47
-54
-5
-54

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

query I rowsort
SELECT DISTINCT + col0 * + - col2 FROM tab2 cor0
----
-1058
-2560
-4350

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 / col2 + col1 AS col2, - col2 col0 FROM tab0 AS cor0 WHERE NOT 11 * - col0 - col0 IS NOT NULL
----

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

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

query I rowsort
SELECT - 59 * - 71 FROM tab1
----
4189
4189
4189

onlyif mysql # aggregate syntax: 
query I rowsort label-935
SELECT SUM( - 57 ) + + 96 AS col0 FROM tab0
----
-75

skipif mysql # not compatible
query I rowsort label-935
SELECT SUM ( - 57 ) + + 96 AS col0 FROM tab0
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-936
SELECT - col0 * col1 * - - 20 + + CAST( col0 AS SIGNED ) col0 FROM tab0
----
-1843
-24285
-36453

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-936
SELECT - col0 * col1 * - - 20 + + CAST ( col0 AS INTEGER ) col0 FROM tab0
----
-1843
-24285
-36453

query I rowsort
SELECT DISTINCT - 87 * + + 42 FROM tab0
----
-3654

onlyif mysql # aggregate syntax: 
query II rowsort label-938
SELECT 43, MAX( DISTINCT col2 ) AS col2 FROM tab0 AS cor0
----
43
99

skipif mysql # not compatible
query II rowsort label-938
SELECT 43, MAX ( DISTINCT col2 ) AS col2 FROM tab0 AS cor0
----
43
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-939
SELECT + + ( + - ( + 91 ) ) DIV MIN( + col0 ) FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-939
SELECT + + ( + - ( + 91 ) ) / MIN ( + col0 ) FROM tab0 AS cor0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-940
SELECT ( - - MIN( - + 94 ) ) col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-94

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-940
SELECT ( - - MIN ( - + 94 ) ) col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-94

query I rowsort
SELECT - + 68 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 5febf382d36d6e0191889c41b928786f

query I rowsort
SELECT + 69 + 51 AS col2 FROM tab0 AS cor0
----
120
120
120

query I rowsort
SELECT ALL col0 + - col1 + + - col0 FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-944
SELECT - 83 + MIN( col1 ) AS col2 FROM tab0 cor0
----
-82

skipif mysql # not compatible
query I rowsort label-944
SELECT - 83 + MIN ( col1 ) AS col2 FROM tab0 cor0
----
-82

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 3 * + + col2 * + 41 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-947
SELECT + + COUNT( * ) * + 71 + + + 40 AS col1 FROM tab0 AS cor0
----
253

skipif mysql # not compatible
query I rowsort label-947
SELECT + + COUNT ( * ) * + 71 + + + 40 AS col1 FROM tab0 AS cor0
----
253

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

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

query I rowsort
SELECT DISTINCT + col2 - + - col0 AS col1 FROM tab1
----
144
147
159

query I rowsort
SELECT ALL col1 + - + 99 FROM tab2
----
-22
-32
-48

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-953
SELECT ALL ( + - 54 ) DIV - col2 + col0 col1 FROM tab2
----
48
65
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-953
SELECT ALL ( + - 54 ) / - col2 + col0 col1 FROM tab2
----
48
65
75

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + + ( - col0 ) col0 FROM tab1 WHERE NOT + - col0 BETWEEN NULL AND 29
----

onlyif mysql # aggregate syntax: 
query II rowsort label-957
SELECT 2 AS col2, COUNT( * ) + COUNT( + col0 ) + - 52 * + COUNT( * ) * 40 AS col1 FROM tab2
----
2
-6234

skipif mysql # not compatible
query II rowsort label-957
SELECT 2 AS col2, COUNT ( * ) + COUNT ( + col0 ) + - 52 * + COUNT ( * ) * 40 AS col1 FROM tab2
----
2
-6234

query I rowsort
SELECT ALL + 49 AS col1 FROM tab2
----
49
49
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-959
SELECT ALL + CAST( + - col0 AS SIGNED ) * + - col0 AS col0 FROM tab1
----
2601
7225
8281

skipif mysql # not compatible
query I rowsort label-959
SELECT ALL + CAST ( + - col0 AS INTEGER ) * + - col0 AS col0 FROM tab1
----
2601
7225
8281

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

skipif mysql # not compatible
query I rowsort label-960
SELECT ALL + 85 / COUNT ( * ) FROM tab0
----
28

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

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL <= - col1 + + col1 * col0
----

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

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

skipif mysql # not compatible
query I rowsort label-965
SELECT MIN ( ALL - 9 ) AS col1 FROM tab2
----
-9

query I rowsort
SELECT 46 FROM tab0 AS cor0 INNER JOIN tab0 AS cor1 ON NOT NULL > NULL
----

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

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

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

skipif mysql # not compatible
query I rowsort label-968
SELECT - MIN ( - - col0 ) AS col1 FROM tab0 AS cor0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-969
SELECT + 81 * + - COUNT( ALL 52 ) - 18 FROM tab2 cor0 WHERE NOT - col0 IS NOT NULL
----
-18

skipif mysql # not compatible
query I rowsort label-969
SELECT + 81 * + - COUNT ( ALL 52 ) - 18 FROM tab2 cor0 WHERE NOT - col0 IS NOT NULL
----
-18

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-973
SELECT DISTINCT + MAX( 98 ) AS col1, 58 AS col0 FROM tab1 AS cor0
----
98
58

skipif mysql # not compatible
query II rowsort label-973
SELECT DISTINCT + MAX ( 98 ) AS col1, 58 AS col0 FROM tab1 AS cor0
----
98
58

onlyif mysql # aggregate syntax: 
query I rowsort label-974
SELECT - SUM( ALL ( - 41 ) ) FROM tab2 cor0
----
123

skipif mysql # not compatible
query I rowsort label-974
SELECT - SUM ( ALL ( - 41 ) ) FROM tab2 cor0
----
123

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-975
SELECT COUNT( * ) DIV - - 99 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-975
SELECT COUNT ( * ) / - - 99 FROM tab0
----
0

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

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

query I rowsort
SELECT - 42 * col1 AS col2 FROM tab2
----
-2142
-2814
-3234

query I rowsort
SELECT - col2 * col2 + + - 73 AS col2 FROM tab1 AS cor0
----
-3554
-4697
-9289

onlyif mysql # DIV for integer division: 
query I rowsort label-979
SELECT - 45 DIV 78 * + + 85 + - - col1 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-979
SELECT - 45 / 78 * + + 85 + - - col1 FROM tab2
----
51
67
77

query I rowsort
SELECT + col2 + col1 + - col0 + - + col1 + + ( + 61 ) FROM tab2
----
37
38
44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0, + 52 col0 FROM tab0
----
15
52
87
52
97
52

onlyif mysql # aggregate syntax: 
query I rowsort label-982
SELECT ALL COUNT( * ) * 56 FROM tab2
----
168

skipif mysql # not compatible
query I rowsort label-982
SELECT ALL COUNT ( * ) * 56 FROM tab2
----
168

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

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

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

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

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

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

query I rowsort
SELECT ALL + + ( 3 ) * - col1 + - - 72 + - - col0 FROM tab0 AS cor0
----
-156
166
96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-988
SELECT * FROM tab2 WHERE NOT col0 IN ( - ( - + 61 ), + CAST( NULL AS SIGNED ) ) OR NOT NULL IS NULL
----

skipif mysql # not compatible
query III rowsort label-988
SELECT * FROM tab2 WHERE NOT col0 IN ( - ( - + 61 ), + CAST ( NULL AS INTEGER ) ) OR NOT NULL IS NULL
----

query II rowsort
SELECT + col2 * + col2 AS col1, 97 FROM tab1
----
3481
97
4624
97
9216
97

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <> - - 46
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-991
SELECT DISTINCT + SUM( ALL + col2 ) DIV + - ( + COUNT( * ) ) AS col1 FROM tab1
----
-74

skipif mysql # not compatible
query I rowsort label-991
SELECT DISTINCT + SUM ( ALL + col2 ) / + - ( + COUNT ( * ) ) AS col1 FROM tab1
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-992
SELECT DISTINCT COUNT( * ) * + + 47 FROM tab2
----
141

skipif mysql # not compatible
query I rowsort label-992
SELECT DISTINCT COUNT ( * ) * + + 47 FROM tab2
----
141

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-993
SELECT ALL + + COUNT( * ) DIV MIN( ALL col1 ) * - MIN( ALL 3 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-993
SELECT ALL + + COUNT ( * ) / MIN ( ALL col1 ) * - MIN ( ALL 3 ) FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-994
SELECT ALL COUNT( - + 18 ), MAX( - col1 ) AS col2 FROM tab1 cor0
----
3
-5

skipif mysql # not compatible
query II rowsort label-994
SELECT ALL COUNT ( - + 18 ), MAX ( - col1 ) AS col2 FROM tab1 cor0
----
3
-5

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-996
SELECT ALL - 31, - 47 + + COUNT( * ) AS col0 FROM tab2
----
-31
-44

skipif mysql # not compatible
query II rowsort label-996
SELECT ALL - 31, - 47 + + COUNT ( * ) AS col0 FROM tab2
----
-31
-44

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( col0 / - - 81 * - 85 = NULL )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1000
SELECT - 23 + COUNT( * ) col0 FROM tab1 AS cor0
----
-20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1000
SELECT - 23 + COUNT ( * ) col0 FROM tab1 AS cor0
----
-20

query I rowsort
SELECT ALL - col2 + + 8 FROM tab0 AS cor0
----
-2
-39
-91

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

query I rowsort
SELECT + 28 + + col2 FROM tab1 AS cor0
----
124
87
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1004
SELECT DISTINCT MIN( DISTINCT - + col1 ) FROM tab2 cor0
----
-77

skipif mysql # not compatible
query I rowsort label-1004
SELECT DISTINCT MIN ( DISTINCT - + col1 ) FROM tab2 cor0
----
-77

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

skipif mysql # not compatible
query I rowsort label-1005
SELECT - - 31 + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
34

query II rowsort
SELECT ALL 82, + 34 AS col0 FROM tab1
----
82
34
82
34
82
34

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

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

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

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

query I rowsort
SELECT + col1 * 2 AS col0 FROM tab0
----
162
2
42

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1012
SELECT + - MIN( ALL - + col1 ), - 69 AS col1 FROM tab0 AS cor0
----
81
-69

skipif mysql # not compatible
query II rowsort label-1012
SELECT + - MIN ( ALL - + col1 ), - 69 AS col1 FROM tab0 AS cor0
----
81
-69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 95 + + - col1 col2 FROM tab0 AS cor0
----
14
74
94

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col2 BETWEEN + + ( - + 48 ) + + col0 AND ( + - col0 ) / - col0
----

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

query I rowsort
SELECT + 84 AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - 19 * + - 78 AS col0 FROM tab2 AS cor0
----
1482
1482
1482

query II rowsort
SELECT DISTINCT - col1 * + 3 col0, col1 AS col0 FROM tab2 cor0
----
-153
51
-201
67
-231
77

query I rowsort
SELECT ALL - 23 * - - col0 AS col0 FROM tab1 AS cor0
----
-1173
-1955
-2093

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

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT ( ( ( NOT ( NOT ( 44 + - col2 >= + 2 * - 90 ) ) ) ) ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 FROM tab2 WHERE NOT NULL NOT IN ( col0 )
----

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

query I rowsort
SELECT DISTINCT + - col0 * - - col0 * - 50 + col2 AS col2 FROM tab0 AS cor0
----
11297
378460
470549

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

query III rowsort
SELECT * FROM tab2 WHERE NOT - 85 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1028
SELECT - COUNT( - col2 ) * - 90 FROM tab0
----
270

skipif mysql # not compatible
query I rowsort label-1028
SELECT - COUNT ( - col2 ) * - 90 FROM tab0
----
270

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

query I rowsort
SELECT - col0 * 26 FROM tab2
----
-1196
-1664
-1950

query I rowsort
SELECT + 53 * - col2 AS col1 FROM tab1
----
-3127
-3604
-5088

onlyif mysql # aggregate syntax: 
query I rowsort label-1032
SELECT ALL COUNT( * ) FROM tab2 WHERE 81 > ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-1032
SELECT ALL COUNT ( * ) FROM tab2 WHERE 81 > ( NULL )
----
0

query I rowsort
SELECT + col2 * + 45 AS col0 FROM tab1
----
2655
3060
4320

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

skipif mysql # not compatible
query I rowsort label-1034
SELECT CAST ( NULL AS INTEGER ) * - col0 AS col2 FROM tab0 WHERE ( NULL ) NOT BETWEEN col1 + col0 * - 84 AND + col1 * 11
----

query I rowsort
SELECT ALL - col0 + col1 * 92 AS col0 FROM tab2
----
4646
6089
7020

query I rowsort
SELECT DISTINCT + 53 + col1 FROM tab1
----
100
58
67

query I rowsort
SELECT - 96 - 94 AS col1 FROM tab1 WHERE NOT - 62 NOT BETWEEN + col1 AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1038
SELECT 76 * - 32 AS col1 FROM tab2 WHERE ( ( 66 ) + CAST( NULL AS SIGNED ) ) >= NULL
----

skipif mysql # not compatible
query I rowsort label-1038
SELECT 76 * - 32 AS col1 FROM tab2 WHERE ( ( 66 ) + CAST ( NULL AS INTEGER ) ) >= NULL
----

query I rowsort
SELECT - 66 + 59 AS col1 FROM tab2
----
-7
-7
-7

query I rowsort
SELECT DISTINCT + ( 29 ) * col2 FROM tab1
----
1711
1972
2784

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1042
SELECT 29 + COUNT( * ) AS col1 FROM tab0 WHERE + col2 IS NULL
----
29

skipif mysql # not compatible
query I rowsort label-1042
SELECT 29 + COUNT ( * ) AS col1 FROM tab0 WHERE + col2 IS NULL
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-1043
SELECT DISTINCT - MAX( DISTINCT col1 ) * COUNT( * ) AS col2 FROM tab0
----
-243

skipif mysql # not compatible
query I rowsort label-1043
SELECT DISTINCT - MAX ( DISTINCT col1 ) * COUNT ( * ) AS col2 FROM tab0
----
-243

query I rowsort
SELECT - col1 + 47 FROM tab0
----
-34
26
46

query I rowsort
SELECT DISTINCT - col2 * + 1 - col0 FROM tab1
----
-144
-147
-159

onlyif mysql # aggregate syntax: 
query I rowsort label-1046
SELECT DISTINCT COUNT( * ) AS col2 FROM tab1 WHERE col0 - + col1 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-1046
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab1 WHERE col0 - + col1 = NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1047
SELECT DISTINCT col0 + + 52 DIV col1 AS col1 FROM tab0
----
149
15
89

skipif mysql # not compatible
query I rowsort label-1047
SELECT DISTINCT col0 + + 52 / col1 AS col1 FROM tab0
----
149
15
89

query I rowsort
SELECT DISTINCT + col0 * 65 + col0 FROM tab1
----
3366
5610
6006

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

query I rowsort
SELECT DISTINCT + col1 + + 13 AS col2 FROM tab0 WHERE NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1051
SELECT + SUM( ALL 91 ) * + COUNT( * ) + - COUNT( * ) col1 FROM tab2
----
816

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1051
SELECT + SUM ( ALL 91 ) * + COUNT ( * ) + - COUNT ( * ) col1 FROM tab2
----
816

query I rowsort
SELECT + col2 * + col0 FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND + 73
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1053
SELECT - MIN( DISTINCT 84 ) AS col1 FROM tab2
----
-84

skipif mysql # not compatible
query I rowsort label-1053
SELECT - MIN ( DISTINCT 84 ) AS col1 FROM tab2
----
-84

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

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

query I rowsort
SELECT DISTINCT + col1 * - col2 - + col2 AS col2 FROM tab2
----
-1196
-3120
-3944

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

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

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

skipif mysql # not compatible
query I rowsort label-1057
SELECT - + COUNT ( * ) * CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL

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

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

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

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

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

query I rowsort
SELECT DISTINCT - - 94 * + col2 FROM tab0 AS cor0
----
4418
9306
940

onlyif mysql # DIV for integer division: 
query I rowsort label-1063
SELECT DISTINCT - col1 DIV - 86 AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1063
SELECT DISTINCT - col1 / - 86 AS col0 FROM tab2 AS cor0
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 * 54 IN ( 16 + + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL <= ( + col1 )
----

query I rowsort
SELECT col0 * - col1 FROM tab0 WHERE NULL <= - 38 * + col0 OR NOT ( NULL ) IS NOT NULL
----
-1215
-1827
-97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1067
SELECT ALL * FROM tab1 WHERE NOT NULL IN ( + CAST( NULL AS SIGNED ) + - 24 )
----

skipif mysql # not compatible
query III rowsort label-1067
SELECT ALL * FROM tab1 WHERE NOT NULL IN ( + CAST ( NULL AS INTEGER ) + - 24 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1068
SELECT DISTINCT * FROM tab2 WHERE NOT - col2 - - 66 <= ( CAST( NULL AS SIGNED ) ) OR ( col1 ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-1068
SELECT DISTINCT * FROM tab2 WHERE NOT - col2 - - 66 <= ( CAST ( NULL AS INTEGER ) ) OR ( col1 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col0 IS NOT NULL OR NOT ( NULL ) NOT IN ( - ( col2 ) )
----

query I rowsort
SELECT ALL + col2 FROM tab1 WHERE ( - ( col2 ) / + col1 + - col0 ) < ( - col0 / 6 + - col0 * col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT IN ( col0 + 69 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 69 col2 FROM tab1
----
69

query I rowsort
SELECT ALL 13 + 3 AS col2 FROM tab0 AS cor0 WHERE NOT col1 * - col0 + - col1 NOT IN ( col0 * - col0 )
----

query I rowsort
SELECT ALL + 60 * - col0 FROM tab2 AS cor0
----
-2760
-3840
-4500

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 40 > col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE 7 - - col2 * + col0 IN ( col0 + ( col0 ) )
----

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

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

query I rowsort
SELECT ALL 49 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1083
SELECT DISTINCT + - MIN( + - 17 ) FROM tab2 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-1083
SELECT DISTINCT + - MIN ( + - 17 ) FROM tab2 AS cor0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-1084
SELECT + + 0 + 60 + + COUNT( * ) FROM tab2 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-1084
SELECT + + 0 + 60 + + COUNT ( * ) FROM tab2 AS cor0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-1085
SELECT + 4 + MAX( DISTINCT - + 77 ) FROM tab2 AS cor0
----
-73

skipif mysql # not compatible
query I rowsort label-1085
SELECT + 4 + MAX ( DISTINCT - + 77 ) FROM tab2 AS cor0
----
-73

query I rowsort
SELECT DISTINCT - col0 + + 63 FROM tab1 AS cor0
----
-22
-28
12

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

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

query I rowsort
SELECT + col1 + - + 59 AS col1 FROM tab2 cor0
----
-8
18
8

onlyif mysql # aggregate syntax: 
query I rowsort label-1089
SELECT ( 74 ) + COUNT( * ) AS col1 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-1089
SELECT ( 74 ) + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
77

query I rowsort
SELECT DISTINCT + + 5 + col1 AS col2 FROM tab2 cor0
----
56
72
82

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

query III rowsort
SELECT * FROM tab0 WHERE NULL IN ( - + 82 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1093
SELECT ALL MIN( col2 ) * MAX( - col0 ) AS col2 FROM tab0 WHERE NULL BETWEEN - col1 AND - col0 + ( - col1 + col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1093
SELECT ALL MIN ( col2 ) * MAX ( - col0 ) AS col2 FROM tab0 WHERE NULL BETWEEN - col1 AND - col0 + ( - col1 + col0 )
----
NULL

query I rowsort
SELECT DISTINCT - col0 * - col0 - + - col0 AS col0 FROM tab0
----
240
7656
9506

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

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

query I rowsort
SELECT col0 * - ( + 78 ) AS col1 FROM tab0
----
-1170
-6786
-7566

onlyif mysql # aggregate syntax: 
query I rowsort label-1097
SELECT DISTINCT + MIN( DISTINCT - + col1 ) + - MIN( ALL - col2 ) FROM tab0
----
18

skipif mysql # not compatible
query I rowsort label-1097
SELECT DISTINCT + MIN ( DISTINCT - + col1 ) + - MIN ( ALL - col2 ) FROM tab0
----
18

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1100
SELECT + col2 - 86 * - + CAST( - col2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-1955
-3400
-4930

skipif mysql # not compatible
query I rowsort label-1100
SELECT + col2 - 86 * - + CAST ( - col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-1955
-3400
-4930

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

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

query I rowsort
SELECT + + 41 FROM tab1 cor0 WHERE ( NULL ) IS NULL
----
41
41
41

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

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

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

query I rowsort
SELECT - ( 1 ) - + col2 FROM tab0 AS cor0
----
-100
-11
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-1106
SELECT MIN( ALL 57 ) FROM tab0 AS cor0 WHERE ( NOT ( NULL ) <> ( + ( col0 ) * 52 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1106
SELECT MIN ( ALL 57 ) FROM tab0 AS cor0 WHERE ( NOT ( NULL ) <> ( + ( col0 ) * 52 ) )
----
NULL

query I rowsort
SELECT ( - - col2 ) * + ( col0 ) + - col0 * + col0 FROM tab1
----
-2093
-2210
2295

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL > - col0 + - + 62
----

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

skipif mysql # not compatible
query I rowsort label-1109
SELECT DISTINCT - CAST ( - - col2 AS INTEGER ) AS col1 FROM tab1
----
-59
-68
-96

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

skipif mysql # not compatible
query II rowsort label-1110
SELECT DISTINCT 68 AS col2, COUNT ( * ) AS col0 FROM tab1 AS cor0
----
68
3

query I rowsort
SELECT - ( + col0 ) * col0 + 84 AS col0 FROM tab2 AS cor0 WHERE NOT - col2 * - col0 IN ( - ( - col0 ) + - 6 / 90 )
----
-2032
-4012
-5541

query I rowsort
SELECT ALL + col1 / + 33 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + col0 - col1, col2 )
----

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1116
SELECT COUNT( * ) AS col2, 98 + - 42 + + 10 AS col0 FROM tab1
----
3
66

skipif mysql # not compatible
query II rowsort label-1116
SELECT COUNT ( * ) AS col2, 98 + - 42 + + 10 AS col0 FROM tab1
----
3
66

query II rowsort
SELECT + col2 * col1 * 27 * - 11 AS col1, + col0 FROM tab2
----
-1154142
75
-348381
46
-914760
64

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( col1 ) BETWEEN ( - col0 ) AND col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + - col0 * - + col2 + col1 + - col2 AS col2 FROM tab0 AS cor0
----
739
881
9505

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 * col2 > 65
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1121
SELECT - SUM( col1 ) * ( - MAX( DISTINCT col1 ) ) * + + MAX( DISTINCT + col1 ) + + 87 + - COUNT( * ) FROM tab0
----
675867

skipif mysql # not compatible
query I rowsort label-1121
SELECT - SUM ( col1 ) * ( - MAX ( DISTINCT col1 ) ) * + + MAX ( DISTINCT + col1 ) + + 87 + - COUNT ( * ) FROM tab0
----
675867

query I rowsort
SELECT - 10 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to f68f33032846e21ee6b2c668fc10355e

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1123
SELECT DISTINCT CAST( NULL AS SIGNED ) * 78 + - 1 AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1123
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 78 + - 1 AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
NULL

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1124
SELECT DISTINCT 36 * - COUNT ( * ) col0 FROM tab1
----
-108

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

query I rowsort
SELECT ALL + - 60 * - + col2 * - col0 FROM tab0 cor0
----
-42300
-52200
-576180

query I rowsort
SELECT ALL + col0 + + ( 9 ) AS col0 FROM tab2 AS cor0
----
55
73
84

onlyif mysql # aggregate syntax: 
query I rowsort label-1128
SELECT DISTINCT - + 64 * MAX( + col1 ) + - 83 FROM tab0 AS cor0
----
-5267

skipif mysql # not compatible
query I rowsort label-1128
SELECT DISTINCT - + 64 * MAX ( + col1 ) + - 83 FROM tab0 AS cor0
----
-5267

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1130
SELECT - + CAST( col1 AS SIGNED ), col0 AS col0 FROM tab1 AS cor0
----
-14
51
-47
91
-5
85

skipif mysql # not compatible
query II rowsort label-1130
SELECT - + CAST ( col1 AS INTEGER ), col0 AS col0 FROM tab1 AS cor0
----
-14
51
-47
91
-5
85

query I rowsort
SELECT - - 32 AS col2 FROM tab1 cor0
----
32
32
32

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

query I rowsort
SELECT ALL + + col2 * + 61 + - col2 + + + col2 AS col2 FROM tab0 cor0
----
2867
6039
610

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1135
SELECT ALL ( - + 71 ) + - - 38 - - - 47 + - 36 * 81 DIV - col1 AS col2 FROM tab0 AS cor0
----
-44
2836
58

skipif mysql # not compatible
query I rowsort label-1135
SELECT ALL ( - + 71 ) + - - 38 - - - 47 + - 36 * 81 / - col1 AS col2 FROM tab0 AS cor0
----
-44
2836
58

query I rowsort
SELECT + col0 - - 65 FROM tab1
----
116
150
156

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

skipif mysql # not compatible
query I rowsort label-1137
SELECT MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) - - - ( + COUNT ( * ) ) * + COUNT ( * ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT ALL - 55 * + + col1 FROM tab1
----
-2585
-275
-770

onlyif mysql # DIV for integer division: 
query I rowsort label-1139
SELECT 63 + + - col1 DIV 64 FROM tab1
----
63
63
63

skipif mysql # not compatible
query I rowsort label-1139
SELECT 63 + + - col1 / 64 FROM tab1
----
63
63
63

onlyif mysql # DIV for integer division: 
query I rowsort label-1140
SELECT ALL ( + 79 ) DIV + col2 col1 FROM tab2
----
1
1
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1140
SELECT ALL ( + 79 ) / + col2 col1 FROM tab2
----
1
1
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1141
SELECT DISTINCT + MAX( DISTINCT - col0 ) - + 20 FROM tab0
----
-35

skipif mysql # not compatible
query I rowsort label-1141
SELECT DISTINCT + MAX ( DISTINCT - col0 ) - + 20 FROM tab0
----
-35

query II rowsort
SELECT + 21 + - - 21 * - 27 AS col0, + col1 * + + 4 FROM tab2
----
-546
204
-546
268
-546
308

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT ( col0 ) - - col1, - col2 col1 FROM tab2
----
141
-40
142
-58
97
-23

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1145
SELECT ALL ( + SUM( DISTINCT + 91 ) ) FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-1145
SELECT ALL ( + SUM ( DISTINCT + 91 ) ) FROM tab1 AS cor0
----
91

query III rowsort
SELECT * FROM tab2 WHERE NOT 36 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1147
SELECT ALL - + ( - CAST( - 3 AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
-3
-3
-3

skipif mysql # not compatible
query I rowsort label-1147
SELECT ALL - + ( - CAST ( - 3 AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
-3
-3
-3

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

skipif mysql # not compatible
query I rowsort label-1148
SELECT ( + MIN ( + + 57 ) ) FROM tab2 AS cor0
----
57

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1150
SELECT + MIN( DISTINCT col0 ) AS col2, + COUNT( * ) FROM tab2 AS cor0
----
46
3

skipif mysql # not compatible
query II rowsort label-1150
SELECT + MIN ( DISTINCT col0 ) AS col2, + COUNT ( * ) FROM tab2 AS cor0
----
46
3

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1152
SELECT + - ( + + ( + MIN( - CAST( col2 AS SIGNED ) ) ) ) FROM tab1 AS cor0
----
96

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

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

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

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

query II rowsort
SELECT DISTINCT + col0, - 36 * - - col0 FROM tab1
----
51
-1836
85
-3060
91
-3276

onlyif mysql # DIV for integer division: 
query II rowsort label-1156
SELECT + col2 AS col2, col2 DIV + + col0 FROM tab0 AS cor0
----
10
0
47
3
99
1

skipif mysql # not compatible
query II rowsort label-1156
SELECT + col2 AS col2, col2 / + + col0 FROM tab0 AS cor0
----
10
0
47
3
99
1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL IN ( 24 - + 45, 67, + - 38 + + col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1158
SELECT ALL + COUNT( - + col1 ) FROM tab1 cor0 WHERE - CAST( NULL AS SIGNED ) NOT IN ( - 29 + - col1, col0, - - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-1158
SELECT ALL + COUNT ( - + col1 ) FROM tab1 cor0 WHERE - CAST ( NULL AS INTEGER ) NOT IN ( - 29 + - col1, col0, - - col0 )
----
0

query I rowsort
SELECT DISTINCT - col0 + + + 57 AS col0 FROM tab2 AS cor0
----
-18
-7
11

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1160
SELECT ALL + - CAST( col1 AS SIGNED ) + + 91 + - col0 + + 38 DIV - col0 - 70 * - + col2 AS col2 FROM tab0 AS cor0
----
3283
683
6923

skipif mysql # not compatible
query I rowsort label-1160
SELECT ALL + - CAST ( col1 AS INTEGER ) + + 91 + - col0 + + 38 / - col0 - 70 * - + col2 AS col2 FROM tab0 AS cor0
----
3283
683
6923

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + 23 + 22 col2 FROM tab2 WHERE NOT col2 IS NULL
----
-1151
-1519
-1749

onlyif mysql # DIV for integer division: 
query I rowsort label-1163
SELECT ALL - + col1 + col0 DIV - col1 FROM tab2 AS cor0
----
-51
-68
-77

skipif mysql # not compatible
query I rowsort label-1163
SELECT ALL - + col1 + col0 / - col1 FROM tab2 AS cor0
----
-51
-68
-77

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1166
SELECT DISTINCT + + 7 DIV - col1 + + col1 FROM tab1 AS cor0
----
14
4
47

skipif mysql # not compatible
query I rowsort label-1166
SELECT DISTINCT + + 7 / - col1 + + col1 FROM tab1 AS cor0
----
14
4
47

query I rowsort
SELECT ALL 66 - - 22 FROM tab2
----
88
88
88

onlyif mysql # aggregate syntax: 
query I rowsort label-1168
SELECT DISTINCT + - COUNT( * ) FROM tab2 WHERE NULL <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-1168
SELECT DISTINCT + - COUNT ( * ) FROM tab2 WHERE NULL <> NULL
----
0

query I rowsort
SELECT + col2 * + 96 FROM tab2
----
2208
3840
5568

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

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

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

query I rowsort
SELECT - - ( - col2 ) * + col0 + + - col1 * - col2 AS col0 FROM tab2 AS cor0
----
-464
115
520

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT 36 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 57 col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NOT NULL
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-1176
SELECT DISTINCT + 87 DIV - col2 FROM tab0 AS cor0
----
-1
-8
0

skipif mysql # not compatible
query I rowsort label-1176
SELECT DISTINCT + 87 / - col2 FROM tab0 AS cor0
----
-1
-8
0

query I rowsort
SELECT 28 * + ( + + 17 ) + - 3 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

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

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

query I rowsort
SELECT ALL + col1 + + - 10 AS col1 FROM tab1 AS cor0
----
-5
37
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 25, + col1 - col0 col2 FROM tab0 AS cor0
----
25
-66
25
-96
25
66

onlyif mysql # aggregate syntax: 
query I rowsort label-1182
SELECT COUNT( * ) * ( - 42 ) FROM tab1
----
-126

skipif mysql # not compatible
query I rowsort label-1182
SELECT COUNT ( * ) * ( - 42 ) FROM tab1
----
-126

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

skipif mysql # not compatible
query I rowsort label-1183
SELECT DISTINCT + COUNT ( * ) * - 51 FROM tab2
----
-153

onlyif mysql # DIV for integer division: 
query I rowsort label-1184
SELECT + 91 DIV + col2 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-1184
SELECT + 91 / + col2 FROM tab1
----
0
1
1

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

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

query I rowsort
SELECT DISTINCT - col0 + + 56 * + col2 AS col1 FROM tab1 AS cor0
----
3219
3717
5325

query I rowsort
SELECT + ( + col1 ) + + + col1 AS col2 FROM tab2 AS cor0
----
102
134
154

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1189
SELECT 12 + COUNT( * ) AS col0 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-1189
SELECT 12 + COUNT ( * ) AS col0 FROM tab0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-1190
SELECT + SUM( col0 ) + 33 AS col1 FROM tab2
----
218

skipif mysql # not compatible
query I rowsort label-1190
SELECT + SUM ( col0 ) + 33 AS col1 FROM tab2
----
218

query I rowsort
SELECT ALL - ( - col0 ) * - col0 * + 13 FROM tab1
----
-107653
-33813
-93925

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1192
SELECT MAX( DISTINCT + CAST( col1 AS SIGNED ) ) FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
47

skipif mysql # not compatible
query I rowsort label-1192
SELECT MAX ( DISTINCT + CAST ( col1 AS INTEGER ) ) FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
47

query I rowsort
SELECT DISTINCT + - col1 + + 99 AS col2 FROM tab1 AS cor0
----
52
85
94

onlyif mysql # aggregate syntax: 
query I rowsort label-1194
SELECT ALL + 84 + - COUNT( * ) + - + 9 * + - SUM( ALL 62 ) FROM tab1 AS cor0
----
1755

skipif mysql # not compatible
query I rowsort label-1194
SELECT ALL + 84 + - COUNT ( * ) + - + 9 * + - SUM ( ALL 62 ) FROM tab1 AS cor0
----
1755

query I rowsort
SELECT + + col0 - col1 + - ( - 11 ) AS col1 FROM tab0 AS cor0
----
-55
107
77

query I rowsort
SELECT 87 + col1 AS col2 FROM tab1 AS cor0 WHERE ( + col1 ) > ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1197
SELECT DISTINCT - ( CAST( col2 AS SIGNED ) ) + 54 AS col1 FROM tab2 AS cor0
----
-4
14
31

skipif mysql # not compatible
query I rowsort label-1197
SELECT DISTINCT - ( CAST ( col2 AS INTEGER ) ) + 54 AS col1 FROM tab2 AS cor0
----
-4
14
31

query I rowsort
SELECT DISTINCT - 3 - 56 AS col0 FROM tab0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-1199
SELECT DISTINCT + COUNT( * ) * - + 91 AS col1 FROM tab0
----
-273

skipif mysql # not compatible
query I rowsort label-1199
SELECT DISTINCT + COUNT ( * ) * - + 91 AS col1 FROM tab0
----
-273

query I rowsort
SELECT ALL ( + 1 ) FROM tab2
----
1
1
1

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN + 90 + - + 70 + ( + col1 ) * 7 * - col2 AND NULL
----

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

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

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

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

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

query I rowsort
SELECT + + 78 FROM tab1 AS cor0 WHERE NOT ( ( NOT 38 / - + col1 IS NOT NULL ) )
----
78
78
78

onlyif mysql # DIV for integer division: 
query I rowsort label-1207
SELECT ALL + ( + 4 ) DIV - + ( col2 ) FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1207
SELECT ALL + ( + 4 ) / - + ( col2 ) FROM tab1
----
0
0
0

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 73 col2 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 84ab9db5468b4a1781bd8d5c8e0e77fc

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

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

query I rowsort
SELECT ALL 99 + - 47 * + 71 FROM tab1 AS cor0
----
-3238
-3238
-3238

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 1 + col0 col2 FROM tab1
----
52
86
92

onlyif mysql # aggregate syntax: 
query I rowsort label-1213
SELECT DISTINCT 40 * + - MAX( DISTINCT + col2 ) col1 FROM tab0
----
-3960

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1213
SELECT DISTINCT 40 * + - MAX ( DISTINCT + col2 ) col1 FROM tab0
----
-3960

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

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

query I rowsort
SELECT DISTINCT + col2 * + col0 FROM tab0 WHERE NOT ( NOT - col1 IS NOT NULL )
----
705
870
9603

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

query II rowsort
SELECT ALL + - 63 * + col2 AS col0, col0 + + 53 FROM tab1 WHERE NOT - 49 + + + col2 > NULL
----

query I rowsort
SELECT + col0 * - + col1 + - col2 + - + col2 FROM tab2
----
-2392
-5008
-5141

onlyif mysql # aggregate syntax: 
query I rowsort label-1219
SELECT DISTINCT 6 + - + COUNT( * ) + - 2 col2 FROM tab0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1219
SELECT DISTINCT 6 + - + COUNT ( * ) + - 2 col2 FROM tab0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 61, 73 - col1 col2 FROM tab2 AS cor0
----
61
-4
61
22
61
6

query II rowsort
SELECT - col0 AS col2, + col1 * 17 AS col2 FROM tab2 AS cor0
----
-46
867
-64
1309
-75
1139

onlyif mysql # aggregate syntax: 
query I rowsort label-1222
SELECT ALL + + MAX( DISTINCT col0 ) + + 65 - - 98 AS col2 FROM tab0 AS cor0
----
260

skipif mysql # not compatible
query I rowsort label-1222
SELECT ALL + + MAX ( DISTINCT col0 ) + + 65 - - 98 AS col2 FROM tab0 AS cor0
----
260

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( + col2 + + 84, col2 )
----

query I rowsort
SELECT - + col0 + - col1 + - col1 FROM tab0 AS cor0
----
-129
-177
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1225
SELECT + 80 DIV - SUM( ALL + col0 ) AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1225
SELECT + 80 / - SUM ( ALL + col0 ) AS col0 FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1226
SELECT * FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) + + 14 - - col1 > - - ( - col2 ) * col2 / - col2 * + col0
----

skipif mysql # not compatible
query III rowsort label-1226
SELECT * FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) + + 14 - - col1 > - - ( - col2 ) * col2 / - col2 * + col0
----

query I rowsort
SELECT DISTINCT 18 * + 32 FROM tab0 AS cor0 WHERE + col0 - - 37 + 42 IS NOT NULL
----
576

onlyif mysql # aggregate syntax: 
query II rowsort label-1228
SELECT COUNT( * ) col2, + 57 - + 76 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
3
-19

skipif mysql # not compatible
query II rowsort label-1228
SELECT COUNT ( * ) col2, + 57 - + 76 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
3
-19

query I rowsort
SELECT ( + - ( - - 17 ) ) * + 64 FROM tab2
----
-1088
-1088
-1088

query I rowsort
SELECT 99 * - 74 AS col0 FROM tab1
----
-7326
-7326
-7326

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1233
SELECT ALL + COUNT( * ) + - 59 * - 40 * - 67 FROM tab2 AS cor0
----
-158117

skipif mysql # not compatible
query I rowsort label-1233
SELECT ALL + COUNT ( * ) + - 59 * - 40 * - 67 FROM tab2 AS cor0
----
-158117

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

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

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

query I rowsort
SELECT + 1 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1238
SELECT DISTINCT + CAST( 35 AS SIGNED ) + - col1 FROM tab2
----
-16
-32
-42

skipif mysql # not compatible
query I rowsort label-1238
SELECT DISTINCT + CAST ( 35 AS INTEGER ) + - col1 FROM tab2
----
-16
-32
-42

query I rowsort
SELECT - ( ( + + 61 ) ) * col1 FROM tab0
----
-1281
-4941
-61

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

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

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

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 97 <> ( - 16 * - 18 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1247
SELECT + col0 / - col1 col0 FROM tab0 AS cor0
----
-4
-97
0

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

query I rowsort
SELECT ALL 5 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 6035628694bdea36f584f3649088551d

query I rowsort
SELECT + 59 FROM tab2 WHERE NOT - col1 >= - - col0
----
59
59
59

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

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

query I rowsort
SELECT - + col0 FROM tab2 WHERE NOT - 76 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1253
SELECT + - 88 * + COUNT( * ) FROM tab2 cor0 WHERE NOT NULL >= ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-1253
SELECT + - 88 * + COUNT ( * ) FROM tab2 cor0 WHERE NOT NULL >= ( NULL )
----
0

query II rowsort
SELECT DISTINCT - 4 AS col1, 4 FROM tab2 AS cor0 WHERE + col0 / + - col0 IS NOT NULL
----
-4
4

onlyif mysql # DIV for integer division: 
query I rowsort label-1255
SELECT - ( 9 ) DIV col1 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1255
SELECT - ( 9 ) / col1 FROM tab1 AS cor0
----
-1
0
0

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

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab1 WHERE NOT NULL > 63
----

query I rowsort
SELECT ALL - - 69 + - - col1 AS col0 FROM tab0 AS cor0
----
150
70
90

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1261
SELECT + ( + col2 ) + + + col2 + - - col1 * + 40 AS col2, - ( CAST( col0 AS SIGNED ) ), - + CAST( - col0 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
9 values hashing to c03e6344091de533d45298455510f395

skipif mysql # not compatible
query III rowsort label-1261
SELECT + ( + col2 ) + + + col2 + - - col1 * + 40 AS col2, - ( CAST ( col0 AS INTEGER ) ), - + CAST ( - col0 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
9 values hashing to c03e6344091de533d45298455510f395

onlyif mysql # aggregate syntax: 
query I rowsort label-1262
SELECT + COUNT( * ) + + + 64 * 81 * MAX( DISTINCT + 66 ) FROM tab2 AS cor0
----
342147

skipif mysql # not compatible
query I rowsort label-1262
SELECT + COUNT ( * ) + + + 64 * 81 * MAX ( DISTINCT + 66 ) FROM tab2 AS cor0
----
342147

query I rowsort
SELECT - - 32 * - 92 * col1 AS col0 FROM tab1 AS cor0 WHERE - col2 IS NULL
----

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

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

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

query I rowsort
SELECT col2 + + 78 + ( + col0 ) * + 10 * ( + col0 ) AS col2 FROM tab2 AS cor0
----
21261
41078
56386

query I rowsort
SELECT - col0 + - col2 AS col0 FROM tab2 cor0 WHERE + 18 IS NOT NULL
----
-104
-133
-69

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( 64, + col1, - - 81 * - + col0 + 72, + col0 * - 1 )
----

query I rowsort
SELECT DISTINCT - - 44 + - - col0 * - + ( col1 ) AS col2 FROM tab0 AS cor0
----
-1171
-1783
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-1270
SELECT ALL 59 DIV + col2 + - - 4 FROM tab0
----
4
5
9

skipif mysql # not compatible
query I rowsort label-1270
SELECT ALL 59 / + col2 + - - 4 FROM tab0
----
4
5
9

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

skipif mysql # not compatible
query II rowsort label-1271
SELECT 72, COUNT ( * ) AS col1 FROM tab0
----
72
3

query I rowsort
SELECT + 52 FROM tab1 WHERE - col1 + - col1 * - 5 <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col0 * - 3 BETWEEN NULL AND + + 12
----

query I rowsort
SELECT DISTINCT col0 * - col1 * - + col0 AS col2 FROM tab2 AS cor0
----
107916
315392
376875

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1278
SELECT DISTINCT col0 DIV 90 AS col2 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-1278
SELECT DISTINCT col0 / 90 AS col2 FROM tab0
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1279
SELECT COUNT( * ) FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE NULL IS NULL
----
9

skipif mysql # not compatible
query I rowsort label-1279
SELECT COUNT ( * ) FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE NULL IS NULL
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1280
SELECT ALL COUNT( - 86 ) AS col2 FROM tab0 AS cor0 WHERE - 15 + + col0 <> + + col1
----
3

skipif mysql # not compatible
query I rowsort label-1280
SELECT ALL COUNT ( - 86 ) AS col2 FROM tab0 AS cor0 WHERE - 15 + + col0 <> + + col1
----
3

query I rowsort
SELECT 17 * + - 13 FROM tab2 AS cor0 WHERE NOT ( col2 ) IS NULL
----
-221
-221
-221

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 79 IS NOT NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1285
SELECT ALL - COUNT( * ) * + 82 AS col2 FROM tab2
----
-246

skipif mysql # not compatible
query I rowsort label-1285
SELECT ALL - COUNT ( * ) * + 82 AS col2 FROM tab2
----
-246

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

query I rowsort
SELECT DISTINCT - 26 AS col2 FROM tab2 WHERE - col2 + + ( - col2 ) IS NULL
----

query I rowsort
SELECT ALL + + 81 AS col2 FROM tab0 AS cor0
----
81
81
81

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

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

query I rowsort
SELECT ALL + col1 * col1 + - - 5 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
446
6
6566

query I rowsort
SELECT ALL - - col2 + - 66 AS col1 FROM tab0 AS cor0
----
-19
-56
33

onlyif mysql # DIV for integer division: 
query I rowsort label-1292
SELECT DISTINCT + col2 + - col0 DIV + col0 FROM tab2 AS cor0
----
22
39
57

skipif mysql # not compatible
query I rowsort label-1292
SELECT DISTINCT + col2 + - col0 / + col0 FROM tab2 AS cor0
----
22
39
57

query I rowsort
SELECT ALL - ( + 78 ) FROM tab1 cor0
----
-78
-78
-78

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

query I rowsort
SELECT DISTINCT 71 + col0 AS col2 FROM tab2 AS cor0
----
117
135
146

query I rowsort
SELECT col2 FROM tab0 cor0 WHERE NOT 84 / 39 IS NULL
----
10
47
99

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 49 + ( - col0 ) / 46 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1299
SELECT ALL + col0 * + 1 + CAST( NULL AS SIGNED ) + col0 + 12 / - col0 + + col2 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1299
SELECT ALL + col0 * + 1 + CAST ( NULL AS INTEGER ) + col0 + 12 / - col0 + + col2 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1300
SELECT ALL COUNT( * ) + - 47 + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-41

skipif mysql # not compatible
query I rowsort label-1300
SELECT ALL COUNT ( * ) + - 47 + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1301
SELECT - - MIN( CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1301
SELECT - - MIN ( CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT + col0 + + 3 * + - col1 FROM tab1
----
-50
70
9

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

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

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

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

query I rowsort
SELECT - 83 FROM tab2 WHERE ( NOT - 18 + 69 = - col1 )
----
-83
-83
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-1306
SELECT ALL - MAX( - col2 ) AS col2 FROM tab2 cor0
----
23

skipif mysql # not compatible
query I rowsort label-1306
SELECT ALL - MAX ( - col2 ) AS col2 FROM tab2 cor0
----
23

query I rowsort
SELECT ALL - + 20 + col0 FROM tab0 cor0
----
-5
67
77

query I rowsort
SELECT + - col2 * + col1 FROM tab2 cor0
----
-1173
-3080
-3886

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1309
SELECT MAX( - CAST( - col2 AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-1309
SELECT MAX ( - CAST ( - col2 AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
58

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1313
SELECT DISTINCT CAST( 84 AS SIGNED ) FROM tab0 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-1313
SELECT DISTINCT CAST ( 84 AS INTEGER ) FROM tab0 AS cor0
----
84

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1315
SELECT ALL - - 14 AS col1, - 68 / + - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
14
NULL
14
NULL
14
NULL

skipif mysql # not compatible
query II rowsort label-1315
SELECT ALL - - 14 AS col1, - 68 / + - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
14
NULL
14
NULL
14
NULL

query I rowsort
SELECT - - ( 69 ) * 65 AS col2 FROM tab2 AS cor0
----
4485
4485
4485

query I rowsort
SELECT DISTINCT - - col0 * - - col0 + + col0 AS col0 FROM tab0 AS cor0
----
240
7656
9506

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

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

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

query I rowsort
SELECT - col2 * - 0 * col1 + + 10 FROM tab0
----
10
10
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1321
SELECT ALL + ( 71 ) DIV - + SUM( 44 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1321
SELECT ALL + ( 71 ) / - + SUM ( 44 ) FROM tab1
----
0

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

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 > col2 + - 65
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1325
SELECT DISTINCT - col0 + col2 + - col0 DIV + 82 FROM tab2 AS cor0
----
-17
-23
-24

skipif mysql # not compatible
query I rowsort label-1325
SELECT DISTINCT - col0 + col2 + - col0 / + 82 FROM tab2 AS cor0
----
-17
-23
-24

query I rowsort
SELECT DISTINCT + col1 + + col0 * col2 FROM tab2 AS cor0
----
1109
2637
4417

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1327
SELECT 54 + + col2 - - CAST( NULL AS SIGNED ) DIV + 0, + col1 * - col2 * - col2 DIV col2 + ( + col0 ) col1 FROM tab1
----
NULL
1395
NULL
3287
NULL
380

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1327
SELECT 54 + + col2 - - CAST ( NULL AS INTEGER ) / + 0, + col1 * - col2 * - col2 / col2 + ( + col0 ) col1 FROM tab1
----
NULL
1395
NULL
3287
NULL
380

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

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

query I rowsort
SELECT ALL + 16 + + - col0 AS col0 FROM tab2 AS cor0
----
-30
-48
-59

query I rowsort
SELECT - 5 + col2 FROM tab0 AS cor0
----
42
5
94

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

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

query I rowsort
SELECT col2 * - - 26 + - col0 AS col1 FROM tab1 AS cor0
----
1449
1677
2445

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1333
SELECT DISTINCT + 52 / - AVG ( DISTINCT + ( - 92 ) ) + + + CAST( NULL AS SIGNED ) col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1333
SELECT DISTINCT + 52 / - AVG ( DISTINCT + ( - 92 ) ) + + + CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0
----
NULL

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

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

query I rowsort
SELECT ALL + col0 - - - col0 AS col1 FROM tab0 AS cor0 WHERE 26 / + + col1 * + col1 * + - col2 IS NULL
----

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

skipif mysql # not compatible
query I rowsort label-1336
SELECT ALL - ( - 90 ) - COUNT ( * ) / - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1338
SELECT ALL SUM( - col1 ) - + + COUNT( * ) DIV - 41 FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-1338
SELECT ALL SUM ( - col1 ) - + + COUNT ( * ) / - 41 FROM tab0
----
-103

onlyif mysql # DIV for integer division: 
query I rowsort label-1339
SELECT + col0 - - 54 DIV col1 FROM tab2
----
47
64
75

skipif mysql # not compatible
query I rowsort label-1339
SELECT + col0 - - 54 / col1 FROM tab2
----
47
64
75

query I rowsort
SELECT + + col0 * col0 - - + 91 AS col1 FROM tab1 AS cor0
----
2692
7316
8372

onlyif mysql # aggregate syntax: 
query I rowsort label-1341
SELECT MAX( 3 ) * 58 AS col1 FROM tab0 AS cor0
----
174

skipif mysql # not compatible
query I rowsort label-1341
SELECT MAX ( 3 ) * 58 AS col1 FROM tab0 AS cor0
----
174

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

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

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

query I rowsort
SELECT ALL + - 95 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1c7934db0632c123332c43f17b661d6c

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1346
SELECT * FROM tab2 AS cor0 WHERE NOT - CAST( 23 AS SIGNED ) > - 40 + + 26 / - - col1
----

skipif mysql # not compatible
query III rowsort label-1346
SELECT * FROM tab2 AS cor0 WHERE NOT - CAST ( 23 AS INTEGER ) > - 40 + + 26 / - - col1
----

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

query I rowsort
SELECT + 53 FROM tab0 cor0 WHERE NOT ( NULL ) NOT IN ( - + col0 + + - col1, col0 * col0 )
----

query II rowsort
SELECT - col2 AS col1, + 10 + - + 3 + - - col1 AS col0 FROM tab2
----
-23
58
-40
84
-58
74

query I rowsort
SELECT - col0 * - 75 AS col2 FROM tab0
----
1125
6525
7275

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1351
SELECT + 45 DIV - SUM( - col0 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-1351
SELECT + 45 / - SUM ( - col0 ) FROM tab0
----
0

query II rowsort
SELECT + ( - + col2 ) AS col0, - 69 AS col1 FROM tab1
----
-59
-69
-68
-69
-96
-69

query I rowsort
SELECT ALL - 40 * + col1 AS col2 FROM tab1 AS cor0
----
-1880
-200
-560

query I rowsort
SELECT ALL - + ( col0 ) + + + col2 AS col1 FROM tab2 AS cor0 WHERE NOT + 64 * + - 12 IS NOT NULL
----

query I rowsort
SELECT ALL + + 75 * - - 9 / + col0 * + + ( + col1 ) + - - 75 AS col0 FROM tab0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - ( - col0 ) + - 0 col2 FROM tab1 AS cor0
----
-51
-85
-91

query I rowsort
SELECT DISTINCT + 10 + - - col0 FROM tab0 AS cor0 WHERE NOT NULL > NULL
----

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

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

query I rowsort
SELECT + 88 - - - col1 FROM tab2 AS cor0
----
11
21
37

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

query I rowsort
SELECT 24 * col1 - + col2 FROM tab1
----
1060
240
61

query II rowsort
SELECT ( 86 ) + - col2, - 45 AS col1 FROM tab2
----
28
-45
46
-45
63
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1363
SELECT + CAST( - - AVG ( - col2 ) AS SIGNED ) + + 77 - 84 FROM tab0
----
-59

skipif mysql # not compatible
query I rowsort label-1363
SELECT + CAST ( - - AVG ( - col2 ) AS INTEGER ) + + 77 - 84 FROM tab0
----
-59

query I rowsort
SELECT - 77 * + - col1 + - - col0 + + 71 FROM tab0
----
1775
245
6323

query I rowsort
SELECT ALL col1 - - + col1 AS col2 FROM tab1
----
10
28
94

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 19 <> NULL
----

query I rowsort
SELECT DISTINCT + col2 * - - 4 FROM tab2 AS cor0
----
160
232
92

query I rowsort
SELECT DISTINCT - + col1 * + 87 AS col0 FROM tab1 AS cor0
----
-1218
-4089
-435

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1370
SELECT DISTINCT + AVG ( DISTINCT CAST( NULL AS SIGNED ) ) + - + 91 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1370
SELECT DISTINCT + AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) + - + 91 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL - col2 AS col0 FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN ( - ( col1 ) ) AND - col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 93 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col1 * - + 2 FROM tab2
----
102
134
154

query I rowsort
SELECT col2 * col2 * + 2 FROM tab2
----
1058
3200
6728

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT IN ( col0, col2 + - 11 * ( - col2 ) * col1 + col1 + 17, - - col1, + col2, - + col0, 41 )
----

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

query I rowsort
SELECT DISTINCT - col0 + + + col1 AS col2 FROM tab0 AS cor0
----
-66
-96
66

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

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

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

query II rowsort
SELECT DISTINCT - col1 * + - 55, col2 FROM tab0
----
1155
10
4455
47
55
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1381
SELECT MIN( col2 ) + + ( + 44 ) AS col0 FROM tab0
----
54

skipif mysql # not compatible
query I rowsort label-1381
SELECT MIN ( col2 ) + + ( + 44 ) AS col0 FROM tab0
----
54

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1383
SELECT - COUNT( * ) + 48 FROM tab1 cor0
----
45

skipif mysql # not compatible
query I rowsort label-1383
SELECT - COUNT ( * ) + 48 FROM tab1 cor0
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1384
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + 73 * col0 + col1 + col2 + 95 * + 78 AS col0, col2 col1 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1384
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + 73 * col0 + col1 + col2 + 95 * + 78 AS col0, col2 col1 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

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

query I rowsort
SELECT DISTINCT - + 90 - - col1 FROM tab1 AS cor0
----
-43
-76
-85

query I rowsort
SELECT DISTINCT - 37 FROM tab0, tab0 AS cor0
----
-37

onlyif mysql # aggregate syntax: 
query II rowsort label-1388
SELECT DISTINCT + COUNT( * ) * MAX( DISTINCT + col0 ) + 81 + - 83 AS col1, ( COUNT( * ) ) AS col0 FROM tab1
----
271
3

skipif mysql # not compatible
query II rowsort label-1388
SELECT DISTINCT + COUNT ( * ) * MAX ( DISTINCT + col0 ) + 81 + - 83 AS col1, ( COUNT ( * ) ) AS col0 FROM tab1
----
271
3

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 92 col1 FROM tab0
----
-92
-92
-92

query I rowsort
SELECT DISTINCT - col0 FROM tab2 WHERE - col0 < + 64 * - - col2
----
-46
-64
-75

query I rowsort
SELECT ALL 13 * - - 77 FROM tab1
----
1001
1001
1001

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

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

query I rowsort
SELECT - + 84 * + col2 + col1 AS col1 FROM tab0 AS cor0
----
-3867
-819
-8315

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1395
SELECT SUM( DISTINCT - + col2 ) AS col1, - 47 + + MIN( - 31 ) + + CAST( NULL AS SIGNED ) / - MAX( 5 ) AS col2 FROM tab2 AS cor0
----
-121
NULL

skipif mysql # not compatible
query II rowsort label-1395
SELECT SUM ( DISTINCT - + col2 ) AS col1, - 47 + + MIN ( - 31 ) + + CAST ( NULL AS INTEGER ) / - MAX ( 5 ) AS col2 FROM tab2 AS cor0
----
-121
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1396
SELECT DISTINCT - + col2 * 40 DIV 63 + + 55 AS col1 FROM tab1 AS cor0
----
-5
12
18

skipif mysql # not compatible
query I rowsort label-1396
SELECT DISTINCT - + col2 * 40 / 63 + + 55 AS col1 FROM tab1 AS cor0
----
-5
12
18

query I rowsort
SELECT ALL 84 AS col1 FROM tab0 cor0
----
84
84
84

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

query I rowsort
SELECT DISTINCT + - col1 AS col2 FROM tab1 WHERE NOT + 80 * - - col2 IS NOT NULL
----

query II rowsort
SELECT + col1 AS col1, - 19 * + + 3 AS col1 FROM tab0 WHERE NOT ( col1 ) > + col0
----
1
-57
21
-57

query I rowsort
SELECT 4 * - - ( col1 ) AS col0 FROM tab2
----
204
268
308

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2, - col0 col2 FROM tab1
----
59
-85
68
-91
96
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 60 AS col1, 52 + 26 + - - col2 * 60 col2 FROM tab2 AS cor0
----
60
1458
60
2478
60
3558

query I rowsort
SELECT ALL + 69 + - col2 AS col2 FROM tab1 AS cor0
----
-27
1
10

query I rowsort
SELECT ALL col2 + + col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
198
20
94

onlyif mysql # DIV for integer division: 
query II rowsort label-1406
SELECT col0 AS col2, col2 DIV 61 FROM tab1 AS cor0
----
51
1
85
0
91
1

skipif mysql # not compatible
query II rowsort label-1406
SELECT col0 AS col2, col2 / 61 FROM tab1 AS cor0
----
51
1
85
0
91
1

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1409
SELECT ALL - 76 + - col0 + + + CAST ( NULL AS INTEGER ) / col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1410
SELECT COUNT( * ) * - 76 * 37 FROM tab0
----
-8436

skipif mysql # not compatible
query I rowsort label-1410
SELECT COUNT ( * ) * - 76 * 37 FROM tab0
----
-8436

query II rowsort
SELECT DISTINCT ( - col2 ), col0 AS col2 FROM tab2
----
-23
46
-40
64
-58
75

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1413
SELECT MIN( 90 ) FROM tab2
----
90

skipif mysql # not compatible
query I rowsort label-1413
SELECT MIN ( 90 ) FROM tab2
----
90

onlyif mysql # DIV for integer division: 
query II rowsort label-1414
SELECT - col0 DIV + - 43 AS col2, ( col2 ) FROM tab2
----
1
23
1
40
1
58

skipif mysql # not compatible
query II rowsort label-1414
SELECT - col0 / + - 43 AS col2, ( col2 ) FROM tab2
----
1
23
1
40
1
58

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

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

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

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

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

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

query I rowsort
SELECT - 59 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-59
-59
-59

query I rowsort
SELECT ALL + col0 + col0 * col2 AS col2 FROM tab1
----
4947
5100
6279

onlyif mysql # DIV for integer division: 
query I rowsort label-1421
SELECT ALL - ( - col0 ) * + col2 - - col2 + + col0 DIV + 52 - 81 * + - col2 + + col0 AS col2 FROM tab2
----
2990
5905
9182

skipif mysql # not compatible
query I rowsort label-1421
SELECT ALL - ( - col0 ) * + col2 - - col2 + + col0 / + 52 - 81 * + - col2 + + col0 AS col2 FROM tab2
----
2990
5905
9182

query I rowsort
SELECT ALL 25 + + col2 AS col2 FROM tab0
----
124
35
72

query I rowsort
SELECT DISTINCT + ( 43 ) * col0 * + + col1 FROM tab0 AS cor0
----
4171
52245
78561

query I rowsort
SELECT DISTINCT col1 + + 6 AS col0 FROM tab1 AS cor0
----
11
20
53

query I rowsort
SELECT + 53 * - 43 AS col1 FROM tab0 AS cor0
----
-2279
-2279
-2279

onlyif mysql # aggregate syntax: 
query I rowsort label-1426
SELECT + MAX( - + 31 ) FROM tab1 AS cor0
----
-31

skipif mysql # not compatible
query I rowsort label-1426
SELECT + MAX ( - + 31 ) FROM tab1 AS cor0
----
-31

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

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

query I rowsort
SELECT DISTINCT 52 * + ( + col1 ) FROM tab2
----
2652
3484
4004

query II rowsort
SELECT ALL col0 AS col0, 25 * + 53 AS col2 FROM tab1
----
51
1325
85
1325
91
1325

onlyif mysql # aggregate syntax: 
query I rowsort label-1430
SELECT DISTINCT COUNT( * ) * + 14 * - + 81 AS col2 FROM tab1
----
-3402

skipif mysql # not compatible
query I rowsort label-1430
SELECT DISTINCT COUNT ( * ) * + 14 * - + 81 AS col2 FROM tab1
----
-3402

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1431
SELECT * FROM tab2 WHERE NOT col0 * - col0 * + col2 IN ( + col2 * - CAST( NULL AS SIGNED ), col2, - 61 )
----

skipif mysql # not compatible
query III rowsort label-1431
SELECT * FROM tab2 WHERE NOT col0 * - col0 * + col2 IN ( + col2 * - CAST ( NULL AS INTEGER ), col2, - 61 )
----

query I rowsort
SELECT ALL - 83 * col0 * - 64 FROM tab0
----
462144
515264
79680

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL >= + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1434
SELECT DISTINCT COUNT( * ) * + + 74 FROM tab1
----
222

skipif mysql # not compatible
query I rowsort label-1434
SELECT DISTINCT COUNT ( * ) * + + 74 FROM tab1
----
222

query II rowsort
SELECT DISTINCT col0, ( + col1 ) FROM tab1 cor0
----
51
14
85
5
91
47

query I rowsort
SELECT DISTINCT + 11 * - 98 FROM tab1
----
-1078

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1439
SELECT DISTINCT - - 53 DIV - COUNT( * ) FROM tab0 AS cor0
----
-17

skipif mysql # not compatible
query I rowsort label-1439
SELECT DISTINCT - - 53 / - COUNT ( * ) FROM tab0 AS cor0
----
-17

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

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

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

query I rowsort
SELECT + 24 + + + ( + 53 ) - col1 FROM tab0 AS cor0
----
-4
56
76

onlyif mysql # aggregate syntax: 
query I rowsort label-1444
SELECT ALL - MIN( ALL + 58 ) AS col2 FROM tab0 AS cor0 WHERE - 70 IS NOT NULL
----
-58

skipif mysql # not compatible
query I rowsort label-1444
SELECT ALL - MIN ( ALL + 58 ) AS col2 FROM tab0 AS cor0 WHERE - 70 IS NOT NULL
----
-58

query I rowsort
SELECT - 75 * - 69 + - + col2 FROM tab2 AS cor0
----
5117
5135
5152

query I rowsort
SELECT col0 + - - 16 AS col2 FROM tab1
----
101
107
67

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

query I rowsort
SELECT col1 + ( + col1 ) + - + col0 + - - col2 * - 40 AS col2 FROM tab2
----
-1510
-2261
-864

query I rowsort
SELECT 46 * - 82 + + 19 AS col1 FROM tab2
----
-3753
-3753
-3753

query I rowsort
SELECT ALL + col1 * col1 + - + 23 AS col2 FROM tab0
----
-22
418
6538

query I rowsort
SELECT DISTINCT + col0 + - col0 * - 96 AS col2 FROM tab2 AS cor0
----
4462
6208
7275

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1453
SELECT + 80 AS col0, CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
80
NULL
80
NULL
80
NULL

skipif mysql # not compatible
query II rowsort label-1453
SELECT + 80 AS col0, CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
80
NULL
80
NULL
80
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1455
SELECT ALL + COUNT( * ) FROM tab0 AS cor0 WHERE - col1 - + CAST( NULL AS SIGNED ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-1455
SELECT ALL + COUNT ( * ) FROM tab0 AS cor0 WHERE - col1 - + CAST ( NULL AS INTEGER ) IS NULL
----
3

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1457
SELECT 77 DIV col0 AS col0 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1457
SELECT 77 / col0 AS col0 FROM tab2
----
1
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1458
SELECT col2 DIV - 80 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1458
SELECT col2 / - 80 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1459
SELECT 83 DIV + col2 AS col0 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-1459
SELECT 83 / + col2 AS col0 FROM tab1
----
0
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1460
SELECT col2 * CAST( 14 * + 81 AS SIGNED ) AS col1 FROM tab1
----
108864
66906
77112

skipif mysql # not compatible
query I rowsort label-1460
SELECT col2 * CAST ( 14 * + 81 AS INTEGER ) AS col1 FROM tab1
----
108864
66906
77112

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + 43 ) IS NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1463
SELECT DISTINCT COUNT( * ) FROM tab1 WHERE ( 71 ) >= col1
----
3

skipif mysql # not compatible
query I rowsort label-1463
SELECT DISTINCT COUNT ( * ) FROM tab1 WHERE ( 71 ) >= col1
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-1464
SELECT DISTINCT + 62 DIV + ( + col1 ) col2 FROM tab1
----
1
12
4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1464
SELECT DISTINCT + 62 / + ( + col1 ) col2 FROM tab1
----
1
12
4

query I rowsort
SELECT col2 - - col2 * 60 FROM tab1
----
3599
4148
5856

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col1 FROM tab2 WHERE NOT ( + col0 ) IS NULL
----
51
67
77

query III rowsort
SELECT * FROM tab1 WHERE NULL IN ( + col2 - - col1 / + col0 )
----

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

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

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

skipif mysql # not compatible
query I rowsort label-1469
SELECT ALL + COUNT ( * ) / - COUNT ( * ) AS col0 FROM tab0
----
-1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1471
SELECT - ( COUNT( * ) ) col2 FROM tab1
----
-3

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1473
SELECT - MIN( ALL + 94 ) - - COUNT( * ) AS col0 FROM tab1 WHERE NOT NULL < col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1473
SELECT - MIN ( ALL + 94 ) - - COUNT ( * ) AS col0 FROM tab1 WHERE NOT NULL < col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1474
SELECT DISTINCT COUNT( * ) * - MAX( DISTINCT - 19 ) - ( COUNT( * ) ) AS col0 FROM tab0
----
54

skipif mysql # not compatible
query I rowsort label-1474
SELECT DISTINCT COUNT ( * ) * - MAX ( DISTINCT - 19 ) - ( COUNT ( * ) ) AS col0 FROM tab0
----
54

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1475
SELECT + col0 + - col0 AS col0 FROM tab2 WHERE NULL = + col1 + - CAST( NULL AS DECIMAL ) * - 54
----

skipif mysql # not compatible
query I rowsort label-1475
SELECT + col0 + - col0 AS col0 FROM tab2 WHERE NULL = + col1 + - CAST ( NULL AS REAL ) * - 54
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1476
SELECT + 24 * + MAX( ALL - col0 ) + COUNT( * ) FROM tab0 WHERE NOT NULL <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1476
SELECT + 24 * + MAX ( ALL - col0 ) + COUNT ( * ) FROM tab0 WHERE NOT NULL <= NULL
----
NULL

query I rowsort
SELECT 85 + - 44 AS col0 FROM tab1
----
41
41
41

query I rowsort
SELECT ALL + col1 + ( 18 ) FROM tab1
----
23
32
65

query I rowsort
SELECT col1 FROM tab0 WHERE ( NULL ) BETWEEN 66 AND ( 61 )
----

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

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

query I rowsort
SELECT + 8 FROM tab2 AS cor0 WHERE NOT ( 52 + - ( - 17 ) ) IS NULL
----
8
8
8

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

skipif mysql # not compatible
query I rowsort label-1483
SELECT ALL + ( AVG ( + ( + col2 ) ) ) + + ( + COUNT ( + 83 ) ) * + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT + col1 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1484
SELECT DISTINCT + 39 * - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-117

skipif mysql # not compatible
query I rowsort label-1484
SELECT DISTINCT + 39 * - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-117

query I rowsort
SELECT DISTINCT col1 * + 42 AS col0 FROM tab2 AS cor0
----
2142
2814
3234

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1486
SELECT DISTINCT - 12 DIV + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-1486
SELECT DISTINCT - 12 / + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-1487
SELECT + COUNT( ALL col1 ) + - 45 AS col1 FROM tab0
----
-42

skipif mysql # not compatible
query I rowsort label-1487
SELECT + COUNT ( ALL col1 ) + - 45 AS col1 FROM tab0
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1488
SELECT col1 * col2 FROM tab2 WHERE CAST( NULL AS SIGNED ) IS NULL
----
1173
3080
3886

skipif mysql # not compatible
query I rowsort label-1488
SELECT col1 * col2 FROM tab2 WHERE CAST ( NULL AS INTEGER ) IS NULL
----
1173
3080
3886

query I rowsort
SELECT DISTINCT + ( col1 ) + - col2 AS col2 FROM tab1 WHERE col2 + col1 IS NOT NULL
----
-21
-54
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-1490
SELECT + col0 DIV + ( - ( 17 ) ) FROM tab0 cor0
----
-5
-5
0

skipif mysql # not compatible
query I rowsort label-1490
SELECT + col0 / + ( - ( 17 ) ) FROM tab0 cor0
----
-5
-5
0

query I rowsort
SELECT ALL + - col2 + 86 FROM tab2 AS cor0
----
28
46
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1492
SELECT - CAST( - 90 AS SIGNED ) FROM tab2 AS cor0 WHERE NULL = NULL
----

skipif mysql # not compatible
query I rowsort label-1492
SELECT - CAST ( - 90 AS INTEGER ) FROM tab2 AS cor0 WHERE NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1493
SELECT DISTINCT - + 22 * - COUNT( * ) + - 22 col0 FROM tab1 AS cor0
----
44

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1493
SELECT DISTINCT - + 22 * - COUNT ( * ) + - 22 col0 FROM tab1 AS cor0
----
44

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

query I rowsort
SELECT + col2 * + 89 FROM tab2
----
2047
3560
5162

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1497
SELECT + 95 * COUNT( * ) + + COUNT( ALL + col1 ) FROM tab0 WHERE + col1 * 17 NOT IN ( 33 * col1 )
----
288

skipif mysql # not compatible
query I rowsort label-1497
SELECT + 95 * COUNT ( * ) + + COUNT ( ALL + col1 ) FROM tab0 WHERE + col1 * 17 NOT IN ( 33 * col1 )
----
288

query I rowsort
SELECT col0 - - + col0 + + 41 FROM tab2
----
133
169
191

query I rowsort
SELECT + 7 - + + col1 FROM tab0
----
-14
-74
6

query I rowsort
SELECT 62 - + col2 AS col2 FROM tab1
----
-34
-6
3

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

query I rowsort
SELECT 40 * col1 FROM tab0 WHERE NULL NOT IN ( - 58 * col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1503
SELECT - ( - MIN( + col1 ) ) - + 63 AS col1 FROM tab1
----
-58

skipif mysql # not compatible
query I rowsort label-1503
SELECT - ( - MIN ( + col1 ) ) - + 63 AS col1 FROM tab1
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-1504
SELECT ALL + + COUNT( * ) + 24 + + 91 * + 20 FROM tab0 AS cor0
----
1847

skipif mysql # not compatible
query I rowsort label-1504
SELECT ALL + + COUNT ( * ) + 24 + + 91 * + 20 FROM tab0 AS cor0
----
1847

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1505
SELECT - + ( ( 23 ) ) DIV + COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-2

skipif mysql # not compatible
query I rowsort label-1505
SELECT - + ( ( 23 ) ) / + COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-1506
SELECT 89 DIV - - 98 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-1506
SELECT 89 / - - 98 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT col0 AS col2 FROM tab0 AS cor0 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT ALL - 94 AS col1 FROM tab1 cor0
----
-94
-94
-94

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

skipif mysql # not compatible
query I rowsort label-1509
SELECT + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN 82 AND ( - - col2 + col1 * + 14 )
----
0

query I rowsort
SELECT DISTINCT + - col1 * col2 + - col1 AS col1 FROM tab1 AS cor0
----
-1358
-300
-3243

query I rowsort
SELECT + col1 * + 10 + ( - col0 ) AS col2 FROM tab1 AS cor0
----
-35
379
89

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1513
SELECT ALL - MIN( ALL - 55 ) * + COUNT( * ) + + 86 FROM tab0 AS cor0
----
251

skipif mysql # not compatible
query I rowsort label-1513
SELECT ALL - MIN ( ALL - 55 ) * + COUNT ( * ) + + 86 FROM tab0 AS cor0
----
251

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

query II rowsort
SELECT 19, + col1 * - col2 + 51 AS col1 FROM tab2 AS cor0
----
19
-1122
19
-3029
19
-3835

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1516
SELECT + COUNT( * ) DIV 75 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1516
SELECT + COUNT ( * ) / 75 AS col0 FROM tab1
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - - 34 BETWEEN NULL AND - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1518
SELECT DISTINCT - MAX( col2 ) AS col0 FROM tab0 WHERE ( + - col2 ) BETWEEN ( - 91 + + col0 ) AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1518
SELECT DISTINCT - MAX ( col2 ) AS col0 FROM tab0 WHERE ( + - col2 ) BETWEEN ( - 91 + + col0 ) AND NULL
----
NULL

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

query I rowsort
SELECT - 19 * - col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

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

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

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

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

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

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

query I rowsort
SELECT - col0 + - col0 + - 75 FROM tab0 cor0
----
-105
-249
-269

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

query I rowsort
SELECT DISTINCT + - 64 + + + 12 AS col0 FROM tab0 AS cor0
----
-52

query I rowsort
SELECT + ( - + col2 ) + + col0 FROM tab1 AS cor0
----
-45
23
26

onlyif mysql # aggregate syntax: 
query I rowsort label-1528
SELECT - COUNT( * ) FROM tab1 AS cor0 WHERE col2 * + + col2 <> ( 36 )
----
-3

skipif mysql # not compatible
query I rowsort label-1528
SELECT - COUNT ( * ) FROM tab1 AS cor0 WHERE col2 * + + col2 <> ( 36 )
----
-3

query I rowsort
SELECT - col1 + - ( ( + 65 ) ) AS col2 FROM tab1 AS cor0
----
-112
-70
-79

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 60 BETWEEN ( col0 ) AND NULL
----

query I rowsort
SELECT ALL + 41 * col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
2419
2788
3936

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1532
SELECT ALL CAST( NULL AS SIGNED ) * ( col0 ) FROM tab2 AS cor0 WHERE ( + CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED ) ) BETWEEN NULL AND + col0 + 91
----

skipif mysql # not compatible
query I rowsort label-1532
SELECT ALL CAST ( NULL AS INTEGER ) * ( col0 ) FROM tab2 AS cor0 WHERE ( + CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) ) BETWEEN NULL AND + col0 + 91
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL <= 16
----

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

query I rowsort
SELECT ALL col0 - + - 99 + + col0 * col0 + 91 * col0 AS col2 FROM tab1
----
15144
16752
7392

query I rowsort
SELECT ALL - col2 + + col1 + + 20 FROM tab0
----
-78
31
54

onlyif mysql # aggregate syntax: 
query I rowsort label-1537
SELECT DISTINCT 36 * COUNT( * ) AS col0 FROM tab0
----
108

skipif mysql # not compatible
query I rowsort label-1537
SELECT DISTINCT 36 * COUNT ( * ) AS col0 FROM tab0
----
108

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

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

query II rowsort
SELECT ALL - - col1, - col1 + + col1 + - 90 + - col0 AS col2 FROM tab2 AS cor0
----
51
-136
67
-165
77
-154

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 = + + col0
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1542
SELECT ALL - 26 * - COUNT( DISTINCT + col0 ) FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( 18 * - ( - 78 ) * - col1, + 75 )
----
0

skipif mysql # not compatible
query I rowsort label-1542
SELECT ALL - 26 * - COUNT ( DISTINCT + col0 ) FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( 18 * - ( - 78 ) * - col1, + 75 )
----
0

query I rowsort
SELECT - 66 * - - col2 + - 87 + + 66 * + - col0 + - - col0 AS col0 FROM tab2 cor0
----
-4595
-6887
-8790

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( ( col1 ) ) >= NULL
----

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

query I rowsort
SELECT ALL - 22 AS col0 FROM tab1 AS cor0 WHERE NOT - col2 IS NOT NULL
----

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

query III rowsort
SELECT * FROM tab0 WHERE NULL <= NULL OR NOT ( NULL ) >= NULL
----

query II rowsort
SELECT ALL 45 AS col1, + col1 * + - ( + + col1 ) AS col0 FROM tab1
----
45
-196
45
-2209
45
-25

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

query III rowsort
SELECT * FROM tab0 WHERE NOT ( ( 17 ) ) >= NULL
----

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

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

skipif mysql # not compatible
query I rowsort label-1553
SELECT - MAX ( ALL + ( - - col2 ) ) FROM tab1
----
-96

query I rowsort
SELECT ALL + + 21 + + ( col0 ) * - 45 AS col0 FROM tab1 AS cor0
----
-2274
-3804
-4074

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1556
SELECT DISTINCT + + col0 + + col2 - col2 DIV - + col0 AS col2 FROM tab0 AS cor0
----
197
65
97

skipif mysql # not compatible
query I rowsort label-1556
SELECT DISTINCT + + col0 + + col2 - col2 / - + col0 AS col2 FROM tab0 AS cor0
----
197
65
97

query I rowsort
SELECT - col1 * col0 AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-2346
-4928
-5025

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1558
SELECT DISTINCT 86 AS col1, - COUNT ( * ) col2 FROM tab1 AS cor0
----
86
-3

query I rowsort
SELECT ALL - 6 - + ( 62 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5febf382d36d6e0191889c41b928786f

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1560
SELECT 78 + CAST( NULL AS SIGNED ), col1 FROM tab2
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-1560
SELECT 78 + CAST ( NULL AS INTEGER ), col1 FROM tab2
----
NULL
51
NULL
67
NULL
77

onlyif mysql # DIV for integer division: 
query I rowsort label-1561
SELECT DISTINCT + - col2 * + col0 + - - col1 + - + col0 DIV + 27 AS col1 FROM tab2 AS cor0
----
-1008
-2485
-4285

skipif mysql # not compatible
query I rowsort label-1561
SELECT DISTINCT + - col2 * + col0 + - - col1 + - + col0 / + 27 AS col1 FROM tab2 AS cor0
----
-1008
-2485
-4285

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

query I rowsort
SELECT ALL + col1 + + 38 * col0 * 84 * col1 * - 34 FROM tab2 AS cor0
----
-254606637
-534825907
-545353133

query I rowsort
SELECT ALL + + col2 + 99 AS col2 FROM tab0 AS cor0
----
109
146
198

query I rowsort
SELECT DISTINCT - + 92 + col1 AS col2 FROM tab1 AS cor0
----
-45
-78
-87

query I rowsort
SELECT - + col1 - - 17 * + + col2 AS col1 FROM tab0 AS cor0
----
149
1682
718

query I rowsort
SELECT DISTINCT col0 + - 90 AS col2 FROM tab2
----
-15
-26
-44

query I rowsort
SELECT ALL 33 + - col0 * + col2 + - col2 FROM tab2
----
-1048
-2567
-4375

query I rowsort
SELECT col0 * + - col1 + + - col1 AS col1 FROM tab0
----
-1296
-1848
-98

query I rowsort
SELECT + 99 + - 36 AS col0 FROM tab2
----
63
63
63

query I rowsort
SELECT 54 + col0 + - - 76 + - col0 FROM tab0
----
130
130
130

onlyif mysql # DIV for integer division: 
query I rowsort label-1572
SELECT ALL col1 - - + col2 + - - col1 DIV col2 + + 50 * + - col0 * + col2 AS col1 FROM tab0
----
-35121
-43467
-480050

skipif mysql # not compatible
query I rowsort label-1572
SELECT ALL col1 - - + col2 + - - col1 / col2 + + 50 * + - col0 * + col2 AS col1 FROM tab0
----
-35121
-43467
-480050

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

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

query I rowsort
SELECT - - col1 FROM tab2 WHERE + col0 + + + col2 <> - col2
----
51
67
77

query I rowsort
SELECT ( - col1 ) + + 63 AS col1 FROM tab0
----
-18
42
62

query I rowsort
SELECT ALL 46 + - 89 FROM tab0
----
-43
-43
-43

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

query II rowsort
SELECT + + 34 AS col1, - 71 + - col2 AS col0 FROM tab0 AS cor0
----
34
-118
34
-170
34
-81

query I rowsort
SELECT + col2 * - - ( + 68 ) AS col2 FROM tab2 cor0
----
1564
2720
3944

onlyif mysql # DIV for integer division: 
query I rowsort label-1580
SELECT ALL + ( + 44 ) DIV col0 * - - col2 + + col2 AS col2 FROM tab1 cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-1580
SELECT ALL + ( + 44 ) / col0 * - - col2 + + col2 AS col2 FROM tab1 cor0
----
59
68
96

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

query I rowsort
SELECT - - 73 * - col2 FROM tab0 AS cor0
----
-3431
-7227
-730

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

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

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

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

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

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

query I rowsort
SELECT + col0 * + col1 + - - 18 AS col0 FROM tab1
----
4295
443
732

query II rowsort
SELECT 14 AS col2, col2 AS col1 FROM tab2 WHERE NOT ( NULL ) BETWEEN - col1 AND col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 71 AS col1, + col0 + + 1 col2 FROM tab0 WHERE NOT col2 + col1 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1591
SELECT ALL - MAX( ALL col0 ) AS col0 FROM tab0 WHERE ( - col1 IN ( - ( 18 ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1591
SELECT ALL - MAX ( ALL col0 ) AS col0 FROM tab0 WHERE ( - col1 IN ( - ( 18 ) ) )
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 60 IN ( - col2 )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1594
SELECT - + COUNT( * ) * 21 AS col1 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
-189

skipif mysql # not compatible
query I rowsort label-1594
SELECT - + COUNT ( * ) * 21 AS col1 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
-189

query I rowsort
SELECT - col0 + + 25 + - col2 FROM tab0
----
-171
-37
-72

query I rowsort
SELECT - 54 FROM tab1 AS cor0 WHERE - 36 + col1 IS NULL
----

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

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

query I rowsort
SELECT ALL + 64 + - - col2 + col0 FROM tab2 AS cor0
----
133
168
197

query I rowsort
SELECT DISTINCT - - col0 * + 97 + col2 + + col1 FROM tab1 AS cor0
----
5057
8309
8942

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

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

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

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

query I rowsort
SELECT ALL + col0 - col2 * - - col1 AS col0 FROM tab0
----
-123
-2
-3792

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

skipif mysql # not compatible
query I rowsort label-1604
SELECT DISTINCT - AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) * + 34 AS col0 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT col0 - + 19 + - - col2 FROM tab1
----
125
128
140

query I rowsort
SELECT ( col2 ) * col1 AS col2 FROM tab1
----
1344
295
3196

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + + 76 ) NOT BETWEEN + col1 AND + + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 24 * + col1 col2 FROM tab0
----
1944
24
504

query I rowsort
SELECT ALL 16 * col0 AS col0 FROM tab0
----
1392
1552
240

query I rowsort
SELECT ( col0 ) * 90 AS col0 FROM tab1
----
4590
7650
8190

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

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

query I rowsort
SELECT + 86 * - 6 AS col0 FROM tab2 AS cor0
----
-516
-516
-516

query II rowsort
SELECT ALL - 0 * - col0, col0 FROM tab1 cor0
----
0
51
0
85
0
91

query I rowsort
SELECT ALL 71 * col0 + + col2 AS col0 FROM tab2 AS cor0
----
3289
4584
5383

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

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

query I rowsort
SELECT DISTINCT - col0 * + - col0 * - 48 + col0 AS col1 FROM tab1 AS cor0
----
-124797
-346715
-397397

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1617
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * col1 * - 15 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1617
SELECT DISTINCT + CAST ( NULL AS REAL ) * col1 * - 15 FROM tab1
----
NULL

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

query I rowsort
SELECT + - 38 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e571541ae40cb0ddaca16e11f4359507

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1621
SELECT COUNT( * ) * + SUM( DISTINCT 7 ) AS col0 FROM tab0 AS cor0 WHERE NOT ( - col0 ) * - - col2 * col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1621
SELECT COUNT ( * ) * + SUM ( DISTINCT 7 ) AS col0 FROM tab0 AS cor0 WHERE NOT ( - col0 ) * - - col2 * col1 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1622
SELECT DISTINCT - - 69 + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-1622
SELECT DISTINCT - - 69 + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1623
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 50 + + CAST( NULL AS SIGNED ) + col1 + - + col0 NOT BETWEEN + 50 AND + 51 / + col1 + - col1 * + col1
----

skipif mysql # not compatible
query III rowsort label-1623
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 50 + + CAST ( NULL AS INTEGER ) + col1 + - + col0 NOT BETWEEN + 50 AND + 51 / + col1 + - col1 * + col1
----

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

query I rowsort
SELECT DISTINCT + + ( - + 81 ) * - ( + col2 ) + col0 AS col2 FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1627
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 * - col1 BETWEEN NULL AND + CAST( + - 67 AS SIGNED )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-1627
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 * - col1 BETWEEN NULL AND + CAST ( + - 67 AS INTEGER )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col0 + col2 * - - col0 + - col2 * - col0 AS col0 FROM tab0 AS cor0
----
1425
1827
19303

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1629
SELECT DISTINCT 3 * - CAST( col2 AS SIGNED ) FROM tab1 AS cor0
----
-177
-204
-288

skipif mysql # not compatible
query I rowsort label-1629
SELECT DISTINCT 3 * - CAST ( col2 AS INTEGER ) FROM tab1 AS cor0
----
-177
-204
-288

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1631
SELECT - col0, CAST( NULL AS DECIMAL ) - + col2 AS col0 FROM tab0
----
-15
NULL
-87
NULL
-97
NULL

skipif mysql # not compatible
query II rowsort label-1631
SELECT - col0, CAST ( NULL AS REAL ) - + col2 AS col0 FROM tab0
----
-15
NULL
-87
NULL
-97
NULL

query I rowsort
SELECT DISTINCT ( - - ( - col0 ) ) FROM tab0
----
-15
-87
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-1633
SELECT ALL + col0 + - col1 DIV + + col2 AS col1 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-1633
SELECT ALL + col0 + - col1 / + + col2 AS col1 FROM tab1
----
51
85
91

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1635
SELECT ALL - SUM( ALL + 82 ) * + - SUM( + col1 ) * + 55 AS col0 FROM tab1 AS cor0
----
892980

skipif mysql # not compatible
query I rowsort label-1635
SELECT ALL - SUM ( ALL + 82 ) * + - SUM ( + col1 ) * + 55 AS col0 FROM tab1 AS cor0
----
892980

query I rowsort
SELECT ALL + + 27 + 81 AS col2 FROM tab2 AS cor0
----
108
108
108

query I rowsort
SELECT DISTINCT + col1 + - - 70 FROM tab0 AS cor0
----
151
71
91

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1639
SELECT - - 37 + + + SUM( ALL + col0 ) col1 FROM tab1 AS cor0
----
264

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

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

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

query I rowsort
SELECT - ( - - col0 ) * - - ( 65 ) AS col1 FROM tab0
----
-5655
-6305
-975

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1642
SELECT 9 * - col0 FROM tab1 WHERE + col0 * 51 + - - col2 * col2 + - CAST( + 97 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-1642
SELECT 9 * - col0 FROM tab1 WHERE + col0 * 51 + - - col2 * col2 + - CAST ( + 97 AS INTEGER ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1643
SELECT DISTINCT + COUNT( ALL + CAST( + col2 AS DECIMAL ) ) col0 FROM tab1
----
3

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

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

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

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

query II rowsort
SELECT ALL - col2 + + - col0 col0, 76 AS col1 FROM tab1 AS cor0
----
-144
76
-147
76
-159
76

query I rowsort
SELECT DISTINCT col1 + + - col0 + + 7 * - 68 FROM tab0 AS cor0
----
-410
-542
-572

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 * + - col1 <= NULL
----

query I rowsort
SELECT - ( + - col0 ) + ( col2 ) AS col0 FROM tab1 AS cor0
----
144
147
159

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

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

query I rowsort
SELECT ALL - ( - 65 ) * + ( col0 ) AS col2 FROM tab0
----
5655
6305
975

query I rowsort
SELECT ALL + col2 * - 89 FROM tab2
----
-2047
-3560
-5162

onlyif mysql # aggregate syntax: 
query I rowsort label-1653
SELECT ALL COUNT( * ) AS col2 FROM tab2 WHERE + 51 < col0
----
2

skipif mysql # not compatible
query I rowsort label-1653
SELECT ALL COUNT ( * ) AS col2 FROM tab2 WHERE + 51 < col0
----
2

query I rowsort
SELECT DISTINCT + 27 FROM tab1 WHERE col1 + - - 49 <= - - col2 + - - 2
----
27

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1657
SELECT SUM( + 54 ) FROM tab1 AS cor0
----
162

skipif mysql # not compatible
query I rowsort label-1657
SELECT SUM ( + 54 ) FROM tab1 AS cor0
----
162

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

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

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

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

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

query I rowsort
SELECT + ( + 82 ) * + col1 FROM tab2 AS cor0
----
4182
5494
6314

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

query I rowsort
SELECT - col1 * + 40 * + col2 AS col1 FROM tab2 AS cor0
----
-123200
-155440
-46920

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

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

query I rowsort
SELECT DISTINCT + + col0 + + + col2 AS col0 FROM tab2 AS cor0
----
104
133
69

query I rowsort
SELECT + 90 + + + 10 AS col1 FROM tab1 AS cor0
----
100
100
100

query II rowsort
SELECT DISTINCT + 79 + - col1 AS col1, col1 FROM tab1 AS cor0
----
32
47
65
14
74
5

query II rowsort
SELECT - col2 + - col1 AS col1, + ( + - 15 ) FROM tab0 AS cor0
----
-100
-15
-128
-15
-31
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-1669
SELECT DISTINCT 64 * + + SUM( ALL col1 ) FROM tab0 AS cor0
----
6592

skipif mysql # not compatible
query I rowsort label-1669
SELECT DISTINCT 64 * + + SUM ( ALL col1 ) FROM tab0 AS cor0
----
6592

query II rowsort
SELECT - 27, col1 FROM tab2 AS cor0 WHERE + col1 * col2 <= NULL
----

query I rowsort
SELECT ALL ( col0 ) - + - col2 + - 83 FROM tab2 WHERE NOT NULL NOT IN ( + col2, col1 * - - col2 * + 41 )
----

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

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

skipif mysql # not compatible
query I rowsort label-1673
SELECT DISTINCT 44 / col2 AS col0 FROM tab2
----
0
1

query I rowsort
SELECT + + col1 FROM tab2 WHERE col1 - col1 + + col0 + - 86 * - col1 * + + col1 IS NULL
----

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

query II rowsort
SELECT - 67, 90 AS col1 FROM tab0
----
-67
90
-67
90
-67
90

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

query I rowsort
SELECT - - 28 * - col2 AS col0 FROM tab1 AS cor0
----
-1652
-1904
-2688

query I rowsort
SELECT 84 AS col1 FROM tab1 cor0
----
84
84
84

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1681
SELECT + 15 - + col1 * + col2 DIV + col2 + - col1 + - ( col0 ) AS col1 FROM tab0 AS cor0
----
-114
-162
-84

skipif mysql # not compatible
query I rowsort label-1681
SELECT + 15 - + col1 * + col2 / + col2 + - col1 + - ( col0 ) AS col1 FROM tab0 AS cor0
----
-114
-162
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-1682
SELECT ALL + COUNT( * ) - ( - COUNT( * ) ) AS col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
18

skipif mysql # not compatible
query I rowsort label-1682
SELECT ALL + COUNT ( * ) - ( - COUNT ( * ) ) AS col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
18

query I rowsort
SELECT DISTINCT - 75 * 10 AS col1 FROM tab0 WHERE NOT + col1 NOT BETWEEN NULL AND - 71
----

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

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE 64 - - 67 * - - 31 IS NULL
----

query II rowsort
SELECT - col1 + - 45 AS col0, 19 FROM tab1
----
-50
19
-59
19
-92
19

query I rowsort
SELECT + col0 + - + col2 * - + col0 - 3 - - 55 FROM tab0 AS cor0
----
1009
772
9752

query I rowsort
SELECT - + col0 + ( - col0 ) AS col2 FROM tab1 AS cor0
----
-102
-170
-182

onlyif mysql # aggregate syntax: 
query I rowsort label-1689
SELECT ALL - SUM( + 16 ) FROM tab2 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-1689
SELECT ALL - SUM ( + 16 ) FROM tab2 AS cor0
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1690
SELECT DISTINCT - CAST( COUNT( + col0 ) AS SIGNED ) FROM tab2 AS cor0 WHERE NOT - 80 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-1690
SELECT DISTINCT - CAST ( COUNT ( + col0 ) AS INTEGER ) FROM tab2 AS cor0 WHERE NOT - 80 IS NULL
----
-3

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

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

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

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

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

query I rowsort
SELECT DISTINCT - - ( col1 ) FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND - 59 * - col2
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1697
SELECT DISTINCT - 22 * + CAST( + + col1 AS SIGNED ) FROM tab2 WHERE + - col1 + + 16 >= ( + 83 )
----

skipif mysql # not compatible
query I rowsort label-1697
SELECT DISTINCT - 22 * + CAST ( + + col1 AS INTEGER ) FROM tab2 WHERE + - col1 + + 16 >= ( + 83 )
----

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

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

query I rowsort
SELECT - col1 * - - col1 FROM tab0 AS cor0 WHERE NOT - col2 BETWEEN - - col2 AND NULL
----
-1
-441
-6561

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

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

query I rowsort
SELECT col0 * + - 26 * col0 + + 27 FROM tab1
----
-187823
-215279
-67599

query II rowsort
SELECT + col2 + - 17 * - col2 AS col0, + col0 AS col2 FROM tab1
----
1062
85
1224
91
1728
51

query I rowsort
SELECT ALL 67 * - - 50 FROM tab2 AS cor0
----
3350
3350
3350

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

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

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

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

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

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

query I rowsort
SELECT ALL - + 27 AS col0 FROM tab1 WHERE NOT NULL BETWEEN col2 AND + + 86
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 13 + + - ( col2 ) col2 FROM tab1
----
-46
-55
-83

onlyif mysql # aggregate syntax: 
query II rowsort label-1709
SELECT DISTINCT SUM( + col1 ) AS col2, 76 AS col0 FROM tab0
----
103
76

skipif mysql # not compatible
query II rowsort label-1709
SELECT DISTINCT SUM ( + col1 ) AS col2, 76 AS col0 FROM tab0
----
103
76

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1713
SELECT - COUNT( * ) DIV - 8 + + COUNT( * ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-1713
SELECT - COUNT ( * ) / - 8 + + COUNT ( * ) FROM tab0
----
3

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1714
SELECT DISTINCT + MAX ( ALL + - col0 ) col0 FROM tab2
----
-46

query II rowsort
SELECT - ( + 78 ) * - - col2 + + + 16, + col2 AS col2 FROM tab0
----
-3650
47
-764
10
-7706
99

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

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

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

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

query I rowsort
SELECT ALL + col0 + col1 * - 98 + col1 FROM tab0 AS cor0
----
-1950
-7842
0

query I rowsort
SELECT DISTINCT 99 + + + 3 AS col2 FROM tab2 AS cor0
----
102

onlyif mysql # DIV for integer division: 
query I rowsort label-1720
SELECT ALL - col1 DIV col1 + - 51 + col1 + col2 * + - col2 + - col2 FROM tab1 AS cor0
----
-3587
-4697
-9350

skipif mysql # not compatible
query I rowsort label-1720
SELECT ALL - col1 / col1 + - 51 + col1 + col2 * + - col2 + - col2 FROM tab1 AS cor0
----
-3587
-4697
-9350

query I rowsort
SELECT + ( + - col0 ) * + 66 * + col1 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-154836
-325248
-331650

query I rowsort
SELECT ALL - col1 - - - col0 FROM tab2 AS cor0
----
-141
-142
-97

query I rowsort
SELECT 60 AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab1 cor1 )
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

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

query I rowsort
SELECT ALL - - 34 * + col0 FROM tab0 AS cor0
----
2958
3298
510

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

skipif mysql # not compatible
query I rowsort label-1726
SELECT + COUNT ( * ) / - - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
1

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

query I rowsort
SELECT + + col1 * - + col1 AS col1 FROM tab0 AS cor0
----
-1
-441
-6561

query I rowsort
SELECT - + col2 * - + col2 * + + 23 + + col1 * + col0 AS col1 FROM tab0 AS cor0
----
225520
4127
52022

query II rowsort
SELECT DISTINCT + col2, + 12 FROM tab1 AS cor0
----
59
12
68
12
96
12

query II rowsort
SELECT - 19, + 68 + + - col2 AS col1 FROM tab2
----
-19
10
-19
28
-19
45

onlyif mysql # aggregate syntax: 
query I rowsort label-1732
SELECT - COUNT( DISTINCT - + col1 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-1732
SELECT - COUNT ( DISTINCT - + col1 ) FROM tab1
----
-3

query III rowsort
SELECT * FROM tab0 WHERE NOT - + ( - - col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1734
SELECT - ( + COUNT( * ) ) * + SUM( - col1 ) + - COUNT( * ) AS col0 FROM tab2
----
582

skipif mysql # not compatible
query I rowsort label-1734
SELECT - ( + COUNT ( * ) ) * + SUM ( - col1 ) + - COUNT ( * ) AS col0 FROM tab2
----
582

query I rowsort
SELECT DISTINCT - + col0 AS col1 FROM tab1 WHERE col2 / + - col1 IS NOT NULL
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-1736
SELECT DISTINCT COUNT( DISTINCT 59 ) AS col2 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-1736
SELECT DISTINCT COUNT ( DISTINCT 59 ) AS col2 FROM tab1
----
1

query II rowsort
SELECT ALL col1, 72 FROM tab2 WHERE NOT + col0 * + col1 + col0 IS NULL
----
51
72
67
72
77
72

query I rowsort
SELECT - col1 / + col1 + - ( col1 ) AS col0 FROM tab2 WHERE NOT - ( - col1 ) NOT BETWEEN - - 69 AND NULL
----

query I rowsort
SELECT + 52 * + - col1 FROM tab2
----
-2652
-3484
-4004

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( + 99 ) > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1741
SELECT * FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) / + - 18 < NULL
----

skipif mysql # not compatible
query III rowsort label-1741
SELECT * FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) / + - 18 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1742
SELECT ALL - - MAX( - - col0 ) FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-1742
SELECT ALL - - MAX ( - - col0 ) FROM tab2 AS cor0
----
75

query I rowsort
SELECT ALL - ( + - 76 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1744
SELECT ( + CAST( NULL AS DECIMAL ) ) * AVG ( + col1 ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1744
SELECT ( + CAST ( NULL AS REAL ) ) * AVG ( + col1 ) AS col2 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT col2 * + 2 + + 95 + - + col0 FROM tab1 AS cor0
----
128
140
236

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL = - col0 - - + col2 * - 50
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1747
SELECT ALL 45 + + col2 * + col1 + - 8 DIV col0 AS col2 FROM tab2 AS cor0
----
1218
3125
3931

skipif mysql # not compatible
query I rowsort label-1747
SELECT ALL 45 + + col2 * + col1 + - 8 / col0 AS col2 FROM tab2 AS cor0
----
1218
3125
3931

query I rowsort
SELECT ( + + col0 ) + - col0 * + col1 + + + 92 - col2 + - col2 + + col2 * - + col0 * - - 19 FROM tab1 AS cor0
----
-121802
-93787
-95651

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1749
SELECT + 44 + 96 FROM tab1 AS cor0 WHERE ( CAST( col2 AS SIGNED ) * + CAST( - col1 AS SIGNED ) + 73 * + col1 ) IS NOT NULL
----
140
140
140

skipif mysql # not compatible
query I rowsort label-1749
SELECT + 44 + 96 FROM tab1 AS cor0 WHERE ( CAST ( col2 AS INTEGER ) * + CAST ( - col1 AS INTEGER ) + 73 * + col1 ) IS NOT NULL
----
140
140
140

onlyif mysql # aggregate syntax: 
query I rowsort label-1750
SELECT ALL + + COUNT( * ) * - + ( - SUM( - col0 ) ) FROM tab2 AS cor0
----
-555

skipif mysql # not compatible
query I rowsort label-1750
SELECT ALL + + COUNT ( * ) * - + ( - SUM ( - col0 ) ) FROM tab2 AS cor0
----
-555

onlyif mysql # DIV for integer division: 
query I rowsort label-1751
SELECT - - col0 DIV + col1 + + ( + col0 ) FROM tab0 AS cor0
----
15
194
91

skipif mysql # not compatible
query I rowsort label-1751
SELECT - - col0 / + col1 + + ( + col0 ) FROM tab0 AS cor0
----
15
194
91

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 99 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1753
SELECT + COUNT( * ) + 72 FROM tab1
----
75

skipif mysql # not compatible
query I rowsort label-1753
SELECT + COUNT ( * ) + 72 FROM tab1
----
75

query I rowsort
SELECT ALL + 47 - - - col0 AS col1 FROM tab2
----
-17
-28
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1755
SELECT ALL COUNT( * ) - + 24 FROM tab1
----
-21

skipif mysql # not compatible
query I rowsort label-1755
SELECT ALL COUNT ( * ) - + 24 FROM tab1
----
-21

query III rowsort
SELECT DISTINCT col0, 19 * - col1 + + 85 col0, + 51 AS col0 FROM tab0
----
9 values hashing to d10b9abf5793e1b3092ab11959e3707e

query I rowsort
SELECT DISTINCT 24 * + - col1 FROM tab2
----
-1224
-1608
-1848

onlyif mysql # aggregate syntax: 
query I rowsort label-1758
SELECT 14 * COUNT( * ) FROM tab1
----
42

skipif mysql # not compatible
query I rowsort label-1758
SELECT 14 * COUNT ( * ) FROM tab1
----
42

query I rowsort
SELECT DISTINCT + col1 + + col1 + 91 AS col2 FROM tab1
----
101
119
185

query II rowsort
SELECT DISTINCT + 52 * - - ( + + col2 ) col2, + 98 FROM tab2
----
1196
98
2080
98
3016
98

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( col1 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 91 - + col2 FROM tab1 AS cor0
----
-5
23
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 24 col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 + col1 + col1 - ( + 0 ) AS col2 FROM tab1 AS cor0
----
124
162
69

onlyif mysql # aggregate syntax: 
query I rowsort label-1765
SELECT MAX( + - 88 ) col2 FROM tab0
----
-88

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1765
SELECT MAX ( + - 88 ) col2 FROM tab0
----
-88

query I rowsort
SELECT ALL - col1 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN + col2 AND + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1767
SELECT DISTINCT - - col1 DIV + 27 col2 FROM tab2 AS cor0
----
1
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1767
SELECT DISTINCT - - col1 / + 27 col2 FROM tab2 AS cor0
----
1
2

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL > 66 + - ( 2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1769
SELECT DISTINCT + COUNT( * ) * + + 7 AS col2 FROM tab0
----
21

skipif mysql # not compatible
query I rowsort label-1769
SELECT DISTINCT + COUNT ( * ) * + + 7 AS col2 FROM tab0
----
21

query II rowsort
SELECT DISTINCT col0, 15 FROM tab2
----
46
15
64
15
75
15

query I rowsort
SELECT ALL - ( - 45 ) FROM tab1
----
45
45
45

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1772
SELECT ALL - 18 + - MAX( ALL - CAST( NULL AS DECIMAL ) ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1772
SELECT ALL - 18 + - MAX ( ALL - CAST ( NULL AS REAL ) ) AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1773
SELECT ALL - 9 * COUNT( * ) AS col1 FROM tab0
----
-27

skipif mysql # not compatible
query I rowsort label-1773
SELECT ALL - 9 * COUNT ( * ) AS col1 FROM tab0
----
-27

query I rowsort
SELECT - col1 FROM tab2 cor0 WHERE ( - col0 IS NOT NULL )
----
-51
-67
-77

query II rowsort
SELECT 32, col0 AS col1 FROM tab2 AS cor0
----
32
46
32
64
32
75

query I rowsort
SELECT - 99 - col2 AS col0 FROM tab2 AS cor0
----
-122
-139
-157

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL < - 56
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1778
SELECT + col2 + - CAST( NULL AS SIGNED ) + - - 82 / 57 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1778
SELECT + col2 + - CAST ( NULL AS INTEGER ) + - - 82 / 57 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1779
SELECT ALL * FROM tab2 WHERE col1 >= CAST( + col0 AS SIGNED )
----
46
51
23
64
77
40

skipif mysql # not compatible
query III rowsort label-1779
SELECT ALL * FROM tab2 WHERE col1 >= CAST ( + col0 AS INTEGER )
----
46
51
23
64
77
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 37 + - 65 + col2 AS col2, - col2 - + col0 col0 FROM tab0
----
-18
-97
19
-62
71
-196

query III rowsort
SELECT * FROM tab0 WHERE - - col1 NOT BETWEEN + 35 AND NULL
----
87
21
10
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1782
SELECT ( COUNT( * ) ) + + 44 col2 FROM tab2
----
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1782
SELECT ( COUNT ( * ) ) + + 44 col2 FROM tab2
----
47

query I rowsort
SELECT DISTINCT col0 FROM tab2 WHERE NOT - 21 IS NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1784
SELECT + + SUM( DISTINCT - col1 ) FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-1784
SELECT + + SUM ( DISTINCT - col1 ) FROM tab2 AS cor0
----
-195

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 21 * col1 col2 FROM tab0
----
1701
21
441

query II rowsort
SELECT 48 AS col2, + 91 AS col1 FROM tab2
----
48
91
48
91
48
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + - col0 col0 FROM tab0
----
-705
-870
-9603

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1788
SELECT * FROM tab1 cor0 WHERE NOT CAST( NULL AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-1788
SELECT * FROM tab1 cor0 WHERE NOT CAST ( NULL AS REAL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1789
SELECT DISTINCT + - SUM( ALL - col2 ) AS col2 FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-1789
SELECT DISTINCT + - SUM ( ALL - col2 ) AS col2 FROM tab2 AS cor0
----
121

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 0 * - 47 >= NULL
----

query I rowsort
SELECT + 98 * - - col0 AS col2 FROM tab1 AS cor0
----
4998
8330
8918

query I rowsort
SELECT DISTINCT - col0 * - - col2 AS col1 FROM tab2
----
-1058
-2560
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-1793
SELECT DISTINCT 40 * + COUNT( * ) col2 FROM tab0
----
120

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1793
SELECT DISTINCT 40 * + COUNT ( * ) col2 FROM tab0
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-1794
SELECT ALL COUNT( * ) AS col1 FROM tab2 WHERE NOT + col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1794
SELECT ALL COUNT ( * ) AS col1 FROM tab2 WHERE NOT + col0 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1795
SELECT DISTINCT + + COUNT( * ) col0 FROM tab2 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1795
SELECT DISTINCT + + COUNT ( * ) col0 FROM tab2 cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 * + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col1 + + + col1 AS col2 FROM tab0
----
162
2
42

onlyif mysql # aggregate syntax: 
query I rowsort label-1798
SELECT DISTINCT + 92 * + COUNT( * ) FROM tab2
----
276

skipif mysql # not compatible
query I rowsort label-1798
SELECT DISTINCT + 92 * + COUNT ( * ) FROM tab2
----
276

onlyif mysql # aggregate syntax: 
query I rowsort label-1799
SELECT - - ( + - COUNT( * ) ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-1799
SELECT - - ( + - COUNT ( * ) ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

query III rowsort
SELECT * FROM tab2 WHERE - - 47 <> - - 1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1801
SELECT + + COUNT( * ) + ( 0 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1801
SELECT + + COUNT ( * ) + ( 0 ) AS col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT + col0 + + + col0 * 53 - + col1 FROM tab1 AS cor0
----
2740
4585
4867

query I rowsort
SELECT - + 20 + - + col0 AS col2 FROM tab1 cor0
----
-105
-111
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1804
SELECT + COUNT( * ) AS col0, CAST( - COUNT( 71 ) AS SIGNED ) + - - MAX( ALL col1 ) * ( 90 ) AS col0 FROM tab0 AS cor0
----
3
7287

skipif mysql # not compatible
query II rowsort label-1804
SELECT + COUNT ( * ) AS col0, CAST ( - COUNT ( 71 ) AS INTEGER ) + - - MAX ( ALL col1 ) * ( 90 ) AS col0 FROM tab0 AS cor0
----
3
7287

query I rowsort
SELECT ALL col2 - - 61 + + col1 FROM tab2 AS cor0
----
135
178
186

query I rowsort
SELECT ALL 31 + col0 * - 32 FROM tab2
----
-1441
-2017
-2369

onlyif mysql # aggregate syntax: 
query I rowsort label-1807
SELECT ALL + COUNT( * ) - + 85 AS col1 FROM tab0
----
-82

skipif mysql # not compatible
query I rowsort label-1807
SELECT ALL + COUNT ( * ) - + 85 AS col1 FROM tab0
----
-82

query I rowsort
SELECT - - ( - - col0 ) AS col2 FROM tab2 WHERE NULL IS NULL
----
46
64
75

query I rowsort
SELECT 90 * + 42 - + col0 FROM tab1
----
3689
3695
3729

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + + col2 * - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + - 61 * - - col0 AS col1 FROM tab1 AS cor0
----
-3111
-5185
-5551

query I rowsort
SELECT + 71 + col2 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) > NULL
----

query I rowsort
SELECT ALL + col1 * 37 + + col2 AS col0 FROM tab1 AS cor0 WHERE NOT 68 IS NULL
----
1807
244
614

query I rowsort
SELECT ALL 18 * + col2 * - + col0 FROM tab0 AS cor0
----
-12690
-15660
-172854

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE + 89 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1816
SELECT ( - COUNT( + - col1 ) ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-1816
SELECT ( - COUNT ( + - col1 ) ) FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1817
SELECT + ( + + COUNT( * ) ) col1 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1817
SELECT + ( + + COUNT ( * ) ) col1 FROM tab0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 19 col0 FROM tab2
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1819
SELECT ALL - + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-1819
SELECT ALL - + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1820
SELECT - MAX( ALL + col0 ) FROM tab0 cor0
----
-97

skipif mysql # not compatible
query I rowsort label-1820
SELECT - MAX ( ALL + col0 ) FROM tab0 cor0
----
-97

query I rowsort
SELECT DISTINCT col1 FROM tab2 AS cor0 WHERE NOT ( NOT NULL = ( NULL ) )
----

query I rowsort
SELECT - + col1 AS col0 FROM tab1 WHERE NOT - + 84 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1823
SELECT ALL 49 DIV + col0 FROM tab0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-1823
SELECT ALL 49 / + col0 FROM tab0
----
0
0
3

query III rowsort
SELECT * FROM tab1 WHERE NOT 9 + - col2 IS NULL OR + 49 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query II rowsort label-1825
SELECT ALL - col1 DIV col2 * - col2 AS col0, 0 FROM tab0
----
0
0
20
0
47
0

skipif mysql # not compatible
query II rowsort label-1825
SELECT ALL - col1 / col2 * - col2 AS col0, 0 FROM tab0
----
0
0
20
0
47
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1826
SELECT DISTINCT col1 DIV col0 * + col0 AS col0 FROM tab2
----
0
46
64

skipif mysql # not compatible
query I rowsort label-1826
SELECT DISTINCT col1 / col0 * + col0 AS col0 FROM tab2
----
0
46
64

query I rowsort
SELECT DISTINCT - - col0 AS col0 FROM tab2 WHERE NOT + - 99 > - + col0
----
46
64
75

query I rowsort
SELECT - 17 * - ( + + 87 ) FROM tab0
----
1479
1479
1479

query I rowsort
SELECT col2 * 51 FROM tab2
----
1173
2040
2958

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col1 NOT IN ( - 67 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col1 + + ( - 61 ) + 29 FROM tab2
----
19
35
45

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 + + col0 * + + 26 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1833
SELECT DISTINCT + COUNT( * ) + - COUNT( * ) FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-1833
SELECT DISTINCT + COUNT ( * ) + - COUNT ( * ) FROM tab1 cor0
----
0

query II rowsort
SELECT ALL - ( + - col1 ) + - + 33 AS col0, + col1 FROM tab1 AS cor0
----
-19
14
-28
5
14
47

onlyif mysql # aggregate syntax: 
query I rowsort label-1835
SELECT COUNT( * ) + + - COUNT( * ) + + 27 FROM tab1
----
27

skipif mysql # not compatible
query I rowsort label-1835
SELECT COUNT ( * ) + + - COUNT ( * ) + + 27 FROM tab1
----
27

query I rowsort
SELECT col0 * - 66 FROM tab0
----
-5742
-6402
-990

query IIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab0 cor1 WHERE NOT 73 IS NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

onlyif mysql # aggregate syntax: 
query I rowsort label-1838
SELECT ALL 53 + + SUM( col2 ) FROM tab2 AS cor0
----
174

skipif mysql # not compatible
query I rowsort label-1838
SELECT ALL 53 + + SUM ( col2 ) FROM tab2 AS cor0
----
174

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1839
SELECT ALL col0 - + - col0 - CAST( + col0 AS SIGNED ) * - col0 DIV - col0 - 66 AS col0 FROM tab1 AS cor0
----
-15
19
25

skipif mysql # not compatible
query I rowsort label-1839
SELECT ALL col0 - + - col0 - CAST ( + col0 AS INTEGER ) * - col0 / - col0 - 66 AS col0 FROM tab1 AS cor0
----
-15
19
25

query I rowsort
SELECT + col2 - + + col0 FROM tab1 cor0
----
-23
-26
45

query I rowsort
SELECT - + col2 - - col2 + + 34 FROM tab2 AS cor0
----
34
34
34

query I rowsort
SELECT DISTINCT col2 FROM tab0 AS cor0 WHERE - 0 BETWEEN + 45 * col2 AND NULL
----

query I rowsort
SELECT + - col0 FROM tab2 cor0 WHERE - col1 * col1 * + 61 * - 78 BETWEEN NULL AND + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 30 - + + col1 + + - col0 col0 FROM tab0 AS cor0
----
-66
-68
-78

query I rowsort
SELECT DISTINCT + 42 + col2 FROM tab2
----
100
65
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1846
SELECT ALL - col0 - - CAST( - col2 AS SIGNED ) FROM tab2
----
-104
-133
-69

skipif mysql # not compatible
query I rowsort label-1846
SELECT ALL - col0 - - CAST ( - col2 AS INTEGER ) FROM tab2
----
-104
-133
-69

query I rowsort
SELECT + col0 + - ( + 8 ) AS col1 FROM tab1
----
43
77
83

onlyif mysql # aggregate syntax: 
query I rowsort label-1848
SELECT DISTINCT SUM( - 10 ) AS col1 FROM tab0
----
-30

skipif mysql # not compatible
query I rowsort label-1848
SELECT DISTINCT SUM ( - 10 ) AS col1 FROM tab0
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-1849
SELECT ALL - COUNT( col1 ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-1849
SELECT ALL - COUNT ( col1 ) AS col0 FROM tab2
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1850
SELECT - 20 / - col0 + - - 40 * + ( + + col0 ) / + CAST( NULL AS SIGNED ) * col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1850
SELECT - 20 / - col0 + - - 40 * + ( + + col0 ) / + CAST ( NULL AS INTEGER ) * col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - - 24 FROM tab1 cor0
----
24
24
24

onlyif mysql # DIV for integer division: 
query I rowsort label-1852
SELECT + col1 DIV + col1 + - - col1 + col0 + col0 * + - ( - col0 ) * + col0 + - col2 + + 90 * col2 FROM tab1 AS cor0
----
141261
619467
759762

skipif mysql # not compatible
query I rowsort label-1852
SELECT + col1 / + col1 + - - col1 + col0 + col0 * + - ( - col0 ) * + col0 + - col2 + + 90 * col2 FROM tab1 AS cor0
----
141261
619467
759762

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 + col1 - col0 + - ( col2 ) + + - 14 + + + ( + - col0 ) / col0 * + col1 / - + col2 <> 88 * col1 + + col2 * + 64 + - + 99 * - - col2
----

query I rowsort
SELECT + - 30 * - 16 * col1 AS col0 FROM tab2 cor0
----
24480
32160
36960

query III rowsort
SELECT ALL * FROM tab0 WHERE - + 21 * - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1856
SELECT DISTINCT * FROM tab0 WHERE NOT - + ( CAST( - - col1 AS DECIMAL ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-1856
SELECT DISTINCT * FROM tab0 WHERE NOT - + ( CAST ( - - col1 AS REAL ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 34 + - col0 + - + 53 * - col0 AS col0 FROM tab2 AS cor0
----
2426
3362
3934

query II rowsort
SELECT ALL col0, + col0 - + + 33 * 17 - col0 + + - col0 * + col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
51
-5457
85
-5576
91
-6749

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 + - 13 <> - + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1860
SELECT CAST( + - 56 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-56
-56
-56

skipif mysql # not compatible
query I rowsort label-1860
SELECT CAST ( + - 56 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-56
-56
-56

query I rowsort
SELECT DISTINCT + col0 * + + col0 + + col2 + 60 * - + col2 FROM tab2 AS cor0
----
1736
2203
759

query I rowsort
SELECT ALL + + 0 * - col0 + - - col2 AS col1 FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT + col2 * - + col0 + + 58 + + + col1 + + + ( col0 ) AS col2 FROM tab0
----
-551
-704
-9447

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 * - - col1 - + - col1, col1 col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
210
14
2256
47
30
5

onlyif mysql # DIV for integer division: 
query I rowsort label-1865
SELECT - col1 + + 95 * + col0 DIV col0 FROM tab1
----
48
81
90

skipif mysql # not compatible
query I rowsort label-1865
SELECT - col1 + + 95 * + col0 / col0 FROM tab1
----
48
81
90

query I rowsort
SELECT col1 + col0 + + 25 - - col2 FROM tab0
----
143
168
222

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 IN ( + + col0 + + + 51, + 53 + - col0, - 64, - ( + col2 ) - col2 * - 47 )
----

query I rowsort
SELECT DISTINCT ( col2 ) - + + 10 FROM tab2
----
13
30
48

onlyif mysql # aggregate syntax: 
query I rowsort label-1869
SELECT ALL MAX( + + 16 ) * - 52 AS col0 FROM tab0
----
-832

skipif mysql # not compatible
query I rowsort label-1869
SELECT ALL MAX ( + + 16 ) * - 52 AS col0 FROM tab0
----
-832

onlyif mysql # aggregate syntax: 
query I rowsort label-1870
SELECT DISTINCT - + 40 * - + COUNT( * ) FROM tab1 AS cor0
----
120

skipif mysql # not compatible
query I rowsort label-1870
SELECT DISTINCT - + 40 * - + COUNT ( * ) FROM tab1 AS cor0
----
120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1871
SELECT + COUNT( * ) + + - 75 + + - 56 * + SUM( + CAST( NULL AS SIGNED ) ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1871
SELECT + COUNT ( * ) + + - 75 + + - 56 * + SUM ( + CAST ( NULL AS INTEGER ) ) FROM tab2 cor0
----
NULL

query I rowsort
SELECT + 41 + col2 * col0 FROM tab0 AS cor0
----
746
911
9644

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL IN ( - 87, 96 )
----

query II rowsort
SELECT col2 AS col1, - col1 FROM tab2 AS cor0
----
23
-51
40
-77
58
-67

query II rowsort
SELECT + + 94, col0 AS col1 FROM tab1 AS cor0
----
94
51
94
85
94
91

query I rowsort
SELECT ALL + 51 * - 70 AS col2 FROM tab0 AS cor0
----
-3570
-3570
-3570

query I rowsort
SELECT ALL - + ( - col0 ) + col0 * + + col2 AS col1 FROM tab2 AS cor0
----
1104
2624
4425

onlyif mysql # aggregate syntax: 
query I rowsort label-1878
SELECT ALL - 12 + COUNT( * ) + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-1878
SELECT ALL - 12 + COUNT ( * ) + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-6

query II rowsort
SELECT - col2 AS col1, col2 AS col1 FROM tab0 AS cor0
----
-10
10
-47
47
-99
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1880
SELECT MIN( CAST( NULL AS SIGNED ) ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1880
SELECT MIN ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1881
SELECT - COUNT( DISTINCT - 10 ) * + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1881
SELECT - COUNT ( DISTINCT - 10 ) * + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT 28 * + col1 FROM tab2 AS cor0
----
1428
1876
2156

onlyif mysql # DIV for integer division: 
query I rowsort label-1883
SELECT + col2 DIV - - col0 + col0 AS col0 FROM tab0 AS cor0
----
18
87
98

skipif mysql # not compatible
query I rowsort label-1883
SELECT + col2 / - - col0 + col0 AS col0 FROM tab0 AS cor0
----
18
87
98

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 BETWEEN NULL AND - - col1
----

query I rowsort
SELECT ALL 7 AS col0 FROM tab0 cor0
----
7
7
7

onlyif mysql # aggregate syntax: 
query I rowsort label-1886
SELECT - COUNT( DISTINCT + - col0 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-1886
SELECT - COUNT ( DISTINCT + - col0 ) FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1887
SELECT DISTINCT - SUM( - 14 ) AS col0 FROM tab0 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-1887
SELECT DISTINCT - SUM ( - 14 ) AS col0 FROM tab0 AS cor0
----
42

query II rowsort
SELECT DISTINCT col0 AS col0, + col0 FROM tab2 AS cor0
----
46
46
64
64
75
75

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 + - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + 70, + col0 AS col2 FROM tab2 cor0 WHERE + 35 IS NULL
----

query II rowsort
SELECT DISTINCT - 31, + col1 FROM tab0
----
-31
1
-31
21
-31
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1892
SELECT DISTINCT SUM( ALL + 69 ) AS col0 FROM tab2
----
207

skipif mysql # not compatible
query I rowsort label-1892
SELECT DISTINCT SUM ( ALL + 69 ) AS col0 FROM tab2
----
207

query I rowsort
SELECT + 77 * + 83 FROM tab1
----
6391
6391
6391

query II rowsort
SELECT col2 AS col2, col0 - + col1 FROM tab2
----
23
-5
40
-13
58
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1895
SELECT DISTINCT + CAST( - col0 AS SIGNED ) col2 FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1895
SELECT DISTINCT + CAST ( - col0 AS INTEGER ) col2 FROM tab1
----
-51
-85
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1896
SELECT CAST( + ( COUNT( * ) ) AS SIGNED ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-1896
SELECT CAST ( + ( COUNT ( * ) ) AS INTEGER ) AS col2 FROM tab2
----
3

query I rowsort
SELECT col2 + - - 81 FROM tab0
----
128
180
91

query I rowsort
SELECT 5 + - - col1 * col1 FROM tab1
----
201
2214
30

onlyif mysql # aggregate syntax: 
query I rowsort label-1899
SELECT 97 + MIN( + 71 ) + + 88 + + - 42 col2 FROM tab1
----
214

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1899
SELECT 97 + MIN ( + 71 ) + + 88 + + - 42 col2 FROM tab1
----
214

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1900
SELECT + col2 + CAST( NULL AS SIGNED ) - - col2 * ( - col2 ) col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1900
SELECT + col2 + CAST ( NULL AS INTEGER ) - - col2 * ( - col2 ) col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1901
SELECT ALL CAST( - col2 AS SIGNED ) * - + col0 FROM tab2
----
1058
2560
4350

skipif mysql # not compatible
query I rowsort label-1901
SELECT ALL CAST ( - col2 AS INTEGER ) * - + col0 FROM tab2
----
1058
2560
4350

onlyif mysql # DIV for integer division: 
query I rowsort label-1902
SELECT ALL - col2 DIV + + 84 + - - col2 * 67 FROM tab1 AS cor0
----
3953
4556
6431

skipif mysql # not compatible
query I rowsort label-1902
SELECT ALL - col2 / + + 84 + - - col2 * 67 FROM tab1 AS cor0
----
3953
4556
6431

query I rowsort
SELECT DISTINCT col1 + col1 * - 88 - - col2 AS col2 FROM tab0 AS cor0
----
-1817
-7000
12

query I rowsort
SELECT DISTINCT 78 - col1 + col2 FROM tab1 cor0
----
132
160
99

query I rowsort
SELECT ALL col2 * - col1 * + col2 + + col2 AS col1 FROM tab2 AS cor0
----
-123160
-225330
-26956

query III rowsort
SELECT ALL col1 - col0 AS col0, - col1 AS col1, + + col1 AS col0 FROM tab0
----
9 values hashing to 267f15050838967141c93b2b1d51cf7b

onlyif mysql # DIV for integer division: 
query I rowsort label-1907
SELECT ALL + col2 DIV + 51 FROM tab1 WHERE NOT + col2 IS NULL
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1907
SELECT ALL + col2 / + 51 FROM tab1 WHERE NOT + col2 IS NULL
----
1
1
1

query II rowsort
SELECT DISTINCT 29 - - col0, col2 FROM tab2
----
104
58
75
23
93
40

onlyif mysql # aggregate syntax: 
query II rowsort label-1909
SELECT COUNT( DISTINCT - col1 ) AS col0, SUM( ALL + col0 ) FROM tab1
----
3
227

skipif mysql # not compatible
query II rowsort label-1909
SELECT COUNT ( DISTINCT - col1 ) AS col0, SUM ( ALL + col0 ) FROM tab1
----
3
227

query II rowsort
SELECT ALL + col1 * - - col2, - col2 AS col1 FROM tab2 AS cor0
----
1173
-23
3080
-40
3886
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-1911
SELECT DISTINCT 34 * - MIN( + col2 ) FROM tab0 cor0
----
-340

skipif mysql # not compatible
query I rowsort label-1911
SELECT DISTINCT 34 * - MIN ( + col2 ) FROM tab0 cor0
----
-340

query II rowsort
SELECT - col2, 76 AS col0 FROM tab2 AS cor0 WHERE + col2 / - col1 - + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1913
SELECT ALL COUNT( * ) + - COUNT( * ) + + + COUNT( * ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1913
SELECT ALL COUNT ( * ) + - COUNT ( * ) + + + COUNT ( * ) FROM tab1 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-1914
SELECT DISTINCT + - 69 DIV + + col2 FROM tab2 cor0
----
-1
-3

skipif mysql # not compatible
query I rowsort label-1914
SELECT DISTINCT + - 69 / + + col2 FROM tab2 cor0
----
-1
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1915
SELECT DISTINCT + col0 / + + col1 AS col2 FROM tab1 AS cor0 WHERE NOT + col2 / + CAST( 91 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-1915
SELECT DISTINCT + col0 / + + col1 AS col2 FROM tab1 AS cor0 WHERE NOT + col2 / + CAST ( 91 AS INTEGER ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 97 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1917
SELECT DISTINCT SUM( ALL - col2 ) col2 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1917
SELECT DISTINCT SUM ( ALL - col2 ) col2 FROM tab0 AS cor0
----
-156

query II rowsort
SELECT - ( - - 66 ) AS col0, col1 AS col2 FROM tab1 AS cor0
----
-66
14
-66
47
-66
5

query I rowsort
SELECT DISTINCT col1 * - ( + 5 ) FROM tab1
----
-235
-25
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-1920
SELECT DISTINCT 60 * - COUNT( * ) AS col0 FROM tab0
----
-180

skipif mysql # not compatible
query I rowsort label-1920
SELECT DISTINCT 60 * - COUNT ( * ) AS col0 FROM tab0
----
-180

query I rowsort
SELECT ALL col0 * + - ( + 62 ) AS col0 FROM tab0
----
-5394
-6014
-930

onlyif mysql # aggregate syntax: 
query I rowsort label-1922
SELECT DISTINCT COUNT( * ) AS col0 FROM tab2 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1922
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab2 WHERE NULL IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 * 16 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 15 FROM tab1 WHERE ( NOT NULL IS NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN + 12 * + ( - 51 ) AND NULL
----

query I rowsort
SELECT DISTINCT - + 22 + - col1 AS col2 FROM tab2 WHERE NULL <> col1
----

query I rowsort
SELECT - col1 FROM tab2 AS cor0 WHERE NOT 68 IS NULL
----
-51
-67
-77

query II rowsort
SELECT 1 col1, + 2 AS col1 FROM tab0 cor0
----
1
2
1
2
1
2

onlyif mysql # DIV for integer division: 
query I rowsort label-1929
SELECT ALL 66 DIV - - col1 FROM tab0 AS cor0
----
0
3
66

skipif mysql # not compatible
query I rowsort label-1929
SELECT ALL 66 / - - col1 FROM tab0 AS cor0
----
0
3
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1930
SELECT DISTINCT + + CAST( - + COUNT( + + col0 ) AS SIGNED ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1930
SELECT DISTINCT + + CAST ( - + COUNT ( + + col0 ) AS INTEGER ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT AVG ( DISTINCT + + col1 ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT ALL + 5 * col2 AS col1 FROM tab0 WHERE NOT 56 + - 9 * + col0 BETWEEN - col2 AND ( + 37 * col2 )
----
235
495
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1933
SELECT - ( - CAST( COUNT( * ) AS SIGNED ) ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-1933
SELECT - ( - CAST ( COUNT ( * ) AS INTEGER ) ) AS col2 FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1934
SELECT DISTINCT col2 AS col1 FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN + 33 - CAST( col1 AS SIGNED ) AND col1
----

skipif mysql # not compatible
query I rowsort label-1934
SELECT DISTINCT col2 AS col1 FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN + 33 - CAST ( col1 AS INTEGER ) AND col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1935
SELECT + 27 DIV - col2 - 70 AS col2 FROM tab0
----
-70
-70
-72

skipif mysql # not compatible
query I rowsort label-1935
SELECT + 27 / - col2 - 70 AS col2 FROM tab0
----
-70
-70
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-1936
SELECT DISTINCT - MIN( col2 ) col2 FROM tab2
----
-23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1936
SELECT DISTINCT - MIN ( col2 ) col2 FROM tab2
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1937
SELECT * FROM tab2 WHERE NOT ( + col1 * - 73 ) NOT BETWEEN col2 + + CAST( + col2 - - 16 AS SIGNED ) AND ( col2 )
----

skipif mysql # not compatible
query III rowsort label-1937
SELECT * FROM tab2 WHERE NOT ( + col1 * - 73 ) NOT BETWEEN col2 + + CAST ( + col2 - - 16 AS INTEGER ) AND ( col2 )
----

query I rowsort
SELECT ALL - col1 FROM tab0 WHERE NOT ( col2 + col2 ) <> - col0
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1939
SELECT DISTINCT * FROM tab0 WHERE NOT + CAST( NULL AS DECIMAL ) > ( NULL )
----

skipif mysql # not compatible
query III rowsort label-1939
SELECT DISTINCT * FROM tab0 WHERE NOT + CAST ( NULL AS REAL ) > ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1940
SELECT DISTINCT COUNT( ( 5 ) ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-1940
SELECT DISTINCT COUNT ( ( 5 ) ) AS col0 FROM tab2
----
3

query I rowsort
SELECT 48 * - ( 64 ) AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-3072
-3072
-3072

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1942
SELECT - col2 + - CAST( NULL AS SIGNED ) / - ( - col0 ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1942
SELECT - col2 + - CAST ( NULL AS INTEGER ) / - ( - col0 ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + 24 * col0 FROM tab0
----
2088
2328
360

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) NOT BETWEEN ( NULL ) AND 68 / 94
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 91 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1946
SELECT DISTINCT COUNT( * ) + 89 AS col0 FROM tab1
----
92

skipif mysql # not compatible
query I rowsort label-1946
SELECT DISTINCT COUNT ( * ) + 89 AS col0 FROM tab1
----
92

query I rowsort
SELECT ALL col0 AS col0 FROM tab2 WHERE col0 IS NOT NULL
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1948
SELECT - 81 + + CAST( - col2 AS SIGNED ) AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-128
-180
-91

skipif mysql # not compatible
query I rowsort label-1948
SELECT - 81 + + CAST ( - col2 AS INTEGER ) AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-128
-180
-91

query I rowsort
SELECT DISTINCT - col2 * + ( 17 ) FROM tab0
----
-1683
-170
-799

query I rowsort
SELECT + col1 FROM tab1 WHERE + ( col0 ) / 16 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col2 + - col2 <> ( 87 )
----

query III rowsort
SELECT * FROM tab1 WHERE - 56 / + 89 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 87 col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1954
SELECT - CAST( NULL AS SIGNED ) / - 34 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1954
SELECT - CAST ( NULL AS INTEGER ) / - 34 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1955
SELECT + 21 * COUNT( * ) - + COUNT( * ) AS col1 FROM tab1 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-1955
SELECT + 21 * COUNT ( * ) - + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
60

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) IN ( + 56 + - 21 * + col2 )
----

query I rowsort
SELECT ALL 36 AS col0 FROM tab2 WHERE NOT 45 - col2 BETWEEN ( col2 ) AND ( NULL )
----
36
36
36

onlyif mysql # aggregate syntax: 
query I rowsort label-1958
SELECT + MIN( 71 ) FROM tab2
----
71

skipif mysql # not compatible
query I rowsort label-1958
SELECT + MIN ( 71 ) FROM tab2
----
71

query I rowsort
SELECT + 79 FROM tab2 AS cor0 CROSS JOIN tab0
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

onlyif mysql # aggregate syntax: 
query I rowsort label-1960
SELECT COUNT( * ) * MIN( 22 ) AS col2 FROM tab2 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-1960
SELECT COUNT ( * ) * MIN ( 22 ) AS col2 FROM tab2 AS cor0
----
66

query I rowsort
SELECT + + 66 * - 10 AS col1 FROM tab0 AS cor0
----
-660
-660
-660

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 16 col2 FROM tab0 AS cor0
----
-16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 84 col1 FROM tab0 AS cor0
----
84

query I rowsort
SELECT - ( col0 ) * - col0 AS col2 FROM tab1 AS cor0
----
2601
7225
8281

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col2 * 49 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col2 NOT BETWEEN + col0 * col0 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1967
SELECT DISTINCT + + COUNT( ALL col1 ) * + CAST( + COUNT( * ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-1967
SELECT DISTINCT + + COUNT ( ALL col1 ) * + CAST ( + COUNT ( * ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1968
SELECT + COUNT( * ) * - 14 AS col1 FROM tab2 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-1968
SELECT + COUNT ( * ) * - 14 AS col1 FROM tab2 AS cor0
----
-42

query I rowsort
SELECT - + 92 * - col0 AS col2 FROM tab2 AS cor0
----
4232
5888
6900

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 > ( NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN ( NULL ) AND 60
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 NOT BETWEEN col0 AND 56 * - col1
----

query I rowsort
SELECT DISTINCT 39 * + col0 AS col0 FROM tab2
----
1794
2496
2925

query I rowsort
SELECT ALL - ( col0 ) + + 14 FROM tab2 WHERE NOT ( NULL ) IN ( + col1 )
----

query I rowsort
SELECT ALL 57 * - + 34 AS col2 FROM tab2
----
-1938
-1938
-1938

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1976
SELECT ALL COUNT( - 5 ) AS col1 FROM tab0 WHERE + col2 NOT BETWEEN ( + CAST( col2 AS DECIMAL ) ) AND ( col0 + + 97 )
----
0

skipif mysql # not compatible
query I rowsort label-1976
SELECT ALL COUNT ( - 5 ) AS col1 FROM tab0 WHERE + col2 NOT BETWEEN ( + CAST ( col2 AS REAL ) ) AND ( col0 + + 97 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1977
SELECT ALL + ( CAST( NULL AS SIGNED ) ) / 63 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1977
SELECT ALL + ( CAST ( NULL AS INTEGER ) ) / 63 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - 47 AS col0 FROM tab1 AS cor0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-1979
SELECT + SUM( + 91 ) AS col2 FROM tab2 cor0
----
273

skipif mysql # not compatible
query I rowsort label-1979
SELECT + SUM ( + 91 ) AS col2 FROM tab2 cor0
----
273

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - 65 * col1 ) BETWEEN ( 80 ) AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col1 + col1 IS NOT NULL
----

query I rowsort
SELECT - + 70 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 35707a5d99c98b2657c084a50ff1b073

onlyif mysql # aggregate syntax: 
query I rowsort label-1983
SELECT + - COUNT( * ) + - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-18

skipif mysql # not compatible
query I rowsort label-1983
SELECT + - COUNT ( * ) + - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-1984
SELECT ALL ( + + 41 ) + - col1 - + col0 DIV col2 * col2 col2 FROM tab2 AS cor0
----
-56
-76
-84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1984
SELECT ALL ( + + 41 ) + - col1 - + col0 / col2 * col2 col2 FROM tab2 AS cor0
----
-56
-76
-84

query I rowsort
SELECT ALL - 76 AS col2 FROM tab0 cor0
----
-76
-76
-76

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 19 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1987
SELECT - col1 DIV 63 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1987
SELECT - col1 / 63 FROM tab0 AS cor0
----
-1
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1988
SELECT 75 * MIN( DISTINCT - col2 DIV col1 ) FROM tab1 cor0 WHERE col2 + + col1 + + ( 13 ) > 40
----
-825

skipif mysql # not compatible
query I rowsort label-1988
SELECT 75 * MIN ( DISTINCT - col2 / col1 ) FROM tab1 cor0 WHERE col2 + + col1 + + ( 13 ) > 40
----
-825

query I rowsort
SELECT DISTINCT + + 11 + 31 + + + col2 * col1 AS col0 FROM tab2 cor0
----
1215
3122
3928

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 58 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( - col0 ) IN ( col0 + col0 / col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 6 FROM tab2 AS cor0 WHERE col2 * - col2 NOT BETWEEN - col0 AND NULL
----
6
6
6

query I rowsort
SELECT DISTINCT col1 * col1 + - col2 + - col1 FROM tab2
----
2527
4364
5812

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1994
SELECT - CAST( - - 95 AS SIGNED ) + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1994
SELECT - CAST ( - - 95 AS INTEGER ) + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1995
SELECT ( - col2 ) + + + col0 - 32 DIV col2 DIV + ( col2 + + col0 ) AS col0 FROM tab1
----
-45
23
26

skipif mysql # not compatible
query I rowsort label-1995
SELECT ( - col2 ) + + + col0 - 32 / col2 / + ( col2 + + col0 ) AS col0 FROM tab1
----
-45
23
26

query III rowsort
SELECT * FROM tab2 WHERE ( - - col1 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col0 * - 58 AS col1 FROM tab0
----
-5046
-5626
-870

query I rowsort
SELECT - 63 + col1 FROM tab0
----
-42
-62
18

onlyif mysql # aggregate syntax: 
query I rowsort label-1999
SELECT DISTINCT + MAX( 58 ) - COUNT( col2 ) * + 61 FROM tab0
----
-125

skipif mysql # not compatible
query I rowsort label-1999
SELECT DISTINCT + MAX ( 58 ) - COUNT ( col2 ) * + 61 FROM tab0
----
-125

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2000
SELECT CAST( NULL AS SIGNED ) * + col1 + + 1 + + - col0 / 62 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2000
SELECT CAST ( NULL AS INTEGER ) * + col1 + + 1 + + - col0 / 62 AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2001
SELECT * FROM tab0 WHERE + + CAST( NULL AS SIGNED ) + - + 32 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2001
SELECT * FROM tab0 WHERE + + CAST ( NULL AS INTEGER ) + - + 32 IS NOT NULL
----

query I rowsort
SELECT ALL - 99 + + col2 FROM tab1 AS cor0
----
-3
-31
-40

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL > - 17
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + col0 * col0 * col2 + col2 ) <= NULL
----

query I rowsort
SELECT DISTINCT - col0 + + - 48 FROM tab0 AS cor0
----
-135
-145
-63

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE ( 15 * + col0 ) >= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2007
SELECT col0 * 7 AS col1 FROM tab0 AS cor0 WHERE - col0 + + col2 * - + ( - 34 ) NOT IN ( - CAST( + col2 AS SIGNED ) )
----
105
609
679

skipif mysql # not compatible
query I rowsort label-2007
SELECT col0 * 7 AS col1 FROM tab0 AS cor0 WHERE - col0 + + col2 * - + ( - 34 ) NOT IN ( - CAST ( + col2 AS INTEGER ) )
----
105
609
679

onlyif mysql # DIV for integer division: 
query I rowsort label-2008
SELECT ALL - 49 * 22 DIV - col1 + - 20 FROM tab0
----
-7
1058
31

skipif mysql # not compatible
query I rowsort label-2008
SELECT ALL - 49 * 22 / - col1 + - 20 FROM tab0
----
-7
1058
31

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2009
SELECT - CAST( + CAST( NULL AS DECIMAL ) AS SIGNED ) col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2009
SELECT - CAST ( + CAST ( NULL AS REAL ) AS INTEGER ) col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - + 9 * 87 FROM tab1 AS cor0
----
-783
-783
-783

query I rowsort
SELECT ALL - + 75 AS col1 FROM tab1 AS cor0
----
-75
-75
-75

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 55 NOT BETWEEN NULL AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 8 + col1 col1 FROM tab0 AS cor0 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT col1 AS col0 FROM tab0 cor0 WHERE NOT NULL >= - 81
----

query I rowsort
SELECT + col1 AS col2 FROM tab2 AS cor0 WHERE NOT ( - col1 ) * + 25 <> - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2016
SELECT ALL - MIN( DISTINCT + - col0 ) AS col2 FROM tab2 cor0
----
75

skipif mysql # not compatible
query I rowsort label-2016
SELECT ALL - MIN ( DISTINCT + - col0 ) AS col2 FROM tab2 cor0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2017
SELECT + COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN - col2 * col0 / 85 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-2017
SELECT + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN - col2 * col0 / 85 AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2018
SELECT - COUNT( * ) * + + 59 AS col2 FROM tab2 AS cor0
----
-177

skipif mysql # not compatible
query I rowsort label-2018
SELECT - COUNT ( * ) * + + 59 AS col2 FROM tab2 AS cor0
----
-177

query I rowsort
SELECT + col2 * col0 FROM tab1 AS cor0 WHERE NOT + col1 <= ( - col2 )
----
4896
5015
6188

query I rowsort
SELECT ALL 65 FROM tab2 cor0 WHERE NOT ( ( + + 78 ) / + ( - 84 ) - col0 ) IS NULL
----
65
65
65

query I rowsort
SELECT - 65 * - 75 AS col1 FROM tab0 AS cor0
----
4875
4875
4875

query I rowsort
SELECT 72 - AVG ( col2 + col2 ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + 51 / - col1 AND col0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 * - 18 col2 FROM tab2 AS cor0
----
1044
414
720

query I rowsort
SELECT ALL - col1 * - + 2 AS col2 FROM tab1 AS cor0
----
10
28
94

query III rowsort
SELECT ALL * FROM tab0 WHERE - col0 > ( - + col2 )
----
15
81
47
97
1
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 21 * - col2 * - col2 col1 FROM tab1
----
193536
73101
97104

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 / 83 + - 78 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2028
SELECT + col0 DIV - + col1 FROM tab0
----
-4
-97
0

skipif mysql # not compatible
query I rowsort label-2028
SELECT + col0 / - + col1 FROM tab0
----
-4
-97
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2029
SELECT + col1 col0, 36 + + - CAST( NULL AS SIGNED ) * + col1 FROM tab2
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-2029
SELECT + col1 col0, 36 + + - CAST ( NULL AS INTEGER ) * + col1 FROM tab2
----
51
NULL
67
NULL
77
NULL

query I rowsort
SELECT col0 * col0 FROM tab1 WHERE NOT ( ( 61 - + ( - 60 ) ) IS NULL )
----
2601
7225
8281

query I rowsort
SELECT col0 AS col0 FROM tab0 WHERE NOT ( + + col0 + - ( col2 ) * - - 7 ) IS NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2032
SELECT ALL + SUM( ALL - 19 ) AS col0 FROM tab0
----
-57

skipif mysql # not compatible
query I rowsort label-2032
SELECT ALL + SUM ( ALL - 19 ) AS col0 FROM tab0
----
-57

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 22 <= - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - + 77 + - - 19 AS col2 FROM tab2 AS cor0
----
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * - + col1 col2 FROM tab2 AS cor0
----
1173
3080
3886

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( 10 * - - col2 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col1 * - ( - 44 ) FROM tab0 AS cor0
----
-3564
-44
-924

query III rowsort
SELECT * FROM tab0 WHERE + - 6 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE - col1 + - - col2 * + col1 + + + col2 > ( 51 + - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 66 + - + 52 col0 FROM tab0 cor0
----
-118
-118
-118

query I rowsort
SELECT col2 FROM tab1 cor0 WHERE col0 + col2 <= ( NULL )
----

query II rowsort
SELECT DISTINCT - col2 * + - col0 + + + 42 * + + col2 + 68, col2 AS col2 FROM tab0 AS cor0
----
1358
10
13829
99
2747
47

query I rowsort
SELECT + + 70 FROM tab1 AS cor0 WHERE NULL > ( NULL )
----

query I rowsort
SELECT DISTINCT ( - - col1 ) + 85 AS col2 FROM tab2 AS cor0
----
136
152
162

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2045
SELECT ALL + col0 + 74 - ( - CAST( - - col2 AS SIGNED ) ) FROM tab2 AS cor0
----
143
178
207

skipif mysql # not compatible
query I rowsort label-2045
SELECT ALL + col0 + 74 - ( - CAST ( - - col2 AS INTEGER ) ) FROM tab2 AS cor0
----
143
178
207

query I rowsort
SELECT ALL col1 + + 58 * col2 AS col0 FROM tab1 AS cor0 WHERE col1 * - col0 * + - 82 NOT BETWEEN ( NULL ) AND col0 - + 49 + + ( col0 ) - - col1 / col1 * - 66
----
3427
3991
5582

onlyif mysql # aggregate syntax: 
query I rowsort label-2047
SELECT DISTINCT + MIN( col1 ) + - + 69 FROM tab1 AS cor0
----
-64

skipif mysql # not compatible
query I rowsort label-2047
SELECT DISTINCT + MIN ( col1 ) + - + 69 FROM tab1 AS cor0
----
-64

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( NULL ) NOT BETWEEN - - col2 AND NULL
----

query I rowsort
SELECT - - ( 84 ) AS col1 FROM tab0 WHERE NULL IS NULL
----
84
84
84

query III rowsort
SELECT ALL * FROM tab2 WHERE ( + 60 ) * - col1 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + col0 + col2 * - ( - col2 ) / + - col1 + - col1 * 85 ) NOT BETWEEN - col1 * - col2 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL IS NULL OR NOT NULL IS NULL
----

query I rowsort
SELECT col0 * 38 * + + 37 FROM tab2
----
105450
64676
89984

query III rowsort
SELECT * FROM tab1 WHERE - - 70 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT 22 AS col0, - ( 20 ) FROM tab1
----
22
-20

query I rowsort
SELECT 97 * + - col1 AS col2 FROM tab0
----
-2037
-7857
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2057
SELECT ( COUNT( DISTINCT - 90 ) ) * - 73 AS col0 FROM tab0
----
-73

skipif mysql # not compatible
query I rowsort label-2057
SELECT ( COUNT ( DISTINCT - 90 ) ) * - 73 AS col0 FROM tab0
----
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2058
SELECT ALL 39 * - - CAST( NULL AS SIGNED ) + 23 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2058
SELECT ALL 39 * - - CAST ( NULL AS INTEGER ) + 23 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2059
SELECT - + COUNT( * ) - 82 FROM tab2 AS cor0
----
-85

skipif mysql # not compatible
query I rowsort label-2059
SELECT - + COUNT ( * ) - 82 FROM tab2 AS cor0
----
-85

query I rowsort
SELECT DISTINCT - 58 AS col1 FROM tab0 cor0
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2061
SELECT + CAST( NULL AS SIGNED ) col2 FROM tab2 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2061
SELECT + CAST ( NULL AS INTEGER ) col2 FROM tab2 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT ALL ( + col2 ), col2 + - col1 * + col2 * col2 * + + col2 - - col1 + + col2 AS col0 FROM tab1
----
59
-1026772
68
-14778121
96
-12386098

query I rowsort
SELECT ALL + 95 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2064
SELECT + 2, - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL = ( NULL )
----

skipif mysql # not compatible
query II rowsort label-2064
SELECT + 2, - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL = ( NULL )
----

query II rowsort
SELECT ALL col1 + - col0 AS col1, + col1 AS col2 FROM tab2 WHERE - + ( + + 73 ) + 21 IS NULL
----

query I rowsort
SELECT DISTINCT 81 AS col0 FROM tab2 AS cor0 WHERE NULL = ( col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2067
SELECT * FROM tab1 cor0 WHERE NOT NULL NOT IN ( col0 - - + CAST( + col0 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-2067
SELECT * FROM tab1 cor0 WHERE NOT NULL NOT IN ( col0 - - + CAST ( + col0 AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2068
SELECT DISTINCT + COUNT( * ) * - MAX( - 24 ) AS col2 FROM tab0 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-2068
SELECT DISTINCT + COUNT ( * ) * - MAX ( - 24 ) AS col2 FROM tab0 AS cor0
----
72

query II rowsort
SELECT ALL + 23 AS col0, col2 / + col1 * ( + + 40 ) FROM tab0 AS cor0 WHERE NOT - col0 NOT IN ( - + col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2070
SELECT DISTINCT + + col2 DIV + + col1 + - col1 FROM tab2 WHERE NOT - 48 * - + col2 IS NULL
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-2070
SELECT DISTINCT + + col2 / + + col1 + - col1 FROM tab2 WHERE NOT - 48 * - + col2 IS NULL
----
-51
-67
-77

query I rowsort
SELECT ALL + 43 * - - col0 AS col2 FROM tab2
----
1978
2752
3225

query II rowsort
SELECT - col1 AS col0, + 91 FROM tab0
----
-1
91
-21
91
-81
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2073
SELECT - CAST( 71 AS SIGNED ) FROM tab0
----
-71
-71
-71

skipif mysql # not compatible
query I rowsort label-2073
SELECT - CAST ( 71 AS INTEGER ) FROM tab0
----
-71
-71
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-2074
SELECT ALL COUNT( ALL - + col1 ) col2 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2074
SELECT ALL COUNT ( ALL - + col1 ) col2 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2075
SELECT DISTINCT + COUNT( * ) + 51 AS col0 FROM tab1
----
54

skipif mysql # not compatible
query I rowsort label-2075
SELECT DISTINCT + COUNT ( * ) + 51 AS col0 FROM tab1
----
54

query II rowsort
SELECT col0 AS col2, - 75 + + col0 * + col1 FROM tab1
----
51
639
85
350
91
4202

onlyif mysql # aggregate syntax: 
query I rowsort label-2077
SELECT + MIN( ALL - - 64 ) * - COUNT( * ) col0 FROM tab2
----
-192

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2077
SELECT + MIN ( ALL - - 64 ) * - COUNT ( * ) col0 FROM tab2
----
-192

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 * 0 col1 FROM tab1 cor0
----
0

query I rowsort
SELECT DISTINCT 1 * + col2 * - 34 + - 78 + - ( col2 ) * - col2 AS col2 FROM tab0 AS cor0
----
-318
533
6357

query I rowsort
SELECT DISTINCT + 54 + col1 FROM tab2 cor0
----
105
121
131

query III rowsort
SELECT * FROM tab2 cor0 WHERE - 90 IS NULL
----

query I rowsort
SELECT - col1 * + col2 * + - col2 FROM tab1 AS cor0 WHERE 99 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2083
SELECT DISTINCT - col2 * - 33 * CAST( NULL AS SIGNED ) + + + 12 + - 63 / - col2 - - + col0 * - col1 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2083
SELECT DISTINCT - col2 * - 33 * CAST ( NULL AS INTEGER ) + + + 12 + - 63 / - col2 - - + col0 * - col1 AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + 5 + + 12 + - col1 + + col0 * col2 FROM tab2 AS cor0
----
1024
2500
4300

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2085
SELECT DISTINCT - - 68 - CAST( + col0 AS SIGNED ) + + + col2 FROM tab2 AS cor0
----
44
45
51

skipif mysql # not compatible
query I rowsort label-2085
SELECT DISTINCT - - 68 - CAST ( + col0 AS INTEGER ) + + + col2 FROM tab2 AS cor0
----
44
45
51

query I rowsort
SELECT - - col0 * + col1 + - col0 - 2 * - - col1 FROM tab1 AS cor0
----
330
4092
635

onlyif mysql # DIV for integer division: 
query I rowsort label-2087
SELECT ALL - - ( + col0 ) * - - 27 + + col0 + + col1 DIV col0 * 75 FROM tab2 AS cor0
----
1363
1867
2100

skipif mysql # not compatible
query I rowsort label-2087
SELECT ALL - - ( + col0 ) * - - 27 + + col0 + + col1 / col0 * 75 FROM tab2 AS cor0
----
1363
1867
2100

query I rowsort
SELECT DISTINCT - 69 * + - col0 FROM tab0
----
1035
6003
6693

onlyif mysql # aggregate syntax: 
query I rowsort label-2089
SELECT ALL 44 * + - 1 - - COUNT( * ) AS col1 FROM tab0
----
-41

skipif mysql # not compatible
query I rowsort label-2089
SELECT ALL 44 * + - 1 - - COUNT ( * ) AS col1 FROM tab0
----
-41

query I rowsort
SELECT ALL - col1 * - col0 * 63 - - + col2 - + 88 * + 31 * - - col1 + - col1 / col0 AS col0 FROM tab0 WHERE - col0 BETWEEN NULL AND + + col1
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col2 + + + 20 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 86 * - - 4 + + + 28 * col0 FROM tab2
----
1632
2136
2444

query II rowsort
SELECT DISTINCT ( + + 97 ) col0, 95 * - - col0 * + + col1 AS col1 FROM tab1
----
97
40375
97
406315
97
67830

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2094
SELECT DISTINCT 95 * - col2 AS col2, col2 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
-2185
NULL
-3800
NULL
-5510
NULL

skipif mysql # not compatible
query II rowsort label-2094
SELECT DISTINCT 95 * - col2 AS col2, col2 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
-2185
NULL
-3800
NULL
-5510
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2095
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-2095
SELECT DISTINCT - col1 / + col1 col0 FROM tab2 AS cor0
----
-1

query II rowsort
SELECT col1 * col2, col1 AS col2 FROM tab1 AS cor0
----
1344
14
295
5
3196
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2097
SELECT DISTINCT - ( + COUNT( ALL - - 82 ) ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-2097
SELECT DISTINCT - ( + COUNT ( ALL - - 82 ) ) FROM tab2
----
-3

query I rowsort
SELECT 20 * 91 * - ( - col1 ) + ( 71 ) AS col2 FROM tab1 AS cor0
----
25551
85611
9171

onlyif mysql # aggregate syntax: 
query II rowsort label-2099
SELECT ALL + COUNT( * ) AS col2, + COUNT( * ) - - COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE ( - col1 + - + col0 <= NULL )
----
0
0

skipif mysql # not compatible
query II rowsort label-2099
SELECT ALL + COUNT ( * ) AS col2, + COUNT ( * ) - - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE ( - col1 + - + col0 <= NULL )
----
0
0

query I rowsort
SELECT DISTINCT - ( + 50 ) AS col2 FROM tab2 AS cor0
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-2101
SELECT 35 * + COUNT( * ) + - MAX( ALL + col0 ) FROM tab1 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-2101
SELECT 35 * + COUNT ( * ) + - MAX ( ALL + col0 ) FROM tab1 AS cor0
----
14

onlyif mysql # aggregate syntax: 
query II rowsort label-2102
SELECT - COUNT( * ), 59 AS col2 FROM tab0 AS cor0
----
-3
59

skipif mysql # not compatible
query II rowsort label-2102
SELECT - COUNT ( * ), 59 AS col2 FROM tab0 AS cor0
----
-3
59

query I rowsort
SELECT - col2 AS col2 FROM tab2 cor0 WHERE NOT - col2 IS NOT NULL
----

query II rowsort
SELECT ALL + ( + 33 ) col0, 36 FROM tab1
----
33
36
33
36
33
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2105
SELECT DISTINCT CAST( - MAX( - 96 ) AS SIGNED ) FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-2105
SELECT DISTINCT CAST ( - MAX ( - 96 ) AS INTEGER ) FROM tab1
----
96

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab0 WHERE + col2 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL IN ( col2, col0 / + col0 )
----

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) IN ( + col0 + + - col1, col0 + + + col1 )
----

query I rowsort
SELECT col1 * 27 FROM tab1 AS cor0
----
1269
135
378

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL IN ( - 16 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2111
SELECT ALL - CAST( NULL AS SIGNED ) + + col1 * + col0 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2111
SELECT ALL - CAST ( NULL AS INTEGER ) + + col1 * + col0 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - 26 col1 FROM tab0
----
-2106
-26
-546

query I rowsort
SELECT - col1 FROM tab0 WHERE col0 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2114
SELECT - + SUM( + - col1 ) * + + 5 * - COUNT( * ) * - - 89 + SUM( - col2 ) FROM tab0 AS cor0
----
-137661

skipif mysql # not compatible
query I rowsort label-2114
SELECT - + SUM ( + - col1 ) * + + 5 * - COUNT ( * ) * - - 89 + SUM ( - col2 ) FROM tab0 AS cor0
----
-137661

query I rowsort
SELECT - - col1 + 74 AS col1 FROM tab0 AS cor0
----
155
75
95

query I rowsort
SELECT DISTINCT + + 75 + - col0 FROM tab2 AS cor0
----
0
11
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2117
SELECT - 68 * - + CAST( NULL AS SIGNED ) - ( COUNT( * ) ) FROM tab2 AS cor0 WHERE col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2117
SELECT - 68 * - + CAST ( NULL AS INTEGER ) - ( COUNT ( * ) ) FROM tab2 AS cor0 WHERE col0 IS NULL
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2118
SELECT + - ( - + CAST( NULL AS DECIMAL ) ) * + 87 * + + 28 + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2118
SELECT + - ( - + CAST ( NULL AS REAL ) ) * + 87 * + + 28 + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2119
SELECT DISTINCT + + col2 DIV - + col1 + + - ( col0 ) DIV CAST( + col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2119
SELECT DISTINCT + + col2 / - + col1 + + - ( col0 ) / CAST ( + col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-1

query I rowsort
SELECT - - 97 AS col0 FROM tab2 cor0
----
97
97
97

query I rowsort
SELECT DISTINCT + col2 + - 82 FROM tab0 AS cor0
----
-35
-72
17

onlyif mysql # DIV for integer division: 
query I rowsort label-2122
SELECT ALL col1 DIV - - 10 - + col2 AS col0 FROM tab2 cor0
----
-18
-33
-52

skipif mysql # not compatible
query I rowsort label-2122
SELECT ALL col1 / - - 10 - + col2 AS col0 FROM tab2 cor0
----
-18
-33
-52

query I rowsort
SELECT DISTINCT col1 * + 53 AS col2 FROM tab1
----
2491
265
742

onlyif mysql # aggregate syntax: 
query I rowsort label-2124
SELECT DISTINCT - COUNT( * ) * + 93 - + + 89 FROM tab1
----
-368

skipif mysql # not compatible
query I rowsort label-2124
SELECT DISTINCT - COUNT ( * ) * + 93 - + + 89 FROM tab1
----
-368

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + + 93 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE NOT - - 28 + + - 44 IS NOT NULL
----

query I rowsort
SELECT + 87 * - col2 FROM tab0
----
-4089
-8613
-870

query III rowsort
SELECT * FROM tab1 WHERE NOT 16 - 46 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2129
SELECT ALL COUNT( * ) * - - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2129
SELECT ALL COUNT ( * ) * - - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2130
SELECT - 77, - 80 * + COUNT( ALL col2 ) AS col0 FROM tab2 AS cor0
----
-77
-240

skipif mysql # not compatible
query II rowsort label-2130
SELECT - 77, - 80 * + COUNT ( ALL col2 ) AS col0 FROM tab2 AS cor0
----
-77
-240

query I rowsort
SELECT DISTINCT - ( 43 ) AS col0 FROM tab0 AS cor0
----
-43

query I rowsort
SELECT ALL - 4 * + - 47 AS col0 FROM tab1 AS cor0
----
188
188
188

query I rowsort
SELECT DISTINCT + - 78 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-78

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2134
SELECT ALL * FROM tab1 AS cor0 WHERE + col2 + + ( + + 33 ) * ( + CAST( col1 AS SIGNED ) ) + + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2134
SELECT ALL * FROM tab1 AS cor0 WHERE + col2 + + ( + + 33 ) * ( + CAST ( col1 AS INTEGER ) ) + + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2135
SELECT ALL 88 + + - COUNT( * ) FROM tab1 cor0
----
85

skipif mysql # not compatible
query I rowsort label-2135
SELECT ALL 88 + + - COUNT ( * ) FROM tab1 cor0
----
85

query I rowsort
SELECT - + 5 * - - col0 AS col2 FROM tab1 AS cor0
----
-255
-425
-455

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 60 * + col2 > - col1 * + - col1 / - col2 + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2138
SELECT SUM( + CAST( + col0 AS SIGNED ) ) col0, 90 FROM tab1
----
227
90

skipif mysql # not compatible
query II rowsort label-2138
SELECT SUM ( + CAST ( + col0 AS INTEGER ) ) col0, 90 FROM tab1
----
227
90

query I rowsort
SELECT ALL + col2 AS col2 FROM tab0 WHERE NOT + 99 * - 9 BETWEEN + + col2 AND NULL
----
10
47
99

query II rowsort
SELECT col2, 83 AS col2 FROM tab2
----
23
83
40
83
58
83

query III rowsort
SELECT * FROM tab0 WHERE - 6 NOT BETWEEN NULL AND 22
----

query I rowsort
SELECT DISTINCT - + col0 + + - col1 * col2 * - - 77 * + 17 * - 2 FROM tab0 AS cor0
----
259085
549693
9966711

query I rowsort
SELECT DISTINCT - col0 * - - col0 + - col1 AS col1 FROM tab2
----
-2167
-4173
-5692

query I rowsort
SELECT ALL 99 * - col2 * - - col1 * - 36 AS col2 FROM tab2
----
10977120
13849704
4180572

query I rowsort
SELECT + + 69 - - col1 AS col0 FROM tab0 AS cor0
----
150
70
90

onlyif mysql # aggregate syntax: 
query I rowsort label-2146
SELECT ALL + COUNT( ALL + 81 ) FROM tab0 AS cor0 WHERE NOT - col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2146
SELECT ALL + COUNT ( ALL + 81 ) FROM tab0 AS cor0 WHERE NOT - col0 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2147
SELECT ALL - - COUNT( DISTINCT col1 ) - - - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE ( NOT - + col2 / 62 IS NOT NULL )
----
0

skipif mysql # not compatible
query I rowsort label-2147
SELECT ALL - - COUNT ( DISTINCT col1 ) - - - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE ( NOT - + col2 / 62 IS NOT NULL )
----
0

query I rowsort
SELECT + col2 + + - 34 * - 94 + col1 FROM tab2 AS cor0
----
3270
3313
3321

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 64 col2 FROM tab1 AS cor0
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2150
SELECT ALL + SUM( + + col0 ) * 94 + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2150
SELECT ALL + SUM ( + + col0 ) * 94 + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL col0 * + + 17 FROM tab2
----
1088
1275
782

query I rowsort
SELECT ALL - col1 AS col2 FROM tab0 WHERE 5 IS NOT NULL
----
-1
-21
-81

query I rowsort
SELECT ALL - col0 * - - ( + ( col1 ) ) * + + col1 AS col1 FROM tab2
----
-119646
-336675
-379456

query I rowsort
SELECT + - col0 AS col2 FROM tab2 WHERE NOT + + col2 IS NULL
----
-46
-64
-75

query I rowsort
SELECT 2 * - 94 FROM tab2
----
-188
-188
-188

onlyif mysql # aggregate syntax: 
query I rowsort label-2156
SELECT DISTINCT COUNT( ALL + col0 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2156
SELECT DISTINCT COUNT ( ALL + col0 ) AS col1 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-2157
SELECT ALL COUNT( * ), + SUM( + col0 ) AS col0 FROM tab1 cor0
----
3
227

skipif mysql # not compatible
query II rowsort label-2157
SELECT ALL COUNT ( * ), + SUM ( + col0 ) AS col0 FROM tab1 cor0
----
3
227

query II rowsort
SELECT DISTINCT - 56 AS col0, - 65 FROM tab1 AS cor0
----
-56
-65

onlyif mysql # DIV for integer division: 
query I rowsort label-2159
SELECT + + ( - + 18 ) DIV 67 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2159
SELECT + + ( - + 18 ) / 67 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - 32 * + 56 AS col2 FROM tab1 AS cor0
----
-1792
-1792
-1792

query I rowsort
SELECT ALL col0 * - + col2 / - 13 - - - 85 + - + col0 AS col0 FROM tab2 WHERE NULL >= - + 16 * - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2162
SELECT DISTINCT - 9 DIV 24 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2162
SELECT DISTINCT - 9 / 24 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2163
SELECT ALL + SUM( DISTINCT + 98 ) AS col1 FROM tab2
----
98

skipif mysql # not compatible
query I rowsort label-2163
SELECT ALL + SUM ( DISTINCT + 98 ) AS col1 FROM tab2
----
98

query I rowsort
SELECT + - col0 * 11 + + 91 AS col1 FROM tab2 AS cor0
----
-415
-613
-734

query I rowsort
SELECT ALL - col2 * col2 + + 29 AS col1 FROM tab0 AS cor0
----
-2180
-71
-9772

query I rowsort
SELECT - ( - AVG ( DISTINCT 54 ) ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL >= ( + 29 )
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE 2 * + col2 < NULL
----

query I rowsort
SELECT col1 + col0 - - - col1 FROM tab0 AS cor0
----
15
87
97

query I rowsort
SELECT + + 42 + col0 AS col1 FROM tab1 AS cor0
----
127
133
93

query I rowsort
SELECT ALL - 62 * 94 AS col1 FROM tab1 AS cor0
----
-5828
-5828
-5828

onlyif mysql # aggregate syntax: 
query I rowsort label-2171
SELECT + 57 + ( + COUNT( * ) ) AS col0 FROM tab1 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-2171
SELECT + 57 + ( + COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
60

query I rowsort
SELECT ALL + col0 + + 97 AS col1 FROM tab1 AS cor0
----
148
182
188

onlyif mysql # aggregate syntax: 
query I rowsort label-2173
SELECT ALL + MAX( DISTINCT + 98 ) + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
95

skipif mysql # not compatible
query I rowsort label-2173
SELECT ALL + MAX ( DISTINCT + 98 ) + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
95

query II rowsort
SELECT - + col1 / - 41 / + col2 AS col1, + col2 * - 37 AS col1 FROM tab1 WHERE NULL BETWEEN ( + col0 ) AND + 74
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2175
SELECT - - SUM( ( - col0 ) ) FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-2175
SELECT - - SUM ( ( - col0 ) ) FROM tab2 AS cor0
----
-185

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN col1 AND - 88
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2177
SELECT CAST( NULL AS SIGNED ) + - MIN( - 66 ) / COUNT( DISTINCT + col0 ) * - AVG ( ALL + col2 ) + + 8 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2177
SELECT CAST ( NULL AS INTEGER ) + - MIN ( - 66 ) / COUNT ( DISTINCT + col0 ) * - AVG ( ALL + col2 ) + + 8 AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + col1 AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL 38 - + 11 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

query I rowsort
SELECT + col2 * - - col0 + + col2 AS col1 FROM tab0 AS cor0
----
752
880
9702

query II rowsort
SELECT - + col1, ( col2 ) FROM tab2 AS cor0
----
-51
23
-67
58
-77
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2182
SELECT col1 * - 56 + - 30 + CAST( - + 25 AS SIGNED ) FROM tab2 AS cor0 WHERE NOT col0 = NULL
----

skipif mysql # not compatible
query I rowsort label-2182
SELECT col1 * - 56 + - 30 + CAST ( - + 25 AS INTEGER ) FROM tab2 AS cor0 WHERE NOT col0 = NULL
----

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab2 cor0 WHERE NOT NULL >= + col2 * - 26
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2184
SELECT col1 DIV + + col0 AS col1 FROM tab0 AS cor0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-2184
SELECT col1 / + + col0 AS col1 FROM tab0 AS cor0
----
0
0
5

query II rowsort
SELECT DISTINCT + 89, 74 AS col2 FROM tab0 AS cor0
----
89
74

onlyif mysql # aggregate syntax: 
query II rowsort label-2186
SELECT COUNT( * ) AS col0, ( + 58 ) AS col1 FROM tab0 WHERE NOT ( NOT ( NOT + 70 * - ( col2 ) IS NULL ) )
----
3
58

skipif mysql # not compatible
query II rowsort label-2186
SELECT COUNT ( * ) AS col0, ( + 58 ) AS col1 FROM tab0 WHERE NOT ( NOT ( NOT + 70 * - ( col2 ) IS NULL ) )
----
3
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2187
SELECT ALL MAX( DISTINCT - 65 ) AS col2 FROM tab2
----
-65

skipif mysql # not compatible
query I rowsort label-2187
SELECT ALL MAX ( DISTINCT - 65 ) AS col2 FROM tab2
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-2188
SELECT ALL - MAX( - - col2 ) AS col1 FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-2188
SELECT ALL - MAX ( - - col2 ) AS col1 FROM tab1
----
-96

query I rowsort
SELECT - - ( + + 12 ) FROM tab1 AS cor0
----
12
12
12

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2190
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT - CAST( + - col1 AS SIGNED ) * - - col0 + + - col2 + + 0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2190
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT - CAST ( + - col1 AS INTEGER ) * - - col0 + + - col2 + + 0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2191
SELECT DISTINCT - col2 * + ( + CAST( + 43 AS SIGNED ) ) col0 FROM tab0
----
-2021
-4257
-430

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2191
SELECT DISTINCT - col2 * + ( + CAST ( + 43 AS INTEGER ) ) col0 FROM tab0
----
-2021
-4257
-430

onlyif mysql # aggregate syntax: 
query II rowsort label-2192
SELECT ALL + 1 col2, - COUNT( * ) + 75 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
1
66

skipif mysql # not compatible
query II rowsort label-2192
SELECT ALL + 1 col2, - COUNT ( * ) + 75 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
1
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2193
SELECT ALL - + 53 AS col0 FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) * + ( - col2 ) < + 50 * - - col1 + + 6 + - col2
----

skipif mysql # not compatible
query I rowsort label-2193
SELECT ALL - + 53 AS col0 FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) * + ( - col2 ) < + 50 * - - col1 + + 6 + - col2
----

query I rowsort
SELECT ALL - + 74 AS col1 FROM tab1 cor0
----
-74
-74
-74

query I rowsort
SELECT DISTINCT - 44 + + col0 AS col0 FROM tab0 AS cor0
----
-29
43
53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * ( - col0 ) + - col0 col2 FROM tab0 AS cor0
----
-720
-957
-9700

onlyif mysql # aggregate syntax: 
query I rowsort label-2197
SELECT DISTINCT MIN( DISTINCT + col0 ) AS col1 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-2197
SELECT DISTINCT MIN ( DISTINCT + col0 ) AS col1 FROM tab0
----
15

query III rowsort
SELECT * FROM tab1 WHERE + col1 + + col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2199
SELECT - col0 DIV - - 96 + - col1 + - 67 FROM tab1
----
-114
-72
-81

skipif mysql # not compatible
query I rowsort label-2199
SELECT - col0 / - - 96 + - col1 + - 67 FROM tab1
----
-114
-72
-81

query I rowsort
SELECT DISTINCT + 64 * + col1 FROM tab1
----
3008
320
896

onlyif mysql # aggregate syntax: 
query I rowsort label-2201
SELECT + COUNT( - col1 ) + + + 4 FROM tab1
----
7

skipif mysql # not compatible
query I rowsort label-2201
SELECT + COUNT ( - col1 ) + + + 4 FROM tab1
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-2202
SELECT ALL COUNT( * ) * - 57 AS col1 FROM tab0
----
-171

skipif mysql # not compatible
query I rowsort label-2202
SELECT ALL COUNT ( * ) * - 57 AS col1 FROM tab0
----
-171

query II rowsort
SELECT DISTINCT - - col1 + - col2 AS col1, - 66 FROM tab2 AS cor0
----
28
-66
37
-66
9
-66

query I rowsort
SELECT DISTINCT + 30 FROM tab1 AS cor0 WHERE + col2 / col0 NOT IN ( - col1 )
----
30

query I rowsort
SELECT DISTINCT + col1 + - + col1 + - 97 FROM tab1 cor0
----
-97

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL >= 83 / - - 16
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2207
SELECT ALL + ( + ( + 0 ) ), - MAX( 49 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
0
-49

skipif mysql # not compatible
query II rowsort label-2207
SELECT ALL + ( + ( + 0 ) ), - MAX ( 49 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
0
-49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2208
SELECT - - 70 + + + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2208
SELECT - - 70 + + + CAST ( NULL AS REAL ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT - col1 * ( col0 ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL <= col2
----

query I rowsort
SELECT - 21 * + - col1 + + col0 FROM tab1 AS cor0
----
1078
190
345

query I rowsort
SELECT + - 43 FROM tab2 cor0
----
-43
-43
-43

query II rowsort
SELECT DISTINCT - - col0 * - - col0 AS col2, - ( + - 77 ) AS col2 FROM tab0 AS cor0
----
225
77
7569
77
9409
77

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 IN ( - col1 * - col0 * col1 + + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - col0 AS col0, - col1 FROM tab2
----
-46
-51
-64
-77
-75
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-2215
SELECT + MAX( - col0 ) AS col0 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-2215
SELECT + MAX ( - col0 ) AS col0 FROM tab0
----
-15

query I rowsort
SELECT + col1 + - col2 - - + col0 AS col0 FROM tab0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT + 24 AS col0, + col2 FROM tab2
----
24
23
24
40
24
58

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + - col2 ) = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2219
SELECT 49 * + MIN( ALL - - col0 ) AS col1 FROM tab1 AS cor0
----
2499

skipif mysql # not compatible
query I rowsort label-2219
SELECT 49 * + MIN ( ALL - - col0 ) AS col1 FROM tab1 AS cor0
----
2499

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 > + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2221
SELECT - - SUM( 60 ) FROM tab0 AS cor0
----
180

skipif mysql # not compatible
query I rowsort label-2221
SELECT - - SUM ( 60 ) FROM tab0 AS cor0
----
180

query II rowsort
SELECT - col0, 18 AS col1 FROM tab1 AS cor0
----
-51
18
-85
18
-91
18

query I rowsort
SELECT DISTINCT 75 AS col2 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
75

query I rowsort
SELECT - 32 + - - ( + col1 ) + col2 FROM tab1 AS cor0
----
32
78
83

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 >= + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col1 + col2 + - + 90 * col0 * - + col1 AS col0 FROM tab1 AS cor0
----
38314
385045
64370

query II rowsort
SELECT 43 AS col1, col2 + - + 24 FROM tab0 cor0 WHERE col0 + + col2 IS NULL
----

query I rowsort
SELECT DISTINCT - 46 * - 81 + + 11 AS col2 FROM tab1 AS cor0
----
3737

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2229
SELECT DISTINCT + CAST( + 31 AS SIGNED ) FROM tab0 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-2229
SELECT DISTINCT + CAST ( + 31 AS INTEGER ) FROM tab0 AS cor0
----
31

query III rowsort
SELECT * FROM tab0 cor0 WHERE + 39 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2231
SELECT + 25 + + col1 DIV + col1 + - col1 col2 FROM tab0 AS cor0
----
-55
25
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2231
SELECT + 25 + + col1 / + col1 + - col1 col2 FROM tab0 AS cor0
----
-55
25
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2232
SELECT 22 + - ( + - COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-2232
SELECT 22 + - ( + - COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
25

query I rowsort
SELECT ALL - col0 + - - col2 FROM tab2
----
-17
-23
-24

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL <> + + ( - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2235
SELECT + CAST( + col0 AS SIGNED ) DIV col2 * 40 AS col0 FROM tab1
----
0
40
40

skipif mysql # not compatible
query I rowsort label-2235
SELECT + CAST ( + col0 AS INTEGER ) / col2 * 40 AS col0 FROM tab1
----
0
40
40

query I rowsort
SELECT - + 32 - 29 FROM tab0 AS cor0
----
-61
-61
-61

query I rowsort
SELECT DISTINCT col1 FROM tab2 AS cor0 WHERE - col1 > - 85
----
51
67
77

query I rowsort
SELECT col1 * + - 44 FROM tab1 AS cor0 WHERE + col0 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2239
SELECT + 27 * 43 DIV - 2 - + - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-577

skipif mysql # not compatible
query I rowsort label-2239
SELECT + 27 * 43 / - 2 - + - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-577

onlyif mysql # aggregate syntax: 
query I rowsort label-2240
SELECT - 1 * + COUNT( * ) * + + 41 FROM tab2
----
-123

skipif mysql # not compatible
query I rowsort label-2240
SELECT - 1 * + COUNT ( * ) * + + 41 FROM tab2
----
-123

query I rowsort
SELECT + col2 * - ( - - col1 ) * + col0 + + col2 FROM tab2
----
-197080
-291392
-53935

query II rowsort
SELECT 10, col2 FROM tab0
----
10
10
10
47
10
99

query II rowsort
SELECT - - 72 * + col0, + col2 FROM tab0 AS cor0
----
1080
47
6264
10
6984
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2244
SELECT ALL + - COUNT( - col1 ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2244
SELECT ALL + - COUNT ( - col1 ) AS col1 FROM tab0 AS cor0
----
-3

query II rowsort
SELECT + 97 AS col0, + col2 * + - 18 FROM tab1 AS cor0
----
97
-1062
97
-1224
97
-1728

query I rowsort
SELECT DISTINCT + - 14 FROM tab0 cor0
----
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-2247
SELECT + col1 DIV + 94 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2247
SELECT + col1 / + 94 AS col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2248
SELECT DISTINCT - + CAST( NULL AS SIGNED ) AS col1, + ( + + COUNT( * ) ) AS col1 FROM tab2 AS cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-2248
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) AS col1, + ( + + COUNT ( * ) ) AS col1 FROM tab2 AS cor0
----
NULL
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT + - col1 BETWEEN col0 AND NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2250
SELECT ALL - SUM( col0 ), COUNT( * ) * + + 77 AS col2 FROM tab2 AS cor0
----
-185
231

skipif mysql # not compatible
query II rowsort label-2250
SELECT ALL - SUM ( col0 ), COUNT ( * ) * + + 77 AS col2 FROM tab2 AS cor0
----
-185
231

query I rowsort
SELECT ALL + 70 * - + 3 FROM tab1 AS cor0
----
-210
-210
-210

onlyif mysql # aggregate syntax: 
query I rowsort label-2252
SELECT MAX( DISTINCT + 12 ) FROM tab1
----
12

skipif mysql # not compatible
query I rowsort label-2252
SELECT MAX ( DISTINCT + 12 ) FROM tab1
----
12

query I rowsort
SELECT ALL 19 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2254
SELECT MAX( - 16 ) AS col0 FROM tab1
----
-16

skipif mysql # not compatible
query I rowsort label-2254
SELECT MAX ( - 16 ) AS col0 FROM tab1
----
-16

query I rowsort
SELECT + 2 * - - col0 FROM tab2
----
128
150
92

onlyif mysql # aggregate syntax: 
query I rowsort label-2256
SELECT + COUNT( ALL + + col2 ) FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col0, 12 )
----
0

skipif mysql # not compatible
query I rowsort label-2256
SELECT + COUNT ( ALL + + col2 ) FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col0, 12 )
----
0

query I rowsort
SELECT + col1 + - - col2 * + col2 + + + col0 AS col0 FROM tab1
----
3571
4762
9281

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2258
SELECT CAST( - col0 AS SIGNED ) + - + 67 AS col2 FROM tab0
----
-154
-164
-82

skipif mysql # not compatible
query I rowsort label-2258
SELECT CAST ( - col0 AS INTEGER ) + - + 67 AS col2 FROM tab0
----
-154
-164
-82

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2259
SELECT DISTINCT col0, 59 + - CAST( NULL AS DECIMAL ) FROM tab0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-2259
SELECT DISTINCT col0, 59 + - CAST ( NULL AS REAL ) FROM tab0
----
15
NULL
87
NULL
97
NULL

query I rowsort
SELECT 17 * + col0 FROM tab1
----
1445
1547
867

query I rowsort
SELECT ALL + col0 FROM tab2 AS cor0 WHERE col1 / col2 + - col0 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2262
SELECT DISTINCT - ( COUNT( DISTINCT - - col0 ) ) + - 73 FROM tab1 AS cor0
----
-76

skipif mysql # not compatible
query I rowsort label-2262
SELECT DISTINCT - ( COUNT ( DISTINCT - - col0 ) ) + - 73 FROM tab1 AS cor0
----
-76

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2263
SELECT DISTINCT col0 + + col0 + col1 AS col2, + CAST( - col1 AS SIGNED ) + + - col0 AS col2 FROM tab2 cor0
----
143
-97
205
-141
217
-142

skipif mysql # not compatible
query II rowsort label-2263
SELECT DISTINCT col0 + + col0 + col1 AS col2, + CAST ( - col1 AS INTEGER ) + + - col0 AS col2 FROM tab2 cor0
----
143
-97
205
-141
217
-142

query I rowsort
SELECT ALL + + 52 + - - col0 AS col1 FROM tab1 AS cor0
----
103
137
143

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 - + col0 col2 FROM tab2
----
-104
-133
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2266
SELECT + CAST( + ( + 18 ) AS SIGNED ) * col1 + - CAST( + - col2 AS SIGNED ) FROM tab2
----
1264
1426
941

skipif mysql # not compatible
query I rowsort label-2266
SELECT + CAST ( + ( + 18 ) AS INTEGER ) * col1 + - CAST ( + - col2 AS INTEGER ) FROM tab2
----
1264
1426
941

query I rowsort
SELECT ALL col1 * - - 45 FROM tab2
----
2295
3015
3465

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2268
SELECT CAST( + - col0 AS SIGNED ) + ( - + 47 ) FROM tab1
----
-132
-138
-98

skipif mysql # not compatible
query I rowsort label-2268
SELECT CAST ( + - col0 AS INTEGER ) + ( - + 47 ) FROM tab1
----
-132
-138
-98

query I rowsort
SELECT + 5 + + 60 * - - col1 AS col1 FROM tab0
----
1265
4865
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 69 col0 FROM tab2 WHERE NULL IS NULL
----
69
69
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2271
SELECT DISTINCT - SUM( - col0 ) DIV 5 AS col1 FROM tab0
----
39

skipif mysql # not compatible
query I rowsort label-2271
SELECT DISTINCT - SUM ( - col0 ) / 5 AS col1 FROM tab0
----
39

query II rowsort
SELECT ALL + col2 * 95, 12 FROM tab2 AS cor0 WHERE NOT ( + + 22 * - - col2 * + - 6 * + 9 * + - col1 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2273
SELECT - + COUNT( ALL col0 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2273
SELECT - + COUNT ( ALL col0 ) FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2274
SELECT DISTINCT - CAST( col2 AS SIGNED ) * - CAST( NULL AS SIGNED ) * + col1 + - ( + + 43 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2274
SELECT DISTINCT - CAST ( col2 AS INTEGER ) * - CAST ( NULL AS INTEGER ) * + col1 + - ( + + 43 ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2275
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 99 + + - 33 * 72 NOT BETWEEN + CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-2275
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 99 + + - 33 * 72 NOT BETWEEN + CAST ( NULL AS INTEGER ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2276
SELECT + MIN( DISTINCT + 14 ) FROM tab0 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-2276
SELECT + MIN ( DISTINCT + 14 ) FROM tab0 AS cor0
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-2277
SELECT col1 DIV - ( - col2 ) FROM tab0 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-2277
SELECT col1 / - ( - col2 ) FROM tab0 AS cor0
----
0
1
2

query I rowsort
SELECT col2 * - + ( + - 65 ) FROM tab0 AS cor0
----
3055
6435
650

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2279
SELECT ALL + 43 * - + CAST( - col1 AS SIGNED ) FROM tab2
----
2193
2881
3311

skipif mysql # not compatible
query I rowsort label-2279
SELECT ALL + 43 * - + CAST ( - col1 AS INTEGER ) FROM tab2
----
2193
2881
3311

onlyif mysql # DIV for integer division: 
query I rowsort label-2280
SELECT ALL col0 DIV - ( - col2 ) col0 FROM tab1
----
0
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2280
SELECT ALL col0 / - ( - col2 ) col0 FROM tab1
----
0
1
1

query III rowsort
SELECT * FROM tab2 WHERE NOT - ( + col1 ) BETWEEN NULL AND + col1 + - - col2
----

query I rowsort
SELECT - - 17 * + 39 FROM tab1 WHERE NOT + - 41 * - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2283
SELECT ALL - COUNT( * ) FROM tab1 WHERE - col1 + - col2 / + - col1 <= - ( 34 )
----
-1

skipif mysql # not compatible
query I rowsort label-2283
SELECT ALL - COUNT ( * ) FROM tab1 WHERE - col1 + - col2 / + - col1 <= - ( 34 )
----
-1

query II rowsort
SELECT - col0 AS col0, - col2 FROM tab1 AS cor0
----
-51
-96
-85
-59
-91
-68

query I rowsort
SELECT ( + 18 ) FROM tab0 AS cor0
----
18
18
18

query I rowsort
SELECT ALL 21 + + + col1 AS col0 FROM tab0 AS cor0
----
102
22
42

query I rowsort
SELECT DISTINCT - 64 * - - col0 AS col2 FROM tab0
----
-5568
-6208
-960

onlyif mysql # aggregate syntax: 
query I rowsort label-2288
SELECT + + COUNT( ALL 4 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-2288
SELECT + + COUNT ( ALL 4 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query I rowsort
SELECT - + 37 + ( - + ( + col0 ) ) FROM tab1 cor0
----
-122
-128
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-2290
SELECT DISTINCT COUNT( * ) + - - 94 + + 14 + + 59 FROM tab1 AS cor0
----
170

skipif mysql # not compatible
query I rowsort label-2290
SELECT DISTINCT COUNT ( * ) + - - 94 + + 14 + + 59 FROM tab1 AS cor0
----
170

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2291
SELECT + col2 * - col2 + - CAST( - 86 AS SIGNED ) * + col2 FROM tab2 AS cor0
----
1449
1624
1840

skipif mysql # not compatible
query I rowsort label-2291
SELECT + col2 * - col2 + - CAST ( - 86 AS INTEGER ) * + col2 FROM tab2 AS cor0
----
1449
1624
1840

query I rowsort
SELECT ( 60 ) + + col0 FROM tab0 AS cor0
----
147
157
75

query III rowsort
SELECT * FROM tab2 WHERE col1 * col2 >= NULL
----

query I rowsort
SELECT col2 * + col0 * + col2 * 81 - - - col1 * - col0 AS col2 FROM tab0
----
2685150
706527
77006554

query I rowsort
SELECT DISTINCT col0 FROM tab0 WHERE NOT - - 64 * col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2296
SELECT col1 * + CAST( - + col1 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-2601
-4489
-5929

skipif mysql # not compatible
query I rowsort label-2296
SELECT col1 * + CAST ( - + col1 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-2601
-4489
-5929

query II rowsort
SELECT DISTINCT - col2 * + - ( col0 ) AS col2, + col0 AS col0 FROM tab1 AS cor0
----
4896
51
5015
85
6188
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2298
SELECT DISTINCT - col0 * - CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2298
SELECT DISTINCT - col0 * - CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2299
SELECT DISTINCT + + col0 * + col1 + + CAST( NULL AS SIGNED ) * + col2 AS col2 FROM tab2 AS cor0 WHERE 90 IS NULL
----

skipif mysql # not compatible
query I rowsort label-2299
SELECT DISTINCT + + col0 * + col1 + + CAST ( NULL AS INTEGER ) * + col2 AS col2 FROM tab2 AS cor0 WHERE 90 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2300
SELECT - ( + + 79 ) * - - CAST( NULL AS SIGNED ) * col0 * - - ( 47 ) + - 21 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2300
SELECT - ( + + 79 ) * - - CAST ( NULL AS INTEGER ) * col0 * - - ( 47 ) + - 21 FROM tab0 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + - 26 ) col1 FROM tab1
----
-26
-26
-26

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 95 < + col0
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( + + col1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2304
SELECT ALL - 55 * COUNT( * ) FROM tab1 AS cor0
----
-165

skipif mysql # not compatible
query I rowsort label-2304
SELECT ALL - 55 * COUNT ( * ) FROM tab1 AS cor0
----
-165

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2305
SELECT col2 * col1 AS col2 FROM tab2 AS cor0 WHERE NOT - 55 / CAST( NULL AS SIGNED ) < - col2
----

skipif mysql # not compatible
query I rowsort label-2305
SELECT col2 * col1 AS col2 FROM tab2 AS cor0 WHERE NOT - 55 / CAST ( NULL AS INTEGER ) < - col2
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col0 - + col1, 33 )
----

query I rowsort
SELECT ALL - + col1 * 90 FROM tab1 AS cor0
----
-1260
-4230
-450

onlyif mysql # aggregate syntax: 
query I rowsort label-2308
SELECT + 60 * - 48 * - - COUNT( * ) AS col2 FROM tab0
----
-8640

skipif mysql # not compatible
query I rowsort label-2308
SELECT + 60 * - 48 * - - COUNT ( * ) AS col2 FROM tab0
----
-8640

query I rowsort
SELECT 12 + col1 FROM tab1 WHERE NOT col0 - col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 46 * + col1 col1 FROM tab1
----
2162
230
644

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2311
SELECT + COUNT( * ) * COUNT( * ) DIV - 14 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2311
SELECT + COUNT ( * ) * COUNT ( * ) / - 14 FROM tab0
----
0

query III rowsort
SELECT * FROM tab1 WHERE col2 * + + col1 + col0 + + - 70 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2313
SELECT DISTINCT - CAST( 63 AS SIGNED ) + col1 AS col0 FROM tab0
----
-42
-62
18

skipif mysql # not compatible
query I rowsort label-2313
SELECT DISTINCT - CAST ( 63 AS INTEGER ) + col1 AS col0 FROM tab0
----
-42
-62
18

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2314
SELECT * FROM tab2 WHERE - CAST( col2 AS SIGNED ) + + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2314
SELECT * FROM tab2 WHERE - CAST ( col2 AS INTEGER ) + + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2315
SELECT - CAST( COUNT( ALL + + col1 ) AS SIGNED ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-2315
SELECT - CAST ( COUNT ( ALL + + col1 ) AS INTEGER ) AS col0 FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2316
SELECT 94 + + COUNT( * ) FROM tab2
----
97

skipif mysql # not compatible
query I rowsort label-2316
SELECT 94 + + COUNT ( * ) FROM tab2
----
97

query I rowsort
SELECT ALL - - col0 + - 88 * - 7 + - + col1 + - - col1 AS col2 FROM tab2 AS cor0
----
662
680
691

query I rowsort
SELECT DISTINCT + + col1 + 61 FROM tab0 AS cor0
----
142
62
82

onlyif mysql # DIV for integer division: 
query I rowsort label-2319
SELECT ALL - col0 DIV 58 FROM tab1 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-2319
SELECT ALL - col0 / 58 FROM tab1 AS cor0
----
-1
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2320
SELECT DISTINCT + 84 * - + COUNT( * ) AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-756

skipif mysql # not compatible
query I rowsort label-2320
SELECT DISTINCT + 84 * - + COUNT ( * ) AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-756

query I rowsort
SELECT ALL 6 AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2322
SELECT ALL ( + + col1 ) * + 51 FROM tab1 WHERE NOT + CAST( - col1 AS SIGNED ) IS NOT NULL OR NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-2322
SELECT ALL ( + + col1 ) * + 51 FROM tab1 WHERE NOT + CAST ( - col1 AS INTEGER ) IS NOT NULL OR NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2323
SELECT - + COUNT( * ) - 96 AS col0 FROM tab1 cor0
----
-99

skipif mysql # not compatible
query I rowsort label-2323
SELECT - + COUNT ( * ) - 96 AS col0 FROM tab1 cor0
----
-99

query I rowsort
SELECT DISTINCT 26 + col0 FROM tab0 AS cor0
----
113
123
41

onlyif mysql # aggregate syntax: 
query I rowsort label-2325
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NULL <= NULL AND NOT ( - 75 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2325
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NULL <= NULL AND NOT ( - 75 ) IS NULL
----
0

query I rowsort
SELECT DISTINCT col0 * + col0 FROM tab1 WHERE ( - + col0 ) IS NOT NULL
----
2601
7225
8281

query I rowsort
SELECT col1 + + col2 + + - 85 FROM tab2
----
-11
32
40

query I rowsort
SELECT - 0 + + col2 FROM tab0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2329
SELECT ALL + MIN( ALL 13 ) FROM tab2, tab0 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-2329
SELECT ALL + MIN ( ALL 13 ) FROM tab2, tab0 AS cor0
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-2330
SELECT DISTINCT - MIN( + col0 ) AS col2 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-2330
SELECT DISTINCT - MIN ( + col0 ) AS col2 FROM tab0 AS cor0
----
-15

query I rowsort
SELECT + ( 84 ) FROM tab1
----
84
84
84

query II rowsort
SELECT DISTINCT - - col2 AS col0, col2 + + - col0 FROM tab2 AS cor0
----
23
-23
40
-24
58
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2333
SELECT ALL + CAST( COUNT( col2 ) AS SIGNED ) + - 14 AS col2 FROM tab1 cor0
----
-11

skipif mysql # not compatible
query I rowsort label-2333
SELECT ALL + CAST ( COUNT ( col2 ) AS INTEGER ) + - 14 AS col2 FROM tab1 cor0
----
-11

query I rowsort
SELECT DISTINCT + 37 * + + 37 FROM tab0 AS cor0
----
1369

query I rowsort
SELECT ALL - + 56 * col0 FROM tab0 AS cor0
----
-4872
-5432
-840

query I rowsort
SELECT + + col1 * - - 13 * - ( + col0 ) + + + 36 AS col0 FROM tab2 AS cor0
----
-30462
-64028
-65289

onlyif mysql # aggregate syntax: 
query I rowsort label-2337
SELECT - ( - 3 ) + + - COUNT( * ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2337
SELECT - ( - 3 ) + + - COUNT ( * ) FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2338
SELECT DISTINCT - 28 DIV + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-2338
SELECT DISTINCT - 28 / + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-9

query I rowsort
SELECT - col0 AS col0 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN + col0 AND NULL
----

query II rowsort
SELECT col2 + + col0 AS col2, - 56 FROM tab2
----
104
-56
133
-56
69
-56

query I rowsort
SELECT DISTINCT col1 * 11 * + col2 AS col2 FROM tab1
----
14784
3245
35156

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 28 + - 86 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 66 * 99 AS col1 FROM tab2
----
6534
6534
6534

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - col1 col2 FROM tab1 WHERE 80 IS NOT NULL
----
-196
-2209
-25

query I rowsort
SELECT DISTINCT - col0 + + + col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - 70 + col2 AS col2 FROM tab0
----
-23
-60
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2347
SELECT DISTINCT MAX( + CAST( NULL AS SIGNED ) ) - - 61 AS col2 FROM tab1, tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2347
SELECT DISTINCT MAX ( + CAST ( NULL AS INTEGER ) ) - - 61 AS col2 FROM tab1, tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col1 + + + 34 AS col0 FROM tab1
----
39
48
81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2349
SELECT + CAST( NULL AS SIGNED ) AS col2, 89 FROM tab1 AS cor0
----
NULL
89
NULL
89
NULL
89

skipif mysql # not compatible
query II rowsort label-2349
SELECT + CAST ( NULL AS INTEGER ) AS col2, 89 FROM tab1 AS cor0
----
NULL
89
NULL
89
NULL
89

onlyif mysql # aggregate syntax: 
query I rowsort label-2350
SELECT DISTINCT + SUM( ALL - + col1 ) AS col0 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-2350
SELECT DISTINCT + SUM ( ALL - + col1 ) AS col0 FROM tab1 AS cor0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-2351
SELECT DISTINCT + 93 + + COUNT( * ) FROM tab0 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-2351
SELECT DISTINCT + 93 + + COUNT ( * ) FROM tab0 AS cor0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2352
SELECT ALL + COUNT( - + col1 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2352
SELECT ALL + COUNT ( - + col1 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT 41 AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL AVG ( ALL - 87 ) col2 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN - col1 AND NULL
----
NULL

query II rowsort
SELECT DISTINCT + 1, col0 AS col2 FROM tab0
----
1
15
1
87
1
97

query I rowsort
SELECT ALL col0 * - + 90 FROM tab2
----
-4140
-5760
-6750

onlyif mysql # aggregate syntax: 
query I rowsort label-2357
SELECT DISTINCT SUM( DISTINCT + col1 ) AS col0 FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-2357
SELECT DISTINCT SUM ( DISTINCT + col1 ) AS col0 FROM tab0
----
103

query II rowsort
SELECT ALL - 24 AS col2, 54 FROM tab2
----
-24
54
-24
54
-24
54

query I rowsort
SELECT ALL col1 * - + 22 * col1 AS col2 FROM tab1 WHERE - + 93 IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2360
SELECT ALL col1, 99 DIV 24 AS col0 FROM tab2
----
51
4
67
4
77
4

skipif mysql # not compatible
query II rowsort label-2360
SELECT ALL col1, 99 / 24 AS col0 FROM tab2
----
51
4
67
4
77
4

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2361
SELECT DISTINCT - 65 AS col0, CAST( NULL AS SIGNED ) * col0 + + col0 FROM tab1
----
-65
NULL

skipif mysql # not compatible
query II rowsort label-2361
SELECT DISTINCT - 65 AS col0, CAST ( NULL AS INTEGER ) * col0 + + col0 FROM tab1
----
-65
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2362
SELECT ALL - SUM( - 51 ) AS col0 FROM tab1 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-2362
SELECT ALL - SUM ( - 51 ) AS col0 FROM tab1 AS cor0
----
153

query II rowsort
SELECT DISTINCT + - 67, + 78 AS col2 FROM tab0 AS cor0
----
-67
78

onlyif mysql # aggregate syntax: 
query I rowsort label-2364
SELECT COUNT( + col1 ) col1 FROM tab2 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2364
SELECT COUNT ( + col1 ) col1 FROM tab2 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2365
SELECT + - COUNT( ALL + - 12 ) * - ( + COUNT( * ) ) FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2365
SELECT + - COUNT ( ALL + - 12 ) * - ( + COUNT ( * ) ) FROM tab0 AS cor0
----
9

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN col1 * - col1 AND - col1 * - col0 / + col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col1 <= + - 70
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col0 < - 49
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2369
SELECT ALL - col0 + + + CAST( - + col1 AS SIGNED ) + + col0 * + ( + + col1 ) AS col1 FROM tab2
----
2249
4787
4883

skipif mysql # not compatible
query I rowsort label-2369
SELECT ALL - col0 + + + CAST ( - + col1 AS INTEGER ) + + col0 * + ( + + col1 ) AS col1 FROM tab2
----
2249
4787
4883

query I rowsort
SELECT + col1 * - col0 + 25 FROM tab1
----
-400
-4252
-689

query I rowsort
SELECT col0 + - 88 AS col0 FROM tab2
----
-13
-24
-42

query I rowsort
SELECT col1 + - 78 FROM tab1
----
-31
-64
-73

query I rowsort
SELECT DISTINCT 48 * + + 33 FROM tab2
----
1584

query I rowsort
SELECT DISTINCT - col2 + - 10 AS col1 FROM tab0 AS cor0
----
-109
-20
-57

query I rowsort
SELECT ALL + + 35 + col2 * + + col1 * + col2 AS col2 FROM tab2 AS cor0
----
123235
225423
27014

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col2 FROM tab2 WHERE NOT - 43 BETWEEN ( NULL ) AND ( - col2 )
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2377
SELECT DISTINCT 89 * + MAX( col1 ) AS col2 FROM tab1
----
4183

skipif mysql # not compatible
query I rowsort label-2377
SELECT DISTINCT 89 * + MAX ( col1 ) AS col2 FROM tab1
----
4183

query I rowsort
SELECT DISTINCT + 24 * col2 FROM tab0
----
1128
2376
240

onlyif mysql # DIV for integer division: 
query I rowsort label-2379
SELECT DISTINCT + col1 DIV 85 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2379
SELECT DISTINCT + col1 / 85 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2380
SELECT DISTINCT COUNT( * ) FROM tab2 WHERE NOT 14 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2380
SELECT DISTINCT COUNT ( * ) FROM tab2 WHERE NOT 14 IS NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2381
SELECT ALL * FROM tab1 WHERE ( col0 + CAST( col2 AS SIGNED ) ) <= NULL
----

skipif mysql # not compatible
query III rowsort label-2381
SELECT ALL * FROM tab1 WHERE ( col0 + CAST ( col2 AS INTEGER ) ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2382
SELECT ALL + COUNT( * ) FROM tab1 WHERE ( 99 ) <= + col2
----
0

skipif mysql # not compatible
query I rowsort label-2382
SELECT ALL + COUNT ( * ) FROM tab1 WHERE ( 99 ) <= + col2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - col1 col2 FROM tab1
----
21
54
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2384
SELECT DISTINCT + 63 / CAST( - ( - CAST( NULL AS SIGNED ) ) AS SIGNED ) + COUNT( * ) FROM tab0 WHERE ( CAST( NULL AS SIGNED ) ) BETWEEN 30 * + col2 AND col2 / 76
----
NULL

skipif mysql # not compatible
query I rowsort label-2384
SELECT DISTINCT + 63 / CAST ( - ( - CAST ( NULL AS INTEGER ) ) AS INTEGER ) + COUNT ( * ) FROM tab0 WHERE ( CAST ( NULL AS INTEGER ) ) BETWEEN 30 * + col2 AND col2 / 76
----
NULL

query I rowsort
SELECT DISTINCT + col1 - ( col2 + col1 ) FROM tab2
----
-23
-40
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2386
SELECT CAST( NULL AS SIGNED ) / - COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2386
SELECT CAST ( NULL AS INTEGER ) / - COUNT ( * ) FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 + - col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab1 WHERE - col2 IS NULL
----

query I rowsort
SELECT ALL - 80 + 12 FROM tab1
----
-68
-68
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-2390
SELECT - MAX( ALL + 39 ) FROM tab2
----
-39

skipif mysql # not compatible
query I rowsort label-2390
SELECT - MAX ( ALL + 39 ) FROM tab2
----
-39

query I rowsort
SELECT DISTINCT 38 + col2 * col0 AS col0 FROM tab1
----
4934
5053
6226

onlyif mysql # aggregate syntax: 
query I rowsort label-2392
SELECT + COUNT( ALL col1 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2392
SELECT + COUNT ( ALL col1 ) AS col2 FROM tab1
----
3

query I rowsort
SELECT + ( 12 ) AS col2 FROM tab0
----
12
12
12

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN NULL AND ( + col2 / col0 )
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-2395
SELECT * FROM tab1 WHERE NOT CAST( CAST( col2 AS DECIMAL ) AS SIGNED ) <> - col1 / ( - 52 * col2 )
----

skipif mysql # not compatible
query III rowsort label-2395
SELECT * FROM tab1 WHERE NOT CAST ( CAST ( col2 AS REAL ) AS INTEGER ) <> - col1 / ( - 52 * col2 )
----

query III rowsort
SELECT * FROM tab2 WHERE + 10 <= 1
----

query III rowsort
SELECT ALL * FROM tab1 WHERE + 27 NOT BETWEEN - col1 + - col0 AND + col1 * col2 + col2
----

query I rowsort
SELECT + col1 AS col2 FROM tab0 WHERE col0 NOT IN ( - 11 )
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2399
SELECT DISTINCT 78 - COUNT( * ) col0 FROM tab0 AS cor0 WHERE NOT 57 * - ( col0 ) + ( - col2 + col0 ) <= ( NULL )
----
78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2399
SELECT DISTINCT 78 - COUNT ( * ) col0 FROM tab0 AS cor0 WHERE NOT 57 * - ( col0 ) + ( - col2 + col0 ) <= ( NULL )
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-2400
SELECT + SUM( + col1 ) * + 80 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
15600

skipif mysql # not compatible
query I rowsort label-2400
SELECT + SUM ( + col1 ) * + 80 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
15600

query I rowsort
SELECT col1 * - 51 FROM tab2 AS cor0
----
-2601
-3417
-3927

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2402
SELECT - COUNT( * ) DIV MAX( DISTINCT col1 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2402
SELECT - COUNT ( * ) / MAX ( DISTINCT col1 ) FROM tab0
----
0

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NULL ) BETWEEN col2 / - col2 + col1 AND + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2404
SELECT DISTINCT - col0 + 40 * CAST( - col1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-1971
-285
-611

skipif mysql # not compatible
query I rowsort label-2404
SELECT DISTINCT - col0 + 40 * CAST ( - col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-1971
-285
-611

onlyif mysql # aggregate syntax: 
query I rowsort label-2405
SELECT DISTINCT MAX( ALL + col1 ) + COUNT( * ) col0 FROM tab1 AS cor0
----
50

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2405
SELECT DISTINCT MAX ( ALL + col1 ) + COUNT ( * ) col0 FROM tab1 AS cor0
----
50

query I rowsort
SELECT + 45 * + 60 + + col1 FROM tab0 cor0
----
2701
2721
2781

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN 88 AND - 36
----

query I rowsort
SELECT DISTINCT + col0 + + 42 FROM tab2 AS cor0
----
106
117
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2409
SELECT - col2 + + ( - CAST( NULL AS SIGNED ) + 44 ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2409
SELECT - col2 + + ( - CAST ( NULL AS INTEGER ) + 44 ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 58 + - 57 * col2 FROM tab2 AS cor0
----
-1253
-2222
-3248

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2411
SELECT DISTINCT 65 + CAST( NULL AS SIGNED ) FROM tab1 cor0 WHERE NOT NULL = ( 20 )
----

skipif mysql # not compatible
query I rowsort label-2411
SELECT DISTINCT 65 + CAST ( NULL AS INTEGER ) FROM tab1 cor0 WHERE NOT NULL = ( 20 )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2412
SELECT - CAST( NULL AS DECIMAL ) + - COUNT( * ) AS col2 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2412
SELECT - CAST ( NULL AS REAL ) + - COUNT ( * ) AS col2 FROM tab0 cor0
----
NULL

query I rowsort
SELECT + + col2 + col2 AS col2 FROM tab2 cor0
----
116
46
80

query I rowsort
SELECT ALL + col2 * col1 FROM tab0 WHERE NOT + col1 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2415
SELECT DISTINCT + COUNT( - 53 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2415
SELECT DISTINCT + COUNT ( - 53 ) AS col2 FROM tab0
----
3

query III rowsort
SELECT * FROM tab2 WHERE ( col2 ) BETWEEN col2 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2417
SELECT * FROM tab0 WHERE col0 BETWEEN ( NULL ) AND CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2417
SELECT * FROM tab0 WHERE col0 BETWEEN ( NULL ) AND CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2418
SELECT - col2 AS col2 FROM tab1 WHERE col0 + CAST( NULL AS SIGNED ) NOT BETWEEN NULL AND + col1
----

skipif mysql # not compatible
query I rowsort label-2418
SELECT - col2 AS col2 FROM tab1 WHERE col0 + CAST ( NULL AS INTEGER ) NOT BETWEEN NULL AND + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2419
SELECT DISTINCT - CAST( NULL AS SIGNED ) - + 75 + col2 col1 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2419
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - + 75 + col2 col1 FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2420
SELECT DISTINCT 45 * col1 DIV - 79 AS col0 FROM tab1
----
-2
-26
-7

skipif mysql # not compatible
query I rowsort label-2420
SELECT DISTINCT 45 * col1 / - 79 AS col0 FROM tab1
----
-2
-26
-7

query III rowsort
SELECT * FROM tab1 WHERE NULL < + ( + col1 )
----

query I rowsort
SELECT + + col0 - - col0 AS col0 FROM tab2 AS cor0
----
128
150
92

query I rowsort
SELECT - col2 - ( + col0 ) AS col2 FROM tab0 AS cor0
----
-196
-62
-97

query I rowsort
SELECT 10 * - col1 + - col1 FROM tab0 AS cor0
----
-11
-231
-891

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) < + 33
----

query I rowsort
SELECT DISTINCT - ( + + 16 ) FROM tab2
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-2427
SELECT + ( COUNT( * ) ) AS col2 FROM tab2 WHERE NOT ( - col2 ) IN ( + 98 )
----
3

skipif mysql # not compatible
query I rowsort label-2427
SELECT + ( COUNT ( * ) ) AS col2 FROM tab2 WHERE NOT ( - col2 ) IN ( + 98 )
----
3

query III rowsort
SELECT * FROM tab0 WHERE NOT + - col1 + 19 NOT BETWEEN NULL AND ( col1 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( 68 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2430
SELECT + 9 AS col0, - COUNT( * ) FROM tab0 AS cor0
----
9
-3

skipif mysql # not compatible
query II rowsort label-2430
SELECT + 9 AS col0, - COUNT ( * ) FROM tab0 AS cor0
----
9
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-2431
SELECT + col0 DIV + - 30 + - col2 AS col1 FROM tab1 AS cor0
----
-61
-71
-97

skipif mysql # not compatible
query I rowsort label-2431
SELECT + col0 / + - 30 + - col2 AS col1 FROM tab1 AS cor0
----
-61
-71
-97

query II rowsort
SELECT ALL + - 73, - col2 + + col0 AS col2 FROM tab0 AS cor0
----
-73
-2
-73
-32
-73
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 97 col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-97
-97
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-2434
SELECT ALL + - 79 AS col2, + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-79
3

skipif mysql # not compatible
query II rowsort label-2434
SELECT ALL + - 79 AS col2, + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-79
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2435
SELECT DISTINCT SUM( + 37 ) AS col0 FROM tab2 AS cor0
----
111

skipif mysql # not compatible
query I rowsort label-2435
SELECT DISTINCT SUM ( + 37 ) AS col0 FROM tab2 AS cor0
----
111

onlyif mysql # aggregate syntax: 
query II rowsort label-2436
SELECT - - COUNT( * ) col1, SUM( DISTINCT + 52 ) FROM tab1 AS cor0
----
3
52

skipif mysql # not compatible
query II rowsort label-2436
SELECT - - COUNT ( * ) col1, SUM ( DISTINCT + 52 ) FROM tab1 AS cor0
----
3
52

query II rowsort
SELECT col0, + col0 * + - 65 AS col2 FROM tab1 AS cor0
----
51
-3315
85
-5525
91
-5915

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN - col1 AND + col1
----

query I rowsort
SELECT ( 2 ) AS col1 FROM tab1
----
2
2
2

query I rowsort
SELECT ALL 49 * - ( + - col1 ) * + 8 + - 55 AS col0 FROM tab2
----
19937
26209
30129

query I rowsort
SELECT ALL - 87 * - + col2 AS col1 FROM tab0
----
4089
8613
870

query I rowsort
SELECT ALL ( - col1 ) * - 66 FROM tab0
----
1386
5346
66

query I rowsort
SELECT - col1 AS col2 FROM tab0 WHERE NOT - col0 * + 3 * - col1 IS NOT NULL
----

query I rowsort
SELECT - col1 + - col1 FROM tab1 WHERE NOT - col2 IS NULL
----
-10
-28
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-2445
SELECT - MIN( - 88 ) * - 87 AS col1 FROM tab2 cor0
----
-7656

skipif mysql # not compatible
query I rowsort label-2445
SELECT - MIN ( - 88 ) * - 87 AS col1 FROM tab2 cor0
----
-7656

query II rowsort
SELECT DISTINCT - col2 + - col2 col0, 91 AS col2 FROM tab2 AS cor0
----
-116
91
-46
91
-80
91

onlyif mysql # DIV for integer division: 
query I rowsort label-2447
SELECT + 86 + + + col1 - - col1 DIV 27 * 46 FROM tab2 AS cor0
----
183
245
255

skipif mysql # not compatible
query I rowsort label-2447
SELECT + 86 + + + col1 - - col1 / 27 * 46 FROM tab2 AS cor0
----
183
245
255

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2448
SELECT ALL - col1 + col0 * - col2 FROM tab1 AS cor0 WHERE + CAST( - + col0 AS SIGNED ) NOT BETWEEN ( - col0 + col1 ) AND ( 37 )
----
-4910
-5020
-6235

skipif mysql # not compatible
query I rowsort label-2448
SELECT ALL - col1 + col0 * - col2 FROM tab1 AS cor0 WHERE + CAST ( - + col0 AS INTEGER ) NOT BETWEEN ( - col0 + col1 ) AND ( 37 )
----
-4910
-5020
-6235

query II rowsort
SELECT 24 AS col0, 34 * 56 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
18 values hashing to 349660664ebd80b5ac85a6dbcd25216a

onlyif mysql # aggregate syntax: 
query I rowsort label-2450
SELECT DISTINCT - SUM( + + col0 ) col2 FROM tab2
----
-185

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2450
SELECT DISTINCT - SUM ( + + col0 ) col2 FROM tab2
----
-185

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2451
SELECT * FROM tab1 WHERE col2 * CAST( - col2 AS DECIMAL ) * col0 BETWEEN ( col2 ) AND + col2
----

skipif mysql # not compatible
query III rowsort label-2451
SELECT * FROM tab1 WHERE col2 * CAST ( - col2 AS REAL ) * col0 BETWEEN ( col2 ) AND + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2452
SELECT ALL COUNT( DISTINCT - col1 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2452
SELECT ALL COUNT ( DISTINCT - col1 ) AS col2 FROM tab0
----
3

query II rowsort
SELECT ALL 39 * - col2 AS col1, 32 AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-1560
32
-2262
32
-897
32

onlyif mysql # aggregate syntax: 
query I rowsort label-2454
SELECT - SUM( col0 ) AS col0 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-2454
SELECT - SUM ( col0 ) AS col0 FROM tab1 AS cor0
----
-227

onlyif mysql # aggregate syntax: 
query I rowsort label-2455
SELECT ALL + ( - - 99 ) * + 63 + + COUNT( * ) col0 FROM tab1 cor0
----
6240

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2455
SELECT ALL + ( - - 99 ) * + 63 + + COUNT ( * ) col0 FROM tab1 cor0
----
6240

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + ( 58 ) IS NULL
----

query I rowsort
SELECT - col2 * + + 69 + - - 15 FROM tab0
----
-3228
-675
-6816

query III rowsort
SELECT * FROM tab1 WHERE - col0 BETWEEN + col0 AND - col0
----

query I rowsort
SELECT ALL - 59 - + - col0 AS col2 FROM tab0
----
-44
28
38

onlyif mysql # aggregate syntax: 
query I rowsort label-2460
SELECT + MIN( DISTINCT + - 13 ) + - - COUNT( * ) AS col1 FROM tab2
----
-10

skipif mysql # not compatible
query I rowsort label-2460
SELECT + MIN ( DISTINCT + - 13 ) + - - COUNT ( * ) AS col1 FROM tab2
----
-10

query I rowsort
SELECT + + col0 FROM tab1 WHERE - ( - col0 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2462
SELECT - 39 + + CAST( + + col1 AS SIGNED ) FROM tab1
----
-25
-34
8

skipif mysql # not compatible
query I rowsort label-2462
SELECT - 39 + + CAST ( + + col1 AS INTEGER ) FROM tab1
----
-25
-34
8

onlyif mysql # DIV for integer division: 
query I rowsort label-2463
SELECT + col0 DIV - + col2 + + col1 FROM tab1
----
14
4
46

skipif mysql # not compatible
query I rowsort label-2463
SELECT + col0 / - + col2 + + col1 FROM tab1
----
14
4
46

query I rowsort
SELECT DISTINCT + ( - - 23 ) AS col1 FROM tab1
----
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 13 col0 FROM tab0 AS cor0
----
-13
-13
-13

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL IN ( ( + - 26 ) * 80 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2467
SELECT ALL * FROM tab0 AS cor0 WHERE ( + col0 * CAST( NULL AS SIGNED ) ) NOT IN ( + 50 )
----

skipif mysql # not compatible
query III rowsort label-2467
SELECT ALL * FROM tab0 AS cor0 WHERE ( + col0 * CAST ( NULL AS INTEGER ) ) NOT IN ( + 50 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2468
SELECT - MIN( ALL - - ( + + col1 ) ) AS col2 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2468
SELECT - MIN ( ALL - - ( + + col1 ) ) AS col2 FROM tab0 AS cor0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2469
SELECT DISTINCT 13 * - + 15, - col1 * CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
-195
NULL

skipif mysql # not compatible
query II rowsort label-2469
SELECT DISTINCT 13 * - + 15, - col1 * CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
-195
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2470
SELECT DISTINCT + ( col2 ) FROM tab2 WHERE NOT - CAST( NULL AS SIGNED ) / + col0 * + - 24 < ( - 51 * - col1 + + col2 )
----

skipif mysql # not compatible
query I rowsort label-2470
SELECT DISTINCT + ( col2 ) FROM tab2 WHERE NOT - CAST ( NULL AS INTEGER ) / + col0 * + - 24 < ( - 51 * - col1 + + col2 )
----

query I rowsort
SELECT ALL + col1 AS col1 FROM tab1 AS cor0 WHERE NOT col1 BETWEEN ( NULL ) AND NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2472
SELECT - + col0 * col1 * 38 col0, + 78 DIV + col0 AS col2 FROM tab1 AS cor0
----
-16150
0
-162526
0
-27132
1

skipif mysql # not compatible
query II rowsort label-2472
SELECT - + col0 * col1 * 38 col0, + 78 / + col0 AS col2 FROM tab1 AS cor0
----
-16150
0
-162526
0
-27132
1

query II rowsort
SELECT DISTINCT - 28 * - col1 AS col0, - col0 AS col1 FROM tab2 AS cor0
----
1428
-46
1876
-75
2156
-64

query I rowsort
SELECT - ( + 26 ) AS col1 FROM tab0
----
-26
-26
-26

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2475
SELECT ALL - 29 DIV - CAST( + col1 AS SIGNED ), col2 AS col2 FROM tab0
----
0
47
1
10
29
99

skipif mysql # not compatible
query II rowsort label-2475
SELECT ALL - 29 / - CAST ( + col1 AS INTEGER ), col2 AS col2 FROM tab0
----
0
47
1
10
29
99

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 44 IS NOT NULL
----

query II rowsort
SELECT + col2, + 44 FROM tab2
----
23
44
40
44
58
44

query II rowsort
SELECT ALL - 85 AS col2, 48 FROM tab1
----
-85
48
-85
48
-85
48

query I rowsort
SELECT ALL - - col0 AS col1 FROM tab0 WHERE col2 - ( + col0 ) = col2
----

query I rowsort
SELECT ALL col0 + - + col1 * + 76 FROM tab2
----
-3830
-5017
-5788

query I rowsort
SELECT - - ( 52 ) AS col2 FROM tab1 AS cor0
----
52
52
52

query I rowsort
SELECT DISTINCT - - 2 + + col2 AS col1 FROM tab1 AS cor0
----
61
70
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2483
SELECT DISTINCT + 16 DIV + + COUNT( * ) FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-2483
SELECT DISTINCT + 16 / + + COUNT ( * ) FROM tab1
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-2484
SELECT DISTINCT + col1 DIV - 43 + - + 37 AS col2 FROM tab2
----
-38

skipif mysql # not compatible
query I rowsort label-2484
SELECT DISTINCT + col1 / - 43 + - + 37 AS col2 FROM tab2
----
-38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2485
SELECT DISTINCT MAX( DISTINCT + 2 ) DIV - 41 AS col0 FROM tab2, tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2485
SELECT DISTINCT MAX ( DISTINCT + 2 ) / - 41 AS col0 FROM tab2, tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2486
SELECT + - COUNT( DISTINCT + - col2 ) + + - ( - ( - - COUNT( ALL col1 ) ) ) AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2486
SELECT + - COUNT ( DISTINCT + - col2 ) + + - ( - ( - - COUNT ( ALL col1 ) ) ) AS col0 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2487
SELECT ALL COUNT( * ) + - 84 AS col2 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-2487
SELECT ALL COUNT ( * ) + - 84 AS col2 FROM tab0 AS cor0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-2488
SELECT COUNT( * ) * + - 67 + + 62 FROM tab1 AS cor0
----
-139

skipif mysql # not compatible
query I rowsort label-2488
SELECT COUNT ( * ) * + - 67 + + 62 FROM tab1 AS cor0
----
-139

query I rowsort
SELECT 29 + + 64 AS col1 FROM tab0 AS cor0
----
93
93
93

query I rowsort
SELECT + + ( - + col0 ) + - col0 AS col2 FROM tab1 AS cor0
----
-102
-170
-182

query I rowsort
SELECT ALL 46 * + col2 AS col1 FROM tab0 AS cor0
----
2162
4554
460

query I rowsort
SELECT - col2 + 2 AS col0 FROM tab0 AS cor0
----
-45
-8
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2493
SELECT - CAST( + 40 AS SIGNED ) FROM tab1 cor0
----
-40
-40
-40

skipif mysql # not compatible
query I rowsort label-2493
SELECT - CAST ( + 40 AS INTEGER ) FROM tab1 cor0
----
-40
-40
-40

query I rowsort
SELECT ALL col2 AS col0 FROM tab1 AS cor0 WHERE col0 * + col2 + 68 IS NOT NULL
----
59
68
96

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 + - 95 <= NULL
----

query I rowsort
SELECT DISTINCT col0 * + - col0 + col1 + - - 11 - 94 FROM tab0 cor0
----
-227
-7631
-9491

query III rowsort
SELECT * FROM tab0 WHERE 87 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2498
SELECT ALL - MAX( DISTINCT col0 ) FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-2498
SELECT ALL - MAX ( DISTINCT col0 ) FROM tab1
----
-91

query I rowsort
SELECT DISTINCT col0 - - ( 53 ) + col0 FROM tab0
----
227
247
83

onlyif mysql # aggregate syntax: 
query I rowsort label-2500
SELECT + COUNT( * ) * - COUNT( * ) * - - COUNT( * ) - + ( COUNT( * ) ) AS col1 FROM tab1
----
-30

skipif mysql # not compatible
query I rowsort label-2500
SELECT + COUNT ( * ) * - COUNT ( * ) * - - COUNT ( * ) - + ( COUNT ( * ) ) AS col1 FROM tab1
----
-30

query III rowsort
SELECT * FROM tab1 WHERE NULL <= NULL AND + col1 < + col2
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 > 57
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col1 + - col1 = - 0
----

query I rowsort
SELECT 36 FROM tab0 AS cor0 WHERE NOT 68 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col0 * - ( - + col1 ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - - ( ( - 50 ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + col2 AS col1, 59 + col0 * - col2 + + - 89 FROM tab2
----
23
-1088
40
-2590
58
-4380

onlyif mysql # DIV for integer division: 
query II rowsort label-2508
SELECT DISTINCT - ( + + col1 ), col0 DIV + 79 AS col0 FROM tab1
----
-14
0
-47
1
-5
1

skipif mysql # not compatible
query II rowsort label-2508
SELECT DISTINCT - ( + + col1 ), col0 / + 79 AS col0 FROM tab1
----
-14
0
-47
1
-5
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2509
SELECT - MAX( ALL + 53 ) * - 41 FROM tab2
----
2173

skipif mysql # not compatible
query I rowsort label-2509
SELECT - MAX ( ALL + 53 ) * - 41 FROM tab2
----
2173

query I rowsort
SELECT - - 85 * - col2 AS col1 FROM tab2 AS cor0
----
-1955
-3400
-4930

onlyif mysql # aggregate syntax: 
query I rowsort label-2511
SELECT DISTINCT MIN( col2 ) FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-2511
SELECT DISTINCT MIN ( col2 ) FROM tab2 AS cor0
----
23

query I rowsort
SELECT DISTINCT - 30 * - col1 AS col0 FROM tab1 AS cor0
----
1410
150
420

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( 63 ) NOT BETWEEN - 58 + + + col2 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2514
SELECT - CAST( NULL AS SIGNED ) * - col1 * + col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2514
SELECT - CAST ( NULL AS INTEGER ) * - col1 * + col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2515
SELECT + - col0 * + + CAST( NULL AS DECIMAL ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2515
SELECT + - col0 * + + CAST ( NULL AS REAL ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2516
SELECT DISTINCT COUNT( * ) * - ( + + 18 ) FROM tab1
----
-54

skipif mysql # not compatible
query I rowsort label-2516
SELECT DISTINCT COUNT ( * ) * - ( + + 18 ) FROM tab1
----
-54

query II rowsort
SELECT ALL + col2 * + col1 * + col2 AS col0, 46 * - + 97 FROM tab1
----
129024
-4462
17405
-4462
217328
-4462

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL IN ( - ( - 75 ) * 99, + 78 / col0 * 40 - - - ( + col2 ) + - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2519
SELECT ALL - + COUNT( * ) + COUNT( * ) FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-2519
SELECT ALL - + COUNT ( * ) + COUNT ( * ) FROM tab2 cor0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-2520
SELECT DISTINCT + 59 AS col0, - col2 DIV col0 - + col0 FROM tab2
----
59
-46
59
-64
59
-75

skipif mysql # not compatible
query II rowsort label-2520
SELECT DISTINCT + 59 AS col0, - col2 / col0 - + col0 FROM tab2
----
59
-46
59
-64
59
-75

query I rowsort
SELECT ALL col0 * - col2 * 48 FROM tab1
----
-235008
-240720
-297024

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 AS col1, + 79 col2 FROM tab1
----
51
79
85
79
91
79

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2523
SELECT DISTINCT - 44 + + col0 + + 71 * + CAST( - col1 AS SIGNED ) + + CAST( - - 41 AS SIGNED ) / + col0 * - - 20, - col0 AS col1 FROM tab2 AS cor0 WHERE NOT + col1 IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-2523
SELECT DISTINCT - 44 + + col0 + + 71 * + CAST ( - col1 AS INTEGER ) + + CAST ( - - 41 AS INTEGER ) / + col0 * - - 20, - col0 AS col1 FROM tab2 AS cor0 WHERE NOT + col1 IS NOT NULL
----

query I rowsort
SELECT ALL - 76 * + col0 FROM tab2 AS cor0
----
-3496
-4864
-5700

query I rowsort
SELECT ALL + 67 + - - 38 FROM tab0 AS cor0
----
105
105
105

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 IN ( 90, 1 + + ( - ( 3 ) ), col0 * col2 )
----

query I rowsort
SELECT DISTINCT col1 * - col1 + - 46 FROM tab2 AS cor0
----
-2647
-4535
-5975

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2528
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NOT + + CAST( NULL AS DECIMAL ) > NULL )
----

skipif mysql # not compatible
query III rowsort label-2528
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NOT + + CAST ( NULL AS REAL ) > NULL )
----

query I rowsort
SELECT ALL + 34 * - 30 + col2 + + + col1 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL col0 + - col2 + - col0 AS col2 FROM tab1
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-2531
SELECT ALL - COUNT( * ) - 43 AS col2 FROM tab0
----
-46

skipif mysql # not compatible
query I rowsort label-2531
SELECT ALL - COUNT ( * ) - 43 AS col2 FROM tab0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-2532
SELECT DISTINCT - ( - - 92 ) - SUM( DISTINCT col0 ) AS col0 FROM tab2
----
-277

skipif mysql # not compatible
query I rowsort label-2532
SELECT DISTINCT - ( - - 92 ) - SUM ( DISTINCT col0 ) AS col0 FROM tab2
----
-277

query I rowsort
SELECT 11 * - col1 + + - col0 AS col2 FROM tab0
----
-108
-318
-906

query I rowsort
SELECT col1 + + - 96 FROM tab0
----
-15
-75
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col0 ) * col2 - col2 col2 FROM tab1
----
4800
4956
6120

onlyif mysql # aggregate syntax: 
query I rowsort label-2536
SELECT 27 * + MAX( - - 11 ) * SUM( - col0 ) FROM tab1
----
-67419

skipif mysql # not compatible
query I rowsort label-2536
SELECT 27 * + MAX ( - - 11 ) * SUM ( - col0 ) FROM tab1
----
-67419

onlyif mysql # aggregate syntax: 
query I rowsort label-2537
SELECT DISTINCT - 32 * + MAX( + - 76 ) AS col1 FROM tab0
----
2432

skipif mysql # not compatible
query I rowsort label-2537
SELECT DISTINCT - 32 * + MAX ( + - 76 ) AS col1 FROM tab0
----
2432

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2538
SELECT ALL col1 + - col0 AS col0 FROM tab2 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) < NULL
----

skipif mysql # not compatible
query I rowsort label-2538
SELECT ALL col1 + - col0 AS col0 FROM tab2 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2539
SELECT ALL + CAST( + + 31 AS SIGNED ) FROM tab0 AS cor0
----
31
31
31

skipif mysql # not compatible
query I rowsort label-2539
SELECT ALL + CAST ( + + 31 AS INTEGER ) FROM tab0 AS cor0
----
31
31
31

onlyif mysql # aggregate syntax: 
query I rowsort label-2540
SELECT - ( - SUM( - + 99 ) ) AS col0 FROM tab2 AS cor0
----
-297

skipif mysql # not compatible
query I rowsort label-2540
SELECT - ( - SUM ( - + 99 ) ) AS col0 FROM tab2 AS cor0
----
-297

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col0 + col1 / + - 6 <= col1
----

query II rowsort
SELECT ALL + ( + - col1 ) col1, col2 AS col2 FROM tab0 AS cor0
----
-1
99
-21
10
-81
47

query I rowsort
SELECT col2 AS col1 FROM tab0 AS cor0 WHERE NOT + col2 IS NULL
----
10
47
99

query I rowsort
SELECT DISTINCT + + 64 AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
64

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2545
SELECT CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT + CAST( NULL AS DECIMAL ) * 52 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2545
SELECT CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT + CAST ( NULL AS REAL ) * 52 IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT + - col0 * 87 - 66 FROM tab0 AS cor0
----
-1371
-7635
-8505

onlyif mysql # aggregate syntax: 
query I rowsort label-2547
SELECT DISTINCT 84 + - + COUNT( * ) AS col2 FROM tab2 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-2547
SELECT DISTINCT 84 + - + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - + col0 col2 FROM tab2 cor0
----
-128
-150
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2549
SELECT + COUNT( + - CAST( + col2 AS SIGNED ) ) DIV COUNT( * ) FROM tab2 AS cor0 WHERE NOT ( col1 ) IS NULL
----
1

skipif mysql # not compatible
query I rowsort label-2549
SELECT + COUNT ( + - CAST ( + col2 AS INTEGER ) ) / COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( col1 ) IS NULL
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2550
SELECT SUM( DISTINCT - col2 ) + + COUNT( * ) FROM tab2 AS cor0
----
-118

skipif mysql # not compatible
query I rowsort label-2550
SELECT SUM ( DISTINCT - col2 ) + + COUNT ( * ) FROM tab2 AS cor0
----
-118

onlyif mysql # aggregate syntax: 
query I rowsort label-2551
SELECT COUNT( ALL + col2 ) + + 28 FROM tab0
----
31

skipif mysql # not compatible
query I rowsort label-2551
SELECT COUNT ( ALL + col2 ) + + 28 FROM tab0
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2552
SELECT col1 / 11 * - CAST( NULL AS SIGNED ) * 87 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2552
SELECT col1 / 11 * - CAST ( NULL AS INTEGER ) * 87 AS col2 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE 19 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2554
SELECT + 47 * - - 54 * CAST( NULL AS SIGNED ) * - col2 * 86 / 32 * col2 AS col0 FROM tab1 WHERE NULL NOT BETWEEN NULL AND + + col0 + + 7 - + - col1
----

skipif mysql # not compatible
query I rowsort label-2554
SELECT + 47 * - - 54 * CAST ( NULL AS INTEGER ) * - col2 * 86 / 32 * col2 AS col0 FROM tab1 WHERE NULL NOT BETWEEN NULL AND + + col0 + + 7 - + - col1
----

query I rowsort
SELECT + + col1 FROM tab2 WHERE col1 >= + - 18
----
51
67
77

query II rowsort
SELECT col0 col0, col1 AS col2 FROM tab0 AS cor0
----
15
81
87
21
97
1

query I rowsort
SELECT DISTINCT + col2 + - + col0 AS col0 FROM tab0 AS cor0
----
-77
2
32

onlyif mysql # aggregate syntax: 
query I rowsort label-2558
SELECT + MIN( DISTINCT + ( - - col2 ) ) FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-2558
SELECT + MIN ( DISTINCT + ( - - col2 ) ) FROM tab1 AS cor0
----
59

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE ( + 89 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2560
SELECT DISTINCT + COUNT( * ) * 25 * + + 72 FROM tab1
----
5400

skipif mysql # not compatible
query I rowsort label-2560
SELECT DISTINCT + COUNT ( * ) * 25 * + + 72 FROM tab1
----
5400

query I rowsort
SELECT DISTINCT + col0 * col1 + + col2 - col1 FROM tab0 AS cor0
----
1181
1816
195

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2562
SELECT + - SUM( ALL + CAST( col0 AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-2562
SELECT + - SUM ( ALL + CAST ( col0 AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
-227

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2563
SELECT ALL - + COUNT( * ) DIV 77 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2563
SELECT ALL - + COUNT ( * ) / 77 AS col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT - col0 * - col1 * + + col2 FROM tab0 AS cor0
----
18270
57105
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-2565
SELECT ALL 88 * - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-264

skipif mysql # not compatible
query I rowsort label-2565
SELECT ALL 88 * - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-264

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2566
SELECT * FROM tab1 AS cor0 WHERE - CAST( NULL AS SIGNED ) + 75 * - 40 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2566
SELECT * FROM tab1 AS cor0 WHERE - CAST ( NULL AS INTEGER ) + 75 * - 40 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2567
SELECT - - MAX( ALL + + 68 ) AS col2 FROM tab2 cor0
----
68

skipif mysql # not compatible
query I rowsort label-2567
SELECT - - MAX ( ALL + + 68 ) AS col2 FROM tab2 cor0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-2568
SELECT + 68 * - + ( COUNT( + + 66 ) ) * ( - 23 ) FROM tab0 AS cor0
----
4692

skipif mysql # not compatible
query I rowsort label-2568
SELECT + 68 * - + ( COUNT ( + + 66 ) ) * ( - 23 ) FROM tab0 AS cor0
----
4692

query I rowsort
SELECT DISTINCT - col1 + - + col0 FROM tab2 AS cor0
----
-141
-142
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 - + col2 col2 FROM tab2 AS cor0
----
-117
-125
-74

query I rowsort
SELECT DISTINCT + col0 - - 7 AS col0 FROM tab1
----
58
92
98

query I rowsort
SELECT 55 * - + col1 AS col2 FROM tab1
----
-2585
-275
-770

query II rowsort
SELECT + col2, - col2 AS col0 FROM tab1 WHERE NOT NULL < NULL
----

query II rowsort
SELECT col0 AS col2, 23 FROM tab2
----
46
23
64
23
75
23

query I rowsort
SELECT ALL 97 * - + col1 AS col2 FROM tab2
----
-4947
-6499
-7469

query III rowsort
SELECT * FROM tab0 WHERE NOT - - 36 NOT BETWEEN - col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2577
SELECT DISTINCT COUNT( * ) * SUM( - + col0 ) AS col0 FROM tab2
----
-555

skipif mysql # not compatible
query I rowsort label-2577
SELECT DISTINCT COUNT ( * ) * SUM ( - + col0 ) AS col0 FROM tab2
----
-555

query I rowsort
SELECT - + col2 AS col2 FROM tab0 AS cor0 WHERE NOT - 57 * + col0 * 79 = NULL
----

query I rowsort
SELECT ALL col0 * + + col0 AS col0 FROM tab1
----
2601
7225
8281

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2580
SELECT DISTINCT * FROM tab0 WHERE + ( + CAST( + col2 AS SIGNED ) ) * col1 + col0 IS NULL
----

skipif mysql # not compatible
query III rowsort label-2580
SELECT DISTINCT * FROM tab0 WHERE + ( + CAST ( + col2 AS INTEGER ) ) * col1 + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2581
SELECT - - MAX( + col2 ) AS col1 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-2581
SELECT - - MAX ( + col2 ) AS col1 FROM tab0 AS cor0
----
99

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 NOT BETWEEN + col0 * + - col2 AND - 24 / col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 col1 FROM tab1 cor0 WHERE 22 * + - col2 * - + col2 BETWEEN + 50 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2584
SELECT ALL SUM( ALL col0 ) + + 56 AS col1 FROM tab0 cor0
----
255

skipif mysql # not compatible
query I rowsort label-2584
SELECT ALL SUM ( ALL col0 ) + + 56 AS col1 FROM tab0 cor0
----
255

query I rowsort
SELECT - col1 AS col0 FROM tab0 cor0 WHERE NOT + col0 * + col0 * + 56 < NULL
----

query I rowsort
SELECT ALL - 35 AS col0 FROM tab1 cor0
----
-35
-35
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-2587
SELECT - 16 DIV - - col1 * - 35 * 34 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2587
SELECT - 16 / - - col1 * - 35 * 34 AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT 17 * - + col2 FROM tab2
----
-391
-680
-986

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 80 + col2 * 81 col0 FROM tab0
----
3887
8099
890

query II rowsort
SELECT ALL - col2 col2, + 46 AS col0 FROM tab2
----
-23
46
-40
46
-58
46

query I rowsort
SELECT ALL 49 + + col2 FROM tab1
----
108
117
145

query I rowsort
SELECT 87 + + + 81 AS col0 FROM tab1
----
168
168
168

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab1 WHERE NOT + - col1 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2594
SELECT col2 + - 17 + + CAST( + - col2 AS SIGNED ) FROM tab2
----
-17
-17
-17

skipif mysql # not compatible
query I rowsort label-2594
SELECT col2 + - 17 + + CAST ( + - col2 AS INTEGER ) FROM tab2
----
-17
-17
-17

query I rowsort
SELECT + + col2 + - - col2 - 11 * - col2 AS col0 FROM tab0 AS cor0
----
1287
130
611

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2596
SELECT + + col0 + + CAST( col1 AS SIGNED ) * col0 FROM tab1 AS cor0
----
4368
510
765

skipif mysql # not compatible
query I rowsort label-2596
SELECT + + col0 + + CAST ( col1 AS INTEGER ) * col0 FROM tab1 AS cor0
----
4368
510
765

onlyif mysql # aggregate syntax: 
query I rowsort label-2597
SELECT - + ( - - SUM( + ( - col2 ) ) ) + + 25 AS col2 FROM tab1 AS cor0
----
248

skipif mysql # not compatible
query I rowsort label-2597
SELECT - + ( - - SUM ( + ( - col2 ) ) ) + + 25 AS col2 FROM tab1 AS cor0
----
248

query I rowsort
SELECT ALL + 39 AS col1 FROM tab1 AS cor0 WHERE + col2 / + - col2 IS NOT NULL
----
39
39
39

query I rowsort
SELECT ALL - + col2 + + 40 FROM tab0 AS cor0
----
-59
-7
30

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2600
SELECT DISTINCT col1 * - col2 + + CAST( + col1 AS SIGNED ) + + + 5 + + - col1 * - ( - col1 ) - - col2 FROM tab0 WHERE NOT col0 * + CAST( - col2 AS DECIMAL ) + + col2 + - - 2 IN ( - CAST( 72 AS SIGNED ) / + col1 + - - col1, col0 * - col0 )
----
-10235
-615
5

skipif mysql # not compatible
query I rowsort label-2600
SELECT DISTINCT col1 * - col2 + + CAST ( + col1 AS INTEGER ) + + + 5 + + - col1 * - ( - col1 ) - - col2 FROM tab0 WHERE NOT col0 * + CAST ( - col2 AS REAL ) + + col2 + - - 2 IN ( - CAST ( 72 AS INTEGER ) / + col1 + - - col1, col0 * - col0 )
----
-10235
-615
5

query I rowsort
SELECT col2 * + 95 AS col2 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - 20 AS col1 FROM tab2 cor0 WHERE col0 IS NULL
----

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab2 AS cor0 WHERE + col0 BETWEEN + - ( - + ( - + ( col2 ) ) ) + col1 + col2 AND ( + col1 + + col1 )
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2604
SELECT + 52 + + 43 + COUNT( * ) AS col0 FROM tab0 AS cor0
----
98

skipif mysql # not compatible
query I rowsort label-2604
SELECT + 52 + + 43 + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2605
SELECT ALL + - CAST( col0 AS SIGNED ) FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-2605
SELECT ALL + - CAST ( col0 AS INTEGER ) FROM tab1 AS cor0
----
-51
-85
-91

query II rowsort
SELECT DISTINCT 54 * - 90, col2 AS col2 FROM tab0
----
-4860
10
-4860
47
-4860
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2607
SELECT ALL - 90 * - CAST( NULL AS SIGNED ) * - 90 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2607
SELECT ALL - 90 * - CAST ( NULL AS INTEGER ) * - 90 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - col0 ) = + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + - col1 FROM tab2 WHERE + 13 = - col1 / col0 - - - col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2610
SELECT ALL - MAX( - CAST( + - 68 AS SIGNED ) ) FROM tab0
----
-68

skipif mysql # not compatible
query I rowsort label-2610
SELECT ALL - MAX ( - CAST ( + - 68 AS INTEGER ) ) FROM tab0
----
-68

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2611
SELECT DISTINCT * FROM tab1 WHERE NULL <= CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2611
SELECT DISTINCT * FROM tab1 WHERE NULL <= CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL - ( col2 ) * - col1 * 12 AS col2 FROM tab0
----
1188
2520
45684

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col2 * + 40 + + + col1 - + col2 IN ( - col0 + 89 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 * 33 + + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-2615
SELECT col2 DIV col0 * + - col2 FROM tab1
----
-96
0
0

skipif mysql # not compatible
query I rowsort label-2615
SELECT col2 / col0 * + - col2 FROM tab1
----
-96
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - ( ( + ( col1 ) ) ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col2 + 67 AS col0 FROM tab0
----
114
166
77

query I rowsort
SELECT col1 + + col2 - col0 FROM tab0 AS cor0
----
-56
113
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2619
SELECT DISTINCT + CAST( 70 AS SIGNED ) * - col1 AS col2, col0 FROM tab1 AS cor0
----
-3290
91
-350
85
-980
51

skipif mysql # not compatible
query II rowsort label-2619
SELECT DISTINCT + CAST ( 70 AS INTEGER ) * - col1 AS col2, col0 FROM tab1 AS cor0
----
-3290
91
-350
85
-980
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2620
SELECT - + CAST( NULL AS SIGNED ) * - 65 + + col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2620
SELECT - + CAST ( NULL AS INTEGER ) * - 65 + + col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col2 * - 65 + - + col1 AS col2 FROM tab1 AS cor0
----
-3840
-4467
-6254

onlyif mysql # DIV for integer division: 
query I rowsort label-2622
SELECT + col1 + - - 35 * - - col2 + + 1 DIV - col2 AS col1 FROM tab2 cor0
----
1477
2097
856

skipif mysql # not compatible
query I rowsort label-2622
SELECT + col1 + - - 35 * - - col2 + + 1 / - col2 AS col1 FROM tab2 cor0
----
1477
2097
856

query II rowsort
SELECT + 47 * + col0 + - col1, + col2 FROM tab0 cor0
----
4068
10
4558
99
624
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + 82 col2 FROM tab0 AS cor0
----
1
61
81

query I rowsort
SELECT + col2 + col0 - + 31 * + 0 FROM tab0 AS cor0
----
196
62
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2626
SELECT + - COUNT( * ) + + + 2 AS col0 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2626
SELECT + - COUNT ( * ) + + + 2 AS col0 FROM tab2 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2627
SELECT + COUNT( * ) + MAX( ALL - 33 ) FROM tab0
----
-30

skipif mysql # not compatible
query I rowsort label-2627
SELECT + COUNT ( * ) + MAX ( ALL - 33 ) FROM tab0
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-2628
SELECT DISTINCT COUNT( * ) + MAX( ALL + col2 ) AS col2 FROM tab2
----
61

skipif mysql # not compatible
query I rowsort label-2628
SELECT DISTINCT COUNT ( * ) + MAX ( ALL + col2 ) AS col2 FROM tab2
----
61

query I rowsort
SELECT DISTINCT - col2 FROM tab1 WHERE NOT col1 <= NULL
----

query I rowsort
SELECT + ( 25 ) AS col2 FROM tab1 WHERE + - col2 IS NOT NULL
----
25
25
25

query I rowsort
SELECT + 81 * col2 * col0 AS col1 FROM tab1
----
396576
406215
501228

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2632
SELECT DISTINCT CAST( - ( - + col0 ) AS SIGNED ) FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-2632
SELECT DISTINCT CAST ( - ( - + col0 ) AS INTEGER ) FROM tab1
----
51
85
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 32 col2 FROM tab2 cor0
----
32
32
32

onlyif mysql # DIV for integer division: 
query I rowsort label-2634
SELECT + col0 - col0 DIV col0 FROM tab0 AS cor0
----
14
86
96

skipif mysql # not compatible
query I rowsort label-2634
SELECT + col0 - col0 / col0 FROM tab0 AS cor0
----
14
86
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2635
SELECT DISTINCT + col1 * + CAST( NULL AS SIGNED ) + - col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2635
SELECT DISTINCT + col1 * + CAST ( NULL AS INTEGER ) + - col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2636
SELECT - - 55 - + MIN( CAST( - + col0 AS SIGNED ) ) * + 61 FROM tab2 AS cor0
----
4630

skipif mysql # not compatible
query I rowsort label-2636
SELECT - - 55 - + MIN ( CAST ( - + col0 AS INTEGER ) ) * + 61 FROM tab2 AS cor0
----
4630

onlyif mysql # aggregate syntax: 
query I rowsort label-2637
SELECT 46 + + 76 - - COUNT( * ) + 46 * + COUNT( * ) * + + 85 AS col2 FROM tab2
----
11855

skipif mysql # not compatible
query I rowsort label-2637
SELECT 46 + + 76 - - COUNT ( * ) + 46 * + COUNT ( * ) * + + 85 AS col2 FROM tab2
----
11855

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2638
SELECT DISTINCT - 69 FROM tab1 WHERE - ( CAST( NULL AS SIGNED ) ) + - 67 NOT BETWEEN + - col0 AND 52
----

skipif mysql # not compatible
query I rowsort label-2638
SELECT DISTINCT - 69 FROM tab1 WHERE - ( CAST ( NULL AS INTEGER ) ) + - 67 NOT BETWEEN + - col0 AND 52
----

query I rowsort
SELECT ALL 62 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0

query I rowsort
SELECT col1 AS col0 FROM tab0 WHERE 58 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2641
SELECT + - COUNT( * ) DIV + 28 + - - 10 * - 50 AS col1 FROM tab1 AS cor0
----
-500

skipif mysql # not compatible
query I rowsort label-2641
SELECT + - COUNT ( * ) / + 28 + - - 10 * - 50 AS col1 FROM tab1 AS cor0
----
-500

onlyif mysql # DIV for integer division: 
query I rowsort label-2642
SELECT + - col1 DIV + 65 AS col0 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2642
SELECT + - col1 / + 65 AS col0 FROM tab1 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2643
SELECT ALL - - SUM( DISTINCT + 64 ) FROM tab0 AS cor0
----
64

skipif mysql # not compatible
query I rowsort label-2643
SELECT ALL - - SUM ( DISTINCT + 64 ) FROM tab0 AS cor0
----
64

query I rowsort
SELECT DISTINCT - 72 * + col0 AS col1 FROM tab2 AS cor0
----
-3312
-4608
-5400

onlyif mysql # aggregate syntax: 
query I rowsort label-2645
SELECT DISTINCT + - 67 * - + ( + COUNT( * ) ) + 83 FROM tab2 cor0
----
284

skipif mysql # not compatible
query I rowsort label-2645
SELECT DISTINCT + - 67 * - + ( + COUNT ( * ) ) + 83 FROM tab2 cor0
----
284

query II rowsort
SELECT DISTINCT - col2, 14 - + + 8 AS col0 FROM tab1 AS cor0
----
-59
6
-68
6
-96
6

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2647
SELECT * FROM tab0 WHERE NOT + 66 / - col2 * col0 + col2 * + CAST( NULL AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-2647
SELECT * FROM tab0 WHERE NOT + 66 / - col2 * col0 + col2 * + CAST ( NULL AS REAL ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2648
SELECT ALL - COUNT( * ) * - CAST( NULL AS SIGNED ) * + MIN( 81 ) AS col2 FROM tab2 WHERE NULL > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2648
SELECT ALL - COUNT ( * ) * - CAST ( NULL AS INTEGER ) * + MIN ( 81 ) AS col2 FROM tab2 WHERE NULL > NULL
----
NULL

query II rowsort
SELECT DISTINCT col0, col0 FROM tab2 WHERE - - col0 NOT BETWEEN + - col2 AND + 13
----
46
46
64
64
75
75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2650
SELECT - ( col1 ), - CAST( + col1 AS SIGNED ) FROM tab0
----
-1
-1
-21
-21
-81
-81

skipif mysql # not compatible
query II rowsort label-2650
SELECT - ( col1 ), - CAST ( + col1 AS INTEGER ) FROM tab0
----
-1
-1
-21
-21
-81
-81

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col0 = - + col0 + - + col1 + + + col0 - col1
----

query II rowsort
SELECT - 73 AS col0, - col0 * - 33 * - - col2 FROM tab0
----
-73
23265
-73
28710
-73
316899

onlyif mysql # aggregate syntax: 
query I rowsort label-2653
SELECT - COUNT( * ) * 31 FROM tab1
----
-93

skipif mysql # not compatible
query I rowsort label-2653
SELECT - COUNT ( * ) * 31 FROM tab1
----
-93

query II rowsort
SELECT + + col1 AS col1, col1 AS col1 FROM tab2 AS cor0
----
51
51
67
67
77
77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2655
SELECT DISTINCT + + col1 * CAST( NULL AS SIGNED ) * + col0 + - + 97 AS col0, - col2 FROM tab2 AS cor0
----
NULL
-23
NULL
-40
NULL
-58

skipif mysql # not compatible
query II rowsort label-2655
SELECT DISTINCT + + col1 * CAST ( NULL AS INTEGER ) * + col0 + - + 97 AS col0, - col2 FROM tab2 AS cor0
----
NULL
-23
NULL
-40
NULL
-58

query I rowsort
SELECT DISTINCT 58 AS col1 FROM tab0 cor0
----
58

query I rowsort
SELECT ALL 76 * col0 AS col2 FROM tab0 AS cor0
----
1140
6612
7372

query I rowsort
SELECT + - 45 FROM tab1 WHERE + + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2659
SELECT ALL + 37 + - + CAST( 41 AS SIGNED ) + - col0 * - + col2 AS col1 FROM tab0 AS cor0
----
701
866
9599

skipif mysql # not compatible
query I rowsort label-2659
SELECT ALL + 37 + - + CAST ( 41 AS INTEGER ) + - col0 * - + col2 AS col1 FROM tab0 AS cor0
----
701
866
9599

onlyif mysql # aggregate syntax: 
query II rowsort label-2660
SELECT DISTINCT - COUNT( * ) + - COUNT( * ), - COUNT( * ) * - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-6
9

skipif mysql # not compatible
query II rowsort label-2660
SELECT DISTINCT - COUNT ( * ) + - COUNT ( * ), - COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-6
9

onlyif mysql # DIV for integer division: 
query I rowsort label-2661
SELECT ALL + + col2 DIV - + col0 + 72 FROM tab2 cor0
----
72
72
72

skipif mysql # not compatible
query I rowsort label-2661
SELECT ALL + + col2 / - + col0 + 72 FROM tab2 cor0
----
72
72
72

query I rowsort
SELECT ALL + - 50 * - + col2 + + + 11 + col1 FROM tab1 cor0
----
2966
3458
4825

query III rowsort
SELECT * FROM tab0 cor0 WHERE 79 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query II rowsort label-2664
SELECT DISTINCT - - col2 * col0 + 41 + - 7 DIV + + 10 AS col1, + col1 AS col0 FROM tab0 AS cor0
----
746
81
911
21
9644
1

skipif mysql # not compatible
query II rowsort label-2664
SELECT DISTINCT - - col2 * col0 + 41 + - 7 / + + 10 AS col1, + col1 AS col0 FROM tab0 AS cor0
----
746
81
911
21
9644
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2665
SELECT ALL + MIN( - 46 ) AS col0 FROM tab1
----
-46

skipif mysql # not compatible
query I rowsort label-2665
SELECT ALL + MIN ( - 46 ) AS col0 FROM tab1
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-2666
SELECT DISTINCT SUM( DISTINCT - 9 ) AS col0 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-2666
SELECT DISTINCT SUM ( DISTINCT - 9 ) AS col0 FROM tab2
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 47 col2 FROM tab0
----
47

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col0 < ( + ( col0 ) ) + 80
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2669
SELECT MAX( DISTINCT - col2 ) + - COUNT( * ) FROM tab0
----
-13

skipif mysql # not compatible
query I rowsort label-2669
SELECT MAX ( DISTINCT - col2 ) + - COUNT ( * ) FROM tab0
----
-13

query I rowsort
SELECT DISTINCT - 27 * col2 + col0 * + - col1 AS col2 FROM tab1 AS cor0
----
-2018
-3306
-6113

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT IN ( + 98 )
----

query II rowsort
SELECT ALL + col0 + + col2 * - col1 * - 0 + 53 * + col0, 33 AS col1 FROM tab1 cor0
----
2754
33
4590
33
4914
33

onlyif mysql # aggregate syntax: 
query I rowsort label-2673
SELECT DISTINCT - SUM( ALL 65 ) * - 10 FROM tab1 cor0
----
1950

skipif mysql # not compatible
query I rowsort label-2673
SELECT DISTINCT - SUM ( ALL 65 ) * - 10 FROM tab1 cor0
----
1950

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( col2 ) NOT BETWEEN 45 AND + - 5 * col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col2 + - + 39 FROM tab0 AS cor0
----
-29
60
8

query I rowsort
SELECT DISTINCT + + 76 - + - 94 AS col2 FROM tab2 AS cor0
----
170

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN + col2 AND + 85
----

query I rowsort
SELECT ALL + + ( + col0 ) - + ( - col2 ) FROM tab1 AS cor0
----
144
147
159

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL IN ( + col0, + 16 * col0, - - 18 / col0, - + col0 * - 94 * + + 63 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2680
SELECT * FROM tab1 AS cor0 WHERE NOT CAST( + - col0 AS SIGNED ) BETWEEN 3 * 72 AND + + ( - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2680
SELECT * FROM tab1 AS cor0 WHERE NOT CAST ( + - col0 AS INTEGER ) BETWEEN 3 * 72 AND + + ( - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col2 * + - col2 - + col0 AS col2 FROM tab0 AS cor0
----
-187
-2224
-9898

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2682
SELECT DISTINCT - + MIN( DISTINCT + - CAST( 50 AS SIGNED ) ) * + MAX( - 44 ) + - 34 + + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2682
SELECT DISTINCT - + MIN ( DISTINCT + - CAST ( 50 AS INTEGER ) ) * + MAX ( - 44 ) + - 34 + + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2683
SELECT - ( + - COUNT( * ) ) * + 26 FROM tab1 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-2683
SELECT - ( + - COUNT ( * ) ) * + 26 FROM tab1 AS cor0
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2684
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + CAST( NULL AS SIGNED ) * - col0 NOT BETWEEN 76 AND col0 * + + 99 * + col0 * + 51
----

skipif mysql # not compatible
query III rowsort label-2684
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + CAST ( NULL AS INTEGER ) * - col0 NOT BETWEEN 76 AND col0 * + + 99 * + col0 * + 51
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + 29 ) * + col1 * - col2 col2 FROM tab0
----
-110403
-2871
-6090

onlyif mysql # aggregate syntax: 
query I rowsort label-2686
SELECT + MAX( DISTINCT - + col0 ) FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-2686
SELECT + MAX ( DISTINCT - + col0 ) FROM tab0
----
-15

query I rowsort
SELECT DISTINCT + - col1 - 76 AS col1 FROM tab1 WHERE col0 IS NOT NULL
----
-123
-81
-90

query I rowsort
SELECT - 38 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to e571541ae40cb0ddaca16e11f4359507

onlyif mysql # aggregate syntax: 
query I rowsort label-2689
SELECT DISTINCT - ( - COUNT( DISTINCT - - ( + - 11 ) ) ) AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-2689
SELECT DISTINCT - ( - COUNT ( DISTINCT - - ( + - 11 ) ) ) AS col1 FROM tab0
----
1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL < - col0 * - col2 + - col2
----

query I rowsort
SELECT - + 44 * + - 33 * col2 FROM tab0 AS cor0
----
143748
14520
68244

onlyif mysql # aggregate syntax: 
query I rowsort label-2692
SELECT DISTINCT - SUM( ALL col2 ) FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + col1 AND col0 + + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2692
SELECT DISTINCT - SUM ( ALL col2 ) FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + col1 AND col0 + + col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2693
SELECT DISTINCT 59 col2, - COUNT( * ) AS col0 FROM tab1
----
59
-3

skipif mysql # not compatible
query II rowsort label-2693
SELECT DISTINCT 59 col2, - COUNT ( * ) AS col0 FROM tab1
----
59
-3

query II rowsort
SELECT ALL col1, col1 AS col2 FROM tab0
----
1
1
21
21
81
81

query I rowsort
SELECT - col1 + - - col0 + col2 FROM tab1
----
112
133
139

query I rowsort
SELECT DISTINCT + col2 FROM tab2 cor0 WHERE NOT + col1 + + col2 * col1 + - + 46 - - col1 * col2 * + 44 IS NULL
----
23
40
58

query I rowsort
SELECT - col1 + - - col1 AS col1 FROM tab0 cor0
----
0
0
0

query II rowsort
SELECT 97 + - col0, - col2 * - col2 AS col2 FROM tab1 AS cor0
----
12
3481
46
9216
6
4624

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2699
SELECT - + 92 * + CAST( NULL AS DECIMAL ) + + - COUNT( * ) col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2699
SELECT - + 92 * + CAST ( NULL AS REAL ) + + - COUNT ( * ) col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2700
SELECT ALL - SUM( 4 ) / - AVG ( + + CAST( NULL AS SIGNED ) ) + - COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2700
SELECT ALL - SUM ( 4 ) / - AVG ( + + CAST ( NULL AS INTEGER ) ) + - COUNT ( * ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - + 29 * + col1 * + - 59 + + 17 FROM tab0 AS cor0
----
138608
1728
35948

query II rowsort
SELECT ALL - + col0, + col2 FROM tab1 AS cor0
----
-51
96
-85
59
-91
68

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE ( NULL IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE + 25 * 23 + + + col1 IS NULL
----

query II rowsort
SELECT + col2, + col2 * + 7 AS col0 FROM tab2 AS cor0
----
23
161
40
280
58
406

onlyif mysql # aggregate syntax: 
query I rowsort label-2706
SELECT MIN( 23 ) FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-2706
SELECT MIN ( 23 ) FROM tab2
----
23

query I rowsort
SELECT DISTINCT - 12 * - + 39 AS col2 FROM tab0
----
468

onlyif mysql # aggregate syntax: 
query I rowsort label-2708
SELECT DISTINCT MAX( DISTINCT + col1 ) col2 FROM tab1
----
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2708
SELECT DISTINCT MAX ( DISTINCT + col1 ) col2 FROM tab1
----
47

query I rowsort
SELECT ALL - 4 * - + col0 FROM tab1 AS cor0
----
204
340
364

onlyif mysql # aggregate syntax: 
query II rowsort label-2710
SELECT 18 - - - COUNT( * ) + + 52 AS col0, + COUNT( + 17 ) * + - COUNT( * ) FROM tab2 AS cor0
----
67
-9

skipif mysql # not compatible
query II rowsort label-2710
SELECT 18 - - - COUNT ( * ) + + 52 AS col0, + COUNT ( + 17 ) * + - COUNT ( * ) FROM tab2 AS cor0
----
67
-9

query I rowsort
SELECT col0 - - + col2 + - + col0 AS col2 FROM tab0 AS cor0
----
10
47
99

query I rowsort
SELECT - col1 - + col2 * - col1 AS col2 FROM tab1 AS cor0
----
1330
290
3149

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2713
SELECT ALL col1 * CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2713
SELECT ALL col1 * CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + 20 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f1cccb95c90889319e7a51e4ae9475bb

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2715
SELECT 58 AS col1, CAST( NULL AS SIGNED ) FROM tab1
----
58
NULL
58
NULL
58
NULL

skipif mysql # not compatible
query II rowsort label-2715
SELECT 58 AS col1, CAST ( NULL AS INTEGER ) FROM tab1
----
58
NULL
58
NULL
58
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2716
SELECT col0 AS col0, + 33 DIV col2 + - col1 + + + col2 FROM tab1
----
51
82
85
54
91
21

skipif mysql # not compatible
query II rowsort label-2716
SELECT col0 AS col0, + 33 / col2 + - col1 + + + col2 FROM tab1
----
51
82
85
54
91
21

query II rowsort
SELECT + col2 AS col2, col1 AS col0 FROM tab1 cor0
----
59
5
68
47
96
14

onlyif mysql # DIV for integer division: 
query I rowsort label-2718
SELECT DISTINCT - col1 DIV - - col2 AS col0 FROM tab2 AS cor0
----
-1
-2

skipif mysql # not compatible
query I rowsort label-2718
SELECT DISTINCT - col1 / - - col2 AS col0 FROM tab2 AS cor0
----
-1
-2

query II rowsort
SELECT DISTINCT 70, col1 AS col1 FROM tab1 cor0
----
70
14
70
47
70
5

query I rowsort
SELECT ALL - ( - - ( + - col1 ) ) FROM tab2 AS cor0
----
51
67
77

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( 23 * - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2722
SELECT DISTINCT - ( + - ( + COUNT( * ) ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2722
SELECT DISTINCT - ( + - ( + COUNT ( * ) ) ) FROM tab1
----
3

query I rowsort
SELECT ALL 78 FROM tab2 WHERE col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2724
SELECT - 30 DIV - + col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2724
SELECT - 30 / - + col2 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2725
SELECT ALL - COUNT( * ) * + 41 FROM tab1
----
-123

skipif mysql # not compatible
query I rowsort label-2725
SELECT ALL - COUNT ( * ) * + 41 FROM tab1
----
-123

query I rowsort
SELECT ALL + 21 + 60 FROM tab0 AS cor0
----
81
81
81

query I rowsort
SELECT - - col1 * + col0 + + col2 * 86 AS col2 FROM tab0 AS cor0
----
2687
5257
8611

query I rowsort
SELECT ALL 72 * + col1 AS col1 FROM tab0 cor0
----
1512
5832
72

onlyif mysql # aggregate syntax: 
query I rowsort label-2729
SELECT ALL COUNT( * ) + - - MIN( + col1 ) FROM tab2 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-2729
SELECT ALL COUNT ( * ) + - - MIN ( + col1 ) FROM tab2 AS cor0
----
54

query I rowsort
SELECT DISTINCT + col0 + 4 FROM tab2 AS cor0
----
50
68
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2731
SELECT DISTINCT - + CAST( NULL AS SIGNED ) + - + 16 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2731
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) + - + 16 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2732
SELECT DISTINCT - + col0 + + + CAST( NULL AS SIGNED ) * col1 * - col2 * - + CAST( NULL AS SIGNED ) + - col2 + - col0 - + - col0 - - ( + col2 ) * - col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2732
SELECT DISTINCT - + col0 + + + CAST ( NULL AS INTEGER ) * col1 * - col2 * - + CAST ( NULL AS INTEGER ) + - col2 + - col0 - + - col0 - - ( + col2 ) * - col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT col1 + 42 FROM tab2
----
109
119
93

query I rowsort
SELECT DISTINCT + col0 - 81 AS col2 FROM tab1
----
-30
10
4

query I rowsort
SELECT ALL + ( col0 ) * + ( + col1 ) - col2 + + + col1 AS col2 FROM tab1
----
371
4256
632

query I rowsort
SELECT ALL 63 * - - 53 * + + col1 AS col0 FROM tab2
----
170289
223713
257103

query I rowsort
SELECT - - 28 * + col2 AS col2 FROM tab2 cor0
----
1120
1624
644

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE NOT - 1 IS NOT NULL
----

query I rowsort
SELECT + col1 * + + 0 AS col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2740
SELECT DISTINCT - + col0 AS col0, - CAST( NULL AS SIGNED ) * col2 FROM tab2 cor0
----
-46
NULL
-64
NULL
-75
NULL

skipif mysql # not compatible
query II rowsort label-2740
SELECT DISTINCT - + col0 AS col0, - CAST ( NULL AS INTEGER ) * col2 FROM tab2 cor0
----
-46
NULL
-64
NULL
-75
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2741
SELECT + + COUNT( * ) - - 44 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
53

skipif mysql # not compatible
query I rowsort label-2741
SELECT + + COUNT ( * ) - - 44 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
53

query I rowsort
SELECT + col1 FROM tab1 WHERE NOT - 70 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col2 * - 18 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-2744
SELECT col2 DIV - - 30 + - + ( + col1 ) col0 FROM tab2 cor0
----
-51
-66
-76

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2744
SELECT col2 / - - 30 + - + ( + col1 ) col0 FROM tab2 cor0
----
-51
-66
-76

query I rowsort
SELECT DISTINCT + 31 AS col2 FROM tab0 cor0
----
31

query I rowsort
SELECT - col0 * + + col0 FROM tab0 cor0
----
-225
-7569
-9409

onlyif mysql # aggregate syntax: 
query I rowsort label-2747
SELECT ALL - COUNT( * ) * + + 76 + + + MIN( + col1 ) AS col1 FROM tab0 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-2747
SELECT ALL - COUNT ( * ) * + + 76 + + + MIN ( + col1 ) AS col1 FROM tab0 AS cor0
----
-227

query I rowsort
SELECT col2 + + col1 + - - col1 FROM tab1 AS cor0
----
124
162
69

query II rowsort
SELECT + 38 * - col0 AS col1, + ( - + col0 ) AS col1 FROM tab0 AS cor0
----
-3306
-87
-3686
-97
-570
-15

query I rowsort
SELECT 60 * + col0 * col0 * - - 99 FROM tab1
----
15449940
42916500
49189140

query II rowsort
SELECT DISTINCT col1 AS col0, col1 FROM tab0
----
1
1
21
21
81
81

onlyif mysql # aggregate syntax: 
query II rowsort label-2752
SELECT COUNT( * ), + MAX( + - col2 ) AS col0 FROM tab2
----
3
-23

skipif mysql # not compatible
query II rowsort label-2752
SELECT COUNT ( * ), + MAX ( + - col2 ) AS col0 FROM tab2
----
3
-23

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2753
SELECT ALL - col0 col2, CAST( - - 1 AS SIGNED ) FROM tab1
----
-51
1
-85
1
-91
1

skipif mysql # not compatible
query II rowsort label-2753
SELECT ALL - col0 col2, CAST ( - - 1 AS INTEGER ) FROM tab1
----
-51
1
-85
1
-91
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1, col2 col0 FROM tab0
----
1
99
21
10
81
47

onlyif mysql # DIV for integer division: 
query I rowsort label-2755
SELECT ALL col1 DIV + + col2 AS col1 FROM tab2
----
1
1
2

skipif mysql # not compatible
query I rowsort label-2755
SELECT ALL col1 / + + col2 AS col1 FROM tab2
----
1
1
2

query I rowsort
SELECT DISTINCT - 50 * - + col0 FROM tab0
----
4350
4850
750

query I rowsort
SELECT ( - + col2 ) FROM tab2 cor0
----
-23
-40
-58

query I rowsort
SELECT DISTINCT - 29 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-29

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT BETWEEN 71 AND - col0
----

query I rowsort
SELECT ALL + col1 + - + col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + + 45 AS col1 FROM tab1 AS cor0
----
45
45
45

query I rowsort
SELECT ALL - + 40 - - col2 * + col1 FROM tab2 AS cor0
----
1133
3040
3846

query III rowsort
SELECT * FROM tab1 cor0 WHERE - 48 - + + 21 + - 32 IS NULL
----

query II rowsort
SELECT - col0 * - col0, col0 FROM tab2 AS cor0
----
2116
46
4096
64
5625
75

onlyif mysql # aggregate syntax: 
query II rowsort label-2765
SELECT + ( + - 85 ), SUM( DISTINCT - - col0 ) col0 FROM tab0 AS cor0
----
-85
199

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2765
SELECT + ( + - 85 ), SUM ( DISTINCT - - col0 ) col0 FROM tab0 AS cor0
----
-85
199

query II rowsort
SELECT + col2 AS col2, col2 AS col2 FROM tab0 cor0 WHERE - col0 >= 55
----

query I rowsort
SELECT DISTINCT 26 + + - col2 FROM tab1
----
-33
-42
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2768
SELECT ALL col2 * - 97 * - CAST( - 39 AS SIGNED ) FROM tab0
----
-177801
-374517
-37830

skipif mysql # not compatible
query I rowsort label-2768
SELECT ALL col2 * - 97 * - CAST ( - 39 AS INTEGER ) FROM tab0
----
-177801
-374517
-37830

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2769
SELECT DISTINCT * FROM tab1 WHERE NOT col2 > + - ( + - CAST( - col0 AS DECIMAL ) ) * + ( 38 ) AND NOT NULL IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2769
SELECT DISTINCT * FROM tab1 WHERE NOT col2 > + - ( + - CAST ( - col0 AS REAL ) ) * + ( 38 ) AND NOT NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2770
SELECT DISTINCT MIN( 87 ) FROM tab0
----
87

skipif mysql # not compatible
query I rowsort label-2770
SELECT DISTINCT MIN ( 87 ) FROM tab0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-2771
SELECT DISTINCT + ( + SUM( + col0 ) ) FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-2771
SELECT DISTINCT + ( + SUM ( + col0 ) ) FROM tab0
----
199

query I rowsort
SELECT - 27 * - col0 FROM tab1
----
1377
2295
2457

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2773
SELECT - - ( + - CAST( + MAX( ALL + + col0 ) AS SIGNED ) ) FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-2773
SELECT - - ( + - CAST ( + MAX ( ALL + + col0 ) AS INTEGER ) ) FROM tab2 AS cor0
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2774
SELECT DISTINCT - ( + + CAST( NULL AS SIGNED ) ) * - col1 col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2774
SELECT DISTINCT - ( + + CAST ( NULL AS INTEGER ) ) * - col1 col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + - col0 * - ( - col2 ) AS col2 FROM tab0 AS cor0
----
-705
-870
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-2776
SELECT DISTINCT 90 * SUM( ALL - col1 ) FROM tab2 cor0
----
-17550

skipif mysql # not compatible
query I rowsort label-2776
SELECT DISTINCT 90 * SUM ( ALL - col1 ) FROM tab2 cor0
----
-17550

query I rowsort
SELECT DISTINCT col1 * - 39 AS col0 FROM tab0
----
-3159
-39
-819

onlyif mysql # aggregate syntax: 
query II rowsort label-2778
SELECT DISTINCT + COUNT( * ) AS col1, + 93 * 17 AS col2 FROM tab2
----
3
1581

skipif mysql # not compatible
query II rowsort label-2778
SELECT DISTINCT + COUNT ( * ) AS col1, + 93 * 17 AS col2 FROM tab2
----
3
1581

onlyif mysql # aggregate syntax: 
query II rowsort label-2779
SELECT 30 col2, COUNT( * ) AS col0 FROM tab1 WHERE NOT - col2 IS NULL
----
30
3

skipif mysql # not compatible
query II rowsort label-2779
SELECT 30 col2, COUNT ( * ) AS col0 FROM tab1 WHERE NOT - col2 IS NULL
----
30
3

query I rowsort
SELECT + - col1 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-1
-21
-81

query I rowsort
SELECT + col2 AS col0 FROM tab0 AS cor0 WHERE NOT col1 + 45 IS NULL
----
10
47
99

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT + 79 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 53 + + 75 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + ( 22 ) FROM tab0 AS cor0
----
22
22
22

query II rowsort
SELECT + - col1 AS col1, + 39 AS col1 FROM tab1 AS cor0
----
-14
39
-47
39
-5
39

query I rowsort
SELECT DISTINCT - 78 * + col1 FROM tab1 cor0
----
-1092
-3666
-390

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN - col1 / + col2 AND + + col0
----

query II rowsort
SELECT ALL - col0 + col0 + ( + - 88 ) AS col0, + col1 * + + col2 AS col2 FROM tab1 AS cor0
----
-88
1344
-88
295
-88
3196

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2789
SELECT + - 89 - - - CAST( NULL AS SIGNED ) * - + col0 FROM tab1 AS cor0 WHERE NOT col0 NOT BETWEEN + 8 + + - col2 * col0 * col1 / + col2 / col2 AND - - 64
----
NULL

skipif mysql # not compatible
query I rowsort label-2789
SELECT + - 89 - - - CAST ( NULL AS INTEGER ) * - + col0 FROM tab1 AS cor0 WHERE NOT col0 NOT BETWEEN + 8 + + - col2 * col0 * col1 / + col2 / col2 AND - - 64
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 63 col0 FROM tab0 cor0
----
63
63
63

query I rowsort
SELECT - 18 * + 15 AS col0 FROM tab2
----
-270
-270
-270

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 47 col2 FROM tab1
----
47
47
47

query II rowsort
SELECT DISTINCT + ( + col2 ), - col2 FROM tab0
----
10
-10
47
-47
99
-99

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2794
SELECT - col2 DIV CAST( - + col1 AS SIGNED ) DIV col0 + - + col2, + 21 AS col1 FROM tab1
----
-59
21
-68
21
-96
21

skipif mysql # not compatible
query II rowsort label-2794
SELECT - col2 / CAST ( - + col1 AS INTEGER ) / col0 + - + col2, + 21 AS col1 FROM tab1
----
-59
21
-68
21
-96
21

query I rowsort
SELECT + ( 43 ) + + col0 FROM tab2 cor0
----
107
118
89

query I rowsort
SELECT DISTINCT + + col1 + - + 1 + + 44 * col1 * + col2 FROM tab2 AS cor0
----
135596
171050
51662

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 1 IS NOT NULL
----

query I rowsort
SELECT - + 39 AS col1 FROM tab1 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT DISTINCT - col1 AS col0, col2 + + + 17 AS col0 FROM tab2 AS cor0
----
-51
40
-67
75
-77
57

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2800
SELECT col0, col0 FROM tab1 cor0 WHERE NULL NOT BETWEEN + ( + - CAST( NULL AS SIGNED ) ) * - + 61 AND - col1
----

skipif mysql # not compatible
query II rowsort label-2800
SELECT col0, col0 FROM tab1 cor0 WHERE NULL NOT BETWEEN + ( + - CAST ( NULL AS INTEGER ) ) * - + 61 AND - col1
----

query I rowsort
SELECT DISTINCT - 73 + - col1 * - - col1 AS col0 FROM tab1 AS cor0
----
-2282
-269
-98

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col0 * - col0 / - col1 IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 - + col0 < - + col0
----

query I rowsort
SELECT DISTINCT - col0 * + col0 * - col0 * + 17 + 45 FROM tab2 cor0
----
1654757
4456493
7171920

query I rowsort
SELECT + col0 AS col1 FROM tab1 AS cor0 WHERE col0 * - - col2 * col1 + - col2 IS NOT NULL
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2806
SELECT + SUM( col2 ) col1 FROM tab1
----
223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2806
SELECT + SUM ( col2 ) col1 FROM tab1
----
223

query II rowsort
SELECT ALL + 29 * - + col0, col1 AS col0 FROM tab0
----
-2523
21
-2813
1
-435
81

query I rowsort
SELECT DISTINCT ( - 41 ) FROM tab0 AS cor0
----
-41

query I rowsort
SELECT - 72 * 67 FROM tab0 AS cor0
----
-4824
-4824
-4824

onlyif mysql # aggregate syntax: 
query I rowsort label-2810
SELECT 36 * SUM( ALL - 77 ) col2 FROM tab0 AS cor0
----
-8316

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2810
SELECT 36 * SUM ( ALL - 77 ) col2 FROM tab0 AS cor0
----
-8316

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL IS NULL )
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

query I rowsort
SELECT + col1 FROM tab0 WHERE NOT + col0 IS NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query II rowsort label-2813
SELECT + 26, COUNT( * ) + + COUNT( * ) + - 22 AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab0 cor1 )
----
26
-4

skipif mysql # not compatible
query II rowsort label-2813
SELECT + 26, COUNT ( * ) + + COUNT ( * ) + - 22 AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab0 cor1 )
----
26
-4

query I rowsort
SELECT DISTINCT + col2 + + col2 * col1 * col2 FROM tab2 AS cor0 WHERE NULL = NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL > - col2
----

query II rowsort
SELECT DISTINCT col0, col1 + + col0 * - col1 FROM tab1 cor0
----
51
-700
85
-420
91
-4230

query I rowsort
SELECT ALL - col0 * - col2 * 18 FROM tab0 AS cor0
----
12690
15660
172854

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2818
SELECT - CAST( NULL AS SIGNED ) + + 81 * + ( - col2 ) * + col1 AS col0, - CAST( NULL AS SIGNED ) + - + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2818
SELECT - CAST ( NULL AS INTEGER ) + + 81 * + ( - col2 ) * + col1 AS col0, - CAST ( NULL AS INTEGER ) + - + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2819
SELECT DISTINCT CAST( NULL AS DECIMAL ) + + - col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2819
SELECT DISTINCT CAST ( NULL AS REAL ) + + - col0 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT 73 + + + ( + 43 ) + - + 92 + col2 col2, + 53 + + col2 - - - 77, + + col1 AS col0 FROM tab0 AS cor0
----
9 values hashing to 82f7814643a0e46361530a1123a9e74c

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2821
SELECT + CAST( NULL AS SIGNED ) * + col1 / + col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2821
SELECT + CAST ( NULL AS INTEGER ) * + col1 / + col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 23 * + + col1 AS col2 FROM tab0
----
-1863
-23
-483

onlyif mysql # aggregate syntax: 
query II rowsort label-2823
SELECT DISTINCT 36 AS col2, + MAX( ( + col2 ) ) AS col0 FROM tab2
----
36
58

skipif mysql # not compatible
query II rowsort label-2823
SELECT DISTINCT 36 AS col2, + MAX ( ( + col2 ) ) AS col0 FROM tab2
----
36
58

onlyif mysql # aggregate syntax: 
query II rowsort label-2824
SELECT DISTINCT + COUNT( * ) AS col1, SUM( DISTINCT + - col2 ) col1 FROM tab2
----
3
-121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2824
SELECT DISTINCT + COUNT ( * ) AS col1, SUM ( DISTINCT + - col2 ) col1 FROM tab2
----
3
-121

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 57 IS NOT NULL
----

query I rowsort
SELECT ( + - 55 ) FROM tab1
----
-55
-55
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-2827
SELECT ALL - MIN( 9 ) FROM tab0 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-2827
SELECT ALL - MIN ( 9 ) FROM tab0 cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2828
SELECT ALL + - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE ( col1 IS NULL )
----
0

skipif mysql # not compatible
query I rowsort label-2828
SELECT ALL + - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE ( col1 IS NULL )
----
0

query I rowsort
SELECT + col1 + + 62 FROM tab2 AS cor0
----
113
129
139

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2830
SELECT ALL CAST( - col0 AS SIGNED ) col0 FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2830
SELECT ALL CAST ( - col0 AS INTEGER ) col0 FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-2831
SELECT DISTINCT + - COUNT( * ) col2 FROM tab2 AS cor0 WHERE ( + col0 < - 64 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2831
SELECT DISTINCT + - COUNT ( * ) col2 FROM tab2 AS cor0 WHERE ( + col0 < - 64 )
----
0

query I rowsort
SELECT DISTINCT + 21 * + 59 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
1239

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2833
SELECT COUNT( * ) * 23 * ( - ( - CAST( NULL AS SIGNED ) ) ) + + MIN( ALL + 19 ) / ( + MAX( - 62 ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2833
SELECT COUNT ( * ) * 23 * ( - ( - CAST ( NULL AS INTEGER ) ) ) + + MIN ( ALL + 19 ) / ( + MAX ( - 62 ) ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2834
SELECT ALL * FROM tab0 cor0 WHERE CAST( NULL AS SIGNED ) < NULL
----

skipif mysql # not compatible
query III rowsort label-2834
SELECT ALL * FROM tab0 cor0 WHERE CAST ( NULL AS INTEGER ) < NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2835
SELECT MAX( 75 ) AS col1, + COUNT( * ) AS col2 FROM tab2 AS cor0
----
75
3

skipif mysql # not compatible
query II rowsort label-2835
SELECT MAX ( 75 ) AS col1, + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
75
3

query I rowsort
SELECT DISTINCT - + ( + - col1 ) FROM tab0 AS cor0
----
1
21
81

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 23 BETWEEN + 80 AND col0 + - - col2 * + col2 + + col1 - - + 43
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-2838
SELECT DISTINCT 99 DIV col1 AS col2 FROM tab1 AS cor0
----
19
2
7

skipif mysql # not compatible
query I rowsort label-2838
SELECT DISTINCT 99 / col1 AS col2 FROM tab1 AS cor0
----
19
2
7

query II rowsort
SELECT ALL - 64, col2 FROM tab0
----
-64
10
-64
47
-64
99

query I rowsort
SELECT ALL col0 * - + 57 - - + col1 AS col2 FROM tab0 WHERE - 76 < - col0
----
-774

query III rowsort
SELECT * FROM tab2 WHERE NOT 6 <= + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2842
SELECT - COUNT( * ) * 89 AS col1 FROM tab1 AS cor0 WHERE NOT ( col1 / + - 4 - col2 ) <= col0
----
0

skipif mysql # not compatible
query I rowsort label-2842
SELECT - COUNT ( * ) * 89 AS col1 FROM tab1 AS cor0 WHERE NOT ( col1 / + - 4 - col2 ) <= col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2843
SELECT - ( + SUM( ALL - - col0 ) ) FROM tab0 cor0
----
-199

skipif mysql # not compatible
query I rowsort label-2843
SELECT - ( + SUM ( ALL - - col0 ) ) FROM tab0 cor0
----
-199

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL BETWEEN - col2 AND + col0
----

query I rowsort
SELECT + ( - 10 ) AS col0 FROM tab2
----
-10
-10
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2846
SELECT ALL - col1 + ( - CAST( NULL AS SIGNED ) ) * col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2846
SELECT ALL - col1 + ( - CAST ( NULL AS INTEGER ) ) * col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2847
SELECT ALL + 74 * - COUNT( * ) + MAX( + col0 ) / COUNT( * ) FROM tab1 WHERE NULL IN ( + col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2847
SELECT ALL + 74 * - COUNT ( * ) + MAX ( + col0 ) / COUNT ( * ) FROM tab1 WHERE NULL IN ( + col0 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2848
SELECT ALL - ( - CAST( NULL AS SIGNED ) ) * 28 - + COUNT( col2 + col1 ) FROM tab0 WHERE col2 IN ( 73 * - CAST( NULL AS SIGNED ) + + col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2848
SELECT ALL - ( - CAST ( NULL AS INTEGER ) ) * 28 - + COUNT ( col2 + col1 ) FROM tab0 WHERE col2 IN ( 73 * - CAST ( NULL AS INTEGER ) + + col1 )
----
NULL

query I rowsort
SELECT col0 FROM tab0 WHERE NOT ( + 27 * col0 ) = ( 59 )
----
15
87
97

query III rowsort
SELECT * FROM tab0 WHERE col2 <> ( + 55 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + 73 FROM tab2 WHERE NOT ( - col1 ) IS NULL
----
73
73
73

query I rowsort
SELECT ALL 36 * - 8 AS col2 FROM tab1
----
-288
-288
-288

query I rowsort
SELECT col0 * ( col2 ) FROM tab2 WHERE NOT ( col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2854
SELECT DISTINCT + ( + COUNT( * ) ) * 12 FROM tab1
----
36

skipif mysql # not compatible
query I rowsort label-2854
SELECT DISTINCT + ( + COUNT ( * ) ) * 12 FROM tab1
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2855
SELECT * FROM tab1 WHERE ( col1 ) NOT BETWEEN - 27 * - 85 AND 14 - + CAST( col1 AS SIGNED )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2855
SELECT * FROM tab1 WHERE ( col1 ) NOT BETWEEN - 27 * - 85 AND 14 - + CAST ( col1 AS INTEGER )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col1 * + col2 + 30 AS col2 FROM tab0
----
129
240
3837

query I rowsort
SELECT + ( col2 ) + col2 FROM tab2
----
116
46
80

query I rowsort
SELECT DISTINCT + 78 + + col2 FROM tab2
----
101
118
136

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 78 * col0 col2 FROM tab0
----
1170
6786
7566

query I rowsort
SELECT - col0 * 77 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-3927
-6545
-7007

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT IN ( + 93 / - col1 )
----

query I rowsort
SELECT ALL 57 + - col2 FROM tab2
----
-1
17
34

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 / 64 + - col1 * col0 BETWEEN + 46 * col2 AND - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col1 - - col1 AS col0 FROM tab0 AS cor0 WHERE NULL NOT IN ( - col2 )
----

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 WHERE NOT NULL < NULL
----

query I rowsort
SELECT - col2 * 51 - col2 AS col1 FROM tab1
----
-3068
-3536
-4992

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col2 NOT BETWEEN ( NULL ) AND 81
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2868
SELECT ALL + ( + col0 ) * - col0 FROM tab1 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) / + col2 BETWEEN - col2 * - col0 AND - 35
----

skipif mysql # not compatible
query I rowsort label-2868
SELECT ALL + ( + col0 ) * - col0 FROM tab1 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) / + col2 BETWEEN - col2 * - col0 AND - 35
----

query I rowsort
SELECT DISTINCT + col2 * + 93 FROM tab1 cor0
----
5487
6324
8928

onlyif mysql # aggregate syntax: 
query I rowsort label-2870
SELECT - - COUNT( * ) * - COUNT( * ) FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-2870
SELECT - - COUNT ( * ) * - COUNT ( * ) FROM tab2 AS cor0
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-2871
SELECT ALL 58 DIV + col1 AS col1 FROM tab0 AS cor0
----
0
2
58

skipif mysql # not compatible
query I rowsort label-2871
SELECT ALL 58 / + col1 AS col1 FROM tab0 AS cor0
----
0
2
58

query I rowsort
SELECT DISTINCT + col2 + 48 FROM tab0 AS cor0 WHERE NOT + col2 <= col0
----
147
95

onlyif mysql # aggregate syntax: 
query I rowsort label-2873
SELECT DISTINCT - SUM( DISTINCT col2 ) + + AVG ( ( + col0 ) ) FROM tab2 AS cor0 WHERE NULL <> + 46 * + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2873
SELECT DISTINCT - SUM ( DISTINCT col2 ) + + AVG ( ( + col0 ) ) FROM tab2 AS cor0 WHERE NULL <> + 46 * + col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2874
SELECT + col2 DIV 5 FROM tab2 AS cor0
----
11
4
8

skipif mysql # not compatible
query I rowsort label-2874
SELECT + col2 / 5 FROM tab2 AS cor0
----
11
4
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2875
SELECT + COUNT( * ) * - MIN( ALL 23 ) FROM tab0 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-2875
SELECT + COUNT ( * ) * - MIN ( ALL 23 ) FROM tab0 AS cor0
----
-69

query I rowsort
SELECT DISTINCT - col2 FROM tab0 WHERE NOT NULL <= ( + col2 ) OR col2 NOT BETWEEN + 76 + - 42 AND ( NULL )
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-2877
SELECT DISTINCT - COUNT( ALL ( col0 ) ) col2 FROM tab0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2877
SELECT DISTINCT - COUNT ( ALL ( col0 ) ) col2 FROM tab0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2878
SELECT DISTINCT 17 * + MIN( - CAST( col2 AS SIGNED ) ) AS col1 FROM tab2
----
-986

skipif mysql # not compatible
query I rowsort label-2878
SELECT DISTINCT 17 * + MIN ( - CAST ( col2 AS INTEGER ) ) AS col1 FROM tab2
----
-986

query I rowsort
SELECT DISTINCT 44 * - 45 FROM tab1
----
-1980

onlyif mysql # DIV for integer division: 
query I rowsort label-2880
SELECT ALL 62 DIV + col1 AS col0 FROM tab0
----
0
2
62

skipif mysql # not compatible
query I rowsort label-2880
SELECT ALL 62 / + col1 AS col0 FROM tab0
----
0
2
62

onlyif mysql # aggregate syntax: 
query I rowsort label-2881
SELECT ALL COUNT( * ) * COUNT( * ) * + 99 col0 FROM tab1
----
891

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2881
SELECT ALL COUNT ( * ) * COUNT ( * ) * + 99 col0 FROM tab1
----
891

query III rowsort
SELECT ALL * FROM tab0 WHERE ( + col2 + col2 ) IS NULL
----

query I rowsort
SELECT DISTINCT - col0 + col0 FROM tab2 AS cor0 WHERE NOT col0 * - col0 NOT IN ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2884
SELECT DISTINCT 73 * + 79 - - 86 + + 86 * COUNT( DISTINCT - col1 ) FROM tab1 AS cor0
----
6111

skipif mysql # not compatible
query I rowsort label-2884
SELECT DISTINCT 73 * + 79 - - 86 + + 86 * COUNT ( DISTINCT - col1 ) FROM tab1 AS cor0
----
6111

onlyif mysql # aggregate syntax: 
query I rowsort label-2885
SELECT + SUM( DISTINCT + col0 ) * ( COUNT( * ) ) FROM tab0 AS cor0
----
597

skipif mysql # not compatible
query I rowsort label-2885
SELECT + SUM ( DISTINCT + col0 ) * ( COUNT ( * ) ) FROM tab0 AS cor0
----
597

query I rowsort
SELECT ALL 7 + - col2 FROM tab2 WHERE NOT NULL NOT BETWEEN col2 + + 63 * - col1 AND col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 93 col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2888
SELECT DISTINCT * FROM tab0 WHERE 88 * CAST( NULL AS SIGNED ) IN ( + 62 + + ( col0 ) / - col2 )
----

skipif mysql # not compatible
query III rowsort label-2888
SELECT DISTINCT * FROM tab0 WHERE 88 * CAST ( NULL AS INTEGER ) IN ( + 62 + + ( col0 ) / - col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2889
SELECT DISTINCT MAX( 79 ) - - 13 AS col2 FROM tab2 WHERE ( - + CAST( NULL AS SIGNED ) + - 76 * - 71 ) < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2889
SELECT DISTINCT MAX ( 79 ) - - 13 AS col2 FROM tab2 WHERE ( - + CAST ( NULL AS INTEGER ) + - 76 * - 71 ) < NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( - col0 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 57 FROM tab0 AS cor0 WHERE col2 IN ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2892
SELECT ALL SUM( - col2 ) + - 0 * COUNT( * ) FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-2892
SELECT ALL SUM ( - col2 ) + - 0 * COUNT ( * ) FROM tab1 AS cor0
----
-223

query I rowsort
SELECT - col1 + + col1 + - + col0 AS col2 FROM tab2 AS cor0
----
-46
-64
-75

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 + + 48 + - 48 IS NULL
----

query I rowsort
SELECT ALL 21 * - col1 + + 90 FROM tab2 AS cor0
----
-1317
-1527
-981

query I rowsort
SELECT + col0 * - 70 FROM tab1 AS cor0 WHERE ( col1 ) * + col2 IS NOT NULL
----
-3570
-5950
-6370

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2897
SELECT ALL - - CAST( NULL AS DECIMAL ) + COUNT( * ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2897
SELECT ALL - - CAST ( NULL AS REAL ) + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + col1 + - 96 AS col2 FROM tab1 AS cor0
----
-49
-82
-91

query I rowsort
SELECT + col1 + - 72 FROM tab0 AS cor0
----
-51
-71
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2900
SELECT DISTINCT - col0 + + + ( ( - CAST( - col2 AS SIGNED ) ) ) FROM tab2 AS cor0
----
-17
-23
-24

skipif mysql # not compatible
query I rowsort label-2900
SELECT DISTINCT - col0 + + + ( ( - CAST ( - col2 AS INTEGER ) ) ) FROM tab2 AS cor0
----
-17
-23
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-2901
SELECT ALL - COUNT( * ) + - MAX( DISTINCT ( 70 ) ) + - COUNT( * ) FROM tab1 AS cor0
----
-76

skipif mysql # not compatible
query I rowsort label-2901
SELECT ALL - COUNT ( * ) + - MAX ( DISTINCT ( 70 ) ) + - COUNT ( * ) FROM tab1 AS cor0
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-2902
SELECT ALL COUNT( * ) + COUNT( * ) FROM tab1 AS cor0 WHERE NULL <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-2902
SELECT ALL COUNT ( * ) + COUNT ( * ) FROM tab1 AS cor0 WHERE NULL <= NULL
----
0

query I rowsort
SELECT - col1 * + col0 + col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2904
SELECT DISTINCT COUNT( * ) * - COUNT( * ), 69 * - + 52 * 8 AS col0 FROM tab2
----
-9
-28704

skipif mysql # not compatible
query II rowsort label-2904
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ), 69 * - + 52 * 8 AS col0 FROM tab2
----
-9
-28704

onlyif mysql # aggregate syntax: 
query I rowsort label-2905
SELECT ALL 67 + - - COUNT( ALL col0 ) * 21 AS col0 FROM tab0
----
130

skipif mysql # not compatible
query I rowsort label-2905
SELECT ALL 67 + - - COUNT ( ALL col0 ) * 21 AS col0 FROM tab0
----
130

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab2 WHERE ( - + col0 ) NOT IN ( + col2 * + 23 )
----
-23
-40
-58

query I rowsort
SELECT DISTINCT + col2 + 5 AS col0 FROM tab1 WHERE NOT NULL IN ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2908
SELECT COUNT( * ) * MAX( col2 ) AS col1 FROM tab1
----
288

skipif mysql # not compatible
query I rowsort label-2908
SELECT COUNT ( * ) * MAX ( col2 ) AS col1 FROM tab1
----
288

query I rowsort
SELECT col0 AS col2 FROM tab1 WHERE col2 * + + 5 - - col0 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2910
SELECT col2 FROM tab1 WHERE ( - col2 ) BETWEEN ( NULL ) AND CAST( 10 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-2910
SELECT col2 FROM tab1 WHERE ( - col2 ) BETWEEN ( NULL ) AND CAST ( 10 AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
15
87
97

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col2 * + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2913
SELECT ALL COUNT( * ) * - 55 AS col1 FROM tab2
----
-165

skipif mysql # not compatible
query I rowsort label-2913
SELECT ALL COUNT ( * ) * - 55 AS col1 FROM tab2
----
-165

onlyif mysql # aggregate syntax: 
query I rowsort label-2914
SELECT COUNT( * ) - + MIN( DISTINCT + - 45 ) AS col1 FROM tab1
----
48

skipif mysql # not compatible
query I rowsort label-2914
SELECT COUNT ( * ) - + MIN ( DISTINCT + - 45 ) AS col1 FROM tab1
----
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - + - col0 + + col0 col2 FROM tab1 AS cor0
----
51
85
91

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( 55 > NULL )
----

query I rowsort
SELECT - 32 - + 20 + - + 71 FROM tab1 AS cor0
----
-123
-123
-123

query I rowsort
SELECT col1 * - 91 + - col1 - + col2 FROM tab1 AS cor0
----
-1384
-4392
-519

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + 4 col2 FROM tab0 AS cor0
----
103
14
51

query I rowsort
SELECT + col1 + - + 65 * + - 77 + - 48 AS col1 FROM tab1 AS cor0
----
4962
4971
5004

query I rowsort
SELECT ALL + + col2 + + - 60 AS col2 FROM tab2 AS cor0
----
-2
-20
-37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2922
SELECT DISTINCT + col1 + col2 + + CAST( NULL AS SIGNED ) / + 87 - + CAST( col0 AS SIGNED ) + - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2922
SELECT DISTINCT + col1 + col2 + + CAST ( NULL AS INTEGER ) / + 87 - + CAST ( col0 AS INTEGER ) + - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2923
SELECT + - COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-2923
SELECT + - COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

query I rowsort
SELECT DISTINCT + 84 AS col2 FROM tab1 WHERE NOT - col0 IS NULL
----
84

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2925
SELECT DISTINCT - CAST( - col2 AS SIGNED ) DIV - col1 FROM tab1
----
-1
-11
-6

skipif mysql # not compatible
query I rowsort label-2925
SELECT DISTINCT - CAST ( - col2 AS INTEGER ) / - col1 FROM tab1
----
-1
-11
-6

query I rowsort
SELECT - - col0 * + 82 FROM tab1 AS cor0
----
4182
6970
7462

onlyif mysql # aggregate syntax: 
query I rowsort label-2927
SELECT DISTINCT - COUNT( * ) * + + 86 AS col1 FROM tab0 AS cor0
----
-258

skipif mysql # not compatible
query I rowsort label-2927
SELECT DISTINCT - COUNT ( * ) * + + 86 AS col1 FROM tab0 AS cor0
----
-258

onlyif mysql # aggregate syntax: 
query I rowsort label-2928
SELECT - COUNT( * ) * + + 58 FROM tab1 AS cor0
----
-174

skipif mysql # not compatible
query I rowsort label-2928
SELECT - COUNT ( * ) * + + 58 FROM tab1 AS cor0
----
-174

query I rowsort
SELECT ALL + ( - col1 ) / - 57 FROM tab2 AS cor0 WHERE NOT - col0 >= ( NULL )
----

query I rowsort
SELECT ALL - - 86 * - - col1 AS col2 FROM tab1 AS cor0
----
1204
4042
430

query I rowsort
SELECT + 55 * 21 AS col0 FROM tab1 AS cor0
----
1155
1155
1155

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 66 > NULL
----

query I rowsort
SELECT + ( + - 16 ) AS col0 FROM tab2 cor0
----
-16
-16
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-2934
SELECT DISTINCT - AVG ( DISTINCT col2 ) * + MIN( - col0 ) FROM tab1 WHERE ( + + col2 + + col0 + col2 - + + 34 / 67 / + col0 ) <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2934
SELECT DISTINCT - AVG ( DISTINCT col2 ) * + MIN ( - col0 ) FROM tab1 WHERE ( + + col2 + + col0 + col2 - + + 34 / 67 / + col0 ) <> NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2935
SELECT ALL - COUNT( * ) * + 69 FROM tab1
----
-207

skipif mysql # not compatible
query I rowsort label-2935
SELECT ALL - COUNT ( * ) * + 69 FROM tab1
----
-207

onlyif mysql # aggregate syntax: 
query II rowsort label-2936
SELECT 69 AS col0, + COUNT( * ) FROM tab1
----
69
3

skipif mysql # not compatible
query II rowsort label-2936
SELECT 69 AS col0, + COUNT ( * ) FROM tab1
----
69
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2937
SELECT DISTINCT + - 86 + - SUM( ALL 28 ) FROM tab0 WHERE ( NOT - col2 IS NOT NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2937
SELECT DISTINCT + - 86 + - SUM ( ALL 28 ) FROM tab0 WHERE ( NOT - col2 IS NOT NULL )
----
NULL

query I rowsort
SELECT ALL col1 * - 38 * + 40 FROM tab0
----
-123120
-1520
-31920

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NOT ( NULL ) NOT BETWEEN NULL AND 58 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2940
SELECT + COUNT( * ) FROM tab2 WHERE NOT + - col1 * + - 27 NOT BETWEEN NULL AND - + 16
----
0

skipif mysql # not compatible
query I rowsort label-2940
SELECT + COUNT ( * ) FROM tab2 WHERE NOT + - col1 * + - 27 NOT BETWEEN NULL AND - + 16
----
0

query I rowsort
SELECT + col1 FROM tab1 WHERE NOT ( - col2 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2942
SELECT 93 col1, col0 DIV + + col2 FROM tab1
----
93
0
93
1
93
1

skipif mysql # not compatible
query II rowsort label-2942
SELECT 93 col1, col0 / + + col2 FROM tab1
----
93
0
93
1
93
1

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col1 * - col2 * + ( - 81 ) IN ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2944
SELECT DISTINCT + MAX( DISTINCT - - col2 ) FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-2944
SELECT DISTINCT + MAX ( DISTINCT - - col2 ) FROM tab0 AS cor0
----
99

query I rowsort
SELECT DISTINCT + col1 FROM tab1 AS cor0 WHERE NOT 0 - + + col1 + + col2 + - + 96 / col2 * - col1 = NULL OR NOT ( 80 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - col0 + + 39 ) IS NOT NULL
----

query I rowsort
SELECT - + 45 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 71160abf09589695379a70558726f0ba

query I rowsort
SELECT + col0 FROM tab2 WHERE + + col2 > ( 52 - - ( col1 ) / col0 * + col0 / - col2 )
----
75

query I rowsort
SELECT ALL + col0 + - 19 FROM tab1
----
32
66
72

query I rowsort
SELECT 96 + col1 FROM tab0
----
117
177
97

query I rowsort
SELECT DISTINCT + col1 FROM tab2 WHERE NOT NULL > NULL
----

query II rowsort
SELECT DISTINCT + - col0 AS col2, col1 + col0 + + 66 AS col1 FROM tab0 AS cor0
----
-15
162
-87
174
-97
164

query II rowsort
SELECT ALL - 93 AS col0, - col1 FROM tab2 AS cor0
----
-93
-51
-93
-67
-93
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-2954
SELECT + + 65 DIV + - 42 AS col2 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2954
SELECT + + 65 / + - 42 AS col2 FROM tab2 AS cor0
----
-1
-1
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-2955
SELECT ALL 90 * col1 + + 25 + - 8 DIV 77 * + + col2 * ( col2 ) * - ( + 73 + + 56 DIV col2 ) FROM tab0 WHERE col1 IS NOT NULL
----
115
1915
7315

skipif mysql # not compatible
query I rowsort label-2955
SELECT ALL 90 * col1 + + 25 + - 8 / 77 * + + col2 * ( col2 ) * - ( + 73 + + 56 / col2 ) FROM tab0 WHERE col1 IS NOT NULL
----
115
1915
7315

query I rowsort
SELECT DISTINCT col1 FROM tab0 WHERE - col2 IS NOT NULL
----
1
21
81

query I rowsort
SELECT DISTINCT - col0 FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
-46
-64
-75

query I rowsort
SELECT - 24 * - - col1 AS col1 FROM tab2 AS cor0
----
-1224
-1608
-1848

onlyif mysql # aggregate syntax: 
query I rowsort label-2959
SELECT ALL + SUM( ( - col1 ) ) * - 19 * - 93 AS col1 FROM tab0 AS cor0
----
-182001

skipif mysql # not compatible
query I rowsort label-2959
SELECT ALL + SUM ( ( - col1 ) ) * - 19 * - 93 AS col1 FROM tab0 AS cor0
----
-182001

query I rowsort
SELECT - 24 * col0 * - col2 AS col2 FROM tab2
----
104400
25392
61440

query I rowsort
SELECT ALL + col2 * + - col1 AS col2 FROM tab0
----
-210
-3807
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2962
SELECT MIN( - - col2 ) AS col1 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-2962
SELECT MIN ( - - col2 ) AS col1 FROM tab2
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2963
SELECT ALL - + COUNT( * ) FROM tab2 WHERE NOT - CAST( - 70 AS SIGNED ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2963
SELECT ALL - + COUNT ( * ) FROM tab2 WHERE NOT - CAST ( - 70 AS INTEGER ) IS NOT NULL
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2964
SELECT ALL + + col1 + - col2 + col1 + CAST( ( col0 ) AS DECIMAL ) * + col1 AS col1 FROM tab1 WHERE ( + col2 + + - col2 ) IN ( col1, col1 )
----

skipif mysql # not compatible
query I rowsort label-2964
SELECT ALL + + col1 + - col2 + col1 + CAST ( ( col0 ) AS REAL ) * + col1 AS col1 FROM tab1 WHERE ( + col2 + + - col2 ) IN ( col1, col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL < + 91 * col0 / + col1 + + col2 + + 0 * - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2966
SELECT ALL - col1 DIV - - col2 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2966
SELECT ALL - col1 / - - col2 AS col2 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2967
SELECT DISTINCT + SUM( DISTINCT - 75 ) FROM tab0
----
-75

skipif mysql # not compatible
query I rowsort label-2967
SELECT DISTINCT + SUM ( DISTINCT - 75 ) FROM tab0
----
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-2968
SELECT ALL col0 DIV + 34 AS col1 FROM tab1
----
1
2
2

skipif mysql # not compatible
query I rowsort label-2968
SELECT ALL col0 / + 34 AS col1 FROM tab1
----
1
2
2

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col0 NOT IN ( + 97 * + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2970
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + SUM( DISTINCT - col1 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2970
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + SUM ( DISTINCT - col1 ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2971
SELECT DISTINCT col1 * CAST( NULL AS DECIMAL ) + - col1 * 25 / col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2971
SELECT DISTINCT col1 * CAST ( NULL AS REAL ) + - col1 * 25 / col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + 68 * + + col1 FROM tab2 AS cor0
----
3468
4556
5236

query I rowsort
SELECT + - col0 * + - ( col0 ) FROM tab0 AS cor0
----
225
7569
9409

query I rowsort
SELECT - 78 * + ( + 20 ) * col1 FROM tab1 AS cor0
----
-21840
-73320
-7800

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 BETWEEN + 77 * - 67 AND NULL
----

query I rowsort
SELECT - - col2 * - - 27 AS col1 FROM tab2 AS cor0
----
1080
1566
621

query I rowsort
SELECT + 75 * - col1 + + - col1 FROM tab1 WHERE + + ( + - col1 ) IN ( - 13 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2978
SELECT + + col1 AS col0 FROM tab0 WHERE + + ( - CAST( - - col1 AS DECIMAL ) ) IS NOT NULL
----
1
21
81

skipif mysql # not compatible
query I rowsort label-2978
SELECT + + col1 AS col0 FROM tab0 WHERE + + ( - CAST ( - - col1 AS REAL ) ) IS NOT NULL
----
1
21
81

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col0 BETWEEN NULL AND - + 8
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 68 + + + 23 col2 FROM tab2
----
91
91
91

query I rowsort
SELECT - col1 * - col1 + - 80 FROM tab2 AS cor0
----
2521
4409
5849

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 4 col0 FROM tab0 cor0
----
4
4
4

query I rowsort
SELECT ALL + + ( - col0 ) + - 56 AS col1 FROM tab2 AS cor0
----
-102
-120
-131

onlyif mysql # aggregate syntax: 
query I rowsort label-2984
SELECT + - COUNT( * ) + - 53 + - 76 col1 FROM tab1 AS cor0
----
-132

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2984
SELECT + - COUNT ( * ) + - 53 + - 76 col1 FROM tab1 AS cor0
----
-132

onlyif mysql # aggregate syntax: 
query I rowsort label-2985
SELECT DISTINCT 9 + + + COUNT( * ) - + + ( + MAX( 24 ) ) FROM tab2 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-2985
SELECT DISTINCT 9 + + + COUNT ( * ) - + + ( + MAX ( 24 ) ) FROM tab2 AS cor0
----
-12

query I rowsort
SELECT DISTINCT col2 + - - col1 + - - col1 * 58 * - - 65 AS col0 FROM tab1 AS cor0
----
177305
18914
52890

query II rowsort
SELECT col1 AS col2, - ( - 95 ) * + col0 FROM tab1 cor0
----
14
4845
47
8645
5
8075

query II rowsort
SELECT + col2 AS col2, - ( + 28 ) FROM tab2 AS cor0
----
23
-28
40
-28
58
-28

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT - ( + col2 ) NOT IN ( + + 42, - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 43 - - 38 col1 FROM tab2 AS cor0
----
-5

query III rowsort
SELECT * FROM tab1 WHERE 12 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2992
SELECT COUNT( DISTINCT - + 88 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-2992
SELECT COUNT ( DISTINCT - + 88 ) FROM tab0
----
1

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NOT 25 <> NULL )
----

query I rowsort
SELECT + + 43 AS col2 FROM tab2 WHERE NULL IS NULL
----
43
43
43

onlyif mysql # aggregate syntax: 
query I rowsort label-2995
SELECT ALL MAX( 20 ) col1 FROM tab0
----
20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2995
SELECT ALL MAX ( 20 ) col1 FROM tab0
----
20

query I rowsort
SELECT + 81 - - - col0 + + 62 FROM tab0
----
128
46
56

query II rowsort
SELECT ALL + col1 + - - 64 AS col0, - col1 * - 73 FROM tab0 cor0
----
145
5913
65
73
85
1533

query II rowsort
SELECT - + 91 + - + col0 AS col2, col0 + col1 FROM tab2 cor0
----
-137
97
-155
141
-166
142

onlyif mysql # aggregate syntax: 
query I rowsort label-2999
SELECT DISTINCT MAX( ALL - - col1 ) FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-2999
SELECT DISTINCT MAX ( ALL - - col1 ) FROM tab0 AS cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3000
SELECT ALL - SUM( + col0 ) FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
-185

skipif mysql # not compatible
query I rowsort label-3000
SELECT ALL - SUM ( + col0 ) FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
-185

query I rowsort
SELECT ALL + ( + 12 ) FROM tab1 AS cor0
----
12
12
12

onlyif mysql # aggregate syntax: 
query I rowsort label-3002
SELECT ALL MAX( - 30 ) FROM tab2 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-3002
SELECT ALL MAX ( - 30 ) FROM tab2 AS cor0
----
-30

query I rowsort
SELECT DISTINCT - + col1 * + col1 AS col1 FROM tab1 AS cor0
----
-196
-2209
-25

query I rowsort
SELECT DISTINCT col2 FROM tab0 AS cor0 WHERE ( 87 * + 95 ) IS NOT NULL
----
10
47
99

onlyif mysql # DIV for integer division: 
query I rowsort label-3005
SELECT - - col2 DIV - - 28 AS col0 FROM tab1 AS cor0
----
2
2
3

skipif mysql # not compatible
query I rowsort label-3005
SELECT - - col2 / - - 28 AS col0 FROM tab1 AS cor0
----
2
2
3

query II rowsort
SELECT + 27 AS col2, col0 AS col1 FROM tab2
----
27
46
27
64
27
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3007
SELECT CAST( NULL AS SIGNED ) * - - 28 * - col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3007
SELECT CAST ( NULL AS INTEGER ) * - - 28 * - col2 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( 95 / 29 ) > NULL
----

query I rowsort
SELECT - ( - 93 ) * + + col1 FROM tab1 cor0
----
1302
4371
465

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3010
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) = - + col0
----

skipif mysql # not compatible
query III rowsort label-3010
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) = - + col0
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NOT - col1 >= + 19 * 57 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col2 < NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + 91 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 58 * + col1 AS col1 FROM tab1
----
-2726
-290
-812

onlyif mysql # aggregate syntax: 
query I rowsort label-3015
SELECT DISTINCT MAX( ALL 63 ) AS col1 FROM tab2
----
63

skipif mysql # not compatible
query I rowsort label-3015
SELECT DISTINCT MAX ( ALL 63 ) AS col1 FROM tab2
----
63

query I rowsort
SELECT DISTINCT - col2 + - - col0 AS col0 FROM tab0 AS cor0
----
-2
-32
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3017
SELECT DISTINCT - COUNT( ALL + - 10 ) + + MAX( + - col1 ) AS col1 FROM tab0 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-3017
SELECT DISTINCT - COUNT ( ALL + - 10 ) + + MAX ( + - col1 ) AS col1 FROM tab0 AS cor0
----
-4

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 65 + - + 87 - + + col2 < NULL
----

query I rowsort
SELECT ALL + 70 + 96 FROM tab0 AS cor0
----
166
166
166

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 AS col1, - col1 * 7 col1 FROM tab2
----
51
-357
67
-469
77
-539

onlyif mysql # aggregate syntax: 
query I rowsort label-3021
SELECT + COUNT( * ) - - 71 * + - COUNT( * ) AS col2 FROM tab1, tab0 cor0
----
-630

skipif mysql # not compatible
query I rowsort label-3021
SELECT + COUNT ( * ) - - 71 * + - COUNT ( * ) AS col2 FROM tab1, tab0 cor0
----
-630

onlyif mysql # DIV for integer division: 
query I rowsort label-3022
SELECT + 1 - + 28 DIV - + col1 AS col2 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3022
SELECT + 1 - + 28 / - + col1 AS col2 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT ALL - 48 + + - 50 - - + 17 FROM tab1 AS cor0
----
-81
-81
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 col1, col1 + - col2 col0 FROM tab1 AS cor0
----
-51
-82
-85
-54
-91
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3025
SELECT ALL + + SUM( ALL CAST( - ( col0 ) AS SIGNED ) ) FROM tab0 cor0
----
-199

skipif mysql # not compatible
query I rowsort label-3025
SELECT ALL + + SUM ( ALL CAST ( - ( col0 ) AS INTEGER ) ) FROM tab0 cor0
----
-199

query I rowsort
SELECT ALL + + 26 * - ( - + col2 ) - + + 2 AS col0 FROM tab2 AS cor0
----
1038
1506
596

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 18 + - + col2 NOT BETWEEN + 34 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col2 - + 13 AS col1 FROM tab0 AS cor0
----
-112
-23
-60

query I rowsort
SELECT - 0 * + col2 * - + col0 * col0 + 92 FROM tab0
----
92
92
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3030
SELECT ALL - 25 - 92 DIV - - COUNT( * ) FROM tab0
----
-55

skipif mysql # not compatible
query I rowsort label-3030
SELECT ALL - 25 - 92 / - - COUNT ( * ) FROM tab0
----
-55

query I rowsort
SELECT col0 * - + 33 + + 94 + - col0 AS col1 FROM tab2
----
-1470
-2082
-2456

query III rowsort
SELECT * FROM tab2 WHERE - ( + - col0 ) IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3033
SELECT - COUNT( * ) DIV + + 6 + + COUNT( * ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3033
SELECT - COUNT ( * ) / + + 6 + + COUNT ( * ) AS col1 FROM tab0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3034
SELECT - 58 * + + col0 DIV col0 + + col1 FROM tab0
----
-37
-57
23

skipif mysql # not compatible
query I rowsort label-3034
SELECT - 58 * + + col0 / col0 + + col1 FROM tab0
----
-37
-57
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3035
SELECT DISTINCT CAST( NULL AS SIGNED ) - - - col1 + - col2 AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3035
SELECT DISTINCT CAST ( NULL AS INTEGER ) - - - col1 + - col2 AS col1 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT - ( - + 61 ) FROM tab1 WHERE NOT + col1 IS NULL
----
61

query III rowsort
SELECT - col0 AS col2, - col2 AS col1, col1 * col0 + + col1 AS col1 FROM tab2
----
9 values hashing to d90392ce24a5c1901fa9224b86555788

query III rowsort
SELECT * FROM tab2 WHERE NOT + - col2 + - 2 = + 32 - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT ( NULL ) IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3040
SELECT + + MIN( DISTINCT + col2 ) AS col2 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-3040
SELECT + + MIN ( DISTINCT + col2 ) AS col2 FROM tab0 AS cor0
----
10

query I rowsort
SELECT - col1 + - - col1 AS col1 FROM tab0 AS cor0 WHERE NOT - col0 + - - 31 * + + 84 >= - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3042
SELECT ALL - - COUNT( * ) + + - 15 col0 FROM tab2 AS cor0
----
-12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3042
SELECT ALL - - COUNT ( * ) + + - 15 col0 FROM tab2 AS cor0
----
-12

query III rowsort
SELECT + + 1 + 36 AS col0, col0 AS col2, + col1 FROM tab1 cor0
----
9 values hashing to 6123ae70d079c39b27f6a77801160e3f

query I rowsort
SELECT DISTINCT + ( - 84 ) + - col1 FROM tab1 AS cor0
----
-131
-89
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3045
SELECT ALL col2 * CAST( - col2 AS SIGNED ) FROM tab1 AS cor0
----
-3481
-4624
-9216

skipif mysql # not compatible
query I rowsort label-3045
SELECT ALL col2 * CAST ( - col2 AS INTEGER ) FROM tab1 AS cor0
----
-3481
-4624
-9216

onlyif mysql # aggregate syntax: 
query I rowsort label-3046
SELECT + - COUNT( * ) + - COUNT( * ) FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-3046
SELECT + - COUNT ( * ) + - COUNT ( * ) FROM tab1 AS cor0
----
-6

query I rowsort
SELECT - + 62 + col1 + + + 25 FROM tab0 AS cor0
----
-16
-36
44

onlyif mysql # aggregate syntax: 
query I rowsort label-3048
SELECT DISTINCT - COUNT( DISTINCT + 40 ) AS col2 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-3048
SELECT DISTINCT - COUNT ( DISTINCT + 40 ) AS col2 FROM tab0
----
-1

query II rowsort
SELECT ALL col2 AS col0, ( ( col0 ) ) FROM tab1
----
59
85
68
91
96
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3050
SELECT + + CAST( - - ( + + col2 ) AS SIGNED ) FROM tab1 WHERE + ( + col2 ) * - - 71 BETWEEN - + 49 * + + 22 AND NULL
----

skipif mysql # not compatible
query I rowsort label-3050
SELECT + + CAST ( - - ( + + col2 ) AS INTEGER ) FROM tab1 WHERE + ( + col2 ) * - - 71 BETWEEN - + 49 * + + 22 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( ( NOT NULL IS NULL ) )
----

query II rowsort
SELECT + 68 AS col1, 95 * - + 82 AS col1 FROM tab2 cor0
----
68
-7790
68
-7790
68
-7790

query I rowsort
SELECT 70 FROM tab2 AS cor0 WHERE NULL IN ( 40 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3054
SELECT COUNT( * ) + + 58 FROM tab0 AS cor0
----
61

skipif mysql # not compatible
query I rowsort label-3054
SELECT COUNT ( * ) + + 58 FROM tab0 AS cor0
----
61

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3055
SELECT DISTINCT COUNT( * ) * CAST( NULL AS DECIMAL ) - + - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-3055
SELECT DISTINCT COUNT ( * ) * CAST ( NULL AS REAL ) - + - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

query I rowsort
SELECT + ( - ( + 98 ) ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to f17b7008a7deae1eb5a2e707ec237638

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - 24 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col0 * + 87 FROM tab2 AS cor0
----
-4002
-5568
-6525

query I rowsort
SELECT ALL - + col2 + + col2 + + 0 + + col0 FROM tab0 AS cor0
----
15
87
97

query I rowsort
SELECT DISTINCT - - col2 + - + col2 + - + col0 AS col2 FROM tab1 AS cor0
----
-51
-85
-91

query I rowsort
SELECT + - 70 * col1 - + col0 AS col0 FROM tab2 AS cor0
----
-3616
-4765
-5454

query I rowsort
SELECT DISTINCT + + col2 + + - 4 AS col1 FROM tab2 AS cor0
----
19
36
54

query I rowsort
SELECT + col1 - ( + 52 ) AS col2 FROM tab2 AS cor0
----
-1
15
25

query III rowsort
SELECT * FROM tab0 WHERE NOT + 29 * + col2 = - - 12
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL + 39 AS col2, 45 + - col2 FROM tab0
----
39
-2
39
-54
39
35

query II rowsort
SELECT + col2, 47 AS col2 FROM tab2 WHERE NOT NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3067
SELECT ALL + ( - ( + SUM( - 38 ) ) ) * - SUM( DISTINCT + 65 ) AS col2 FROM tab2
----
-7410

skipif mysql # not compatible
query I rowsort label-3067
SELECT ALL + ( - ( + SUM ( - 38 ) ) ) * - SUM ( DISTINCT + 65 ) AS col2 FROM tab2
----
-7410

query I rowsort
SELECT ALL + col0 * + - col2 * - - col2 FROM tab1
----
-295885
-420784
-470016

query I rowsort
SELECT + 55 * + - ( + 15 ) FROM tab2
----
-825
-825
-825

query II rowsort
SELECT - col1 * - 82 * - col1, col1 + + ( + col2 ) AS col1 FROM tab0 cor0
----
-36162
31
-538002
128
-82
100

query II rowsort
SELECT ALL + col0, + col1 AS col2 FROM tab2 AS cor0
----
46
51
64
77
75
67

query I rowsort
SELECT - col1 * - 46 AS col0 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT DISTINCT - col2, 83 AS col2 FROM tab1
----
-59
83
-68
83
-96
83

onlyif mysql # aggregate syntax: 
query II rowsort label-3074
SELECT 18 AS col0, COUNT( * ) * - COUNT( ALL - + 92 ) FROM tab0
----
18
-9

skipif mysql # not compatible
query II rowsort label-3074
SELECT 18 AS col0, COUNT ( * ) * - COUNT ( ALL - + 92 ) FROM tab0
----
18
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-3075
SELECT + + ( 51 ), MAX( + + col0 ) AS col2 FROM tab0 AS cor0
----
51
97

skipif mysql # not compatible
query II rowsort label-3075
SELECT + + ( 51 ), MAX ( + + col0 ) AS col2 FROM tab0 AS cor0
----
51
97

query I rowsort
SELECT DISTINCT - + col0 + + 77 FROM tab0 cor0
----
-10
-20
62

query I rowsort
SELECT ALL - col1 + - + 43 FROM tab0 AS cor0
----
-124
-44
-64

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3078
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND CAST( + col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3078
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND CAST ( + col2 AS INTEGER )
----

query I rowsort
SELECT ALL - col0 FROM tab1 AS cor0 WHERE NOT col2 + 73 < + col1 + - + col2
----
-51
-85
-91

query I rowsort
SELECT DISTINCT 64 + 78 FROM tab2 AS cor0
----
142

query I rowsort
SELECT + - ( + + 20 ) AS col1 FROM tab1 AS cor0
----
-20
-20
-20

query I rowsort
SELECT 94 + + 77 + - col1 FROM tab1
----
124
157
166

query I rowsort
SELECT - col0 + - col2 + + col0 AS col0 FROM tab2
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3084
SELECT MAX( + col2 ) + - - COUNT( * ) FROM tab1
----
99

skipif mysql # not compatible
query I rowsort label-3084
SELECT MAX ( + col2 ) + - - COUNT ( * ) FROM tab1
----
99

query I rowsort
SELECT - col0 + + - 92 * + - col2 + + 99 AS col1 FROM tab2
----
2169
3715
5360

query I rowsort
SELECT - col1 + 86 AS col2 FROM tab0
----
5
65
85

onlyif mysql # aggregate syntax: 
query I rowsort label-3087
SELECT ALL MIN( DISTINCT 72 ) FROM tab0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3087
SELECT ALL MIN ( DISTINCT 72 ) FROM tab0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3088
SELECT + 60 + + + COUNT( * ) AS col1 FROM tab0
----
63

skipif mysql # not compatible
query I rowsort label-3088
SELECT + 60 + + + COUNT ( * ) AS col1 FROM tab0
----
63

query II rowsort
SELECT ALL - ( + - col2 ) AS col2, + col0 FROM tab1
----
59
85
68
91
96
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3090
SELECT ALL ( + SUM( - col0 ) ) + - ( + 49 ) FROM tab2
----
-234

skipif mysql # not compatible
query I rowsort label-3090
SELECT ALL ( + SUM ( - col0 ) ) + - ( + 49 ) FROM tab2
----
-234

onlyif mysql # aggregate syntax: 
query I rowsort label-3091
SELECT 43 + + + COUNT( * ) AS col1 FROM tab0
----
46

skipif mysql # not compatible
query I rowsort label-3091
SELECT 43 + + + COUNT ( * ) AS col1 FROM tab0
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3092
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) IN ( + + 7, CAST( NULL AS SIGNED ) * - col1 )
----

skipif mysql # not compatible
query III rowsort label-3092
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) IN ( + + 7, CAST ( NULL AS INTEGER ) * - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 83 * + ( 41 ) + - col0 + - col0 col1 FROM tab0 AS cor0
----
3209
3229
3373

query I rowsort
SELECT ALL - + col0 - col2 + - - 43 AS col1 FROM tab2 AS cor0
----
-26
-61
-90

query II rowsort
SELECT DISTINCT - ( - - col0 ) - - - 14 AS col1, 26 - + 82 AS col1 FROM tab1
----
-105
-56
-65
-56
-99
-56

query I rowsort
SELECT + col0 AS col2 FROM tab2 cor0 WHERE col2 IS NOT NULL
----
46
64
75

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + 41 AND NULL
----

query II rowsort
SELECT + 31, 25 AS col2 FROM tab2 AS cor0
----
31
25
31
25
31
25

onlyif mysql # aggregate syntax: 
query I rowsort label-3099
SELECT ALL + COUNT( * ) * + 98 AS col1 FROM tab1
----
294

skipif mysql # not compatible
query I rowsort label-3099
SELECT ALL + COUNT ( * ) * + 98 AS col1 FROM tab1
----
294

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3100
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + COUNT( + col1 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3100
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + COUNT ( + col1 ) FROM tab1
----
NULL

query I rowsort
SELECT 16 * col0 AS col2 FROM tab2
----
1024
1200
736

onlyif mysql # DIV for integer division: 
query I rowsort label-3102
SELECT ALL - ( + col2 ) DIV + 22 FROM tab0
----
-2
-4
0

skipif mysql # not compatible
query I rowsort label-3102
SELECT ALL - ( + col2 ) / + 22 FROM tab0
----
-2
-4
0

query I rowsort
SELECT DISTINCT col1 * + + 10 AS col0 FROM tab0
----
10
210
810

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3104
SELECT ALL + 53 DIV + COUNT( ALL - col1 ) FROM tab0
----
17

skipif mysql # not compatible
query I rowsort label-3104
SELECT ALL + 53 / + COUNT ( ALL - col1 ) FROM tab0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-3105
SELECT + ( - + COUNT( * ) ) FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3105
SELECT + ( - + COUNT ( * ) ) FROM tab2 cor0
----
-3

query I rowsort
SELECT ALL col0 * + - col1 * - col0 FROM tab2 AS cor0
----
107916
315392
376875

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3107
SELECT CAST( + - 51 AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 08d3853e39924d3c636260a6dd856837

skipif mysql # not compatible
query I rowsort label-3107
SELECT CAST ( + - 51 AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 08d3853e39924d3c636260a6dd856837

query II rowsort
SELECT + 23 + + ( - col0 ) AS col0, + 60 FROM tab1 AS cor0
----
-28
60
-62
60
-68
60

query I rowsort
SELECT - 28 + - col1 FROM tab0 AS cor0
----
-109
-29
-49

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE + ( col1 ) + + + col0 * - col2 * - 8 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + ( - 6 ) AS col2 FROM tab2
----
-6
-6
-6

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3112
SELECT DISTINCT * FROM tab1 WHERE NOT - ( - + col0 ) >= - CAST( + - ( ( - 39 ) ) AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3112
SELECT DISTINCT * FROM tab1 WHERE NOT - ( - + col0 ) >= - CAST ( + - ( ( - 39 ) ) AS INTEGER )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3113
SELECT ALL COUNT( * ) DIV + 28 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3113
SELECT ALL COUNT ( * ) / + 28 AS col1 FROM tab1
----
0

query III rowsort
SELECT * FROM tab2 WHERE - col0 * - + 39 * - 71 >= + 59
----

query II rowsort
SELECT DISTINCT + col1 AS col0, col2 FROM tab0
----
1
99
21
10
81
47

query I rowsort
SELECT ALL + ( + 32 ) AS col0 FROM tab0
----
32
32
32

onlyif mysql # aggregate syntax: 
query I rowsort label-3117
SELECT ALL COUNT( * ) FROM tab2 WHERE NOT col0 + + 53 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-3117
SELECT ALL COUNT ( * ) FROM tab2 WHERE NOT col0 + + 53 = NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0, col0 col2 FROM tab2
----
46
46
64
64
75
75

query III rowsort
SELECT * FROM tab1 WHERE col1 + + col2 + - 47 + + + col2 IS NULL
----

query I rowsort
SELECT ALL col0 + + + col1 * - - 40 AS col1 FROM tab1
----
1971
285
611

query II rowsort
SELECT DISTINCT + ( 97 ), - col0 AS col2 FROM tab2
----
97
-46
97
-64
97
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3122
SELECT CAST( NULL AS SIGNED ) / + COUNT( * ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3122
SELECT CAST ( NULL AS INTEGER ) / + COUNT ( * ) AS col0 FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab0 cor0 WHERE col1 + 66 + + - col1 IS NULL
----

query I rowsort
SELECT DISTINCT + col0 * + + col1 + col1 - + col2 FROM tab0 AS cor0
----
-1
1249
1838

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3125
SELECT * FROM tab0 cor0 WHERE col1 + + CAST( - - 80 AS SIGNED ) * - col2 * - - col1 IS NULL
----

skipif mysql # not compatible
query III rowsort label-3125
SELECT * FROM tab0 cor0 WHERE col1 + + CAST ( - - 80 AS INTEGER ) * - col2 * - - col1 IS NULL
----

query I rowsort
SELECT DISTINCT + 33 - - 19 FROM tab0 AS cor0
----
52

query I rowsort
SELECT DISTINCT - col2 + + 93 + col1 AS col0 FROM tab1 AS cor0
----
11
39
72

query I rowsort
SELECT DISTINCT + col0 - + + col0 FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-3129
SELECT col2 DIV + - col1 AS col1, + 7 col1 FROM tab0 AS cor0
----
-99
7
0
7
0
7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3129
SELECT col2 / + - col1 AS col1, + 7 col1 FROM tab0 AS cor0
----
-99
7
0
7
0
7

onlyif mysql # DIV for integer division: 
query II rowsort label-3130
SELECT + col2 DIV + 3 col2, col2 AS col1 FROM tab2 cor0
----
13
40
19
58
7
23

skipif mysql # not compatible
query II rowsort label-3130
SELECT + col2 / + 3 col2, col2 AS col1 FROM tab2 cor0
----
13
40
19
58
7
23

query II rowsort
SELECT + - col0 * + 37, 2 AS col0 FROM tab1 AS cor0
----
-1887
2
-3145
2
-3367
2

query I rowsort
SELECT 42 * - col2 FROM tab1 AS cor0
----
-2478
-2856
-4032

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3133
SELECT ALL + ( + col1 ) col2 FROM tab1 AS cor0 WHERE 89 - + col1 * + - col0 + - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3133
SELECT ALL + ( + col1 ) col2 FROM tab1 AS cor0 WHERE 89 - + col1 * + - col0 + - CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3134
SELECT + col0 DIV + col2, col2 DIV + col0 AS col0 FROM tab0 AS cor0
----
0
1
0
3
8
0

skipif mysql # not compatible
query II rowsort label-3134
SELECT + col0 / + col2, col2 / + col0 AS col0 FROM tab0 AS cor0
----
0
1
0
3
8
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - - 63 col1 FROM tab1 AS cor0
----
-3717
-4284
-6048

query I rowsort
SELECT + col0 FROM tab1 WHERE NOT col1 IS NULL
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3137
SELECT ALL + MAX( col1 ) - - 88 AS col1 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3137
SELECT ALL + MAX ( col1 ) - - 88 AS col1 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3138
SELECT + COUNT( * ), + 20 AS col2 FROM tab0
----
3
20

skipif mysql # not compatible
query II rowsort label-3138
SELECT + COUNT ( * ), + 20 AS col2 FROM tab0
----
3
20

query II rowsort
SELECT ALL - 98 AS col0, - ( + - col1 ) FROM tab1
----
-98
14
-98
47
-98
5

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3140
SELECT ALL - CAST( col1 AS SIGNED ) DIV - + 98 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3140
SELECT ALL - CAST ( col1 AS INTEGER ) / - + 98 AS col2 FROM tab1
----
0
0
0

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 / - 86 IS NOT NULL
----

query I rowsort
SELECT ALL - 4 * 33 FROM tab2
----
-132
-132
-132

onlyif mysql # aggregate syntax: 
query I rowsort label-3143
SELECT - 61 * + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-183

skipif mysql # not compatible
query I rowsort label-3143
SELECT - 61 * + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-183

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 * - col2 col0 FROM tab1 AS cor0
----
-3481
-4624
-9216

onlyif mysql # aggregate syntax: 
query I rowsort label-3145
SELECT DISTINCT - SUM( DISTINCT - + col1 ) FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-3145
SELECT DISTINCT - SUM ( DISTINCT - + col1 ) FROM tab2 AS cor0
----
195

query I rowsort
SELECT DISTINCT + + 3 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 21 + 7 IS NULL
----

query I rowsort
SELECT ALL + - col2 + col0 - - 84 FROM tab0 AS cor0
----
161
52
82

onlyif mysql # aggregate syntax: 
query I rowsort label-3149
SELECT ALL 6 + + + COUNT( * ) FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3149
SELECT ALL 6 + + + COUNT ( * ) FROM tab0 AS cor0
----
9

query II rowsort
SELECT DISTINCT + col1, - 22 AS col0 FROM tab0
----
1
-22
21
-22
81
-22

query I rowsort
SELECT ALL - 59 - col0 * - col0 AS col1 FROM tab1
----
2542
7166
8222

onlyif mysql # DIV for integer division: 
query I rowsort label-3152
SELECT col0 DIV + col1 + + col1 AS col1 FROM tab2
----
51
68
77

skipif mysql # not compatible
query I rowsort label-3152
SELECT col0 / + col1 + + col1 AS col1 FROM tab2
----
51
68
77

query I rowsort
SELECT - 37 * + - col0 + + - col1 + + - 14 FROM tab1
----
1859
3126
3306

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3154
SELECT CAST( NULL AS DECIMAL ) + - COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3154
SELECT CAST ( NULL AS REAL ) + - COUNT ( * ) FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL NOT BETWEEN ( NULL ) AND 70 * + - col1
----

query I rowsort
SELECT - + 20 * - col1 * + - col2 * + - 38 FROM tab2 AS cor0
----
2340800
2953360
891480

onlyif mysql # aggregate syntax: 
query I rowsort label-3157
SELECT DISTINCT + MIN( col2 ) - COUNT( * ) FROM tab1 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-3157
SELECT DISTINCT + MIN ( col2 ) - COUNT ( * ) FROM tab1 AS cor0
----
56

query I rowsort
SELECT ALL + col0 - - col1 * - - col0 AS col0 FROM tab0
----
1230
1914
194

query II rowsort
SELECT ALL - col2, ( col0 ) FROM tab2
----
-23
46
-40
64
-58
75

query II rowsort
SELECT DISTINCT - + 13, + 57 AS col0 FROM tab2 AS cor0
----
-13
57

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN 65 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3162
SELECT - - MIN( ALL + + 11 ) * COUNT( * ) AS col1 FROM tab2 cor0
----
33

skipif mysql # not compatible
query I rowsort label-3162
SELECT - - MIN ( ALL + + 11 ) * COUNT ( * ) AS col1 FROM tab2 cor0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-3163
SELECT - + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( + - col0 IS NULL )
----
-3

skipif mysql # not compatible
query I rowsort label-3163
SELECT - + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( + - col0 IS NULL )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3164
SELECT DISTINCT - - COUNT( col1 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3164
SELECT DISTINCT - - COUNT ( col1 ) AS col2 FROM tab0 AS cor0
----
3

query I rowsort
SELECT 66 * col2 FROM tab2 AS cor0
----
1518
2640
3828

query I rowsort
SELECT - col1 * - ( + + col0 ) FROM tab1
----
425
4277
714

onlyif mysql # DIV for integer division: 
query I rowsort label-3167
SELECT col1 DIV ( col1 ) col2 FROM tab1
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3167
SELECT col1 / ( col1 ) col2 FROM tab1
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3168
SELECT - MIN( DISTINCT 93 ) FROM tab2
----
-93

skipif mysql # not compatible
query I rowsort label-3168
SELECT - MIN ( DISTINCT 93 ) FROM tab2
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-3169
SELECT DISTINCT + MAX( 81 ) * - 59 col1 FROM tab1
----
-4779

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3169
SELECT DISTINCT + MAX ( 81 ) * - 59 col1 FROM tab1
----
-4779

onlyif mysql # aggregate syntax: 
query I rowsort label-3170
SELECT ALL - COUNT( * ) FROM tab0 WHERE ( ( + - col1 ) * - col0 * col2 * - 34 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3170
SELECT ALL - COUNT ( * ) FROM tab0 WHERE ( ( + - col1 ) * - col0 * col2 * - 34 ) IS NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3171
SELECT ALL col0 * - col1 DIV col1 + - + col0 * + col0 * col0 AS col2 FROM tab0
----
-3390
-658590
-912770

skipif mysql # not compatible
query I rowsort label-3171
SELECT ALL col0 * - col1 / col1 + - + col0 * + col0 * col0 AS col2 FROM tab0
----
-3390
-658590
-912770

query III rowsort
SELECT * FROM tab0 WHERE NOT - ( - - col2 ) > + col2 + - col1
----
15
81
47
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3173
SELECT - MAX( + col1 ) * - 99 FROM tab2 AS cor0
----
7623

skipif mysql # not compatible
query I rowsort label-3173
SELECT - MAX ( + col1 ) * - 99 FROM tab2 AS cor0
----
7623

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL = - ( + - col1 ) * - + col2
----

query I rowsort
SELECT DISTINCT 38 + + col1 AS col2 FROM tab1
----
43
52
85

query I rowsort
SELECT DISTINCT + 21 * - ( - col1 ) FROM tab2
----
1071
1407
1617

query I rowsort
SELECT - + col1 + + 97 * col0 AS col1 FROM tab1 AS cor0
----
4933
8240
8780

query I rowsort
SELECT DISTINCT 80 + - col1 FROM tab0 AS cor0
----
-1
59
79

onlyif mysql # DIV for integer division: 
query II rowsort label-3179
SELECT ALL - ( - col0 ) + col2 AS col2, + col0 DIV col2 * 44 + 93 - col1 + - col0 * + 99 * col1 FROM tab0 AS cor0
----
196
-9511
62
-120273
97
-180449

skipif mysql # not compatible
query II rowsort label-3179
SELECT ALL - ( - col0 ) + col2 AS col2, + col0 / col2 * 44 + 93 - col1 + - col0 * + 99 * col1 FROM tab0 AS cor0
----
196
-9511
62
-120273
97
-180449

query II rowsort
SELECT col1 AS col1, + col1 * + col2 + - - col1 FROM tab0 AS cor0
----
1
100
21
231
81
3888

onlyif mysql # aggregate syntax: 
query I rowsort label-3181
SELECT DISTINCT + - 62 - + SUM( + col0 ) AS col1 FROM tab2 AS cor0
----
-247

skipif mysql # not compatible
query I rowsort label-3181
SELECT DISTINCT + - 62 - + SUM ( + col0 ) AS col1 FROM tab2 AS cor0
----
-247

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 37 NOT BETWEEN + 87 / + col2 AND + + 86
----

query I rowsort
SELECT 99 AS col0 FROM tab1 WHERE NULL IS NULL
----
99
99
99

onlyif mysql # DIV for integer division: 
query I rowsort label-3184
SELECT ALL - col1 DIV - col1 - + col2 FROM tab2
----
-22
-39
-57

skipif mysql # not compatible
query I rowsort label-3184
SELECT ALL - col1 / - col1 - + col2 FROM tab2
----
-22
-39
-57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 * col1 AS col2, col1 + col2 col1 FROM tab1
----
196
110
2209
115
25
64

query I rowsort
SELECT + 97 - 24 AS col1 FROM tab2
----
73
73
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3187
SELECT ALL + CAST( ( - 97 ) AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-97
-97
-97

skipif mysql # not compatible
query I rowsort label-3187
SELECT ALL + CAST ( ( - 97 ) AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-97
-97
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3188
SELECT MAX( - 10 ) + SUM( ALL + col1 ) * - - COUNT( * ) FROM tab2 AS cor0
----
575

skipif mysql # not compatible
query I rowsort label-3188
SELECT MAX ( - 10 ) + SUM ( ALL + col1 ) * - - COUNT ( * ) FROM tab2 AS cor0
----
575

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT 12 IS NOT NULL )
----

query I rowsort
SELECT + col0 FROM tab0 AS cor0 WHERE NOT ( NOT ( NULL IS NOT NULL ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - + ( + + 40 ) col0 FROM tab2 AS cor0
----
-1840
-2560
-3000

query I rowsort
SELECT DISTINCT + 3 * col1 AS col2 FROM tab1 AS cor0
----
141
15
42

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3193
SELECT + CAST( NULL AS SIGNED ) * + CAST( NULL AS DECIMAL ) * - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3193
SELECT + CAST ( NULL AS INTEGER ) * + CAST ( NULL AS REAL ) * - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3194
SELECT DISTINCT - CAST( + ( + SUM( - col0 ) ) AS SIGNED ) FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-3194
SELECT DISTINCT - CAST ( + ( + SUM ( - col0 ) ) AS INTEGER ) FROM tab0 AS cor0
----
199

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3195
SELECT ALL - 95 * + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0 WHERE 25 * - - ( - col1 ) IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3195
SELECT ALL - 95 * + CAST ( NULL AS REAL ) FROM tab2 AS cor0 WHERE 25 * - - ( - col1 ) IS NOT NULL
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - ( - 75 ) * + + col2 + + col1 NOT BETWEEN + col0 AND + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3197
SELECT DISTINCT COUNT( DISTINCT - 77 ) AS col1 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-3197
SELECT DISTINCT COUNT ( DISTINCT - 77 ) AS col1 FROM tab2
----
1

query II rowsort
SELECT ALL + 44, col1 AS col1 FROM tab1
----
44
14
44
47
44
5

query I rowsort
SELECT - ( + ( 94 ) ) FROM tab0
----
-94
-94
-94

query III rowsort
SELECT 75 AS col2, col2, - col2 + + 35 + col2 AS col2 FROM tab1
----
9 values hashing to 01acd3de8db1789af95550eb0979747b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 98 col0 FROM tab2, tab0 AS cor0
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809

query II rowsort
SELECT 50, col0 AS col2 FROM tab1
----
50
51
50
85
50
91

query II rowsort
SELECT 87 AS col1, + col0 FROM tab2
----
87
46
87
64
87
75

query I rowsort
SELECT + 1 * - + col1 AS col0 FROM tab2
----
-51
-67
-77

query I rowsort
SELECT - col1 + + - col2 FROM tab2 cor0
----
-117
-125
-74

query II rowsort
SELECT + col2 * col1, col0 FROM tab2
----
1173
46
3080
64
3886
75

query I rowsort
SELECT 71 * + col0 FROM tab1
----
3621
6035
6461

query I rowsort
SELECT DISTINCT col1 - + - col0 * + col2 FROM tab0 AS cor0
----
786
891
9604

onlyif mysql # aggregate syntax: 
query I rowsort label-3209
SELECT DISTINCT - + COUNT( * ) FROM tab0 AS cor0 WHERE - col0 + + col2 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-3209
SELECT DISTINCT - + COUNT ( * ) FROM tab0 AS cor0 WHERE - col0 + + col2 < NULL
----
0

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( col0 ) * - + 86 * + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + + col2 - + - 95 + - col1 + 99 * + col2 AS col2 FROM tab2 AS cor0
----
2344
4018
5828

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3212
SELECT + 75 + + + col1 * - CAST( - col0 AS SIGNED ) col2 FROM tab0
----
1290
172
1902

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3212
SELECT + 75 + + + col1 * - CAST ( - col0 AS INTEGER ) col2 FROM tab0
----
1290
172
1902

query I rowsort
SELECT DISTINCT 54 + col2 FROM tab2
----
112
77
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3214
SELECT DISTINCT + CAST( - + 0 AS SIGNED ) - COUNT( * ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-3214
SELECT DISTINCT + CAST ( - + 0 AS INTEGER ) - COUNT ( * ) FROM tab1
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * 32 col2 FROM tab0
----
2592
32
672

query I rowsort
SELECT ALL 21 * + - col2 FROM tab0
----
-2079
-210
-987

query II rowsort
SELECT col1, + 22 FROM tab2
----
51
22
67
22
77
22

query I rowsort
SELECT - col1 AS col2 FROM tab1 WHERE - 23 <> NULL
----

query I rowsort
SELECT ALL + 14 - + col1 AS col2 FROM tab2
----
-37
-53
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-3220
SELECT - col1 DIV + col2 + + col2 AS col1 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-3220
SELECT - col1 / + col2 + + col2 AS col1 FROM tab1 AS cor0
----
59
68
96

query II rowsort
SELECT - + col0, col0 * - col0 AS col1 FROM tab2 cor0
----
-46
-2116
-64
-4096
-75
-5625

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col0 > + ( + - 14 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3223
SELECT ALL + CAST( col0 AS SIGNED ) * + col0 * col2 col2 FROM tab0
----
10575
75690
931491

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3223
SELECT ALL + CAST ( col0 AS INTEGER ) * + col0 * col2 col2 FROM tab0
----
10575
75690
931491

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3224
SELECT DISTINCT - COUNT( * ) DIV + 38 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3224
SELECT DISTINCT - COUNT ( * ) / + 38 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL - + 52 AS col1 FROM tab0 cor0
----
-52
-52
-52

query I rowsort
SELECT - AVG ( DISTINCT + col2 ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3227
SELECT DISTINCT + - CAST( + MAX( ( + 42 ) ) AS SIGNED ) FROM tab1 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-3227
SELECT DISTINCT + - CAST ( + MAX ( ( + 42 ) ) AS INTEGER ) FROM tab1 AS cor0
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3228
SELECT + 38 * - col1 * col0 + - 70 * CAST( col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-191744
-196200
-92368

skipif mysql # not compatible
query I rowsort label-3228
SELECT + 38 * - col1 * col0 + - 70 * CAST ( col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-191744
-196200
-92368

onlyif mysql # aggregate syntax: 
query I rowsort label-3229
SELECT + 93 * + - MIN( col0 ) FROM tab0
----
-1395

skipif mysql # not compatible
query I rowsort label-3229
SELECT + 93 * + - MIN ( col0 ) FROM tab0
----
-1395

onlyif mysql # aggregate syntax: 
query I rowsort label-3230
SELECT ALL + COUNT( * ) * COUNT( - + col1 ) AS col0 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-3230
SELECT ALL + COUNT ( * ) * COUNT ( - + col1 ) AS col0 FROM tab0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3231
SELECT + 78 * + + COUNT( DISTINCT - ( col2 ) ) AS col0 FROM tab0
----
234

skipif mysql # not compatible
query I rowsort label-3231
SELECT + 78 * + + COUNT ( DISTINCT - ( col2 ) ) AS col0 FROM tab0
----
234

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 8 col1 FROM tab1 WHERE col2 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3233
SELECT ALL - col0 AS col1, - CAST( NULL AS DECIMAL ) FROM tab1
----
-51
NULL
-85
NULL
-91
NULL

skipif mysql # not compatible
query II rowsort label-3233
SELECT ALL - col0 AS col1, - CAST ( NULL AS REAL ) FROM tab1
----
-51
NULL
-85
NULL
-91
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col0 * 8 + 9 * - + 22 - 64 IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 45 * - + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3236
SELECT - - COUNT( DISTINCT col1 ) AS col2 FROM tab2 WHERE NULL BETWEEN - 84 - 77 * col0 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-3236
SELECT - - COUNT ( DISTINCT col1 ) AS col2 FROM tab2 WHERE NULL BETWEEN - 84 - 77 * col0 AND NULL
----
0

query II rowsort
SELECT + col1 AS col2, col0 FROM tab0 AS cor0
----
1
97
21
87
81
15

query I rowsort
SELECT DISTINCT - col2 * - 66 AS col0 FROM tab1 AS cor0
----
3894
4488
6336

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3239
SELECT + CAST( NULL AS SIGNED ) AS col1, - col0 col1 FROM tab0 AS cor0
----
NULL
-15
NULL
-87
NULL
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3239
SELECT + CAST ( NULL AS INTEGER ) AS col1, - col0 col1 FROM tab0 AS cor0
----
NULL
-15
NULL
-87
NULL
-97

query I rowsort
SELECT ALL + + col0 + + + ( col1 ) * + 39 - + - col1 AS col1 FROM tab0 cor0
----
137
3255
927

query I rowsort
SELECT + col2 * 90 FROM tab1 cor0
----
5310
6120
8640

query II rowsort
SELECT - col0 * col2 + - col1 AS col1, 83 / - 98 AS col0 FROM tab2 AS cor0 WHERE - col2 + + ( + + 48 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3243
SELECT + + ( + + 89 ) * COUNT( * ) AS col0 FROM tab0 AS cor0
----
267

skipif mysql # not compatible
query I rowsort label-3243
SELECT + + ( + + 89 ) * COUNT ( * ) AS col0 FROM tab0 AS cor0
----
267

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 21 NOT BETWEEN col1 AND - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - + ( - 1 ) AS col2 FROM tab2 AS cor0
----
1
1
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3246
SELECT ALL COUNT( * ) * - - 22 + ( - + CAST( + 80 AS SIGNED ) ) FROM tab2 AS cor0
----
-14

skipif mysql # not compatible
query I rowsort label-3246
SELECT ALL COUNT ( * ) * - - 22 + ( - + CAST ( + 80 AS INTEGER ) ) FROM tab2 AS cor0
----
-14

query I rowsort
SELECT DISTINCT 71 * col1 + - col0 AS col2 FROM tab1 AS cor0
----
270
3246
943

query I rowsort
SELECT ( - col2 ) - - col2 * 28 AS col0 FROM tab0
----
1269
2673
270

query I rowsort
SELECT ALL + col1 / + col0 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3250
SELECT COUNT( * ) AS col1 FROM tab0, tab2 cor0
----
9

skipif mysql # not compatible
query I rowsort label-3250
SELECT COUNT ( * ) AS col1 FROM tab0, tab2 cor0
----
9

query III rowsort
SELECT * FROM tab2 WHERE NOT - 19 IS NOT NULL
----

query I rowsort
SELECT 55 * + - 68 AS col0 FROM tab0
----
-3740
-3740
-3740

onlyif mysql # aggregate syntax: 
query I rowsort label-3253
SELECT + COUNT( - col2 ) * 24 AS col1 FROM tab0 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-3253
SELECT + COUNT ( - col2 ) * 24 AS col1 FROM tab0 AS cor0
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-3254
SELECT + col0 DIV col1 * col0 FROM tab2 cor0
----
0
0
75

skipif mysql # not compatible
query I rowsort label-3254
SELECT + col0 / col1 * col0 FROM tab2 cor0
----
0
0
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3255
SELECT MIN( ALL - ( + 91 ) ) AS col2 FROM tab2
----
-91

skipif mysql # not compatible
query I rowsort label-3255
SELECT MIN ( ALL - ( + 91 ) ) AS col2 FROM tab2
----
-91

query I rowsort
SELECT + AVG ( col1 ) AS col0 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NULL > + 34
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3258
SELECT DISTINCT + + col2, - 54 DIV + col0 FROM tab0 AS cor0
----
10
0
47
-3
99
0

skipif mysql # not compatible
query II rowsort label-3258
SELECT DISTINCT + + col2, - 54 / + col0 FROM tab0 AS cor0
----
10
0
47
-3
99
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 79 * + col2 + + col0 * - col2 col0 FROM tab0 AS cor0
----
-1782
-80
3008

query II rowsort
SELECT - col0 * + - ( + - 85 ) AS col1, col2 AS col2 FROM tab2 AS cor0
----
-3910
23
-5440
40
-6375
58

query I rowsort
SELECT DISTINCT + 40 + + 46 FROM tab1 AS cor0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-3262
SELECT DISTINCT SUM( DISTINCT + + col1 ) col1 FROM tab0 cor0
----
103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3262
SELECT DISTINCT SUM ( DISTINCT + + col1 ) col1 FROM tab0 cor0
----
103

query II rowsort
SELECT ALL col1 * - + 92, col2 AS col0 FROM tab1 AS cor0 WHERE 85 NOT BETWEEN NULL AND + col1 - + + col1
----
-1288
96
-4324
68
-460
59

query I rowsort
SELECT - col2 + 76 AS col0 FROM tab2 AS cor0 WHERE NOT ( NOT NULL NOT BETWEEN NULL AND - + col1 )
----

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE NOT col2 < NULL
----

query I rowsort
SELECT + 7 * - 94 FROM tab0 AS cor0
----
-658
-658
-658

query II rowsort
SELECT DISTINCT + 47 * 34 AS col1, - 29 FROM tab2
----
1598
-29

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - + col2 - 98 IS NULL ) OR - + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3269
SELECT - 95 * - MIN( DISTINCT col2 ) FROM tab0
----
950

skipif mysql # not compatible
query I rowsort label-3269
SELECT - 95 * - MIN ( DISTINCT col2 ) FROM tab0
----
950

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3270
SELECT + CAST( NULL AS DECIMAL ) * + col1 + - ( + col1 ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3270
SELECT + CAST ( NULL AS REAL ) * + col1 + - ( + col1 ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 60 + - col0 + + + col0 AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + col1 + + + 23 + col1 FROM tab0
----
185
25
65

onlyif mysql # DIV for integer division: 
query II rowsort label-3273
SELECT + - col1 * - 66 + col1 DIV - - col2, - col2 * - col2 + - col1 DIV + col2 + + 6 AS col2 FROM tab1 cor0
----
3102
4630
330
3487
924
9222

skipif mysql # not compatible
query II rowsort label-3273
SELECT + - col1 * - 66 + col1 / - - col2, - col2 * - col2 + - col1 / + col2 + + 6 AS col2 FROM tab1 cor0
----
3102
4630
330
3487
924
9222

query I rowsort
SELECT ALL col1 + - + 53 + col2 AS col2 FROM tab2 AS cor0
----
21
64
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3275
SELECT DISTINCT MIN( + + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3275
SELECT DISTINCT MIN ( + + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3276
SELECT + 62 DIV col2 FROM tab2
----
1
1
2

skipif mysql # not compatible
query I rowsort label-3276
SELECT + 62 / col2 FROM tab2
----
1
1
2

query I rowsort
SELECT col2 + + col0 FROM tab2 AS cor0 WHERE ( NULL ) < col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3278
SELECT ALL + CAST( 19 AS SIGNED ) + + col0 AS col1 FROM tab1 cor0
----
104
110
70

skipif mysql # not compatible
query I rowsort label-3278
SELECT ALL + CAST ( 19 AS INTEGER ) + + col0 AS col1 FROM tab1 cor0
----
104
110
70

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL OR ( - 41 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3280
SELECT ALL CAST( NULL AS SIGNED ) + + ( + + COUNT( * ) ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3280
SELECT ALL CAST ( NULL AS INTEGER ) + + ( + + COUNT ( * ) ) AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3281
SELECT ALL 98 - + CAST( - + CAST( - 46 AS SIGNED ) AS SIGNED ) * - col0 + - - 2 AS col2 FROM tab2 AS cor0
----
2216
3044
3550

skipif mysql # not compatible
query I rowsort label-3281
SELECT ALL 98 - + CAST ( - + CAST ( - 46 AS INTEGER ) AS INTEGER ) * - col0 + - - 2 AS col2 FROM tab2 AS cor0
----
2216
3044
3550

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 62, col0 + + 73 col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
62
160
62
170
62
88

query II rowsort
SELECT - - ( - col0 ), col1 FROM tab1 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT DISTINCT - col0 AS col1, - 69 AS col1 FROM tab2
----
-46
-69
-64
-69
-75
-69

query I rowsort
SELECT DISTINCT col0 * + + 19 * - col0 AS col0 FROM tab2
----
-106875
-40204
-77824

query II rowsort
SELECT - col0, 47 AS col1 FROM tab2
----
-46
47
-64
47
-75
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3287
SELECT DISTINCT CAST( ( ( + - ( CAST( NULL AS SIGNED ) ) ) ) AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3287
SELECT DISTINCT CAST ( ( ( + - ( CAST ( NULL AS INTEGER ) ) ) ) AS INTEGER ) FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT + col0 * col1 IS NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3289
SELECT + COUNT( - col0 ) AS col2, 17 col1 FROM tab1
----
3
17

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3289
SELECT + COUNT ( - col0 ) AS col2, 17 col1 FROM tab1
----
3
17

query I rowsort
SELECT + col2 * + + col1 AS col2 FROM tab0
----
210
3807
99

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - + col0 <> + 58
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 18 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3293
SELECT DISTINCT + COUNT( + - col2 ) + + COUNT( + 85 ) AS col1 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-3293
SELECT DISTINCT + COUNT ( + - col2 ) + + COUNT ( + 85 ) AS col1 FROM tab0 AS cor0
----
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - col0 * - col1 col2 FROM tab2 AS cor0
----
2369
4968
5083

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 >= NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL NOT IN ( col0, col2, + col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3297
SELECT + COUNT( * ) * + + CAST( + + SUM( ALL + col2 ) AS SIGNED ) FROM tab2 AS cor0
----
363

skipif mysql # not compatible
query I rowsort label-3297
SELECT + COUNT ( * ) * + + CAST ( + + SUM ( ALL + col2 ) AS INTEGER ) FROM tab2 AS cor0
----
363

query I rowsort
SELECT - 74 * col1 + col0 AS col2 FROM tab0 AS cor0
----
-1467
-5979
23

onlyif mysql # DIV for integer division: 
query I rowsort label-3299
SELECT - col1 DIV + + 59 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3299
SELECT - col1 / + + 59 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3300
SELECT COUNT( ALL col2 ) * + COUNT( * ) FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-3300
SELECT COUNT ( ALL col2 ) * + COUNT ( * ) FROM tab1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3301
SELECT CAST( + col0 AS SIGNED ) * - col0 AS col0 FROM tab0
----
-225
-7569
-9409

skipif mysql # not compatible
query I rowsort label-3301
SELECT CAST ( + col0 AS INTEGER ) * - col0 AS col0 FROM tab0
----
-225
-7569
-9409

query II rowsort
SELECT DISTINCT - col2 AS col0, + col0 AS col1 FROM tab2
----
-23
46
-40
64
-58
75

onlyif mysql # aggregate syntax: 
query II rowsort label-3303
SELECT ALL COUNT( * ), + 55 * - 52 col1 FROM tab0
----
3
-2860

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3303
SELECT ALL COUNT ( * ), + 55 * - 52 col1 FROM tab0
----
3
-2860

query II rowsort
SELECT - + col1 AS col1, + col2 FROM tab1 cor0
----
-14
96
-47
68
-5
59

query I rowsort
SELECT ALL + col2 * 46 * - + col2 FROM tab1 AS cor0
----
-160126
-212704
-423936

onlyif mysql # aggregate syntax: 
query II rowsort label-3306
SELECT ALL + - COUNT( ALL col0 ) + ( 7 ), ( 86 ) AS col0 FROM tab0 AS cor0
----
4
86

skipif mysql # not compatible
query II rowsort label-3306
SELECT ALL + - COUNT ( ALL col0 ) + ( 7 ), ( 86 ) AS col0 FROM tab0 AS cor0
----
4
86

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL IN ( - col2 * - 53 + + + col0 / - col0 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col0 * + + col1 * - 78 * col0 IS NULL
----

query I rowsort
SELECT ( - 10 ) * - col1 FROM tab0
----
10
210
810

query I rowsort
SELECT DISTINCT + ( col2 ) + ( 3 ) FROM tab2
----
26
43
61

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 70 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( ( + col0 ) * - col1 ) NOT IN ( col0 )
----

query I rowsort
SELECT + 25 + 39 FROM tab0 WHERE NOT ( + ( + 94 ) ) IS NULL
----
64
64
64

query I rowsort
SELECT - 53 * - col0 FROM tab0
----
4611
5141
795

onlyif mysql # aggregate syntax: 
query I rowsort label-3315
SELECT + 42 * COUNT( * ) AS col2 FROM tab0
----
126

skipif mysql # not compatible
query I rowsort label-3315
SELECT + 42 * COUNT ( * ) AS col2 FROM tab0
----
126

query I rowsort
SELECT + 53 * - 13 FROM tab1
----
-689
-689
-689

query I rowsort
SELECT ALL 52 AS col2 FROM tab1 WHERE NOT + 14 * - col0 NOT BETWEEN 46 AND col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3318
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN 8 AND 19 + CAST( NULL AS SIGNED ) * col2
----

skipif mysql # not compatible
query III rowsort label-3318
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN 8 AND 19 + CAST ( NULL AS INTEGER ) * col2
----

query I rowsort
SELECT ALL + col0 * - col2 + + col1 AS col2 FROM tab1
----
-4882
-5010
-6141

query I rowsort
SELECT col0 FROM tab0 WHERE NULL <> 54 / 55
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3321
SELECT SUM( + ( col1 ) ) col2 FROM tab2 WHERE NOT ( col0 ) * ( + col2 ) BETWEEN NULL AND col0
----
195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3321
SELECT SUM ( + ( col1 ) ) col2 FROM tab2 WHERE NOT ( col0 ) * ( + col2 ) BETWEEN NULL AND col0
----
195

query III rowsort
SELECT ALL * FROM tab0 WHERE col1 BETWEEN ( + col1 + - col0 ) AND ( col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 WHERE + 95 + 69 / col0 NOT BETWEEN ( - col1 ) AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + 17 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + 30 * + 10 ) NOT BETWEEN - 30 AND col0 + - 95
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3326
SELECT DISTINCT col1 FROM tab0 WHERE NOT + CAST( - 32 AS DECIMAL ) + + 45 >= col2 + col2
----
1
21
81

skipif mysql # not compatible
query I rowsort label-3326
SELECT DISTINCT col1 FROM tab0 WHERE NOT + CAST ( - 32 AS REAL ) + + 45 >= col2 + col2
----
1
21
81

query I rowsort
SELECT + col0 * + 16 AS col0 FROM tab1 AS cor0
----
1360
1456
816

query I rowsort
SELECT DISTINCT col1 FROM tab0 AS cor0 WHERE ( col2 * - ( ( ( + col1 ) ) * col2 ) ) IS NOT NULL
----
1
21
81

query III rowsort
SELECT ALL * FROM tab2 WHERE ( 67 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL BETWEEN ( NULL ) AND ( 21 + 29 )
----

query I rowsort
SELECT DISTINCT ( - col2 ) FROM tab1 WHERE NOT ( col0 * col1 ) IS NOT NULL
----

query I rowsort
SELECT ALL - col2 * col1 FROM tab1 WHERE ( + col1 + 75 ) NOT BETWEEN NULL AND ( + 7 )
----
-1344
-295
-3196

onlyif mysql # aggregate syntax: 
query I rowsort label-3333
SELECT COUNT( * ) FROM tab2 cor0 CROSS JOIN tab1
----
9

skipif mysql # not compatible
query I rowsort label-3333
SELECT COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab1
----
9

query I rowsort
SELECT DISTINCT 17 AS col1 FROM tab2 WHERE col0 * - col0 <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) BETWEEN 18 AND NULL
----

query I rowsort
SELECT - 64 / + 35 FROM tab1 AS cor0 WHERE ( NULL ) = NULL
----

query I rowsort
SELECT DISTINCT - col2 FROM tab1 AS cor0 WHERE NOT NULL IN ( + col0 * col1 )
----

query I rowsort
SELECT DISTINCT - col1 * ( col0 ) + + 98 AS col2 FROM tab2 AS cor0
----
-2248
-4830
-4927

query I rowsort
SELECT DISTINCT - col2 + col0 * 47 AS col2 FROM tab0 cor0
----
4079
4460
658

query I rowsort
SELECT ALL - 13 AS col2 FROM tab0 AS cor0 WHERE NULL IN ( 45 * - 42 + col2 )
----

query I rowsort
SELECT DISTINCT col2 * + col0 + col1 AS col2 FROM tab0 AS cor0
----
786
891
9604

query I rowsort
SELECT 26 + 23 FROM tab2 AS cor0
----
49
49
49

onlyif mysql # DIV for integer division: 
query I rowsort label-3343
SELECT col1 DIV + col0 + col1 DIV col0 FROM tab2
----
0
2
2

skipif mysql # not compatible
query I rowsort label-3343
SELECT col1 / + col0 + col1 / col0 FROM tab2
----
0
2
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col2 FROM tab1 WHERE ( col0 ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3345
SELECT - 15 + - ( 29 ) + + MIN( col0 ) col1 FROM tab1
----
7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3345
SELECT - 15 + - ( 29 ) + + MIN ( col0 ) col1 FROM tab1
----
7

query I rowsort
SELECT - col1 + col2 * 52 FROM tab2
----
1145
2003
2949

query III rowsort
SELECT * FROM tab0 WHERE - col0 > + col0 * - 70
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col1 + col0 + - col2 FROM tab1 cor0
----
-24
-59
21

query I rowsort
SELECT DISTINCT + 97 * col0 + 52 FROM tab1 AS cor0
----
4999
8297
8879

query I rowsort
SELECT + ( + col1 ) * - - col0 * col1 - 46 * - col0 AS col1 FROM tab1
----
12342
205205
6035

onlyif mysql # aggregate syntax: 
query I rowsort label-3351
SELECT ALL COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9

skipif mysql # not compatible
query I rowsort label-3351
SELECT ALL COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9

query I rowsort
SELECT DISTINCT 36 * + col2 AS col2 FROM tab2
----
1440
2088
828

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 < ( + 48 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3354
SELECT DISTINCT + MAX( - 12 ) DIV - 27 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3354
SELECT DISTINCT + MAX ( - 12 ) / - 27 AS col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL + 10 FROM tab0 AS cor0 WHERE NOT - col1 * col0 / - col0 + ( - 94 ) IS NULL
----
10
10
10

onlyif mysql # DIV for integer division: 
query I rowsort label-3356
SELECT ALL col2 DIV - - 67 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3356
SELECT ALL col2 / - - 67 FROM tab0 AS cor0
----
0
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3357
SELECT + CAST( col1 AS SIGNED ) FROM tab0 AS cor0 WHERE NOT NULL IN ( ( + - 56 ) * col2 )
----

skipif mysql # not compatible
query I rowsort label-3357
SELECT + CAST ( col1 AS INTEGER ) FROM tab0 AS cor0 WHERE NOT NULL IN ( ( + - 56 ) * col2 )
----

query II rowsort
SELECT - 29 AS col1, ( + 17 ) FROM tab2 AS cor0
----
-29
17
-29
17
-29
17

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 * - 20 * col2 >= NULL
----

query I rowsort
SELECT + 33 - - col2 AS col2 FROM tab1 AS cor0 WHERE NOT - 50 * - col1 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3361
SELECT - + CAST( + - COUNT( * ) AS SIGNED ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3361
SELECT - + CAST ( + - COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3362
SELECT - CAST( - - ( - - 80 ) AS SIGNED ) DIV + SUM( col0 ) AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3362
SELECT - CAST ( - - ( - - 80 ) AS INTEGER ) / + SUM ( col0 ) AS col1 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3363
SELECT DISTINCT + 36 * ( CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3363
SELECT DISTINCT + 36 * ( CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3364
SELECT + 87 DIV col0 AS col2 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-3364
SELECT + 87 / col0 AS col2 FROM tab1
----
0
1
1

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL >= - - 66
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 98 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - 1 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3368
SELECT DISTINCT + COUNT( * ) FROM tab2 WHERE + 88 NOT BETWEEN NULL AND ( - col1 * col1 )
----
3

skipif mysql # not compatible
query I rowsort label-3368
SELECT DISTINCT + COUNT ( * ) FROM tab2 WHERE + 88 NOT BETWEEN NULL AND ( - col1 * col1 )
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND col2 + col1 + 4
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3370
SELECT ALL col2 FROM tab0 AS cor0 WHERE NOT - CAST( - 98 AS SIGNED ) > NULL
----

skipif mysql # not compatible
query I rowsort label-3370
SELECT ALL col2 FROM tab0 AS cor0 WHERE NOT - CAST ( - 98 AS INTEGER ) > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3371
SELECT DISTINCT - col2 + + - ( - CAST( - col0 AS SIGNED ) ) + col2 * col0 AS col2 FROM tab0 AS cor0
----
643
773
9407

skipif mysql # not compatible
query I rowsort label-3371
SELECT DISTINCT - col2 + + - ( - CAST ( - col0 AS INTEGER ) ) + col2 * col0 AS col2 FROM tab0 AS cor0
----
643
773
9407

query I rowsort
SELECT ( 98 ) + + col2 * + + col1 - col1 AS col1 FROM tab1 AS cor0
----
1428
3247
388

onlyif mysql # DIV for integer division: 
query I rowsort label-3373
SELECT + col1 + - col2 DIV + 93 + + col1 - + + col0 * col2 FROM tab0 AS cor0
----
-543
-828
-9602

skipif mysql # not compatible
query I rowsort label-3373
SELECT + col1 + - col2 / + 93 + + col1 - + + col0 * col2 FROM tab0 AS cor0
----
-543
-828
-9602

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3374
SELECT - - 64 + CAST( NULL AS SIGNED ) + - SUM( + 46 ) col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3374
SELECT - - 64 + CAST ( NULL AS INTEGER ) + - SUM ( + 46 ) col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - 96 * + 76 + 22 FROM tab1 AS cor0
----
-7274
-7274
-7274

onlyif mysql # aggregate syntax: 
query I rowsort label-3376
SELECT + + SUM( + col2 ) AS col2 FROM tab1 cor0
----
223

skipif mysql # not compatible
query I rowsort label-3376
SELECT + + SUM ( + col2 ) AS col2 FROM tab1 cor0
----
223

onlyif mysql # aggregate syntax: 
query II rowsort label-3377
SELECT DISTINCT - + COUNT( * ) AS col1, + 8 FROM tab0 AS cor0
----
-3
8

skipif mysql # not compatible
query II rowsort label-3377
SELECT DISTINCT - + COUNT ( * ) AS col1, + 8 FROM tab0 AS cor0
----
-3
8

query I rowsort
SELECT - 25 * - + 6 * + - col2 FROM tab1
----
-10200
-14400
-8850

query I rowsort
SELECT + 68 + 61 AS col1 FROM tab2 WHERE col2 < ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 74 * + 70 col1 FROM tab2
----
-5180
-5180
-5180

onlyif mysql # aggregate syntax: 
query I rowsort label-3381
SELECT ALL 45 * ( - - COUNT( * ) ) FROM tab0
----
135

skipif mysql # not compatible
query I rowsort label-3381
SELECT ALL 45 * ( - - COUNT ( * ) ) FROM tab0
----
135

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NOT + col1 * col0 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - ( + col2 ) * 41 AS col1 FROM tab2
----
-1640
-2378
-943

query I rowsort
SELECT + ( - 32 ) + - + col1 + 50 * + col1 * 1 AS col2 FROM tab2 cor0
----
2467
3251
3741

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 0 NOT IN ( - - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3386
SELECT - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-3386
SELECT - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE col1 IS NULL
----

query II rowsort
SELECT DISTINCT + col2 * + col0 AS col0, - col1 FROM tab2
----
1058
-51
2560
-77
4350
-67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3388
SELECT ALL COUNT( * ) DIV + + 86 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3388
SELECT ALL COUNT ( * ) / + + 86 AS col2 FROM tab1
----
0

query II rowsort
SELECT DISTINCT col2, 67 AS col1 FROM tab0 cor0 WHERE ( col0 IS NOT NULL )
----
10
67
47
67
99
67

query I rowsort
SELECT col1 * - col2 * + + 3 * ( col2 ) AS col1 FROM tab2 AS cor0
----
-369600
-676164
-80937

onlyif mysql # aggregate syntax: 
query I rowsort label-3391
SELECT - COUNT( * ) * MAX( - + ( + col0 ) ) AS col0 FROM tab1 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-3391
SELECT - COUNT ( * ) * MAX ( - + ( + col0 ) ) AS col0 FROM tab1 AS cor0
----
153

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL IN ( + 7, + col0 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 / 59 - + col0 NOT BETWEEN 65 / + col1 + - - col2 AND ( NULL )
----

query I rowsort
SELECT ALL + col0 * + col1 * + 24 AS col1 FROM tab0
----
2328
29160
43848

query I rowsort
SELECT ALL - col0 * - col1 + col1 * 48 AS col2 FROM tab0 AS cor0
----
145
2835
5103

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3396
SELECT + CAST( NULL AS SIGNED ) + - 6 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3396
SELECT + CAST ( NULL AS INTEGER ) + - 6 FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL 7 col0, col0 * - col1 - + col2 FROM tab0 AS cor0
----
7
-1262
7
-1837
7
-196

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( ( - col2 ) IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3399
SELECT ALL - CAST( - + col0 AS SIGNED ) AS col1, ( + 13 ) + + col2 * col0 FROM tab0
----
15
718
87
883
97
9616

skipif mysql # not compatible
query II rowsort label-3399
SELECT ALL - CAST ( - + col0 AS INTEGER ) AS col1, ( + 13 ) + + col2 * col0 FROM tab0
----
15
718
87
883
97
9616

query I rowsort
SELECT ALL 36 + 84 FROM tab1
----
120
120
120

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col0 * - col2 / col2 > - 44 - + ( - col2 ) + - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - col0 + - col2 + - col1 * - + col0, col2 col1 FROM tab2 AS cor0
----
2277
23
4824
40
4892
58

query I rowsort
SELECT ALL + col1 + - 13 AS col0 FROM tab2 AS cor0
----
38
54
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3404
SELECT + - CAST( NULL AS SIGNED ) + + col1 * col1 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3404
SELECT + - CAST ( NULL AS INTEGER ) + + col1 * col1 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3405
SELECT col1 * + + col2 + + - col0 * CAST( NULL AS SIGNED ) + + col2 + + 39 + - - col1 + - + col0 * - col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3405
SELECT col1 * + + col2 + + - col0 * CAST ( NULL AS INTEGER ) + + col2 + + 39 + - - col1 + - + col0 * - col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 21 - - col1 FROM tab1
----
26
35
68

query I rowsort
SELECT DISTINCT col1 FROM tab0 WHERE col2 IN ( + - 21 - + - col2 - - - col1, 6 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3408
SELECT ALL COUNT( * ) - SUM( - + 6 ) FROM tab0
----
21

skipif mysql # not compatible
query I rowsort label-3408
SELECT ALL COUNT ( * ) - SUM ( - + 6 ) FROM tab0
----
21

query I rowsort
SELECT - col0 + - col2 + + 81 AS col1 FROM tab2
----
-23
-52
12

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3410
SELECT + CAST( col1 AS SIGNED ) * + col2 * - - 89 + + - col1 DIV - 13 AS col1 FROM tab1
----
119617
26255
284447

skipif mysql # not compatible
query I rowsort label-3410
SELECT + CAST ( col1 AS INTEGER ) * + col2 * - - 89 + + - col1 / - 13 AS col1 FROM tab1
----
119617
26255
284447

query I rowsort
SELECT col1 + - 11 AS col1 FROM tab1
----
-6
3
36

query II rowsort
SELECT col2 * ( ( - + 36 ) ) + - col0, + col2 FROM tab1
----
-2209
59
-2539
68
-3507
96

query I rowsort
SELECT 92 * 74 * col2 FROM tab2
----
156584
272320
394864

query II rowsort
SELECT - col0 AS col0, - col1 + - col0 * + + col0 FROM tab2
----
-46
-2167
-64
-4173
-75
-5692

onlyif mysql # aggregate syntax: 
query I rowsort label-3415
SELECT DISTINCT - MAX( DISTINCT + 13 ) AS col2 FROM tab2 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-3415
SELECT DISTINCT - MAX ( DISTINCT + 13 ) AS col2 FROM tab2 AS cor0
----
-13

query III rowsort
SELECT ALL * FROM tab0 WHERE - 9 IN ( + 64, + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3417
SELECT * FROM tab0 WHERE NOT - 99 + 0 + + - 13 + + col0 * + - CAST( - 74 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3417
SELECT * FROM tab0 WHERE NOT - 99 + 0 + + - 13 + + col0 * + - CAST ( - 74 AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3418
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT - col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3418
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT - col0 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3419
SELECT ALL - COUNT( * ), + MAX( - col2 ) col0 FROM tab2 AS cor0
----
-3
-23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3419
SELECT ALL - COUNT ( * ), + MAX ( - col2 ) col0 FROM tab2 AS cor0
----
-3
-23

query I rowsort
SELECT DISTINCT - 33 * + col1 AS col2 FROM tab2 AS cor0
----
-1683
-2211
-2541

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL < 53
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3422
SELECT DISTINCT + SUM( col0 ) AS col1 FROM tab1 cor0
----
227

skipif mysql # not compatible
query I rowsort label-3422
SELECT DISTINCT + SUM ( col0 ) AS col1 FROM tab1 cor0
----
227

query I rowsort
SELECT DISTINCT - 79 * + 98 - - - 12 FROM tab0 AS cor0
----
-7754

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3424
SELECT - 0 * - CAST( + AVG ( DISTINCT - 2 ) AS SIGNED ) AS col0, 86 * - 15 FROM tab0 AS cor0
----
0
-1290

skipif mysql # not compatible
query II rowsort label-3424
SELECT - 0 * - CAST ( + AVG ( DISTINCT - 2 ) AS INTEGER ) AS col0, 86 * - 15 FROM tab0 AS cor0
----
0
-1290

query I rowsort
SELECT ALL + col0 * col1 * 62 AS col0 FROM tab0 AS cor0
----
113274
6014
75330

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3426
SELECT 42 DIV - COUNT( * ) FROM tab2
----
-14

skipif mysql # not compatible
query I rowsort label-3426
SELECT 42 / - COUNT ( * ) FROM tab2
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3427
SELECT DISTINCT + 43 / - - 73 * - + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3427
SELECT DISTINCT + 43 / - - 73 * - + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3428
SELECT DISTINCT + + CAST( NULL AS SIGNED ) AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3428
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL 13 * - ( col1 ) FROM tab0
----
-1053
-13
-273

query I rowsort
SELECT DISTINCT + 80 * col1 + - col0 FROM tab2 AS cor0
----
4034
5285
6096

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 - col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 > + col1
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 50 IN ( - - col2, - ( + col1 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3434
SELECT - - col1 DIV + + 18 FROM tab2 AS cor0
----
2
3
4

skipif mysql # not compatible
query I rowsort label-3434
SELECT - - col1 / + + 18 FROM tab2 AS cor0
----
2
3
4

query I rowsort
SELECT DISTINCT + col1 + + 75 * + col1 FROM tab1 AS cor0
----
1064
3572
380

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 63 col2 FROM tab2 AS cor0
----
63
63
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3437
SELECT ALL + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NULL NOT BETWEEN + 97 + + - CAST( NULL AS SIGNED ) * - col2 AND 28
----

skipif mysql # not compatible
query I rowsort label-3437
SELECT ALL + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NULL NOT BETWEEN + 97 + + - CAST ( NULL AS INTEGER ) * - col2 AND 28
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 NOT BETWEEN 31 - col1 * + col1 + + col2 AND - 82
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3439
SELECT ALL MIN( + col2 ) + COUNT( * ) FROM tab2
----
26

skipif mysql # not compatible
query I rowsort label-3439
SELECT ALL MIN ( + col2 ) + COUNT ( * ) FROM tab2
----
26

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3440
SELECT DISTINCT ( + MIN( + - col2 ) ) - - COUNT( * ) + - CAST( NULL AS DECIMAL ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3440
SELECT DISTINCT ( + MIN ( + - col2 ) ) - - COUNT ( * ) + - CAST ( NULL AS REAL ) FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE ( - col1 ) NOT IN ( + col0, 59 * - 96 - + + 43 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col2 * - + col0 + + - 80 AS col2 FROM tab2
----
-1138
-2640
-4430

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + - 4 + + col1 * 48 IN ( col1 * - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col2 - - - col2 * - + col0 + - 2 AS col0 FROM tab0
----
750
878
9700

onlyif mysql # aggregate syntax: 
query I rowsort label-3445
SELECT + COUNT( * ) * + 33 * + - MAX( DISTINCT 14 ) AS col1 FROM tab2 AS cor0
----
-1386

skipif mysql # not compatible
query I rowsort label-3445
SELECT + COUNT ( * ) * + 33 * + - MAX ( DISTINCT 14 ) AS col1 FROM tab2 AS cor0
----
-1386

onlyif mysql # DIV for integer division: 
query I rowsort label-3446
SELECT - - 0 DIV col2 * - + col2 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3446
SELECT - - 0 / col2 * - + col2 AS col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3447
SELECT ALL + COUNT( * ) * + 25, + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
75
NULL

skipif mysql # not compatible
query II rowsort label-3447
SELECT ALL + COUNT ( * ) * + 25, + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
75
NULL

query I rowsort
SELECT - ( + col2 ) * + col0 AS col1 FROM tab0 AS cor0
----
-705
-870
-9603

query II rowsort
SELECT ALL + col1 * - 38 + + col0 - - col2 * - - col2, - col0 AS col0 FROM tab0 AS cor0
----
-611
-87
-854
-15
9860
-97

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NULL = col2 * + 79
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3451
SELECT DISTINCT MAX( ALL + + col1 ) FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-3451
SELECT DISTINCT MAX ( ALL + + col1 ) FROM tab2
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3452
SELECT DISTINCT + SUM( ALL - 32 ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-288

skipif mysql # not compatible
query I rowsort label-3452
SELECT DISTINCT + SUM ( ALL - 32 ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-288

query I rowsort
SELECT ALL + 85 * - col0 AS col1 FROM tab1 AS cor0
----
-4335
-7225
-7735

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NULL NOT BETWEEN + col1 + - 56 + - col0 + + 35 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3455
SELECT MIN( - ( col2 ) ) AS col0 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-3455
SELECT MIN ( - ( col2 ) ) AS col0 FROM tab1 AS cor0
----
-96

query I rowsort
SELECT + col0 * - + col0 FROM tab2 cor0
----
-2116
-4096
-5625

query I rowsort
SELECT - col0 FROM tab1 cor0 WHERE NOT ( NULL ) = col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3458
SELECT - MIN( DISTINCT + + col0 ) FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-3458
SELECT - MIN ( DISTINCT + + col0 ) FROM tab1 AS cor0
----
-51

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - - col1 / - + col1 IN ( - col1 )
----
15
81
47
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3460
SELECT ALL - SUM( ALL - + col1 ) FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-3460
SELECT ALL - SUM ( ALL - + col1 ) FROM tab2
----
195

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3461
SELECT DISTINCT 77 * 41 * + + CAST( - col2 AS SIGNED ) * col0 + - col2 AS col2 FROM tab0
----
-2225732
-2746600
-30316770

skipif mysql # not compatible
query I rowsort label-3461
SELECT DISTINCT 77 * 41 * + + CAST ( - col2 AS INTEGER ) * col0 + - col2 AS col2 FROM tab0
----
-2225732
-2746600
-30316770

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 4 col2 FROM tab1
----
4

query I rowsort
SELECT ALL col2 + - 55 AS col1 FROM tab1 AS cor0
----
13
4
41

query I rowsort
SELECT DISTINCT - 12 AS col0 FROM tab2 AS cor0 WHERE NOT - 1 IS NULL
----
-12

query I rowsort
SELECT DISTINCT col0 * - 1 AS col1 FROM tab0
----
-15
-87
-97

query I rowsort
SELECT DISTINCT 1 + + col0 AS col1 FROM tab0 AS cor0
----
16
88
98

query I rowsort
SELECT ALL + 57 + - ( + col1 ) FROM tab0 cor0
----
-24
36
56

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN - col2 AND - col0
----

query I rowsort
SELECT ALL + col0 + - 45 AS col2 FROM tab1 cor0
----
40
46
6

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 84 + - - 23 + - - col2 IS NULL
----

query I rowsort
SELECT + 96 + - 16 AS col1 FROM tab0
----
80
80
80

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - + col0 + + col1 / 48 - + + col0 * col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3473
SELECT MIN( ALL - 28 ) + - - 55 + + + COUNT( * ) FROM tab1
----
30

skipif mysql # not compatible
query I rowsort label-3473
SELECT MIN ( ALL - 28 ) + - - 55 + + + COUNT ( * ) FROM tab1
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-3474
SELECT COUNT( * ) + + ( + ( + + ( - COUNT( * ) ) ) ) AS col2 FROM tab0 WHERE NOT - - 93 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3474
SELECT COUNT ( * ) + + ( + ( + + ( - COUNT ( * ) ) ) ) AS col2 FROM tab0 WHERE NOT - - 93 IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT col2 * col2 * 54 FROM tab0
----
119286
529254
5400

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0, - col2 col1 FROM tab2
----
-46
-23
-64
-40
-75
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3477
SELECT DISTINCT - - MIN( 79 ) AS col0 FROM tab0 cor0
----
79

skipif mysql # not compatible
query I rowsort label-3477
SELECT DISTINCT - - MIN ( 79 ) AS col0 FROM tab0 cor0
----
79

onlyif mysql # DIV for integer division: 
query II rowsort label-3478
SELECT DISTINCT + col1, - ( + - col2 ) DIV + col2 FROM tab2 cor0
----
51
1
67
1
77
1

skipif mysql # not compatible
query II rowsort label-3478
SELECT DISTINCT + col1, - ( + - col2 ) / + col2 FROM tab2 cor0
----
51
1
67
1
77
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3479
SELECT DISTINCT - COUNT( ALL 41 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-3479
SELECT DISTINCT - COUNT ( ALL 41 ) FROM tab1
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( ( NOT NULL < ( col0 ) ) )
----

query I rowsort
SELECT ALL - - 46 AS col2 FROM tab2 AS cor0
----
46
46
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 79 + + 0 * + - 71 col0 FROM tab2 AS cor0
----
-79

query II rowsort
SELECT + ( col2 ) * - 19 + - - ( + col0 ), col0 AS col2 FROM tab1 AS cor0
----
-1036
85
-1201
91
-1773
51

onlyif mysql # DIV for integer division: 
query II rowsort label-3484
SELECT col1 * col0 + - col0 + + + 49 DIV + col0 AS col0, 14 AS col0 FROM tab0 AS cor0
----
0
14
1203
14
1740
14

skipif mysql # not compatible
query II rowsort label-3484
SELECT col1 * col0 + - col0 + + + 49 / + col0 AS col0, 14 AS col0 FROM tab0 AS cor0
----
0
14
1203
14
1740
14

query I rowsort
SELECT - + col2 * - + col1 AS col2 FROM tab1 AS cor0
----
1344
295
3196

query I rowsort
SELECT - col1 * - 95 AS col0 FROM tab2
----
4845
6365
7315

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 62 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-3488
SELECT - col2 - col2 DIV - col0 FROM tab1 AS cor0
----
-59
-68
-95

skipif mysql # not compatible
query I rowsort label-3488
SELECT - col2 - col2 / - col0 FROM tab1 AS cor0
----
-59
-68
-95

query I rowsort
SELECT - col0 + 98 + - - col2 * + + col1 AS col0 FROM tab1 AS cor0
----
1391
308
3203

query I rowsort
SELECT ALL 44 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

onlyif mysql # DIV for integer division: 
query I rowsort label-3491
SELECT DISTINCT + col1 + - col1 DIV - col2 AS col0 FROM tab2
----
53
68
78

skipif mysql # not compatible
query I rowsort label-3491
SELECT DISTINCT + col1 + - col1 / - col2 AS col0 FROM tab2
----
53
68
78

query II rowsort
SELECT - 43 AS col1, col1 AS col0 FROM tab2
----
-43
51
-43
67
-43
77

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3493
SELECT DISTINCT ( + col0 ) * + col1 * - - 13 + + CAST( NULL AS DECIMAL ) + + 33 - 91 * - 2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3493
SELECT DISTINCT ( + col0 ) * + col1 * - - 13 + + CAST ( NULL AS REAL ) + + 33 - 91 * - 2 FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3494
SELECT 61 AS col1, + 56 + - - col0 DIV + - 15 AS col1 FROM tab0 AS cor0
----
61
50
61
51
61
55

skipif mysql # not compatible
query II rowsort label-3494
SELECT 61 AS col1, + 56 + - - col0 / + - 15 AS col1 FROM tab0 AS cor0
----
61
50
61
51
61
55

query II rowsort
SELECT - col0 AS col2, + col2 AS col0 FROM tab2 AS cor0
----
-46
23
-64
40
-75
58

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL = 65
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3497
SELECT DISTINCT CAST( NULL AS DECIMAL ) * + col0 AS col1, + 85 FROM tab2
----
NULL
85

skipif mysql # not compatible
query II rowsort label-3497
SELECT DISTINCT CAST ( NULL AS REAL ) * + col0 AS col1, + 85 FROM tab2
----
NULL
85

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL BETWEEN 24 * + col1 AND + col1
----

query II rowsort
SELECT ALL col0 * 34, - 97 AS col2 FROM tab1
----
1734
-97
2890
-97
3094
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3500
SELECT DISTINCT MIN( - 83 ) AS col0 FROM tab1
----
-83

skipif mysql # not compatible
query I rowsort label-3500
SELECT DISTINCT MIN ( - 83 ) AS col0 FROM tab1
----
-83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3501
SELECT DISTINCT - ( + COUNT( * ) ) DIV - 33 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3501
SELECT DISTINCT - ( + COUNT ( * ) ) / - 33 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3502
SELECT DISTINCT - ( CAST( col2 AS SIGNED ) ) AS col2, + col1 + - col1 - col1 AS col2 FROM tab2
----
-23
-51
-40
-77
-58
-67

skipif mysql # not compatible
query II rowsort label-3502
SELECT DISTINCT - ( CAST ( col2 AS INTEGER ) ) AS col2, + col1 + - col1 - col1 AS col2 FROM tab2
----
-23
-51
-40
-77
-58
-67

query II rowsort
SELECT ALL + 40 col1, - 37 * + - 50 * 32 + - 0 AS col2 FROM tab2
----
40
59200
40
59200
40
59200

query I rowsort
SELECT ALL - 46 + + ( + col2 ) + - col0 FROM tab2 AS cor0
----
-63
-69
-70

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - col2 * - col0 IN ( + 34 - - 36 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col1 * + + col0 - + - col2 FROM tab0 AS cor0
----
1262
1837
196

onlyif mysql # aggregate syntax: 
query I rowsort label-3507
SELECT + - COUNT( DISTINCT 51 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-1

skipif mysql # not compatible
query I rowsort label-3507
SELECT + - COUNT ( DISTINCT 51 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-1

query I rowsort
SELECT ALL - col2 + + + ( + col1 ) - + + col2 * + - 28 + + col1 AS col1 FROM tab2 AS cor0
----
1234
1700
723

onlyif mysql # aggregate syntax: 
query I rowsort label-3509
SELECT ALL + COUNT( - 66 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3509
SELECT ALL + COUNT ( - 66 ) AS col0 FROM tab1 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col1 AS col0, 49 col0 FROM tab1 AS cor0
----
-14
49
-47
49
-5
49

onlyif mysql # DIV for integer division: 
query I rowsort label-3511
SELECT DISTINCT 27 + - + col1 + + col0 DIV + 17 AS col1 FROM tab2 AS cor0
----
-22
-36
-47

skipif mysql # not compatible
query I rowsort label-3511
SELECT DISTINCT 27 + - + col1 + + col0 / + 17 AS col1 FROM tab2 AS cor0
----
-22
-36
-47

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL <= 2
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 50 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 84 + - col0 FROM tab1
----
-1
-7
33

query III rowsort
SELECT * FROM tab0 WHERE ( + col2 BETWEEN - col0 AND NULL )
----

query II rowsort
SELECT col0 + - + 10 AS col1, - 92 FROM tab0
----
5
-92
77
-92
87
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3517
SELECT DISTINCT - 5 + - CAST( + - col1 AS SIGNED ) FROM tab2
----
46
62
72

skipif mysql # not compatible
query I rowsort label-3517
SELECT DISTINCT - 5 + - CAST ( + - col1 AS INTEGER ) FROM tab2
----
46
62
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + + + ( + + 50 ) * + + col2 col2 FROM tab1 AS cor0
----
2945
3353
4786

query I rowsort
SELECT DISTINCT + 24 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-3520
SELECT DISTINCT - 15 - + COUNT( * ) AS col0 FROM tab2
----
-18

skipif mysql # not compatible
query I rowsort label-3520
SELECT DISTINCT - 15 - + COUNT ( * ) AS col0 FROM tab2
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-3521
SELECT COUNT( * ) - 57 FROM tab1
----
-54

skipif mysql # not compatible
query I rowsort label-3521
SELECT COUNT ( * ) - 57 FROM tab1
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3522
SELECT DISTINCT + CAST( NULL AS SIGNED ) * col1 col2 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3522
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * col1 col2 FROM tab1
----
NULL

query I rowsort
SELECT ALL col1 + - col2 + - + col0 - - + col1 FROM tab2 AS cor0
----
1
33
50

query II rowsort
SELECT ALL - col2, + col0 * + ( - + col1 ) AS col1 FROM tab1 AS cor0
----
-59
-425
-68
-4277
-96
-714

onlyif mysql # aggregate syntax: 
query II rowsort label-3525
SELECT ALL 76 AS col2, COUNT( * ) AS col2 FROM tab1 cor0
----
76
3

skipif mysql # not compatible
query II rowsort label-3525
SELECT ALL 76 AS col2, COUNT ( * ) AS col2 FROM tab1 cor0
----
76
3

query II rowsort
SELECT DISTINCT - col2 AS col0, - 76 FROM tab0 AS cor0
----
-10
-76
-47
-76
-99
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-3527
SELECT + COUNT( col0 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3527
SELECT + COUNT ( col0 ) AS col2 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3528
SELECT COUNT( + ( - ( + + 91 ) ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3528
SELECT COUNT ( + ( - ( + + 91 ) ) ) FROM tab1
----
3

query I rowsort
SELECT ALL col2 + - + 79 * - + col2 FROM tab1 WHERE - + 15 * col2 + + + col2 BETWEEN 3 AND 85
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3530
SELECT DISTINCT COUNT( * ) DIV 32, 66 AS col0 FROM tab0
----
0
66

skipif mysql # not compatible
query II rowsort label-3530
SELECT DISTINCT COUNT ( * ) / 32, 66 AS col0 FROM tab0
----
0
66

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3531
SELECT DISTINCT * FROM tab0 WHERE + - col0 IN ( - 9, + col0 + - + 94 + + 29, + + CAST( 6 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-3531
SELECT DISTINCT * FROM tab0 WHERE + - col0 IN ( - 9, + col0 + - + 94 + + 29, + + CAST ( 6 AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3532
SELECT + CAST( NULL AS SIGNED ) * - + 83 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3532
SELECT + CAST ( NULL AS INTEGER ) * - + 83 AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3533
SELECT DISTINCT - 78 DIV - col0 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-3533
SELECT DISTINCT - 78 / - col0 FROM tab2
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0, + 68 * - 93 col0 FROM tab1
----
51
-6324
85
-6324
91
-6324

onlyif mysql # aggregate syntax: 
query I rowsort label-3535
SELECT - + COUNT( * ) AS col0 FROM tab2 WHERE NOT col1 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3535
SELECT - + COUNT ( * ) AS col0 FROM tab2 WHERE NOT col1 IS NULL
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col1 * - 84 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3537
SELECT - COUNT( * ) * + MIN( ALL + 48 ) * - COUNT( * ) FROM tab1 AS cor0
----
432

skipif mysql # not compatible
query I rowsort label-3537
SELECT - COUNT ( * ) * + MIN ( ALL + 48 ) * - COUNT ( * ) FROM tab1 AS cor0
----
432

onlyif mysql # aggregate syntax: 
query I rowsort label-3538
SELECT DISTINCT 9 * ( + COUNT( * ) ) col1 FROM tab0
----
27

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3538
SELECT DISTINCT 9 * ( + COUNT ( * ) ) col1 FROM tab0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-3539
SELECT + 11 + + + 11 + + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-3539
SELECT + 11 + + + 11 + + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
25

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 6 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - ( - col1 ) + 43 FROM tab1 AS cor0
----
48
57
90

query I rowsort
SELECT DISTINCT + col1 * + + col2 FROM tab2 AS cor0
----
1173
3080
3886

query I rowsort
SELECT - + col1 FROM tab2 AS cor0 WHERE NULL < - col1
----

query III rowsort
SELECT * FROM tab0 WHERE NULL IN ( + col2, col2 * col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3545
SELECT ALL * FROM tab1 WHERE + - CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3545
SELECT ALL * FROM tab1 WHERE + - CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-3546
SELECT + 48 DIV - - col2 AS col0 FROM tab0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-3546
SELECT + 48 / - - col2 AS col0 FROM tab0
----
0
1
4

query I rowsort
SELECT 3 + + + col0 FROM tab2 AS cor0
----
49
67
78

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( NULL ) <= + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3549
SELECT 65 + + - COUNT( * ) * - - COUNT( + col1 ) AS col1 FROM tab2 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-3549
SELECT 65 + + - COUNT ( * ) * - - COUNT ( + col1 ) AS col1 FROM tab2 AS cor0
----
56

query I rowsort
SELECT DISTINCT col2 * + 2 - - 51 FROM tab2
----
131
167
97

query I rowsort
SELECT ALL + - 2 AS col0 FROM tab1 AS cor0
----
-2
-2
-2

query I rowsort
SELECT 92 + + + ( - + col1 ) FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3553
SELECT + CAST( + 53 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
53
53
53

skipif mysql # not compatible
query I rowsort label-3553
SELECT + CAST ( + 53 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
53
53
53

onlyif mysql # DIV for integer division: 
query II rowsort label-3554
SELECT - col0 DIV + col0 AS col0, + 75 DIV - col2 FROM tab2 AS cor0
----
-1
-1
-1
-1
-1
-3

skipif mysql # not compatible
query II rowsort label-3554
SELECT - col0 / + col0 AS col0, + 75 / - col2 FROM tab2 AS cor0
----
-1
-1
-1
-1
-1
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3555
SELECT + COUNT( * ) * + 38 + + CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3555
SELECT + COUNT ( * ) * + 38 + + CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - col1 FROM tab1 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3557
SELECT + COUNT( ALL - col1 ) FROM tab1 WHERE NOT + 83 + 48 + - - col2 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-3557
SELECT + COUNT ( ALL - col1 ) FROM tab1 WHERE NOT + 83 + 48 + - - col2 IS NULL
----
3

query I rowsort
SELECT ALL 20 * - + col1 FROM tab2
----
-1020
-1340
-1540

onlyif mysql # aggregate syntax: 
query I rowsort label-3559
SELECT + MIN( ALL + 75 ) AS col2 FROM tab0
----
75

skipif mysql # not compatible
query I rowsort label-3559
SELECT + MIN ( ALL + 75 ) AS col2 FROM tab0
----
75

query I rowsort
SELECT - + col1 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-51
-67
-77

query II rowsort
SELECT DISTINCT + col1 AS col1, + 99 AS col0 FROM tab1 AS cor0
----
14
99
47
99
5
99

query I rowsort
SELECT ALL - + 42 * + 75 FROM tab1 AS cor0
----
-3150
-3150
-3150

onlyif mysql # aggregate syntax: 
query I rowsort label-3563
SELECT ALL + MAX( ALL + 38 ) AS col0 FROM tab1 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-3563
SELECT ALL + MAX ( ALL + 38 ) AS col0 FROM tab1 AS cor0
----
38

onlyif mysql # DIV for integer division: 
query I rowsort label-3564
SELECT + col0 DIV 88 - - 29 + + col2 + + + 44 FROM tab1 AS cor0
----
132
142
169

skipif mysql # not compatible
query I rowsort label-3564
SELECT + col0 / 88 - - 29 + + col2 + + + 44 FROM tab1 AS cor0
----
132
142
169

query II rowsort
SELECT - + col0 + + col1 + - 61, + 41 AS col2 FROM tab1 WHERE NOT - 26 IS NULL
----
-105
41
-141
41
-98
41

query I rowsort
SELECT 27 AS col0 FROM tab2 WHERE NOT - - col0 IS NOT NULL
----

query I rowsort
SELECT + ( - - 66 ) * + - col2 + + - col0 FROM tab2
----
-1564
-2704
-3903

query II rowsort
SELECT DISTINCT 32, + col1 FROM tab2
----
32
51
32
67
32
77

onlyif mysql # DIV for integer division: 
query I rowsort label-3569
SELECT 89 DIV - 8 FROM tab2
----
-11
-11
-11

skipif mysql # not compatible
query I rowsort label-3569
SELECT 89 / - 8 FROM tab2
----
-11
-11
-11

query II rowsort
SELECT - 15 AS col1, 69 * - ( - - 57 ) * col0 + + ( - col0 ) FROM tab2 AS cor0
----
-15
-180964
-15
-251776
-15
-295050

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3571
SELECT DISTINCT * FROM tab0 cor0 WHERE col2 + ( - 17 ) / + + CAST( CAST( 64 AS SIGNED ) AS SIGNED ) - - ( + 2 ) NOT IN ( col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3571
SELECT DISTINCT * FROM tab0 cor0 WHERE col2 + ( - 17 ) / + + CAST ( CAST ( 64 AS INTEGER ) AS INTEGER ) - - ( + 2 ) NOT IN ( col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3572
SELECT - + MIN( + + col0 ) AS col2 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-3572
SELECT - + MIN ( + + col0 ) AS col2 FROM tab1 AS cor0
----
-51

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND - - col1 * + + 47
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3574
SELECT DISTINCT SUM( - col0 ) + COUNT( * ) / CAST( NULL AS DECIMAL ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3574
SELECT DISTINCT SUM ( - col0 ) + COUNT ( * ) / CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - + 8 + + col2 AS col1 FROM tab0 cor0
----
2
39
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3576
SELECT ALL + 48 + + + 51 AS col1, COUNT( - col1 ) DIV - 19 AS col0 FROM tab1 cor0
----
99
0

skipif mysql # not compatible
query II rowsort label-3576
SELECT ALL + 48 + + + 51 AS col1, COUNT ( - col1 ) / - 19 AS col0 FROM tab1 cor0
----
99
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3577
SELECT ALL - col2 DIV col0 * - col2 + + - 23 DIV + 16 FROM tab0 AS cor0
----
-1
140
98

skipif mysql # not compatible
query I rowsort label-3577
SELECT ALL - col2 / col0 * - col2 + + - 23 / + 16 FROM tab0 AS cor0
----
-1
140
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3578
SELECT ALL - ( + col0 ) - + CAST( + 29 AS SIGNED ) * + - col2 AS col0 FROM tab2 AS cor0
----
1096
1607
621

skipif mysql # not compatible
query I rowsort label-3578
SELECT ALL - ( + col0 ) - + CAST ( + 29 AS INTEGER ) * + - col2 AS col0 FROM tab2 AS cor0
----
1096
1607
621

onlyif mysql # aggregate syntax: 
query I rowsort label-3579
SELECT DISTINCT + COUNT( ALL - col0 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3579
SELECT DISTINCT + COUNT ( ALL - col0 ) AS col2 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3580
SELECT - + COUNT( * ) FROM tab1 WHERE - col1 BETWEEN - 90 AND col0
----
-3

skipif mysql # not compatible
query I rowsort label-3580
SELECT - + COUNT ( * ) FROM tab1 WHERE - col1 BETWEEN - 90 AND col0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3581
SELECT DISTINCT - COUNT( * ) - + 79 FROM tab2
----
-82

skipif mysql # not compatible
query I rowsort label-3581
SELECT DISTINCT - COUNT ( * ) - + 79 FROM tab2
----
-82

query I rowsort
SELECT + + col2 AS col1 FROM tab2 WHERE + col2 IS NOT NULL
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3583
SELECT + col2 * CAST( NULL AS SIGNED ) + 99 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3583
SELECT + col2 * CAST ( NULL AS INTEGER ) + 99 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + 58 + - + 46 + + col2 * + col2 + + + col2 AS col0 FROM tab1
----
3552
4704
9324

onlyif mysql # aggregate syntax: 
query I rowsort label-3585
SELECT DISTINCT 36 * - 11 * + + MIN( DISTINCT + + 34 ) AS col0 FROM tab2
----
-13464

skipif mysql # not compatible
query I rowsort label-3585
SELECT DISTINCT 36 * - 11 * + + MIN ( DISTINCT + + 34 ) AS col0 FROM tab2
----
-13464

query I rowsort
SELECT + col1 AS col2 FROM tab2 AS cor0 WHERE NULL = + ( - col0 )
----

query I rowsort
SELECT DISTINCT ( 12 ) FROM tab0
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3588
SELECT DISTINCT + + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-3588
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
NULL

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL IS NOT NULL )
----
54 values hashing to 375f372843089b03f23b00160007527a

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 LEFT OUTER JOIN tab2 AS cor1 ON NULL <> NULL
----
18 values hashing to d882cc47988b8673bd5cc0da3b69bcc6

onlyif mysql # aggregate syntax: 
query I rowsort label-3591
SELECT DISTINCT SUM( ALL + 83 ) FROM tab1
----
249

skipif mysql # not compatible
query I rowsort label-3591
SELECT DISTINCT SUM ( ALL + 83 ) FROM tab1
----
249

query I rowsort
SELECT DISTINCT 65 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3593
SELECT DISTINCT + 14 DIV COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
1

skipif mysql # not compatible
query I rowsort label-3593
SELECT DISTINCT + 14 / COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
1

query I rowsort
SELECT col2 FROM tab2 cor0 WHERE NOT col0 NOT BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3595
SELECT + + 89 DIV col1 AS col2 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3595
SELECT + + 89 / col1 AS col2 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT ALL + - col1 + + - col0 + ( + 10 ) + + col0 + - 14 AS col1 FROM tab0 AS cor0
----
-25
-5
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-3597
SELECT DISTINCT col0 * - + col0 * - - col2 DIV - col2 col0 FROM tab2
----
2116
4096
5625

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3597
SELECT DISTINCT col0 * - + col0 * - - col2 / - col2 col0 FROM tab2
----
2116
4096
5625

query I rowsort
SELECT + 0 * + col0 * - col1 + 63 - - - 35 * - 78 AS col0 FROM tab0
----
2793
2793
2793

query I rowsort
SELECT ALL + col2 + - 67 AS col0 FROM tab1
----
-8
1
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3600
SELECT - COUNT( * ) DIV COUNT( * ) + - SUM( + col0 ) AS col1 FROM tab1
----
-228

skipif mysql # not compatible
query I rowsort label-3600
SELECT - COUNT ( * ) / COUNT ( * ) + - SUM ( + col0 ) AS col1 FROM tab1
----
-228

query I rowsort
SELECT DISTINCT - col2 + 26 FROM tab1 AS cor0
----
-33
-42
-70

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL >= col2
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL <= + 38
----

query I rowsort
SELECT ALL col2 + - + 8 AS col2 FROM tab0 AS cor0
----
2
39
91

query I rowsort
SELECT - + 30 * col1 + - col0 AS col1 FROM tab0 AS cor0
----
-127
-2445
-717

onlyif mysql # aggregate syntax: 
query I rowsort label-3606
SELECT + COUNT( * ) * SUM( - col1 ) * 0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3606
SELECT + COUNT ( * ) * SUM ( - col1 ) * 0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT - col2 * + 74 FROM tab0 cor0
----
-3478
-7326
-740

onlyif mysql # aggregate syntax: 
query I rowsort label-3608
SELECT - - SUM( - 69 ) AS col2 FROM tab2 AS cor0
----
-207

skipif mysql # not compatible
query I rowsort label-3608
SELECT - - SUM ( - 69 ) AS col2 FROM tab2 AS cor0
----
-207

query I rowsort
SELECT 55 - 79 AS col2 FROM tab2
----
-24
-24
-24

query II rowsort
SELECT + col1, + col2 FROM tab0 cor0
----
1
99
21
10
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3611
SELECT ALL 10 * + MAX( + - col2 ) FROM tab0 AS cor0
----
-100

skipif mysql # not compatible
query I rowsort label-3611
SELECT ALL 10 * + MAX ( + - col2 ) FROM tab0 AS cor0
----
-100

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3612
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( + - CAST( NULL AS SIGNED ) * - 84 >= 4 - - col1 * + col2 - col0 + col1 )
----

skipif mysql # not compatible
query III rowsort label-3612
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( + - CAST ( NULL AS INTEGER ) * - 84 >= 4 - - col1 * + col2 - col0 + col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( NOT ( - 15 * - col1 < + 54 * + - col1 ) )
----

query I rowsort
SELECT DISTINCT 50 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) <> + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3615
SELECT + 27 DIV - col1 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3615
SELECT + 27 / - col1 AS col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3616
SELECT COUNT( * ) * + + 57 FROM tab2 cor0
----
171

skipif mysql # not compatible
query I rowsort label-3616
SELECT COUNT ( * ) * + + 57 FROM tab2 cor0
----
171

query II rowsort
SELECT + col1 AS col2, + 87 + + col0 FROM tab0
----
1
184
21
174
81
102

query II rowsort
SELECT DISTINCT col1 AS col1, col0 + col1 FROM tab0
----
1
98
21
108
81
96

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL > - - ( - col1 )
----

query I rowsort
SELECT 87 + + - col2 + + col0 AS col0 FROM tab2
----
104
110
111

query I rowsort
SELECT ( + - col0 ) AS col1 FROM tab2 WHERE NOT NULL BETWEEN - 11 * + + 80 AND + col0
----

query I rowsort
SELECT 94 + + col1 * - col1 * - 32 + + - col2 AS col0 FROM tab0
----
14196
209999
27

query I rowsort
SELECT - 2 + 20 + - col2 * col2 FROM tab2 AS cor0
----
-1582
-3346
-511

query I rowsort
SELECT ALL + col1 FROM tab2 AS cor0 WHERE - col2 <> col2
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3625
SELECT - col0 * + CAST( - 33 AS SIGNED ) AS col2 FROM tab2
----
1518
2112
2475

skipif mysql # not compatible
query I rowsort label-3625
SELECT - col0 * + CAST ( - 33 AS INTEGER ) AS col2 FROM tab2
----
1518
2112
2475

onlyif mysql # aggregate syntax: 
query I rowsort label-3626
SELECT ( COUNT( * ) ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-3626
SELECT ( COUNT ( * ) ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query I rowsort
SELECT DISTINCT col0 + col1 - - col0 FROM tab2 AS cor0
----
143
205
217

onlyif mysql # aggregate syntax: 
query I rowsort label-3628
SELECT - 72 - - SUM( DISTINCT - col1 ) AS col0 FROM tab0 AS cor0
----
-175

skipif mysql # not compatible
query I rowsort label-3628
SELECT - 72 - - SUM ( DISTINCT - col1 ) AS col0 FROM tab0 AS cor0
----
-175

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3629
SELECT DISTINCT + + 29 FROM tab0 cor0 WHERE NOT CAST( NULL AS SIGNED ) BETWEEN - 88 AND NULL
----

skipif mysql # not compatible
query I rowsort label-3629
SELECT DISTINCT + + 29 FROM tab0 cor0 WHERE NOT CAST ( NULL AS INTEGER ) BETWEEN - 88 AND NULL
----

query I rowsort
SELECT col1 - - 94 + - 7 AS col2 FROM tab2 AS cor0
----
138
154
164

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + + col2 * col1 col2 FROM tab1 cor0 WHERE col1 * + 14 < - col1 / + col0
----

query I rowsort
SELECT 4 * + 14 + 88 AS col0 FROM tab1 AS cor0
----
144
144
144

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 37 + col1 col0 FROM tab2
----
104
114
88

query I rowsort
SELECT DISTINCT - col1 - - 25 FROM tab1
----
-22
11
20

query I rowsort
SELECT col2 + - + 8 FROM tab2
----
15
32
50

query I rowsort
SELECT ALL - 78 * - 67 - + + col0 * - 78 AS col0 FROM tab0
----
12012
12792
6396

query I rowsort
SELECT DISTINCT 31 * 18 FROM tab2
----
558

onlyif mysql # DIV for integer division: 
query I rowsort label-3638
SELECT - 46 DIV 9 FROM tab2
----
-5
-5
-5

skipif mysql # not compatible
query I rowsort label-3638
SELECT - 46 / 9 FROM tab2
----
-5
-5
-5

query III rowsort
SELECT * FROM tab2 WHERE NULL <> + 58
----

query I rowsort
SELECT + col2 * - 15 FROM tab0
----
-1485
-150
-705

query I rowsort
SELECT + 42 AS col2 FROM tab1 WHERE NOT + - col0 * col1 + - ( + col0 ) >= NULL
----

query I rowsort
SELECT - 77 * + 16 FROM tab0
----
-1232
-1232
-1232

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col1 * - - 20 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT 60 AS col1, - col0 FROM tab0
----
60
-15
60
-87
60
-97

query I rowsort
SELECT + col1 * + ( + 22 ) FROM tab0
----
1782
22
462

onlyif mysql # aggregate syntax: 
query I rowsort label-3646
SELECT 53 * - - MAX( DISTINCT + - 94 ) AS col0 FROM tab2 AS cor0
----
-4982

skipif mysql # not compatible
query I rowsort label-3646
SELECT 53 * - - MAX ( DISTINCT + - 94 ) AS col0 FROM tab2 AS cor0
----
-4982

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL > + col1 * + 61
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3648
SELECT DISTINCT COUNT( * ) AS col0, + 23 FROM tab0 AS cor0
----
3
23

skipif mysql # not compatible
query II rowsort label-3648
SELECT DISTINCT COUNT ( * ) AS col0, + 23 FROM tab0 AS cor0
----
3
23

query II rowsort
SELECT - 99, col0 FROM tab1 AS cor0
----
-99
51
-99
85
-99
91

onlyif mysql # aggregate syntax: 
query II rowsort label-3650
SELECT DISTINCT COUNT( * ), - MAX( - 75 ) AS col1 FROM tab2 AS cor0
----
3
75

skipif mysql # not compatible
query II rowsort label-3650
SELECT DISTINCT COUNT ( * ), - MAX ( - 75 ) AS col1 FROM tab2 AS cor0
----
3
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 63 col2 FROM tab2 AS cor0
----
63
63
63

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3652
SELECT ALL - 16 * + col1 + col2 + + CAST( + ( col0 ) AS SIGNED ), col1 AS col1 FROM tab1 AS cor0
----
-593
47
-77
14
64
5

skipif mysql # not compatible
query II rowsort label-3652
SELECT ALL - 16 * + col1 + col2 + + CAST ( + ( col0 ) AS INTEGER ), col1 AS col1 FROM tab1 AS cor0
----
-593
47
-77
14
64
5

onlyif mysql # DIV for integer division: 
query I rowsort label-3653
SELECT 68 DIV + 36 + + 37 AS col2 FROM tab2 AS cor0
----
38
38
38

skipif mysql # not compatible
query I rowsort label-3653
SELECT 68 / + 36 + + 37 AS col2 FROM tab2 AS cor0
----
38
38
38

onlyif mysql # aggregate syntax: 
query I rowsort label-3654
SELECT - + COUNT( * ) * - 51 AS col1 FROM tab2 AS cor0 WHERE NOT col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3654
SELECT - + COUNT ( * ) * - 51 AS col1 FROM tab2 AS cor0 WHERE NOT col2 IS NOT NULL
----
0

query II rowsort
SELECT DISTINCT + - col2 col2, - col2 FROM tab1 AS cor0
----
-59
-59
-68
-68
-96
-96

query I rowsort
SELECT ALL 59 + + col2 FROM tab2 AS cor0 WHERE NULL > NULL
----

query II rowsort
SELECT + - col0 * 93, - col2 AS col0 FROM tab2 AS cor0
----
-4278
-23
-5952
-40
-6975
-58

query I rowsort
SELECT DISTINCT + + col0 / col2 AS col1 FROM tab1 AS cor0 WHERE col2 + - - 56 / + col2 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3659
SELECT - CAST( + col1 AS SIGNED ) + col1 + col1 AS col1 FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-3659
SELECT - CAST ( + col1 AS INTEGER ) + col1 + col1 AS col1 FROM tab0 AS cor0
----
1
21
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1, + ( - + col0 ) col0 FROM tab0
----
1
-97
21
-87
81
-15

onlyif mysql # DIV for integer division: 
query II rowsort label-3661
SELECT DISTINCT 22 + - col0 DIV col0 AS col1, 71 AS col1 FROM tab1
----
21
71

skipif mysql # not compatible
query II rowsort label-3661
SELECT DISTINCT 22 + - col0 / col0 AS col1, 71 AS col1 FROM tab1
----
21
71

query I rowsort
SELECT ( 28 ) * - + col2 FROM tab2 AS cor0
----
-1120
-1624
-644

query II rowsort
SELECT + 27 AS col2, - col1 AS col2 FROM tab0 AS cor0
----
27
-1
27
-21
27
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-3664
SELECT - 41 * + - COUNT( * ) FROM tab1 cor0
----
123

skipif mysql # not compatible
query I rowsort label-3664
SELECT - 41 * + - COUNT ( * ) FROM tab1 cor0
----
123

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3665
SELECT + CAST( NULL AS DECIMAL ) * - col2 * + 57 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3665
SELECT + CAST ( NULL AS REAL ) * - col2 * + 57 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3666
SELECT ALL - - 75 DIV SUM( - + 15 ), CAST( NULL AS SIGNED ) col0 FROM tab0 AS cor0
----
-1
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3666
SELECT ALL - - 75 / SUM ( - + 15 ), CAST ( NULL AS INTEGER ) col0 FROM tab0 AS cor0
----
-1
NULL

query I rowsort
SELECT ALL - + col2 - 34 AS col0 FROM tab1 AS cor0
----
-102
-130
-93

query II rowsort
SELECT 5 AS col0, - 63 * 51 AS col1 FROM tab0 AS cor0
----
5
-3213
5
-3213
5
-3213

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 - 14 * - + col1 col0 FROM tab0 AS cor0
----
1215
15
315

query I rowsort
SELECT DISTINCT col2 * + ( + + col2 ) FROM tab1
----
3481
4624
9216

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3671
SELECT ALL col1 - CAST( NULL AS SIGNED ) - - col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3671
SELECT ALL col1 - CAST ( NULL AS INTEGER ) - - col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 28 * 6 FROM tab1
----
168

onlyif mysql # DIV for integer division: 
query I rowsort label-3673
SELECT ALL - col0 DIV + 59 FROM tab0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-3673
SELECT ALL - col0 / + 59 FROM tab0
----
-1
-1
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3674
SELECT ALL + - CAST( NULL AS DECIMAL ) + CAST( NULL AS SIGNED ) FROM tab2 WHERE NOT + col1 BETWEEN - col2 AND NULL
----

skipif mysql # not compatible
query I rowsort label-3674
SELECT ALL + - CAST ( NULL AS REAL ) + CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT + col1 BETWEEN - col2 AND NULL
----

query I rowsort
SELECT DISTINCT - 4 * + 13 FROM tab2
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-3676
SELECT DISTINCT - COUNT( * ) * - COUNT( DISTINCT - - col2 ) FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3676
SELECT DISTINCT - COUNT ( * ) * - COUNT ( DISTINCT - - col2 ) FROM tab2 AS cor0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-3677
SELECT - + 12 DIV 28 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3677
SELECT - + 12 / 28 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - + col1 * - 34 FROM tab2 AS cor0
----
1734
2278
2618

onlyif mysql # DIV for integer division: 
query I rowsort label-3679
SELECT ALL col1 DIV + 45 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3679
SELECT ALL col1 / + 45 FROM tab1
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3680
SELECT - 26 * - ( + COUNT( * ) ) col2 FROM tab2, tab0 AS cor0
----
234

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3680
SELECT - 26 * - ( + COUNT ( * ) ) col2 FROM tab2, tab0 AS cor0
----
234

query I rowsort
SELECT + col0 * 39 FROM tab1
----
1989
3315
3549

onlyif mysql # DIV for integer division: 
query I rowsort label-3682
SELECT DISTINCT - 21 + + col0 + + col2 DIV - - col1 AS col0 FROM tab2 AS cor0
----
25
43
54

skipif mysql # not compatible
query I rowsort label-3682
SELECT DISTINCT - 21 + + col0 + + col2 / - - col1 AS col0 FROM tab2 AS cor0
----
25
43
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3683
SELECT DISTINCT - - COUNT( * ) + - 14 DIV + ( - COUNT( * ) ) FROM tab2 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-3683
SELECT DISTINCT - - COUNT ( * ) + - 14 / + ( - COUNT ( * ) ) FROM tab2 AS cor0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3684
SELECT DISTINCT + 98 * - ( COUNT( ALL col2 ) ) AS col1 FROM tab0 AS cor0
----
-294

skipif mysql # not compatible
query I rowsort label-3684
SELECT DISTINCT + 98 * - ( COUNT ( ALL col2 ) ) AS col1 FROM tab0 AS cor0
----
-294

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE NOT + 15 * - 53 * - col2 BETWEEN - + col2 + + 11 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3686
SELECT ALL - col0 * 70 DIV + + col0 AS col1 FROM tab2 AS cor0
----
-70
-70
-70

skipif mysql # not compatible
query I rowsort label-3686
SELECT ALL - col0 * 70 / + + col0 AS col1 FROM tab2 AS cor0
----
-70
-70
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-3687
SELECT DISTINCT SUM( - - ( + + col0 ) ) FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-3687
SELECT DISTINCT SUM ( - - ( + + col0 ) ) FROM tab1
----
227

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3688
SELECT * FROM tab2 WHERE + 76 = ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-3688
SELECT * FROM tab2 WHERE + 76 = ( - CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT 17 + - + ( - - 11 ) + - col1 - + - col1 + - col0 + - - col2 - + 6 FROM tab2
----
-17
-23
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-3690
SELECT + 52 + - - col0 DIV - col0 - - col0 FROM tab0
----
138
148
66

skipif mysql # not compatible
query I rowsort label-3690
SELECT + 52 + - - col0 / - col0 - - col0 FROM tab0
----
138
148
66

query I rowsort
SELECT DISTINCT - + 84 + - 70 FROM tab0 AS cor0
----
-154

query I rowsort
SELECT ALL + col0 + + 65 FROM tab2 AS cor0
----
111
129
140

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3693
SELECT ALL - - SUM( DISTINCT + - CAST( - col1 AS SIGNED ) ) FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
103

skipif mysql # not compatible
query I rowsort label-3693
SELECT ALL - - SUM ( DISTINCT + - CAST ( - col1 AS INTEGER ) ) FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
103

query I rowsort
SELECT + - col1 + + col2 + + ( - + col1 ) * + col0 FROM tab1 AS cor0
----
-371
-4256
-632

onlyif mysql # aggregate syntax: 
query I rowsort label-3695
SELECT DISTINCT MIN( ALL - - 14 ) AS col0 FROM tab0 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-3695
SELECT DISTINCT MIN ( ALL - - 14 ) AS col0 FROM tab0 AS cor0
----
14

query I rowsort
SELECT ALL col2 + - + col1 - col1 + + 93 AS col1 FROM tab0 AS cor0
----
-22
190
61

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - col2 / + col2 + 7
----

query II rowsort
SELECT - ( + col0 ) AS col1, + col2 AS col1 FROM tab1 AS cor0
----
-51
96
-85
59
-91
68

query I rowsort
SELECT DISTINCT + col1 * + - 4 * + + col1 + + col0 AS col1 FROM tab1 AS cor0
----
-15
-733
-8745

query III rowsort
SELECT ALL * FROM tab0 WHERE + + 30 + - + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT 31 AS col0, + col2 AS col2 FROM tab0
----
31
10
31
47
31
99

query I rowsort
SELECT DISTINCT + col2 * - 98 AS col1 FROM tab2
----
-2254
-3920
-5684

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3703
SELECT col1 col0 FROM tab1 WHERE NOT - col1 + + col0 * + 18 + + + col0 NOT IN ( - - 30, 84, - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3703
SELECT col1 col0 FROM tab1 WHERE NOT - col1 + + col0 * + 18 + + + col0 NOT IN ( - - 30, 84, - CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT ALL + ( col2 ) FROM tab2 WHERE NOT + col1 * + col0 * col1 * + ( + 93 ) + - col0 <> - ( + - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3705
SELECT + col1 - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NOT + 42 >= col0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3705
SELECT + col1 - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NOT + 42 >= col0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3706
SELECT - 44 * 60 DIV 62 + 49 col2 FROM tab0 cor0
----
7
7
7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3706
SELECT - 44 * 60 / 62 + 49 col2 FROM tab0 cor0
----
7
7
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3707
SELECT COUNT( * ) * ( + 77 ) FROM tab0 AS cor0
----
231

skipif mysql # not compatible
query I rowsort label-3707
SELECT COUNT ( * ) * ( + 77 ) FROM tab0 AS cor0
----
231

onlyif mysql # aggregate syntax: 
query I rowsort label-3708
SELECT ALL + - MIN( - 27 ) AS col2 FROM tab2 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-3708
SELECT ALL + - MIN ( - 27 ) AS col2 FROM tab2 AS cor0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-3709
SELECT DISTINCT COUNT( * ) AS col0 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-3709
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
3

query I rowsort
SELECT ALL col2 AS col2 FROM tab1 WHERE NOT col2 + + col1 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL BETWEEN col1 AND col2 + col0 * col1
----

query I rowsort
SELECT - 30 - + col0 AS col2 FROM tab1
----
-115
-121
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3713
SELECT - 19 - 29 * CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3713
SELECT - 19 - 29 * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3714
SELECT ALL - ( - col2 ) * CAST( - ( 70 ) AS SIGNED ) AS col0 FROM tab1
----
-4130
-4760
-6720

skipif mysql # not compatible
query I rowsort label-3714
SELECT ALL - ( - col2 ) * CAST ( - ( 70 ) AS INTEGER ) AS col0 FROM tab1
----
-4130
-4760
-6720

query III rowsort
SELECT * FROM tab0 WHERE NOT - ( 16 ) BETWEEN NULL AND 30
----

query I rowsort
SELECT + 76 AS col2 FROM tab1 WHERE ( 72 ) NOT BETWEEN - col2 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL <= ( + col2 )
----

query I rowsort
SELECT DISTINCT - col1 * - col2 FROM tab0 WHERE col0 IS NULL
----

query I rowsort
SELECT 81 * + col0 FROM tab2
----
3726
5184
6075

query I rowsort
SELECT DISTINCT + ( - col0 ) + - col0 FROM tab0
----
-174
-194
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-3721
SELECT ALL + MAX( col1 ) + COUNT( * ) * COUNT( * ) FROM tab2
----
86

skipif mysql # not compatible
query I rowsort label-3721
SELECT ALL + MAX ( col1 ) + COUNT ( * ) * COUNT ( * ) FROM tab2
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-3722
SELECT ALL + MAX( DISTINCT col2 ) AS col1 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-3722
SELECT ALL + MAX ( DISTINCT col2 ) AS col1 FROM tab1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3723
SELECT ALL COUNT( ALL - col1 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3723
SELECT ALL COUNT ( ALL - col1 ) AS col1 FROM tab1
----
3

query I rowsort
SELECT ALL - 41 * 92 AS col2 FROM tab1
----
-3772
-3772
-3772

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col1 NOT IN ( + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3726
SELECT ALL CAST( col2 AS SIGNED ) AS col0 FROM tab2 WHERE NOT + 24 * 17 IS NULL
----
23
40
58

skipif mysql # not compatible
query I rowsort label-3726
SELECT ALL CAST ( col2 AS INTEGER ) AS col0 FROM tab2 WHERE NOT + 24 * 17 IS NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3727
SELECT + 78 + COUNT( * ) * MIN( ALL col2 ) AS col0 FROM tab2
----
147

skipif mysql # not compatible
query I rowsort label-3727
SELECT + 78 + COUNT ( * ) * MIN ( ALL col2 ) AS col0 FROM tab2
----
147

query III rowsort
SELECT * FROM tab1 WHERE NOT 39 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + ( - col2 ) NOT IN ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3730
SELECT DISTINCT 48 * - COUNT( * ) FROM tab2
----
-144

skipif mysql # not compatible
query I rowsort label-3730
SELECT DISTINCT 48 * - COUNT ( * ) FROM tab2
----
-144

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3731
SELECT - COUNT( * ) * - CAST( + 56 AS SIGNED ) + - SUM( ALL 12 ) AS col1 FROM tab1
----
132

skipif mysql # not compatible
query I rowsort label-3731
SELECT - COUNT ( * ) * - CAST ( + 56 AS INTEGER ) + - SUM ( ALL 12 ) AS col1 FROM tab1
----
132

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3732
SELECT col2 * CAST( - 20 AS SIGNED ) - + col0 FROM tab2 AS cor0
----
-1235
-506
-864

skipif mysql # not compatible
query I rowsort label-3732
SELECT col2 * CAST ( - 20 AS INTEGER ) - + col0 FROM tab2 AS cor0
----
-1235
-506
-864

onlyif mysql # DIV for integer division: 
query I rowsort label-3733
SELECT col1 DIV + col2 + ( 90 ) AS col2 FROM tab2 AS cor0
----
91
91
92

skipif mysql # not compatible
query I rowsort label-3733
SELECT col1 / + col2 + ( 90 ) AS col2 FROM tab2 AS cor0
----
91
91
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - col0 * + col0 col2 FROM tab2 AS cor0
----
-2093
-4056
-5567

query I rowsort
SELECT col2 + col1 FROM tab2 AS cor0 WHERE NULL NOT IN ( - 6 + col0 )
----

query I rowsort
SELECT ALL 63 FROM tab0 WHERE - col1 + col1 IS NOT NULL
----
63
63
63

query III rowsort
SELECT * FROM tab0 WHERE 67 * col1 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3738
SELECT - MIN( ALL 37 ) col2 FROM tab2
----
-37

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3738
SELECT - MIN ( ALL 37 ) col2 FROM tab2
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-3739
SELECT ALL - ( - COUNT( * ) ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3739
SELECT ALL - ( - COUNT ( * ) ) AS col2 FROM tab0 AS cor0
----
3

query I rowsort
SELECT + + 71 * ( col0 ) FROM tab2 AS cor0
----
3266
4544
5325

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col0 + + 23 <> ( 51 + col1 * col2 )
----

query I rowsort
SELECT col1 - + col0 AS col0 FROM tab0 AS cor0 WHERE NOT + ( - col1 ) NOT IN ( + 22 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 8 >= + col1 * col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col1 + - 80 FROM tab2 AS cor0 WHERE 87 IS NOT NULL
----
-131
-147
-157

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col2 ) BETWEEN ( NULL ) AND ( - 1 + + 35 * col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3746
SELECT CAST( NULL AS SIGNED ) + + SUM( col0 ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3746
SELECT CAST ( NULL AS INTEGER ) + + SUM ( col0 ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT - col1 * - 26 AS col1 FROM tab0 WHERE NULL NOT BETWEEN col0 AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3748
SELECT - MIN( col2 ) FROM tab0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3748
SELECT - MIN ( col2 ) FROM tab0 WHERE NOT NULL IS NULL
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - 48 * 8 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + col0 ) > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3751
SELECT DISTINCT - 80 * + 11 FROM tab2 WHERE + col1 + - 55 / 63 NOT IN ( CAST( NULL AS SIGNED ) * - 59 + 97 )
----

skipif mysql # not compatible
query I rowsort label-3751
SELECT DISTINCT - 80 * + 11 FROM tab2 WHERE + col1 + - 55 / 63 NOT IN ( CAST ( NULL AS INTEGER ) * - 59 + 97 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3752
SELECT ALL + ( MIN( col1 ) ) FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-3752
SELECT ALL + ( MIN ( col1 ) ) FROM tab2
----
51

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 7 + + col2 >= ( + ( + col2 ) / col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3754
SELECT + + SUM( DISTINCT col0 ) col2 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3754
SELECT + + SUM ( DISTINCT col0 ) col2 FROM tab2 AS cor0
----
185

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3755
SELECT CAST( + col2 AS SIGNED ) FROM tab0 AS cor0 WHERE NOT + col1 + - col0 * - col2 NOT IN ( col2 )
----

skipif mysql # not compatible
query I rowsort label-3755
SELECT CAST ( + col2 AS INTEGER ) FROM tab0 AS cor0 WHERE NOT + col1 + - col0 * - col2 NOT IN ( col2 )
----

query I rowsort
SELECT + + ( col0 ) * - 4 AS col0 FROM tab2 AS cor0
----
-184
-256
-300

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3758
SELECT ALL + COUNT( * ) * - COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-81

skipif mysql # not compatible
query I rowsort label-3758
SELECT ALL + COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-81

query III rowsort
SELECT ALL * FROM tab1 WHERE ( 33 / 88 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE + - 20 >= + 65
----

query I rowsort
SELECT ALL col0 + + - 96 AS col2 FROM tab2
----
-21
-32
-50

query I rowsort
SELECT ALL 47 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

onlyif mysql # aggregate syntax: 
query I rowsort label-3763
SELECT - + MAX( ALL 21 ) FROM tab0 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-3763
SELECT - + MAX ( ALL 21 ) FROM tab0 AS cor0
----
-21

query II rowsort
SELECT + - col0, col1 FROM tab1 AS cor0
----
-51
14
-85
5
-91
47

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE ( + col0 / + col2 + - 1 ) IN ( 33 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + + col2 col1 FROM tab1 AS cor0
----
21
54
82

query I rowsort
SELECT DISTINCT + col1 * col2 FROM tab2 AS cor0 WHERE NOT ( + col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3768
SELECT DISTINCT - SUM( 24 ) FROM tab0 AS cor0 WHERE NULL NOT IN ( - col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3768
SELECT DISTINCT - SUM ( 24 ) FROM tab0 AS cor0 WHERE NULL NOT IN ( - col1 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3769
SELECT COUNT( * ) FROM tab2 AS cor0 WHERE + col1 BETWEEN ( NULL ) AND col2
----
0

skipif mysql # not compatible
query I rowsort label-3769
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE + col1 BETWEEN ( NULL ) AND col2
----
0

query I rowsort
SELECT DISTINCT + ( + col2 ) AS col2 FROM tab2 AS cor0 WHERE NULL BETWEEN 40 + - 37 AND NULL
----

query I rowsort
SELECT - - col1 AS col1 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
1
21
81

query I rowsort
SELECT DISTINCT - col2 + + 8 FROM tab1
----
-51
-60
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-3773
SELECT ALL + 31 * COUNT( col1 ) FROM tab2 WHERE NOT ( + col0 * - + col0 * col0 + - col0 * - col1 ) IS NULL
----
93

skipif mysql # not compatible
query I rowsort label-3773
SELECT ALL + 31 * COUNT ( col1 ) FROM tab2 WHERE NOT ( + col0 * - + col0 * col0 + - col0 * - col1 ) IS NULL
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-3774
SELECT MIN( - col1 ) * - SUM( DISTINCT - 39 ) + - 84 * - 89 AS col1 FROM tab1
----
5643

skipif mysql # not compatible
query I rowsort label-3774
SELECT MIN ( - col1 ) * - SUM ( DISTINCT - 39 ) + - 84 * - 89 AS col1 FROM tab1
----
5643

query I rowsort
SELECT DISTINCT - 26 FROM tab1 WHERE NOT ( col0 + - col0 ) IS NULL
----
-26

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 80 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query II rowsort label-3777
SELECT DISTINCT col1 * col2 AS col0, - col1 DIV + - ( col0 ) AS col0 FROM tab0
----
210
0
3807
5
99
0

skipif mysql # not compatible
query II rowsort label-3777
SELECT DISTINCT col1 * col2 AS col0, - col1 / + - ( col0 ) AS col0 FROM tab0
----
210
0
3807
5
99
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3778
SELECT DISTINCT SUM( col2 ) AS col2 FROM tab0 WHERE NOT col2 NOT BETWEEN - 21 + col1 AND ( 34 * + col0 )
----
109

skipif mysql # not compatible
query I rowsort label-3778
SELECT DISTINCT SUM ( col2 ) AS col2 FROM tab0 WHERE NOT col2 NOT BETWEEN - 21 + col1 AND ( 34 * + col0 )
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-3779
SELECT 17 * MIN( ALL col0 ) FROM tab0
----
255

skipif mysql # not compatible
query I rowsort label-3779
SELECT 17 * MIN ( ALL col0 ) FROM tab0
----
255

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT + ( + + ( + - col1 ) ) > col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3781
SELECT * FROM tab0 cor0 WHERE NULL <= + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3781
SELECT * FROM tab0 cor0 WHERE NULL <= + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT col0 * + - col0 + col0 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) = NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3783
SELECT ALL - - CAST( - 62 AS SIGNED ) DIV col1 + - col0 + ( 56 + + 83 DIV col1 ) * 33 FROM tab1 AS cor0
----
1789
1958
2279

skipif mysql # not compatible
query I rowsort label-3783
SELECT ALL - - CAST ( - 62 AS INTEGER ) / col1 + - col0 + ( 56 + + 83 / col1 ) * 33 FROM tab1 AS cor0
----
1789
1958
2279

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 * + - 52 * col2 NOT BETWEEN ( NULL ) AND col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3785
SELECT DISTINCT - col0 / + 40 + + - CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3785
SELECT DISTINCT - col0 / + 40 + + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0
----
NULL

query I rowsort
SELECT ALL - col0 AS col0 FROM tab2 AS cor0 WHERE ( - 53 * col0 ) NOT BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 8 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 93 * + col0 - + + col0 FROM tab0
----
1380
8004
8924

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3789
SELECT MIN( + col2 ) DIV + 92 - - + MIN( + col1 ) FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-3789
SELECT MIN ( + col2 ) / + 92 - - + MIN ( + col1 ) FROM tab2
----
51

query I rowsort
SELECT ALL col2 - + 54 AS col0 FROM tab1
----
14
42
5

query III rowsort
SELECT ALL * FROM tab0 WHERE ( - + col1 * - + col0 ) BETWEEN 83 / - 52 AND + 35
----

query I rowsort
SELECT - 20 * - 36 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to bbc4aef4b8d2e37384ad44c9235ab9f5

query I rowsort
SELECT ALL - 68 * - col2 FROM tab0 AS cor0 WHERE NOT ( - col1 * + + 71 ) IN ( + 77 * col1 )
----
3196
6732
680

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 93 >= - col1
----

query II rowsort
SELECT - col1, 91 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3796
SELECT ALL 54 * COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT 59 IN ( - ( - + 94 ) )
----
162

skipif mysql # not compatible
query I rowsort label-3796
SELECT ALL 54 * COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT 59 IN ( - ( - + 94 ) )
----
162

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 - 70 NOT IN ( + col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + 27 ) col2 FROM tab0 cor0
----
27
27
27

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3799
SELECT * FROM tab1 AS cor0 WHERE NOT NULL IN ( CAST( + + 93 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-3799
SELECT * FROM tab1 AS cor0 WHERE NOT NULL IN ( CAST ( + + 93 AS INTEGER ) )
----

query I rowsort
SELECT + 58 AS col1 FROM tab2 AS cor0 WHERE NOT - 52 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( 77 * 15 / - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( 64 ) col1 FROM tab0 AS cor0
----
-64
-64
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-3803
SELECT + 44 + - + AVG ( ALL col0 ) - + COUNT( * ) AS col2 FROM tab2 cor0 WHERE NOT col1 NOT IN ( col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3803
SELECT + 44 + - + AVG ( ALL col0 ) - + COUNT ( * ) AS col2 FROM tab2 cor0 WHERE NOT col1 NOT IN ( col2 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3804
SELECT - CAST( NULL AS SIGNED ) AS col0, + COUNT( * ) FROM tab1
----
NULL
3

skipif mysql # not compatible
query II rowsort label-3804
SELECT - CAST ( NULL AS INTEGER ) AS col0, + COUNT ( * ) FROM tab1
----
NULL
3

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( + col1 * + 31 + - 65 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL 6 AS col0, 83 FROM tab2
----
6
83
6
83
6
83

query II rowsort
SELECT 41 AS col2, - 29 - - col2 FROM tab2
----
41
-6
41
11
41
29

onlyif mysql # aggregate syntax: 
query I rowsort label-3808
SELECT DISTINCT + - MAX( - col0 ) * MIN( ALL - col0 ) AS col1 FROM tab1 WHERE col1 IS NOT NULL
----
-4641

skipif mysql # not compatible
query I rowsort label-3808
SELECT DISTINCT + - MAX ( - col0 ) * MIN ( ALL - col0 ) AS col1 FROM tab1 WHERE col1 IS NOT NULL
----
-4641

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3809
SELECT + COUNT( * ) + - COUNT( * ) DIV - + 55 AS col1 FROM tab2, tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3809
SELECT + COUNT ( * ) + - COUNT ( * ) / - + 55 AS col1 FROM tab2, tab1 AS cor0
----
9

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NOT 10 IS NOT NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 74 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - - col2 * 43 FROM tab1 AS cor0
----
2537
2924
4128

onlyif mysql # DIV for integer division: 
query I rowsort label-3813
SELECT + 0 * + 37 DIV 71 * - ( 59 ) * - col1 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3813
SELECT + 0 * + 37 / 71 * - ( 59 ) * - col1 FROM tab2 cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col0 IN ( + col0 + - col2, - ( col2 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL - col1 + + col2, + col1 FROM tab0 AS cor0
----
-11
21
-34
81
98
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3816
SELECT DISTINCT - 81 DIV + - col1 + + + col1 FROM tab1
----
19
21
48

skipif mysql # not compatible
query I rowsort label-3816
SELECT DISTINCT - 81 / + - col1 + + + col1 FROM tab1
----
19
21
48

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT ( NULL ) IS NOT NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL IN ( 50 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 56 * + col1 + + col2 col1 FROM tab0 AS cor0
----
1186
155
4583

query I rowsort
SELECT ALL + col0 * col0 FROM tab2 AS cor0 WHERE col1 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 68 / - col0 - - + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3822
SELECT DISTINCT ( COUNT( * ) ) * COUNT( * ) + - - 48 + + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-3822
SELECT DISTINCT ( COUNT ( * ) ) * COUNT ( * ) + - - 48 + + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
54

query I rowsort
SELECT DISTINCT - + col1 + + - col2 * col2 AS col1 FROM tab1 AS cor0
----
-3486
-4671
-9230

onlyif mysql # aggregate syntax: 
query I rowsort label-3824
SELECT ALL MIN( DISTINCT - - col1 ) + 41 + + ( - 38 ) AS col2 FROM tab1 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-3824
SELECT ALL MIN ( DISTINCT - - col1 ) + 41 + + ( - 38 ) AS col2 FROM tab1 AS cor0
----
8

query II rowsort
SELECT + - 7 * + - col0 col1, + col2 FROM tab1 cor0
----
357
96
595
59
637
68

query I rowsort
SELECT ALL 59 FROM tab0 AS cor0 WHERE ( NULL ) > + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3827
SELECT ALL * FROM tab1 WHERE NOT + CAST( NULL AS SIGNED ) < NULL
----

skipif mysql # not compatible
query III rowsort label-3827
SELECT ALL * FROM tab1 WHERE NOT + CAST ( NULL AS INTEGER ) < NULL
----

query I rowsort
SELECT DISTINCT col2 - 19 AS col2 FROM tab1
----
40
49
77

query II rowsort
SELECT ALL + col2 AS col2, col0 * col0 AS col2 FROM tab1
----
59
7225
68
8281
96
2601

query I rowsort
SELECT col0 - - + 30 AS col1 FROM tab2
----
105
76
94

query I rowsort
SELECT DISTINCT + col2 * - 87 FROM tab0
----
-4089
-8613
-870

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3832
SELECT col2 DIV - CAST( - - col0 AS SIGNED ) + + col0, 23 + + col0 - + ( col1 ) + - col0 AS col1 FROM tab2 cor0
----
46
-28
64
-54
75
-44

skipif mysql # not compatible
query II rowsort label-3832
SELECT col2 / - CAST ( - - col0 AS INTEGER ) + + col0, 23 + + col0 - + ( col1 ) + - col0 AS col1 FROM tab2 cor0
----
46
-28
64
-54
75
-44

query I rowsort
SELECT - col0 * + 58 + - col1 * + col0 FROM tab1 AS cor0
----
-3672
-5355
-9555

onlyif mysql # aggregate syntax: 
query I rowsort label-3834
SELECT ALL - SUM( - - 20 ) FROM tab2
----
-60

skipif mysql # not compatible
query I rowsort label-3834
SELECT ALL - SUM ( - - 20 ) FROM tab2
----
-60

query I rowsort
SELECT + 60 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3836
SELECT ALL + CAST( - 62 AS SIGNED ) * col1 AS col0 FROM tab0
----
-1302
-5022
-62

skipif mysql # not compatible
query I rowsort label-3836
SELECT ALL + CAST ( - 62 AS INTEGER ) * col1 AS col0 FROM tab0
----
-1302
-5022
-62

query II rowsort
SELECT + 43 * - 17 AS col0, + col0 * - + col2 FROM tab2
----
-731
-1058
-731
-2560
-731
-4350

onlyif mysql # DIV for integer division: 
query I rowsort label-3838
SELECT DISTINCT - 72 DIV - col2 FROM tab2 AS cor0
----
1
3

skipif mysql # not compatible
query I rowsort label-3838
SELECT DISTINCT - 72 / - col2 FROM tab2 AS cor0
----
1
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3839
SELECT ALL ( + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3839
SELECT ALL ( + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3840
SELECT - COUNT( ALL 89 ) * + SUM( + col2 ) FROM tab1 AS cor0
----
-669

skipif mysql # not compatible
query I rowsort label-3840
SELECT - COUNT ( ALL 89 ) * + SUM ( + col2 ) FROM tab1 AS cor0
----
-669

query I rowsort
SELECT - - 65 AS col0 FROM tab0 AS cor0
----
65
65
65

onlyif mysql # aggregate syntax: 
query I rowsort label-3842
SELECT ALL + SUM( DISTINCT + 92 ) FROM tab2 AS cor0
----
92

skipif mysql # not compatible
query I rowsort label-3842
SELECT ALL + SUM ( DISTINCT + 92 ) FROM tab2 AS cor0
----
92

query I rowsort
SELECT DISTINCT - 59 * + col0 AS col0 FROM tab1 AS cor0
----
-3009
-5015
-5369

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3844
SELECT DISTINCT + CAST( COUNT( * ) AS SIGNED ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3844
SELECT DISTINCT + CAST ( COUNT ( * ) AS INTEGER ) AS col0 FROM tab0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 5 col1 FROM tab2 WHERE + ( ( - 66 ) ) > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - + col0 IN ( col0 )
----

query I rowsort
SELECT + 57 * - 79 + + col1 * - + ( - + col2 ) + - + col0 + col1 + + + col1 FROM tab1
----
-1304
-3182
-4283

onlyif mysql # DIV for integer division: 
query I rowsort label-3848
SELECT DISTINCT - col1 DIV - + 27 AS col0 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-3848
SELECT DISTINCT - col1 / - + 27 AS col0 FROM tab1 AS cor0
----
0
1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL <= - col2 / col2
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3850
SELECT ALL - - col1, + col1 DIV 37 AS col2 FROM tab2 AS cor0
----
51
1
67
1
77
2

skipif mysql # not compatible
query II rowsort label-3850
SELECT ALL - - col1, + col1 / 37 AS col2 FROM tab2 AS cor0
----
51
1
67
1
77
2

query I rowsort
SELECT + - col0 FROM tab0 WHERE NULL <> + 98 + + 19
----

query I rowsort
SELECT + 48 * - col2 FROM tab2
----
-1104
-1920
-2784

onlyif mysql # aggregate syntax: 
query I rowsort label-3853
SELECT ( + + ( - SUM( 26 ) ) ) AS col0 FROM tab2
----
-78

skipif mysql # not compatible
query I rowsort label-3853
SELECT ( + + ( - SUM ( 26 ) ) ) AS col0 FROM tab2
----
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-3854
SELECT ALL - col0 * - col2 + - col1 DIV + col2 + + - ( ( - - col2 ) ) AS col2 FROM tab1 AS cor0
----
4800
4956
6120

skipif mysql # not compatible
query I rowsort label-3854
SELECT ALL - col0 * - col2 + - col1 / + col2 + + - ( ( - - col2 ) ) AS col2 FROM tab1 AS cor0
----
4800
4956
6120

query I rowsort
SELECT 9 - + - col1 + + col1 AS col2 FROM tab0 AS cor0
----
11
171
51

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3856
SELECT CAST( NULL AS SIGNED ) * + - col1 * - col1 + col1, - col2 DIV - col1 - + + col0 AS col0 FROM tab0 AS cor0
----
NULL
-15
NULL
-87
NULL
2

skipif mysql # not compatible
query II rowsort label-3856
SELECT CAST ( NULL AS INTEGER ) * + - col1 * - col1 + col1, - col2 / - col1 - + + col0 AS col0 FROM tab0 AS cor0
----
NULL
-15
NULL
-87
NULL
2

query I rowsort
SELECT DISTINCT + 45 - - col1 AS col0 FROM tab0 AS cor0
----
126
46
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3858
SELECT ALL - 34 - 87 + col0 * - col0 + 18 + - + CAST( col1 AS SIGNED ) FROM tab0
----
-409
-7693
-9513

skipif mysql # not compatible
query I rowsort label-3858
SELECT ALL - 34 - 87 + col0 * - col0 + 18 + - + CAST ( col1 AS INTEGER ) FROM tab0
----
-409
-7693
-9513

query I rowsort
SELECT - 46 + - col1 FROM tab0
----
-127
-47
-67

query I rowsort
SELECT DISTINCT col1 - + - col0 AS col1 FROM tab2
----
141
142
97

query II rowsort
SELECT ( + col0 ) AS col0, col0 FROM tab0
----
15
15
87
87
97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3862
SELECT COUNT( - - col1 ) * - 66 AS col0 FROM tab2
----
-198

skipif mysql # not compatible
query I rowsort label-3862
SELECT COUNT ( - - col1 ) * - 66 AS col0 FROM tab2
----
-198

query I rowsort
SELECT ALL + 8 * + 87 FROM tab1
----
696
696
696

query II rowsort
SELECT + ( - - 92 ) AS col0, col2 AS col1 FROM tab0
----
92
10
92
47
92
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3865
SELECT 58 * + ( + - COUNT( * ) ) AS col0 FROM tab1
----
-174

skipif mysql # not compatible
query I rowsort label-3865
SELECT 58 * + ( + - COUNT ( * ) ) AS col0 FROM tab1
----
-174

query I rowsort
SELECT + ( 32 ) AS col1 FROM tab0
----
32
32
32

onlyif mysql # aggregate syntax: 
query I rowsort label-3867
SELECT DISTINCT + COUNT( ALL col1 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3867
SELECT DISTINCT + COUNT ( ALL col1 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT - + col2 AS col0 FROM tab0 AS cor0 WHERE ( - col2 ) IS NOT NULL
----
-10
-47
-99

query I rowsort
SELECT ALL + col2 * + 74 * col2 FROM tab1 cor0 WHERE NOT + col1 IS NOT NULL
----

query I rowsort
SELECT - - 65 FROM tab2 AS cor0 WHERE NOT - col0 < - + 87
----
65
65
65

onlyif mysql # aggregate syntax: 
query I rowsort label-3871
SELECT - - SUM( - - 31 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
279

skipif mysql # not compatible
query I rowsort label-3871
SELECT - - SUM ( - - 31 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
279

query II rowsort
SELECT DISTINCT - col0 AS col0, 2 * + col1 AS col0 FROM tab0 cor0
----
-15
162
-87
42
-97
2

query II rowsort
SELECT ALL col0 AS col2, col1 FROM tab0 AS cor0
----
15
81
87
21
97
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3874
SELECT DISTINCT COUNT( * ) * ( + - COUNT( * ) ) AS col0, - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
-9
NULL

skipif mysql # not compatible
query II rowsort label-3874
SELECT DISTINCT COUNT ( * ) * ( + - COUNT ( * ) ) AS col0, - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
-9
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3875
SELECT + CAST( NULL AS SIGNED ) / + - 69 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3875
SELECT + CAST ( NULL AS INTEGER ) / + - 69 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3876
SELECT DISTINCT * FROM tab2 WHERE NOT + + CAST( NULL AS SIGNED ) * - 60 + - + 30 - ( col1 ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-3876
SELECT DISTINCT * FROM tab2 WHERE NOT + + CAST ( NULL AS INTEGER ) * - 60 + - + 30 - ( col1 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3877
SELECT - 19 DIV + col2 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3877
SELECT - 19 / + col2 AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL + ( col0 ) * - + 20 AS col2 FROM tab2
----
-1280
-1500
-920

onlyif mysql # aggregate syntax: 
query I rowsort label-3879
SELECT SUM( DISTINCT col2 ) * - 49 FROM tab1
----
-10927

skipif mysql # not compatible
query I rowsort label-3879
SELECT SUM ( DISTINCT col2 ) * - 49 FROM tab1
----
-10927

query I rowsort
SELECT ALL + col2 * + + col1 AS col1 FROM tab0
----
210
3807
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3881
SELECT ALL + COUNT( * ) DIV - COUNT( * ) + - + COUNT( * ) + + + 31 + + - COUNT( * ) AS col2 FROM tab2
----
24

skipif mysql # not compatible
query I rowsort label-3881
SELECT ALL + COUNT ( * ) / - COUNT ( * ) + - + COUNT ( * ) + + + 31 + + - COUNT ( * ) AS col2 FROM tab2
----
24

query III rowsort
SELECT ALL * FROM tab2 WHERE + col1 = - + col1
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 82 NOT IN ( col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - + col2 AS col2 FROM tab2 WHERE - col2 < 30
----
-23
-40
-58

query I rowsort
SELECT DISTINCT - - col0 + 30 AS col0 FROM tab2 AS cor0
----
105
76
94

query II rowsort
SELECT - col1 + col1, 48 AS col0 FROM tab1 cor0
----
0
48
0
48
0
48

query I rowsort
SELECT 12 + + col0 AS col2 FROM tab2 AS cor0
----
58
76
87

onlyif mysql # DIV for integer division: 
query I rowsort label-3888
SELECT DISTINCT - 58 DIV - col2 col1 FROM tab0 AS cor0
----
0
1
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3888
SELECT DISTINCT - 58 / - col2 col1 FROM tab0 AS cor0
----
0
1
5

query I rowsort
SELECT - 56 + - - col1 AS col2 FROM tab0
----
-35
-55
25

query I rowsort
SELECT - col1 + - - 24 FROM tab0
----
-57
23
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3891
SELECT + CAST( NULL AS SIGNED ) FROM tab0 WHERE - + col1 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3891
SELECT + CAST ( NULL AS INTEGER ) FROM tab0 WHERE - + col1 IS NOT NULL
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( ( NOT NULL NOT IN ( col2 ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3893
SELECT ALL - COUNT( 48 ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-3893
SELECT ALL - COUNT ( 48 ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-9

query I rowsort
SELECT ( col1 ) * - col0 AS col2 FROM tab0 WHERE ( NOT NULL IS NOT NULL )
----
-1215
-1827
-97

onlyif mysql # DIV for integer division: 
query II rowsort label-3895
SELECT - col0 DIV col0 DIV + 59 AS col0, - 86 FROM tab2 AS cor0
----
0
-86
0
-86
0
-86

skipif mysql # not compatible
query II rowsort label-3895
SELECT - col0 / col0 / + 59 AS col0, - 86 FROM tab2 AS cor0
----
0
-86
0
-86
0
-86

query II rowsort
SELECT DISTINCT col1 AS col1, - col0 FROM tab2 AS cor0
----
51
-46
67
-75
77
-64

query I rowsort
SELECT DISTINCT - col2 * + - col0 FROM tab1 AS cor0 WHERE NOT - col1 < NULL
----

query II rowsort
SELECT ALL - - 39 * + 11 + - + 45 * col0 * - + col0 * col2 AS col2, + col0 * - - col2 AS col0 FROM tab1 AS cor0
----
11236749
4896
19182804
5015
25340289
6188

query II rowsort
SELECT + 38 AS col1, - col2 FROM tab0 AS cor0
----
38
-10
38
-47
38
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3900
SELECT ALL + COUNT( col0 ) AS col2 FROM tab0 AS cor0 WHERE ( - col2 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-3900
SELECT ALL + COUNT ( col0 ) AS col2 FROM tab0 AS cor0 WHERE ( - col2 ) IS NOT NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3901
SELECT ALL - CAST( + 82 AS SIGNED ) + + 96 AS col0 FROM tab0 AS cor0
----
14
14
14

skipif mysql # not compatible
query I rowsort label-3901
SELECT ALL - CAST ( + 82 AS INTEGER ) + + 96 AS col0 FROM tab0 AS cor0
----
14
14
14

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3902
SELECT DISTINCT col0 + + + 9 + - - CAST( NULL AS DECIMAL ) * col2 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3902
SELECT DISTINCT col0 + + + 9 + - - CAST ( NULL AS REAL ) * col2 AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + 28 + + 21 AS col1 FROM tab0 AS cor0
----
49
49
49

onlyif mysql # DIV for integer division: 
query I rowsort label-3904
SELECT DISTINCT + - col2 - - ( + 6 ) DIV - + col1 FROM tab1 AS cor0
----
-60
-68
-96

skipif mysql # not compatible
query I rowsort label-3904
SELECT DISTINCT + - col2 - - ( + 6 ) / - + col1 FROM tab1 AS cor0
----
-60
-68
-96

query II rowsort
SELECT + 94, 93 AS col1 FROM tab1 AS cor0
----
94
93
94
93
94
93

onlyif mysql # aggregate syntax: 
query I rowsort label-3906
SELECT + 90 - + COUNT( DISTINCT - - col0 ) AS col2 FROM tab0
----
87

skipif mysql # not compatible
query I rowsort label-3906
SELECT + 90 - + COUNT ( DISTINCT - - col0 ) AS col2 FROM tab0
----
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 - - ( - 41 ) col0 FROM tab1
----
-27
-36
6

query I rowsort
SELECT DISTINCT ( - - 40 ) FROM tab2
----
40

query I rowsort
SELECT + - col0 + col0 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3910
SELECT ALL + COUNT( * ) col1 FROM tab1 AS cor0 WHERE NOT + 77 < + + col1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3910
SELECT ALL + COUNT ( * ) col1 FROM tab1 AS cor0 WHERE NOT + 77 < + + col1
----
3

query II rowsort
SELECT ALL - - col1, col0 + - col2 AS col2 FROM tab0 AS cor0
----
1
-2
21
77
81
-32

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3912
SELECT DISTINCT 98 AS col1, - 14 - - - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
98
NULL

skipif mysql # not compatible
query II rowsort label-3912
SELECT DISTINCT 98 AS col1, - 14 - - - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
98
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3913
SELECT ALL + - MAX( ( col2 ) ) FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-3913
SELECT ALL + - MAX ( ( col2 ) ) FROM tab2 AS cor0
----
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3914
SELECT DISTINCT - - COUNT( * ) DIV + + 51 FROM tab2 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3914
SELECT DISTINCT - - COUNT ( * ) / + + 51 FROM tab2 WHERE NOT NULL IS NULL
----
0

query II rowsort
SELECT DISTINCT 62 * col0 * - - 69 AS col1, 10 FROM tab1
----
218178
10
363630
10
389298
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3916
SELECT - ( - COUNT( * ) ) * - 31 FROM tab1 cor0
----
-93

skipif mysql # not compatible
query I rowsort label-3916
SELECT - ( - COUNT ( * ) ) * - 31 FROM tab1 cor0
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-3917
SELECT DISTINCT - + COUNT( * ) * - - 70 + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-207

skipif mysql # not compatible
query I rowsort label-3917
SELECT DISTINCT - + COUNT ( * ) * - - 70 + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-207

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3918
SELECT ALL * FROM tab0 cor0 WHERE - col2 <> - col1 / - CAST( 44 AS DECIMAL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3918
SELECT ALL * FROM tab0 cor0 WHERE - col2 <> - col1 / - CAST ( 44 AS REAL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col1 AS col1 FROM tab2 AS cor0 WHERE NOT NULL > ( 73 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3920
SELECT ALL - ( + - COUNT( * ) ), 40 AS col2 FROM tab0 AS cor0
----
3
40

skipif mysql # not compatible
query II rowsort label-3920
SELECT ALL - ( + - COUNT ( * ) ), 40 AS col2 FROM tab0 AS cor0
----
3
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - 74 - - 67 col2 FROM tab2 cor0
----
16
33
51

query I rowsort
SELECT ALL + ( - - col0 ) * + col0 FROM tab2 AS cor0
----
2116
4096
5625

onlyif mysql # DIV for integer division: 
query I rowsort label-3923
SELECT ALL ( - col0 ) DIV col1 FROM tab1 AS cor0
----
-1
-17
-3

skipif mysql # not compatible
query I rowsort label-3923
SELECT ALL ( - col0 ) / col1 FROM tab1 AS cor0
----
-1
-17
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3924
SELECT ALL 70 col0, - col0 + + + CAST( NULL AS SIGNED ) + + col2 * + ( col0 ) FROM tab2
----
70
NULL
70
NULL
70
NULL

skipif mysql # not compatible
query II rowsort label-3924
SELECT ALL 70 col0, - col0 + + + CAST ( NULL AS INTEGER ) + + col2 * + ( col0 ) FROM tab2
----
70
NULL
70
NULL
70
NULL

query I rowsort
SELECT col1 FROM tab2 WHERE NOT + col2 + + - col1 IS NULL
----
51
67
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3926
SELECT - 59 - - + 62, MAX( + - col2 ) AS col2 FROM tab1 WHERE + CAST( col0 AS SIGNED ) IS NOT NULL
----
3
-59

skipif mysql # not compatible
query II rowsort label-3926
SELECT - 59 - - + 62, MAX ( + - col2 ) AS col2 FROM tab1 WHERE + CAST ( col0 AS INTEGER ) IS NOT NULL
----
3
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-3927
SELECT DISTINCT MAX( ALL 82 ) FROM tab1
----
82

skipif mysql # not compatible
query I rowsort label-3927
SELECT DISTINCT MAX ( ALL 82 ) FROM tab1
----
82

query I rowsort
SELECT col1 * + - 55 * - col0 + - 3 AS col0 FROM tab0
----
100482
5332
66822

query I rowsort
SELECT ALL + 14 + - 18 AS col0 FROM tab2 AS cor0
----
-4
-4
-4

query I rowsort
SELECT DISTINCT - 64 AS col0 FROM tab1
----
-64

query I rowsort
SELECT DISTINCT + ( ( + 49 ) ) AS col0 FROM tab1 AS cor0
----
49

query I rowsort
SELECT DISTINCT - ( + + col2 ) AS col0 FROM tab2 AS cor0 WHERE ( NOT - 68 IS NULL )
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3933
SELECT ALL - COUNT( - + col1 ) * + - COUNT( * ) AS col1 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3933
SELECT ALL - COUNT ( - + col1 ) * + - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
9

query I rowsort
SELECT ALL - + 25 * col0 + col0 AS col0 FROM tab1 AS cor0
----
-1224
-2040
-2184

onlyif mysql # aggregate syntax: 
query I rowsort label-3935
SELECT DISTINCT COUNT( * ) * - 55 FROM tab0 AS cor0 WHERE - col1 - - col0 IS NOT NULL
----
-165

skipif mysql # not compatible
query I rowsort label-3935
SELECT DISTINCT COUNT ( * ) * - 55 FROM tab0 AS cor0 WHERE - col1 - - col0 IS NOT NULL
----
-165

query III rowsort
SELECT * FROM tab1 WHERE + 36 + + 61 + col0 + + col0 IS NULL
----

query I rowsort
SELECT + 72 * + 79 FROM tab1
----
5688
5688
5688

query I rowsort
SELECT ALL + col1 + + 30 AS col2 FROM tab1 WHERE 75 NOT BETWEEN + - col0 AND - col2
----
35
44
77

query III rowsort
SELECT * FROM tab0 WHERE NOT + 23 * + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3940
SELECT DISTINCT MIN( - 10 ) AS col0 FROM tab2
----
-10

skipif mysql # not compatible
query I rowsort label-3940
SELECT DISTINCT MIN ( - 10 ) AS col0 FROM tab2
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-3941
SELECT - COUNT( ALL - + col0 ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3941
SELECT - COUNT ( ALL - + col0 ) AS col1 FROM tab0
----
-3

query I rowsort
SELECT DISTINCT + 94 - - col0 FROM tab0 WHERE NULL BETWEEN NULL AND NULL
----

query II rowsort
SELECT ALL col0 col2, col1 + - col1 + + - col1 AS col1 FROM tab0
----
15
-81
87
-21
97
-1

query I rowsort
SELECT + col0 * 64 AS col1 FROM tab1
----
3264
5440
5824

query I rowsort
SELECT + col1 * - 44 + - + col2 AS col2 FROM tab2 WHERE NOT - 71 <= + ( + - 96 ) - - + col2
----
-2267

query II rowsort
SELECT - col1 * - + col0 * + + col2 AS col2, + col0 * - col1 * - - col2 AS col2 FROM tab2
----
197120
-197120
291450
-291450
53958
-53958

query I rowsort
SELECT ALL + + col0 + + + ( + col1 ) FROM tab2 AS cor0 WHERE NOT col1 BETWEEN NULL AND - ( - col0 ) + + 27 - - 95
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( 56 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col0 BETWEEN + + col1 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 36 AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to afecaf209e79e23b6674a73fffa3e837

onlyif mysql # aggregate syntax: 
query II rowsort label-3951
SELECT DISTINCT SUM( + - col1 ), 17 AS col2 FROM tab0 cor0
----
-103
17

skipif mysql # not compatible
query II rowsort label-3951
SELECT DISTINCT SUM ( + - col1 ), 17 AS col2 FROM tab0 cor0
----
-103
17

query I rowsort
SELECT 42 AS col0 FROM tab1 cor0 WHERE NOT + col1 IS NULL
----
42
42
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3953
SELECT DISTINCT - + 23 * - ( + col1 ) + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3953
SELECT DISTINCT - + 23 * - ( + col1 ) + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3954
SELECT ALL - + COUNT( * ) AS col0, - MIN( ALL 14 ) FROM tab0 AS cor0
----
-3
-14

skipif mysql # not compatible
query II rowsort label-3954
SELECT ALL - + COUNT ( * ) AS col0, - MIN ( ALL 14 ) FROM tab0 AS cor0
----
-3
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-3955
SELECT - COUNT( DISTINCT - ( + col1 ) ) * COUNT( - - 60 ) FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3955
SELECT - COUNT ( DISTINCT - ( + col1 ) ) * COUNT ( - - 60 ) FROM tab2 AS cor0
----
-9

onlyif mysql # DIV for integer division: 
query II rowsort label-3956
SELECT DISTINCT + 81 AS col1, col2 + - + 39 DIV - col2 + - col1 AS col2 FROM tab2 AS cor0
----
81
-27
81
-37
81
-9

skipif mysql # not compatible
query II rowsort label-3956
SELECT DISTINCT + 81 AS col1, col2 + - + 39 / - col2 + - col1 AS col2 FROM tab2 AS cor0
----
81
-27
81
-37
81
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3957
SELECT MIN( + col0 ) AS col0 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-3957
SELECT MIN ( + col0 ) AS col0 FROM tab2 AS cor0
----
46

query II rowsort
SELECT ALL - 18, - col0 + - col2 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3959
SELECT DISTINCT MAX( - - col0 ) FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-3959
SELECT DISTINCT MAX ( - - col0 ) FROM tab0
----
97

onlyif mysql # DIV for integer division: 
query II rowsort label-3960
SELECT 21 DIV 61, + col0 FROM tab1
----
0
51
0
85
0
91

skipif mysql # not compatible
query II rowsort label-3960
SELECT 21 / 61, + col0 FROM tab1
----
0
51
0
85
0
91

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN + col0 * col0 AND col2 / + col0
----

query I rowsort
SELECT - ( col0 ) + - 58 AS col2 FROM tab0 AS cor0
----
-145
-155
-73

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3963
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( + 78 * - ( col1 ) + - CAST( NULL AS SIGNED ), + col0, + col0 + - - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-3963
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( + 78 * - ( col1 ) + - CAST ( NULL AS INTEGER ), + col0, + col0 + - - CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3964
SELECT ALL COUNT( - col2 ) - - COUNT( - + 79 ) AS col2 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-3964
SELECT ALL COUNT ( - col2 ) - - COUNT ( - + 79 ) AS col2 FROM tab0 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3965
SELECT ALL - COUNT( * ) col2 FROM tab0 AS cor0 WHERE ( NOT + 41 + 58 + + + 2 * ( + 85 ) * - + 67 * - 80 * 48 IS NULL )
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3965
SELECT ALL - COUNT ( * ) col2 FROM tab0 AS cor0 WHERE ( NOT + 41 + 58 + + + 2 * ( + 85 ) * - + 67 * - 80 * 48 IS NULL )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3966
SELECT COUNT( DISTINCT 63 ) AS col1 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-3966
SELECT COUNT ( DISTINCT 63 ) AS col1 FROM tab1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3967
SELECT + - col2 DIV 79 col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3967
SELECT + - col2 / 79 col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3968
SELECT DISTINCT ( col2 ) + col2 - CAST( NULL AS SIGNED ) * + col2 - + col2 * 50 * col0 + - 37 * - ( - col1 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3968
SELECT DISTINCT ( col2 ) + col2 - CAST ( NULL AS INTEGER ) * + col2 - + col2 * 50 * col0 + - 37 * - ( - col1 ) FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3969
SELECT - 42 DIV col1 FROM tab0 AS cor0
----
-2
-42
0

skipif mysql # not compatible
query I rowsort label-3969
SELECT - 42 / col1 FROM tab0 AS cor0
----
-2
-42
0

query II rowsort
SELECT - col2 AS col0, col2 AS col1 FROM tab1 AS cor0
----
-59
59
-68
68
-96
96

query I rowsort
SELECT - col2 * + - col0 AS col0 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
705
870
9603

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3972
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 IN ( + CAST( NULL AS SIGNED ) / col0, + col1 )
----

skipif mysql # not compatible
query III rowsort label-3972
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 IN ( + CAST ( NULL AS INTEGER ) / col0, + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3973
SELECT + 52 - - COUNT( * ) FROM tab2 AS cor0
----
55

skipif mysql # not compatible
query I rowsort label-3973
SELECT + 52 - - COUNT ( * ) FROM tab2 AS cor0
----
55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 13 + - col1 col1 FROM tab0 AS cor0
----
-14
-34
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-3975
SELECT DISTINCT 27 + + ( + + COUNT( + - 56 ) ) AS col2 FROM tab2 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-3975
SELECT DISTINCT 27 + + ( + + COUNT ( + - 56 ) ) AS col2 FROM tab2 AS cor0
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3976
SELECT MIN( + 37 ) FROM tab2 WHERE NOT col1 / col1 * col2 + - + CAST( NULL AS SIGNED ) <> + + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3976
SELECT MIN ( + 37 ) FROM tab2 WHERE NOT col1 / col1 * col2 + - + CAST ( NULL AS INTEGER ) <> + + col1
----
NULL

query I rowsort
SELECT col1 * - 83 AS col0 FROM tab0
----
-1743
-6723
-83

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NOT ( NULL ) IS NOT NULL )
----

query I rowsort
SELECT DISTINCT + 47 + + col2 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
105
70
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3980
SELECT ALL + CAST( NULL AS SIGNED ) * + MAX( ALL + col1 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3980
SELECT ALL + CAST ( NULL AS INTEGER ) * + MAX ( ALL + col1 ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + + 98 * - col2 FROM tab2 AS cor0
----
-2254
-3920
-5684

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3982
SELECT * FROM tab2 cor0 WHERE NOT NULL IN ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-3982
SELECT * FROM tab2 cor0 WHERE NOT NULL IN ( - CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT - ( 61 ) AS col1 FROM tab2 AS cor0
----
-61
-61
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-3984
SELECT DISTINCT MIN( - ( - col1 ) ) FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-3984
SELECT DISTINCT MIN ( - ( - col1 ) ) FROM tab1 AS cor0
----
5

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3985
SELECT DISTINCT col2 col2 FROM tab1 WHERE NOT - + col1 <= - + CAST( - - col0 AS DECIMAL ) + + col0
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3985
SELECT DISTINCT col2 col2 FROM tab1 WHERE NOT - + col1 <= - + CAST ( - - col0 AS REAL ) + + col0
----

query I rowsort
SELECT ALL col0 + 40 FROM tab2 AS cor0
----
104
115
86

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) <= + + col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 = + - ( col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL + col0, - 61 + + col1 + + col1 FROM tab2
----
46
41
64
93
75
73

onlyif mysql # aggregate syntax: 
query II rowsort label-3990
SELECT ALL - COUNT( * ) col1, 64 AS col1 FROM tab1
----
-3
64

skipif mysql # not compatible
query II rowsort label-3990
SELECT ALL - COUNT ( * ) col1, 64 AS col1 FROM tab1
----
-3
64

query I rowsort
SELECT col0 + - + 56 AS col0 FROM tab1
----
-5
29
35

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - ( + 91 ) >= col0 OR NULL IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT 60 + + + col1 AS col2, + col0 FROM tab1 AS cor0
----
107
91
65
85
74
51

query I rowsort
SELECT + 11 FROM tab2 AS cor0 WHERE - 45 IS NOT NULL
----
11
11
11

query I rowsort
SELECT ALL - col2 + 96 FROM tab0 cor0
----
-3
49
86

onlyif mysql # DIV for integer division: 
query III rowsort label-3996
SELECT ALL col1 * col2 + - + col1 * + 90 AS col1, - col2 + + 72 DIV + - col2, - - col0 AS col2 FROM tab2 AS cor0
----
9 values hashing to fb21a402466e34bb37209457f75759a2

skipif mysql # not compatible
query III rowsort label-3996
SELECT ALL col1 * col2 + - + col1 * + 90 AS col1, - col2 + + 72 / + - col2, - - col0 AS col2 FROM tab2 AS cor0
----
9 values hashing to fb21a402466e34bb37209457f75759a2

query II rowsort
SELECT + col1, col1 AS col1 FROM tab0 AS cor0
----
1
1
21
21
81
81

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3998
SELECT - col0 - + + CAST( NULL AS DECIMAL ) + + col1 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3998
SELECT - col0 - + + CAST ( NULL AS REAL ) + + col1 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 45 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 71160abf09589695379a70558726f0ba

onlyif mysql # DIV for integer division: 
query I rowsort label-4000
SELECT DISTINCT - 65 DIV col0 col2 FROM tab2 AS cor0
----
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4000
SELECT DISTINCT - 65 / col0 col2 FROM tab2 AS cor0
----
-1
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4001
SELECT - - CAST( NULL AS SIGNED ) / + + 62, col1 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-4001
SELECT - - CAST ( NULL AS INTEGER ) / + + 62, col1 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 92 col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4003
SELECT COUNT( * ), - 43 DIV COUNT( * ) AS col1 FROM tab2
----
3
-14

skipif mysql # not compatible
query II rowsort label-4003
SELECT COUNT ( * ), - 43 / COUNT ( * ) AS col1 FROM tab2
----
3
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-4004
SELECT COUNT( * ) * - 26 * + 55 * - COUNT( * ) FROM tab0
----
12870

skipif mysql # not compatible
query I rowsort label-4004
SELECT COUNT ( * ) * - 26 * + 55 * - COUNT ( * ) FROM tab0
----
12870

onlyif mysql # aggregate syntax: 
query II rowsort label-4005
SELECT - COUNT( * ) AS col2, COUNT( col0 ) FROM tab2
----
-3
3

skipif mysql # not compatible
query II rowsort label-4005
SELECT - COUNT ( * ) AS col2, COUNT ( col0 ) FROM tab2
----
-3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4006
SELECT + COUNT( * ) AS col0 FROM tab1 WHERE NOT col0 - + 89 IN ( + 1, + col1, + 22 )
----
3

skipif mysql # not compatible
query I rowsort label-4006
SELECT + COUNT ( * ) AS col0 FROM tab1 WHERE NOT col0 - + 89 IN ( + 1, + col1, + 22 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4007
SELECT DISTINCT COUNT( * ) FROM tab2 WHERE - - 32 + col2 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-4007
SELECT DISTINCT COUNT ( * ) FROM tab2 WHERE - - 32 + col2 <> NULL
----
0

query II rowsort
SELECT - + col0 AS col1, col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-46
46
-64
64
-75
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4009
SELECT DISTINCT + CAST( NULL AS SIGNED ) / col2 / - col2 * - col0 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4009
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / col2 / - col2 * - col0 AS col2 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 - col0 * + col0 - col2 * - col2 col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN - col2 AND col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2, - 69 * col1 col2 FROM tab1 AS cor0
----
-59
-345
-68
-3243
-96
-966

onlyif mysql # aggregate syntax: 
query I rowsort label-4012
SELECT DISTINCT - COUNT( ALL - + col0 ) AS col2 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4012
SELECT DISTINCT - COUNT ( ALL - + col0 ) AS col2 FROM tab1 cor0
----
-3

query II rowsort
SELECT + - col2 AS col2, ( col0 ) * + - col2 AS col0 FROM tab1 cor0
----
-59
-5015
-68
-6188
-96
-4896

query I rowsort
SELECT ALL col0 * + - col0 AS col2 FROM tab2
----
-2116
-4096
-5625

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <= ( - 78 )
----

query I rowsort
SELECT 89 + + col0 FROM tab2 AS cor0
----
135
153
164

query I rowsort
SELECT ALL 15 + + col1 FROM tab0 cor0
----
16
36
96

query I rowsort
SELECT ALL - col2 + - 3 + + ( - + 59 ) * + col0 * - - col2 AS col1 FROM tab0 AS cor0
----
-41645
-51343
-566679

query II rowsort
SELECT DISTINCT + col0 + + 28 AS col0, - ( col1 ) FROM tab2 AS cor0
----
103
-67
74
-51
92
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4020
SELECT ALL ( + + ( + COUNT( * ) ) ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4020
SELECT ALL ( + + ( + COUNT ( * ) ) ) AS col2 FROM tab1
----
3

query I rowsort
SELECT DISTINCT + 77 + - + col2 FROM tab2 cor0
----
19
37
54

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4022
SELECT ALL + + CAST( NULL AS DECIMAL ) + - MIN( - - 42 ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4022
SELECT ALL + + CAST ( NULL AS REAL ) + - MIN ( - - 42 ) AS col1 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT + 15 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col0 - - col1 AS col2 FROM tab2 AS cor0 WHERE NOT - 39 IS NULL
----
-8
13
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4025
SELECT COUNT( * ) DIV + 62 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4025
SELECT COUNT ( * ) / + 62 FROM tab2 AS cor0
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - + 25 + - col2 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + + col2 AS col2 FROM tab2 cor0 WHERE NOT - col0 BETWEEN col0 AND + + 93
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4028
SELECT DISTINCT + 34 * + COUNT( - ( col1 ) ) FROM tab1 AS cor0
----
102

skipif mysql # not compatible
query I rowsort label-4028
SELECT DISTINCT + 34 * + COUNT ( - ( col1 ) ) FROM tab1 AS cor0
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-4029
SELECT - MIN( 50 ) + + - SUM( DISTINCT + col2 ) AS col2 FROM tab0 AS cor0 WHERE NOT ( ( NULL < ( NULL ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4029
SELECT - MIN ( 50 ) + + - SUM ( DISTINCT + col2 ) AS col2 FROM tab0 AS cor0 WHERE NOT ( ( NULL < ( NULL ) ) )
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN - + 72 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4031
SELECT ALL + COUNT( * ) * + + 50 AS col0 FROM tab0
----
150

skipif mysql # not compatible
query I rowsort label-4031
SELECT ALL + COUNT ( * ) * + + 50 AS col0 FROM tab0
----
150

query III rowsort
SELECT * FROM tab1 WHERE NOT + - 96 * + col1 IS NOT NULL
----

query I rowsort
SELECT ALL 10 * + + 91 AS col0 FROM tab1
----
910
910
910

query I rowsort
SELECT ALL - col2 + - col2 AS col1 FROM tab1 WHERE NULL = NULL
----

query I rowsort
SELECT + col0 * col0 + + col2 + + - 93 FROM tab2 AS cor0
----
2046
4043
5590

onlyif mysql # aggregate syntax: 
query I rowsort label-4036
SELECT DISTINCT + COUNT( * ) * + COUNT( * ) AS col1 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-4036
SELECT DISTINCT + COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
9

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND col1 * - col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NOT 34 <> + - col1 * - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4039
SELECT ALL - CAST( NULL AS SIGNED ) * - col0 + + col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4039
SELECT ALL - CAST ( NULL AS INTEGER ) * - col0 + + col2 FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT 57 AS col0, col2 AS col2 FROM tab1 AS cor0
----
57
59
57
68
57
96

query I rowsort
SELECT ALL - col2 + + col1 - 39 AS col1 FROM tab2 AS cor0
----
-11
-2
-30

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND + ( + + 26 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4043
SELECT ALL - col0 - + CAST( NULL AS SIGNED ) / + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4043
SELECT ALL - col0 - + CAST ( NULL AS INTEGER ) / + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 52 AS col1 FROM tab0 WHERE NULL IS NULL
----
52
52
52

query I rowsort
SELECT - col0 + col1 * 75 AS col2 FROM tab0
----
-22
1488
6060

query I rowsort
SELECT DISTINCT - - col0 FROM tab2 WHERE NOT col1 * + - col2 + + + 10 + - col2 = + col0 * - + 75 * + + col1
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4047
SELECT - CAST( NULL AS SIGNED ) * + - col0 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4047
SELECT - CAST ( NULL AS INTEGER ) * + - col0 AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4048
SELECT - MAX( DISTINCT + + col1 ) FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-4048
SELECT - MAX ( DISTINCT + + col1 ) FROM tab0
----
-81

query II rowsort
SELECT ALL + - 75 AS col2, 85 FROM tab2 cor0
----
-75
85
-75
85
-75
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4050
SELECT + COUNT( * ) * - SUM( + col0 ) / CAST( NULL AS SIGNED ) / COUNT( col2 ) + COUNT( * ) + - ( + 10 ) * - 82 FROM tab0 AS cor0 WHERE NOT col2 <> col0 + col1 + + + 7 * + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4050
SELECT + COUNT ( * ) * - SUM ( + col0 ) / CAST ( NULL AS INTEGER ) / COUNT ( col2 ) + COUNT ( * ) + - ( + 10 ) * - 82 FROM tab0 AS cor0 WHERE NOT col2 <> col0 + col1 + + + 7 * + col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4051
SELECT DISTINCT - MIN( DISTINCT + - 12 ) * + + 0 + + COUNT( * ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4051
SELECT DISTINCT - MIN ( DISTINCT + - 12 ) * + + 0 + + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4052
SELECT - + 97 * ( - 92 ) DIV col0 * + col1 AS col0 FROM tab2 AS cor0
----
10703
7906
9894

skipif mysql # not compatible
query I rowsort label-4052
SELECT - + 97 * ( - 92 ) / col0 * + col1 AS col0 FROM tab2 AS cor0
----
10703
7906
9894

query I rowsort
SELECT DISTINCT - col0 * 75 AS col0 FROM tab2 AS cor0
----
-3450
-4800
-5625

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - + 44 col0 FROM tab2 AS cor0
----
1012
1760
2552

query I rowsort
SELECT ALL - 29 AS col1 FROM tab1 AS cor0 WHERE 19 IS NOT NULL
----
-29
-29
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-4056
SELECT + COUNT( DISTINCT - - 81 ) AS col2 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4056
SELECT + COUNT ( DISTINCT - - 81 ) AS col2 FROM tab1 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 42 col0, - col1 * + col1 + + 22 col1 FROM tab1
----
-42
-174
-42
-2187
-42
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4058
SELECT DISTINCT + COUNT( 51 ) * + + COUNT( * ) AS col0 FROM tab0 WHERE + - ( + 23 ) + + col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4058
SELECT DISTINCT + COUNT ( 51 ) * + + COUNT ( * ) AS col0 FROM tab0 WHERE + - ( + 23 ) + + col2 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4059
SELECT ALL + ( ( - COUNT( - - 35 ) ) ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-4059
SELECT ALL + ( ( - COUNT ( - - 35 ) ) ) AS col2 FROM tab2
----
-3

query I rowsort
SELECT - col1 * col0 * + col2 AS col2 FROM tab0
----
-18270
-57105
-9603

onlyif mysql # DIV for integer division: 
query II rowsort label-4061
SELECT 79 AS col2, + 0 DIV - col1 col2 FROM tab2 AS cor0
----
79
0
79
0
79
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4061
SELECT 79 AS col2, + 0 / - col1 col2 FROM tab2 AS cor0
----
79
0
79
0
79
0

query II rowsort
SELECT + 38 AS col0, col1 AS col2 FROM tab0 AS cor0
----
38
1
38
21
38
81

onlyif mysql # DIV for integer division: 
query I rowsort label-4063
SELECT DISTINCT col0 DIV - - 74 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-4063
SELECT DISTINCT col0 / - - 74 FROM tab2 AS cor0
----
0
1

query I rowsort
SELECT DISTINCT - 15 AS col1 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-15

query III rowsort
SELECT * FROM tab1 cor0 WHERE col1 + - + col2 <> - col0 - col0 - + 31
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4066
SELECT DISTINCT + + 97 + - - CAST( - col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
16
76
96

skipif mysql # not compatible
query I rowsort label-4066
SELECT DISTINCT + + 97 + - - CAST ( - col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
16
76
96

query II rowsort
SELECT ( + - col1 ) AS col2, + col1 AS col1 FROM tab1 AS cor0
----
-14
14
-47
47
-5
5

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 2 * ( ( + col1 ) ) NOT IN ( - ( - + col0 ) + col2 + + 70 * - + col0 - - col1 + 48 * + - col1, + col2 + + 11, - - 21 * col1 - + - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4069
SELECT ALL 47 AS col1 FROM tab2 WHERE NOT + CAST( NULL AS SIGNED ) + - + col0 IS NOT NULL
----
47
47
47

skipif mysql # not compatible
query I rowsort label-4069
SELECT ALL 47 AS col1 FROM tab2 WHERE NOT + CAST ( NULL AS INTEGER ) + - + col0 IS NOT NULL
----
47
47
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 14 - + - col1 col1 FROM tab2
----
65
81
91

query I rowsort
SELECT + 6 - - col2 * + ( + - ( col1 ) ) AS col2 FROM tab2
----
-1167
-3074
-3880

onlyif mysql # aggregate syntax: 
query II rowsort label-4072
SELECT ALL - 13 AS col1, + COUNT( * ) AS col1 FROM tab2
----
-13
3

skipif mysql # not compatible
query II rowsort label-4072
SELECT ALL - 13 AS col1, + COUNT ( * ) AS col1 FROM tab2
----
-13
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4073
SELECT DISTINCT + + COUNT( * ) AS col1 FROM tab2 WHERE NOT - ( 43 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4073
SELECT DISTINCT + + COUNT ( * ) AS col1 FROM tab2 WHERE NOT - ( 43 ) IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4074
SELECT CAST( - 61 AS SIGNED ) + + - col1 AS col2, - col2 * + - ( + col2 ) AS col1 FROM tab0 AS cor0
----
-142
2209
-62
9801
-82
100

skipif mysql # not compatible
query II rowsort label-4074
SELECT CAST ( - 61 AS INTEGER ) + + - col1 AS col2, - col2 * + - ( + col2 ) AS col1 FROM tab0 AS cor0
----
-142
2209
-62
9801
-82
100

onlyif mysql # DIV for integer division: 
query I rowsort label-4075
SELECT - 3 DIV + col2 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4075
SELECT - 3 / + col2 AS col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4076
SELECT + + 74 * COUNT( * ) AS col0 FROM tab1 AS cor0
----
222

skipif mysql # not compatible
query I rowsort label-4076
SELECT + + 74 * COUNT ( * ) AS col0 FROM tab1 AS cor0
----
222

query I rowsort
SELECT DISTINCT - + 10 AS col1 FROM tab0 cor0 CROSS JOIN tab0 cor1
----
-10

query I rowsort
SELECT DISTINCT col0 / + + 8 FROM tab2 WHERE col0 / + + 24 BETWEEN NULL AND + 95 * 95
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4079
SELECT + CAST( NULL AS SIGNED ) + - 21 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4079
SELECT + CAST ( NULL AS INTEGER ) + - 21 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query II rowsort
SELECT + - 23 * - + col0, col0 FROM tab0 AS cor0
----
2001
87
2231
97
345
15

query I rowsort
SELECT col1 * + - 89 * + - 41 * 4 AS col1 FROM tab0 AS cor0
----
1182276
14596
306516

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL >= - col1 * - - 6 * + col2
----

query I rowsort
SELECT - + col2 * - 69 AS col1 FROM tab1 AS cor0
----
4071
4692
6624

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col2 / + ( - 85 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - 65 * col0 * - col1 + + col1 AS col0, col2 col2 FROM tab0 AS cor0
----
118776
10
6306
99
79056
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - - 91 ) col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
91
91
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 41 * - 38 * - + 34 col0 FROM tab1 AS cor0
----
52972
52972
52972

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4088
SELECT + + MIN( col0 ) AS col2 FROM tab2 WHERE NOT NULL = CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4088
SELECT + + MIN ( col0 ) AS col2 FROM tab2 WHERE NOT NULL = CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4089
SELECT DISTINCT SUM( DISTINCT + 34 ) FROM tab1
----
34

skipif mysql # not compatible
query I rowsort label-4089
SELECT DISTINCT SUM ( DISTINCT + 34 ) FROM tab1
----
34

query I rowsort
SELECT DISTINCT - col1 + + + col0 AS col1 FROM tab0 WHERE 19 NOT BETWEEN NULL AND - - 48
----

query I rowsort
SELECT col0 + - + 76 * 46 * - col0 FROM tab1
----
178347
297245
318227

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4092
SELECT COUNT( + 22 ) + + MIN( DISTINCT + CAST( ( - col1 ) AS SIGNED ) ) FROM tab0
----
-78

skipif mysql # not compatible
query I rowsort label-4092
SELECT COUNT ( + 22 ) + + MIN ( DISTINCT + CAST ( ( - col1 ) AS INTEGER ) ) FROM tab0
----
-78

query I rowsort
SELECT DISTINCT + col0 + + 59 FROM tab1
----
110
144
150

query I rowsort
SELECT ALL 6 * + + ( col1 ) + - 3 AS col1 FROM tab0 AS cor0
----
123
3
483

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( ( NOT - col1 * + + col2 + - col0 IS NULL ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4096
SELECT + - COUNT( * ) * - + ( + + COUNT( * ) ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
81

skipif mysql # not compatible
query I rowsort label-4096
SELECT + - COUNT ( * ) * - + ( + + COUNT ( * ) ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-4097
SELECT col2 DIV col1 DIV - + col2 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4097
SELECT col2 / col1 / - + col2 FROM tab0
----
-1
0
0

query I rowsort
SELECT + + 27 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

query II rowsort
SELECT DISTINCT col2, + col1 - + col2 AS col0 FROM tab0
----
10
11
47
34
99
-98

query I rowsort
SELECT - 39 + + + col1 AS col1 FROM tab0 AS cor0
----
-18
-38
42

query I rowsort
SELECT + + ( + + col0 ) + - col2 AS col1 FROM tab1 AS cor0
----
-45
23
26

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 13 / 20 BETWEEN + 10 + col0 AND NULL
----

query I rowsort
SELECT DISTINCT - col0 + + 0 - 47 AS col0 FROM tab0 AS cor0
----
-134
-144
-62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4104
SELECT ALL 23 * - + MIN( - - ( + - col0 ) ) * COUNT( * ) DIV + + COUNT( * ) col2 FROM tab0
----
2231

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4104
SELECT ALL 23 * - + MIN ( - - ( + - col0 ) ) * COUNT ( * ) / + + COUNT ( * ) col2 FROM tab0
----
2231

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4105
SELECT ALL * FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND - CAST( 38 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4105
SELECT ALL * FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND - CAST ( 38 AS INTEGER )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4106
SELECT DISTINCT - + COUNT( ALL CAST( - 4 AS SIGNED ) ) FROM tab2 WHERE NOT - col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4106
SELECT DISTINCT - + COUNT ( ALL CAST ( - 4 AS INTEGER ) ) FROM tab2 WHERE NOT - col2 IS NOT NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4107
SELECT ALL + MIN( DISTINCT + - col0 ) - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4107
SELECT ALL + MIN ( DISTINCT + - col0 ) - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4108
SELECT - COUNT( DISTINCT - + col2 ) AS col0, 70 + ( COUNT( * ) ) FROM tab2
----
-3
73

skipif mysql # not compatible
query II rowsort label-4108
SELECT - COUNT ( DISTINCT - + col2 ) AS col0, 70 + ( COUNT ( * ) ) FROM tab2
----
-3
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4109
SELECT DISTINCT ( + CAST( ( - + col0 ) AS SIGNED ) ) AS col2 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-4109
SELECT DISTINCT ( + CAST ( ( - + col0 ) AS INTEGER ) ) AS col2 FROM tab2
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4110
SELECT DISTINCT + 29 * COUNT( * ) * + COUNT( * ) FROM tab1
----
261

skipif mysql # not compatible
query I rowsort label-4110
SELECT DISTINCT + 29 * COUNT ( * ) * + COUNT ( * ) FROM tab1
----
261

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4111
SELECT DISTINCT - COUNT( * ) * - MAX( + CAST( + 63 AS SIGNED ) ) FROM tab0
----
189

skipif mysql # not compatible
query I rowsort label-4111
SELECT DISTINCT - COUNT ( * ) * - MAX ( + CAST ( + 63 AS INTEGER ) ) FROM tab0
----
189

query I rowsort
SELECT ALL - 12 * col2 FROM tab1
----
-1152
-708
-816

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 66 col2, col0 col1 FROM tab0 cor0
----
66
15
66
87
66
97

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NOT col2 < 57 * - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4115
SELECT - ( - + COUNT( * ) ) * + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4115
SELECT - ( - + COUNT ( * ) ) * + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 7 + - col2 col0 FROM tab0 AS cor0 WHERE ( NOT + col2 * - + col1 * + ( - - ( 12 ) ) BETWEEN NULL AND NULL )
----

query I rowsort
SELECT ALL + - col1 FROM tab2 AS cor0 WHERE NULL BETWEEN + col0 AND NULL
----

query II rowsort
SELECT + + col0 AS col1, - col2 FROM tab0 AS cor0
----
15
-47
87
-10
97
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4119
SELECT ALL COUNT( col0 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4119
SELECT ALL COUNT ( col0 ) AS col2 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4120
SELECT - 29 AS col1, CAST( + 71 AS SIGNED ) col1 FROM tab1 AS cor0
----
-29
71
-29
71
-29
71

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4120
SELECT - 29 AS col1, CAST ( + 71 AS INTEGER ) col1 FROM tab1 AS cor0
----
-29
71
-29
71
-29
71

query I rowsort
SELECT - - 66 AS col0 FROM tab0 cor0
----
66
66
66

query I rowsort
SELECT - col0 AS col0 FROM tab0 AS cor0 WHERE NOT ( 88 - - + 57 + - col1 IS NOT NULL )
----

query I rowsort
SELECT ALL - + 17 AS col1 FROM tab0 AS cor0 WHERE NOT - 69 * + col0 IS NULL
----
-17
-17
-17

query I rowsort
SELECT + - col1 * 74 * col2 FROM tab2 AS cor0
----
-227920
-287564
-86802

onlyif mysql # aggregate syntax: 
query I rowsort label-4125
SELECT + 54 - + 82 + + COUNT( * ) AS col0 FROM tab0 WHERE ( + 64 * + 15 * + - col1 IS NOT NULL ) OR + col1 / - ( + col0 ) + 3 * + col2 + - 7 + - col2 <> 32
----
-25

skipif mysql # not compatible
query I rowsort label-4125
SELECT + 54 - + 82 + + COUNT ( * ) AS col0 FROM tab0 WHERE ( + 64 * + 15 * + - col1 IS NOT NULL ) OR + col1 / - ( + col0 ) + 3 * + col2 + - 7 + - col2 <> 32
----
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-4126
SELECT + 79 DIV - 66 AS col2 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4126
SELECT + 79 / - 66 AS col2 FROM tab1
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4127
SELECT 24 * - - MIN( - + col0 ) * + - ( - 30 ) AS col1 FROM tab1
----
-65520

skipif mysql # not compatible
query I rowsort label-4127
SELECT 24 * - - MIN ( - + col0 ) * + - ( - 30 ) AS col1 FROM tab1
----
-65520

onlyif mysql # aggregate syntax: 
query I rowsort label-4128
SELECT ALL ( ( COUNT( * ) ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4128
SELECT ALL ( ( COUNT ( * ) ) ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4129
SELECT DISTINCT COUNT( DISTINCT - 85 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-4129
SELECT DISTINCT COUNT ( DISTINCT - 85 ) FROM tab0
----
1

query III rowsort
SELECT * FROM tab2 WHERE col2 NOT BETWEEN + + 69 + + col0 AND + - ( 3 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT IN ( col1, - 54 )
----

query I rowsort
SELECT col1 * + - col1 - - - 20 AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT 56 + - - col0 FROM tab2 AS cor0
----
102
120
131

query I rowsort
SELECT - col2 + + 57 AS col1 FROM tab0
----
-42
10
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4135
SELECT + ( - + MIN( 42 ) ) * + 31 * - COUNT( * ) FROM tab2
----
3906

skipif mysql # not compatible
query I rowsort label-4135
SELECT + ( - + MIN ( 42 ) ) * + 31 * - COUNT ( * ) FROM tab2
----
3906

onlyif mysql # aggregate syntax: 
query I rowsort label-4136
SELECT DISTINCT COUNT( * ) + 30 FROM tab0
----
33

skipif mysql # not compatible
query I rowsort label-4136
SELECT DISTINCT COUNT ( * ) + 30 FROM tab0
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4137
SELECT ALL - CAST( NULL AS SIGNED ) * - COUNT( * ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4137
SELECT ALL - CAST ( NULL AS INTEGER ) * - COUNT ( * ) FROM tab0 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4138
SELECT ALL + COUNT( * ) + - 50 AS col2 FROM tab2 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-4138
SELECT ALL + COUNT ( * ) + - 50 AS col2 FROM tab2 AS cor0
----
-47

query I rowsort
SELECT 33 AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
33
33
33

query I rowsort
SELECT ALL ( + col0 ) + + + 30 * + col0 FROM tab2 AS cor0
----
1426
1984
2325

query I rowsort
SELECT ALL - 84 + 38 AS col0 FROM tab1 AS cor0
----
-46
-46
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-4142
SELECT ALL 4 * COUNT( * ) - + + 26 FROM tab0 AS cor0
----
-14

skipif mysql # not compatible
query I rowsort label-4142
SELECT ALL 4 * COUNT ( * ) - + + 26 FROM tab0 AS cor0
----
-14

query I rowsort
SELECT 28 - col1 + + 4 AS col0 FROM tab0 AS cor0
----
-49
11
31

query I rowsort
SELECT DISTINCT col1 - - col2 * + 52 FROM tab2
----
1247
2157
3083

onlyif mysql # aggregate syntax: 
query I rowsort label-4145
SELECT ALL + COUNT( * ) FROM tab0 WHERE NOT + - col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4145
SELECT ALL + COUNT ( * ) FROM tab0 WHERE NOT + - col0 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4146
SELECT DISTINCT 51 * + + MIN( 70 ) AS col1 FROM tab0
----
3570

skipif mysql # not compatible
query I rowsort label-4146
SELECT DISTINCT 51 * + + MIN ( 70 ) AS col1 FROM tab0
----
3570

onlyif mysql # aggregate syntax: 
query I rowsort label-4147
SELECT ALL - MIN( ALL - 3 ) FROM tab0 WHERE + 18 BETWEEN + col2 - - - col1 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4147
SELECT ALL - MIN ( ALL - 3 ) FROM tab0 WHERE + 18 BETWEEN + col2 - - - col1 AND NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4148
SELECT ALL + MAX( ( - 86 ) ) * + + COUNT( * ) + + + COUNT( * ) AS col1 FROM tab2
----
-255

skipif mysql # not compatible
query I rowsort label-4148
SELECT ALL + MAX ( ( - 86 ) ) * + + COUNT ( * ) + + + COUNT ( * ) AS col1 FROM tab2
----
-255

query III rowsort
SELECT * FROM tab0 WHERE NOT - - 46 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4150
SELECT * FROM tab1 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4150
SELECT * FROM tab1 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL - col2 col0, col1 * 81 + + col1 + + 27 FROM tab1 AS cor0
----
-59
437
-68
3881
-96
1175

onlyif mysql # aggregate syntax: 
query I rowsort label-4152
SELECT + COUNT( ALL + col2 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4152
SELECT + COUNT ( ALL + col2 ) AS col2 FROM tab1 AS cor0
----
3

query II rowsort
SELECT + 33 * - - col2 AS col1, col2 AS col2 FROM tab0 AS cor0
----
1551
47
3267
99
330
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4154
SELECT DISTINCT - - COUNT( - col0 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4154
SELECT DISTINCT - - COUNT ( - col0 ) AS col2 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4155
SELECT DISTINCT - MIN( DISTINCT - 68 ) * MAX( DISTINCT + col1 ) AS col2 FROM tab0
----
5508

skipif mysql # not compatible
query I rowsort label-4155
SELECT DISTINCT - MIN ( DISTINCT - 68 ) * MAX ( DISTINCT + col1 ) AS col2 FROM tab0
----
5508

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4156
SELECT + col0 FROM tab2 WHERE NOT NULL >= + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-4156
SELECT + col0 FROM tab2 WHERE NOT NULL >= + + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL 67 FROM tab2 WHERE NULL NOT BETWEEN 49 AND + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4158
SELECT + - SUM( + col1 ) col2 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4158
SELECT + - SUM ( + col1 ) col2 FROM tab2 AS cor0
----
-195

query I rowsort
SELECT DISTINCT col1 * 81 + - col0 + 11 - - col2 FROM tab1 AS cor0
----
1190
3795
390

query I rowsort
SELECT col2 * + 98 FROM tab0 AS cor0
----
4606
9702
980

query I rowsort
SELECT DISTINCT + 60 + col1 FROM tab1 AS cor0
----
107
65
74

onlyif mysql # aggregate syntax: 
query I rowsort label-4162
SELECT - ( COUNT( ALL + col0 ) ) * + + 75 AS col0 FROM tab0 AS cor0
----
-225

skipif mysql # not compatible
query I rowsort label-4162
SELECT - ( COUNT ( ALL + col0 ) ) * + + 75 AS col0 FROM tab0 AS cor0
----
-225

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 69 < - ( - 25 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4164
SELECT ALL CAST( - 88 AS SIGNED ) FROM tab0
----
-88
-88
-88

skipif mysql # not compatible
query I rowsort label-4164
SELECT ALL CAST ( - 88 AS INTEGER ) FROM tab0
----
-88
-88
-88

query I rowsort
SELECT DISTINCT + col0 + col0 FROM tab2 WHERE NOT 6 >= ( 78 )
----
128
150
92

query II rowsort
SELECT - col2, + 87 FROM tab2 WHERE ( 90 BETWEEN + 88 * + col1 AND col1 )
----

query I rowsort
SELECT ALL + ( - - col0 ) AS col2 FROM tab1
----
51
85
91

query I rowsort
SELECT ALL col1 + - - ( + col2 ) AS col1 FROM tab0
----
100
128
31

query I rowsort
SELECT 23 + + col0 * col1 AS col1 FROM tab0 cor0
----
120
1238
1850

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 = - 72 + + col2 * col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4171
SELECT DISTINCT - col0 DIV + ( 10 ) FROM tab2
----
-4
-6
-7

skipif mysql # not compatible
query I rowsort label-4171
SELECT DISTINCT - col0 / + ( 10 ) FROM tab2
----
-4
-6
-7

query I rowsort
SELECT 21 * col0 - + col2 AS col0 FROM tab1
----
1726
1843
975

onlyif mysql # DIV for integer division: 
query I rowsort label-4173
SELECT col0 DIV - 21 AS col0 FROM tab1
----
-2
-4
-4

skipif mysql # not compatible
query I rowsort label-4173
SELECT col0 / - 21 AS col0 FROM tab1
----
-2
-4
-4

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4174
SELECT * FROM tab2 WHERE NOT 38 + - CAST( 32 + 0 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4174
SELECT * FROM tab2 WHERE NOT 38 + - CAST ( 32 + 0 AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT 38 - + 27 FROM tab0
----
11
11
11

query I rowsort
SELECT ALL + 72 + - 48 FROM tab1
----
24
24
24

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( - col0 - + col0 * - 0 )
----

query I rowsort
SELECT + col0 - col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-2
-32
77

query I rowsort
SELECT DISTINCT + col1 + ( col0 ) AS col1 FROM tab0
----
108
96
98

query I rowsort
SELECT 18 FROM tab1 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col2 FROM tab0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4182
SELECT DISTINCT - col2 - + CAST( + col1 AS SIGNED ) DIV col0 FROM tab0
----
-10
-52
-99

skipif mysql # not compatible
query I rowsort label-4182
SELECT DISTINCT - col2 - + CAST ( + col1 AS INTEGER ) / col0 FROM tab0
----
-10
-52
-99

query I rowsort
SELECT - col2 * - 70 AS col0 FROM tab2
----
1610
2800
4060

query III rowsort
SELECT ALL * FROM tab2 WHERE - col1 * col2 IS NULL
----

query I rowsort
SELECT ALL 62 + col1 AS col2 FROM tab2
----
113
129
139

query III rowsort
SELECT ALL * FROM tab2 WHERE - col0 / + col0 < NULL
----

query I rowsort
SELECT DISTINCT + 52 FROM tab1 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT 10 * - 49 >= + ( col2 ) * - ( 21 )
----
87
21
10

query I rowsort
SELECT - col1 * 15 AS col1 FROM tab2
----
-1005
-1155
-765

query I rowsort
SELECT ALL - col0 * + 26 FROM tab0
----
-2262
-2522
-390

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( + col0 ) NOT BETWEEN + col0 AND col2
----
15
81
47
97
1
99

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4192
SELECT + 41 + CAST( ( 26 ) AS SIGNED ) DIV col2 col1 FROM tab0
----
41
41
43

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4192
SELECT + 41 + CAST ( ( 26 ) AS INTEGER ) / col2 col1 FROM tab0
----
41
41
43

onlyif mysql # aggregate syntax: 
query I rowsort label-4193
SELECT 73 * - COUNT( * ) col2 FROM tab2
----
-219

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4193
SELECT 73 * - COUNT ( * ) col2 FROM tab2
----
-219

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL IN ( + col0 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN 26 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4196
SELECT DISTINCT SUM( col2 ) AS col0 FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-4196
SELECT DISTINCT SUM ( col2 ) AS col0 FROM tab1
----
223

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT IN ( - col0 * 71 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4198
SELECT DISTINCT - COUNT( * ) - - 19 FROM tab1
----
16

skipif mysql # not compatible
query I rowsort label-4198
SELECT DISTINCT - COUNT ( * ) - - 19 FROM tab1
----
16

query I rowsort
SELECT DISTINCT AVG ( DISTINCT col2 ) * 25 FROM tab1 WHERE NULL NOT IN ( 68 + - col0 * col1 )
----
NULL

query I rowsort
SELECT DISTINCT col2 * - col2 + col0 FROM tab1
----
-3396
-4533
-9165

query I rowsort
SELECT - 64 AS col0 FROM tab1 WHERE NULL IS NULL
----
-64
-64
-64

query I rowsort
SELECT - col1 + + col1 * - col0 FROM tab0
----
-1296
-1848
-98

query I rowsort
SELECT - 73 + - col1 * - 57 AS col0 FROM tab1
----
212
2606
725

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4204
SELECT 83 * 18 + col2 AS col0 FROM tab2 WHERE NOT ( - 26 ) IN ( - col0 + CAST( - col2 AS SIGNED ) * col1 )
----
1517
1534
1552

skipif mysql # not compatible
query I rowsort label-4204
SELECT 83 * 18 + col2 AS col0 FROM tab2 WHERE NOT ( - 26 ) IN ( - col0 + CAST ( - col2 AS INTEGER ) * col1 )
----
1517
1534
1552

onlyif mysql # aggregate syntax: 
query I rowsort label-4205
SELECT - 35 * COUNT( * ) FROM tab0 cor0
----
-105

skipif mysql # not compatible
query I rowsort label-4205
SELECT - 35 * COUNT ( * ) FROM tab0 cor0
----
-105

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4206
SELECT ALL - COUNT( * ) * - CAST( NULL AS DECIMAL ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4206
SELECT ALL - COUNT ( * ) * - CAST ( NULL AS REAL ) FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4207
SELECT DISTINCT - col2 DIV 1 FROM tab0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-4207
SELECT DISTINCT - col2 / 1 FROM tab0
----
-10
-47
-99

query I rowsort
SELECT DISTINCT col0 / + col0 FROM tab2 WHERE col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4209
SELECT ALL COUNT( * ) AS col1 FROM tab2 WHERE - col1 <> ( col1 + col0 )
----
3

skipif mysql # not compatible
query I rowsort label-4209
SELECT ALL COUNT ( * ) AS col1 FROM tab2 WHERE - col1 <> ( col1 + col0 )
----
3

query I rowsort
SELECT ALL 82 * col2 + 87 * + 98 FROM tab1
----
13364
14102
16398

onlyif mysql # DIV for integer division: 
query I rowsort label-4211
SELECT DISTINCT col0 + 16 DIV 61 FROM tab0 cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-4211
SELECT DISTINCT col0 + 16 / 61 FROM tab0 cor0
----
15
87
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col1 FROM tab1 AS cor0 WHERE ( col2 * + col2 ) >= ( + col1 )
----
-51
-85
-91

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN col0 * col1 AND ( + col2 * col1 + - ( - col1 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4214
SELECT DISTINCT + + col2 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4214
SELECT DISTINCT + + col2 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + 3 + 66 * + col2 AS col1 FROM tab2 AS cor0
----
1521
2643
3831

query I rowsort
SELECT ALL - 87 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL <> - 58 + 34
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4218
SELECT COUNT( DISTINCT - 99 ) * 89 FROM tab1 AS cor0
----
89

skipif mysql # not compatible
query I rowsort label-4218
SELECT COUNT ( DISTINCT - 99 ) * 89 FROM tab1 AS cor0
----
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4219
SELECT DISTINCT 62 + COUNT( * ) DIV 82 AS col2 FROM tab1 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-4219
SELECT DISTINCT 62 + COUNT ( * ) / 82 AS col2 FROM tab1 AS cor0
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-4220
SELECT 47 * COUNT( * ) FROM tab0 AS cor0 WHERE NULL < + 67
----
0

skipif mysql # not compatible
query I rowsort label-4220
SELECT 47 * COUNT ( * ) FROM tab0 AS cor0 WHERE NULL < + 67
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 BETWEEN 13 AND - col2 * + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 65 * - col1 * - 33 col0 FROM tab1
----
100815
10725
30030

query I rowsort
SELECT col2 * - 34 FROM tab2
----
-1360
-1972
-782

query III rowsort
SELECT * FROM tab0 WHERE col1 * 3 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4225
SELECT - COUNT( * ) + 0 AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-4225
SELECT - COUNT ( * ) + 0 AS col2 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4226
SELECT DISTINCT - - COUNT( DISTINCT + + col2 ) col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4226
SELECT DISTINCT - - COUNT ( DISTINCT + + col2 ) col0 FROM tab1 AS cor0
----
3

query I rowsort
SELECT + col0 + - 30 + col1 FROM tab1 AS cor0
----
108
35
60

query I rowsort
SELECT DISTINCT col0 + + 30 FROM tab2 AS cor0
----
105
76
94

query I rowsort
SELECT - + 39 + + + col1 AS col0 FROM tab1 AS cor0
----
-25
-34
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4230
SELECT ALL - 40 + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-37

skipif mysql # not compatible
query I rowsort label-4230
SELECT ALL - 40 + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-37

query I rowsort
SELECT ALL 22 AS col0 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4232
SELECT DISTINCT CAST( NULL AS SIGNED ) + + col0 col2 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4232
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + col0 col2 FROM tab1
----
NULL

query I rowsort
SELECT + 99 AS col2 FROM tab2 WHERE ( NULL ) IS NOT NULL
----

query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( 87 ) IN ( 8 * 23 )
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query III rowsort
SELECT * FROM tab1 WHERE ( NULL > col0 + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4236
SELECT DISTINCT col2, - 42 - col2 * CAST( col2 + - col0 AS SIGNED ) AS col2 FROM tab0
----
10
728
47
-1546
99
-240

skipif mysql # not compatible
query II rowsort label-4236
SELECT DISTINCT col2, - 42 - col2 * CAST ( col2 + - col0 AS INTEGER ) AS col2 FROM tab0
----
10
728
47
-1546
99
-240

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 91 * + + 57 * - 58 + + ( - 39 ) NOT IN ( + col1 / 90 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 BETWEEN ( 42 * - col2 ) AND 21
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL + col0, - ( - col1 ) AS col1 FROM tab2 AS cor0
----
46
51
64
77
75
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4240
SELECT - 57 DIV - ( + COUNT( * ) ) + 55 AS col1 FROM tab2 cor0
----
74

skipif mysql # not compatible
query I rowsort label-4240
SELECT - 57 / - ( + COUNT ( * ) ) + 55 AS col1 FROM tab2 cor0
----
74

query I rowsort
SELECT ( - - col2 ) * + 89 + col2 FROM tab0 AS cor0
----
4230
8910
900

query II rowsort
SELECT ALL 65 AS col1, 10 + - - col0 AS col1 FROM tab0 AS cor0
----
65
107
65
25
65
97

query I rowsort
SELECT - col2 * + col0 * - 68 FROM tab1 AS cor0
----
332928
341020
420784

query I rowsort
SELECT - col0 FROM tab2 AS cor0 WHERE NOT NULL IN ( + col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT ( NULL ) BETWEEN col1 AND - col2
----

query I rowsort
SELECT col1 AS col1 FROM tab2 AS cor0 WHERE NOT + col1 * - col0 * + col1 >= - col0
----
51
67
77

query II rowsort
SELECT col1, - col1 FROM tab0 AS cor0
----
1
-1
21
-21
81
-81

onlyif mysql # DIV for integer division: 
query II rowsort label-4248
SELECT + col1, - 51 - - 23 - 42 * + col0 DIV col0 FROM tab1 AS cor0
----
14
-70
47
-70
5
-70

skipif mysql # not compatible
query II rowsort label-4248
SELECT + col1, - 51 - - 23 - 42 * + col0 / col0 FROM tab1 AS cor0
----
14
-70
47
-70
5
-70

query I rowsort
SELECT ALL 69 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + 1 FROM tab2 WHERE + + col0 * - - 99 + 7 * ( col0 ) IS NULL
----

query I rowsort
SELECT - ( + 43 ) AS col2 FROM tab2
----
-43
-43
-43

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 = + col2 - - 29 * - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4253
SELECT ALL - COUNT( * ) + - - SUM( DISTINCT - + col2 ) FROM tab1 AS cor0
----
-226

skipif mysql # not compatible
query I rowsort label-4253
SELECT ALL - COUNT ( * ) + - - SUM ( DISTINCT - + col2 ) FROM tab1 AS cor0
----
-226

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( + 76 + - col2 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4255
SELECT DISTINCT + - CAST( - + 48 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-4255
SELECT DISTINCT + - CAST ( - + 48 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
48

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) <= - 93
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4257
SELECT - CAST( - MIN( + + col1 ) AS SIGNED ) + + + COUNT( ALL col0 ) + + 76 FROM tab0 cor0
----
80

skipif mysql # not compatible
query I rowsort label-4257
SELECT - CAST ( - MIN ( + + col1 ) AS INTEGER ) + + + COUNT ( ALL col0 ) + + 76 FROM tab0 cor0
----
80

query I rowsort
SELECT 75 + - ( - col2 ) AS col0 FROM tab1 AS cor0
----
134
143
171

onlyif mysql # aggregate syntax: 
query I rowsort label-4259
SELECT - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4259
SELECT - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-3

query I rowsort
SELECT ALL + 12 + - + col0 + col1 * col1 AS col1 FROM tab2 AS cor0
----
2567
4426
5877

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - + col0 * - col0 > NULL AND NOT - 72 * + col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + ( + - col0 ) - ( ( + col1 ) ) FROM tab0
----
-108
-96
-98

query I rowsort
SELECT + 0 AS col0 FROM tab1 WHERE ( NOT - col2 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4264
SELECT COUNT( * ) + + MIN( ALL - col2 ) AS col2 FROM tab2
----
-55

skipif mysql # not compatible
query I rowsort label-4264
SELECT COUNT ( * ) + + MIN ( ALL - col2 ) AS col2 FROM tab2
----
-55

query I rowsort
SELECT ALL + 94 FROM tab2 WHERE NOT NULL BETWEEN ( 86 + - 60 ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4266
SELECT ( COUNT( * ) ) + - 82 - COUNT( ALL - + col0 ) AS col2 FROM tab0
----
-82

skipif mysql # not compatible
query I rowsort label-4266
SELECT ( COUNT ( * ) ) + - 82 - COUNT ( ALL - + col0 ) AS col2 FROM tab0
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4267
SELECT * FROM tab1 WHERE col2 BETWEEN - CAST( + + col0 AS SIGNED ) * + col0 AND NULL
----

skipif mysql # not compatible
query III rowsort label-4267
SELECT * FROM tab1 WHERE col2 BETWEEN - CAST ( + + col0 AS INTEGER ) * + col0 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 * + col0 col0, col1 + 54 col0 FROM tab1
----
-425
59
-4277
101
-714
68

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 NOT BETWEEN ( NULL ) AND 26 * + - ( - - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col2 - - + ( - ( 47 ) ) AS col1 FROM tab2 AS cor0
----
-24
-7
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4271
SELECT ALL - SUM( col2 ) + + 91 col0 FROM tab1
----
-132

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4271
SELECT ALL - SUM ( col2 ) + + 91 col0 FROM tab1
----
-132

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab0 WHERE + - col1 * 95 + - col1 BETWEEN NULL AND 57
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4273
SELECT ALL COUNT( + 44 ) + - - 5 * - 30 * - + 55 - 80 * COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
7539

skipif mysql # not compatible
query I rowsort label-4273
SELECT ALL COUNT ( + 44 ) + - - 5 * - 30 * - + 55 - 80 * COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
7539

query II rowsort
SELECT col1 * col2 AS col0, + col0 AS col2 FROM tab2 AS cor0
----
1173
46
3080
64
3886
75

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + 51 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4276
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( ( + col0 + - 57 + + - 68 * - col2 * col0 + 80 * CAST( NULL AS DECIMAL ) ) BETWEEN col1 AND ( NULL ) )
----

skipif mysql # not compatible
query III rowsort label-4276
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( ( + col0 + - 57 + + - 68 * - col2 * col0 + 80 * CAST ( NULL AS REAL ) ) BETWEEN col1 AND ( NULL ) )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col2 * - + col0 <= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4278
SELECT - ( + MIN( ALL - CAST( NULL AS SIGNED ) ) ) col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4278
SELECT - ( + MIN ( ALL - CAST ( NULL AS INTEGER ) ) ) col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4279
SELECT DISTINCT + ( CAST( 91 AS SIGNED ) ) FROM tab2
----
91

skipif mysql # not compatible
query I rowsort label-4279
SELECT DISTINCT + ( CAST ( 91 AS INTEGER ) ) FROM tab2
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4280
SELECT ALL + CAST( NULL AS SIGNED ) col0, 56 FROM tab1
----
NULL
56
NULL
56
NULL
56

skipif mysql # not compatible
query II rowsort label-4280
SELECT ALL + CAST ( NULL AS INTEGER ) col0, 56 FROM tab1
----
NULL
56
NULL
56
NULL
56

onlyif mysql # DIV for integer division: 
query I rowsort label-4281
SELECT - 69 DIV + - 6 AS col2 FROM tab2
----
11
11
11

skipif mysql # not compatible
query I rowsort label-4281
SELECT - 69 / + - 6 AS col2 FROM tab2
----
11
11
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4282
SELECT SUM( + 40 ) FROM tab2
----
120

skipif mysql # not compatible
query I rowsort label-4282
SELECT SUM ( + 40 ) FROM tab2
----
120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4283
SELECT DISTINCT + CAST( + - COUNT( * ) AS SIGNED ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-4283
SELECT DISTINCT + CAST ( + - COUNT ( * ) AS INTEGER ) FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4284
SELECT DISTINCT - - COUNT( * ) * + MAX( + col0 ) AS col1 FROM tab2 AS cor0
----
225

skipif mysql # not compatible
query I rowsort label-4284
SELECT DISTINCT - - COUNT ( * ) * + MAX ( + col0 ) AS col1 FROM tab2 AS cor0
----
225

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col0 / 52 > - + 92
----

query I rowsort
SELECT col1 * - + 54 FROM tab2 AS cor0
----
-2754
-3618
-4158

query I rowsort
SELECT ALL - - 40 + col2 AS col0 FROM tab1 AS cor0
----
108
136
99

query I rowsort
SELECT ALL + col0 * + col1 + - - col1 FROM tab0 AS cor0
----
1296
1848
98

query II rowsort
SELECT ALL + col1 + + col2, - 50 AS col0 FROM tab2 AS cor0
----
117
-50
125
-50
74
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-4290
SELECT DISTINCT + MAX( + col0 ) * - + COUNT( * ) AS col0 FROM tab2 cor0
----
-225

skipif mysql # not compatible
query I rowsort label-4290
SELECT DISTINCT + MAX ( + col0 ) * - + COUNT ( * ) AS col0 FROM tab2 cor0
----
-225

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4291
SELECT DISTINCT - col2 * + ( - - CAST( - col1 AS SIGNED ) ) + - 68 FROM tab1 AS cor0
----
1276
227
3128

skipif mysql # not compatible
query I rowsort label-4291
SELECT DISTINCT - col2 * + ( - - CAST ( - col1 AS INTEGER ) ) + - 68 FROM tab1 AS cor0
----
1276
227
3128

query I rowsort
SELECT + - 83 AS col2 FROM tab2 cor0
----
-83
-83
-83

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4293
SELECT + - CAST( + 68 AS SIGNED ) * + col0 * col1 + 20 DIV col1 + + - ( col1 ) FROM tab1 AS cor0
----
-28901
-290883
-48565

skipif mysql # not compatible
query I rowsort label-4293
SELECT + - CAST ( + 68 AS INTEGER ) * + col0 * col1 + 20 / col1 + + - ( col1 ) FROM tab1 AS cor0
----
-28901
-290883
-48565

query I rowsort
SELECT ALL - + col2 + + + 58 FROM tab0 AS cor0
----
-41
11
48

onlyif mysql # aggregate syntax: 
query II rowsort label-4295
SELECT ALL + + SUM( ALL - + col1 ) AS col1, 2 AS col2 FROM tab1 AS cor0
----
-66
2

skipif mysql # not compatible
query II rowsort label-4295
SELECT ALL + + SUM ( ALL - + col1 ) AS col1, 2 AS col2 FROM tab1 AS cor0
----
-66
2

query I rowsort
SELECT + 7 * - 64 FROM tab2
----
-448
-448
-448

onlyif mysql # aggregate syntax: 
query I rowsort label-4297
SELECT DISTINCT + 32 - COUNT( * ) AS col1 FROM tab0
----
29

skipif mysql # not compatible
query I rowsort label-4297
SELECT DISTINCT + 32 - COUNT ( * ) AS col1 FROM tab0
----
29

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - col2 ) IS NULL AND - ( - + 76 ) * col2 * + col1 + + 27 * - - col1 - col2 <> + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4299
SELECT DISTINCT + ( + - CAST( NULL AS SIGNED ) ) * col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4299
SELECT DISTINCT + ( + - CAST ( NULL AS INTEGER ) ) * col1 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4300
SELECT DISTINCT + CAST( 66 AS SIGNED ) + + col2 FROM tab2 cor0
----
106
124
89

skipif mysql # not compatible
query I rowsort label-4300
SELECT DISTINCT + CAST ( 66 AS INTEGER ) + + col2 FROM tab2 cor0
----
106
124
89

query I rowsort
SELECT - col2 * - col0 + ( + - col1 ) + + 79 * + 20 * - col1 AS col2 FROM tab2 AS cor0
----
-101577
-119177
-79573

onlyif mysql # aggregate syntax: 
query I rowsort label-4302
SELECT ALL - MAX( + 51 ) * + 97 AS col0 FROM tab2
----
-4947

skipif mysql # not compatible
query I rowsort label-4302
SELECT ALL - MAX ( + 51 ) * + 97 AS col0 FROM tab2
----
-4947

query I rowsort
SELECT ALL 70 FROM tab0 WHERE - 2 / + + 39 + - col1 + + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4304
SELECT ALL CAST( 23 AS SIGNED ) col1 FROM tab2
----
23
23
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4304
SELECT ALL CAST ( 23 AS INTEGER ) col1 FROM tab2
----
23
23
23

query II rowsort
SELECT ALL col0, + ( col2 ) + + col1 * col1 AS col0 FROM tab1 AS cor0
----
51
292
85
84
91
2277

query I rowsort
SELECT col0 AS col2 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4307
SELECT DISTINCT + - col0 AS col1, - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) - ( - col2 ) AS col0 FROM tab2 AS cor0
----
-46
NULL
-64
NULL
-75
NULL

skipif mysql # not compatible
query II rowsort label-4307
SELECT DISTINCT + - col0 AS col1, - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) - ( - col2 ) AS col0 FROM tab2 AS cor0
----
-46
NULL
-64
NULL
-75
NULL

query I rowsort
SELECT ALL - ( + 50 ) AS col2 FROM tab2 AS cor0
----
-50
-50
-50

query II rowsort
SELECT DISTINCT - col0 AS col0, - ( - col0 ) FROM tab1 AS cor0
----
-51
51
-85
85
-91
91

query I rowsort
SELECT - col1 FROM tab2 WHERE NOT - + 83 > - - ( + + col1 )
----
-51
-67
-77

onlyif mysql # DIV for integer division: 
query II rowsort label-4311
SELECT col1 DIV + col1 AS col0, - col0 FROM tab0
----
1
-15
1
-87
1
-97

skipif mysql # not compatible
query II rowsort label-4311
SELECT col1 / + col1 AS col0, - col0 FROM tab0
----
1
-15
1
-87
1
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col0 FROM tab2 WHERE NOT 25 - - col1 * - 82 BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col2 ) + - col2 + - 68 col0 FROM tab0
----
-68
-68
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-4314
SELECT COUNT( col0 ) + 96 FROM tab2
----
99

skipif mysql # not compatible
query I rowsort label-4314
SELECT COUNT ( col0 ) + 96 FROM tab2
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4315
SELECT DISTINCT - SUM( DISTINCT + col0 ) FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-4315
SELECT DISTINCT - SUM ( DISTINCT + col0 ) FROM tab0
----
-199

onlyif mysql # DIV for integer division: 
query I rowsort label-4316
SELECT ALL + 83 DIV col0 + col1 AS col2 FROM tab2 cor0
----
52
68
78

skipif mysql # not compatible
query I rowsort label-4316
SELECT ALL + 83 / col0 + col1 AS col2 FROM tab2 cor0
----
52
68
78

onlyif mysql # aggregate syntax: 
query I rowsort label-4317
SELECT DISTINCT - 11 + + COUNT( * ) FROM tab1 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-4317
SELECT DISTINCT - 11 + + COUNT ( * ) FROM tab1 AS cor0
----
-8

query I rowsort
SELECT DISTINCT col0 + - 59 - - - 88 * 78 AS col2 FROM tab2
----
-6848
-6859
-6877

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE ( NULL IS NULL )
----
1
21
81

query I rowsort
SELECT ALL + 82 AS col1 FROM tab0 AS cor0 WHERE col0 * + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4321
SELECT - - col2 * - CAST( NULL AS SIGNED ) + + - col1 + - col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4321
SELECT - - col2 * - CAST ( NULL AS INTEGER ) + + - col1 + - col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 85 + + - col2 FROM tab2 cor0
----
27
45
62

query II rowsort
SELECT DISTINCT + - 9 + - 49 + - 78, 37 AS col2 FROM tab2 AS cor0
----
-136
37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
14
47
5

query I rowsort
SELECT DISTINCT + 57 + + - col2 - - col2 FROM tab1 cor0
----
57

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL <= 23
----

query I rowsort
SELECT ALL col0 - + - col0 + col0 AS col2 FROM tab0
----
261
291
45

query II rowsort
SELECT col1 + 63, ( - col2 ) * + col1 * + col0 AS col0 FROM tab0
----
144
-57105
64
-9603
84
-18270

onlyif mysql # aggregate syntax: 
query I rowsort label-4329
SELECT COUNT( * ) * + - 73 FROM tab0
----
-219

skipif mysql # not compatible
query I rowsort label-4329
SELECT COUNT ( * ) * + - 73 FROM tab0
----
-219

onlyif mysql # aggregate syntax: 
query I rowsort label-4330
SELECT COUNT( DISTINCT col0 ) * - 10 AS col0 FROM tab1
----
-30

skipif mysql # not compatible
query I rowsort label-4330
SELECT COUNT ( DISTINCT col0 ) * - 10 AS col0 FROM tab1
----
-30

query I rowsort
SELECT ALL col2 + - col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
0
0
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 <> - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4333
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( + 57, - CAST( NULL AS SIGNED ) * + - ( - col2 ) )
----

skipif mysql # not compatible
query III rowsort label-4333
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( + 57, - CAST ( NULL AS INTEGER ) * + - ( - col2 ) )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4334
SELECT DISTINCT col0 * + + CAST( NULL AS DECIMAL ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4334
SELECT DISTINCT col0 * + + CAST ( NULL AS REAL ) AS col2 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4335
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-4335
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 87 col2 FROM tab0
----
87

onlyif mysql # aggregate syntax: 
query II rowsort label-4337
SELECT + COUNT( * ) AS col2, + 90 col0 FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----
0
90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4337
SELECT + COUNT ( * ) AS col2, + 90 col0 FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----
0
90

query I rowsort
SELECT ALL - 13 AS col1 FROM tab1 AS cor0 WHERE NOT - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4339
SELECT - - SUM( - 46 ) FROM tab2 cor0
----
-138

skipif mysql # not compatible
query I rowsort label-4339
SELECT - - SUM ( - 46 ) FROM tab2 cor0
----
-138

query II rowsort
SELECT col0, 99 FROM tab0 AS cor0
----
15
99
87
99
97
99

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <= col1 / + 43
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4342
SELECT col2 AS col2, CAST( NULL AS SIGNED ) / + + 57 AS col2 FROM tab0 AS cor0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-4342
SELECT col2 AS col2, CAST ( NULL AS INTEGER ) / + + 57 AS col2 FROM tab0 AS cor0
----
10
NULL
47
NULL
99
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4343
SELECT DISTINCT + COUNT( * ) * 65 FROM tab0
----
195

skipif mysql # not compatible
query I rowsort label-4343
SELECT DISTINCT + COUNT ( * ) * 65 FROM tab0
----
195

query I rowsort
SELECT ALL 75 + + col0 AS col0 FROM tab2
----
121
139
150

query III rowsort
SELECT * FROM tab1 WHERE NOT - - col0 * + 40 - col1 NOT BETWEEN + + col2 AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + + col1 IN ( + + col1, col0 )
----

query I rowsort
SELECT ALL - - 95 AS col0 FROM tab1 WHERE - col2 IS NULL
----

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab1 AS cor0 WHERE + ( - 29 ) IS NULL
----

query I rowsort
SELECT + + col2 FROM tab1 cor0 WHERE ( NULL ) IS NULL
----
59
68
96

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL <= 38
----

query I rowsort
SELECT ALL 8 + + col1 AS col0 FROM tab2 AS cor0
----
59
75
85

onlyif mysql # DIV for integer division: 
query I rowsort label-4352
SELECT + col1 + - - col1 DIV 82 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-4352
SELECT + col1 + - - col1 / 82 FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT - col1 + - col1 + col2 + col2 FROM tab1 AS cor0
----
108
164
42

onlyif mysql # aggregate syntax: 
query II rowsort label-4354
SELECT + SUM( - 50 ) + - 97, - COUNT( * ) AS col0 FROM tab2
----
-247
-3

skipif mysql # not compatible
query II rowsort label-4354
SELECT + SUM ( - 50 ) + - 97, - COUNT ( * ) AS col0 FROM tab2
----
-247
-3

query I rowsort
SELECT ALL + + col1 * - col1 + + - col0 AS col2 FROM tab2 WHERE NOT - + 81 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4356
SELECT DISTINCT - MAX( DISTINCT col1 ) * - COUNT( * ) * COUNT( * ) + + 21 * + 61 FROM tab1 WHERE NOT + + 32 <= - 43 * + 26 / + ( + + col1 )
----
1704

skipif mysql # not compatible
query I rowsort label-4356
SELECT DISTINCT - MAX ( DISTINCT col1 ) * - COUNT ( * ) * COUNT ( * ) + + 21 * + 61 FROM tab1 WHERE NOT + + 32 <= - 43 * + 26 / + ( + + col1 )
----
1704

onlyif mysql # aggregate syntax: 
query II rowsort label-4357
SELECT DISTINCT COUNT( * ) + - COUNT( * ) AS col0, - 7 AS col2 FROM tab2 AS cor0
----
0
-7

skipif mysql # not compatible
query II rowsort label-4357
SELECT DISTINCT COUNT ( * ) + - COUNT ( * ) AS col0, - 7 AS col2 FROM tab2 AS cor0
----
0
-7

query I rowsort
SELECT ALL - col0 + - col0 + 79 AS col2 FROM tab1 AS cor0
----
-103
-23
-91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4359
SELECT ALL + CAST( 59 AS SIGNED ) + - + 77, + 11 col0 FROM tab1 AS cor0
----
-18
11
-18
11
-18
11

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4359
SELECT ALL + CAST ( 59 AS INTEGER ) + - + 77, + 11 col0 FROM tab1 AS cor0
----
-18
11
-18
11
-18
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4360
SELECT DISTINCT - MAX( - + col1 ) + + 9 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-4360
SELECT DISTINCT - MAX ( - + col1 ) + + 9 FROM tab0 AS cor0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4361
SELECT SUM( ALL 59 ) FROM tab0 AS cor0
----
177

skipif mysql # not compatible
query I rowsort label-4361
SELECT SUM ( ALL 59 ) FROM tab0 AS cor0
----
177

query I rowsort
SELECT DISTINCT + col2 * + col2 + 18 AS col1 FROM tab2 AS cor0
----
1618
3382
547

onlyif mysql # aggregate syntax: 
query I rowsort label-4363
SELECT COUNT( * ) - - 71 AS col2 FROM tab1 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-4363
SELECT COUNT ( * ) - - 71 AS col2 FROM tab1 AS cor0
----
74

query I rowsort
SELECT - col1 - - - col2 + - col2 FROM tab2 AS cor0
----
-157
-183
-97

query I rowsort
SELECT ALL + + col1 - - 10 AS col1 FROM tab1 AS cor0
----
15
24
57

onlyif mysql # aggregate syntax: 
query I rowsort label-4366
SELECT + 72 - - MIN( ALL 71 ) FROM tab0 AS cor0
----
143

skipif mysql # not compatible
query I rowsort label-4366
SELECT + 72 - - MIN ( ALL 71 ) FROM tab0 AS cor0
----
143

query I rowsort
SELECT col1 - + - col1 AS col0 FROM tab2 AS cor0
----
102
134
154

query I rowsort
SELECT col2 - + ( col0 ) * + 16 AS col0 FROM tab1
----
-1301
-1388
-720

query III rowsort
SELECT * FROM tab2 WHERE NOT + 63 + col2 + col0 NOT IN ( - col1, col0, - - col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col0 < + 77
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4371
SELECT DISTINCT - 40 * - COUNT( * ) FROM tab1 WHERE NULL NOT BETWEEN NULL AND - - col0
----
0

skipif mysql # not compatible
query I rowsort label-4371
SELECT DISTINCT - 40 * - COUNT ( * ) FROM tab1 WHERE NULL NOT BETWEEN NULL AND - - col0
----
0

query I rowsort
SELECT DISTINCT + + 45 FROM tab2 cor0 CROSS JOIN tab0 cor1
----
45

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 * - - col0 < NULL
----

query I rowsort
SELECT ALL - 67 * - 24 AS col2 FROM tab1 AS cor0
----
1608
1608
1608

query I rowsort
SELECT ALL - col2 * + + 25 * + col1 FROM tab0 cor0
----
-2475
-5250
-95175

query III rowsort
SELECT * FROM tab1 WHERE NOT 75 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4377
SELECT MIN( col2 ) + + COUNT( - - col2 ) FROM tab1
----
62

skipif mysql # not compatible
query I rowsort label-4377
SELECT MIN ( col2 ) + + COUNT ( - - col2 ) FROM tab1
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4378
SELECT DISTINCT CAST( NULL AS SIGNED ) * - + col0 AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4378
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - + col0 AS col1 FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + 63 col2 FROM tab0
----
150
160
78

query I rowsort
SELECT col2 + + 26 AS col0 FROM tab0
----
125
36
73

query I rowsort
SELECT - col2 * - + 14 * + col0 + - col0 AS col2 FROM tab1
----
68493
70125
86541

onlyif mysql # aggregate syntax: 
query II rowsort label-4382
SELECT DISTINCT + 2 AS col1, + COUNT( * ) FROM tab0
----
2
3

skipif mysql # not compatible
query II rowsort label-4382
SELECT DISTINCT + 2 AS col1, + COUNT ( * ) FROM tab0
----
2
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + col0 - - col2 + 82 col1 FROM tab2
----
174
226
273

onlyif mysql # aggregate syntax: 
query I rowsort label-4384
SELECT DISTINCT + MIN( - 2 ) + - ( - + 47 ) FROM tab2 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-4384
SELECT DISTINCT + MIN ( - 2 ) + - ( - + 47 ) FROM tab2 AS cor0
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4385
SELECT * FROM tab1 AS cor0 WHERE col0 BETWEEN - col0 + - col1 AND ( - - col1 * - CAST( - 87 AS SIGNED ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4385
SELECT * FROM tab1 AS cor0 WHERE col0 BETWEEN - col0 + - col1 AND ( - - col1 * - CAST ( - 87 AS INTEGER ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL ( + + col1 ) AS col0 FROM tab0
----
1
21
81

query I rowsort
SELECT ALL col0 - + + 76 AS col1 FROM tab0
----
-61
11
21

query I rowsort
SELECT ALL - 33 AS col0 FROM ( tab1 cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 8035c665a75d22be5922be1a4e574e03

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 + - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 71 + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4391
SELECT DISTINCT - + CAST( 12 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-4391
SELECT DISTINCT - + CAST ( 12 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-4392
SELECT COUNT( 6 ) AS col2 FROM tab1 AS cor0 WHERE 80 + col1 / - - col1 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4392
SELECT COUNT ( 6 ) AS col2 FROM tab1 AS cor0 WHERE 80 + col1 / - - col1 IS NOT NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4393
SELECT - - 67 FROM tab2 AS cor0 WHERE + col2 * CAST( NULL AS SIGNED ) / + + 63 BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-4393
SELECT - - 67 FROM tab2 AS cor0 WHERE + col2 * CAST ( NULL AS INTEGER ) / + + 63 BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - - col2 * + + ( col1 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4395
SELECT + MAX( DISTINCT - col1 ) FROM tab1 WHERE NOT + + 27 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4395
SELECT + MAX ( DISTINCT - col1 ) FROM tab1 WHERE NOT + + 27 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4396
SELECT ALL - - SUM( 38 ) FROM tab1 WHERE - col1 IS NOT NULL
----
114

skipif mysql # not compatible
query I rowsort label-4396
SELECT ALL - - SUM ( 38 ) FROM tab1 WHERE - col1 IS NOT NULL
----
114

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 75 col1 FROM tab0
----
-75
-75
-75

query I rowsort
SELECT DISTINCT - 16 AS col2 FROM tab2
----
-16

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4399
SELECT CAST( NULL AS SIGNED ) * - col0 AS col1, col0 + + col1 + + col0 FROM tab0
----
NULL
111
NULL
195
NULL
195

skipif mysql # not compatible
query II rowsort label-4399
SELECT CAST ( NULL AS INTEGER ) * - col0 AS col1, col0 + + col1 + + col0 FROM tab0
----
NULL
111
NULL
195
NULL
195

query II rowsort
SELECT + col2 * - + col2 AS col1, col1 FROM tab1
----
-3481
5
-4624
47
-9216
14

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + ( - ( - col1 ) ) + - 71 = ( NULL ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4402
SELECT DISTINCT + - COUNT( * ) FROM tab0 AS cor0 WHERE + CAST( - 30 AS SIGNED ) IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4402
SELECT DISTINCT + - COUNT ( * ) FROM tab0 AS cor0 WHERE + CAST ( - 30 AS INTEGER ) IS NOT NULL
----
-3

query I rowsort
SELECT - col0 * - 69 * - col0 * - col2 FROM tab2 AS cor0
----
11304960
22511250
3358092

onlyif mysql # aggregate syntax: 
query I rowsort label-4404
SELECT DISTINCT + + COUNT( * ) + 73 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
82

skipif mysql # not compatible
query I rowsort label-4404
SELECT DISTINCT + + COUNT ( * ) + 73 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4405
SELECT ALL COUNT( * ) * 64 AS col2 FROM tab0
----
192

skipif mysql # not compatible
query I rowsort label-4405
SELECT ALL COUNT ( * ) * 64 AS col2 FROM tab0
----
192

query III rowsort
SELECT * FROM tab0 WHERE NOT + 94 * - col0 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL IN ( 20, - col2 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col0 * - col2 * 28 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4409
SELECT DISTINCT - COUNT( ALL col1 ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4409
SELECT DISTINCT - COUNT ( ALL col1 ) AS col0 FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4410
SELECT col1 * - CAST( + 76 AS SIGNED ) col1 FROM tab0 AS cor0
----
-1596
-6156
-76

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4410
SELECT col1 * - CAST ( + 76 AS INTEGER ) col1 FROM tab0 AS cor0
----
-1596
-6156
-76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2, + col0 col2 FROM tab2 AS cor0
----
23
46
40
64
58
75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4412
SELECT ALL CAST( NULL AS SIGNED ) col2, - col1 FROM tab2 AS cor0
----
NULL
-51
NULL
-67
NULL
-77

skipif mysql # not compatible
query II rowsort label-4412
SELECT ALL CAST ( NULL AS INTEGER ) col2, - col1 FROM tab2 AS cor0
----
NULL
-51
NULL
-67
NULL
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 62 ) col0 FROM tab2 AS cor0
----
62
62
62

query I rowsort
SELECT + col2 * + + 75 AS col0 FROM tab1 cor0
----
4425
5100
7200

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE col1 * + col0 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4416
SELECT ALL + 26 * - + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-4416
SELECT ALL + 26 * - + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-4417
SELECT ALL COUNT( + 99 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4417
SELECT ALL COUNT ( + 99 ) AS col1 FROM tab1
----
3

query I rowsort
SELECT ALL - 89 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 924a74d31360fa4301c953b423a4710e

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4419
SELECT - col0 / + col1 * + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4419
SELECT - col0 / + col1 * + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 67 NOT BETWEEN + ( 19 ) * - col2 AND + ( - 11 ) * col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4421
SELECT + col2 DIV - 2 FROM tab2
----
-11
-20
-29

skipif mysql # not compatible
query I rowsort label-4421
SELECT + col2 / - 2 FROM tab2
----
-11
-20
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4422
SELECT DISTINCT CAST( + col1 AS SIGNED ) + - col1 AS col1 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-4422
SELECT DISTINCT CAST ( + col1 AS INTEGER ) + - col1 AS col1 FROM tab2 cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4423
SELECT * FROM tab2 AS cor0 WHERE NULL IN ( - col0 - + CAST( NULL AS SIGNED ) * - 12, - col0, - + col2 )
----

skipif mysql # not compatible
query III rowsort label-4423
SELECT * FROM tab2 AS cor0 WHERE NULL IN ( - col0 - + CAST ( NULL AS INTEGER ) * - 12, - col0, - + col2 )
----

query I rowsort
SELECT - + 50 + + 40 AS col1 FROM tab0 AS cor0
----
-10
-10
-10

query I rowsort
SELECT ALL + - 20 * - 60 + - + col1 FROM tab0 AS cor0
----
1119
1179
1199

query I rowsort
SELECT - + col0 * - + 84 + - col1 * + - col2 * - 8 * 58 AS col1 FROM tab0 WHERE NULL IS NULL
----
-1765188
-37788
-90132

query II rowsort
SELECT ALL ( + ( - col0 ) ) - - - col0 + + + col1 AS col1, + ( col2 ) FROM tab2 WHERE NOT NULL NOT BETWEEN col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4428
SELECT - 56 AS col2, COUNT( * ) - + MAX( DISTINCT 70 ) AS col1 FROM tab1 AS cor0
----
-56
-67

skipif mysql # not compatible
query II rowsort label-4428
SELECT - 56 AS col2, COUNT ( * ) - + MAX ( DISTINCT 70 ) AS col1 FROM tab1 AS cor0
----
-56
-67

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL = 63
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4430
SELECT 35 - + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4430
SELECT 35 - + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 * ( - 37 ) AS col1 FROM tab2 AS cor0
----
-1702
-2368
-2775

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4432
SELECT - - CAST( 84 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
84
84
84

skipif mysql # not compatible
query I rowsort label-4432
SELECT - - CAST ( 84 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
84
84
84

query I rowsort
SELECT - 39 AS col2 FROM tab2 cor0
----
-39
-39
-39

query I rowsort
SELECT col0 * col2 * col0 * col0 - - 11 AS col2 FROM tab0 AS cor0
----
158636
6585041
90354638

query I rowsort
SELECT col2 FROM tab1 WHERE NOT + 87 <= - 45
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4436
SELECT DISTINCT CAST( + col2 AS SIGNED ) AS col2 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-4436
SELECT DISTINCT CAST ( + col2 AS INTEGER ) AS col2 FROM tab1
----
59
68
96

onlyif mysql # DIV for integer division: 
query I rowsort label-4437
SELECT DISTINCT + 53 DIV ( col0 ) FROM tab2
----
0
1

skipif mysql # not compatible
query I rowsort label-4437
SELECT DISTINCT + 53 / ( col0 ) FROM tab2
----
0
1

query II rowsort
SELECT - col1 AS col0, + col1 AS col2 FROM tab2 AS cor0
----
-51
51
-67
67
-77
77

query I rowsort
SELECT - col0 * 6 AS col2 FROM tab2 AS cor0
----
-276
-384
-450

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col1 + 88 + col2 * - 38 NOT IN ( + col1, - col0, - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE NOT - 61 > - col0 * - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + 37 col0 FROM tab0 AS cor0
----
-50
-60
22

query I rowsort
SELECT + - 14 AS col0 FROM tab1 AS cor0
----
-14
-14
-14

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - ( + 71 ) = 96
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 2 AS col0 FROM tab0 AS cor0 WHERE NOT 27 BETWEEN + col1 AND NULL
----
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - 15 col1 FROM tab2
----
31
49
60

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + 76 * - + 37 ) = ( - 79 ) * + 64
----

query I rowsort
SELECT - col0 + + - col2 + - ( 11 ) * col2 FROM tab1
----
-1203
-793
-907

onlyif mysql # DIV for integer division: 
query I rowsort label-4449
SELECT + col1 DIV col0 * col2 AS col1 FROM tab0
----
0
0
235

skipif mysql # not compatible
query I rowsort label-4449
SELECT + col1 / col0 * col2 AS col1 FROM tab0
----
0
0
235

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4450
SELECT - CAST( NULL AS SIGNED ) col1 FROM tab1 AS cor0 WHERE 91 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4450
SELECT - CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0 WHERE 91 IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 8 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
8

query II rowsort
SELECT - col1, - 90 AS col0 FROM tab0 AS cor0
----
-1
-90
-21
-90
-81
-90

onlyif mysql # aggregate syntax: 
query II rowsort label-4453
SELECT + 84 AS col1, + COUNT( ALL - + col2 ) AS col0 FROM tab2 AS cor0
----
84
3

skipif mysql # not compatible
query II rowsort label-4453
SELECT + 84 AS col1, + COUNT ( ALL - + col2 ) AS col0 FROM tab2 AS cor0
----
84
3

query I rowsort
SELECT 55 - - + ( - + col0 ) AS col0 FROM tab2
----
-20
-9
9

onlyif mysql # aggregate syntax: 
query II rowsort label-4455
SELECT ( - - COUNT( 3 ) ) + 28 AS col0, 22 FROM tab0
----
31
22

skipif mysql # not compatible
query II rowsort label-4455
SELECT ( - - COUNT ( 3 ) ) + 28 AS col0, 22 FROM tab0
----
31
22

onlyif mysql # DIV for integer division: 
query I rowsort label-4456
SELECT col1 DIV 33 FROM tab2
----
1
2
2

skipif mysql # not compatible
query I rowsort label-4456
SELECT col1 / 33 FROM tab2
----
1
2
2

query I rowsort
SELECT ALL - col0 * - ( - - col2 ) - + ( col0 ) AS col0 FROM tab2 AS cor0
----
1012
2496
4275

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col1 + + - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4459
SELECT DISTINCT MAX( ALL + + col2 ) FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-4459
SELECT DISTINCT MAX ( ALL + + col2 ) FROM tab2 AS cor0
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-4460
SELECT - - col1 DIV + col0 + + col2 FROM tab0 AS cor0
----
10
52
99

skipif mysql # not compatible
query I rowsort label-4460
SELECT - - col1 / + col0 + + col2 FROM tab0 AS cor0
----
10
52
99

query I rowsort
SELECT DISTINCT - col2 * + + 45 FROM tab1 AS cor0
----
-2655
-3060
-4320

onlyif mysql # aggregate syntax: 
query I rowsort label-4462
SELECT - 23 * + COUNT( * ) * - COUNT( * ) AS col1 FROM tab1
----
207

skipif mysql # not compatible
query I rowsort label-4462
SELECT - 23 * + COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab1
----
207

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - + 44 > - - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4464
SELECT ( - CAST( NULL AS DECIMAL ) ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4464
SELECT ( - CAST ( NULL AS REAL ) ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4465
SELECT col0 * + col0 + 52 * 14 DIV col2 * + - col2 FROM tab2
----
1403
3376
4929

skipif mysql # not compatible
query I rowsort label-4465
SELECT col0 * + col0 + 52 * 14 / col2 * + - col2 FROM tab2
----
1403
3376
4929

onlyif mysql # aggregate syntax: 
query I rowsort label-4466
SELECT ALL + + SUM( + col0 ) + + 28 FROM tab1 WHERE + col2 + - col1 * + col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4466
SELECT ALL + + SUM ( + col0 ) + + 28 FROM tab1 WHERE + col2 + - col1 * + col2 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4467
SELECT DISTINCT + ( - COUNT( * ) ) AS col1 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4467
SELECT DISTINCT + ( - COUNT ( * ) ) AS col1 FROM tab1 cor0
----
-3

query I rowsort
SELECT DISTINCT - - 77 * + col0 / col2 + col1 AS col0 FROM tab0 AS cor0 WHERE col0 IS NULL
----

query II rowsort
SELECT - col0, 50 + - - 88 * - - col1 AS col2 FROM tab0 AS cor0
----
-15
7178
-87
1898
-97
138

query I rowsort
SELECT ALL col0 + - + col1 + - col1 FROM tab2 AS cor0
----
-56
-59
-90

query I rowsort
SELECT DISTINCT + - col1 * + + 22 + - col2 FROM tab0 AS cor0
----
-121
-1829
-472

query II rowsort
SELECT ALL + col0 * col2 + 10 + - col1, col2 FROM tab2 AS cor0
----
1017
23
2493
40
4293
58

onlyif mysql # aggregate syntax: 
query II rowsort label-4473
SELECT 48 AS col1, - 61 + - COUNT( * ) AS col1 FROM tab2 AS cor0
----
48
-64

skipif mysql # not compatible
query II rowsort label-4473
SELECT 48 AS col1, - 61 + - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
48
-64

query I rowsort
SELECT ALL 73 - + - ( 22 ) FROM tab1 AS cor0
----
95
95
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4475
SELECT + ( + COUNT( * ) ) DIV COUNT( * ) DIV - SUM( + 19 ) AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4475
SELECT + ( + COUNT ( * ) ) / COUNT ( * ) / - SUM ( + 19 ) AS col0 FROM tab0 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT BETWEEN + 2 AND - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + 80 ) col1 FROM tab2
----
-80
-80
-80

query I rowsort
SELECT - + 47 * - + col1 + col0 AS col1 FROM tab1 AS cor0
----
2300
320
709

query I rowsort
SELECT + 14 + ( - col0 ) AS col1 FROM tab1 AS cor0
----
-37
-71
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4480
SELECT DISTINCT - col1 - + col0 + CAST( 79 AS SIGNED ) * + - ( 99 ) FROM tab1 AS cor0
----
-7886
-7911
-7959

skipif mysql # not compatible
query I rowsort label-4480
SELECT DISTINCT - col1 - + col0 + CAST ( 79 AS INTEGER ) * + - ( 99 ) FROM tab1 AS cor0
----
-7886
-7911
-7959

query IIIIII rowsort
SELECT ALL * FROM tab0 cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4482
SELECT ALL - 61 * + MIN( - 45 ) FROM tab2
----
2745

skipif mysql # not compatible
query I rowsort label-4482
SELECT ALL - 61 * + MIN ( - 45 ) FROM tab2
----
2745

query I rowsort
SELECT 97 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 58 col0, + col1 col0 FROM tab0 AS cor0
----
58
1
58
21
58
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4485
SELECT + + MIN( ALL + 12 ) col1 FROM tab0 AS cor0
----
12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4485
SELECT + + MIN ( ALL + 12 ) col1 FROM tab0 AS cor0
----
12

query I rowsort
SELECT + 54 * + col2 - - col0 FROM tab2 AS cor0
----
1288
2224
3207

onlyif mysql # DIV for integer division: 
query I rowsort label-4487
SELECT + + col1 DIV + + 94 AS col0 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4487
SELECT + + col1 / + + 94 AS col0 FROM tab2 cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4488
SELECT DISTINCT - - col2 * + col0 * col2 AS col0, - 70 + + CAST( NULL AS SIGNED ) col1 FROM tab2 AS cor0
----
102400
NULL
24334
NULL
252300
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4488
SELECT DISTINCT - - col2 * + col0 * col2 AS col0, - 70 + + CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0
----
102400
NULL
24334
NULL
252300
NULL

query I rowsort
SELECT ALL - - ( - - col1 ) * 58 AS col0 FROM tab0 AS cor0
----
1218
4698
58

query II rowsort
SELECT - col1 * + 42 col2, col0 AS col1 FROM tab1
----
-1974
91
-210
85
-588
51

query I rowsort
SELECT ALL + col1 * + col1 / + 57 FROM tab1 WHERE NULL BETWEEN NULL AND col0
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + + col2 + col0 + 59 / - col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 20 * + - ( + - 58 ) FROM tab1
----
1160

query I rowsort
SELECT DISTINCT - 76 * - 5 FROM tab0
----
380

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4495
SELECT ALL + 65 * - CAST( - 47 AS SIGNED ) FROM tab1
----
3055
3055
3055

skipif mysql # not compatible
query I rowsort label-4495
SELECT ALL + 65 * - CAST ( - 47 AS INTEGER ) FROM tab1
----
3055
3055
3055

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4496
SELECT DISTINCT col1 + + CAST( NULL AS SIGNED ) + col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4496
SELECT DISTINCT col1 + + CAST ( NULL AS INTEGER ) + col1 FROM tab1
----
NULL

query I rowsort
SELECT 59 + - ( col1 ) FROM tab1
----
12
45
54

query I rowsort
SELECT DISTINCT - + 33 * - 45 + - - 14 AS col0 FROM tab2 AS cor0
----
1499

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4499
SELECT + - CAST( 51 AS SIGNED ) + + CAST( 24 AS SIGNED ) + COUNT( * ) FROM tab2 AS cor0 WHERE NOT col2 * col1 <> + + 38
----
-27

skipif mysql # not compatible
query I rowsort label-4499
SELECT + - CAST ( 51 AS INTEGER ) + + CAST ( 24 AS INTEGER ) + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT col2 * col1 <> + + 38
----
-27

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 * col0 BETWEEN - - col2 AND 24 + - col1
----

query II rowsort
SELECT - col1 AS col2, + col0 AS col0 FROM tab2
----
-51
46
-67
75
-77
64

onlyif mysql # aggregate syntax: 
query I rowsort label-4502
SELECT - COUNT( * ) * + COUNT( + + 13 ) * + 29 FROM tab2
----
-261

skipif mysql # not compatible
query I rowsort label-4502
SELECT - COUNT ( * ) * + COUNT ( + + 13 ) * + 29 FROM tab2
----
-261

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4503
SELECT DISTINCT * FROM tab1 WHERE NOT + CAST( + 5 AS SIGNED ) < + - ( col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4503
SELECT DISTINCT * FROM tab1 WHERE NOT + CAST ( + 5 AS INTEGER ) < + - ( col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4504
SELECT ALL - + MAX( - - 34 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-34

skipif mysql # not compatible
query I rowsort label-4504
SELECT ALL - + MAX ( - - 34 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-34

query I rowsort
SELECT col1 * col2 + + 49 - 15 AS col0 FROM tab2 AS cor0
----
1207
3114
3920

onlyif mysql # aggregate syntax: 
query I rowsort label-4506
SELECT DISTINCT + COUNT( * ) + - 4 col2 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4506
SELECT DISTINCT + COUNT ( * ) + - 4 col2 FROM tab1 AS cor0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4507
SELECT + col1 DIV - col0 + + 75 col2 FROM tab2 AS cor0
----
74
74
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4507
SELECT + col1 / - col0 + + 75 col2 FROM tab2 AS cor0
----
74
74
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4508
SELECT ALL + + COUNT( * ) + + + 33 FROM tab1 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-4508
SELECT ALL + + COUNT ( * ) + + + 33 FROM tab1 AS cor0
----
36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + - col1 - + 60 col1 FROM tab0
----
-501
-61
-6621

onlyif mysql # DIV for integer division: 
query I rowsort label-4510
SELECT DISTINCT + col2 DIV + col1 - + ( - + col1 ) AS col1 FROM tab0
----
100
21
81

skipif mysql # not compatible
query I rowsort label-4510
SELECT DISTINCT + col2 / + col1 - + ( - + col1 ) AS col1 FROM tab0
----
100
21
81

query III rowsort
SELECT * FROM tab2 WHERE - - col0 * + - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4512
SELECT 17 * MAX( ALL - - col2 ) AS col1 FROM tab0
----
1683

skipif mysql # not compatible
query I rowsort label-4512
SELECT 17 * MAX ( ALL - - col2 ) AS col1 FROM tab0
----
1683

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col1 < - + 96
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4514
SELECT col0 DIV - CAST( col0 AS SIGNED ) FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4514
SELECT col0 / - CAST ( col0 AS INTEGER ) FROM tab2
----
-1
-1
-1

query I rowsort
SELECT + ( + - 75 ) FROM tab1 AS cor0 WHERE ( NULL ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4516
SELECT DISTINCT MAX( ALL - + col2 ) FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-4516
SELECT DISTINCT MAX ( ALL - + col2 ) FROM tab2
----
-23

query I rowsort
SELECT ( - + 0 ) * + - col2 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4518
SELECT + 33 DIV - col0 * 64 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4518
SELECT + 33 / - col0 * 64 AS col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4519
SELECT + col2 * + 25 * + 75 * + 38 * - + col1 DIV + col1 AS col2 FROM tab1 cor0
----
-4203750
-4845000
-6840000

skipif mysql # not compatible
query I rowsort label-4519
SELECT + col2 * + 25 * + 75 * + 38 * - + col1 / + col1 AS col2 FROM tab1 cor0
----
-4203750
-4845000
-6840000

query I rowsort
SELECT ( + + col1 ) * 48 FROM tab1
----
2256
240
672

onlyif mysql # aggregate syntax: 
query II rowsort label-4521
SELECT 57 AS col1, 57 * COUNT( * ) FROM tab1
----
57
171

skipif mysql # not compatible
query II rowsort label-4521
SELECT 57 AS col1, 57 * COUNT ( * ) FROM tab1
----
57
171

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4522
SELECT 41 * CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4522
SELECT 41 * CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT ALL - 39, - col2 AS col2 FROM tab1
----
-39
-59
-39
-68
-39
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4524
SELECT ALL 31 + COUNT( * ) FROM tab2
----
34

skipif mysql # not compatible
query I rowsort label-4524
SELECT ALL 31 + COUNT ( * ) FROM tab2
----
34

query I rowsort
SELECT ALL + col1 + - 59 AS col1 FROM tab2
----
-8
18
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4526
SELECT ALL - + MIN( DISTINCT 5 ) AS col0 FROM tab2 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-4526
SELECT ALL - + MIN ( DISTINCT 5 ) AS col0 FROM tab2 AS cor0
----
-5

query I rowsort
SELECT ( + - col1 ) AS col0 FROM tab1 cor0
----
-14
-47
-5

query I rowsort
SELECT - - col1 + + + col0 FROM tab0 AS cor0
----
108
96
98

query I rowsort
SELECT + 28 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

query I rowsort
SELECT DISTINCT + - 27 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-27

query I rowsort
SELECT ( + 88 ) AS col1 FROM tab2 AS cor0
----
88
88
88

query II rowsort
SELECT DISTINCT + col0 + - + col0, col1 AS col0 FROM tab1 AS cor0
----
0
14
0
47
0
5

query II rowsort
SELECT ALL col2 - - col1 AS col2, + col1 * - - col0 AS col0 FROM tab0 AS cor0
----
100
97
128
1215
31
1827

onlyif mysql # aggregate syntax: 
query I rowsort label-4534
SELECT ALL + SUM( ALL + + col0 ) col2 FROM tab2 cor0 WHERE NOT col2 + ( + col1 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4534
SELECT ALL + SUM ( ALL + + col0 ) col2 FROM tab2 cor0 WHERE NOT col2 + ( + col1 ) IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4535
SELECT ALL - COUNT( * ) col2 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - col2 AND - 23 * col1 / + + col2 + col1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4535
SELECT ALL - COUNT ( * ) col2 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - col2 AND - 23 * col1 / + + col2 + col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4536
SELECT - col1 - col1 + + col2 + - CAST( NULL AS SIGNED ) + + col2 + - col0 * + 29, + ( 5 ) AS col2 FROM tab0 AS cor0
----
NULL
5
NULL
5
NULL
5

skipif mysql # not compatible
query II rowsort label-4536
SELECT - col1 - col1 + + col2 + - CAST ( NULL AS INTEGER ) + + col2 + - col0 * + 29, + ( 5 ) AS col2 FROM tab0 AS cor0
----
NULL
5
NULL
5
NULL
5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4537
SELECT 29 / - col2 - - CAST( NULL AS SIGNED ), + col0 AS col1 FROM tab1
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-4537
SELECT 29 / - col2 - - CAST ( NULL AS INTEGER ), + col0 AS col1 FROM tab1
----
NULL
51
NULL
85
NULL
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4538
SELECT DISTINCT - 14 * - COUNT( * ) FROM tab1
----
42

skipif mysql # not compatible
query I rowsort label-4538
SELECT DISTINCT - 14 * - COUNT ( * ) FROM tab1
----
42

query I rowsort
SELECT + 60 * + col0 AS col2 FROM tab2 AS cor0
----
2760
3840
4500

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT ( col1 ) <> + 67
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4541
SELECT + SUM( - 67 ) FROM tab1 AS cor0
----
-201

skipif mysql # not compatible
query I rowsort label-4541
SELECT + SUM ( - 67 ) FROM tab1 AS cor0
----
-201

query II rowsort
SELECT ALL - col0 col0, - col1 FROM tab0
----
-15
-81
-87
-21
-97
-1

query I rowsort
SELECT - col1 * - - col2 * 71 FROM tab0 AS cor0
----
-14910
-270297
-7029

query I rowsort
SELECT ALL + ( col1 ) * - - 79 * 16 - + + col0 FROM tab1
----
17645
59317
6235

query I rowsort
SELECT col1 + + + col1 * - 55 FROM tab2
----
-2754
-3618
-4158

query I rowsort
SELECT col1 * + 54 + + + 63 FROM tab1
----
2601
333
819

onlyif mysql # aggregate syntax: 
query I rowsort label-4547
SELECT ALL - ( + MAX( DISTINCT col1 ) ) FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-4547
SELECT ALL - ( + MAX ( DISTINCT col1 ) ) FROM tab2
----
-77

query II rowsort
SELECT DISTINCT ( col1 ) col0, col2 AS col1 FROM tab2
----
51
23
67
58
77
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4549
SELECT ALL MIN( + - 44 ) AS col2 FROM tab1
----
-44

skipif mysql # not compatible
query I rowsort label-4549
SELECT ALL MIN ( + - 44 ) AS col2 FROM tab1
----
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4550
SELECT CAST( - ( - 55 ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
55
55
55

skipif mysql # not compatible
query I rowsort label-4550
SELECT CAST ( - ( - 55 ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
55
55
55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 32 + - col0 + - - col1 col0 FROM tab2 AS cor0
----
24
37
45

query I rowsort
SELECT DISTINCT col2 + - + col1 + + col1 + + ( - + col1 ) AS col1 FROM tab1 AS cor0
----
21
54
82

onlyif mysql # DIV for integer division: 
query I rowsort label-4553
SELECT + 10 + - col2 DIV col2 AS col0 FROM tab1 AS cor0
----
9
9
9

skipif mysql # not compatible
query I rowsort label-4553
SELECT + 10 + - col2 / col2 AS col0 FROM tab1 AS cor0
----
9
9
9

query I rowsort
SELECT - col1 + - col1 * + 69 FROM tab2 cor0
----
-3570
-4690
-5390

query I rowsort
SELECT DISTINCT ( - 24 ) + + 34 FROM tab2 AS cor0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4556
SELECT DISTINCT MIN( ALL 71 ) + - 25 AS col2 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-4556
SELECT DISTINCT MIN ( ALL 71 ) + - 25 AS col2 FROM tab2 AS cor0
----
46

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 - + - ( + col0 ) - + + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 33 * - - col0 AS col2 FROM tab2
----
1518
2112
2475

onlyif mysql # aggregate syntax: 
query I rowsort label-4559
SELECT + MIN( DISTINCT + col1 ) AS col0 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-4559
SELECT + MIN ( DISTINCT + col1 ) AS col0 FROM tab1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4560
SELECT + MIN( DISTINCT - 90 ) FROM tab2
----
-90

skipif mysql # not compatible
query I rowsort label-4560
SELECT + MIN ( DISTINCT - 90 ) FROM tab2
----
-90

query III rowsort
SELECT * FROM tab0 WHERE NOT + + col0 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4562
SELECT DISTINCT ( 55 ) * COUNT( * ) + SUM( ALL + col1 ) FROM tab0
----
268

skipif mysql # not compatible
query I rowsort label-4562
SELECT DISTINCT ( 55 ) * COUNT ( * ) + SUM ( ALL + col1 ) FROM tab0
----
268

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - 8 col1 FROM tab0
----
-120
-696
-776

query I rowsort
SELECT - 45 * col1 * - col1 FROM tab0
----
19845
295245
45

query I rowsort
SELECT DISTINCT col2 FROM tab0 WHERE NOT - - col1 IS NULL
----
10
47
99

query I rowsort
SELECT + 94 * - 10 AS col0 FROM tab1
----
-940
-940
-940

onlyif mysql # DIV for integer division: 
query I rowsort label-4567
SELECT ALL 33 DIV - 46 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4567
SELECT ALL 33 / - 46 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4568
SELECT - CAST( + - COUNT( * ) AS SIGNED ) * - + ( ( 35 ) ) AS col2 FROM tab1 AS cor0
----
-105

skipif mysql # not compatible
query I rowsort label-4568
SELECT - CAST ( + - COUNT ( * ) AS INTEGER ) * - + ( ( 35 ) ) AS col2 FROM tab1 AS cor0
----
-105

onlyif mysql # aggregate syntax: 
query I rowsort label-4569
SELECT DISTINCT + ( - MAX( ALL + col2 ) ) AS col2 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-4569
SELECT DISTINCT + ( - MAX ( ALL + col2 ) ) AS col2 FROM tab1 AS cor0
----
-96

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IN ( + col2 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 + col1 - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4572
SELECT COUNT( * ) FROM ( tab0 AS cor0 CROSS JOIN tab0 cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-4572
SELECT COUNT ( * ) FROM ( tab0 AS cor0 CROSS JOIN tab0 cor1 )
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + 93 ) col0 FROM tab1
----
93

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4574
SELECT * FROM tab2 AS cor0 WHERE NOT - 93 BETWEEN + col1 AND + col2 * - CAST( col1 AS DECIMAL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4574
SELECT * FROM tab2 AS cor0 WHERE NOT - 93 BETWEEN + col1 AND + col2 * - CAST ( col1 AS REAL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4575
SELECT ALL + ( SUM( DISTINCT + col0 ) ) AS col2 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-4575
SELECT ALL + ( SUM ( DISTINCT + col0 ) ) AS col2 FROM tab1 AS cor0
----
227

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) <= 20
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4577
SELECT COUNT( * ) DIV - MIN( 25 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4577
SELECT COUNT ( * ) / - MIN ( 25 ) FROM tab2 AS cor0
----
0

query III rowsort
SELECT * FROM tab2 cor0 WHERE - col1 IS NULL OR NOT NULL IS NULL
----

query II rowsort
SELECT ALL - col2 AS col1, 59 AS col1 FROM tab2
----
-23
59
-40
59
-58
59

query I rowsort
SELECT - + col1 AS col0 FROM tab2 WHERE NOT NULL > NULL
----

query II rowsort
SELECT + 77 AS col0, col0 + - col2 * + - col2 + + col0 AS col0 FROM tab2
----
77
1728
77
3514
77
621

query II rowsort
SELECT + col2 * - col0 AS col0, - 58 FROM tab1
----
-4896
-58
-5015
-58
-6188
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-4583
SELECT 99 AS col2, + COUNT( * ) FROM tab0
----
99
3

skipif mysql # not compatible
query II rowsort label-4583
SELECT 99 AS col2, + COUNT ( * ) FROM tab0
----
99
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4584
SELECT ( - SUM( - col0 ) ) * + COUNT( * ) AS col2 FROM tab1
----
681

skipif mysql # not compatible
query I rowsort label-4584
SELECT ( - SUM ( - col0 ) ) * + COUNT ( * ) AS col2 FROM tab1
----
681

onlyif mysql # aggregate syntax: 
query I rowsort label-4585
SELECT MIN( - ( + 72 ) ) AS col0 FROM tab2
----
-72

skipif mysql # not compatible
query I rowsort label-4585
SELECT MIN ( - ( + 72 ) ) AS col0 FROM tab2
----
-72

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + - col1 * - + col1 < + col0
----
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4587
SELECT ALL - 50 + + MAX( - col1 ) AS col0 FROM tab1 AS cor0
----
-55

skipif mysql # not compatible
query I rowsort label-4587
SELECT ALL - 50 + + MAX ( - col1 ) AS col0 FROM tab1 AS cor0
----
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-4588
SELECT + col0 DIV - + col1 + + col0 AS col2 FROM tab0 AS cor0
----
0
15
83

skipif mysql # not compatible
query I rowsort label-4588
SELECT + col0 / - + col1 + + col0 AS col2 FROM tab0 AS cor0
----
0
15
83

query II rowsort
SELECT DISTINCT - col1, - 20 AS col2 FROM tab1 AS cor0
----
-14
-20
-47
-20
-5
-20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - + col1 col0 FROM tab2
----
-2601
-4489
-5929

onlyif mysql # aggregate syntax: 
query I rowsort label-4591
SELECT DISTINCT - SUM( DISTINCT + 17 ) AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-17

skipif mysql # not compatible
query I rowsort label-4591
SELECT DISTINCT - SUM ( DISTINCT + 17 ) AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-17

query I rowsort
SELECT ALL + ( col1 ) * + 84 AS col2 FROM tab1
----
1176
3948
420

query III rowsort
SELECT * FROM tab1 WHERE NULL >= + 11 / - 26 / - col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4594
SELECT ALL 83 * COUNT( * ) AS col0, - 88 FROM tab2 cor0
----
249
-88

skipif mysql # not compatible
query II rowsort label-4594
SELECT ALL 83 * COUNT ( * ) AS col0, - 88 FROM tab2 cor0
----
249
-88

query I rowsort
SELECT DISTINCT + - col2 - col2 - - col0 + 87 AS col2 FROM tab0 AS cor0
----
-14
154
8

query I rowsort
SELECT + - 50 * + 82 - + + col2 + col1 FROM tab1 AS cor0
----
-4121
-4154
-4182

onlyif mysql # aggregate syntax: 
query I rowsort label-4597
SELECT + COUNT( * ) * COUNT( * ) FROM tab1 AS cor0 WHERE NULL < NULL
----
0

skipif mysql # not compatible
query I rowsort label-4597
SELECT + COUNT ( * ) * COUNT ( * ) FROM tab1 AS cor0 WHERE NULL < NULL
----
0

query I rowsort
SELECT - col1 - + - col2 FROM tab2 AS cor0
----
-28
-37
-9

query I rowsort
SELECT ( - ( - 96 ) ) FROM tab2
----
96
96
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1, - col2 * - 99 col0 FROM tab1
----
-14
9504
-47
6732
-5
5841

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + - 36 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4602
SELECT - col1 DIV col0 + + + 5 * - col2 AS col2 FROM tab2 AS cor0
----
-116
-201
-290

skipif mysql # not compatible
query I rowsort label-4602
SELECT - col1 / col0 + + + 5 * - col2 AS col2 FROM tab2 AS cor0
----
-116
-201
-290

query II rowsort
SELECT ALL + col0 AS col0, col0 AS col1 FROM tab2 AS cor0
----
46
46
64
64
75
75

query I rowsort
SELECT - ( 44 ) FROM tab0
----
-44
-44
-44

query I rowsort
SELECT DISTINCT ( 94 ) + + col1 FROM tab2
----
145
161
171

query I rowsort
SELECT ALL - 57 + ( + col2 ) * + col0 FROM tab1 WHERE ( + col2 * + col0 + col2 ) <= + col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 53 <= ( NULL )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL BETWEEN NULL AND 44
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4609
SELECT DISTINCT MAX( DISTINCT + col2 ) AS col2 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-4609
SELECT DISTINCT MAX ( DISTINCT + col2 ) AS col2 FROM tab0
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4610
SELECT DISTINCT - 29 + - COUNT( * ) AS col1 FROM tab0 WHERE NOT ( - CAST( - 77 AS SIGNED ) ) NOT BETWEEN NULL AND NULL
----
-29

skipif mysql # not compatible
query I rowsort label-4610
SELECT DISTINCT - 29 + - COUNT ( * ) AS col1 FROM tab0 WHERE NOT ( - CAST ( - 77 AS INTEGER ) ) NOT BETWEEN NULL AND NULL
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-4611
SELECT COUNT( * ) FROM tab0 WHERE NOT - ( 9 ) <> ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-4611
SELECT COUNT ( * ) FROM tab0 WHERE NOT - ( 9 ) <> ( NULL )
----
0

query III rowsort
SELECT * FROM tab1 WHERE 65 >= 93 + 13 * col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4613
SELECT ALL + COUNT( DISTINCT col0 ) * - 15 FROM tab1
----
-45

skipif mysql # not compatible
query I rowsort label-4613
SELECT ALL + COUNT ( DISTINCT col0 ) * - 15 FROM tab1
----
-45

query I rowsort
SELECT DISTINCT + 98 * - 11 FROM tab1
----
-1078

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4615
SELECT ALL 49 * CAST( + col1 AS SIGNED ) FROM tab1
----
2303
245
686

skipif mysql # not compatible
query I rowsort label-4615
SELECT ALL 49 * CAST ( + col1 AS INTEGER ) FROM tab1
----
2303
245
686

query I rowsort
SELECT ( - col1 ) FROM tab1 WHERE ( 75 / col0 ) NOT IN ( - col2 + - col0 )
----
-14
-47
-5

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col2 + ( - col2 ) > ( NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE ( + 58 ) NOT IN ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col2 FROM tab1 WHERE NULL BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) IN ( col1 * - ( - col2 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4621
SELECT + ( - SUM( col0 ) ) * COUNT( DISTINCT col2 ) FROM tab2
----
-555

skipif mysql # not compatible
query I rowsort label-4621
SELECT + ( - SUM ( col0 ) ) * COUNT ( DISTINCT col2 ) FROM tab2
----
-555

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - col0 * 41 col0 FROM tab0
----
-3546
-3976
-534

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( 51 / 4 - + col1 / - col1 ) <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 32 * + 59 col2 FROM tab1
----
1888
1888
1888

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NULL ) = col0 + 61
----

query I rowsort
SELECT ALL + col0 + + col1 / col1 FROM tab1 WHERE NULL < ( + 41 )
----

query I rowsort
SELECT 43 AS col1 FROM tab1 WHERE NOT NULL <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4628
SELECT - CAST( - 37 AS SIGNED ) * 68 AS col2 FROM tab2 WHERE ( + col0 ) <= col1
----
2516
2516

skipif mysql # not compatible
query I rowsort label-4628
SELECT - CAST ( - 37 AS INTEGER ) * 68 AS col2 FROM tab2 WHERE ( + col0 ) <= col1
----
2516
2516

query I rowsort
SELECT ALL + col1 FROM tab0 WHERE NOT col1 * 76 + 49 BETWEEN col0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4630
SELECT + 5 * - CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND ( + col0 * 28 )
----

skipif mysql # not compatible
query I rowsort label-4630
SELECT + 5 * - CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND ( + col0 * 28 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4631
SELECT ALL - 75 DIV + col0 FROM tab0 WHERE NOT 82 IN ( col2 + - 37 )
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-4631
SELECT ALL - 75 / + col0 FROM tab0 WHERE NOT 82 IN ( col2 + - 37 )
----
-5
0
0

query I rowsort
SELECT DISTINCT col1 FROM tab2 cor0 WHERE col1 * + 25 IS NOT NULL
----
51
67
77

query I rowsort
SELECT DISTINCT col2 * col2 + - col0 AS col2 FROM tab2 AS cor0
----
1536
3289
483

query I rowsort
SELECT ALL + 88 FROM tab0 AS cor0 WHERE - 33 * - col1 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4635
SELECT DISTINCT COUNT( * ) + + MAX( DISTINCT 10 + 30 DIV + col0 ) FROM tab1 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-4635
SELECT DISTINCT COUNT ( * ) + + MAX ( DISTINCT 10 + 30 / + col0 ) FROM tab1 AS cor0
----
13

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 35 / ( col0 * 8 ) - - 58 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 IN ( - col0 + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE col2 * - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 0 + col2 FROM tab0
----
10
47
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4640
SELECT + 81 * - CAST( 87 * + MIN( ALL - col1 ) AS SIGNED ) + + 17 * COUNT( * ) FROM tab1
----
331260

skipif mysql # not compatible
query I rowsort label-4640
SELECT + 81 * - CAST ( 87 * + MIN ( ALL - col1 ) AS INTEGER ) + + 17 * COUNT ( * ) FROM tab1
----
331260

onlyif mysql # aggregate syntax: 
query I rowsort label-4641
SELECT COUNT( * ) * - 19 + + COUNT( * ) AS col2 FROM tab2 cor0
----
-54

skipif mysql # not compatible
query I rowsort label-4641
SELECT COUNT ( * ) * - 19 + + COUNT ( * ) AS col2 FROM tab2 cor0
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-4642
SELECT ALL - ( + COUNT( * ) ) AS col1 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4642
SELECT ALL - ( + COUNT ( * ) ) AS col1 FROM tab2 cor0
----
-3

query I rowsort
SELECT DISTINCT - 60 * + 12 AS col0 FROM tab1 AS cor0
----
-720

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT 35 * + ( + 74 ) BETWEEN ( col2 ) AND NULL
----

query I rowsort
SELECT ALL col1 * - - 33 FROM tab1
----
1551
165
462

onlyif mysql # aggregate syntax: 
query I rowsort label-4646
SELECT DISTINCT COUNT( * ) FROM tab1 WHERE - ( - col2 ) IN ( - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-4646
SELECT DISTINCT COUNT ( * ) FROM tab1 WHERE - ( - col2 ) IN ( - col0 )
----
0

query I rowsort
SELECT ALL 92 * + 5 AS col2 FROM tab1
----
460
460
460

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4648
SELECT AVG ( DISTINCT + - CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4648
SELECT AVG ( DISTINCT + - CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL <> - col2
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4650
SELECT SUM( DISTINCT + col1 ) * + CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4650
SELECT SUM ( DISTINCT + col1 ) * + CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + AVG ( ALL - 37 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND ( NULL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4652
SELECT ALL col0 / ( - ( - CAST( NULL AS SIGNED ) ) ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4652
SELECT ALL col0 / ( - ( - CAST ( NULL AS INTEGER ) ) ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4653
SELECT ALL + col2 DIV - col2 FROM tab2 WHERE + 40 < col2
----
-1

skipif mysql # not compatible
query I rowsort label-4653
SELECT ALL + col2 / - col2 FROM tab2 WHERE + 40 < col2
----
-1

query I rowsort
SELECT 78 + + col1 * - col2 FROM tab1
----
-1266
-217
-3118

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - + 22 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + - 13 IS NOT NULL
----

query I rowsort
SELECT ALL - col0 FROM tab1 WHERE NULL IN ( 58 )
----

query II rowsort
SELECT - col2 AS col1, + col0 FROM tab2 cor0
----
-23
46
-40
64
-58
75

query I rowsort
SELECT ALL - - col0 * - - col1 * + col2 + - 64 * col2 FROM tab2 AS cor0
----
194560
287738
52486

query I rowsort
SELECT - ( + col0 ) FROM tab2 AS cor0 WHERE - col0 * - col2 * + col2 < - col2
----

query I rowsort
SELECT - 9 * - col1 FROM tab0 AS cor0
----
189
729
9

onlyif mysql # DIV for integer division: 
query I rowsort label-4662
SELECT ALL - 92 DIV col0 AS col1 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4662
SELECT ALL - 92 / col0 AS col1 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL + col1 * - ( + - col2 ) AS col0 FROM tab2
----
1173
3080
3886

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) >= - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4665
SELECT ALL col2 DIV 96 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4665
SELECT ALL col2 / 96 FROM tab1
----
0
0
1

query I rowsort
SELECT col2 * - 81 AS col0 FROM tab2
----
-1863
-3240
-4698

query II rowsort
SELECT - col0 * + col2 AS col1, - 43 AS col1 FROM tab1
----
-4896
-43
-5015
-43
-6188
-43

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL = 97
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4669
SELECT ALL + COUNT( * ) AS col2 FROM tab0 WHERE NOT ( - + col2 * + col2 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4669
SELECT ALL + COUNT ( * ) AS col2 FROM tab0 WHERE NOT ( - + col2 * + col2 ) IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 5 col2 FROM tab2
----
5
5
5

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( ( + col2 ) NOT IN ( 20 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4672
SELECT ALL - col0 + - CAST( NULL AS SIGNED ) - + + ( - - ( col0 ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4672
SELECT ALL - col0 + - CAST ( NULL AS INTEGER ) - + + ( - - ( col0 ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + col2 * - col0 + - col1 FROM tab0 AS cor0
----
624
849
9602

query III rowsort
SELECT * FROM tab2 WHERE 56 * + + 47 * + - 3 NOT IN ( col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 27 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4676
SELECT CAST( NULL AS SIGNED ) / - 13 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4676
SELECT CAST ( NULL AS INTEGER ) / - 13 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4677
SELECT - COUNT( * ) * + MAX( ALL + 15 ) col2 FROM tab1 cor0
----
-45

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4677
SELECT - COUNT ( * ) * + MAX ( ALL + 15 ) col2 FROM tab1 cor0
----
-45

query I rowsort
SELECT ALL ( - 94 ) FROM tab0 cor0 WHERE NOT ( NULL ) IN ( - - col2 )
----

query I rowsort
SELECT ALL + col0 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( 81 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4680
SELECT DISTINCT - - CAST( NULL AS SIGNED ) col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4680
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4681
SELECT + COUNT( * ), 16 DIV COUNT( * ) AS col0 FROM tab1 AS cor0
----
3
5

skipif mysql # not compatible
query II rowsort label-4681
SELECT + COUNT ( * ), 16 / COUNT ( * ) AS col0 FROM tab1 AS cor0
----
3
5

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 NOT BETWEEN ( NULL ) AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 17 + + - 81 col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 601ec439a72fb4786a9cb7a6547ace5e

onlyif mysql # aggregate syntax: 
query I rowsort label-4684
SELECT DISTINCT - 40 + ( ( + COUNT( * ) ) ) FROM tab1 WHERE col0 * - 24 - + 88 - - + col2 * - 57 IS NOT NULL
----
-37

skipif mysql # not compatible
query I rowsort label-4684
SELECT DISTINCT - 40 + ( ( + COUNT ( * ) ) ) FROM tab1 WHERE col0 * - 24 - + 88 - - + col2 * - 57 IS NOT NULL
----
-37

onlyif mysql # DIV for integer division: 
query II rowsort label-4685
SELECT - col2 DIV - 66 AS col0, 24 * col2 * col1 FROM tab0 AS cor0
----
0
5040
0
91368
1
2376

skipif mysql # not compatible
query II rowsort label-4685
SELECT - col2 / - 66 AS col0, 24 * col2 * col1 FROM tab0 AS cor0
----
0
5040
0
91368
1
2376

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4686
SELECT * FROM tab1 AS cor0 WHERE NOT ( CAST( + + col1 AS SIGNED ) + 80 ) < - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4686
SELECT * FROM tab1 AS cor0 WHERE NOT ( CAST ( + + col1 AS INTEGER ) + 80 ) < - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + ( - col1 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 / - + col2 NOT IN ( - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4689
SELECT DISTINCT 95 - - - 10 + - ( - COUNT( * ) ) AS col2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
94

skipif mysql # not compatible
query I rowsort label-4689
SELECT DISTINCT 95 - - - 10 + - ( - COUNT ( * ) ) AS col2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4690
SELECT DISTINCT - CAST( - col2 AS SIGNED ) - col0 * col0 FROM tab0 WHERE - ( - col1 ) IN ( - col1 + - col2 )
----

skipif mysql # not compatible
query I rowsort label-4690
SELECT DISTINCT - CAST ( - col2 AS INTEGER ) - col0 * col0 FROM tab0 WHERE - ( - col1 ) IN ( - col1 + - col2 )
----

query II rowsort
SELECT ALL + 83 + - col1 AS col0, col1 * - 48 AS col0 FROM tab2 AS cor0
----
16
-3216
32
-2448
6
-3696

onlyif mysql # DIV for integer division: 
query I rowsort label-4692
SELECT - 24 + + col2 DIV 2 FROM tab2 AS cor0
----
-13
-4
5

skipif mysql # not compatible
query I rowsort label-4692
SELECT - 24 + + col2 / 2 FROM tab2 AS cor0
----
-13
-4
5

query I rowsort
SELECT ALL + - 31 + - - col2 - + - col1 AS col2 FROM tab2 cor0
----
43
86
94

query I rowsort
SELECT 54 + - col1 AS col2 FROM tab1 AS cor0
----
40
49
7

query I rowsort
SELECT DISTINCT + - col1 + col2 * - 40 + col0 + + ( - col2 ) + - 20 * 5 AS col2 FROM tab1 AS cor0
----
-2439
-2844
-3999

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 37 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col1 FROM tab1 AS cor0 WHERE col1 + + col2 BETWEEN NULL AND + col0
----

query I rowsort
SELECT + ( 16 ) * col1 + - - col0 FROM tab0 AS cor0 WHERE 90 IS NOT NULL
----
113
1311
423

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4699
SELECT DISTINCT col1 * col0 * + col1 - - - 89 + + CAST( NULL AS SIGNED ) * - - 76 + - + 46 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4699
SELECT DISTINCT col1 * col0 * + col1 - - - 89 + + CAST ( NULL AS INTEGER ) * - - 76 + - + 46 AS col0 FROM tab0
----
NULL

query II rowsort
SELECT DISTINCT - col1 AS col0, + 72 + col1 * 83 FROM tab1
----
-14
1234
-47
3973
-5
487

query I rowsort
SELECT ALL ( - - 94 ) FROM tab1
----
94
94
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4702
SELECT DISTINCT - SUM( 16 ) AS col0 FROM tab0
----
-48

skipif mysql # not compatible
query I rowsort label-4702
SELECT DISTINCT - SUM ( 16 ) AS col0 FROM tab0
----
-48

query II rowsort
SELECT DISTINCT 83 AS col1, - col1 * + 43 AS col2 FROM tab0
----
83
-3483
83
-43
83
-903

onlyif mysql # aggregate syntax: 
query I rowsort label-4704
SELECT COUNT( * ) * + 8 AS col1 FROM tab0
----
24

skipif mysql # not compatible
query I rowsort label-4704
SELECT COUNT ( * ) * + 8 AS col1 FROM tab0
----
24

query I rowsort
SELECT ALL col1 * 30 AS col0 FROM tab2
----
1530
2010
2310

query I rowsort
SELECT - ( + 0 ) FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4707
SELECT ALL + col2 / + + col0 + + CAST( CAST( NULL AS SIGNED ) AS DECIMAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4707
SELECT ALL + col2 / + + col0 + + CAST ( CAST ( NULL AS INTEGER ) AS REAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + col1 - + - 41 FROM tab0 AS cor0
----
-40
20
40

query I rowsort
SELECT DISTINCT + 39 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-4710
SELECT ALL SUM( DISTINCT 84 ) FROM tab0
----
84

skipif mysql # not compatible
query I rowsort label-4710
SELECT ALL SUM ( DISTINCT 84 ) FROM tab0
----
84

query I rowsort
SELECT col2 * + + col2 AS col0 FROM tab0
----
100
2209
9801

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-4712
SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-4712
SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT + CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT ALL - AVG ( DISTINCT - 77 ) FROM tab2 AS cor0 WHERE NOT 60 NOT IN ( + + col0, col1 )
----
NULL

query I rowsort
SELECT ALL - + ( - 75 ) FROM tab2 AS cor0
----
75
75
75

query I rowsort
SELECT ALL + + 6 AS col2 FROM tab0 cor0
----
6
6
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4716
SELECT + ( COUNT( + + 92 ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4716
SELECT + ( COUNT ( + + 92 ) ) FROM tab1
----
3

query I rowsort
SELECT DISTINCT + + 33 FROM tab0 WHERE NULL IS NULL
----
33

query II rowsort
SELECT DISTINCT col2 AS col1, col2 FROM tab2
----
23
23
40
40
58
58

query III rowsort
SELECT ALL * FROM tab2 WHERE + col0 BETWEEN + + col2 - 20 AND ( - col0 )
----

query II rowsort
SELECT col2, - 91 AS col2 FROM tab1
----
59
-91
68
-91
96
-91

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE NOT - 2 IS NOT NULL
----

query I rowsort
SELECT ALL - - 56 AS col0 FROM tab0 cor0
----
56
56
56

query II rowsort
SELECT DISTINCT col0, ( + ( col1 ) ) FROM tab2
----
46
51
64
77
75
67

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE 37 IS NOT NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4725
SELECT * FROM tab1 AS cor0 WHERE + CAST( - 92 AS SIGNED ) NOT BETWEEN ( col0 ) AND - col2 + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4725
SELECT * FROM tab1 AS cor0 WHERE + CAST ( - 92 AS INTEGER ) NOT BETWEEN ( col0 ) AND - col2 + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - col2, col2 FROM tab1 cor0
----
-59
59
-68
68
-96
96

query I rowsort
SELECT ALL - + col1 - 9 AS col2 FROM tab2 AS cor0
----
-60
-76
-86

query I rowsort
SELECT DISTINCT col1 + - 56 + - + col0 + col1 * - col0 FROM tab0 AS cor0
----
-1205
-1949
-249

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4729
SELECT - CAST( NULL AS DECIMAL ) * ( + + MAX( ALL + + ( + - col0 ) ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4729
SELECT - CAST ( NULL AS REAL ) * ( + + MAX ( ALL + + ( + - col0 ) ) ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - 26 AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + col0 * + col2 - - - 10 FROM tab0 AS cor0
----
695
860
9593

query II rowsort
SELECT ALL + + 79 AS col0, - col0 AS col2 FROM tab1 AS cor0
----
79
-51
79
-85
79
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4733
SELECT ALL 4 * COUNT( * ) * - 36 FROM tab0
----
-432

skipif mysql # not compatible
query I rowsort label-4733
SELECT ALL 4 * COUNT ( * ) * - 36 FROM tab0
----
-432

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * col2 * col1 col0 FROM tab0
----
-18270
-57105
-9603

query I rowsort
SELECT ALL col2 - - 37 FROM tab0
----
136
47
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - AVG ( col2 ) col1 FROM tab2 WHERE NOT - + col2 + - col0 NOT BETWEEN NULL AND NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col2 + + - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE col1 <> - 29
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 5 * - 62 AS col2 FROM tab0
----
-310

query I rowsort
SELECT DISTINCT col1 * 72 AS col0 FROM tab1 AS cor0
----
1008
3384
360

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4741
SELECT + MIN( DISTINCT + + CAST( - ( - + col2 ) AS SIGNED ) ) FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-4741
SELECT + MIN ( DISTINCT + + CAST ( - ( - + col2 ) AS INTEGER ) ) FROM tab2 AS cor0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-4742
SELECT ALL - COUNT( * ) + COUNT( * ) AS col2 FROM tab1 WHERE col1 - + col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4742
SELECT ALL - COUNT ( * ) + COUNT ( * ) AS col2 FROM tab1 WHERE col1 - + col0 IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1, - 60 * + 89 col2 FROM tab0
----
1
-5340
21
-5340
81
-5340

query I rowsort
SELECT DISTINCT + 91 AS col0 FROM tab0 WHERE + col1 * + 8 * + col1 IS NOT NULL
----
91

query I rowsort
SELECT + col2 + - + col0 AS col1 FROM tab0 WHERE NOT - + 87 + - 51 * + col1 <> ( + 6 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4746
SELECT ALL + col1 DIV 63 * 66, + col2 FROM tab0 AS cor0
----
0
10
0
99
66
47

skipif mysql # not compatible
query II rowsort label-4746
SELECT ALL + col1 / 63 * 66, + col2 FROM tab0 AS cor0
----
0
10
0
99
66
47

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT NULL BETWEEN NULL AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4748
SELECT + + SUM( ALL - 82 ) FROM tab0 cor0
----
-246

skipif mysql # not compatible
query I rowsort label-4748
SELECT + + SUM ( ALL - 82 ) FROM tab0 cor0
----
-246

query I rowsort
SELECT + - col2 AS col1 FROM tab1 AS cor0 WHERE NOT ( NOT + ( + col2 ) = NULL )
----

query I rowsort
SELECT DISTINCT col1 * - - col2 * - - 20 AS col2 FROM tab2
----
23460
61600
77720

query I rowsort
SELECT ALL - ( + - col2 ) * - - col1 AS col2 FROM tab2
----
1173
3080
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-4752
SELECT DISTINCT + MAX( - col1 ) AS col1 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-4752
SELECT DISTINCT + MAX ( - col1 ) AS col1 FROM tab2
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4753
SELECT 95 * col1 / 40 + + CAST( NULL AS SIGNED ) * + + col1 * - ( + col2 ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4753
SELECT 95 * col1 / 40 + + CAST ( NULL AS INTEGER ) * + + col1 * - ( + col2 ) FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 / - 73 - - 74 + + - col0 col1 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4755
SELECT DISTINCT 88 col0, MAX( DISTINCT - col1 ) / + COUNT( * ) * COUNT( * ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
88
NULL

skipif mysql # not compatible
query II rowsort label-4755
SELECT DISTINCT 88 col0, MAX ( DISTINCT - col1 ) / + COUNT ( * ) * COUNT ( * ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
88
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4756
SELECT - - 88 * + + 68 + - COUNT( * ) AS col2 FROM tab1 cor0
----
5981

skipif mysql # not compatible
query I rowsort label-4756
SELECT - - 88 * + + 68 + - COUNT ( * ) AS col2 FROM tab1 cor0
----
5981

onlyif mysql # aggregate syntax: 
query I rowsort label-4757
SELECT - + AVG ( DISTINCT - col0 ) * - COUNT( * ) FROM tab1 WHERE ( NOT - col1 IS NOT NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4757
SELECT - + AVG ( DISTINCT - col0 ) * - COUNT ( * ) FROM tab1 WHERE ( NOT - col1 IS NOT NULL )
----
NULL

query I rowsort
SELECT 73 * + 1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 21 col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 631fbd1fd929405aba54a22c2a06c757

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT + col0 + - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 + + + 89 FROM tab0 AS cor0
----
104
176
186

query I rowsort
SELECT DISTINCT + ( 53 ) FROM tab1
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-4763
SELECT ALL - COUNT( * ) - + + 9 + - 42 * - - 96 FROM tab2
----
-4044

skipif mysql # not compatible
query I rowsort label-4763
SELECT ALL - COUNT ( * ) - + + 9 + - 42 * - - 96 FROM tab2
----
-4044

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4764
SELECT CAST( 41 AS SIGNED ) * COUNT( * ) AS col1 FROM tab1
----
123

skipif mysql # not compatible
query I rowsort label-4764
SELECT CAST ( 41 AS INTEGER ) * COUNT ( * ) AS col1 FROM tab1
----
123

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col2 = NULL
----

query I rowsort
SELECT DISTINCT - 22 * + col1 FROM tab0
----
-1782
-22
-462

onlyif mysql # aggregate syntax: 
query I rowsort label-4767
SELECT COUNT( DISTINCT - + col1 ) * + + 55 AS col2 FROM tab1
----
165

skipif mysql # not compatible
query I rowsort label-4767
SELECT COUNT ( DISTINCT - + col1 ) * + + 55 AS col2 FROM tab1
----
165

query III rowsort
SELECT * FROM tab0 WHERE + - ( col2 ) * + + col2 IS NULL
----

query I rowsort
SELECT DISTINCT - 72 * - col1 * col1 AS col1 FROM tab2
----
187272
323208
426888

query I rowsort
SELECT - 48 * - + col0 AS col1 FROM tab2
----
2208
3072
3600

query I rowsort
SELECT ALL - + ( + + 8 ) AS col0 FROM tab0 AS cor0
----
-8
-8
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-4772
SELECT - - 73 AS col2, + COUNT( * ) * - COUNT( * ) * + 80 FROM tab1 AS cor0
----
73
-720

skipif mysql # not compatible
query II rowsort label-4772
SELECT - - 73 AS col2, + COUNT ( * ) * - COUNT ( * ) * + 80 FROM tab1 AS cor0
----
73
-720

query I rowsort
SELECT + col0 AS col1 FROM tab1 AS cor0 WHERE NOT col2 <> - - col2
----
51
85
91

query I rowsort
SELECT + + col0 AS col2 FROM tab0 WHERE NOT NULL <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + ( + - 84 ) ) * - + 30 col1 FROM tab1
----
2520
2520
2520

onlyif mysql # aggregate syntax: 
query I rowsort label-4776
SELECT DISTINCT + COUNT( 36 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4776
SELECT DISTINCT + COUNT ( 36 ) FROM tab2
----
3

query I rowsort
SELECT DISTINCT + 90 FROM tab2 cor0
----
90

query I rowsort
SELECT - ( - col1 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
51
67
77

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL IN ( - - col0 + - 90 * + col0 ) AND NOT - col1 <> NULL
----

query I rowsort
SELECT ALL 6 * - col0 FROM tab0
----
-522
-582
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-4781
SELECT + 85 DIV col1 AS col1 FROM tab0
----
1
4
85

skipif mysql # not compatible
query I rowsort label-4781
SELECT + 85 / col1 AS col1 FROM tab0
----
1
4
85

query II rowsort
SELECT ALL 50 AS col0, + col0 AS col2 FROM tab2
----
50
46
50
64
50
75

query III rowsort
SELECT ALL * FROM tab1 WHERE - - col0 * - 35 < NULL
----

query I rowsort
SELECT DISTINCT col0 + - 71 FROM tab0 AS cor0
----
-56
16
26

query I rowsort
SELECT DISTINCT + 17 - - col0 AS col2 FROM tab2
----
63
81
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 40 col1 FROM tab2 cor0
----
40

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 + + + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + + ( - col0 ) - - 45 FROM tab2 AS cor0
----
-1
-19
-30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + 2 col0 FROM tab2 AS cor0
----
48
66
77

query I rowsort
SELECT DISTINCT + col0 + + col1 + col2 FROM tab1 AS cor0
----
149
161
206

query I rowsort
SELECT DISTINCT - ( + - col1 ) - + col0 + - col1 FROM tab0
----
-15
-87
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-4792
SELECT DISTINCT - 95 + col2 DIV col2 AS col1 FROM tab0
----
-94

skipif mysql # not compatible
query I rowsort label-4792
SELECT DISTINCT - 95 + col2 / col2 AS col1 FROM tab0
----
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4793
SELECT CAST( - CAST( + 49 AS SIGNED ) AS SIGNED ) FROM tab1 WHERE NOT NULL NOT IN ( + 47 * - 84 + + + CAST( NULL AS SIGNED ) + + 28 )
----

skipif mysql # not compatible
query I rowsort label-4793
SELECT CAST ( - CAST ( + 49 AS INTEGER ) AS INTEGER ) FROM tab1 WHERE NOT NULL NOT IN ( + 47 * - 84 + + + CAST ( NULL AS INTEGER ) + + 28 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4794
SELECT - 30 * COUNT( * ) FROM tab0
----
-90

skipif mysql # not compatible
query I rowsort label-4794
SELECT - 30 * COUNT ( * ) FROM tab0
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-4795
SELECT - COUNT( * ) FROM tab0 WHERE NOT NULL IN ( + 35 + + col1, - col1 + - col0, - 11 )
----
0

skipif mysql # not compatible
query I rowsort label-4795
SELECT - COUNT ( * ) FROM tab0 WHERE NOT NULL IN ( + 35 + + col1, - col1 + - col0, - 11 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4796
SELECT + CAST( - + 23 AS SIGNED ) FROM tab1 AS cor0
----
-23
-23
-23

skipif mysql # not compatible
query I rowsort label-4796
SELECT + CAST ( - + 23 AS INTEGER ) FROM tab1 AS cor0
----
-23
-23
-23

query I rowsort
SELECT - ( + - 77 ) AS col0 FROM tab0 cor0
----
77
77
77

onlyif mysql # aggregate syntax: 
query II rowsort label-4798
SELECT DISTINCT - MAX( ALL - col2 ), MIN( ALL + 23 ) * COUNT( * ) + - COUNT( * ) * + 45 col1 FROM tab1 cor0 WHERE NULL IS NOT NULL
----
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4798
SELECT DISTINCT - MAX ( ALL - col2 ), MIN ( ALL + 23 ) * COUNT ( * ) + - COUNT ( * ) * + 45 col1 FROM tab1 cor0 WHERE NULL IS NOT NULL
----
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4799
SELECT ALL CAST( 75 AS SIGNED ) * + col1 AS col1 FROM tab2 AS cor0
----
3825
5025
5775

skipif mysql # not compatible
query I rowsort label-4799
SELECT ALL CAST ( 75 AS INTEGER ) * + col1 AS col1 FROM tab2 AS cor0
----
3825
5025
5775

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4800
SELECT - 40 * + COUNT( * ) * - + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4800
SELECT - 40 * + COUNT ( * ) * - + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL

query II rowsort
SELECT DISTINCT - - col1 + + col2 - - - 93 * - 45 AS col1, 74 + - col1 + - 86 AS col0 FROM tab0 cor0
----
4216
-33
4285
-13
4313
-93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 60 * + col1 col0 FROM tab2 AS cor0
----
3060
4020
4620

onlyif mysql # aggregate syntax: 
query I rowsort label-4803
SELECT - + COUNT( + - col0 ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4803
SELECT - + COUNT ( + - col0 ) AS col2 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4804
SELECT - 50 * + - MAX( col2 ) AS col0 FROM tab2 AS cor0
----
2900

skipif mysql # not compatible
query I rowsort label-4804
SELECT - 50 * + - MAX ( col2 ) AS col0 FROM tab2 AS cor0
----
2900

query I rowsort
SELECT DISTINCT - + 17 + + col2 + 27 + 55 + + + col1 AS col1 FROM tab2 AS cor0
----
139
182
190

onlyif mysql # aggregate syntax: 
query I rowsort label-4806
SELECT ALL + 54 * MAX( ALL + + col0 ) FROM tab1 AS cor0
----
4914

skipif mysql # not compatible
query I rowsort label-4806
SELECT ALL + 54 * MAX ( ALL + + col0 ) FROM tab1 AS cor0
----
4914

query I rowsort
SELECT - - 74 * + col2 FROM tab2 AS cor0
----
1702
2960
4292

query II rowsort
SELECT ALL - 15 AS col0, col1 * col1 FROM tab1 AS cor0
----
-15
196
-15
2209
-15
25

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 * - 51 <> NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4810
SELECT DISTINCT + - CAST( NULL AS DECIMAL ) * + + col0 AS col2, col1 FROM tab2 WHERE NOT NULL BETWEEN - 67 + col1 AND 46
----

skipif mysql # not compatible
query II rowsort label-4810
SELECT DISTINCT + - CAST ( NULL AS REAL ) * + + col0 AS col2, col1 FROM tab2 WHERE NOT NULL BETWEEN - 67 + col1 AND 46
----

query I rowsort
SELECT - 23 * col0 + 11 AS col0 FROM tab0
----
-1990
-2220
-334

onlyif mysql # aggregate syntax: 
query I rowsort label-4812
SELECT - MAX( - ( + col2 ) ) col1 FROM tab1
----
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4812
SELECT - MAX ( - ( + col2 ) ) col1 FROM tab1
----
59

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL >= 93 / + - ( - ( - + col1 ) )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 53 / col1 <= + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - + 58 FROM tab1 cor0
----
-58
-58
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4816
SELECT ALL COUNT( * ) - 61 AS col0 FROM tab0
----
-58

skipif mysql # not compatible
query I rowsort label-4816
SELECT ALL COUNT ( * ) - 61 AS col0 FROM tab0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4817
SELECT 29 - + - COUNT( * ) AS col0 FROM tab2
----
32

skipif mysql # not compatible
query I rowsort label-4817
SELECT 29 - + - COUNT ( * ) AS col0 FROM tab2
----
32

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN NULL AND + - col1
----

query I rowsort
SELECT DISTINCT col0 - - 1 AS col0 FROM tab2
----
47
65
76

query I rowsort
SELECT ALL - col1 AS col2 FROM tab2 cor0 WHERE NOT 52 * - col1 + - - 69 = - col1
----
-51
-67
-77

query I rowsort
SELECT DISTINCT + col0 * + + col0 FROM tab2 cor0
----
2116
4096
5625

query I rowsort
SELECT ALL col2 - col1 AS col0 FROM tab0 AS cor0
----
-11
-34
98

query I rowsort
SELECT ALL - 80 + + 5 AS col1 FROM tab1 AS cor0
----
-75
-75
-75

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab1 WHERE NULL NOT BETWEEN NULL AND ( NULL )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE - 26 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4826
SELECT DISTINCT col1 * + 1 DIV 78 * + col1 * + col2 DIV + col0 * - - 36 * + ( + col2 ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4826
SELECT DISTINCT col1 * + 1 / 78 * + col1 * + col2 / + col0 * - - 36 * + ( + col2 ) AS col0 FROM tab1
----
0

query I rowsort
SELECT + 90 * + col2 AS col1 FROM tab1
----
5310
6120
8640

query I rowsort
SELECT DISTINCT ( + ( - + col2 ) ) AS col1 FROM tab2
----
-23
-40
-58

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab2 AS cor0 WHERE NOT 94 = col2 + + 27 + col1 * ( + col2 ) + - - 40 + + col2
----
-46
-64
-75

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE NOT - col2 BETWEEN NULL AND + - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 col1 FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----

query I rowsort
SELECT - 22 * col2 FROM tab1
----
-1298
-1496
-2112

query I rowsort
SELECT DISTINCT - 4 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col0 + - col2 col2 FROM tab2
----
1035
2520
4292

onlyif mysql # aggregate syntax: 
query I rowsort label-4835
SELECT DISTINCT + COUNT( * ) * + 95 AS col2 FROM tab0 AS cor0
----
285

skipif mysql # not compatible
query I rowsort label-4835
SELECT DISTINCT + COUNT ( * ) * + 95 AS col2 FROM tab0 AS cor0
----
285

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN 83 AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 43 * + col2 + + + 0 col0 FROM tab2 AS cor0 WHERE NOT ( - 0 NOT BETWEEN - col2 AND + 98 - - col1 + + + col1 + col0 )
----
-1720
-2494
-989

query I rowsort
SELECT DISTINCT - col1 FROM tab2 AS cor0 WHERE NOT ( ( - + ( - col1 ) ) + + col1 <> + 98 )
----

query I rowsort
SELECT - + 21 FROM tab2 AS cor0 WHERE + col0 BETWEEN col2 AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 + col2 + col1 + - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4841
SELECT - COUNT( col2 ) * + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4841
SELECT - COUNT ( col2 ) * + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-9

query I rowsort
SELECT DISTINCT - col0 * - - 97 FROM tab1 AS cor0
----
-4947
-8245
-8827

onlyif mysql # aggregate syntax: 
query I rowsort label-4843
SELECT 71 * + - MIN( - + 37 ) AS col1 FROM tab0 cor0
----
2627

skipif mysql # not compatible
query I rowsort label-4843
SELECT 71 * + - MIN ( - + 37 ) AS col1 FROM tab0 cor0
----
2627

query II rowsort
SELECT ALL col2 AS col1, + col2 * - 66 AS col1 FROM tab0 AS cor0
----
10
-660
47
-3102
99
-6534

query II rowsort
SELECT DISTINCT + col0, - col0 + - col0 AS col2 FROM tab0
----
15
-30
87
-174
97
-194

onlyif mysql # DIV for integer division: 
query II rowsort label-4846
SELECT ALL col0 AS col1, + col0 DIV - col1 FROM tab2
----
46
0
64
0
75
-1

skipif mysql # not compatible
query II rowsort label-4846
SELECT ALL col0 AS col1, + col0 / - col1 FROM tab2
----
46
0
64
0
75
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4847
SELECT DISTINCT + COUNT( * ) * + - 29 FROM tab1
----
-87

skipif mysql # not compatible
query I rowsort label-4847
SELECT DISTINCT + COUNT ( * ) * + - 29 FROM tab1
----
-87

query III rowsort
SELECT ALL * FROM tab1 WHERE + col0 - + + 13 * - - 65 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4849
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - 25 + + - 65 * - - col0 AS col2, col1 + + 44 col1 FROM tab1
----
NULL
49
NULL
58
NULL
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4849
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - 25 + + - 65 * - - col0 AS col2, col1 + + 44 col1 FROM tab1
----
NULL
49
NULL
58
NULL
91

query I rowsort
SELECT - col1 * col0 + - + col2 * - + 93 * - + col1 AS col0 FROM tab1
----
-125706
-27860
-301505

onlyif mysql # aggregate syntax: 
query I rowsort label-4851
SELECT DISTINCT MIN( - + col0 ) FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-4851
SELECT DISTINCT MIN ( - + col0 ) FROM tab1
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4852
SELECT ALL + 19, 87 * 65 + + col1 + col2 * + - col0 + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
19
NULL
19
NULL
19
NULL

skipif mysql # not compatible
query II rowsort label-4852
SELECT ALL + 19, 87 * 65 + + col1 + col2 * + - col0 + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
19
NULL
19
NULL
19
NULL

query I rowsort
SELECT + col2 + + + 67 + + - 52 FROM tab0 AS cor0
----
114
25
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4854
SELECT CAST( NULL AS SIGNED ) + + + col1 + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4854
SELECT CAST ( NULL AS INTEGER ) + + + col1 + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4855
SELECT MIN( 72 ) * - - 84 + + + 24 DIV + + 51 FROM tab2 AS cor0
----
6048

skipif mysql # not compatible
query I rowsort label-4855
SELECT MIN ( 72 ) * - - 84 + + + 24 / + + 51 FROM tab2 AS cor0
----
6048

onlyif mysql # aggregate syntax: 
query I rowsort label-4856
SELECT DISTINCT + + COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-4856
SELECT DISTINCT + + COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-4857
SELECT - - 13 DIV + - col2 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4857
SELECT - - 13 / + - col2 FROM tab0 AS cor0
----
-1
0
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4858
SELECT - CAST( NULL AS DECIMAL ) * + 44 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4858
SELECT - CAST ( NULL AS REAL ) * + 44 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4859
SELECT ALL CAST( - col0 AS SIGNED ) col1 FROM tab0 AS cor0
----
-15
-87
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4859
SELECT ALL CAST ( - col0 AS INTEGER ) col1 FROM tab0 AS cor0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4860
SELECT - MAX( DISTINCT + 29 ) * + - MIN( ALL - - col1 ) * COUNT( ALL - col2 ) - + COUNT( * ) FROM tab2 AS cor0
----
4434

skipif mysql # not compatible
query I rowsort label-4860
SELECT - MAX ( DISTINCT + 29 ) * + - MIN ( ALL - - col1 ) * COUNT ( ALL - col2 ) - + COUNT ( * ) FROM tab2 AS cor0
----
4434

onlyif mysql # aggregate syntax: 
query I rowsort label-4861
SELECT - COUNT( - col2 ) col2 FROM tab0 cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4861
SELECT - COUNT ( - col2 ) col2 FROM tab0 cor0
----
-3

query I rowsort
SELECT ALL - - 3 * + 9 AS col0 FROM tab2 WHERE + + col2 IS NOT NULL
----
27
27
27

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - - col1 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( 19 ) col2 FROM tab0
----
19

query I rowsort
SELECT 71 / 87 AS col1 FROM tab0 WHERE NOT - col2 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4866
SELECT ALL col2, - CAST( - col2 AS SIGNED ) * + + col2 FROM tab2
----
23
529
40
1600
58
3364

skipif mysql # not compatible
query II rowsort label-4866
SELECT ALL col2, - CAST ( - col2 AS INTEGER ) * + + col2 FROM tab2
----
23
529
40
1600
58
3364

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4867
SELECT col1 FROM tab1 WHERE NOT + - 92 * + CAST( NULL AS SIGNED ) + + col0 BETWEEN NULL AND + col1
----

skipif mysql # not compatible
query I rowsort label-4867
SELECT col1 FROM tab1 WHERE NOT + - 92 * + CAST ( NULL AS INTEGER ) + + col0 BETWEEN NULL AND + col1
----

query II rowsort
SELECT col2, + col1 * + 95 FROM tab2
----
23
4845
40
7315
58
6365

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4869
SELECT 0 * - - CAST( + 26 AS SIGNED ) * - + col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4869
SELECT 0 * - - CAST ( + 26 AS INTEGER ) * - + col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4870
SELECT ALL - - CAST( - 19 AS SIGNED ) FROM tab1 AS cor0
----
-19
-19
-19

skipif mysql # not compatible
query I rowsort label-4870
SELECT ALL - - CAST ( - 19 AS INTEGER ) FROM tab1 AS cor0
----
-19
-19
-19

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( NULL ) NOT BETWEEN - col0 AND + - ( - col2 ) * col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4872
SELECT DISTINCT - - SUM( ALL + 16 ) AS col1 FROM tab2 cor0
----
48

skipif mysql # not compatible
query I rowsort label-4872
SELECT DISTINCT - - SUM ( ALL + 16 ) AS col1 FROM tab2 cor0
----
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 52 col2 FROM tab0 AS cor0
----
52
52
52

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4874
SELECT * FROM tab2 WHERE NOT - + col1 <= + 73 * - CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-4874
SELECT * FROM tab2 WHERE NOT - + col1 <= + 73 * - CAST ( NULL AS REAL )
----

query I rowsort
SELECT DISTINCT + col2 FROM tab0 AS cor0 WHERE col1 IS NULL
----

query I rowsort
SELECT ALL + col1 AS col1 FROM tab2 cor0 WHERE NULL IS NULL
----
51
67
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + 93 col2 FROM tab2 AS cor0
----
139
157
168

query I rowsort
SELECT + col0 + + 70 AS col0 FROM tab1 AS cor0
----
121
155
161

onlyif mysql # aggregate syntax: 
query I rowsort label-4879
SELECT ALL + - MAX( DISTINCT 95 ) AS col0 FROM tab2 cor0
----
-95

skipif mysql # not compatible
query I rowsort label-4879
SELECT ALL + - MAX ( DISTINCT 95 ) AS col0 FROM tab2 cor0
----
-95

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 72 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + - + 31 + 8 - - 73 * 6 * - col0 + + col0 col2 FROM tab0 AS cor0
----
-38032
-42313
-6531

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 70 IN ( + ( - + col1 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-4883
SELECT ALL col0 + - col0 * 94 DIV + ( + + col1 ) FROM tab2 AS cor0
----
-14
-30
-38

skipif mysql # not compatible
query I rowsort label-4883
SELECT ALL col0 + - col0 * 94 / + ( + + col1 ) FROM tab2 AS cor0
----
-14
-30
-38

query I rowsort
SELECT ALL 61 AS col0 FROM tab1 AS cor0 WHERE NOT + col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE ( 85 * - 6 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col1 + + - 86 AS col1 FROM tab0
----
-5
-65
-85

query I rowsort
SELECT DISTINCT + 61 AS col2 FROM tab1, tab0 AS cor0
----
61

query I rowsort
SELECT ALL col0 + + 63 AS col0 FROM tab2
----
109
127
138

query II rowsort
SELECT col2, 68 AS col0 FROM tab0
----
10
68
47
68
99
68

query I rowsort
SELECT DISTINCT 37 + + + col0 + col2 FROM tab0
----
134
233
99

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab0 AS cor0 WHERE - col1 = + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4892
SELECT DISTINCT + col0 + + CAST( NULL AS SIGNED ) - - ( + col1 ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NOT NULL <> NULL )
----

skipif mysql # not compatible
query I rowsort label-4892
SELECT DISTINCT + col0 + + CAST ( NULL AS INTEGER ) - - ( + col1 ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NOT NULL <> NULL )
----

query I rowsort
SELECT ALL ( + - 31 ) FROM tab2 cor0
----
-31
-31
-31

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4894
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 81 * + + col2 + - - ( + - col2 ) IN ( + 54 * + 65 * + + col2, CAST( 74 AS SIGNED ), + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4894
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 81 * + + col2 + - - ( + - col2 ) IN ( + 54 * + 65 * + + col2, CAST ( 74 AS INTEGER ), + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + col2 - + col2 NOT BETWEEN - col2 AND col2 + - 64 * - col2 * - + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4896
SELECT MIN( ALL + col0 ) AS col2 FROM tab0 cor0
----
15

skipif mysql # not compatible
query I rowsort label-4896
SELECT MIN ( ALL + col0 ) AS col2 FROM tab0 cor0
----
15

query I rowsort
SELECT 5 * + col2 * + col1 FROM tab1
----
1475
15980
6720

onlyif mysql # aggregate syntax: 
query I rowsort label-4898
SELECT ( COUNT( * ) ) * 18 FROM tab1
----
54

skipif mysql # not compatible
query I rowsort label-4898
SELECT ( COUNT ( * ) ) * 18 FROM tab1
----
54

query III rowsort
SELECT ALL * FROM tab1 WHERE col1 > ( + + ( 49 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4900
SELECT DISTINCT + CAST( + 65 AS SIGNED ) AS col2, - col1 FROM tab1
----
65
-14
65
-47
65
-5

skipif mysql # not compatible
query II rowsort label-4900
SELECT DISTINCT + CAST ( + 65 AS INTEGER ) AS col2, - col1 FROM tab1
----
65
-14
65
-47
65
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-4901
SELECT DISTINCT - - 81 + + - col2 DIV + col0 AS col1 FROM tab2 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-4901
SELECT DISTINCT - - 81 + + - col2 / + col0 AS col1 FROM tab2 AS cor0
----
81

query I rowsort
SELECT + col2 * + col0 * col2 + - + col2 + 72 * + + ( col0 ) AS col0 FROM tab1 AS cor0
----
301946
427268
473592

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4903
SELECT ( + + col1 ) + - CAST( + col2 AS SIGNED ) AS col1 FROM tab0
----
-98
11
34

skipif mysql # not compatible
query I rowsort label-4903
SELECT ( + + col1 ) + - CAST ( + col2 AS INTEGER ) AS col1 FROM tab0
----
-98
11
34

query I rowsort
SELECT DISTINCT + col2 + - + 88 FROM tab2
----
-30
-48
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-4905
SELECT ALL COUNT( * ) + - + 64 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-55

skipif mysql # not compatible
query I rowsort label-4905
SELECT ALL COUNT ( * ) + - + 64 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-4906
SELECT DISTINCT col2 + + 0 DIV + 31 AS col2 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-4906
SELECT DISTINCT col2 + + 0 / + 31 AS col2 FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT ALL - + col2 + 95 AS col2 FROM tab2 AS cor0
----
37
55
72

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL = 62
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4909
SELECT DISTINCT ( + col1 ) - CAST( NULL AS DECIMAL ) + 49 * - + 64 * - 31 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4909
SELECT DISTINCT ( + col1 ) - CAST ( NULL AS REAL ) + 49 * - + 64 * - 31 AS col0 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4910
SELECT DISTINCT + MAX( DISTINCT - col1 ) AS col0 FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-4910
SELECT DISTINCT + MAX ( DISTINCT - col1 ) AS col0 FROM tab1
----
-5

query I rowsort
SELECT ALL + col0 - - col2 AS col1 FROM tab2
----
104
133
69

query I rowsort
SELECT - ( - - col1 ) + + 4 FROM tab0
----
-17
-77
3

query II rowsort
SELECT - col2 + col0 col0, 45 * col1 AS col2 FROM tab2
----
17
3015
23
2295
24
3465

query I rowsort
SELECT DISTINCT + - col1 + 11 + + 24 * - + 77 AS col0 FROM tab0 AS cor0
----
-1838
-1858
-1918

query I rowsort
SELECT ALL - 99 + + col0 * - col1 FROM tab2 AS cor0
----
-2445
-5027
-5124

query I rowsort
SELECT DISTINCT 40 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
40

query I rowsort
SELECT ( + 56 ) - - 43 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col2 * + 10 <= col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + col2 * + 16 * 72 col2 FROM tab1
----
-5640192
-5777280
-7128576

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4920
SELECT - + AVG ( DISTINCT CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4920
SELECT - + AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4921
SELECT col2 DIV - 73 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4921
SELECT col2 / - 73 FROM tab0 AS cor0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4922
SELECT - - COUNT( * ) FROM tab2 AS cor0 WHERE NOT + col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4922
SELECT - - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT + col2 IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4923
SELECT - + 9 * col2 DIV - + col1 FROM tab1 AS cor0
----
106
13
61

skipif mysql # not compatible
query I rowsort label-4923
SELECT - + 9 * col2 / - + col1 FROM tab1 AS cor0
----
106
13
61

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 95 <> ( - - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4925
SELECT ALL + CAST( NULL AS SIGNED ) * + + 62 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-4925
SELECT ALL + CAST ( NULL AS INTEGER ) * + + 62 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT + + ( + 44 ) * col0 * + col2 * + 85 FROM tab1 AS cor0
----
18311040
18756100
23143120

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4927
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 / CAST( + + 31 AS SIGNED ) / - + 74 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4927
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 / CAST ( + + 31 AS INTEGER ) / - + 74 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4928
SELECT DISTINCT + 34 * - - COUNT( * ) col1 FROM tab1
----
102

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4928
SELECT DISTINCT + 34 * - - COUNT ( * ) col1 FROM tab1
----
102

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND 50 - + - 44
----

query I rowsort
SELECT ALL col0 AS col0 FROM tab0 WHERE ( ( NOT + ( col1 ) * - 91 / + + col0 * - 14 + 50 * + - 87 IS NULL ) )
----
15
87
97

onlyif mysql # DIV for integer division: 
query III rowsort label-4931
SELECT - col1 AS col0, + col2 DIV col0 + + col1 AS col2, - col0 FROM tab1
----
9 values hashing to c6609382ec16b293413f50152ab0da20

skipif mysql # not compatible
query III rowsort label-4931
SELECT - col1 AS col0, + col2 / col0 + + col1 AS col2, - col0 FROM tab1
----
9 values hashing to c6609382ec16b293413f50152ab0da20

onlyif mysql # aggregate syntax: 
query I rowsort label-4932
SELECT COUNT( * ) * - SUM( ALL - 57 ) AS col1 FROM tab1
----
513

skipif mysql # not compatible
query I rowsort label-4932
SELECT COUNT ( * ) * - SUM ( ALL - 57 ) AS col1 FROM tab1
----
513

onlyif mysql # DIV for integer division: 
query I rowsort label-4933
SELECT ALL - col0 DIV + col0 + - 82 DIV - col0 AS col1 FROM tab1 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-4933
SELECT ALL - col0 / + col0 + - 82 / - col0 AS col1 FROM tab1 AS cor0
----
-1
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4934
SELECT ALL 45 + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-4934
SELECT ALL 45 + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
42

query I rowsort
SELECT - col0 + - + col1 + - + 27 FROM tab0 AS cor0
----
-123
-125
-135

onlyif mysql # DIV for integer division: 
query I rowsort label-4936
SELECT col2 DIV - col1 + + + col2 + - col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4936
SELECT col2 / - col1 + + + col2 + - col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4937
SELECT ALL CAST( NULL AS DECIMAL ) * - col1 + 50 + - col0 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4937
SELECT ALL CAST ( NULL AS REAL ) * - col1 + 50 + - col0 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col1 + + ( - col2 ) AS col2, + col1 col1 FROM tab1 AS cor0
----
-110
14
-115
47
-64
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4939
SELECT 81 DIV + COUNT( * ) + + COUNT( * ) FROM tab2 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-4939
SELECT 81 / + COUNT ( * ) + + COUNT ( * ) FROM tab2 AS cor0
----
30

query I rowsort
SELECT DISTINCT - col0 - - col2 * - + col2 FROM tab1 AS cor0
----
-3566
-4715
-9267

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 39 col0 FROM tab0 cor0 WHERE NULL NOT BETWEEN - col1 * + col2 * - - col0 * + 49 / - col0 AND - ( - col2 )
----

query I rowsort
SELECT DISTINCT + col1 + + col2 AS col1 FROM tab2 WHERE NOT - - 82 * - col0 IN ( 64 )
----
117
125
74

query I rowsort
SELECT DISTINCT 44 - - + col2 FROM tab2
----
102
67
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4944
SELECT - COUNT( * ) * - 13 FROM tab1
----
39

skipif mysql # not compatible
query I rowsort label-4944
SELECT - COUNT ( * ) * - 13 FROM tab1
----
39

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col2 + - col0 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4946
SELECT ALL COUNT( * ) * 64 * + - CAST( NULL AS SIGNED ) + - 9 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4946
SELECT ALL COUNT ( * ) * 64 * + - CAST ( NULL AS INTEGER ) + - 9 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4947
SELECT + + 66 * ( - CAST( 60 AS SIGNED ) ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c734db9ad3b45132c768ae6c828c7e2e

skipif mysql # not compatible
query I rowsort label-4947
SELECT + + 66 * ( - CAST ( 60 AS INTEGER ) ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c734db9ad3b45132c768ae6c828c7e2e

query I rowsort
SELECT 66 FROM tab0 AS cor0 WHERE NOT 80 / + + col0 = - col2
----
66
66
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4949
SELECT + - COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL < + col1 * + CAST( NULL AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-4949
SELECT + - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL < + col1 * + CAST ( NULL AS INTEGER )
----
0

query I rowsort
SELECT - + col2 * col0 + - 64 * + - col1 FROM tab2 AS cor0
----
-62
2206
2368

onlyif mysql # aggregate syntax: 
query I rowsort label-4951
SELECT DISTINCT - + COUNT( * ) * - 66 + - COUNT( * ) FROM tab0 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-4951
SELECT DISTINCT - + COUNT ( * ) * - 66 + - COUNT ( * ) FROM tab0 AS cor0
----
195

query I rowsort
SELECT + col1 * - + col0 + 93 AS col1 FROM tab2 AS cor0
----
-2253
-4835
-4932

onlyif mysql # aggregate syntax: 
query I rowsort label-4953
SELECT + MAX( - - col2 ) * - COUNT( * ) FROM tab0 cor0
----
-297

skipif mysql # not compatible
query I rowsort label-4953
SELECT + MAX ( - - col2 ) * - COUNT ( * ) FROM tab0 cor0
----
-297

query I rowsort
SELECT DISTINCT col1 * - 79 FROM tab2
----
-4029
-5293
-6083

onlyif mysql # aggregate syntax: 
query I rowsort label-4955
SELECT - COUNT( * ) * 57 AS col0 FROM tab2
----
-171

skipif mysql # not compatible
query I rowsort label-4955
SELECT - COUNT ( * ) * 57 AS col0 FROM tab2
----
-171

query III rowsort
SELECT * FROM tab1 WHERE NOT + 46 - + - ( - col2 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4957
SELECT ALL 35 DIV + col2 AS col2 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4957
SELECT ALL 35 / + col2 AS col2 FROM tab2
----
0
0
1

query II rowsort
SELECT + col2 AS col2, - 75 * col2 AS col2 FROM tab2
----
23
-1725
40
-3000
58
-4350

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL >= + col2 * + ( + 85 ) + - ( - 52 )
----

query I rowsort
SELECT ALL + + col0 + + 79 - + + col2 FROM tab1 cor0
----
102
105
34

query I rowsort
SELECT DISTINCT + ( - + col1 ) + - col2 FROM tab0 AS cor0
----
-100
-128
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-4962
SELECT ALL + 58 DIV - 17 FROM tab2 cor0
----
-3
-3
-3

skipif mysql # not compatible
query I rowsort label-4962
SELECT ALL + 58 / - 17 FROM tab2 cor0
----
-3
-3
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4963
SELECT ALL - - 38 + COUNT( * ) AS col1 FROM tab0 AS cor0
----
41

skipif mysql # not compatible
query I rowsort label-4963
SELECT ALL - - 38 + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
41

query I rowsort
SELECT + + col0 + - col1 + - col0 * col2 AS col2 FROM tab2 AS cor0
----
-1063
-2573
-4342

query II rowsort
SELECT ALL col2, 56 FROM tab2
----
23
56
40
56
58
56

query II rowsort
SELECT + col2 + + - col2, + ( + 46 ) AS col2 FROM tab1
----
0
46
0
46
0
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4967
SELECT ALL + SUM( ALL + + col2 ) col0 FROM tab2
----
121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4967
SELECT ALL + SUM ( ALL + + col2 ) col0 FROM tab2
----
121

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4968
SELECT - MIN( DISTINCT + 29 ) * CAST( NULL AS DECIMAL ) col0 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4968
SELECT - MIN ( DISTINCT + 29 ) * CAST ( NULL AS REAL ) col0 FROM tab1
----
NULL

query I rowsort
SELECT ALL - col2 + - - col0 * - ( - col2 ) AS col0 FROM tab0
----
658
860
9504

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN col1 AND - 63 + + + col0
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 64 / col1 BETWEEN - col1 AND NULL
----

query I rowsort
SELECT DISTINCT - col2 + + - col0 * - col2 FROM tab2 AS cor0
----
1035
2520
4292

query I rowsort
SELECT DISTINCT - - 84 + + col2 FROM tab1 cor0
----
143
152
180

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4974
SELECT ALL col0 col1, col0 * + - CAST( NULL AS SIGNED ) + - 94 AS col0 FROM tab2 cor0 WHERE NOT - 84 * 75 IS NULL
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-4974
SELECT ALL col0 col1, col0 * + - CAST ( NULL AS INTEGER ) + - 94 AS col0 FROM tab2 cor0 WHERE NOT - 84 * 75 IS NULL
----
46
NULL
64
NULL
75
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4975
SELECT ALL - 63 + 1 / + - CAST( NULL AS SIGNED ) * COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4975
SELECT ALL - 63 + 1 / + - CAST ( NULL AS INTEGER ) * COUNT ( * ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + 44 - - 40 * - 46 FROM tab0 AS cor0
----
-1796

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 24 col2 FROM tab2 cor0
----
-24
-24
-24

query I rowsort
SELECT ALL - - ( + - col0 ) + + col1 FROM tab1 cor0
----
-37
-44
-80

query I rowsort
SELECT ALL + 22 * + 15 - - + col1 FROM tab2 AS cor0
----
381
397
407

query II rowsort
SELECT - 0 - + col0 * col0 + - col2 AS col1, 67 AS col2 FROM tab1 AS cor0
----
-2697
67
-7284
67
-8349
67

query I rowsort
SELECT ALL col2 - - col2 + - - col2 FROM tab2 AS cor0
----
120
174
69

query I rowsort
SELECT col0 - + col1 * 45 FROM tab2 cor0
----
-2249
-2940
-3401

onlyif mysql # aggregate syntax: 
query II rowsort label-4983
SELECT - 62 AS col0, 24 - - COUNT( * ) + - COUNT( * ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
-62
24

skipif mysql # not compatible
query II rowsort label-4983
SELECT - 62 AS col0, 24 - - COUNT ( * ) + - COUNT ( * ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
-62
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 35 * ( + - 55 ) col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 5fedd640e1c0a9ea3fae9fb61fc59c31

query II rowsort
SELECT DISTINCT + col1 - + 16, col0 * + col0 AS col2 FROM tab1
----
-11
7225
-2
2601
31
8281

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL >= - col0 + - - col2 * - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 60 * + ( col2 ) col2 FROM tab1 cor0
----
-3540
-4080
-5760

query II rowsort
SELECT + ( col1 ), col0 FROM tab2 AS cor0
----
51
46
67
75
77
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + + ( ( + - 79 ) ) col0 FROM tab1 AS cor0
----
4661
5372
7584

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4990
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col0 * - col0 * + col1 + + - CAST( NULL AS SIGNED ) < + col0
----

skipif mysql # not compatible
query III rowsort label-4990
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col0 * - col0 * + col1 + + - CAST ( NULL AS INTEGER ) < + col0
----

query I rowsort
SELECT col0 + col0 FROM tab2 WHERE NOT - col1 IS NULL
----
128
150
92

query II rowsort
SELECT DISTINCT col1 AS col1, col1 AS col0 FROM tab2 WHERE col1 * - ( + - col1 ) IS NOT NULL
----
51
51
67
67
77
77

query II rowsort
SELECT DISTINCT col0 AS col1, + ( - - 99 ) FROM tab2 AS cor0
----
46
99
64
99
75
99

query I rowsort
SELECT + col1 * + - col1 * col2 FROM tab1 AS cor0
----
-1475
-150212
-18816

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4995
SELECT CAST( NULL AS DECIMAL ) * 47 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4995
SELECT CAST ( NULL AS REAL ) * 47 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4996
SELECT - 0 * - 11 + + CAST( NULL AS SIGNED ) + ( + col2 ) - - 55 + + 80 * - 42 / - 93 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4996
SELECT - 0 * - 11 + + CAST ( NULL AS INTEGER ) + ( + col2 ) - - 55 + + 80 * - 42 / - 93 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4997
SELECT DISTINCT COUNT( ALL 53 ) * + COUNT( * ) AS col0, + COUNT( * ) FROM tab2 AS cor0
----
9
3

skipif mysql # not compatible
query II rowsort label-4997
SELECT DISTINCT COUNT ( ALL 53 ) * + COUNT ( * ) AS col0, + COUNT ( * ) FROM tab2 AS cor0
----
9
3

query I rowsort
SELECT ALL - col0 + - + col0 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-174
-194
-30

query I rowsort
SELECT + col0 * - 89 + - - ( - 1 ) + - - col2 + - - 16 * - 1 FROM tab1 AS cor0
----
-4460
-7523
-8048

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5000
SELECT AVG ( col0 ) + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5000
SELECT AVG ( col0 ) + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT ALL ( - 58 ) AS col0 FROM tab0
----
-58
-58
-58

query II rowsort
SELECT DISTINCT - ( - + 96 ), col0 FROM tab2
----
96
46
96
64
96
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5003
SELECT DISTINCT - COUNT( * ) + + 94 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-5003
SELECT DISTINCT - COUNT ( * ) + + 94 FROM tab1
----
91

query III rowsort
SELECT * FROM tab1 WHERE - 29 <> NULL
----

query I rowsort
SELECT + col2 + col2 + 71 FROM tab2
----
117
151
187

query I rowsort
SELECT ALL 60 + - col0 + - col0 AS col0 FROM tab2 AS cor0
----
-32
-68
-90

query I rowsort
SELECT DISTINCT + col1 + col1 + col2 + + col1 FROM tab1 AS cor0
----
138
209
74

query II rowsort
SELECT - col0 + - ( 74 ) col1, 31 AS col1 FROM tab0 AS cor0 WHERE - col0 IS NOT NULL
----
-161
31
-171
31
-89
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5009
SELECT ALL MAX( ALL - 28 ) - 8 * 21 / CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 55 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5009
SELECT ALL MAX ( ALL - 28 ) - 8 * 21 / CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 55 IS NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 60 <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 70 + col2 col0 FROM tab1
----
129
138
166

query I rowsort
SELECT ALL col1 + + 16 FROM tab1
----
21
30
63

onlyif mysql # aggregate syntax: 
query I rowsort label-5013
SELECT DISTINCT - ( MAX( + - col0 ) ) + - - 66 + + ( + - COUNT( * ) ) AS col1 FROM tab2 AS cor0
----
109

skipif mysql # not compatible
query I rowsort label-5013
SELECT DISTINCT - ( MAX ( + - col0 ) ) + - - 66 + + ( + - COUNT ( * ) ) AS col1 FROM tab2 AS cor0
----
109

query I rowsort
SELECT ALL - col1 * - ( - - col2 ) + + + 49 + 79 * + col0 * - - col0 FROM tab2 AS cor0
----
168386
326713
448310

onlyif mysql # aggregate syntax: 
query I rowsort label-5015
SELECT DISTINCT - SUM( DISTINCT - 90 ) FROM tab0 AS cor0 WHERE + 74 / ( + col1 ) * - 77 IS NOT NULL
----
90

skipif mysql # not compatible
query I rowsort label-5015
SELECT DISTINCT - SUM ( DISTINCT - 90 ) FROM tab0 AS cor0 WHERE + 74 / ( + col1 ) * - 77 IS NOT NULL
----
90

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 = - + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5017
SELECT ALL - COUNT( * ) + + 46 AS col2 FROM tab1 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-5017
SELECT ALL - COUNT ( * ) + + 46 AS col2 FROM tab1 AS cor0
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-5018
SELECT - SUM( - + 64 ) FROM tab0 AS cor0
----
192

skipif mysql # not compatible
query I rowsort label-5018
SELECT - SUM ( - + 64 ) FROM tab0 AS cor0
----
192

query III rowsort
SELECT * FROM tab0 WHERE - ( + ( + ( - col0 ) ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col0 - + col2 + ( + 72 ) AS col2 FROM tab2
----
-32
-61
3

query I rowsort
SELECT DISTINCT - ( - - ( col1 ) ) FROM tab1
----
-14
-47
-5

query I rowsort
SELECT + ( - ( - - col0 ) ) FROM tab1
----
-51
-85
-91

query II rowsort
SELECT 47 * 16, col1 FROM tab1
----
752
14
752
47
752
5

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5024
SELECT col0 DIV + CAST( + - col1 AS SIGNED ) FROM tab0
----
-4
-97
0

skipif mysql # not compatible
query I rowsort label-5024
SELECT col0 / + CAST ( + - col1 AS INTEGER ) FROM tab0
----
-4
-97
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5025
SELECT DISTINCT 25 * COUNT( * ) col2 FROM tab0
----
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5025
SELECT DISTINCT 25 * COUNT ( * ) col2 FROM tab0
----
75

onlyif mysql # DIV for integer division: 
query II rowsort label-5026
SELECT DISTINCT + col1, + col2 DIV + col1 + + col0 FROM tab1 AS cor0
----
14
57
47
92
5
96

skipif mysql # not compatible
query II rowsort label-5026
SELECT DISTINCT + col1, + col2 / + col1 + + col0 FROM tab1 AS cor0
----
14
57
47
92
5
96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5027
SELECT * FROM tab2 WHERE NOT - CAST( NULL AS SIGNED ) > NULL
----

skipif mysql # not compatible
query III rowsort label-5027
SELECT * FROM tab2 WHERE NOT - CAST ( NULL AS INTEGER ) > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5028
SELECT DISTINCT 23 DIV - col0 * + col0 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5028
SELECT DISTINCT 23 / - col0 * + col0 AS col0 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5029
SELECT MIN( col1 ) AS col0 FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-5029
SELECT MIN ( col1 ) AS col0 FROM tab0 cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5030
SELECT ALL - + MIN( ALL + - col0 ) + 63 col2 FROM tab2 cor0
----
138

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5030
SELECT ALL - + MIN ( ALL + - col0 ) + 63 col2 FROM tab2 cor0
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-5031
SELECT ALL - COUNT( * ) FROM tab2 AS cor0 WHERE NULL BETWEEN - col2 AND - - col1
----
0

skipif mysql # not compatible
query I rowsort label-5031
SELECT ALL - COUNT ( * ) FROM tab2 AS cor0 WHERE NULL BETWEEN - col2 AND - - col1
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 21 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5033
SELECT * FROM tab0 AS cor0 WHERE NOT + CAST( 78 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5033
SELECT * FROM tab0 AS cor0 WHERE NOT + CAST ( 78 AS INTEGER ) IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5034
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL >= - CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-5034
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL >= - CAST ( NULL AS REAL )
----

query I rowsort
SELECT ALL + + 47 FROM tab0 WHERE ( NOT col2 IS NULL )
----
47
47
47

query I rowsort
SELECT DISTINCT + ( + 98 ) AS col0 FROM tab2
----
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 18 AS col0, + col1 col1 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + ( + col1 ) + col0 AS col0 FROM tab1
----
138
65
90

query I rowsort
SELECT + - col1 * + 92 + + col1 * - col1 AS col1 FROM tab2 AS cor0
----
-10653
-13013
-7293

query II rowsort
SELECT col0 * - - col1 * + col2 - col0 + ( col0 ) col0, col0 FROM tab1 AS cor0
----
25075
85
290836
91
68544
51

query I rowsort
SELECT col1 + + - col1 * col0 * col2 AS col0 FROM tab0 cor0
----
-18249
-57024
-9602

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5042
SELECT col2 FROM tab1 WHERE NOT NULL BETWEEN + col1 AND col1 + CAST( + col2 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-5042
SELECT col2 FROM tab1 WHERE NOT NULL BETWEEN + col1 AND col1 + CAST ( + col2 AS INTEGER )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5043
SELECT DISTINCT - MAX( col2 ) DIV 80 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5043
SELECT DISTINCT - MAX ( col2 ) / 80 FROM tab2
----
0

query III rowsort
SELECT * FROM tab0 WHERE 70 + + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 58 col0 FROM tab2 WHERE NOT + col0 IS NULL
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5046
SELECT 78 / - CAST( NULL AS SIGNED ) col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5046
SELECT 78 / - CAST ( NULL AS INTEGER ) col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5047
SELECT DISTINCT + CAST( 0 AS SIGNED ) - COUNT( * ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-5047
SELECT DISTINCT + CAST ( 0 AS INTEGER ) - COUNT ( * ) FROM tab2
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5048
SELECT MAX( DISTINCT - col2 ) DIV 59 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5048
SELECT MAX ( DISTINCT - col2 ) / 59 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5049
SELECT DISTINCT MAX( - col1 ) + 9 col0 FROM tab1
----
4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5049
SELECT DISTINCT MAX ( - col1 ) + 9 col0 FROM tab1
----
4

query III rowsort
SELECT * FROM tab1 WHERE ( col1 ) > ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col0 - - col0 IS NULL
----

query I rowsort
SELECT ALL + col0 FROM tab1 WHERE NULL IS NULL
----
51
85
91

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col1 < - 55
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5054
SELECT ALL * FROM tab0 WHERE NOT ( col0 + + CAST( NULL AS DECIMAL ) ) NOT BETWEEN col0 * 31 + + col0 / 89 AND col2
----

skipif mysql # not compatible
query III rowsort label-5054
SELECT ALL * FROM tab0 WHERE NOT ( col0 + + CAST ( NULL AS REAL ) ) NOT BETWEEN col0 * 31 + + col0 / 89 AND col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + 43 col1 FROM tab2 WHERE NOT NULL BETWEEN col1 * + 51 AND + col0 * col0 - 30
----

query I rowsort
SELECT 19 + + col2 * - 44 FROM tab2
----
-1741
-2533
-993

query I rowsort
SELECT DISTINCT + ( - 13 ) AS col1 FROM tab1
----
-13

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 2 + - col0 NOT IN ( - col0 )
----

query I rowsort
SELECT - col1 * 22 FROM tab1 cor0
----
-1034
-110
-308

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT - col1 + - col2 * - 48 NOT IN ( - col0 + col2 )
----

query I rowsort
SELECT + col0 AS col0 FROM tab2 AS cor0 WHERE NOT + ( col2 ) + 81 * col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5062
SELECT COUNT( * ) * + 92 FROM tab0 AS cor0
----
276

skipif mysql # not compatible
query I rowsort label-5062
SELECT COUNT ( * ) * + 92 FROM tab0 AS cor0
----
276

query I rowsort
SELECT ALL 53 * 72 AS col1 FROM tab2 AS cor0
----
3816
3816
3816

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col0 / + col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 col0 FROM tab2 WHERE col0 * + col0 - col2 * - 90 IN ( col0 + - col1 * + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5066
SELECT DISTINCT - COUNT( * ) + 83 AS col1 FROM tab1
----
80

skipif mysql # not compatible
query I rowsort label-5066
SELECT DISTINCT - COUNT ( * ) + 83 AS col1 FROM tab1
----
80

query I rowsort
SELECT col0 + - ( - 73 ) FROM tab1 AS cor0
----
124
158
164

onlyif mysql # DIV for integer division: 
query I rowsort label-5068
SELECT + 2 DIV col0 + 66 * + col1 AS col0 FROM tab2 AS cor0
----
3366
4422
5082

skipif mysql # not compatible
query I rowsort label-5068
SELECT + 2 / col0 + 66 * + col1 AS col0 FROM tab2 AS cor0
----
3366
4422
5082

onlyif mysql # aggregate syntax: 
query I rowsort label-5069
SELECT ALL COUNT( * ) * + 67 + - 21 AS col2 FROM tab2 AS cor0
----
180

skipif mysql # not compatible
query I rowsort label-5069
SELECT ALL COUNT ( * ) * + 67 + - 21 AS col2 FROM tab2 AS cor0
----
180

onlyif mysql # DIV for integer division: 
query I rowsort label-5070
SELECT DISTINCT + - 35 DIV col0 + + col1 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-5070
SELECT DISTINCT + - 35 / col0 + + col1 FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT ALL + - 55 * + 35 AS col2 FROM tab1 AS cor0
----
-1925
-1925
-1925

query I rowsort
SELECT ALL - + 58 * 2 AS col2 FROM tab1 AS cor0
----
-116
-116
-116

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5073
SELECT + 13 / CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0 WHERE ( col1 ) = NULL
----

skipif mysql # not compatible
query I rowsort label-5073
SELECT + 13 / CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0 WHERE ( col1 ) = NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( + col1 * 2 ) IS NOT NULL
----

query I rowsort
SELECT col0 + col2 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 IN ( 88 )
----

query I rowsort
SELECT + 35 FROM tab0 WHERE NULL <> NULL
----

query I rowsort
SELECT DISTINCT col2 * col0 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
1058
2560
4350

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( 63 ) NOT IN ( 80 )
----

query I rowsort
SELECT col1 FROM tab0 WHERE ( NULL ) NOT IN ( 72 )
----

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN NULL AND + 31
----

query I rowsort
SELECT ALL + col2 + 11 FROM tab0
----
110
21
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5083
SELECT CAST( NULL AS SIGNED ) * + + ( 82 ) * - col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5083
SELECT CAST ( NULL AS INTEGER ) * + + ( 82 ) * - col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - ( col0 ) + + 55 AS col1 FROM tab2
----
-20
-9
9

query I rowsort
SELECT ALL - col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL col2 + - col1 + col2 * - col2 AS col0 FROM tab2 AS cor0
----
-1637
-3373
-557

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 76 NOT IN ( + 41 * + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 83 col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

query I rowsort
SELECT + 78 + - col0 + + - 70 AS col1 FROM tab0
----
-7
-79
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5090
SELECT col1 AS col2 FROM tab0 WHERE - col2 BETWEEN ( - CAST( NULL AS SIGNED ) ) AND col0 + + col0 * - col2
----

skipif mysql # not compatible
query I rowsort label-5090
SELECT col1 AS col2 FROM tab0 WHERE - col2 BETWEEN ( - CAST ( NULL AS INTEGER ) ) AND col0 + + col0 * - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5091
SELECT COUNT( * ) + + 43 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
52

skipif mysql # not compatible
query I rowsort label-5091
SELECT COUNT ( * ) + + 43 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
52

query I rowsort
SELECT ALL 44 * - col2 AS col0 FROM tab2
----
-1012
-1760
-2552

onlyif mysql # aggregate syntax: 
query I rowsort label-5093
SELECT ALL - - 94 * COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
846

skipif mysql # not compatible
query I rowsort label-5093
SELECT ALL - - 94 * COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
846

query I rowsort
SELECT + ( + col2 ) + + + 42 FROM tab1
----
101
110
138

query I rowsort
SELECT - - 88 * + 54 + + col2 + - 78 FROM tab2 cor0
----
4697
4714
4732

onlyif mysql # aggregate syntax: 
query II rowsort label-5096
SELECT ALL + COUNT( * ) col2, SUM( col1 ) * 84 + + SUM( DISTINCT - col2 ) FROM tab2 AS cor0
----
3
16259

skipif mysql # not compatible
query II rowsort label-5096
SELECT ALL + COUNT ( * ) col2, SUM ( col1 ) * 84 + + SUM ( DISTINCT - col2 ) FROM tab2 AS cor0
----
3
16259

onlyif mysql # aggregate syntax: 
query I rowsort label-5097
SELECT + - MIN( - col0 ) col0 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5097
SELECT + - MIN ( - col0 ) col0 FROM tab0 AS cor0
----
97

query II rowsort
SELECT DISTINCT - + col0, col0 FROM tab2 cor0
----
-46
46
-64
64
-75
75

query I rowsort
SELECT ALL 10 FROM tab1 AS cor0 WHERE ( + col2 ) NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5100
SELECT + SUM( ALL - + 84 ) FROM tab1 AS cor0
----
-252

skipif mysql # not compatible
query I rowsort label-5100
SELECT + SUM ( ALL - + 84 ) FROM tab1 AS cor0
----
-252

query I rowsort
SELECT - col0 AS col2 FROM tab1 cor0 WHERE NOT + col2 * col2 <= ( col2 * + ( - 19 * col1 ) )
----
-51
-85
-91

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) IN ( + 56 - + col2 )
----

query I rowsort
SELECT DISTINCT col2 * 32 * - col0 * - col0 FROM tab2
----
10440000
1557376
5242880

onlyif mysql # aggregate syntax: 
query II rowsort label-5104
SELECT SUM( DISTINCT - + 24 ) AS col1, - COUNT( * ) AS col1 FROM tab1
----
-24
-3

skipif mysql # not compatible
query II rowsort label-5104
SELECT SUM ( DISTINCT - + 24 ) AS col1, - COUNT ( * ) AS col1 FROM tab1
----
-24
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 90 ) col2 FROM tab0
----
90
90
90

query I rowsort
SELECT + col0 * col1 * 70 FROM tab2
----
164220
344960
351750

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5107
SELECT ALL + CAST( NULL AS SIGNED ) / - 92 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5107
SELECT ALL + CAST ( NULL AS INTEGER ) / - 92 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5108
SELECT + col1 DIV - col2 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-5108
SELECT + col1 / - col2 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-1
-2
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL IN ( - 99 + - 74 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 * + col1 * ( + col1 * - col2 ) IS NOT NULL
----

query I rowsort
SELECT ALL + 90 * + 60 FROM tab2
----
5400
5400
5400

query I rowsort
SELECT col2 + - 36 AS col1 FROM tab2
----
-13
22
4

query I rowsort
SELECT + col2 + + col2 + - - col1 FROM tab0
----
175
199
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5114
SELECT + 46 * CAST( NULL AS SIGNED ) + + col2 + col1 + + col2 * col2 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5114
SELECT + 46 * CAST ( NULL AS INTEGER ) + + col2 + col1 + + col2 * col2 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 + - col2 * - - col0 * 69 FROM tab1 AS cor0
----
-337728
-345976
-426904

query II rowsort
SELECT ALL - ( - + col2 ) * col1 col1, ( + 21 ) AS col0 FROM tab2 cor0
----
1173
21
3080
21
3886
21

query I rowsort
SELECT ALL - 84 + col0 * - + col2 AS col2 FROM tab0 AS cor0
----
-789
-954
-9687

query I rowsort
SELECT col2 * - col0 - col1 FROM tab1 AS cor0
----
-4910
-5020
-6235

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 * col1 <> ( + - 70 - + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + + 0 * col0 FROM tab2 cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 16 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + ( - 31 ) - col0 FROM tab1
----
-116
-122
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-5123
SELECT - COUNT( * ) FROM tab2 WHERE ( + col0 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5123
SELECT - COUNT ( * ) FROM tab2 WHERE ( + col0 ) IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5124
SELECT DISTINCT * FROM tab0 WHERE NULL IN ( + + 35, CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5124
SELECT DISTINCT * FROM tab0 WHERE NULL IN ( + + 35, CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT - col2 + - col1 * col2 FROM tab2 AS cor0
----
-1196
-3120
-3944

query I rowsort
SELECT - - col1 + 66 AS col0 FROM tab1 cor0
----
113
71
80

query II rowsort
SELECT + 44 col1, + 29 + + col2 FROM tab2 AS cor0
----
44
52
44
69
44
87

onlyif mysql # DIV for integer division: 
query I rowsort label-5128
SELECT ALL col1 DIV - 2 - - col2 + - 61 * 97 - + col1 FROM tab0 AS cor0
----
-5819
-5938
-5991

skipif mysql # not compatible
query I rowsort label-5128
SELECT ALL col1 / - 2 - - col2 + - 61 * 97 - + col1 FROM tab0 AS cor0
----
-5819
-5938
-5991

query II rowsort
SELECT 21 * - col0 AS col0, 37 + - col0 FROM tab2 AS cor0
----
-1344
-27
-1575
-38
-966
-9

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( + col2 + + col1 + + + col2 + + col1 * + col1 * col0 NOT IN ( col1 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5131
SELECT DISTINCT - + COUNT( + + 34 ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5131
SELECT DISTINCT - + COUNT ( + + 34 ) AS col0 FROM tab0 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-5132
SELECT - 29 DIV + 89 AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5132
SELECT - 29 / + 89 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col0 * + 53 * + col1 AS col0 FROM tab1 AS cor0
----
-22525
-226681
-37842

onlyif mysql # aggregate syntax: 
query I rowsort label-5134
SELECT + MIN( - 54 ) * - 26 AS col2 FROM tab1 AS cor0
----
1404

skipif mysql # not compatible
query I rowsort label-5134
SELECT + MIN ( - 54 ) * - 26 AS col2 FROM tab1 AS cor0
----
1404

onlyif mysql # aggregate syntax: 
query I rowsort label-5135
SELECT ALL - COUNT( ALL col1 ) AS col1 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-5135
SELECT ALL - COUNT ( ALL col1 ) AS col1 FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5136
SELECT ALL MIN( DISTINCT col1 ) AS col2 FROM tab1 WHERE + + col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5136
SELECT ALL MIN ( DISTINCT col1 ) AS col2 FROM tab1 WHERE + + col1 IS NULL
----
NULL

query I rowsort
SELECT DISTINCT col1 * - 94 AS col1 FROM tab1 AS cor0
----
-1316
-4418
-470

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-5138
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT - CAST( NULL AS SIGNED ) IS NOT NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

skipif mysql # not compatible
query IIIIII rowsort label-5138
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT - CAST ( NULL AS INTEGER ) IS NOT NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

query III rowsort
SELECT * FROM tab1 WHERE ( 25 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 81 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN 2 + + col0 + + col1 / ( + + 70 ) * - - 95 AND ( - - col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5142
SELECT DISTINCT + col2 + + col2 DIV - 17 col0 FROM tab2 AS cor0
----
22
38
55

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5142
SELECT DISTINCT + col2 + + col2 / - 17 col0 FROM tab2 AS cor0
----
22
38
55

query II rowsort
SELECT + col2 + + 64 + + col0 + - + 32 * + col2 AS col0, + col1 FROM tab0 AS cor0
----
-1378
81
-159
21
-2908
1

query I rowsort
SELECT - - 41 + + 96 AS col0 FROM tab0 AS cor0
----
137
137
137

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5145
SELECT 53 + + 24 * + SUM( DISTINCT - CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5145
SELECT 53 + + 24 * + SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 cor0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 61 IN ( - 75, 93, 47 )
----

query II rowsort
SELECT DISTINCT + col2 - + col1 AS col1, col0 FROM tab0 AS cor0
----
-11
87
-34
15
98
97

query I rowsort
SELECT ALL - - 53 FROM tab1 WHERE NOT + + col1 * col2 IS NULL
----
53
53
53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 33 * + col0 * + + col2 col0 FROM tab0
----
-23265
-28710
-316899

query I rowsort
SELECT DISTINCT + 36 * - col1 + - 3 FROM tab0
----
-2919
-39
-759

query I rowsort
SELECT - 0 * + ( col0 ) FROM tab1
----
0
0
0

query III rowsort
SELECT * FROM tab1 WHERE - ( + + 62 ) IS NULL
----

query I rowsort
SELECT - 18 * + col0 AS col0 FROM tab0
----
-1566
-1746
-270

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - + col2 + + 4 + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5155
SELECT - COUNT( * ) * + 19 FROM tab1
----
-57

skipif mysql # not compatible
query I rowsort label-5155
SELECT - COUNT ( * ) * + 19 FROM tab1
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-5156
SELECT ALL - 7 + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-5156
SELECT ALL - 7 + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-5157
SELECT 56 - - - SUM( DISTINCT col0 ) AS col1 FROM tab1 AS cor0
----
-171

skipif mysql # not compatible
query I rowsort label-5157
SELECT 56 - - - SUM ( DISTINCT col0 ) AS col1 FROM tab1 AS cor0
----
-171

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE ( NOT - + 98 IS NULL )
----
23
40
58

query III rowsort
SELECT * FROM tab2 WHERE NOT + 0 + - 69 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + + 29 AS col1 FROM tab0 cor0 CROSS JOIN tab0 cor1
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-5161
SELECT + ( SUM( col2 ) ) AS col2 FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-5161
SELECT + ( SUM ( col2 ) ) AS col2 FROM tab2
----
121

query I rowsort
SELECT - + ( - col1 ) - 15 AS col2 FROM tab1 WHERE NOT NULL >= + + col1 - + 41
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( col2 = + + col0 + 57 ) OR ( NULL ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - + 98 AS col0 FROM tab2 AS cor0 WHERE NOT 15 - - + 49 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5165
SELECT ALL SUM( ALL + 31 ) FROM tab1 cor0
----
93

skipif mysql # not compatible
query I rowsort label-5165
SELECT ALL SUM ( ALL + 31 ) FROM tab1 cor0
----
93

query II rowsort
SELECT DISTINCT - col0 col0, col2 AS col2 FROM tab0 AS cor0
----
-15
47
-87
10
-97
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5167
SELECT ALL COUNT( * ) FROM tab0 AS cor0 WHERE NOT + 76 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-5167
SELECT ALL COUNT ( * ) FROM tab0 AS cor0 WHERE NOT + 76 IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5168
SELECT - - COUNT( * ) FROM tab2 AS cor0 WHERE NOT - 91 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-5168
SELECT - - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT - 91 IS NULL
----
3

query II rowsort
SELECT ALL - col2 AS col1, col0 AS col1 FROM tab2 AS cor0
----
-23
46
-40
64
-58
75

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - ( + - 53 ) + - + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5171
SELECT ALL ( + 75 ) * - COUNT( * ) FROM tab2
----
-225

skipif mysql # not compatible
query I rowsort label-5171
SELECT ALL ( + 75 ) * - COUNT ( * ) FROM tab2
----
-225

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5172
SELECT ALL * FROM tab2 WHERE + col2 NOT BETWEEN + ( - CAST( + col1 AS SIGNED ) ) * - 26 - col1 + + CAST( NULL AS SIGNED ) * 23 AND ( + col0 )
----

skipif mysql # not compatible
query III rowsort label-5172
SELECT ALL * FROM tab2 WHERE + col2 NOT BETWEEN + ( - CAST ( + col1 AS INTEGER ) ) * - 26 - col1 + + CAST ( NULL AS INTEGER ) * 23 AND ( + col0 )
----

query I rowsort
SELECT ( - + ( - - 31 ) ) AS col2 FROM tab0
----
-31
-31
-31

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL = - 70
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL BETWEEN ( NULL ) AND - + 94
----

query II rowsort
SELECT DISTINCT + col1 * - col2 AS col1, - 51 FROM tab2 AS cor0
----
-1173
-51
-3080
-51
-3886
-51

query I rowsort
SELECT ALL + col0 + - + 87 + + col2 AS col2 FROM tab0 AS cor0
----
-25
10
109

query I rowsort
SELECT DISTINCT + col2 * + 35 + - 28 AS col1 FROM tab0 AS cor0
----
1617
322
3437

query I rowsort
SELECT ALL 23 * - col1 AS col2 FROM tab0
----
-1863
-23
-483

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN - 37 AND + + col2
----

query I rowsort
SELECT ALL + col2 + - 65 FROM tab1 AS cor0
----
-6
3
31

query I rowsort
SELECT ALL - ( - + 17 ) AS col1 FROM tab2 AS cor0 WHERE - col2 <> col2
----
17
17
17

query I rowsort
SELECT DISTINCT + 69 + 34 FROM tab0 cor0
----
103

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NOT + col1 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col0 * + col2 * + + col0 + col2 FROM tab0 AS cor0
----
-10528
-75680
-931392

query I rowsort
SELECT ( - - 76 ) FROM tab1 AS cor0 WHERE 27 * col2 IS NOT NULL
----
76
76
76

onlyif mysql # aggregate syntax: 
query I rowsort label-5187
SELECT ALL + COUNT( * ) - + 36 FROM tab1 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-5187
SELECT ALL + COUNT ( * ) - + 36 FROM tab1 AS cor0
----
-33

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 * + + col0 + + - 50 IS NOT NULL
----

query II rowsort
SELECT ALL + - col2 AS col1, - 59 + - col0 AS col0 FROM tab0 WHERE NOT - + 56 IS NULL
----
-10
-146
-47
-74
-99
-156

query I rowsort
SELECT 61 + - - col0 + - 28 + col2 FROM tab1
----
177
180
192

query I rowsort
SELECT ALL 58 * - + col2 - - ( col1 ) FROM tab2
----
-1283
-2243
-3297

onlyif mysql # aggregate syntax: 
query I rowsort label-5192
SELECT ALL + - COUNT( * ) col0 FROM tab1 WHERE NOT 55 <> - 80
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5192
SELECT ALL + - COUNT ( * ) col0 FROM tab1 WHERE NOT 55 <> - 80
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5193
SELECT DISTINCT + ( - 82 ) * + 46 * - ( COUNT( * ) ) + - - COUNT( * ) FROM tab1
----
11319

skipif mysql # not compatible
query I rowsort label-5193
SELECT DISTINCT + ( - 82 ) * + 46 * - ( COUNT ( * ) ) + - - COUNT ( * ) FROM tab1
----
11319

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 97 * + - col2 * col1 col2 FROM tab1
----
-130368
-28615
-310012

query I rowsort
SELECT DISTINCT + col1 * 83 * - - col0 FROM tab0
----
100845
151641
8051

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5196
SELECT * FROM tab1 WHERE + - 92 - - 68 * + col0 / - col2 < + - col0 / col0 / col1 * - - CAST( NULL AS SIGNED ) + + 15
----

skipif mysql # not compatible
query III rowsort label-5196
SELECT * FROM tab1 WHERE + - 92 - - 68 * + col0 / - col2 < + - col0 / col0 / col1 * - - CAST ( NULL AS INTEGER ) + + 15
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5197
SELECT ALL + + SUM( col2 ) FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-5197
SELECT ALL + + SUM ( col2 ) FROM tab2 AS cor0
----
121

query II rowsort
SELECT - col0 * - + 46 * + + col0 + + + col1, 53 AS col2 FROM tab1 AS cor0
----
119660
53
332355
53
380973
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5199
SELECT + col1 / - + col2 * + + col1 FROM tab0 cor0 WHERE NOT - CAST( - + 48 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5199
SELECT + col1 / - + col2 * + + col1 FROM tab0 cor0 WHERE NOT - CAST ( - + 48 AS INTEGER ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5200
SELECT + - 55 DIV - + 85 col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5200
SELECT + - 55 / - + 85 col2 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - + col0 * + 80 col2 FROM tab2 AS cor0
----
187680
394240
402000

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NOT + col2 IS NOT NULL )
----

query I rowsort
SELECT DISTINCT - ( + 89 ) FROM tab1 AS cor0
----
-89

query I rowsort
SELECT - 70 * + 79 * - col0 FROM tab1 AS cor0
----
282030
470050
503230

onlyif mysql # aggregate syntax: 
query I rowsort label-5205
SELECT + - SUM( DISTINCT + - col2 ) FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-5205
SELECT + - SUM ( DISTINCT + - col2 ) FROM tab2 AS cor0
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-5206
SELECT ( + - COUNT( * ) ) + + 54 col2 FROM tab1
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5206
SELECT ( + - COUNT ( * ) ) + + 54 col2 FROM tab1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5207
SELECT DISTINCT ( + - 32 ) * - ( - COUNT( * ) ) FROM tab2
----
-96

skipif mysql # not compatible
query I rowsort label-5207
SELECT DISTINCT ( + - 32 ) * - ( - COUNT ( * ) ) FROM tab2
----
-96

query I rowsort
SELECT DISTINCT 33 + - + col2 FROM tab1
----
-26
-35
-63

query II rowsort
SELECT ( - - 17 ) AS col0, - col1 * + col1 FROM tab0 AS cor0
----
17
-1
17
-441
17
-6561

query I rowsort
SELECT DISTINCT col1 * - + col2 + - col1 FROM tab0 AS cor0
----
-100
-231
-3888

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab0 cor0 WHERE NOT - col0 * + - 91 + + col2 + + + col0 IS NULL
----
15
87
97

query I rowsort
SELECT DISTINCT + - col1 + 15 AS col2 FROM tab0 AS cor0
----
-6
-66
14

onlyif mysql # aggregate syntax: 
query I rowsort label-5213
SELECT DISTINCT - + SUM( + - 43 ) AS col2 FROM tab2 AS cor0
----
129

skipif mysql # not compatible
query I rowsort label-5213
SELECT DISTINCT - + SUM ( + - 43 ) AS col2 FROM tab2 AS cor0
----
129

query II rowsort
SELECT DISTINCT col0 AS col1, col2 AS col2 FROM tab2 AS cor0
----
46
23
64
40
75
58

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL <> 19
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5216
SELECT DISTINCT - ( + ( + - COUNT( DISTINCT + col0 ) ) ) + - + 1 FROM tab1
----
2

skipif mysql # not compatible
query I rowsort label-5216
SELECT DISTINCT - ( + ( + - COUNT ( DISTINCT + col0 ) ) ) + - + 1 FROM tab1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5217
SELECT + COUNT( * ) + + COUNT( DISTINCT + 57 ) FROM tab2 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-5217
SELECT + COUNT ( * ) + + COUNT ( DISTINCT + 57 ) FROM tab2 AS cor0
----
4

query II rowsort
SELECT - + 82 * - + col0 + - col1 AS col1, + 8 * - + col2 AS col1 FROM tab1 AS cor0
----
4168
-768
6965
-472
7415
-544

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL BETWEEN ( - col1 ) AND 90
----

query II rowsort
SELECT + + col0 + + col0, 32 AS col1 FROM tab1 AS cor0
----
102
32
170
32
182
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5221
SELECT DISTINCT CAST( NULL AS SIGNED ) * - col2 * + 57 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5221
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - col2 * + 57 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 - + 2 col2 FROM tab0 AS cor0
----
-1
19
79

query I rowsort
SELECT - ( - - col2 ) AS col0 FROM tab1 cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT col0 + + 22 + + col2 * col0 AS col0 FROM tab2 AS cor0
----
1126
2646
4447

query I rowsort
SELECT ALL 52 * - 41 AS col2 FROM tab0
----
-2132
-2132
-2132

onlyif mysql # aggregate syntax: 
query I rowsort label-5226
SELECT DISTINCT MAX( ALL + + col0 ) * - 98 AS col2 FROM tab2
----
-7350

skipif mysql # not compatible
query I rowsort label-5226
SELECT DISTINCT MAX ( ALL + + col0 ) * - 98 AS col2 FROM tab2
----
-7350

query II rowsort
SELECT ALL - col0 * - col2 - 97 AS col0, 54 + col0 AS col1 FROM tab0
----
608
69
773
141
9506
151

onlyif mysql # DIV for integer division: 
query I rowsort label-5228
SELECT ALL + col2 DIV 99 * 45 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5228
SELECT ALL + col2 / 99 * 45 FROM tab1
----
0
0
0

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL = + + col2 + - col1
----

query II rowsort
SELECT ALL - + col0 AS col1, + col1 AS col1 FROM tab2 AS cor0
----
-46
51
-64
77
-75
67

query I rowsort
SELECT ALL + col0 * + + 84 FROM tab0 AS cor0
----
1260
7308
8148

onlyif mysql # aggregate syntax: 
query II rowsort label-5232
SELECT DISTINCT - 49 AS col2, COUNT( * ) FROM tab2 cor0
----
-49
3

skipif mysql # not compatible
query II rowsort label-5232
SELECT DISTINCT - 49 AS col2, COUNT ( * ) FROM tab2 cor0
----
-49
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5233
SELECT ALL - CAST( + 25 AS SIGNED ) FROM tab1 AS cor0
----
-25
-25
-25

skipif mysql # not compatible
query I rowsort label-5233
SELECT ALL - CAST ( + 25 AS INTEGER ) FROM tab1 AS cor0
----
-25
-25
-25

query II rowsort
SELECT DISTINCT - col2 * - + col2 AS col1, - col2 * + col0 * - col1 AS col0 FROM tab1
----
3481
25075
4624
290836
9216
68544

onlyif mysql # DIV for integer division: 
query I rowsort label-5235
SELECT ALL col0 * col1 DIV + col2 AS col2 FROM tab0
----
0
182
25

skipif mysql # not compatible
query I rowsort label-5235
SELECT ALL col0 * col1 / + col2 AS col2 FROM tab0
----
0
182
25

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 >= + col0
----
85
5
59
91
47
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5237
SELECT COUNT( * ) AS col1 FROM tab2 cor0 WHERE NOT 97 * 2 IN ( - col1, col2 )
----
3

skipif mysql # not compatible
query I rowsort label-5237
SELECT COUNT ( * ) AS col1 FROM tab2 cor0 WHERE NOT 97 * 2 IN ( - col1, col2 )
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5238
SELECT DISTINCT col1 * col1 + - + col0 + - col0 AS col0 FROM tab2 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) + - col2 / + col1 IS NOT NULL
----
2509
4339
5801

skipif mysql # not compatible
query I rowsort label-5238
SELECT DISTINCT col1 * col1 + - + col0 + - col0 AS col0 FROM tab2 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) + - col2 / + col1 IS NOT NULL
----
2509
4339
5801

query I rowsort
SELECT ALL - ( - col0 ) FROM tab2 cor0 WHERE NOT + col1 + - 63 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5240
SELECT - col1 DIV + 90 + + col1 * + + col0 FROM tab1 AS cor0
----
425
4277
714

skipif mysql # not compatible
query I rowsort label-5240
SELECT - col1 / + 90 + + col1 * + + col0 FROM tab1 AS cor0
----
425
4277
714

query I rowsort
SELECT ALL + + col2 * col2 + - 0 + + + 20 AS col2 FROM tab1 AS cor0
----
3501
4644
9236

onlyif mysql # aggregate syntax: 
query I rowsort label-5242
SELECT - MAX( DISTINCT + - col0 ) col2 FROM tab1
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5242
SELECT - MAX ( DISTINCT + - col0 ) col2 FROM tab1
----
51

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 59 IN ( - 25 * - + col1 + + 39 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col2 FROM tab0 WHERE NOT NULL <= + + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5245
SELECT 24 + - 12 FROM tab2 WHERE + - CAST( - col1 AS SIGNED ) * + 29 * CAST( - col2 AS SIGNED ) IN ( 53 + + - col0 )
----

skipif mysql # not compatible
query I rowsort label-5245
SELECT 24 + - 12 FROM tab2 WHERE + - CAST ( - col1 AS INTEGER ) * + 29 * CAST ( - col2 AS INTEGER ) IN ( 53 + + - col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5246
SELECT col2 DIV + 61 * + col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5246
SELECT col2 / + 61 * + col0 FROM tab2
----
0
0
0

query III rowsort
SELECT * FROM tab1 WHERE - + col2 + - 39 * - 84 + 99 + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5248
SELECT + col2 col0 FROM tab1 WHERE - CAST( + 3 AS SIGNED ) / + col1 * 93 * + ( + col1 ) IS NOT NULL
----
59
68
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5248
SELECT + col2 col0 FROM tab1 WHERE - CAST ( + 3 AS INTEGER ) / + col1 * 93 * + ( + col1 ) IS NOT NULL
----
59
68
96

onlyif mysql # DIV for integer division: 
query I rowsort label-5249
SELECT ALL 98 DIV col1 AS col1 FROM tab1
----
19
2
7

skipif mysql # not compatible
query I rowsort label-5249
SELECT ALL 98 / col1 AS col1 FROM tab1
----
19
2
7

onlyif mysql # aggregate syntax: 
query I rowsort label-5250
SELECT - COUNT( * ) + + COUNT( DISTINCT col0 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5250
SELECT - COUNT ( * ) + + COUNT ( DISTINCT col0 ) FROM tab0 AS cor0
----
0

query II rowsort
SELECT DISTINCT - 13 AS col2, - col0 * - col2 * + ( + col0 ) FROM tab2 AS cor0
----
-13
163840
-13
326250
-13
48668

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5252
SELECT - + CAST( col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-5252
SELECT - + CAST ( col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-5253
SELECT DISTINCT - MAX( + col1 ) + - MAX( ( - 91 ) ) FROM tab2 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-5253
SELECT DISTINCT - MAX ( + col1 ) + - MAX ( ( - 91 ) ) FROM tab2 AS cor0
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5254
SELECT col0 / col0 - + col0 + 90 / - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5254
SELECT col0 / col0 - + col0 + 90 / - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5255
SELECT DISTINCT - - 36 DIV 41 + + COUNT( * ) col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5255
SELECT DISTINCT - - 36 / 41 + + COUNT ( * ) col2 FROM tab2 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 56 > - col0 * + + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 21 + - - 30 - + col2 FROM tab1 AS cor0
----
-50
-59
-87

query I rowsort
SELECT - 6 - - 99 FROM tab2 AS cor0
----
93
93
93

query I rowsort
SELECT DISTINCT ( - - col0 ) * - col0 - - 37 * + 69 FROM tab0 AS cor0
----
-5016
-6856
2328

onlyif mysql # aggregate syntax: 
query I rowsort label-5260
SELECT ALL + + ( + ( COUNT( * ) ) ) - - + COUNT( * ) AS col0 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-5260
SELECT ALL + + ( + ( COUNT ( * ) ) ) - - + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
6

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5261
SELECT CAST( NULL AS SIGNED ) + + col1 * - - col1 / - - CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5261
SELECT CAST ( NULL AS INTEGER ) + + col1 * - - col1 / - - CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT ( - 83 ) AS col1, + 20 FROM tab1
----
-83
20

query I rowsort
SELECT col1 * - - ( - - 86 ) * - - 90 FROM tab0 AS cor0
----
162540
626940
7740

query I rowsort
SELECT DISTINCT - col1 * - col0 * - 16 FROM tab2 AS cor0
----
-37536
-78848
-80400

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5265
SELECT - - MAX( ALL + col2 ) DIV - 46 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5265
SELECT - - MAX ( ALL + col2 ) / - 46 FROM tab2 AS cor0
----
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-5266
SELECT ALL + 11 * col2 DIV - - col1, + ( - col2 ) AS col1 FROM tab0 AS cor0
----
1089
-99
5
-10
6
-47

skipif mysql # not compatible
query II rowsort label-5266
SELECT ALL + 11 * col2 / - - col1, + ( - col2 ) AS col1 FROM tab0 AS cor0
----
1089
-99
5
-10
6
-47

query I rowsort
SELECT - col0 * ( + 52 ) AS col1 FROM tab0 AS cor0
----
-4524
-5044
-780

onlyif mysql # aggregate syntax: 
query I rowsort label-5268
SELECT ALL - - COUNT( * ) * - ( + COUNT( * ) ) + - MAX( + 12 ) FROM tab1 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-5268
SELECT ALL - - COUNT ( * ) * - ( + COUNT ( * ) ) + - MAX ( + 12 ) FROM tab1 AS cor0
----
-21

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT IN ( col0 * + col0 * - col0 + - col1 )
----

query I rowsort
SELECT 37 * ( + col2 ) * col0 AS col2 FROM tab2
----
160950
39146
94720

query II rowsort
SELECT ALL - col0, + col2 * - + 52 AS col1 FROM tab0 AS cor0
----
-15
-2444
-87
-520
-97
-5148

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5272
SELECT - ( + col1 ) * + CAST( - 7 AS SIGNED ) FROM tab0 AS cor0
----
147
567
7

skipif mysql # not compatible
query I rowsort label-5272
SELECT - ( + col1 ) * + CAST ( - 7 AS INTEGER ) FROM tab0 AS cor0
----
147
567
7

onlyif mysql # aggregate syntax: 
query II rowsort label-5273
SELECT + + COUNT( * ) AS col1, 7 FROM tab1 AS cor0
----
3
7

skipif mysql # not compatible
query II rowsort label-5273
SELECT + + COUNT ( * ) AS col1, 7 FROM tab1 AS cor0
----
3
7

onlyif mysql # aggregate syntax: 
query I rowsort label-5274
SELECT + - 67 * - + COUNT( * ) FROM tab2 AS cor0
----
201

skipif mysql # not compatible
query I rowsort label-5274
SELECT + - 67 * - + COUNT ( * ) FROM tab2 AS cor0
----
201

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5275
SELECT ALL CAST( NULL AS DECIMAL ) * + col0 + col2 + - - col2 + + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5275
SELECT ALL CAST ( NULL AS REAL ) * + col0 + col2 + - - col2 + + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * - - col2 FROM tab0 cor0
----
100
2209
9801

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5277
SELECT ALL - col0 FROM tab0 AS cor0 WHERE NOT ( ( - + 91 ) ) NOT BETWEEN CAST( - col2 AS DECIMAL ) + + col1 AND col0
----
-97

skipif mysql # not compatible
query I rowsort label-5277
SELECT ALL - col0 FROM tab0 AS cor0 WHERE NOT ( ( - + 91 ) ) NOT BETWEEN CAST ( - col2 AS REAL ) + + col1 AND col0
----
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5278
SELECT + 42 * + col2 + 35 * + + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5278
SELECT + 42 * + col2 + 35 * + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5279
SELECT ( - col1 ) + 30 AS col2, col2 DIV col1 AS col1 FROM tab2 AS cor0
----
-21
0
-37
0
-47
0

skipif mysql # not compatible
query II rowsort label-5279
SELECT ( - col1 ) + 30 AS col2, col2 / col1 AS col1 FROM tab2 AS cor0
----
-21
0
-37
0
-47
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5280
SELECT DISTINCT + + col2 DIV + + 19 col1 FROM tab2 cor0
----
1
2
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5280
SELECT DISTINCT + + col2 / + + 19 col1 FROM tab2 cor0
----
1
2
3

query I rowsort
SELECT ALL + 15 * - - col2 + + - 93 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5282
SELECT - SUM( - 39 ) AS col2 FROM tab2 WHERE NULL IS NULL
----
117

skipif mysql # not compatible
query I rowsort label-5282
SELECT - SUM ( - 39 ) AS col2 FROM tab2 WHERE NULL IS NULL
----
117

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5283
SELECT ALL 53 DIV + 14 AS col2, CAST( NULL AS SIGNED ) FROM tab0
----
3
NULL
3
NULL
3
NULL

skipif mysql # not compatible
query II rowsort label-5283
SELECT ALL 53 / + 14 AS col2, CAST ( NULL AS INTEGER ) FROM tab0
----
3
NULL
3
NULL
3
NULL

query I rowsort
SELECT + 73 * + col1 FROM tab2
----
3723
4891
5621

onlyif mysql # DIV for integer division: 
query I rowsort label-5285
SELECT ALL - - col2 + - col1 DIV col0 * - + col1 AS col0 FROM tab0 AS cor0
----
10
452
99

skipif mysql # not compatible
query I rowsort label-5285
SELECT ALL - - col2 + - col1 / col0 * - + col1 AS col0 FROM tab0 AS cor0
----
10
452
99

query I rowsort
SELECT - - ( + + 15 ) FROM tab1 AS cor0
----
15
15
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5287
SELECT + CAST( NULL AS SIGNED ) + - + col0 - + col0 * col0 * + - col0 FROM tab2 AS cor0 WHERE - 75 = - col2 + 22
----

skipif mysql # not compatible
query I rowsort label-5287
SELECT + CAST ( NULL AS INTEGER ) + - + col0 - + col0 * col0 * + - col0 FROM tab2 AS cor0 WHERE - 75 = - col2 + 22
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE col2 * + col1 * + 44 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-5289
SELECT DISTINCT + col1 DIV 58 + 35 + - col2 AS col0 FROM tab0 AS cor0
----
-11
-64
25

skipif mysql # not compatible
query I rowsort label-5289
SELECT DISTINCT + col1 / 58 + 35 + - col2 AS col0 FROM tab0 AS cor0
----
-11
-64
25

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col0 BETWEEN 25 AND + col0 AND NOT NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5291
SELECT ALL - - COUNT( * ) FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-5291
SELECT ALL - - COUNT ( * ) FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( col1 ) BETWEEN col2 AND NULL
----

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab2 AS cor0 WHERE - 80 BETWEEN - col2 / + col2 + + + 2 AND - col2 * - col1 + - + 46
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5294
SELECT ALL - MAX( DISTINCT + 29 ) FROM tab2 AS cor0
----
-29

skipif mysql # not compatible
query I rowsort label-5294
SELECT ALL - MAX ( DISTINCT + 29 ) FROM tab2 AS cor0
----
-29

query I rowsort
SELECT + col1 FROM tab1 AS cor0 WHERE NOT ( - col1 * 38 IS NOT NULL )
----

query I rowsort
SELECT + 7 FROM tab0 AS cor0 WHERE NOT + col2 - + col0 >= - + col1
----
7

query I rowsort
SELECT + - ( - 68 ) * + + 86 - - col0 AS col2 FROM tab2 AS cor0
----
5894
5912
5923

query II rowsort
SELECT DISTINCT + col1 AS col2, + 12 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
14
12
47
12
5
12

query I rowsort
SELECT ( - col1 ) * + ( + + col1 ) FROM tab2
----
-2601
-4489
-5929

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5300
SELECT ALL - 9 * col1 * + + CAST( NULL AS SIGNED ) * ( + col2 ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5300
SELECT ALL - 9 * col1 * + + CAST ( NULL AS INTEGER ) * ( + col2 ) AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5301
SELECT ALL SUM( ALL + 28 ) AS col0 FROM tab0
----
84

skipif mysql # not compatible
query I rowsort label-5301
SELECT ALL SUM ( ALL + 28 ) AS col0 FROM tab0
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5302
SELECT ALL - CAST( + - COUNT( * ) AS SIGNED ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5302
SELECT ALL - CAST ( + - COUNT ( * ) AS INTEGER ) AS col0 FROM tab0
----
3

query II rowsort
SELECT - 87, + col0 FROM tab2
----
-87
46
-87
64
-87
75

onlyif mysql # aggregate syntax: 
query II rowsort label-5304
SELECT ALL 32 AS col1, COUNT( * ) FROM tab2
----
32
3

skipif mysql # not compatible
query II rowsort label-5304
SELECT ALL 32 AS col1, COUNT ( * ) FROM tab2
----
32
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 17 + + 54 IN ( col0, - col0, 17, - - col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5306
SELECT ALL SUM( CAST( NULL AS SIGNED ) ) AS col2, - MAX( ALL CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5306
SELECT ALL SUM ( CAST ( NULL AS INTEGER ) ) AS col2, - MAX ( ALL CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5307
SELECT ALL - - 51 * - COUNT( * ) FROM tab1 AS cor0
----
-153

skipif mysql # not compatible
query I rowsort label-5307
SELECT ALL - - 51 * - COUNT ( * ) FROM tab1 AS cor0
----
-153

query I rowsort
SELECT DISTINCT col2 * col1 + + 17 AS col0 FROM tab0 AS cor0
----
116
227
3824

onlyif mysql # DIV for integer division: 
query II rowsort label-5309
SELECT ALL - col0 AS col1, - ( + col1 ) + - + col2 + col0 DIV + - col1 + + col2 + - col1 - - - col2 - + col0 + + col2 * ( - col2 ) * + + ( + 71 ) FROM tab0 AS cor0
----
-15
-157063
-87
-7243
-97
-696166

skipif mysql # not compatible
query II rowsort label-5309
SELECT ALL - col0 AS col1, - ( + col1 ) + - + col2 + col0 / + - col1 + + col2 + - col1 - - - col2 - + col0 + + col2 * ( - col2 ) * + + ( + 71 ) FROM tab0 AS cor0
----
-15
-157063
-87
-7243
-97
-696166

query I rowsort
SELECT ALL - 39 + + col1 AS col0 FROM tab0 AS cor0
----
-18
-38
42

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN + col2 AND - + col1
----

query I rowsort
SELECT DISTINCT - col0 + + col2 FROM tab0 AS cor0 WHERE + col0 <> NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 IS NULL OR NOT NULL IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col1 - + 18 FROM tab2 WHERE NULL IS NULL
----
33
49
59

query I rowsort
SELECT DISTINCT + ( 42 ) FROM tab2
----
42

query I rowsort
SELECT ALL + ( - 93 ) AS col2 FROM tab2
----
-93
-93
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5317
SELECT - 32 + CAST( NULL AS SIGNED ) + - - col2 / 28 / - + col2 + 67 + + 22 col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5317
SELECT - 32 + CAST ( NULL AS INTEGER ) + - - col2 / 28 / - + col2 + 67 + + 22 col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 69 + + 92 FROM tab0
----
161

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 66 NOT BETWEEN + col2 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - 99 ) + + col0 BETWEEN - + col0 * - 14 * col2 - - col2 + - ( - + col2 ) + - 18 AND - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5321
SELECT + 50 + + + 23 + + + 21 * + + COUNT( * ) FROM tab0 AS cor0
----
136

skipif mysql # not compatible
query I rowsort label-5321
SELECT + 50 + + + 23 + + + 21 * + + COUNT ( * ) FROM tab0 AS cor0
----
136

query I rowsort
SELECT ALL + col2 FROM tab2 AS cor0 WHERE NULL >= - col1
----

query I rowsort
SELECT 37 + + col0 FROM tab2 AS cor0
----
101
112
83

query I rowsort
SELECT ALL - col2 - + - col2 * + + col2 AS col0 FROM tab0
----
2162
90
9702

onlyif mysql # DIV for integer division: 
query I rowsort label-5325
SELECT - 77 DIV - col0 AS col2 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5325
SELECT - 77 / - col0 AS col2 FROM tab1 AS cor0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5326
SELECT + SUM( + 30 ) AS col2 FROM tab0 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-5326
SELECT + SUM ( + 30 ) AS col2 FROM tab0 AS cor0
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5327
SELECT ALL + 21 FROM tab2 WHERE NULL >= col1 * - - 15 / CAST( NULL AS SIGNED ) + + + 13
----

skipif mysql # not compatible
query I rowsort label-5327
SELECT ALL + 21 FROM tab2 WHERE NULL >= col1 * - - 15 / CAST ( NULL AS INTEGER ) + + + 13
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5328
SELECT DISTINCT - ( - + MAX( + + col0 ) ) FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-5328
SELECT DISTINCT - ( - + MAX ( + + col0 ) ) FROM tab2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5329
SELECT - + ( + + 35 ) - + - MIN( + col0 ) AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
16

skipif mysql # not compatible
query I rowsort label-5329
SELECT - + ( + + 35 ) - + - MIN ( + col0 ) AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-5330
SELECT ALL + + COUNT( * ) AS col0 FROM tab0 WHERE 9 + - col1 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-5330
SELECT ALL + + COUNT ( * ) AS col0 FROM tab0 WHERE 9 + - col1 IS NOT NULL
----
3

query II rowsort
SELECT ALL - ( + ( + 50 ) ), + col1 FROM tab1
----
-50
14
-50
47
-50
5

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 * - col1 <= - 77
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL ( - - 50 ) FROM tab2
----
50
50
50

onlyif mysql # aggregate syntax: 
query I rowsort label-5334
SELECT + ( COUNT( * ) ) * + - COUNT( * ) * + 35 FROM tab2 AS cor0
----
-315

skipif mysql # not compatible
query I rowsort label-5334
SELECT + ( COUNT ( * ) ) * + - COUNT ( * ) * + 35 FROM tab2 AS cor0
----
-315

onlyif mysql # aggregate syntax: 
query I rowsort label-5335
SELECT + ( + + MAX( + + col1 ) ) FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-5335
SELECT + ( + + MAX ( + + col1 ) ) FROM tab1 AS cor0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5336
SELECT DISTINCT ( + MAX( DISTINCT + 63 ) ) FROM tab2
----
63

skipif mysql # not compatible
query I rowsort label-5336
SELECT DISTINCT ( + MAX ( DISTINCT + 63 ) ) FROM tab2
----
63

query I rowsort
SELECT ALL + - col0 + + - 42 * col1 AS col1 FROM tab2 AS cor0
----
-2188
-2889
-3298

query I rowsort
SELECT + 53 + col1 FROM tab0 cor0
----
134
54
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 + + col1 col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT - col0 / 12 * - ( - col1 ) + + - ( + - 3 ) AS col0 FROM tab1 AS cor0 WHERE - col2 >= ( 19 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 92 * 9 + + 59 < - + 4
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 42 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( + 43 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5343
SELECT ALL - CAST( - + 8 AS SIGNED ) FROM tab1 AS cor0
----
8
8
8

skipif mysql # not compatible
query I rowsort label-5343
SELECT ALL - CAST ( - + 8 AS INTEGER ) FROM tab1 AS cor0
----
8
8
8

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab1 WHERE NOT 69 NOT BETWEEN + + col0 AND + col1
----

query I rowsort
SELECT DISTINCT - col1 + + col2 + + col1 * - + col1 FROM tab1
----
-114
-2188
29

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5346
SELECT ALL + ( + col1 ), - CAST( 86 AS SIGNED ) AS col2 FROM tab2
----
51
-86
67
-86
77
-86

skipif mysql # not compatible
query II rowsort label-5346
SELECT ALL + ( + col1 ), - CAST ( 86 AS INTEGER ) AS col2 FROM tab2
----
51
-86
67
-86
77
-86

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col1 + - col0 IS NOT NULL
----

query I rowsort
SELECT ALL col0 + + 89 AS col1 FROM tab0
----
104
176
186

onlyif mysql # aggregate syntax: 
query I rowsort label-5349
SELECT DISTINCT - COUNT( * ) * 24 col2 FROM tab1
----
-72

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5349
SELECT DISTINCT - COUNT ( * ) * 24 col2 FROM tab1
----
-72

query III rowsort
SELECT ALL * FROM tab0 WHERE - 13 NOT IN ( + - 81, 23 ) OR NOT - col1 / + ( - + col1 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5351
SELECT ALL - SUM( ALL + + col1 ) + + 45 AS col2 FROM tab0
----
-58

skipif mysql # not compatible
query I rowsort label-5351
SELECT ALL - SUM ( ALL + + col1 ) + + 45 AS col2 FROM tab0
----
-58

query I rowsort
SELECT + col1 * 83 * + 57 + - 5 AS col2 FROM tab2 AS cor0
----
241276
316972
364282

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5353
SELECT ALL CAST( NULL AS SIGNED ) * + - col1 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5353
SELECT ALL CAST ( NULL AS INTEGER ) * + - col1 AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5354
SELECT + CAST( NULL AS SIGNED ) * - - col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5354
SELECT + CAST ( NULL AS INTEGER ) * - - col0 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT - + 39 > + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 * - 16 - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col0 * + 26 FROM tab1 AS cor0
----
1326
2210
2366

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5358
SELECT ALL - COUNT( * ) / - - AVG ( DISTINCT + col1 ) + + + AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5358
SELECT ALL - COUNT ( * ) / - - AVG ( DISTINCT + col1 ) + + + AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0, - col2 col2 FROM tab1 cor0
----
-51
-96
-85
-59
-91
-68

onlyif mysql # aggregate syntax: 
query II rowsort label-5360
SELECT ALL 6 AS col2, + ( 3 ) + COUNT( * ) col0 FROM tab2 AS cor0
----
6
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5360
SELECT ALL 6 AS col2, + ( 3 ) + COUNT ( * ) col0 FROM tab2 AS cor0
----
6
6

query I rowsort
SELECT ALL - ( + - col0 ) FROM tab1 cor0
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5362
SELECT - ( + + COUNT( * ) ) * ( - - COUNT( * ) ) AS col1 FROM tab1 WHERE NOT + col1 IS NULL
----
-9

skipif mysql # not compatible
query I rowsort label-5362
SELECT - ( + + COUNT ( * ) ) * ( - - COUNT ( * ) ) AS col1 FROM tab1 WHERE NOT + col1 IS NULL
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5363
SELECT - 4 * + CAST( + col2 AS SIGNED ) FROM tab2
----
-160
-232
-92

skipif mysql # not compatible
query I rowsort label-5363
SELECT - 4 * + CAST ( + col2 AS INTEGER ) FROM tab2
----
-160
-232
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-5364
SELECT MIN( - 35 ) FROM tab2
----
-35

skipif mysql # not compatible
query I rowsort label-5364
SELECT MIN ( - 35 ) FROM tab2
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-5365
SELECT MIN( DISTINCT + - ( - 94 ) ) FROM tab2
----
94

skipif mysql # not compatible
query I rowsort label-5365
SELECT MIN ( DISTINCT + - ( - 94 ) ) FROM tab2
----
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 32 col2 FROM tab1
----
-32

query I rowsort
SELECT 62 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0

query I rowsort
SELECT ALL + + col1 + - - col2 + + 83 FROM tab2 AS cor0 WHERE NULL BETWEEN 72 - + 11 AND 31 * - 29
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE - col2 NOT BETWEEN + 47 * - col0 / - col0 - + 27 * - col2 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5370
SELECT ( CAST( - + ( COUNT( * ) ) AS SIGNED ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5370
SELECT ( CAST ( - + ( COUNT ( * ) ) AS INTEGER ) ) FROM tab0 AS cor0
----
-3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 + + + 59 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 30 + + 19 col0 FROM tab1 AS cor0
----
49
49
49

query I rowsort
SELECT DISTINCT + 21 + + col1 AS col0 FROM tab1 AS cor0
----
26
35
68

query III rowsort
SELECT * FROM tab1 cor0 WHERE col2 + + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5375
SELECT + 11 - - - MAX( ALL col0 ) FROM tab1 AS cor0
----
-80

skipif mysql # not compatible
query I rowsort label-5375
SELECT + 11 - - - MAX ( ALL col0 ) FROM tab1 AS cor0
----
-80

query I rowsort
SELECT + ( - 50 ) - col0 AS col1 FROM tab1
----
-101
-135
-141

query II rowsort
SELECT DISTINCT col0, + 64 FROM tab1
----
51
64
85
64
91
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5378
SELECT ALL + 81 - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5378
SELECT ALL + 81 - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5379
SELECT ALL MAX( col1 ) FROM tab2 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5379
SELECT ALL MAX ( col1 ) FROM tab2 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5380
SELECT DISTINCT 97 - + - SUM( CAST( NULL AS DECIMAL ) ) - - COUNT( + col0 ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5380
SELECT DISTINCT 97 - + - SUM ( CAST ( NULL AS REAL ) ) - - COUNT ( + col0 ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT 95 + + col0 FROM tab1
----
146
180
186

onlyif mysql # aggregate syntax: 
query I rowsort label-5382
SELECT COUNT( * ) + - + MIN( + - 30 ) AS col1 FROM tab1 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-5382
SELECT COUNT ( * ) + - + MIN ( + - 30 ) AS col1 FROM tab1 AS cor0
----
33

query I rowsort
SELECT DISTINCT - 11 / - - 22 - - ( col2 ) FROM tab0 cor0 WHERE NOT - col0 * + ( col0 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5384
SELECT DISTINCT ( - - col2 ) + + 34 DIV + 71 * 35 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-5384
SELECT DISTINCT ( - - col2 ) + + 34 / + 71 * 35 FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT ALL + + 25 - - col1 FROM tab1 AS cor0
----
30
39
72

query III rowsort
SELECT * FROM tab0 WHERE NOT 39 <= - col2 + - + 57
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5387
SELECT ALL ( COUNT( * ) ) * 58 DIV - 77 FROM tab2
----
-2

skipif mysql # not compatible
query I rowsort label-5387
SELECT ALL ( COUNT ( * ) ) * 58 / - 77 FROM tab2
----
-2

query I rowsort
SELECT DISTINCT 30 * 88 * + - col1 AS col2 FROM tab1
----
-124080
-13200
-36960

query I rowsort
SELECT DISTINCT + col0 + - col1 * col1 FROM tab2 AS cor0 WHERE NOT ( + + 78 ) IS NULL
----
-2555
-4414
-5865

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5390
SELECT - ( COUNT( * ) ) DIV + + 70 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5390
SELECT - ( COUNT ( * ) ) / + + 70 FROM tab0 AS cor0
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 <> col1 + 38
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5392
SELECT ALL 30 DIV + + col2 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5392
SELECT ALL 30 / + + col2 AS col1 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5393
SELECT DISTINCT MIN( + col2 ) AS col1 FROM tab0 WHERE - + 38 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5393
SELECT DISTINCT MIN ( + col2 ) AS col1 FROM tab0 WHERE - + 38 IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5394
SELECT ALL + CAST( NULL AS SIGNED ) * - + ( col0 ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5394
SELECT ALL + CAST ( NULL AS INTEGER ) * - + ( col0 ) AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + ( + + 17 ) FROM tab1 WHERE NULL > 21
----

query I rowsort
SELECT + ( + ( + col2 ) ) AS col0 FROM tab0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5397
SELECT COUNT( * ) * + + 97 AS col2 FROM tab1
----
291

skipif mysql # not compatible
query I rowsort label-5397
SELECT COUNT ( * ) * + + 97 AS col2 FROM tab1
----
291

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5398
SELECT DISTINCT - SUM( ALL CAST( + col2 AS SIGNED ) ) + - COUNT( * ) - + COUNT( ALL - col1 ) * - 92 * - - COUNT( * ) AS col0 FROM tab2 AS cor0
----
704

skipif mysql # not compatible
query I rowsort label-5398
SELECT DISTINCT - SUM ( ALL CAST ( + col2 AS INTEGER ) ) + - COUNT ( * ) - + COUNT ( ALL - col1 ) * - 92 * - - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
704

query II rowsort
SELECT ALL col2 + + - 81 * - col1 AS col0, col0 AS col1 FROM tab1 AS cor0
----
1230
51
3875
91
464
85

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5400
SELECT ALL COUNT( * ) + + COUNT( * ) / AVG ( + CAST( NULL AS DECIMAL ) ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5400
SELECT ALL COUNT ( * ) + + COUNT ( * ) / AVG ( + CAST ( NULL AS REAL ) ) FROM tab1 cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5401
SELECT + col2 DIV + ( col0 ) * - + col2 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5401
SELECT + col2 / + ( col0 ) * - + col2 AS col2 FROM tab2
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col1 + - - col2 + + 68 * + col0 NOT IN ( + + 75, ( + col2 ) / - col1, - + col1, + - 70 + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 49 + + 99 + - + col1 col0 FROM tab2
----
71
81
97

onlyif mysql # DIV for integer division: 
query I rowsort label-5404
SELECT - 31 DIV 89 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-5404
SELECT - 31 / 89 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN - col2 * 78 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5406
SELECT DISTINCT - 66 DIV col1 * + - col0 + - col1 - + col1 DIV - + col2 AS col2 FROM tab1 AS cor0
----
1100
190
44

skipif mysql # not compatible
query I rowsort label-5406
SELECT DISTINCT - 66 / col1 * + - col0 + - col1 - + col1 / - + col2 AS col2 FROM tab1 AS cor0
----
1100
190
44

query I rowsort
SELECT ALL - + col0 + + 78 FROM tab0 AS cor0
----
-19
-9
63

onlyif mysql # aggregate syntax: 
query I rowsort label-5408
SELECT - + COUNT( * ) + SUM( + col1 ) FROM tab2 AS cor0
----
192

skipif mysql # not compatible
query I rowsort label-5408
SELECT - + COUNT ( * ) + SUM ( + col1 ) FROM tab2 AS cor0
----
192

query I rowsort
SELECT - - col0 AS col1 FROM tab2 AS cor0 WHERE 98 * - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5410
SELECT DISTINCT - + COUNT( * ) + + - 27 + - - MIN( DISTINCT + - col2 ) AS col0 FROM tab0 AS cor0
----
-129

skipif mysql # not compatible
query I rowsort label-5410
SELECT DISTINCT - + COUNT ( * ) + + - 27 + - - MIN ( DISTINCT + - col2 ) AS col0 FROM tab0 AS cor0
----
-129

onlyif mysql # aggregate syntax: 
query I rowsort label-5411
SELECT 77 + - COUNT( * ) FROM tab0 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-5411
SELECT 77 + - COUNT ( * ) FROM tab0 AS cor0
----
74

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col0 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 * - col0 + + col1 = + 79
----

query I rowsort
SELECT - 48 AS col2 FROM tab0 AS cor0 WHERE - 49 <= + ( - - col2 )
----
-48
-48
-48

query II rowsort
SELECT 84 col1, col2 * + col1 * + ( 90 ) * + + 55 FROM tab1
----
84
1460250
84
15820200
84
6652800

query I rowsort
SELECT DISTINCT col1 - col0 + - ( col2 ) FROM tab0
----
-195
-76
19

onlyif mysql # aggregate syntax: 
query I rowsort label-5417
SELECT ALL 54 - - MIN( DISTINCT + col2 ) FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-5417
SELECT ALL 54 - - MIN ( DISTINCT + col2 ) FROM tab2
----
77

query I rowsort
SELECT DISTINCT + 46 - + + ( col2 ) AS col0 FROM tab2
----
-12
23
6

query I rowsort
SELECT col2 * 24 FROM tab2
----
1392
552
960

query I rowsort
SELECT - col1 - + 79 FROM tab1
----
-126
-84
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-5421
SELECT 5 - + COUNT( * ) FROM tab1
----
2

skipif mysql # not compatible
query I rowsort label-5421
SELECT 5 - + COUNT ( * ) FROM tab1
----
2

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col1 < ( 66 * col0 )
----

query I rowsort
SELECT DISTINCT col1 * - 5 AS col2 FROM tab0
----
-105
-405
-5

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL < 14
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5425
SELECT ALL - COUNT( * ), - COUNT( * ) col0 FROM tab0 AS cor0
----
-3
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5425
SELECT ALL - COUNT ( * ), - COUNT ( * ) col0 FROM tab0 AS cor0
----
-3
-3

query I rowsort
SELECT - + ( - - 4 ) FROM tab2 AS cor0
----
-4
-4
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-5427
SELECT DISTINCT + 80 * - COUNT( * ) * - MAX( + col0 ) AS col1 FROM tab1 AS cor0
----
21840

skipif mysql # not compatible
query I rowsort label-5427
SELECT DISTINCT + 80 * - COUNT ( * ) * - MAX ( + col0 ) AS col1 FROM tab1 AS cor0
----
21840

query I rowsort
SELECT 82 FROM tab1 AS cor0 WHERE NOT + col2 = + 80
----
82
82
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 75 * - ( - - ( 86 ) ) col2 FROM tab0 cor0
----
-6450
-6450
-6450

query I rowsort
SELECT DISTINCT 41 * + ( - 87 ) AS col0 FROM tab1
----
-3567

query I rowsort
SELECT DISTINCT - col0 + 62 AS col1 FROM tab2
----
-13
-2
16

query I rowsort
SELECT ALL - col2 + col0 * + col1 FROM tab1 AS cor0 WHERE NULL >= 27
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL = + ( - 22 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5434
SELECT DISTINCT + 29 DIV + col1 - col2 + - col1 * - + col0 col2 FROM tab2 AS cor0
----
2323
4888
4967

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5434
SELECT DISTINCT + 29 / + col1 - col2 + - col1 * - + col0 col2 FROM tab2 AS cor0
----
2323
4888
4967

onlyif mysql # aggregate syntax: 
query I rowsort label-5435
SELECT 44 + - ( - + COUNT( * ) ) + + COUNT( * ) AS col1 FROM tab1 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-5435
SELECT 44 + - ( - + COUNT ( * ) ) + + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
50

query I rowsort
SELECT + col1 + col1 + - col2 AS col2 FROM tab1 AS cor0 WHERE ( NOT NULL IS NULL )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NOT NULL NOT IN ( - 81, col0, col2 ) )
----

query I rowsort
SELECT + col0 - col0 + - col0 * + + col1 FROM tab0 AS cor0
----
-1215
-1827
-97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 BETWEEN ( col1 ) AND col2 - + col1
----
97
1
99

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5440
SELECT DISTINCT - CAST( col0 AS SIGNED ) - + - ( - - col1 ) DIV - col0 AS col2 FROM tab2 AS cor0
----
-47
-65
-75

skipif mysql # not compatible
query I rowsort label-5440
SELECT DISTINCT - CAST ( col0 AS INTEGER ) - + - ( - - col1 ) / - col0 AS col2 FROM tab2 AS cor0
----
-47
-65
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-5441
SELECT DISTINCT + - COUNT( * ), 9 AS col2 FROM tab1 AS cor0
----
-3
9

skipif mysql # not compatible
query II rowsort label-5441
SELECT DISTINCT + - COUNT ( * ), 9 AS col2 FROM tab1 AS cor0
----
-3
9

query I rowsort
SELECT - col0 * - col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
4896
5015
6188

onlyif mysql # DIV for integer division: 
query II rowsort label-5443
SELECT - col2 + + + col2 + + + col0 + - 5 DIV - - col0 AS col1, col1 AS col2 FROM tab1
----
51
14
85
5
91
47

skipif mysql # not compatible
query II rowsort label-5443
SELECT - col2 + + + col2 + + + col0 + - 5 / - - col0 AS col1, col1 AS col2 FROM tab1
----
51
14
85
5
91
47

query I rowsort
SELECT ALL + 36 - - col1 FROM tab0
----
117
37
57

query II rowsort
SELECT 8 * - col1 + - - col1 + + - 60, + 69 AS col0 FROM tab1
----
-158
69
-389
69
-95
69

onlyif mysql # aggregate syntax: 
query I rowsort label-5446
SELECT DISTINCT COUNT( * ) - - 85 col0 FROM tab0
----
88

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5446
SELECT DISTINCT COUNT ( * ) - - 85 col0 FROM tab0
----
88

query I rowsort
SELECT - col1 * + + 10 AS col2 FROM tab2 AS cor0
----
-510
-670
-770

onlyif mysql # aggregate syntax: 
query I rowsort label-5448
SELECT - MIN( ALL - 86 ) AS col1 FROM tab0 AS cor0
----
86

skipif mysql # not compatible
query I rowsort label-5448
SELECT - MIN ( ALL - 86 ) AS col1 FROM tab0 AS cor0
----
86

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL <> 29
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5450
SELECT + 50 * + COUNT( * ) FROM tab0, tab2 AS cor0
----
450

skipif mysql # not compatible
query I rowsort label-5450
SELECT + 50 * + COUNT ( * ) FROM tab0, tab2 AS cor0
----
450

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 11 col1 FROM tab2, tab2 cor0
----
9 values hashing to 05cc989122d7724c7abefaba9625ef3d

query II rowsort
SELECT - col2, 68 AS col2 FROM tab1 AS cor0 WHERE NOT - col1 < - 57 * - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5453
SELECT ALL CAST( + - col2 AS SIGNED ) FROM tab1 cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-5453
SELECT ALL CAST ( + - col2 AS INTEGER ) FROM tab1 cor0
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-5454
SELECT DISTINCT + COUNT( * ) * + 40 FROM tab2 AS cor0
----
120

skipif mysql # not compatible
query I rowsort label-5454
SELECT DISTINCT + COUNT ( * ) * + 40 FROM tab2 AS cor0
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-5455
SELECT + 66 * + 65 * COUNT( - 51 ) AS col1 FROM tab0 AS cor0
----
12870

skipif mysql # not compatible
query I rowsort label-5455
SELECT + 66 * + 65 * COUNT ( - 51 ) AS col1 FROM tab0 AS cor0
----
12870

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE NOT 45 * - 73 * - 43 / - col1 / + ( col2 ) IS NULL
----
46
64
75

onlyif mysql # DIV for integer division: 
query I rowsort label-5457
SELECT DISTINCT - col1 DIV - 29 AS col0 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-5457
SELECT DISTINCT - col1 / - 29 AS col0 FROM tab1 AS cor0
----
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5458
SELECT ALL * FROM tab0 WHERE NOT - CAST( + 50 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5458
SELECT ALL * FROM tab0 WHERE NOT - CAST ( + 50 AS INTEGER ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5459
SELECT DISTINCT + col2, 63 DIV - col1 FROM tab2
----
23
-1
40
0
58
0

skipif mysql # not compatible
query II rowsort label-5459
SELECT DISTINCT + col2, 63 / - col1 FROM tab2
----
23
-1
40
0
58
0

query II rowsort
SELECT DISTINCT 97 AS col0, - col1 FROM tab1
----
97
-14
97
-47
97
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5461
SELECT MIN( DISTINCT 53 ) FROM tab2
----
53

skipif mysql # not compatible
query I rowsort label-5461
SELECT MIN ( DISTINCT 53 ) FROM tab2
----
53

query I rowsort
SELECT - 47 FROM tab0 WHERE + + col2 = - + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5463
SELECT DISTINCT COUNT( * ) + + SUM( col0 ) FROM tab0
----
202

skipif mysql # not compatible
query I rowsort label-5463
SELECT DISTINCT COUNT ( * ) + + SUM ( col0 ) FROM tab0
----
202

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5464
SELECT + - col0 * 53 + - col1 FROM tab2 cor0 WHERE 77 NOT BETWEEN NULL AND + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-5464
SELECT + - col0 * 53 + - col1 FROM tab2 cor0 WHERE 77 NOT BETWEEN NULL AND + - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL + 19 * - + ( 50 ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) <> col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5466
SELECT SUM( 18 ) AS col1 FROM tab2 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-5466
SELECT SUM ( 18 ) AS col1 FROM tab2 AS cor0
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5467
SELECT DISTINCT 43 * + col2 AS col1, 42 * CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
2021
NULL
4257
NULL
430
NULL

skipif mysql # not compatible
query II rowsort label-5467
SELECT DISTINCT 43 * + col2 AS col1, 42 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
2021
NULL
4257
NULL
430
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5468
SELECT ALL COUNT( * ) + + - 87 FROM tab0 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-5468
SELECT ALL COUNT ( * ) + + - 87 FROM tab0 AS cor0
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-5469
SELECT ALL + COUNT( DISTINCT col0 ) + 51 + + 56 FROM tab2 AS cor0
----
110

skipif mysql # not compatible
query I rowsort label-5469
SELECT ALL + COUNT ( DISTINCT col0 ) + 51 + + 56 FROM tab2 AS cor0
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-5470
SELECT MIN( ALL - ( - col2 ) ) FROM tab1 AS cor0 WHERE NULL BETWEEN + ( col2 ) * - ( + col0 ) + - col2 AND - - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5470
SELECT MIN ( ALL - ( - col2 ) ) FROM tab1 AS cor0 WHERE NULL BETWEEN + ( col2 ) * - ( + col0 ) + - col2 AND - - col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5471
SELECT ALL - - 75 FROM tab0 AS cor0 WHERE CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5471
SELECT ALL - - 75 FROM tab0 AS cor0 WHERE CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5472
SELECT - COUNT( * ) - - ( 12 ) FROM tab1 AS cor0 WHERE 29 + col1 * 43 + 90 * + + col0 / - col0 IS NULL
----
12

skipif mysql # not compatible
query I rowsort label-5472
SELECT - COUNT ( * ) - - ( 12 ) FROM tab1 AS cor0 WHERE 29 + col1 * 43 + 90 * + + col0 / - col0 IS NULL
----
12

query I rowsort
SELECT ALL + col1 + + + col1 + + col2 + - ( - col2 ) AS col1 FROM tab1 AS cor0
----
128
220
230

query I rowsort
SELECT ALL + col2 - - 91 FROM tab0 cor0
----
101
138
190

onlyif mysql # aggregate syntax: 
query I rowsort label-5475
SELECT DISTINCT COUNT( * ) * - 70 FROM tab2, tab1 AS cor0
----
-630

skipif mysql # not compatible
query I rowsort label-5475
SELECT DISTINCT COUNT ( * ) * - 70 FROM tab2, tab1 AS cor0
----
-630

query II rowsort
SELECT DISTINCT - col1 AS col1, col2 + ( - + 29 ) AS col1 FROM tab2 WHERE - col2 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 + - col2 IS NOT NULL
----

query I rowsort
SELECT - ( - - col2 ) AS col0 FROM tab1
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-5479
SELECT ALL COUNT( * ) col2, - 30 AS col2 FROM tab1
----
3
-30

skipif mysql # not compatible
query II rowsort label-5479
SELECT ALL COUNT ( * ) col2, - 30 AS col2 FROM tab1
----
3
-30

query I rowsort
SELECT ( - - 97 ) * 39 FROM tab1
----
3783
3783
3783

onlyif mysql # DIV for integer division: 
query I rowsort label-5481
SELECT 56 * 3 DIV + col2 FROM tab0
----
1
16
3

skipif mysql # not compatible
query I rowsort label-5481
SELECT 56 * 3 / + col2 FROM tab0
----
1
16
3

query I rowsort
SELECT - ( 75 ) * + col2 * col0 AS col1 FROM tab2 WHERE NOT ( + col0 * + 84 IS NULL )
----
-192000
-326250
-79350

query I rowsort
SELECT - col1 * 37 FROM tab0
----
-2997
-37
-777

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 - col2 col0 FROM tab2
----
17
23
24

query I rowsort
SELECT DISTINCT - col2 * 54 + + col0 AS col0 FROM tab1
----
-3101
-3581
-5133

onlyif mysql # aggregate syntax: 
query I rowsort label-5486
SELECT - COUNT( * ) col0 FROM tab2 WHERE + 28 NOT BETWEEN ( col0 ) AND ( NULL )
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5486
SELECT - COUNT ( * ) col0 FROM tab2 WHERE + 28 NOT BETWEEN ( col0 ) AND ( NULL )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5487
SELECT DISTINCT COUNT( * ) - - COUNT( * ) * COUNT( * ) col2 FROM tab1
----
12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5487
SELECT DISTINCT COUNT ( * ) - - COUNT ( * ) * COUNT ( * ) col2 FROM tab1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-5488
SELECT ALL - ( COUNT( * ) ) + - 30 FROM tab0
----
-33

skipif mysql # not compatible
query I rowsort label-5488
SELECT ALL - ( COUNT ( * ) ) + - 30 FROM tab0
----
-33

query I rowsort
SELECT 99 AS col1 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT ( - ( 74 ) ) AS col2 FROM tab2
----
-74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + ( 75 ) col0 FROM tab2
----
3450
4800
5625

onlyif mysql # DIV for integer division: 
query I rowsort label-5492
SELECT - col1 * - col2 - - col2 DIV col0 AS col2 FROM tab2
----
1173
3080
3886

skipif mysql # not compatible
query I rowsort label-5492
SELECT - col1 * - col2 - - col2 / col0 AS col2 FROM tab2
----
1173
3080
3886

query I rowsort
SELECT 43 FROM tab1 WHERE NOT col2 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE + 74 * 14 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 34 * - col0 = NULL
----

query I rowsort
SELECT 67 FROM tab2 WHERE + 1 IS NOT NULL
----
67
67
67

query I rowsort
SELECT ALL - 89 * + col1 AS col1 FROM tab1
----
-1246
-4183
-445

query I rowsort
SELECT ALL 2 * col1 AS col0 FROM tab0
----
162
2
42

query I rowsort
SELECT + ( + 43 ) AS col1 FROM tab2
----
43
43
43

query I rowsort
SELECT - 67 * + col1 FROM tab1 WHERE NOT col1 = 19
----
-3149
-335
-938

query I rowsort
SELECT ALL ( + col0 ) * col1 FROM tab0 WHERE NOT col2 - 67 NOT IN ( - col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5502
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab0 WHERE NOT NULL >= - CAST( + col1 AS SIGNED ) * 84 + + col0
----
0

skipif mysql # not compatible
query I rowsort label-5502
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab0 WHERE NOT NULL >= - CAST ( + col1 AS INTEGER ) * 84 + + col0
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 70 + col1 <> ( - 77 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5504
SELECT CAST( NULL AS SIGNED ) + col2 / - col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5504
SELECT CAST ( NULL AS INTEGER ) + col2 / - col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT 5 + + col0 * col1 FROM tab2
----
2351
4933
5030

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 44 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - ( + col1 ) + ( + 44 ) <= + col2 / col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 53 * + col1 + col1 AS col1 FROM tab1
----
-2444
-260
-728

query I rowsort
SELECT ( - col0 ) * + 2 FROM tab1
----
-102
-170
-182

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 + ( 73 ) / col1 = ( NULL )
----

query I rowsort
SELECT DISTINCT col2 + 10 AS col1 FROM tab0 AS cor0
----
109
20
57

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + ( - col2 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5513
SELECT ALL + COUNT( * ) + - COUNT( ALL 4 ) FROM tab0 AS cor0 WHERE NOT NULL > ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-5513
SELECT ALL + COUNT ( * ) + - COUNT ( ALL 4 ) FROM tab0 AS cor0 WHERE NOT NULL > ( NULL )
----
0

query I rowsort
SELECT col0 FROM tab2 cor0 WHERE NULL IS NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5515
SELECT + 85 + - COUNT( * ) * 45 FROM tab1 AS cor0
----
-50

skipif mysql # not compatible
query I rowsort label-5515
SELECT + 85 + - COUNT ( * ) * 45 FROM tab1 AS cor0
----
-50

query I rowsort
SELECT col2 + col1 * + 56 FROM tab2 AS cor0
----
2879
3810
4352

query I rowsort
SELECT DISTINCT - ( 21 ) * + 45 AS col2 FROM tab0
----
-945

query I rowsort
SELECT col2 FROM tab1 WHERE col2 >= + col0 * - 63 + + col2
----
59
68
96

query I rowsort
SELECT DISTINCT 38 * col0 AS col0 FROM tab0
----
3306
3686
570

query I rowsort
SELECT DISTINCT 64 FROM tab2 AS cor0 CROSS JOIN tab2
----
64

query I rowsort
SELECT - + col1 - 71 FROM tab2 AS cor0
----
-122
-138
-148

query I rowsort
SELECT DISTINCT - col2 + 38 AS col0 FROM tab1 AS cor0
----
-21
-30
-58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5523
SELECT * FROM tab1 AS cor0 WHERE ( col1 ) NOT BETWEEN 71 * col0 AND + CAST( + 50 AS SIGNED )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5523
SELECT * FROM tab1 AS cor0 WHERE ( col1 ) NOT BETWEEN 71 * col0 AND + CAST ( + 50 AS INTEGER )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( ( col0 ) ) col1 FROM tab0 AS cor0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5525
SELECT + SUM( DISTINCT - 8 ) FROM tab2
----
-8

skipif mysql # not compatible
query I rowsort label-5525
SELECT + SUM ( DISTINCT - 8 ) FROM tab2
----
-8

query I rowsort
SELECT ALL col1 * 33 AS col0 FROM tab2
----
1683
2211
2541

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5527
SELECT DISTINCT * FROM tab2 WHERE ( col0 ) BETWEEN NULL AND - col0 * CAST( col0 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5527
SELECT DISTINCT * FROM tab2 WHERE ( col0 ) BETWEEN NULL AND - col0 * CAST ( col0 AS INTEGER )
----

query I rowsort
SELECT 30 AS col0 FROM tab0 WHERE NOT - col0 > + col2
----
30
30
30

query I rowsort
SELECT DISTINCT col0 * - 11 AS col0 FROM tab1
----
-1001
-561
-935

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 19 IS NOT NULL
----

query I rowsort
SELECT ALL + col1 * - 68 AS col2 FROM tab1
----
-3196
-340
-952

query I rowsort
SELECT 25 * - - col0 FROM tab1
----
1275
2125
2275

query I rowsort
SELECT - 45 + - col1 * col2 FROM tab1 WHERE NOT col0 * + col0 <> col1 * 55
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5534
SELECT 13 * COUNT( * ) col0 FROM tab2 WHERE NOT NULL IN ( + col1 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5534
SELECT 13 * COUNT ( * ) col0 FROM tab2 WHERE NOT NULL IN ( + col1 )
----
0

query I rowsort
SELECT ALL 67 * col0 AS col1 FROM tab1 WHERE NOT + - 50 - col0 / - 41 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + - col1 FROM tab2 WHERE NULL IS NULL
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-5537
SELECT + MIN( ALL + 2 ) AS col0 FROM tab0
----
2

skipif mysql # not compatible
query I rowsort label-5537
SELECT + MIN ( ALL + 2 ) AS col0 FROM tab0
----
2

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE ( 35 ) < ( NULL )
----

query I rowsort
SELECT ALL + + 61 + + 37 - - 74 * + col1 * + col1 AS col2 FROM tab0 AS cor0
----
172
32732
485612

query II rowsort
SELECT - - col2, col1 + - col2 + 62 * 36 AS col1 FROM tab0 AS cor0
----
10
2243
47
2266
99
2134

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 63 IS NULL
----

query I rowsort
SELECT + + col0 + - + 27 + - + col0 FROM tab1 AS cor0
----
-27
-27
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-5543
SELECT DISTINCT + MAX( - col2 ) AS col0 FROM tab2 cor0 WHERE col0 IS NOT NULL
----
-23

skipif mysql # not compatible
query I rowsort label-5543
SELECT DISTINCT + MAX ( - col2 ) AS col0 FROM tab2 cor0 WHERE col0 IS NOT NULL
----
-23

query I rowsort
SELECT ALL + - col0 + + + col2 - col0 * 75 FROM tab2 AS cor0
----
-3473
-4824
-5642

query I rowsort
SELECT ALL col2 + - + col0 + + - col0 FROM tab1 cor0
----
-111
-114
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-5546
SELECT DISTINCT + + COUNT( * ) + - + 72 FROM tab1 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-5546
SELECT DISTINCT + + COUNT ( * ) + - + 72 FROM tab1 AS cor0
----
-69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - 17 + + 79 * 77 col2 FROM tab0 AS cor0
----
4434
4604
5828

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5548
SELECT DISTINCT CAST( + - ( - 26 ) AS SIGNED ) FROM tab0
----
26

skipif mysql # not compatible
query I rowsort label-5548
SELECT DISTINCT CAST ( + - ( - 26 ) AS INTEGER ) FROM tab0
----
26

query I rowsort
SELECT + col2 * col1 FROM tab0 WHERE ( col1 ) = col0
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + + 23 * - col2 >= ( 10 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5551
SELECT + 50 + + MAX( ALL - - 55 ) AS col1 FROM tab2
----
105

skipif mysql # not compatible
query I rowsort label-5551
SELECT + 50 + + MAX ( ALL - - 55 ) AS col1 FROM tab2
----
105

query I rowsort
SELECT - col0 * + - col1 * - col1 AS col0 FROM tab0
----
-38367
-97
-98415

onlyif mysql # aggregate syntax: 
query I rowsort label-5553
SELECT DISTINCT + ( - MIN( + + col0 ) ) + - MAX( 84 ) FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-5553
SELECT DISTINCT + ( - MIN ( + + col0 ) ) + - MAX ( 84 ) FROM tab0
----
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5554
SELECT + COUNT( * ) DIV + 76 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5554
SELECT + COUNT ( * ) / + 76 FROM tab0
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5555
SELECT - CAST( 6 AS SIGNED ) AS col2, + 70 + + col1 DIV col2 FROM tab0 AS cor0
----
-6
70
-6
71
-6
72

skipif mysql # not compatible
query II rowsort label-5555
SELECT - CAST ( 6 AS INTEGER ) AS col2, + 70 + + col1 / col2 FROM tab0 AS cor0
----
-6
70
-6
71
-6
72

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 + + 83 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5557
SELECT + - ( ( - - COUNT( * ) ) ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5557
SELECT + - ( ( - - COUNT ( * ) ) ) AS col2 FROM tab1 AS cor0
----
-3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + col0 / + ( - col1 ) ) < NULL
----

query I rowsort
SELECT ALL col0 - - - ( - ( 61 ) ) AS col1 FROM tab2 cor0
----
107
125
136

query I rowsort
SELECT DISTINCT col1 FROM tab0 AS cor0 WHERE ( col1 + col1 ) IS NOT NULL
----
1
21
81

onlyif mysql # DIV for integer division: 
query I rowsort label-5561
SELECT DISTINCT - 59 * - + col0 - col0 DIV ( col2 ) FROM tab1 AS cor0
----
3009
5014
5368

skipif mysql # not compatible
query I rowsort label-5561
SELECT DISTINCT - 59 * - + col0 - col0 / ( col2 ) FROM tab1 AS cor0
----
3009
5014
5368

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + + 94 ) < NULL
----

query I rowsort
SELECT ALL - - col2 - + col1 + + col1 AS col2 FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT + 48 * - - 13 * + col1 AS col0 FROM tab0 AS cor0
----
13104
50544
624

query I rowsort
SELECT DISTINCT ( - - col2 ) FROM tab0 AS cor0 WHERE + 35 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5566
SELECT DISTINCT - col0 AS col0 FROM tab2 AS cor0 WHERE CAST( - 18 AS SIGNED ) < ( NULL )
----

skipif mysql # not compatible
query I rowsort label-5566
SELECT DISTINCT - col0 AS col0 FROM tab2 AS cor0 WHERE CAST ( - 18 AS INTEGER ) < ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5567
SELECT DISTINCT 20 DIV - col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5567
SELECT DISTINCT 20 / - col2 FROM tab1
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - - col0 / - - 66 + - - col2 + - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5569
SELECT ALL + 33 * - MAX( DISTINCT + 42 ) FROM tab1
----
-1386

skipif mysql # not compatible
query I rowsort label-5569
SELECT ALL + 33 * - MAX ( DISTINCT + 42 ) FROM tab1
----
-1386

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2, col0 * + col2 col0 FROM tab1
----
59
5015
68
6188
96
4896

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5571
SELECT ALL - col0 * 99 FROM tab2 WHERE ( ( 62 ) IN ( col0 + CAST( NULL AS SIGNED ) / - col1 ) )
----

skipif mysql # not compatible
query I rowsort label-5571
SELECT ALL - col0 * 99 FROM tab2 WHERE ( ( 62 ) IN ( col0 + CAST ( NULL AS INTEGER ) / - col1 ) )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5572
SELECT DISTINCT - col2 DIV - 74 AS col2, + CAST( NULL AS SIGNED ) * + 41 + - - col1 - - col1 col1 FROM tab1
----
0
NULL
1
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5572
SELECT DISTINCT - col2 / - 74 AS col2, + CAST ( NULL AS INTEGER ) * + 41 + - - col1 - - col1 col1 FROM tab1
----
0
NULL
1
NULL

query I rowsort
SELECT - col2 * + 48 FROM tab0 cor0
----
-2256
-4752
-480

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5574
SELECT ALL - AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5574
SELECT ALL - AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ( - + 78 ) * + col1 FROM tab1 AS cor0
----
-1092
-3666
-390

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 49 NOT BETWEEN ( + + col1 * + col1 * - col2 ) AND col2
----
97
1
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5577
SELECT ALL 93 DIV ( + + COUNT( + + col2 ) ) FROM tab1
----
31

skipif mysql # not compatible
query I rowsort label-5577
SELECT ALL 93 / ( + + COUNT ( + + col2 ) ) FROM tab1
----
31

query I rowsort
SELECT ALL - + 41 - + 64 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-105
-105
-105

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) < + col1
----

query I rowsort
SELECT DISTINCT + col0 * - col0 + - col0 FROM tab1 AS cor0
----
-2652
-7310
-8372

query I rowsort
SELECT ALL - + AVG ( ALL - col2 ) AS col1 FROM tab1 AS cor0 WHERE NULL >= - 57
----
NULL

query I rowsort
SELECT + 4 + + 90 FROM tab1 AS cor0 WHERE - 2 + + col2 + + - col1 * + - col1 < + + col2 + - - 53
----
94

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5583
SELECT ALL + CAST( - + 91 AS SIGNED ) + + - col0 DIV + col0 FROM tab0 AS cor0
----
-92
-92
-92

skipif mysql # not compatible
query I rowsort label-5583
SELECT ALL + CAST ( - + 91 AS INTEGER ) + + - col0 / + col0 FROM tab0 AS cor0
----
-92
-92
-92

query I rowsort
SELECT - ( - col2 ) * + col2 * - 59 AS col0 FROM tab0 AS cor0
----
-130331
-578259
-5900

onlyif mysql # aggregate syntax: 
query I rowsort label-5585
SELECT COUNT( * ) - - SUM( ALL - - 11 ) FROM tab2
----
36

skipif mysql # not compatible
query I rowsort label-5585
SELECT COUNT ( * ) - - SUM ( ALL - - 11 ) FROM tab2
----
36

query I rowsort
SELECT + col2 - + 10 + col2 + - ( - 48 ) AS col0 FROM tab0
----
132
236
58

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - + col0 <> + col1 * - ( + - col2 ) + - 25 + - + 92
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL IN ( col2, ( + col2 ), + + col2 + - col2 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + 79 ) < ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5590
SELECT 47 + - + COUNT( * ) AS col0 FROM tab2
----
44

skipif mysql # not compatible
query I rowsort label-5590
SELECT 47 + - + COUNT ( * ) AS col0 FROM tab2
----
44

query I rowsort
SELECT ALL - 15 FROM tab0 WHERE ( + - col1 ) <= - col1
----
-15
-15
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5592
SELECT DISTINCT col0 * - CAST( NULL AS SIGNED ) + + + col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5592
SELECT DISTINCT col0 * - CAST ( NULL AS INTEGER ) + + + col0 FROM tab0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE + + 7 + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + 26 + + col2 FROM tab1 cor0
----
122
85
94

query I rowsort
SELECT + + col2 * - col0 * - + col2 * - - 16 + + 5 FROM tab2 AS cor0
----
1638405
389349
4036805

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 BETWEEN ( + - 13 * + ( - - 64 ) ) AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( 57 ) col1 FROM tab2 AS cor0
----
57
57
57

query I rowsort
SELECT 43 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 199105619049271147956de52e7f5ed4

query I rowsort
SELECT 16 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3

query I rowsort
SELECT ALL + - 30 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 56fa25f9fb8040460fe3c894000ea8fb

onlyif mysql # aggregate syntax: 
query I rowsort label-5601
SELECT 16 * MAX( - 88 * - 79 ) col0 FROM tab2 WHERE NOT + 55 * - 51 * col2 / + col0 * + col0 + + 83 / - + col1 * - col1 + 76 IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5601
SELECT 16 * MAX ( - 88 * - 79 ) col0 FROM tab2 WHERE NOT + 55 * - 51 * col2 / + col0 * + col0 + + 83 / - + col1 * - col1 + 76 IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 66 col1 FROM tab2 cor0
----
66
66
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5603
SELECT DISTINCT - col2 AS col1 FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) NOT IN ( 84 )
----

skipif mysql # not compatible
query I rowsort label-5603
SELECT DISTINCT - col2 AS col1 FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) NOT IN ( 84 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) < - ( + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5605
SELECT ALL + - SUM( ( + col2 ) ) FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-5605
SELECT ALL + - SUM ( ( + col2 ) ) FROM tab0 AS cor0
----
-156

query I rowsort
SELECT - 88 * - col1 * - + 37 FROM tab1 AS cor0
----
-153032
-16280
-45584

onlyif mysql # aggregate syntax: 
query I rowsort label-5607
SELECT DISTINCT ( - SUM( - 55 ) ) FROM tab2 AS cor0
----
165

skipif mysql # not compatible
query I rowsort label-5607
SELECT DISTINCT ( - SUM ( - 55 ) ) FROM tab2 AS cor0
----
165

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 73 * - 69 col0 FROM tab2 AS cor0
----
-5037
-5037
-5037

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5609
SELECT ALL 63 * AVG ( CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5609
SELECT ALL 63 * AVG ( CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL - - col0 * - - ( - col2 ) FROM tab1 AS cor0
----
-4896
-5015
-6188

query I rowsort
SELECT ALL + ( - + col1 ) * col1 FROM tab0 AS cor0
----
-1
-441
-6561

query I rowsort
SELECT ALL + col0 * - 80 * + col0 AS col2 FROM tab0 AS cor0
----
-18000
-605520
-752720

onlyif mysql # DIV for integer division: 
query I rowsort label-5613
SELECT 77 DIV - col0 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5613
SELECT 77 / - col0 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT - col0 FROM tab1 WHERE NOT - - col2 + + col0 IS NULL
----
-51
-85
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5615
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + + ( col2 ) + + 8 - - col1 FROM tab2 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5615
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + + ( col2 ) + + 8 - - col1 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - - col2 FROM tab1 WHERE col2 IS NOT NULL
----
59
68
96

query II rowsort
SELECT ALL - col2 AS col2, col2 * + + col2 AS col2 FROM tab2
----
-23
529
-40
1600
-58
3364

onlyif mysql # aggregate syntax: 
query I rowsort label-5618
SELECT - SUM( DISTINCT - 85 ) FROM tab0
----
85

skipif mysql # not compatible
query I rowsort label-5618
SELECT - SUM ( DISTINCT - 85 ) FROM tab0
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-5619
SELECT DISTINCT + COUNT( * ) * + ( + COUNT( * ) ) FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-5619
SELECT DISTINCT + COUNT ( * ) * + ( + COUNT ( * ) ) FROM tab1 AS cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5620
SELECT DISTINCT + col2 * - - CAST( - col2 AS SIGNED ) * 4 col2 FROM tab2 AS cor0
----
-13456
-2116
-6400

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5620
SELECT DISTINCT + col2 * - - CAST ( - col2 AS INTEGER ) * 4 col2 FROM tab2 AS cor0
----
-13456
-2116
-6400

query I rowsort
SELECT ALL + col2 * - + 58 FROM tab1 AS cor0
----
-3422
-3944
-5568

query I rowsort
SELECT - 21 / + + col0 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( 71 ) AND - - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5623
SELECT ALL COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5623
SELECT ALL COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL ) IS NOT NULL
----
0

query I rowsort
SELECT ( - 55 ) * col2 + + 58 + + - col2 AS col2 FROM tab2
----
-1230
-2182
-3190

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5625
SELECT - + 68 + - + AVG ( CAST( NULL AS SIGNED ) ) + + MAX( ALL + 38 ) AS col0 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5625
SELECT - + 68 + - + AVG ( CAST ( NULL AS INTEGER ) ) + + MAX ( ALL + 38 ) AS col0 FROM tab2 cor0
----
NULL

query I rowsort
SELECT col0 + - 79 * + - 61 * - col0 FROM tab1 AS cor0
----
-245718
-409530
-438438

query I rowsort
SELECT + 87 + + col1 FROM tab1 AS cor0
----
101
134
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5628
SELECT - CAST( - col2 AS SIGNED ) + + ( - + col0 ) AS col2 FROM tab2 cor0
----
-17
-23
-24

skipif mysql # not compatible
query I rowsort label-5628
SELECT - CAST ( - col2 AS INTEGER ) + + ( - + col0 ) AS col2 FROM tab2 cor0
----
-17
-23
-24

query I rowsort
SELECT col1 * + ( col2 ) AS col1 FROM tab2 WHERE + - col0 NOT IN ( + col2 * + 88 )
----
1173
3080
3886

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5630
SELECT ALL - CAST( NULL AS SIGNED ) - + + col2 * - col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5630
SELECT ALL - CAST ( NULL AS INTEGER ) - + + col2 * - col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5631
SELECT - AVG ( - CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5631
SELECT - AVG ( - CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5632
SELECT + ( - - ( - CAST( - 16 AS SIGNED ) ) ) col0 FROM tab2
----
16
16
16

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5632
SELECT + ( - - ( - CAST ( - 16 AS INTEGER ) ) ) col0 FROM tab2
----
16
16
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5633
SELECT 25 / + CAST( NULL AS SIGNED ) * 0 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5633
SELECT 25 / + CAST ( NULL AS INTEGER ) * 0 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL + col1 * + 90 FROM tab0 AS cor0
----
1890
7290
90

query I rowsort
SELECT ALL - + col0 - 96 FROM tab2 AS cor0
----
-142
-160
-171

onlyif mysql # aggregate syntax: 
query II rowsort label-5636
SELECT ALL COUNT( DISTINCT + + col1 ), + ( + 78 ) AS col1 FROM tab1 AS cor0
----
3
78

skipif mysql # not compatible
query II rowsort label-5636
SELECT ALL COUNT ( DISTINCT + + col1 ), + ( + 78 ) AS col1 FROM tab1 AS cor0
----
3
78

onlyif mysql # aggregate syntax: 
query II rowsort label-5637
SELECT ALL + COUNT( * ) col1, + 31 - MIN( + + 70 ) FROM tab1
----
3
-39

skipif mysql # not compatible
query II rowsort label-5637
SELECT ALL + COUNT ( * ) col1, + 31 - MIN ( + + 70 ) FROM tab1
----
3
-39

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5638
SELECT DISTINCT 21, CAST( - + col0 AS SIGNED ) col0 FROM tab0
----
21
-15
21
-87
21
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5638
SELECT DISTINCT 21, CAST ( - + col0 AS INTEGER ) col0 FROM tab0
----
21
-15
21
-87
21
-97

query I rowsort
SELECT + 75 * + col2 AS col2 FROM tab2
----
1725
3000
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-5640
SELECT MAX( DISTINCT - ( 79 ) ) FROM tab1 cor0
----
-79

skipif mysql # not compatible
query I rowsort label-5640
SELECT MAX ( DISTINCT - ( 79 ) ) FROM tab1 cor0
----
-79

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( - 8 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5642
SELECT ALL + col2 * - col1 + + col0 + - col2 DIV col2 * - + col2 DIV - - col0 + col0 col0 FROM tab0 AS cor0
----
-36
-3774
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5642
SELECT ALL + col2 * - col1 + + col0 + - col2 / col2 * - + col2 / - - col0 + col0 col0 FROM tab0 AS cor0
----
-36
-3774
96

query I rowsort
SELECT DISTINCT - - 35 * - col0 FROM tab2 cor0
----
-1610
-2240
-2625

query I rowsort
SELECT ALL col2 * + 11 AS col2 FROM tab0 cor0
----
1089
110
517

query I rowsort
SELECT ALL + - col0 AS col0 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + ( + 74 ) FROM tab2
----
74
74
74

onlyif mysql # aggregate syntax: 
query I rowsort label-5647
SELECT ALL COUNT( DISTINCT - col1 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5647
SELECT ALL COUNT ( DISTINCT - col1 ) FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5648
SELECT + - CAST( + + col2 AS SIGNED ) + + + col0 AS col0 FROM tab1 AS cor0
----
-45
23
26

skipif mysql # not compatible
query I rowsort label-5648
SELECT + - CAST ( + + col2 AS INTEGER ) + + + col0 AS col0 FROM tab1 AS cor0
----
-45
23
26

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 cor0 LEFT JOIN tab2 AS cor1 ON 83 IS NULL
----
18 values hashing to 18b19f89ce73392082a69acc4aed78f1

onlyif mysql # aggregate syntax: 
query I rowsort label-5650
SELECT ALL MAX( + + 52 ) col2 FROM tab2
----
52

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5650
SELECT ALL MAX ( + + 52 ) col2 FROM tab2
----
52

query I rowsort
SELECT + 88 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37

query I rowsort
SELECT DISTINCT + - col2 * + 2 * col2 - + col2 AS col1 FROM tab1 AS cor0
----
-18528
-7021
-9316

onlyif mysql # aggregate syntax: 
query I rowsort label-5653
SELECT DISTINCT + COUNT( * ) - - 46 AS col2 FROM tab1 AS cor0
----
49

skipif mysql # not compatible
query I rowsort label-5653
SELECT DISTINCT + COUNT ( * ) - - 46 AS col2 FROM tab1 AS cor0
----
49

query I rowsort
SELECT + 66 - - - 74 FROM tab1 AS cor0
----
-8
-8
-8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5655
SELECT COUNT( * ) - - - 53 DIV + 39 FROM tab1 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-5655
SELECT COUNT ( * ) - - - 53 / + 39 FROM tab1 AS cor0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5656
SELECT - MIN( DISTINCT - 0 ) + COUNT( * ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5656
SELECT - MIN ( DISTINCT - 0 ) + COUNT ( * ) AS col2 FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5657
SELECT ALL CAST( NULL AS SIGNED ) - - - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5657
SELECT ALL CAST ( NULL AS INTEGER ) - - - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 4 - + col1 FROM tab2
----
-47
-63
-73

query III rowsort
SELECT * FROM tab2 WHERE NULL > + col1 + + 12
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5660
SELECT ALL - CAST( NULL AS SIGNED ) * col1 + - + col1 * - - 9 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5660
SELECT ALL - CAST ( NULL AS INTEGER ) * col1 + - + col1 * - - 9 AS col0 FROM ta